Files
Ergo/dist/assets/index.195268fe.js
T

369 lines
3.2 MiB
JavaScript
Raw Normal View History

var RU=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var SDe=RU((CDe,Fg)=>{function sL(e,t){return t.forEach(function(n){n&&typeof n!="string"&&!Array.isArray(n)&&Object.keys(n).forEach(function(a){if(a!=="default"&&!(a in e)){var r=Object.getOwnPropertyDescriptor(n,a);Object.defineProperty(e,a,r.get?r:{enumerable:!0,get:function(){return n[a]}})}})}),Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}const jU=function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))a(r);new MutationObserver(r=>{for(const i of r)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&a(o)}).observe(document,{childList:!0,subtree:!0});function n(r){const i={};return r.integrity&&(i.integrity=r.integrity),r.referrerpolicy&&(i.referrerPolicy=r.referrerpolicy),r.crossorigin==="use-credentials"?i.credentials="include":r.crossorigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function a(r){if(r.ep)return;r.ep=!0;const i=n(r);fetch(r.href,i)}};jU();var sn=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function zU(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function M_(e){if(e.__esModule)return e;var t=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(e).forEach(function(n){var a=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,a.get?a:{enumerable:!0,get:function(){return e[n]}})}),t}function iL(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var h={exports:{}},cn={};/**
* @license React
* react.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var Fp=Symbol.for("react.element"),FU=Symbol.for("react.portal"),$U=Symbol.for("react.fragment"),BU=Symbol.for("react.strict_mode"),HU=Symbol.for("react.profiler"),UU=Symbol.for("react.provider"),VU=Symbol.for("react.context"),WU=Symbol.for("react.forward_ref"),YU=Symbol.for("react.suspense"),GU=Symbol.for("react.memo"),qU=Symbol.for("react.lazy"),Nk=Symbol.iterator;function ZU(e){return e===null||typeof e!="object"?null:(e=Nk&&e[Nk]||e["@@iterator"],typeof e=="function"?e:null)}var oL={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},lL=Object.assign,cL={};function Zu(e,t,n){this.props=e,this.context=t,this.refs=cL,this.updater=n||oL}Zu.prototype.isReactComponent={};Zu.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Zu.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function dL(){}dL.prototype=Zu.prototype;function A_(e,t,n){this.props=e,this.context=t,this.refs=cL,this.updater=n||oL}var I_=A_.prototype=new dL;I_.constructor=A_;lL(I_,Zu.prototype);I_.isPureReactComponent=!0;var Sk=Array.isArray,uL=Object.prototype.hasOwnProperty,O_={current:null},fL={key:!0,ref:!0,__self:!0,__source:!0};function mL(e,t,n){var a,r={},i=null,o=null;if(t!=null)for(a in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(i=""+t.key),t)uL.call(t,a)&&!fL.hasOwnProperty(a)&&(r[a]=t[a]);var c=arguments.length-2;if(c===1)r.children=n;else if(1<c){for(var l=Array(c),d=0;d<c;d++)l[d]=arguments[d+2];r.children=l}if(e&&e.defaultProps)for(a in c=e.defaultProps,c)r[a]===void 0&&(r[a]=c[a]);return{$$typeof:Fp,type:e,key:i,ref:o,props:r,_owner:O_.current}}function QU(e,t){return{$$typeof:Fp,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function P_(e){return typeof e=="object"&&e!==null&&e.$$typeof===Fp}function JU(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var kk=/\/+/g;function t2(e,t){return typeof e=="object"&&e!==null&&e.key!=null?JU(""+e.key):t.toString(36)}function lg(e,t,n,a,r){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(i){case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case Fp:case FU:o=!0}}if(o)return o=e,r=r(o),e=a===""?"."+t2(o,0):a,Sk(r)?(n="",e!=null&&(n=e.replace(kk,"$&/")+"/"),lg(r,t,n,"",function(d){return d})):r!=null&&(P_(r)&&(r=QU(r,n+(!r.key||o&&o.key===r.key?"":(""+r.key).replace(kk,"$&/")+"/")+e)),t.push(r)),1;if(o=0,a=a===""?".":a+":",Sk(e))for(var c=0;c<e.length;c++){i=e[c];var l=a+t2(i,c);o+=lg(i,t,n,l,r)}else if(l=ZU(e),typeof l=="function")for(e=l.call(e),c=0;!(i=e.next()).done;)i=i.value,l=a+t2(i,c++),o+=lg(i,t,n,l,r);else if(i==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return o}function Zh(e,t,n){if(e==null)return e;var a=[],r=0;return lg(e,a,"","",function(i){return t.call(n,i,r++)}),a}function KU(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Cr={current:null},cg={transition:null},XU={ReactCurrentDispatcher:Cr,ReactCurrentBatchConfig:cg,ReactCurrentOwner:O_};function pL(){throw Error("act(...) is not supported in production builds of React.")}cn.Children={map:Zh,forEach:function(e,t,n){Zh(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Zh(e,function(){t++}),t},toArray:function(e){return Zh(e,function(t){return t})||[]},only:function(e){if(!P_(e))throw Error("React.Children.only expected to receive a sin
* @license React
* scheduler.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/(function(e){function t(j,I){var B=j.length;j.push(I);e:for(;0<B;){var Y=B-1>>>1,U=j[Y];if(0<r(U,I))j[Y]=I,j[B]=U,B=Y;else break e}}function n(j){return j.length===0?null:j[0]}function a(j){if(j.length===0)return null;var I=j[0],B=j.pop();if(B!==I){j[0]=B;e:for(var Y=0,U=j.length,W=U>>>1;Y<W;){var V=2*(Y+1)-1,X=j[V],ne=V+1,oe=j[ne];if(0>r(X,B))ne<U&&0>r(oe,X)?(j[Y]=oe,j[ne]=B,Y=ne):(j[Y]=X,j[V]=B,Y=V);else if(ne<U&&0>r(oe,B))j[Y]=oe,j[ne]=B,Y=ne;else break e}}return I}function r(j,I){var B=j.sortIndex-I.sortIndex;return B!==0?B:j.id-I.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var o=Date,c=o.now();e.unstable_now=function(){return o.now()-c}}var l=[],d=[],u=1,g=null,y=3,w=!1,v=!1,S=!1,m=typeof setTimeout=="function"?setTimeout:null,p=typeof clearTimeout=="function"?clearTimeout:null,b=typeof setImmediate!="undefined"?setImmediate:null;typeof navigator!="undefined"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function x(j){for(var I=n(d);I!==null;){if(I.callback===null)a(d);else if(I.startTime<=j)a(d),I.sortIndex=I.expirationTime,t(l,I);else break;I=n(d)}}function k(j){if(S=!1,x(j),!v)if(n(l)!==null)v=!0,H(N);else{var I=n(d);I!==null&&A(k,I.startTime-j)}}function N(j,I){v=!1,S&&(S=!1,p(E),E=-1),w=!0;var B=y;try{for(x(I),g=n(l);g!==null&&(!(g.expirationTime>I)||j&&!P());){var Y=g.callback;if(typeof Y=="function"){g.callback=null,y=g.priorityLevel;var U=Y(g.expirationTime<=I);I=e.unstable_now(),typeof U=="function"?g.callback=U:g===n(l)&&a(l),x(I)}else a(l);g=n(l)}if(g!==null)var W=!0;else{var V=n(d);V!==null&&A(k,V.startTime-I),W=!1}return W}finally{g=null,y=B,w=!1}}var _=!1,C=null,E=-1,T=5,D=-1;function P(){return!(e.unstable_now()-D<T)}function M(){if(C!==null){var j=e.unstable_now();D=j;var I=!0;try{I=C(!0,j)}finally{I?O():(_=!1,C=null)}}else _=!1}var O;if(typeof b=="function")O=function(){b(M)};else if(typeof MessageChannel!="undefined"){var F=new MessageChannel,z=F.port2;F.port1.onmessage=M,O=function(){z.postMessage(null)}}else O=function(){m(M,0)};function H(j){C=j,_||(_=!0,O())}function A(j,I){E=m(function(){j(e.unstable_now())},I)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(j){j.callback=null},e.unstable_continueExecution=function(){v||w||(v=!0,H(N))},e.unstable_forceFrameRate=function(j){0>j||125<j?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):T=0<j?Math.floor(1e3/j):5},e.unstable_getCurrentPriorityLevel=function(){return y},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(j){switch(y){case 1:case 2:case 3:var I=3;break;default:I=y}var B=y;y=I;try{return j()}finally{y=B}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(j,I){switch(j){case 1:case 2:case 3:case 4:case 5:break;default:j=3}var B=y;y=j;try{return I()}finally{y=B}},e.unstable_scheduleCallback=function(j,I,B){var Y=e.unstable_now();switch(typeof B=="object"&&B!==null?(B=B.delay,B=typeof B=="number"&&0<B?Y+B:Y):B=Y,j){case 1:var U=-1;break;case 2:U=250;break;case 5:U=1073741823;break;case 4:U=1e4;break;default:U=5e3}return U=B+U,j={id:u++,callback:I,priorityLevel:j,startTime:B,expirationTime:U,sortIndex:-1},B>Y?(j.sortIndex=B,t(d,j),n(l)===null&&j===n(d)&&(S?(p(E),E=-1):S=!0,A(k,B-Y))):(j.sortIndex=U,t(l,j),v||w||(v=!0,H(N))),j},e.unstable_shouldYield=P,e.unstable_wrapCallback=function(j){var I=y;return function(){var B=y;y=I;try{return j.apply(this,arguments)}finally{y=B}}}})(gL);hL.exports=gL;/**
* @license React
* react-dom.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var eV=h.exports,ts=hL.exports;function Ke(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var bL=new Set,Ym={};function zc(e,t){Nu(e,t),Nu(e+"Capture",t)}function Nu(e,t){for(Ym[e]=t,e=0;e<t.length;e++)bL.add(t[e])}var go=!(typeof window=="undefined"||typeof window.document=="undefined"||typeof window.document.createElement=="undefined"),qv=Object.prototype.hasOwnProperty,tV=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Ck={},Ek={};function nV(e){return qv.call(Ek,e)?!0:qv.call(Ck,e)?!1:tV.test(e)?Ek[e]=!0:(Ck[e]=!0,!1)}function aV(e,t,n,a){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return a?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function rV(e,t,n,a){if(t===null||typeof t=="undefined"||aV(e,t,n,a))return!0;if(a)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Er(e,t,n,a,r,i,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=a,this.attributeNamespace=r,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=o}var Qa={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Qa[e]=new Er(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Qa[t]=new Er(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Qa[e]=new Er(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Qa[e]=new Er(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Qa[e]=new Er(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Qa[e]=new Er(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Qa[e]=new Er(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Qa[e]=new Er(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Qa[e]=new Er(e,5,!1,e.toLowerCase(),null,!1,!1)});var R_=/[\-:]([a-z])/g;function j_(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic
`+n2+e}var a2=!1;function r2(e,t){if(!e||a2)return"";a2=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(d){var a=d}Reflect.construct(e,[],t)}else{try{t.call()}catch(d){a=d}e.call(t.prototype)}else{try{throw Error()}catch(d){a=d}e()}}catch(d){if(d&&a&&typeof d.stack=="string"){for(var r=d.stack.split(`
`),i=a.stack.split(`
`),o=r.length-1,c=i.length-1;1<=o&&0<=c&&r[o]!==i[c];)c--;for(;1<=o&&0<=c;o--,c--)if(r[o]!==i[c]){if(o!==1||c!==1)do if(o--,c--,0>c||r[o]!==i[c]){var l=`
`+r[o].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=o&&0<=c);break}}}finally{a2=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?gm(e):""}function sV(e){switch(e.tag){case 5:return gm(e.type);case 16:return gm("Lazy");case 13:return gm("Suspense");case 19:return gm("SuspenseList");case 0:case 2:case 15:return e=r2(e.type,!1),e;case 11:return e=r2(e.type.render,!1),e;case 1:return e=r2(e.type,!0),e;default:return""}}function Kv(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Bd:return"Fragment";case $d:return"Portal";case Zv:return"Profiler";case F_:return"StrictMode";case Qv:return"Suspense";case Jv:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case xL:return(e.displayName||"Context")+".Consumer";case yL:return(e._context.displayName||"Context")+".Provider";case $_:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case B_:return t=e.displayName||null,t!==null?t:Kv(e.type)||"Memo";case Xo:t=e._payload,e=e._init;try{return Kv(e(t))}catch{}}return null}function iV(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Kv(t);case 8:return t===F_?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Dl(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function vL(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function oV(e){var t=vL(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),a=""+e[t];if(!e.hasOwnProperty(t)&&typeof n!="undefined"&&typeof n.get=="function"&&typeof n.set=="function"){var r=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return r.call(this)},set:function(o){a=""+o,i.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return a},setValue:function(o){a=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Jh(e){e._valueTracker||(e._valueTracker=oV(e))}function _L(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),a="";return e&&(a=vL(e)?e.checked?"true":"false":e.value),e=a,e!==n?(t.setValue(e),!0):!1}function $g(e){if(e=e||(typeof document!="undefined"?document:void 0),typeof e=="undefined")return null;try{return e.activeElement||e.body}catch{return e.body}}function Xv(e,t){var n=t.checked;return la({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n!=null?n:e._wrapperState.initialChecked})}function Lk(e,t){var n=t.defaultValue==null?"":t.defaultValue,a=t.checked!=null?t.checked:t.defaultChecked;n=Dl(t.value!=null?t.value:n),e._wrapperState={initialChecked:a,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function NL(e,t){t=t.checked,t!=null&&z_(e,"checked",t,!1)}function e3(e,t){NL(e,t);var n=Dl(t.value),a=t.type;if(n!=null)a==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(a==="submit"||a==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?t3(e,t.type,n):t.hasOwnProperty("defaultValue")&&t3(e,t.type,Dl(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function
`).replace(bW,"")}function s0(e,t,n){if(t=Xk(t),Xk(e)!==t&&n)throw Error(Ke(425))}function qg(){}var h3=null,g3=null;function b3(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var y3=typeof setTimeout=="function"?setTimeout:void 0,yW=typeof clearTimeout=="function"?clearTimeout:void 0,eC=typeof Promise=="function"?Promise:void 0,xW=typeof queueMicrotask=="function"?queueMicrotask:typeof eC!="undefined"?function(e){return eC.resolve(null).then(e).catch(wW)}:y3;function wW(e){setTimeout(function(){throw e})}function b2(e,t){var n=t,a=0;do{var r=n.nextSibling;if(e.removeChild(n),r&&r.nodeType===8)if(n=r.data,n==="/$"){if(a===0){e.removeChild(r),Jm(t);return}a--}else n!=="$"&&n!=="$?"&&n!=="$!"||a++;n=r}while(n);Jm(t)}function xl(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function tC(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var Ju=Math.random().toString(36).slice(2),yi="__reactFiber$"+Ju,np="__reactProps$"+Ju,bo="__reactContainer$"+Ju,x3="__reactEvents$"+Ju,vW="__reactListeners$"+Ju,_W="__reactHandles$"+Ju;function uc(e){var t=e[yi];if(t)return t;for(var n=e.parentNode;n;){if(t=n[bo]||n[yi]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=tC(e);e!==null;){if(n=e[yi])return n;e=tC(e)}return t}e=n,n=e.parentNode}return null}function Hp(e){return e=e[yi]||e[bo],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Wd(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(Ke(33))}function Vb(e){return e[np]||null}var w3=[],Yd=-1;function zl(e){return{current:e}}function Zn(e){0>Yd||(e.current=w3[Yd],w3[Yd]=null,Yd--)}function Un(e,t){Yd++,w3[Yd]=e.current,e.current=t}var Ml={},or=zl(Ml),Ir=zl(!1),Cc=Ml;function Su(e,t){var n=e.type.contextTypes;if(!n)return Ml;var a=e.stateNode;if(a&&a.__reactInternalMemoizedUnmaskedChildContext===t)return a.__reactInternalMemoizedMaskedChildContext;var r={},i;for(i in n)r[i]=t[i];return a&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=r),r}function Or(e){return e=e.childContextTypes,e!=null}function Zg(){Zn(Ir),Zn(or)}function nC(e,t,n){if(or.current!==Ml)throw Error(Ke(168));Un(or,t),Un(Ir,n)}function uD(e,t,n){var a=e.stateNode;if(t=t.childContextTypes,typeof a.getChildContext!="function")return n;a=a.getChildContext();for(var r in a)if(!(r in t))throw Error(Ke(108,iV(e)||"Unknown",r));return la({},n,a)}function Qg(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ml,Cc=or.current,Un(or,e),Un(Ir,Ir.current),!0}function aC(e,t,n){var a=e.stateNode;if(!a)throw Error(Ke(169));n?(e=uD(e,t,Cc),a.__reactInternalMemoizedMergedChildContext=e,Zn(Ir),Zn(or),Un(or,e)):Zn(Ir),Un(Ir,n)}var Xi=null,Wb=!1,y2=!1;function fD(e){Xi===null?Xi=[e]:Xi.push(e)}function NW(e){Wb=!0,fD(e)}function Fl(){if(!y2&&Xi!==null){y2=!0;var e=0,t=Mn;try{var n=Xi;for(Mn=1;e<n.length;e++){var a=n[e];do a=a(!0);while(a!==null)}Xi=null,Wb=!1}catch(r){throw Xi!==null&&(Xi=Xi.slice(e+1)),jL(U_,Fl),r}finally{Mn=t,y2=!1}}return null}var Gd=[],qd=0,Jg=null,Kg=0,ys=[],xs=0,Ec=null,ao=1,ro="";function rc(e,t){Gd[qd++]=Kg,Gd[qd++]=Jg,Jg=e,Kg=t}function mD(e,t,n){ys[xs++]=ao,ys[xs++]=ro,ys[xs++]=Ec,Ec=e;var a=ao;e=ro;var r=32-Zs(a)-1;a&=~(1<<r),n+=1;var i=32-Zs(t)+r;if(30<i){var o=r-r%5;i=(a&(1<<o)-1).toString(32),a>>=o,r-=o,ao=1<<32-Zs(t)+r|n<<r|a,ro=i+e}else ao=1<<i|n<<r|a,ro=e}function K_(e){e.return!==null&&(rc(e,1),mD(e,1,0))}function X_(e){for(;e===Jg;)Jg=Gd[--qd],Gd[qd]=null,Kg=Gd[--qd],Gd[qd]=null;for(;e===Ec;)Ec=ys[--xs],ys[xs]=null,ro=ys[--xs],ys[xs]=null,ao=ys[--xs],ys[xs]=null}var Xr=null,qr=null,ta=!1,Ws=null;function pD(e,t){var n=Ns(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return
Error generating stack: `+i.message+`
`+i.stack}return{value:e,source:t,stack:r,digest:null}}function N2(e,t,n){return{value:e,source:null,stack:n!=null?n:null,digest:t!=null?t:null}}function C3(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var AW=typeof WeakMap=="function"?WeakMap:Map;function BD(e,t,n){n=uo(-1,n),n.tag=3,n.payload={element:null};var a=t.value;return n.callback=function(){i1||(i1=!0,R3=a),C3(e,t)},n}function HD(e,t,n){n=uo(-1,n),n.tag=3;var a=e.type.getDerivedStateFromError;if(typeof a=="function"){var r=t.value;n.payload=function(){return a(r)},n.callback=function(){C3(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){C3(e,t),typeof a!="function"&&(vl===null?vl=new Set([this]):vl.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function mC(e,t,n){var a=e.pingCache;if(a===null){a=e.pingCache=new AW;var r=new Set;a.set(t,r)}else r=a.get(t),r===void 0&&(r=new Set,a.set(t,r));r.has(n)||(r.add(n),e=YW.bind(null,e,t,n),t.then(e,e))}function pC(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function hC(e,t,n,a,r){return(e.mode&1)===0?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=uo(-1,1),t.tag=2,wl(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=r,e)}var IW=ko.ReactCurrentOwner,Ar=!1;function br(e,t,n,a){t.child=e===null?bD(t,null,n,a):Cu(t,e.child,n,a)}function gC(e,t,n,a,r){n=n.render;var i=t.ref;return du(t,r),a=d6(e,t,n,a,i,r),n=u6(),e!==null&&!Ar?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~r,xo(e,t,r)):(ta&&n&&K_(t),t.flags|=1,br(e,t,a,r),t.child)}function bC(e,t,n,a,r){if(e===null){var i=n.type;return typeof i=="function"&&!v6(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,UD(e,t,i,a,r)):(e=xg(n.type,null,a,t,t.mode,r),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,(e.lanes&r)===0){var o=i.memoizedProps;if(n=n.compare,n=n!==null?n:Xm,n(o,a)&&e.ref===t.ref)return xo(e,t,r)}return t.flags|=1,e=Nl(i,a),e.ref=t.ref,e.return=t,t.child=e}function UD(e,t,n,a,r){if(e!==null){var i=e.memoizedProps;if(Xm(i,a)&&e.ref===t.ref)if(Ar=!1,t.pendingProps=a=i,(e.lanes&r)!==0)(e.flags&131072)!==0&&(Ar=!0);else return t.lanes=e.lanes,xo(e,t,r)}return E3(e,t,n,a,r)}function VD(e,t,n){var a=t.pendingProps,r=a.children,i=e!==null?e.memoizedState:null;if(a.mode==="hidden")if((t.mode&1)===0)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Un(Jd,Wr),Wr|=n;else{if((n&1073741824)===0)return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Un(Jd,Wr),Wr|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},a=i!==null?i.baseLanes:n,Un(Jd,Wr),Wr|=a}else i!==null?(a=i.baseLanes|n,t.memoizedState=null):a=n,Un(Jd,Wr),Wr|=a;return br(e,t,r,n),t.child}function WD(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function E3(e,t,n,a,r){var i=Or(n)?Cc:or.current;return i=Su(t,i),du(t,r),n=d6(e,t,n,a,i,r),a=u6(),e!==null&&!Ar?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~r,xo(e,t,r)):(ta&&a&&K_(t),t.flags|=1,br(e,t,n,r),t.child)}function yC(e,t,n,a,r){if(Or(n)){var i=!0;Qg(t)}else i=!1;if(du(t,r),t.stateNode===null)gg(e,t),$D(t,n,a),k3(t,n,a,r),a=!0;else if(e===null){var o=t.stateNode,c=t.memoizedProps;o.props=c;var l=o.context,d=n.contextType;typeof d=="object"&&d!==null?d=Es(d):(d=Or(n)?Cc:or.current,d=Su(t,d));var u=n.getDerivedStateFromProps,g=typeof u=="function"||typeof o.getSnapshotBeforeUpdate=="function";g||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(c!==a||l!==d)&&fC(t,o,a,d),el=!1;var y=t.memoizedState;o.state=y,t1(t,a,o,r),l=t.memoizedState,c!==a||y!==l||Ir.current||el?(typeof u=="function"&&(S3(t,n,u,a),l=t.memoizedState),(c=el||uC(t,n,c,a,y,l,d))?(g||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componen
* @license React
* react-jsx-runtime.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var cY=h.exports,dY=Symbol.for("react.element"),uY=Symbol.for("react.fragment"),fY=Object.prototype.hasOwnProperty,mY=cY.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,pY={key:!0,ref:!0,__self:!0,__source:!0};function hM(e,t,n){var a,r={},i=null,o=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(o=t.ref);for(a in t)fY.call(t,a)&&!pY.hasOwnProperty(a)&&(r[a]=t[a]);if(e&&e.defaultProps)for(a in t=e.defaultProps,t)r[a]===void 0&&(r[a]=t[a]);return{$$typeof:dY,type:e,key:i,ref:o,props:r,_owner:mY.current}}ny.Fragment=uY;ny.jsx=hM;ny.jsxs=hM;ty.exports=ny;const s=ty.exports.jsx,f=ty.exports.jsxs,Se=ty.exports.Fragment,Ee=R.createContext({state:{}}),hY={isAuthenticated:!1,user:null,token:null,role:null,originalRole:null,sessionExpired:!1,allowCheckVerification:!1},gY=(e,t)=>{var n;switch(t.type){case"LOGIN":return localStorage.setItem("user",Number(t.payload.user_id)),localStorage.setItem("token",(n=t.payload.token)!=null?n:t.payload.access_token),localStorage.setItem("role",t.payload.role),localStorage.setItem("originalRole",t.payload.originalRole===void 0||t.payload.originalRole==="undefined"?"customer":t.payload.originalRole),{...e,isAuthenticated:!0,user:Number(localStorage.getItem("user")),token:localStorage.getItem("token"),role:localStorage.getItem("role"),originalRole:localStorage.getItem("originalRole")};case"LOGOUT":return localStorage.removeItem("user"),localStorage.removeItem("token"),{...e,isAuthenticated:!1,user:null,sessionExpired:!1,role:null,originalRole:null};case"SESSION_EXPIRED":return{...e,sessionExpired:!0};case"SWITCH_TO_HOST":return localStorage.setItem("role","host"),{...e,role:"host"};case"SWITCH_TO_CUSTOMER":return localStorage.setItem("role","customer"),{...e,role:"customer"};case"SWITCH_TO_ADMIN":return localStorage.setItem("role","admin"),{...e,role:"admin"};case"ALLOW_CHECK_VERIFICATION":return{...e,allowCheckVerification:!0};case"DISALLOW_CHECK_VERIFICATION":return{...e,allowCheckVerification:!1};default:return e}};let bY=new _e;const me=(e,t)=>{localStorage.getItem("role"),t==="TOKEN_EXPIRED"&&e({type:"SESSION_EXPIRED"})},yY=({children:e})=>{const[t,n]=h.exports.useReducer(gY,hY),[a,r]=h.exports.useState(!0);return R.useEffect(()=>{const i=localStorage.getItem("user"),o=localStorage.getItem("token"),c=localStorage.getItem("role"),l=localStorage.getItem("originalRole");if(!o){r(!1);return}(async function(){r(!0);try{await bY.check(l),n({type:"LOGIN",payload:{user_id:i,token:o,role:c,originalRole:l}})}catch{c?(n({type:"LOGOUT"}),window.location.href="/"+c+"/login"):(n({type:"LOGOUT"}),window.location.href="/")}r(!1)})()},[]),a?s("div",{className:"popup-container flex items-center justify-center",children:s("div",{className:"",children:s("svg",{style:{margin:"auto",background:"transparent",display:" block",shapeRendering:"auto"},viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid",className:"md:w-[100px] md:h-[100px] w-[80px] h-[80px]",children:s("path",{fill:"none",stroke:"#d0d5dd",strokeWidth:"6",strokeDasharray:"42.76482137044271 42.76482137044271",d:"M24.3 30C11.4 30 5 43.3 5 50s6.4 20 19.3 20c19.3 0 32.1-40 51.4-40 C88.6 30 95 43.3 95 50s-6.4 20-19.3 20C56.4 70 43.6 30 24.3 30z",strokeLinecap:"round",style:{transform:"scale(0.8)",transformOrigin:"50px 50px"},children:s("animate",{attributeName:"stroke-dashoffset",repeatCount:"indefinite",dur:"1.882051282051282s",keyTimes:"0;1",values:"0;256.58892822265625"})})})})}):s(Ee.Provider,{value:{state:t,dispatch:n},children:e})},we=R.createContext({}),xY={globalMessage:"",globalMessageType:"",isOpen:!0,show:!1,path:"",location:"",saveChanges:!1,deleted:!1,loading:!1,error:!1,errorHeading:"",errorMsg:"",confirmation:!1,confirmationHeading:"",confirmationMsg:"",confirmationCloseFn:void 0,adminNotificationCount:0,unreadMessages:0,isLocationSet:!1,userLocationData:{},user:{},spaceCategories:[],notVerifiedModal:!1,menuIconOpen:!1,addPaymentMethodModal:!1,addPayoutMethodModal:!1,tourOpen:!1},wY=(e,t)=>{var n;switch(t.type){case"SNACKBAR":return{...e,globalMessage:t.payload.message,globalMessageType:t.payload
* @remix-run/router v1.16.1
*
* Copyright (c) Remix Software Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/function cp(){return cp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},cp.apply(this,arguments)}var ll;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(ll||(ll={}));const IC="popstate";function _Y(e){e===void 0&&(e={});function t(a,r){let{pathname:i,search:o,hash:c}=a.location;return $3("",{pathname:i,search:o,hash:c},r.state&&r.state.usr||null,r.state&&r.state.key||"default")}function n(a,r){return typeof r=="string"?r:d1(r)}return SY(t,n,null,e)}function na(e,t){if(e===!1||e===null||typeof e=="undefined")throw new Error(t)}function gM(e,t){if(!e){typeof console!="undefined"&&console.warn(t);try{throw new Error(t)}catch{}}}function NY(){return Math.random().toString(36).substr(2,8)}function OC(e,t){return{usr:e.state,key:e.key,idx:t}}function $3(e,t,n,a){return n===void 0&&(n=null),cp({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Ku(t):t,{state:n,key:t&&t.key||a||NY()})}function d1(e){let{pathname:t="/",search:n="",hash:a=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),a&&a!=="#"&&(t+=a.charAt(0)==="#"?a:"#"+a),t}function Ku(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let a=e.indexOf("?");a>=0&&(t.search=e.substr(a),e=e.substr(0,a)),e&&(t.pathname=e)}return t}function SY(e,t,n,a){a===void 0&&(a={});let{window:r=document.defaultView,v5Compat:i=!1}=a,o=r.history,c=ll.Pop,l=null,d=u();d==null&&(d=0,o.replaceState(cp({},o.state,{idx:d}),""));function u(){return(o.state||{idx:null}).idx}function g(){c=ll.Pop;let m=u(),p=m==null?null:m-d;d=m,l&&l({action:c,location:S.location,delta:p})}function y(m,p){c=ll.Push;let b=$3(S.location,m,p);n&&n(b,m),d=u()+1;let x=OC(b,d),k=S.createHref(b);try{o.pushState(x,"",k)}catch(N){if(N instanceof DOMException&&N.name==="DataCloneError")throw N;r.location.assign(k)}i&&l&&l({action:c,location:S.location,delta:1})}function w(m,p){c=ll.Replace;let b=$3(S.location,m,p);n&&n(b,m),d=u();let x=OC(b,d),k=S.createHref(b);o.replaceState(x,"",k),i&&l&&l({action:c,location:S.location,delta:0})}function v(m){let p=r.location.origin!=="null"?r.location.origin:r.location.href,b=typeof m=="string"?m:d1(m);return b=b.replace(/ $/,"%20"),na(p,"No window.location.(origin|href) available to create URL for href: "+b),new URL(b,p)}let S={get action(){return c},get location(){return e(r,o)},listen(m){if(l)throw new Error("A history only accepts one active listener");return r.addEventListener(IC,g),l=m,()=>{r.removeEventListener(IC,g),l=null}},createHref(m){return t(r,m)},createURL:v,encodeLocation(m){let p=v(m);return{pathname:p.pathname,search:p.search,hash:p.hash}},push:y,replace:w,go(m){return o.go(m)}};return S}var PC;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(PC||(PC={}));function kY(e,t,n){n===void 0&&(n="/");let a=typeof t=="string"?Ku(t):t,r=Du(a.pathname||"/",n);if(r==null)return null;let i=bM(e);CY(i);let o=null;for(let c=0;o==null&&c<i.length;++c){let l=jY(r);o=PY(i[c],l)}return o}function bM(e,t,n,a){t===void 0&&(t=[]),n===void 0&&(n=[]),a===void 0&&(a="");let r=(i,o,c)=>{let l={relativePath:c===void 0?i.path||"":c,caseSensitive:i.caseSensitive===!0,childrenIndex:o,route:i};l.relativePath.startsWith("/")&&(na(l.relativePath.startsWith(a),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+a+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(a.length));let d=Sl([a,l.relativePath]),u=n.concat(l);i.children&&i.children.length>0&&(na(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+d+'".')),bM(i.children,t,u,d)),!(i.path==null&&!i.index)&&t.push({path:d,score:IY(d,i.index),routesMeta:u})};return e.forEach((i,o)=>{var c;if(i.path===""||!((c=i.path)!=null&&c.includes("?")))r(i,o);else for(let l of yM(i.path))r(i,o,l)}),t}function yM(e){let t=e.split("/");if(t.length=
* React Router v6.23.1
*
* Copyright (c) Remix Software Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/function dp(){return dp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},dp.apply(this,arguments)}const ay=h.exports.createContext(null),xM=h.exports.createContext(null),Co=h.exports.createContext(null),ry=h.exports.createContext(null),Ai=h.exports.createContext({outlet:null,matches:[],isDataRoute:!1}),wM=h.exports.createContext(null);function YY(e,t){let{relative:n}=t===void 0?{}:t;$c()||na(!1);let{basename:a,navigator:r}=h.exports.useContext(Co),{hash:i,pathname:o,search:c}=sy(e,{relative:n}),l=o;return a!=="/"&&(l=o==="/"?a:Sl([a,o])),r.createHref({pathname:l,search:c,hash:i})}function $c(){return h.exports.useContext(ry)!=null}function An(){return $c()||na(!1),h.exports.useContext(ry).location}function GY(e){$c()||na(!1);let{pathname:t}=An();return h.exports.useMemo(()=>u1(e,t),[t,e])}function vM(e){h.exports.useContext(Co).static||h.exports.useLayoutEffect(e)}function je(){let{isDataRoute:e}=h.exports.useContext(Ai);return e?oG():qY()}function qY(){$c()||na(!1);let e=h.exports.useContext(ay),{basename:t,future:n,navigator:a}=h.exports.useContext(Co),{matches:r}=h.exports.useContext(Ai),{pathname:i}=An(),o=JSON.stringify(C6(r,n.v7_relativeSplatPath)),c=h.exports.useRef(!1);return vM(()=>{c.current=!0}),h.exports.useCallback(function(d,u){if(u===void 0&&(u={}),!c.current)return;if(typeof d=="number"){a.go(d);return}let g=E6(d,JSON.parse(o),i,u.relative==="path");e==null&&t!=="/"&&(g.pathname=g.pathname==="/"?t:Sl([t,g.pathname])),(u.replace?a.replace:a.push)(g,u.state,u)},[t,a,o,i,e])}const _M=h.exports.createContext(null);function Mu(){return h.exports.useContext(_M)}function ZY(e){let t=h.exports.useContext(Ai).outlet;return t&&h.exports.createElement(_M.Provider,{value:e},t)}function Mt(){let{matches:e}=h.exports.useContext(Ai),t=e[e.length-1];return t?t.params:{}}function sy(e,t){let{relative:n}=t===void 0?{}:t,{future:a}=h.exports.useContext(Co),{matches:r}=h.exports.useContext(Ai),{pathname:i}=An(),o=JSON.stringify(C6(r,a.v7_relativeSplatPath));return h.exports.useMemo(()=>E6(e,JSON.parse(o),i,n==="path"),[e,o,i,n])}function QY(e,t){return JY(e,t)}function JY(e,t,n,a){$c()||na(!1);let{navigator:r}=h.exports.useContext(Co),{matches:i}=h.exports.useContext(Ai),o=i[i.length-1],c=o?o.params:{};o&&o.pathname;let l=o?o.pathnameBase:"/";o&&o.route;let d=An(),u;if(t){var g;let m=typeof t=="string"?Ku(t):t;l==="/"||((g=m.pathname)==null?void 0:g.startsWith(l))||na(!1),u=m}else u=d;let y=u.pathname||"/",w=y;if(l!=="/"){let m=l.replace(/^\//,"").split("/"),p=y.replace(/^\//,"").split("/");w="/"+p.slice(m.length).join("/")}let v=kY(e,{pathname:w}),S=nG(v&&v.map(m=>Object.assign({},m,{params:Object.assign({},c,m.params),pathname:Sl([l,r.encodeLocation?r.encodeLocation(m.pathname).pathname:m.pathname]),pathnameBase:m.pathnameBase==="/"?l:Sl([l,r.encodeLocation?r.encodeLocation(m.pathnameBase).pathname:m.pathnameBase])})),i,n,a);return t&&S?h.exports.createElement(ry.Provider,{value:{location:dp({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:ll.Pop}},S):S}function KY(){let e=iG(),t=VY(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},i=null;return h.exports.createElement(h.exports.Fragment,null,h.exports.createElement("h2",null,"Unexpected Application Error!"),h.exports.createElement("h3",{style:{fontStyle:"italic"}},t),n?h.exports.createElement("pre",{style:r},n):null,i)}const XY=h.exports.createElement(KY,null);class eG extends h.exports.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidati
* React Router DOM v6.23.1
*
* Copyright (c) Remix Software Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/function m1(){return m1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},m1.apply(this,arguments)}function kM(e,t){if(e==null)return{};var n={},a=Object.keys(e),r,i;for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&(n[r]=e[r]);return n}function uG(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function fG(e,t){return e.button===0&&(!t||t==="_self")&&!uG(e)}function Au(e){return e===void 0&&(e=""),new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let a=e[n];return t.concat(Array.isArray(a)?a.map(r=>[n,r]):[[n,a]])},[]))}function mG(e,t){let n=Au(e);return t&&t.forEach((a,r)=>{n.has(r)||t.getAll(r).forEach(i=>{n.append(r,i)})}),n}const pG=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],hG=["aria-current","caseSensitive","className","end","style","to","unstable_viewTransition","children"],gG="6";try{window.__reactRouterVersion=gG}catch{}const bG=h.exports.createContext({isTransitioning:!1}),yG="startTransition",zC=Ll[yG],xG="flushSync";aY[xG];const wG="useId";Ll[wG];function vG(e){let{basename:t,children:n,future:a,window:r}=e,i=h.exports.useRef();i.current==null&&(i.current=_Y({window:r,v5Compat:!0}));let o=i.current,[c,l]=h.exports.useState({action:o.action,location:o.location}),{v7_startTransition:d}=a||{},u=h.exports.useCallback(g=>{d&&zC?zC(()=>l(g)):l(g)},[l,d]);return h.exports.useLayoutEffect(()=>o.listen(u),[o,u]),h.exports.createElement(dG,{basename:t,children:n,location:c.location,navigationType:c.action,navigator:o,future:a})}const _G=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined",NG=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,$e=h.exports.forwardRef(function(t,n){let{onClick:a,relative:r,reloadDocument:i,replace:o,state:c,target:l,to:d,preventScrollReset:u,unstable_viewTransition:g}=t,y=kM(t,pG),{basename:w}=h.exports.useContext(Co),v,S=!1;if(typeof d=="string"&&NG.test(d)&&(v=d,_G))try{let x=new URL(window.location.href),k=d.startsWith("//")?new URL(x.protocol+d):new URL(d),N=Du(k.pathname,w);k.origin===x.origin&&N!=null?d=N+k.search+k.hash:S=!0}catch{}let m=YY(d,{relative:r}),p=kG(d,{replace:o,state:c,target:l,preventScrollReset:u,relative:r,unstable_viewTransition:g});function b(x){a&&a(x),x.defaultPrevented||p(x)}return h.exports.createElement("a",m1({},y,{href:v||m,onClick:S||i?a:b,ref:n,target:l}))}),Kd=h.exports.forwardRef(function(t,n){let{"aria-current":a="page",caseSensitive:r=!1,className:i="",end:o=!1,style:c,to:l,unstable_viewTransition:d,children:u}=t,g=kM(t,hG),y=sy(l,{relative:g.relative}),w=An(),v=h.exports.useContext(xM),{navigator:S,basename:m}=h.exports.useContext(Co),p=v!=null&&CG(y)&&d===!0,b=S.encodeLocation?S.encodeLocation(y).pathname:y.pathname,x=w.pathname,k=v&&v.navigation&&v.navigation.location?v.navigation.location.pathname:null;r||(x=x.toLowerCase(),k=k?k.toLowerCase():null,b=b.toLowerCase()),k&&m&&(k=Du(k,m)||k);const N=b!=="/"&&b.endsWith("/")?b.length-1:b.length;let _=x===b||!o&&x.startsWith(b)&&x.charAt(N)==="/",C=k!=null&&(k===b||!o&&k.startsWith(b)&&k.charAt(b.length)==="/"),E={isActive:_,isPending:C,isTransitioning:p},T=_?a:void 0,D;typeof i=="function"?D=i(E):D=[i,_?"active":null,C?"pending":null,p?"transitioning":null].filter(Boolean).join(" ");let P=typeof c=="function"?c(E):c;return h.exports.createElement($e,m1({},g,{"aria-current":T,className:D,ref:n,style:P,to:l,unstable_viewTransition:d}),typeof u=="function"?u(E):u)});var H3;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(H3||(H3={}));var FC;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(FC||(FC={}));function SG(e){let t=h.exports.useContext(ay);return t||na(!1),t}
`+Ea),J&&p0([P,M,O],fr=>{Ea=Yf(Ea,fr," ")}),x&&ae?x.createHTML(Ea):Ea},t.setConfig=function(){let qe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Le(qe),Z=!0},t.clearConfig=function(){Ht=null,Z=!1},t.isValidAttribute=function(qe,ye,Fe){Ht||Le({});const ot=ht(qe),Nt=ht(ye);return Tt(ot,Nt,Fe)},t.addHook=function(qe,ye){typeof ye=="function"&&(D[qe]=D[qe]||[],Wf(D[qe],ye))},t.removeHook=function(qe){if(D[qe])return BC(D[qe])},t.removeHooks=function(qe){D[qe]&&(D[qe]=[])},t.removeAllHooks=function(){D={}},t}var GG=DM();let I2;function Fs(e){return e===""||e===null||e===void 0||e==="undefined"}const qG=(e,t=500)=>{I2||(I2=setTimeout(()=>{e(),I2=void 0},t))},MM=(e,t)=>{let a=t.getTime()+60*60*1e3*e;return new Date(a)},iy=e=>{e=Number(e);let t=Math.floor(e/3600);return t>0?t+(t==1?" hr":" hrs"):""};function Ue(e){let t={};return[...e].forEach(([n,a])=>{typeof a=="string"?t[n]=a||void 0:t[n]=a}),t}function Pt(e,t){[...e].forEach(([n,a])=>{e.delete(n)}),t(e)}function p1(e){const t=document.getElementById(e);if(!t)return!0;const n=t.getBoundingClientRect();return!(n.top>=0&&n.left>=0&&n.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&n.right<=(window.innerWidth||document.documentElement.clientWidth))}function on(e,t){if(typeof e=="object"||Array.isArray(e))return e;if(typeof e!="string")return t;try{return JSON.parse(e)}catch(n){return console.log("err",e,n),t}}function AM(e){return new Promise(t=>setTimeout(t,e))}function En(e){if(!e)return!1;let t=new Date(e);return!isNaN(t)}const IM=(e,t)=>{const n=GG.sanitize(e);return n.substring(0,t)+(n.length>t?"...":"")},h1=e=>{let t=e;const n=new Date(t),a=n.getFullYear(),r=n.getMonth()+1,i=n.getDate();return`${a}-${r.toString().padStart(2,"0")}-${i.toString().padStart(2,"0")}`},qC=e=>{let t=e;const n=new Date(t),a=n.getFullYear(),r=n.getMonth()+1,i=n.getDate();return`${a}-${r.toString().padStart(2,"0")}-${i.toString().padStart(2,"0")}`},ZG=e=>{const t=e,n=new Date(t);return n==null||n.setHours((n==null?void 0:n.getHours())-1),`${(n.getMonth()+1).toString().padStart(2,"0")}/${n.getDate().toString().padStart(2,"0")}/${n.getFullYear()} ${n.getHours().toString().padStart(2,"0")}:${n.getMinutes().toString().padStart(2,"0")}:${n.getSeconds().toString().padStart(2,"0")} ${n.getHours()>=12?"PM":"AM"}`},QG=e=>{const t=new Date(e),n=t.getFullYear().toString().slice(-2),a=(t.getMonth()+1).toString().padStart(2,"0"),r=t.getDate().toString().padStart(2,"0");return`${a}/${r}/${n}`};function W3(e){const t=/(.+),\s*(.+),\s*(.+)/,n=/(.+),\s*(.+)/,a=e.match(t),r=e.match(n);if(a){const i=a[1],o=a[3];return[i,o]}else if(r){const i=r[1],o=r[2];return[i,o]}else return[e]}const oy=({fill:e})=>s("svg",{width:"69",height:"20",viewBox:"0 0 69 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:s("path",{d:"M8.4 15.03C6.888 15.03 5.56267 14.75 4.424 14.19C3.28533 13.63 2.39867 12.8087 1.764 11.726C1.148 10.6433 0.84 9.33667 0.84 7.806C0.84 6.35 1.148 5.08067 1.764 3.998C2.39867 2.91533 3.276 2.07533 4.396 1.478C5.516 0.861999 6.832 0.553999 8.344 0.553999C9.78133 0.553999 11.0413 0.815332 12.124 1.338C13.2253 1.842 14.0747 2.58867 14.672 3.578C15.288 4.54867 15.596 5.74333 15.596 7.162C15.596 7.40467 15.5867 7.638 15.568 7.862C15.5493 8.06733 15.5213 8.27267 15.484 8.478H2.772V6.798H13.496L12.712 7.834C12.7307 7.64733 12.74 7.47 12.74 7.302C12.74 7.11533 12.74 6.92867 12.74 6.742C12.74 5.454 12.3667 4.502 11.62 3.886C10.892 3.25133 9.78133 2.934 8.288 2.934C6.62667 2.934 5.44133 3.31667 4.732 4.082C4.02267 4.84733 3.668 5.94867 3.668 7.386V8.114C3.668 9.57 4.02267 10.6807 4.732 11.446C5.44133 12.2113 6.636 12.594 8.316 12.594C9.772 12.594 10.8173 12.37 11.452 11.922C12.1053 11.4553 12.432 10.8113 12.432 9.99V9.766H15.456V10.018C15.456 11.0073 15.148 11.8847 14.532 12.65C13.9347 13.3967 13.104 13.9847 12.04 14.414C10.9947 14.8247 9.78133 15.03 8.4 15.03ZM22.2849 14.75H19.2609V0.834H22.0329V4.782L22.2849 4.922V14.75ZM22.2849 6.938H21.6129V4.586H22.2289C22.3596 3.82067 22.6209 3.13933 23.0129 2.542C23.4049 1.926 23.9276 1.44067 24.5809 1.086C25.2529 0.731332 26.0649 0.55399
* @license React
* react-dom-test-utils.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var ef=h.exports,T6=Rl.exports;function RM(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function ZC(e){if(RM(e)!==e)throw Error("Unable to find node on an unmounted component.")}function JG(e){var t=e.alternate;if(!t){if(t=RM(e),t===null)throw Error("Unable to find node on an unmounted component.");return t!==e?null:e}for(var n=e,a=t;;){var r=n.return;if(r===null)break;var i=r.alternate;if(i===null){if(a=r.return,a!==null){n=a;continue}break}if(r.child===i.child){for(i=r.child;i;){if(i===n)return ZC(r),e;if(i===a)return ZC(r),t;i=i.sibling}throw Error("Unable to find node on an unmounted component.")}if(n.return!==a.return)n=r,a=i;else{for(var o=!1,c=r.child;c;){if(c===n){o=!0,n=r,a=i;break}if(c===a){o=!0,a=r,n=i;break}c=c.sibling}if(!o){for(c=i.child;c;){if(c===n){o=!0,n=i,a=r;break}if(c===a){o=!0,a=i,n=r;break}c=c.sibling}if(!o)throw Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.")}}if(n.alternate!==a)throw Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.")}if(n.tag!==3)throw Error("Unable to find node on an unmounted component.");return n.stateNode.current===n?e:t}var jr=Object.assign;function O2(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function b0(){return!0}function QC(){return!1}function is(e){function t(n,a,r,i,o){this._reactName=n,this._targetInst=r,this.type=a,this.nativeEvent=i,this.target=o,this.currentTarget=null;for(var c in e)e.hasOwnProperty(c)&&(n=e[c],this[c]=n?n(i):i[c]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?b0:QC,this.isPropagationStopped=QC,this}return jr(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=b0)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=b0)},persist:function(){},isPersistent:b0}),t}var tf={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},KG=is(tf),Vp=jr({},tf,{view:0,detail:0});is(Vp);var P2,R2,Zf,ly=jr({},Vp,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:L6,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Zf&&(Zf&&e.type==="mousemove"?(P2=e.screenX-Zf.screenX,R2=e.screenY-Zf.screenY):R2=P2=0,Zf=e),P2)},movementY:function(e){return"movementY"in e?e.movementY:R2}});is(ly);var XG=jr({},ly,{dataTransfer:0});is(XG);var eq=jr({},Vp,{relatedTarget:0});is(eq);var tq=jr({},tf,{animationName:0,elapsedTime:0,pseudoElement:0});is(tq);var nq=jr({},tf,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}});is(nq);var aq=jr({},tf,{data:0});is(aq);var rq={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},sq={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},iq={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function oq(e){var t=this.nativeEvent;return t.getModifierState?t.getModif
font-size: .6rem;
font-weight: bold;
color: hsl(${Math.max(0,Math.min(120-120*m,120))}deg 100% 31%);`,n==null?void 0:n.key)}return(d=n==null?void 0:n.onChange)==null||d.call(n,r),r}}function q2(e,t){if(e===void 0)throw new Error(`Unexpected undefined${t?`: ${t}`:""}`);return e}const Vq=(e,t)=>Math.abs(e-t)<1,Wq=(e,t,n)=>{let a;return function(...r){e.clearTimeout(a),a=e.setTimeout(()=>t.apply(this,r),n)}},Yq=e=>e,Gq=e=>{const t=Math.max(e.startIndex-e.overscan,0),n=Math.min(e.endIndex+e.overscan,e.count-1),a=[];for(let r=t;r<=n;r++)a.push(r);return a},qq=(e,t)=>{const n=e.scrollElement;if(!n)return;const a=e.targetWindow;if(!a)return;const r=o=>{const{width:c,height:l}=o;t({width:Math.round(c),height:Math.round(l)})};if(r(n.getBoundingClientRect()),!a.ResizeObserver)return()=>{};const i=new a.ResizeObserver(o=>{const c=o[0];if(c!=null&&c.borderBoxSize){const l=c.borderBoxSize[0];if(l){r({width:l.inlineSize,height:l.blockSize});return}}r(n.getBoundingClientRect())});return i.observe(n,{box:"border-box"}),()=>{i.unobserve(n)}},r9={passive:!0},Zq=typeof window=="undefined"?!0:"onscrollend"in window,Qq=(e,t)=>{const n=e.scrollElement;if(!n)return;const a=e.targetWindow;if(!a)return;let r=0;const i=Zq?()=>{}:Wq(a,()=>{t(r,!1)},e.options.isScrollingResetDelay),o=d=>()=>{r=n[e.options.horizontal?"scrollLeft":"scrollTop"],i(),t(r,d)},c=o(!0),l=o(!1);return l(),n.addEventListener("scroll",c,r9),n.addEventListener("scrollend",l,r9),()=>{n.removeEventListener("scroll",c),n.removeEventListener("scrollend",l)}},Jq=(e,t,n)=>{if(t!=null&&t.borderBoxSize){const a=t.borderBoxSize[0];if(a)return Math.round(a[n.options.horizontal?"inlineSize":"blockSize"])}return Math.round(e.getBoundingClientRect()[n.options.horizontal?"width":"height"])},Kq=(e,{adjustments:t=0,behavior:n},a)=>{var r,i;const o=e+t;(i=(r=a.scrollElement)==null?void 0:r.scrollTo)==null||i.call(r,{[a.options.horizontal?"left":"top"]:o,behavior:n})};class Xq{constructor(t){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollToIndexTimeoutId=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollDirection=null,this.scrollAdjustments=0,this.measureElementCache=new Map,this.observer=(()=>{let n=null;const a=()=>n||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:n=new this.targetWindow.ResizeObserver(r=>{r.forEach(i=>{this._measureElement(i.target,i)})}));return{disconnect:()=>{var r;return(r=a())==null?void 0:r.disconnect()},observe:r=>{var i;return(i=a())==null?void 0:i.observe(r,{box:"border-box"})},unobserve:r=>{var i;return(i=a())==null?void 0:i.unobserve(r)}}})(),this.range=null,this.setOptions=n=>{Object.entries(n).forEach(([a,r])=>{typeof r=="undefined"&&delete n[a]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:Yq,rangeExtractor:Gq,onChange:()=>{},measureElement:Jq,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,...n}},this.notify=(n,a)=>{var d;var r,i;const{startIndex:o,endIndex:c}=(d=this.range)!=null?d:{startIndex:void 0,endIndex:void 0},l=this.calculateRange();(n||o!==(l==null?void 0:l.startIndex)||c!==(l==null?void 0:l.endIndex))&&((i=(r=this.options).onChange)==null||i.call(r,this,a))},this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(n=>n()),this.unsubs=[],this.scrollElement=null},this._didMount=()=>(this.measureElementCache.forEach(this.observer.observe),()=>{this.observer.disconnect(),this.cleanup()}),this._willUpdate=()=>{var r;var n;const a=this.options.getScrollElement();this.scrollElement!==a&&(this.cleanup(),this.scrollElement=a,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=(r=(n=this.scrollElement)==null?void 0:n.window)!=null?r:null,this._scrollToOffset(this.scrollOffset,{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,i=>{this.scrollRect=i,this.notify(
`),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(S=>` - ${S}`).join(`
`)].join(`
`));let y=u.props,w=typeof(y==null?void 0:y.className)=="function"?(...S)=>N1(y==null?void 0:y.className(...S),l.className):N1(y==null?void 0:y.className,l.className),v=w?{className:w}:{};return h.exports.cloneElement(u,Object.assign({},hA(u.props,fp(Q2(l,["ref"]))),g,d,{ref:r(u.ref,d.ref)},v))}return h.exports.createElement(i,Object.assign({},Q2(l,["ref"]),i!==h.exports.Fragment&&d,i!==h.exports.Fragment&&g),u)}function F6(){let e=h.exports.useRef([]),t=h.exports.useCallback(n=>{for(let a of e.current)a!=null&&(typeof a=="function"?a(n):a.current=n)},[]);return(...n)=>{if(!n.every(a=>a==null))return e.current=n,t}}function pZ(...e){return e.every(t=>t==null)?void 0:t=>{for(let n of e)n!=null&&(typeof n=="function"?n(t):n.current=t)}}function hA(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let a of e)for(let r in a)r.startsWith("on")&&typeof a[r]=="function"?(n[r]!=null||(n[r]=[]),n[r].push(a[r])):t[r]=a[r];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(n).map(a=>[a,void 0])));for(let a in n)Object.assign(t,{[a](r,...i){let o=n[a];for(let c of o){if((r instanceof Event||(r==null?void 0:r.nativeEvent)instanceof Event)&&r.defaultPrevented)return;c(r,...i)}}});return t}function Bt(e){var t;return Object.assign(h.exports.forwardRef(e),{displayName:(t=e.displayName)!=null?t:e.name})}function fp(e){let t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function Q2(e,t=[]){let n=Object.assign({},e);for(let a of t)a in n&&delete n[a];return n}let hZ="div";var Ds=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(Ds||{});function gZ(e,t){var n;let{features:a=1,...r}=e,i={ref:t,"aria-hidden":(a&2)===2?!0:(n=r["aria-hidden"])!=null?n:void 0,hidden:(a&4)===4?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(a&4)===4&&(a&2)!==2&&{display:"none"}}};return $t({ourProps:i,theirProps:r,slot:{},defaultTag:hZ,name:"Hidden"})}let Ms=Bt(gZ),$6=h.exports.createContext(null);$6.displayName="OpenClosedContext";var gn=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(gn||{});function Eo(){return h.exports.useContext($6)}function sf({value:e,children:t}){return R.createElement($6.Provider,{value:e},t)}function bZ(e){function t(){document.readyState!=="loading"&&(e(),document.removeEventListener("DOMContentLoaded",t))}typeof window!="undefined"&&typeof document!="undefined"&&(document.addEventListener("DOMContentLoaded",t),t())}let wi=[];bZ(()=>{function e(t){t.target instanceof HTMLElement&&t.target!==document.body&&wi[0]!==t.target&&(wi.unshift(t.target),wi=wi.filter(n=>n!=null&&n.isConnected),wi.splice(10))}window.addEventListener("click",e,{capture:!0}),window.addEventListener("mousedown",e,{capture:!0}),window.addEventListener("focus",e,{capture:!0}),document.body.addEventListener("click",e,{capture:!0}),document.body.addEventListener("mousedown",e,{capture:!0}),document.body.addEventListener("focus",e,{capture:!0})});function Bl(e){let t=e.parentElement,n=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(n=t),t=t.parentElement;let a=(t==null?void 0:t.getAttribute("disabled"))==="";return a&&yZ(n)?!1:a}function yZ(e){if(!e)return!1;let t=e.previousElementSibling;for(;t!==null;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}function xZ(e){throw new Error("Unexpected object: "+e)}var Wt=(e=>(e[e.First=0]="First",e[e.Previous=1]="Previous",e[e.Next=2]="Next",e[e.Last=3]="Last",e[e.Specific=4]="Specific",e[e.Nothing=5]="Nothing",e))(Wt||{});function S1(e,t){let n=t.resolveItems();if(n.length<=0)return null;let a=t.resolveActiveIndex(),r=a!=null?a:-1;switch(e.focus){case 0:{for(let i=0;i<n.length;++i)if(!t.resolveDisabled(n[i],i,n))return i;return a}case 1:{for(let i=r-1;i>=0;--i)if(!t.resolveDisabled(n[i],i,n))return i;return a}case 2:{for(let i=r+1;i<n.length;++i)if(!t.resolveDisabled(n[i],i,n)
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function fee(e,t){if(!!e){if(typeof e=="string")return y9(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return y9(e,t)}}function y9(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function mee(e,t){var n=e&&(typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"]);if(n!=null){var a=[],r=!0,i=!1,o,c;try{for(n=n.call(e);!(r=(o=n.next()).done)&&(a.push(o.value),!(t&&a.length===t));r=!0);}catch(l){i=!0,c=l}finally{try{!r&&n.return!=null&&n.return()}finally{if(i)throw c}}return a}}function pee(e){if(Array.isArray(e))return e}function hee(e){var t=e.apiKey,n=e.libraries,a=n===void 0?"places":n,r=e.googleMapsScriptBaseUrl,i=r===void 0?lee.GOOGLE_MAP_SCRIPT_BASE_URL:r,o=e.debounce,c=o===void 0?300:o,l=e.options,d=l===void 0?{}:l,u=e.sessionToken,g=e.language,y=g?"&language=".concat(g):"",w="".concat(i,"?key=").concat(t,"&libraries=").concat(a).concat(y),v=(0,Ur.useState)([]),S=md(v,2),m=S[0],p=S[1],b=(0,Ur.useState)(!1),x=md(b,2),k=x[0],N=x[1],_=(0,Ur.useState)(null),C=md(_,2),E=C[0],T=C[1],D=(0,Ur.useState)(!1),P=md(D,2),M=P[0],O=P[1],F=(0,Ur.useState)(!1),z=md(F,2),H=z[0],A=z[1],j=(0,Ur.useState)([]),I=md(j,2),B=I[0],Y=I[1],U=(0,Ur.useRef)(null),W=(0,Ur.useRef)(null),V=(0,Ur.useRef)(null),X=(0,Ur.useCallback)(function(){return(0,g9.loadGoogleMapScript)(i,w)},[i,w]),ne=(0,Ur.useCallback)((0,h9.default)(function(q){U.current&&q.input&&U.current.getPlacePredictions(fd(fd(fd({},u&&V.current?{sessionToken:V.current}:{}),d),q),function(te){N(!1),p(te||[])})},c),[c]),oe=(0,Ur.useCallback)((0,h9.default)(function(q){U.current&&q.input&&U.current.getQueryPredictions(fd(fd(fd({},u&&V.current?{sessionToken:V.current}:{}),d),q),function(te){O(!1),Y(te||[])})},c),[c]);return(0,Ur.useEffect)(function(){if(!!g9.isBrowser){var q=function(){if(!google)return console.error("Google has not been found. Make sure your provide apiKey prop.");U.current=new google.maps.places.AutocompleteService,W.current=new google.maps.places.PlacesService(document.createElement("div")),u&&(V.current=new google.maps.places.AutocompleteSessionToken)};t?X().then(function(){return q()}):q()}},[]),{placesService:W.current,autocompleteSessionToken:V.current,placesAutocompleteService:U.current,placePredictions:E?m:[],isPlacePredictionsLoading:k,getPlacePredictions:function(te){if(te.input){T(te.input),N(!0),ne(te);return}p([]),T(null),ne(te),N(!1)},queryPredictions:H?B:[],isQueryPredictionsLoading:M,getQueryPredictions:function(te){if(te.input){A(te.input),O(!0),oe(te);return}Y([]),A(null),oe(te),O(!1)},refreshSessionToken:function(){V.current=new google.maps.places.AutocompleteSessionToken}}}const cN=()=>f("svg",{width:"18",height:"20",viewBox:"0 0 18 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[s("path",{d:"M8.99996 10.9166C10.5187 10.9166 11.75 9.68537 11.75 8.16658C11.75 6.6478 10.5187 5.41659 8.99996 5.41659C7.48118 5.41659 6.24996 6.6478 6.24996 8.16658C6.24996 9.68537 7.48118 10.9166 8.99996 10.9166Z",stroke:"#98A2B3",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),s("path",{d:"M8.99996 19.1666C12.6666 15.4999 16.3333 12.2167 16.3333 8.16658C16.3333 4.1165 13.05 0.833252 8.99996 0.833252C4.94987 0.833252 1.66663 4.1165 1.66663 8.16658C1.66663 12.2167 5.33329 15.4999 8.99996 19.1666Z",stroke:"#98A2B3",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]});function dN({type:e,control:t,name:n,setValue:a,onClear:r,className:i,containerClassName:o,hideIcons:c,suggestionType:l,...d}){const{dispatch:u,state:g}=h.exports.useContext(we),[y,w]=h.exports.useState(g.location),{placePredictions:v,getPlacePredictions:S,isPlacePredictionsLoading:m}=lN({apiKey:"AIzaSyDDO29hDprF49HURTLsB7xnKjo-2qaOH70",options:{types:l!=null?l:["(region)"]},debounce:200});return f(Rn,{as:"div",className:`z-100 relative w-full normal-case
`).forEach(function(o){r=o.indexOf(":"),n=o.substring(0,r).trim().toLowerCase(),a=o.substring(r+1).trim(),!(!n||t[n]&&Mse[n])&&(n==="set-cookie"?t[n]?t[n].push(a):t[n]=[a]:t[n]=t[n]?t[n]+", "+a:a)}),t};const H9=Symbol("internals");function em(e){return e&&String(e).trim().toLowerCase()}function Sg(e){return e===!1||e==null?e:Re.isArray(e)?e.map(Sg):String(e)}function Ise(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let a;for(;a=n.exec(e);)t[a[1]]=a[2];return t}const Ose=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function uw(e,t,n,a,r){if(Re.isFunction(a))return a.call(this,t,n);if(r&&(t=n),!!Re.isString(t)){if(Re.isString(a))return t.indexOf(a)!==-1;if(Re.isRegExp(a))return a.test(t)}}function Pse(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,a)=>n.toUpperCase()+a)}function Rse(e,t){const n=Re.toCamelCase(" "+t);["get","set","has"].forEach(a=>{Object.defineProperty(e,a+n,{value:function(r,i,o){return this[a].call(this,t,r,i,o)},configurable:!0})})}class Ey{constructor(t){t&&this.set(t)}set(t,n,a){const r=this;function i(c,l,d){const u=em(l);if(!u)throw new Error("header name must be a non-empty string");const g=Re.findKey(r,u);(!g||r[g]===void 0||d===!0||d===void 0&&r[g]!==!1)&&(r[g||l]=Sg(c))}const o=(c,l)=>Re.forEach(c,(d,u)=>i(d,u,l));if(Re.isPlainObject(t)||t instanceof this.constructor)o(t,n);else if(Re.isString(t)&&(t=t.trim())&&!Ose(t))o(Ase(t),n);else if(Re.isHeaders(t))for(const[c,l]of t.entries())i(l,c,a);else t!=null&&i(n,t,a);return this}get(t,n){if(t=em(t),t){const a=Re.findKey(this,t);if(a){const r=this[a];if(!n)return r;if(n===!0)return Ise(r);if(Re.isFunction(n))return n.call(this,r,a);if(Re.isRegExp(n))return n.exec(r);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=em(t),t){const a=Re.findKey(this,t);return!!(a&&this[a]!==void 0&&(!n||uw(this,this[a],a,n)))}return!1}delete(t,n){const a=this;let r=!1;function i(o){if(o=em(o),o){const c=Re.findKey(a,o);c&&(!n||uw(a,a[c],c,n))&&(delete a[c],r=!0)}}return Re.isArray(t)?t.forEach(i):i(t),r}clear(t){const n=Object.keys(this);let a=n.length,r=!1;for(;a--;){const i=n[a];(!t||uw(this,this[i],i,t,!0))&&(delete this[i],r=!0)}return r}normalize(t){const n=this,a={};return Re.forEach(this,(r,i)=>{const o=Re.findKey(a,i);if(o){n[o]=Sg(r),delete n[i];return}const c=t?Pse(i):String(i).trim();c!==i&&delete n[i],n[c]=Sg(r),a[c]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return Re.forEach(this,(a,r)=>{a!=null&&a!==!1&&(n[r]=t&&Re.isArray(a)?a.join(", "):a)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const a=new this(t);return n.forEach(r=>a.set(r)),a}static accessor(t){const a=(this[H9]=this[H9]={accessors:{}}).accessors,r=this.prototype;function i(o){const c=em(o);a[c]||(Rse(r,o),a[c]=!0)}return Re.isArray(t)?t.forEach(i):i(t),this}}Ey.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);Re.reduceDescriptors(Ey.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(a){this[n]=a}}});Re.freezeMethods(Ey);var Ks=Ey;function fw(e,t){const n=this||bN,a=t||n,r=Ks.from(a.headers);let i=a.data;return Re.forEach(e,function(c){i=c.call(n,i,r.normalize(),t?t.status:void 0)}),r.normalize(),i}function xI(e){return!!(e&&e.__CANCEL__)}function uf(e,t,n){Vt.call(this,e==null?"canceled":e,Vt.ERR_CANCELED,t,n),this.name="CanceledError"}Re.inherits(uf,Vt,{__CANCEL__:!0});function wI(e,t,n){const a=n.config.validateStatus;!n.status||!a||a(n.status)?e(n):t(new Vt("Request failed with status code "+n.status,[Vt.ERR_BAD_REQUEST,Vt.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function jse(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function zse(e,t){e=e||10;const n=new Array(e),a=new Array(e);let r=0,i=0,o;return t=t!==void 0?t:1e3,function(l){const d=Date.now(),u=a[i];o||(o=d),n[r]=l,a[r]=d;let g=i,y=0;for(;g!==r;)y+=n[g++],g=g%e;if(r=(r+1)%e,r===i&&(i=(i+1)%e),d-o<t)return;const w=u&&d-u;return w?Math.round(y*1e3/w):void 0}}function Fse(e,t){let n=0;const a=1e3/t;let r=null;return function(){const o=this===!0,c=Date.now();if(o||c-n>a)return r&&(clearTimeout(r),r=null),n=c,e.apply(null,arguments);r||(r=setTimeout(()=>(r=null,n=Date.now(),e.apply(null,arguments)),a-(c-n)))}}var A1=(e,t,n=3)=>{let a=0;const r=zse(50,250);return Fse(i=>{const o=i.loaded,c=i.lengthComputable?i.total:void 0,l=o-a,d=r(l),u=o<=c;a=o;const g={loaded:o,total:c,progress:c?o/c:void 0,bytes:l,rate:d||void 0,estimated:d&&c&&u?(c-o)/d:void 0,event:i,lengthComputable:c!=null};g[t?"download":"upload"]=!0,e(g)},n)},$se=Js.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let a;function r(i){let o=i;return t&&(n.setAttribute("href",o),o=n.href),n.setAttribute("href",o),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return a=r(window.location.href),function(o){const c=Re.isString(o)?r(o):o;return c.protocol===a.protocol&&c.host===a.host}}():function(){return function(){return!0}}(),Bse=Js.hasStandardBrowserEnv?{write(e,t,n,a,r,i){const o=[e+"="+encodeURIComponent(t)];Re.isNumber(n)&&o.push("expires="+new Date(n).toGMTString()),Re.isString(a)&&o.push("path="+a),Re.isString(r)&&o.push("domain="+r),i===!0&&o.push("secure"),document.cookie=o.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Hse(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Use(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function vI(e,t){return e&&!Hse(t)?Use(e,t):t}const U9=e=>e instanceof Ks?{...e}:e;function Mc(e,t){t=t||{};const n={};function a(d,u,g){return Re.isPlainObject(d)&&Re.isPlainObject(u)?Re.merge.call({caseless:g},d,u):Re.isPlainObject(u)?Re.merge({},u):Re.isArray(u)?u.slice():u}function r(d,u,g){if(Re.isUndefined(u)){if(!Re.isUndefined(d))return a(void 0,d,g)}else return a(d,u,g)}function i(d,u){if(!Re.isUndefined(u))return a(void 0,u)}function o(d,u){if(Re.isUndefined(u)){if(!Re.isUndefined(d))return a(void 0,d)}else return a(void 0,u)}function c(d,u,g){if(g in t)return a(d,u);if(g in e)return a(void 0,d)}const l={url:i,method:i,data:i,baseURL:o,transformRequest:o,transformRespo
`+i.map(G9).join(`
`):" "+G9(i[0]):"as no adapter specified";throw new Vt("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return a},adapters:u4};function mw(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new uf(null,e)}function q9(e){return mw(e),e.headers=Ks.from(e.headers),e.data=fw.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),SI.getAdapter(e.adapter||bN.adapter)(e).then(function(a){return mw(e),a.data=fw.call(e,e.transformResponse,a),a.headers=Ks.from(a.headers),a},function(a){return xI(a)||(mw(e),a&&a.response&&(a.response.data=fw.call(e,e.transformResponse,a.response),a.response.headers=Ks.from(a.response.headers))),Promise.reject(a)})}const kI="1.7.2",yN={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{yN[e]=function(a){return typeof a===e||"a"+(t<1?"n ":" ")+e}});const Z9={};yN.transitional=function(t,n,a){function r(i,o){return"[Axios v"+kI+"] Transitional option '"+i+"'"+o+(a?". "+a:"")}return(i,o,c)=>{if(t===!1)throw new Vt(r(o," has been removed"+(n?" in "+n:"")),Vt.ERR_DEPRECATED);return n&&!Z9[o]&&(Z9[o]=!0,console.warn(r(o," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,o,c):!0}};function tie(e,t,n){if(typeof e!="object")throw new Vt("options must be an object",Vt.ERR_BAD_OPTION_VALUE);const a=Object.keys(e);let r=a.length;for(;r-- >0;){const i=a[r],o=t[i];if(o){const c=e[i],l=c===void 0||o(c,i,e);if(l!==!0)throw new Vt("option "+i+" must be "+l,Vt.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Vt("Unknown option "+i,Vt.ERR_BAD_OPTION)}}var f4={assertOptions:tie,validators:yN};const Uo=f4.validators;class O1{constructor(t){this.defaults=t,this.interceptors={request:new B9,response:new B9}}async request(t,n){try{return await this._request(t,n)}catch(a){if(a instanceof Error){let r;Error.captureStackTrace?Error.captureStackTrace(r={}):r=new Error;const i=r.stack?r.stack.replace(/^.+\n/,""):"";try{a.stack?i&&!String(a.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(a.stack+=`
`+i):a.stack=i}catch{}}throw a}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Mc(this.defaults,n);const{transitional:a,paramsSerializer:r,headers:i}=n;a!==void 0&&f4.assertOptions(a,{silentJSONParsing:Uo.transitional(Uo.boolean),forcedJSONParsing:Uo.transitional(Uo.boolean),clarifyTimeoutError:Uo.transitional(Uo.boolean)},!1),r!=null&&(Re.isFunction(r)?n.paramsSerializer={serialize:r}:f4.assertOptions(r,{encode:Uo.function,serialize:Uo.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o=i&&Re.merge(i.common,i[n.method]);i&&Re.forEach(["delete","get","head","post","put","patch","common"],v=>{delete i[v]}),n.headers=Ks.concat(o,i);const c=[];let l=!0;this.interceptors.request.forEach(function(S){typeof S.runWhen=="function"&&S.runWhen(n)===!1||(l=l&&S.synchronous,c.unshift(S.fulfilled,S.rejected))});const d=[];this.interceptors.response.forEach(function(S){d.push(S.fulfilled,S.rejected)});let u,g=0,y;if(!l){const v=[q9.bind(this),void 0];for(v.unshift.apply(v,c),v.push.apply(v,d),y=v.length,u=Promise.resolve(n);g<y;)u=u.then(v[g++],v[g++]);return u}y=c.length;let w=n;for(g=0;g<y;){const v=c[g++],S=c[g++];try{w=v(w)}catch(m){S.call(this,m);break}}try{u=q9.call(this,w)}catch(v){return Promise.reject(v)}for(g=0,y=d.length;g<y;)u=u.then(d[g++],d[g++]);return u}getUri(t){t=Mc(this.defaults,t);const n=vI(t.baseURL,t.url);return gI(n,t.params,t.paramsSerializer)}}Re.forEach(["delete","get","head","options"],function(t){O1.prototype[t]=function(n,a){return this.request(Mc(a||{},{method:t,url:n,data:(a||{}).data}))}});Re.forEach(["post","put","patch"],function(t){function n(a){return function(i,o,c){return this.request(Mc(c||{},{method:t,headers:a?{"Content-Type":"multipart/form-data"}:{},url:i,data:o}))}}O1.prototype[t]=n(),O1.prototype[t+"Form"]=n(!0)});var kg=O1;class xN{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(i){n=i});const a=this;this.promise.then(r=>{if(!a._listeners)return;let i=a._listeners.length;for(;i-- >0;)a._listeners[i](r);a._listeners=null}),this.promise.then=r=>{let i;const o=new Promise(c=>{a.subscribe(c),i=c}).then(r);return o.cancel=function(){a.unsubscribe(i)},o},t(function(i,o,c){a.reason||(a.reason=new uf(i,o,c),n(a.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new xN(function(r){t=r}),cancel:t}}}var nie=xN;function aie(e){return function(n){return e.apply(null,n)}}function rie(e){return Re.isObject(e)&&e.isAxiosError===!0}const m4={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(m4).forEach(([e,t])=>{m4[t]=e});var sie=m4;function CI(e){const t=new kg(e),n=rI(kg.pr
//! version : 2.30.1
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
//! license : MIT
//! momentjs.com
var EI;function Te(){return EI.apply(null,arguments)}function oie(e){EI=e}function ai(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function _c(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function Sn(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function wN(e){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(e).length===0;var t;for(t in e)if(Sn(e,t))return!1;return!0}function Lr(e){return e===void 0}function vo(e){return typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]"}function rh(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function TI(e,t){var n=[],a,r=e.length;for(a=0;a<r;++a)n.push(t(e[a],a));return n}function ul(e,t){for(var n in t)Sn(t,n)&&(e[n]=t[n]);return Sn(t,"toString")&&(e.toString=t.toString),Sn(t,"valueOf")&&(e.valueOf=t.valueOf),e}function Pi(e,t,n,a){return JI(e,t,n,a,!0).utc()}function lie(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function Zt(e){return e._pf==null&&(e._pf=lie()),e._pf}var p4;Array.prototype.some?p4=Array.prototype.some:p4=function(e){var t=Object(this),n=t.length>>>0,a;for(a=0;a<n;a++)if(a in t&&e.call(this,t[a],a,t))return!0;return!1};function vN(e){var t=null,n=!1,a=e._d&&!isNaN(e._d.getTime());if(a&&(t=Zt(e),n=p4.call(t.parsedDateParts,function(r){return r!=null}),a=t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n),e._strict&&(a=a&&t.charsLeftOver===0&&t.unusedTokens.length===0&&t.bigHour===void 0)),Object.isFrozen==null||!Object.isFrozen(e))e._isValid=a;else return a;return e._isValid}function Ly(e){var t=Pi(NaN);return e!=null?ul(Zt(t),e):Zt(t).userInvalidated=!0,t}var J9=Te.momentProperties=[],hw=!1;function _N(e,t){var n,a,r,i=J9.length;if(Lr(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),Lr(t._i)||(e._i=t._i),Lr(t._f)||(e._f=t._f),Lr(t._l)||(e._l=t._l),Lr(t._strict)||(e._strict=t._strict),Lr(t._tzm)||(e._tzm=t._tzm),Lr(t._isUTC)||(e._isUTC=t._isUTC),Lr(t._offset)||(e._offset=t._offset),Lr(t._pf)||(e._pf=Zt(t)),Lr(t._locale)||(e._locale=t._locale),i>0)for(n=0;n<i;n++)a=J9[n],r=t[a],Lr(r)||(e[a]=r);return e}function sh(e){_N(this,e),this._d=new Date(e._d!=null?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),hw===!1&&(hw=!0,Te.updateOffset(this),hw=!1)}function ri(e){return e instanceof sh||e!=null&&e._isAMomentObject!=null}function LI(e){Te.suppressDeprecationWarnings===!1&&typeof console!="undefined"&&console.warn&&console.warn("Deprecation warning: "+e)}function Is(e,t){var n=!0;return ul(function(){if(Te.deprecationHandler!=null&&Te.deprecationHandler(null,e),n){var a=[],r,i,o,c=arguments.length;for(i=0;i<c;i++){if(r="",typeof arguments[i]=="object"){r+=`
[`+i+"] ";for(o in arguments[0])Sn(arguments[0],o)&&(r+=o+": "+arguments[0][o]+", ");r=r.slice(0,-2)}else r=arguments[i];a.push(r)}LI(e+`
Arguments: `+Array.prototype.slice.call(a).join("")+`
`+new Error().stack),n=!1}return t.apply(this,arguments)},t)}var K9={};function DI(e,t){Te.deprecationHandler!=null&&Te.deprecationHandler(e,t),K9[e]||(LI(t),K9[e]=!0)}Te.suppressDeprecationWarnings=!1;Te.deprecationHandler=null;function Ri(e){return typeof Function!="undefined"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function cie(e){var t,n;for(n in e)Sn(e,n)&&(t=e[n],Ri(t)?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function h4(e,t){var n=ul({},e),a;for(a in t)Sn(t,a)&&(_c(e[a])&&_c(t[a])?(n[a]={},ul(n[a],e[a]),ul(n[a],t[a])):t[a]!=null?n[a]=t[a]:delete n[a]);for(a in e)Sn(e,a)&&!Sn(t,a)&&_c(e[a])&&(n[a]=ul({},n[a]));return n}function NN(e){e!=null&&this.set(e)}var g4;Object.keys?g4=Object.keys:g4=function(e){var t,n=[];for(t in e)Sn(e,t)&&n.push(t);return n};var die={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function uie(e,t,n){var a=this._calendar[e]||this._calendar.sameElse;return Ri(a)?a.call(t,n):a}function Li(e,t,n){var a=""+Math.abs(e),r=t-a.length,i=e>=0;return(i?n?"+":"":"-")+Math.pow(10,Math.max(0,r)).toString().substr(1)+a}var SN=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,_0=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,gw={},hu={};function Ct(e,t,n,a){var r=a;typeof a=="string"&&(r=function(){return this[a]()}),e&&(hu[e]=r),t&&(hu[t[0]]=function(){return Li(r.apply(this,arguments),t[1],t[2])}),n&&(hu[n]=function(){return this.localeData().ordinal(r.apply(this,arguments),e)})}function fie(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function mie(e){var t=e.match(SN),n,a;for(n=0,a=t.length;n<a;n++)hu[t[n]]?t[n]=hu[t[n]]:t[n]=fie(t[n]);return function(r){var i="",o;for(o=0;o<a;o++)i+=Ri(t[o])?t[o].call(r,e):t[o];return i}}function Cg(e,t){return e.isValid()?(t=MI(t,e.localeData()),gw[t]=gw[t]||mie(t),gw[t](e)):e.localeData().invalidDate()}function MI(e,t){var n=5;function a(r){return t.longDateFormat(r)||r}for(_0.lastIndex=0;n>=0&&_0.test(e);)e=e.replace(_0,a),_0.lastIndex=0,n-=1;return e}var pie={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function hie(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(SN).map(function(a){return a==="MMMM"||a==="MM"||a==="DD"||a==="dddd"?a.slice(1):a}).join(""),this._longDateFormat[e])}var gie="Invalid date";function bie(){return this._invalidDate}var yie="%d",xie=/\d{1,2}/;function wie(e){return this._ordinal.replace("%d",e)}var vie={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function _ie(e,t,n,a){var r=this._relativeTime[n];return Ri(r)?r(e,t,n,a):r.replace(/%d/i,e)}function Nie(e,t){var n=this._relativeTime[e>0?"future":"past"];return Ri(n)?n(t):n.replace(/%s/i,t)}var X9={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"ye
Te.version="2.30.1";oie(Qn);Te.fn=tt;Te.min=Zoe;Te.max=Qoe;Te.now=Joe;Te.utc=Pi;Te.unix=kce;Te.months=Ece;Te.isDate=rh;Te.locale=Cl;Te.invalid=Ly;Te.duration=oi;Te.isMoment=ri;Te.weekdays=Lce;Te.parseZone=Cce;Te.localeData=To;Te.isDuration=Eg;Te.monthsShort=Tce;Te.weekdaysMin=Mce;Te.defineLocale=IN;Te.updateLocale=Coe;Te.locales=Eoe;Te.weekdaysShort=Dce;Te.normalizeUnits=Os;Te.relativeTimeRounding=rde;Te.relativeTimeThreshold=sde;Te.calendarFormat=_le;Te.prototype=tt;Te.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};let xw=new _e;function a7({showModal:e,modalShowTitle:t,modalShowMessage:n,type:a,modalBtnText:r,itemId:i,itemId2:o,table1:c,table2:l,backTo:d}){const{dispatch:u}=R.useContext(we),{dispatch:g}=R.useContext(Ee),y=je();return s(Se,{children:e?f(Se,{children:[s("div",{className:"fixed inset-0 z-50 flex items-center justify-center overflow-y-auto overflow-x-hidden outline-none focus:outline-none",children:s("div",{className:"relative my-6 mx-auto w-auto max-w-3xl md:min-w-[35rem]",children:f("div",{className:"relative flex w-full flex-col rounded-lg border-0 bg-white shadow-lg outline-none focus:outline-none",children:[f("div",{className:"flex items-start justify-between rounded-t border-solid border-slate-200 px-5 pt-6",children:[s("h3",{className:"text-xl font-semibold",children:t}),s("button",{className:"float-right ml-auto border-0 bg-transparent p-1 text-3xl font-semibold leading-none text-black outline-none focus:outline-none",onClick:()=>u({type:"SHOWMODAL",payload:{showModal:!1,modalShowMessage:"",modalBtnText:""}}),children:s("span",{className:"block h-6 w-6 bg-transparent text-2xl text-black outline-none focus:outline-none",children:"\xD7"})})]}),s("div",{className:"relative flex-auto px-6 py-2",children:s("p",{className:"text-lg my-2 normal-case leading-relaxed text-slate-500",children:n})}),f("div",{className:"flex items-center justify-end rounded-b border-solid border-slate-200 px-6 pb-6",children:[s("button",{className:"background-transparent mr-1 mb-1 rounded border border-[##98A2B3] px-6 py-2 text-sm font-bold text-[#667085] outline-none focus:outline-none",type:"button",onClick:()=>{u({type:"SHOWMODAL",payload:{showModal:!1,modalShowMessage:"",modalBtnText:""}}),a!=="Delete"&&u({type:"SHOWMODAL",payload:{showModal:!1,modalShowMessage:"You are about to log out."}})},children:"Cancel"}),s("button",{className:"ml-5 mb-1 rounded border border-[##98A2B3] !bg-gradient-to-r from-primary to-primary-dark px-6 py-2 text-sm font-medium text-white outline-none focus:outline-none",type:"button",onClick:async()=>{if(u({type:"SHOWMODAL",payload:{showModal:!1,modalShowMessage:"",modalBtnText:"",itemId:"",itemId2:"",table1:"",table2:""}}),a=="Delete"){try{await xw.callRawAPI("/v2/api/custom/ergo/soft-delete",{id:i,entity:c,type:"delete"},"POST"),pe(u,"Successful"),u({type:"DELETED",payload:{deleted:!0}}),d&&y(d)}catch(w){pe(u,w.message,4e3,"ERROR")}return}if(a=="BaasDelete"){try{xw.setTable(c),await xw.callRestAPI({id:i,deleted_at:Te().format("yyyy-MM-DD HH:mm:ss")},"PUT"),pe(u,"Successful"),u({type:"DELETED",payload:{deleted:!0}}),d&&y(d)}catch(w){pe(u,w.message,4e3,"ERROR")}return}if(a==="Edit"){u({type:"SAVE_CHANGES",payload:{saveChanges:!0}});return}g({type:"LOGOUT"}),y("/admin/login")},children:r})]})]})})}),s("div",{className:"fixed inset-0 z-40 bg-black opacity-25"})]}):null})}function r7({showReview:e,review:t}){const{dispatch:n}=R.useContext(we),a=Array(5).fill(0),[r,i]=R.useState([]),[o,c]=R.useState(""),[l,d]=R.useState(!1),[u,g]=R.useState(!1);let y=new _e;async function w(p){y.setTable("review"),g(!0);try{(await y.callRestAPI({id:p,status:1},"PUT")).error||(pe(n,"Review accepted",4e3,"Success"),n({type:"SHOW_REVIEW",payload:{showReview:!1,review:""}}))}catch(b){n({type:"SHOW_ERROR",payload:{heading:"Operation failed",message:b.message}})}g(!1)}async function v(p){var b;if(o.length<1)pe(n,"Please add a
attempted value: ${i}
`+(o!==i?`result of cast: ${o}`:""))}return r}_cast(t,n){let a=t===void 0?t:this.transforms.reduce((r,i)=>i.call(this,r,t,this),t);return a===void 0&&(a=this.getDefault()),a}_validate(t,n={},a){let{sync:r,path:i,from:o=[],originalValue:c=t,strict:l=this.spec.strict,abortEarly:d=this.spec.abortEarly}=n,u=t;l||(u=this._cast(u,bs({assert:!1},n)));let g={value:u,path:i,options:n,originalValue:c,schema:this,label:this.spec.label,sync:r,from:o},y=[];this._typeError&&y.push(this._typeError);let w=[];this._whitelistError&&w.push(this._whitelistError),this._blacklistError&&w.push(this._blacklistError),E4({args:g,value:u,path:i,sync:r,tests:y,endEarly:d},v=>{if(v)return void a(v,u);E4({tests:this.tests.concat(w),args:g,path:i,sync:r,value:u,endEarly:d},a)})}validate(t,n,a){let r=this.resolve(bs({},n,{value:t}));return typeof a=="function"?r._validate(t,n,a):new Promise((i,o)=>r._validate(t,n,(c,l)=>{c?o(c):i(l)}))}validateSync(t,n){let a=this.resolve(bs({},n,{value:t})),r;return a._validate(t,bs({},n,{sync:!0}),(i,o)=>{if(i)throw i;r=o}),r}isValid(t,n){return this.validate(t,n).then(()=>!0,a=>{if(Jr.isError(a))return!1;throw a})}isValidSync(t,n){try{return this.validateSync(t,n),!0}catch(a){if(Jr.isError(a))return!1;throw a}}_getDefault(){let t=this.spec.default;return t==null?t:typeof t=="function"?t.call(this):N4(t)}getDefault(t){return this.resolve(t||{})._getDefault()}default(t){return arguments.length===0?this._getDefault():this.clone({default:t})}strict(t=!0){let n=this.clone();return n.spec.strict=t,n}_isPresent(t){return t!=null}defined(t=oc.defined){return this.test({message:t,name:"defined",exclusive:!0,test(n){return n!==void 0}})}required(t=oc.required){return this.clone({presence:"required"}).withMutation(n=>n.test({message:t,name:"required",exclusive:!0,test(a){return this.schema._isPresent(a)}}))}notRequired(){let t=this.clone({presence:"optional"});return t.tests=t.tests.filter(n=>n.OPTIONS.name!=="required"),t}nullable(t=!0){return this.clone({nullable:t!==!1})}transform(t){let n=this.clone();return n.transforms.push(t),n}test(...t){let n;if(t.length===1?typeof t[0]=="function"?n={test:t[0]}:n=t[0]:t.length===2?n={name:t[0],test:t[1]}:n={name:t[0],message:t[1],test:t[2]},n.message===void 0&&(n.message=oc.default),typeof n.test!="function")throw new TypeError("`test` is a required parameters");let a=this.clone(),r=C0(n),i=n.exclusive||n.name&&a.exclusiveTests[n.name]===!0;if(n.exclusive&&!n.name)throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");return n.name&&(a.exclusiveTests[n.name]=!!n.exclusive),a.tests=a.tests.filter(o=>!(o.OPTIONS.name===n.name&&(i||o.OPTIONS.test===r.OPTIONS.test))),a.tests.push(r),a}when(t,n){!Array.isArray(t)&&typeof t!="string"&&(n=t,t=".");let a=this.clone(),r=IO(t).map(i=>new ho(i));return r.forEach(i=>{i.isSibling&&a.deps.push(i.key)}),a.conditions.push(new Xme(r,n)),a}typeError(t){let n=this.clone();return n._typeError=C0({message:t,name:"typeError",test(a){return a!==void 0&&!this.schema.isType(a)?this.createError({params:{type:this.schema._type}}):!0}}),n}oneOf(t,n=oc.oneOf){let a=this.clone();return t.forEach(r=>{a._whitelist.add(r),a._blacklist.delete(r)}),a._whitelistError=C0({message:n,name:"oneOf",test(r){if(r===void 0)return!0;let i=this.schema._whitelist,o=i.resolveAll(this.resolve);return o.includes(r)?!0:this.createError({params:{values:i.toArray().join(", "),resolved:o}})}}),a}notOneOf(t,n=oc.notOneOf){let a=this.clone();return t.forEach(r=>{a._blacklist.add(r),a._whitelist.delete(r)}),a._blacklistError=C0({message:n,name:"notOneOf",test(r){let i=this.schema._blacklist,o=i.resolveAll(this.resolve);return o.includes(r)?this.createError({params:{values:i.toArray().join(", "),resolved:o}}):!0}}),a}strip(t=!0){let n=this.clone();return n.spec.strip=t,n}describe(){const t=this.clone(),{label:n,meta:a}=t.spec;return{meta:a,label:n,type:t.type,oneOf:t._whitelist.describe(),notOneOf:t._blacklist.describe(),tests:t.tests.map(i=>({name:i.OPTIONS.name,params:i.OPTIONS.params})).filter((i,o,c)=>c.findIndex(l=>l.name===i.name)===o)}}}Nr.prototype
/** Iframe height auto */
body{height: min-content; overflow: hidden;}
</style>`:"")}};var zt=jd,j4={init:function(e,t){typeof t!="object"&&(t={});const n=document;this._initOptions(e,t);const a=n.createElement("DIV");a.className="sun-editor"+(t.rtl?" se-rtl":""),e.id&&(a.id="suneditor_"+e.id);const r=n.createElement("DIV");r.className="se-container";const i=this._createToolBar(n,t.buttonList,t.plugins,t),o=i.element.cloneNode(!1);o.className+=" se-toolbar-shadow",i.element.style.visibility="hidden",i.pluginCallButtons.math&&this._checkKatexMath(t.katex);const c=n.createElement("DIV");c.className="se-arrow";const l=n.createElement("DIV");l.className="se-toolbar-sticky-dummy";const d=n.createElement("DIV");d.className="se-wrapper";const u=this._initElements(t,a,i.element,c),g=u.bottomBar,y=u.wysiwygFrame,w=u.placeholder;let v=u.codeView;const S=g.resizingBar,m=g.navigation,p=g.charWrapper,b=g.charCounter,x=n.createElement("DIV");x.className="se-loading-box sun-editor-common",x.innerHTML='<div class="se-loading-effect"></div>';const k=n.createElement("DIV");k.className="se-line-breaker",k.innerHTML='<button class="se-btn">'+t.icons.line_break+"</button>";const N=n.createElement("DIV");N.className+="se-line-breaker-component";const _=N.cloneNode(!0);N.innerHTML=_.innerHTML=t.icons.line_break;const C=n.createElement("DIV");C.className="se-resizing-back";const E=n.createElement("INPUT");E.tabIndex=-1,E.style.cssText="position: absolute !important; top: -10000px !important; display: block !important; width: 0 !important; height: 0 !important; margin: 0 !important; padding: 0 !important;";const T=t.toolbarContainer;T&&(T.appendChild(i.element),T.appendChild(o));const D=t.resizingBarContainer;return S&&D&&D.appendChild(S),d.appendChild(v),w&&d.appendChild(w),T||(r.appendChild(i.element),r.appendChild(o)),r.appendChild(l),r.appendChild(d),r.appendChild(C),r.appendChild(x),r.appendChild(k),r.appendChild(N),r.appendChild(_),r.appendChild(E),S&&!D&&r.appendChild(S),a.appendChild(r),v=this._checkCodeMirror(t,v),{constructed:{_top:a,_relative:r,_toolBar:i.element,_toolbarShadow:o,_menuTray:i._menuTray,_editorArea:d,_wysiwygArea:y,_codeArea:v,_placeholder:w,_resizingBar:S,_navigation:m,_charWrapper:p,_charCounter:b,_loading:x,_lineBreaker:k,_lineBreaker_t:N,_lineBreaker_b:_,_resizeBack:C,_stickyDummy:l,_arrow:c,_focusTemp:E},options:t,plugins:i.plugins,pluginCallButtons:i.pluginCallButtons,_responsiveButtons:i.responsiveButtons}},_checkCodeMirror:function(e,t){if(e.codeMirror){const n=[{mode:"htmlmixed",htmlMode:!0,lineNumbers:!0,lineWrapping:!0},e.codeMirror.options||{}].reduce(function(r,i){for(let o in i)zt.hasOwn(i,o)&&(r[o]=i[o]);return r},{});e.height==="auto"&&(n.viewportMargin=1/0,n.height="auto");const a=e.codeMirror.src.fromTextArea(t,n);a.display.wrapper.style.cssText=t.style.cssText,e.codeMirrorEditor=a,t=a.display.wrapper,t.className+=" se-wrapper-code-mirror"}return t},_checkKatexMath:function(e){if(!e)throw Error('[SUNEDITOR.create.fail] To use the math button you need to add a "katex" object to the options.');const t=[{throwOnError:!1},e.options||{}].reduce(function(n,a){for(let r in a)zt.hasOwn(a,r)&&(n[r]=a[r]);return n},{});e.options=t},_setOptions:function(e,t,n){this._initOptions(t.element.originElement,e);const a=t.element,r=a.relative,i=a.editorArea,o=e.toolbarContainer&&e.toolbarContainer!==n.toolbarContainer,c=e.lang!==n.lang||e.buttonList!==n.buttonList||e.mode!==n.mode||o,l=this._createToolBar(document,c?e.buttonList:n.buttonList,e.plugins,e);l.pluginCallButtons.math&&this._checkKatexMath(e.katex);const d=document.createElement("DIV");d.className="se-arrow",c&&(l.element.style.visibility="hidden",o?(e.toolbarContainer.appendChild(l.element),a.toolbar.parentElement.removeChild(a.toolbar)):a.toolbar.parentElement.replaceChild(l.element,a.toolbar),a.toolbar=l.element,a._menuTray=l._menuTray,a._arrow=d);const u=this._initElements(e,a.topArea,c?l.element:a.toolbar,d),g=u.bottomBar,y=u.wysiwygFrame,w=u.placeholder;let v=u.codeView;return a.resizingBar&&zt.removeItem(a.resizingBar),g.resizingBar&&(e.resizingBarContainer&&e.resizingBarContainer!==n.resizingBarContainer?e.resizingBarCon
<html>
`+this._wd.head.outerHTML.replace(/>(?!\n)/g,`>
`)+"<body "+b+`>
`+m+`</body>
</html>`}else p=m;e.element.code.style.display="block",e.element.wysiwygFrame.style.display="none",this._setCodeView(p)},toggleFullScreen:function(m){const p=e.element.topArea,b=e.element.toolbar,x=e.element.editorArea,k=e.element.wysiwygFrame,N=e.element.code,_=this._variable;this.controllersOff();const C=b.style.display==="none"||this._isInline&&!this._inlineToolbarAttr.isShow;_.isFullScreen?(_.isFullScreen=!1,k.style.cssText=_._wysiwygOriginCssText,N.style.cssText=_._codeOriginCssText,b.style.cssText="",x.style.cssText=_._editorAreaOriginCssText,p.style.cssText=_._originCssText,o.body.style.overflow=_._bodyOverflow,r.height==="auto"&&!r.codeMirrorEditor&&g._codeViewAutoHeight(),r.toolbarContainer&&r.toolbarContainer.appendChild(b),r.stickyToolbar>-1&&l.removeClass(b,"se-toolbar-sticky"),_._fullScreenAttrs.sticky&&!r.toolbarContainer&&(_._fullScreenAttrs.sticky=!1,e.element._stickyDummy.style.display="block",l.addClass(b,"se-toolbar-sticky")),this._isInline=_._fullScreenAttrs.inline,this._isBalloon=_._fullScreenAttrs.balloon,this._isInline&&g._showToolbarInline(),r.toolbarContainer&&l.removeClass(b,"se-toolbar-balloon"),g.onScroll_window(),m&&l.changeElement(m.firstElementChild,d.expansion),e.element.topArea.style.marginTop="",l.removeClass(this._styleCommandMap.fullScreen,"active")):(_.isFullScreen=!0,_._fullScreenAttrs.inline=this._isInline,_._fullScreenAttrs.balloon=this._isBalloon,(this._isInline||this._isBalloon)&&(this._isInline=!1,this._isBalloon=!1),r.toolbarContainer&&e.element.relative.insertBefore(b,x),p.style.position="fixed",p.style.top="0",p.style.left="0",p.style.width="100%",p.style.maxWidth="100%",p.style.height="100%",p.style.zIndex="2147483647",e.element._stickyDummy.style.display!==""&&(_._fullScreenAttrs.sticky=!0,e.element._stickyDummy.style.display="none",l.removeClass(b,"se-toolbar-sticky")),_._bodyOverflow=o.body.style.overflow,o.body.style.overflow="hidden",_._editorAreaOriginCssText=x.style.cssText,_._wysiwygOriginCssText=k.style.cssText,_._codeOriginCssText=N.style.cssText,x.style.cssText=b.style.cssText="",k.style.cssText=(k.style.cssText.match(/\s?display(\s+)?:(\s+)?[a-zA-Z]+;/)||[""])[0]+r._editorStyles.editor,N.style.cssText=(N.style.cssText.match(/\s?display(\s+)?:(\s+)?[a-zA-Z]+;/)||[""])[0],b.style.width=k.style.height=N.style.height="100%",b.style.position="relative",b.style.display="block",_.innerHeight_fullScreen=c.innerHeight-b.offsetHeight,x.style.height=_.innerHeight_fullScreen-r.fullScreenOffset+"px",m&&l.changeElement(m.firstElementChild,d.reduction),r.iframe&&r.height==="auto"&&(x.style.overflow="auto",this._iframeAutoHeight()),e.element.topArea.style.marginTop=r.fullScreenOffset+"px",l.addClass(this._styleCommandMap.fullScreen,"active")),C&&y.toolbar.hide(),typeof y.toggleFullScreen=="function"&&y.toggleFullScreen(this._variable.isFullScreen,this)},print:function(){const m=l.createElement("IFRAME");m.style.display="none",o.body.appendChild(m);const p=r.printTemplate?r.printTemplate.replace(/\{\{\s*contents\s*\}\}/i,this.getContents(!0)):this.getContents(!0),b=l.getIframeDocument(m),x=this._wd;if(r.iframe){const k=r._printClass!==null?'class="'+r._printClass+'"':r.fullPage?l.getAttributesToString(x.body,["contenteditable"]):'class="'+r._editableClass+'"';b.write("<!DOCTYPE html><html><head>"+x.head.innerHTML+"</head><body "+k+">"+p+"</body></html>")}else{const k=o.head.getElementsByTagName("link"),N=o.head.getElementsByTagName("style");let _="";for(let C=0,E=k.length;C<E;C++)_+=k[C].outerHTML;for(let C=0,E=N.length;C<E;C++)_+=N[C].outerHTML;b.write("<!DOCTYPE html><html><head>"+_+'</head><body class="'+(r._printClass!==null?r._printClass:r._editableClass)+'">'+p+"</body></html>")}this.showLoading(),c.setTimeout(function(){try{if(m.focus(),l.isIE_Edge||l.isChromium||!!o.documentMode||!!c.StyleMedia)try{m.contentWindow.document.execCommand("print",!1,null)}catch{m.contentWindow.print()}else m.contentWindow.print()}catch(k){throw Error("[SUNEDITOR.core.print.fail] error: "+k)}finally{u.closeLoading(),l.removeItem(m)}},1e3)},preview:function(){u.submenuOff(),u.containerOff(),u.
`;let E=p?0:this._variable.codeIndent*1;return E=E>0?new c.Array(E+1).join(" "):"",function T(D,P){const M=D.childNodes,O=k.test(D.nodeName),F=O?P:"";for(let z=0,H=M.length,A,j,I,B,Y,U;z<H;z++){if(A=M[z],B=k.test(A.nodeName),j=B?C:"",I=_(A)&&!O&&!/^(TH|TD)$/i.test(D.nodeName)?C:"",A.nodeType===8){b+=`
<!-- `+A.textContent.trim()+" -->"+j;continue}if(A.nodeType===3){l.isList(A.parentElement)||(b+=l._HTMLConvertor(/^\n+$/.test(A.data)?"":A.data));continue}if(A.childNodes.length===0){b+=(/^HR$/i.test(A.nodeName)?C:"")+(/^PRE$/i.test(A.parentElement.nodeName)&&/^BR$/i.test(A.nodeName)?"":F)+A.outerHTML+j;continue}A.outerHTML?(Y=A.nodeName.toLowerCase(),U=F||B?P:"",b+=(I||(O?"":j))+U+A.outerHTML.match(x("<"+Y+"[^>]*>","i"))[0]+j,T(A,P+E),b+=(/\n$/.test(b)?U:"")+"</"+Y+">"+(I||j||O||/^(TH|TD)$/i.test(A.nodeName)?C:"")):b+=new c.XMLSerializer().serializeToString(A)}}(N,""),b.trim()+C},addDocEvent:function(m,p,b){o.addEventListener(m,p,b),r.iframe&&this._wd.addEventListener(m,p)},removeDocEvent:function(m,p){o.removeEventListener(m,p),r.iframe&&this._wd.removeEventListener(m,p)},_charCount:function(m){const p=r.maxCharCount,b=r.charCounterType;let x=0;if(m&&(x=this.getCharLength(m,b)),this._setCharCount(),p>0){let k=!1;const N=y.getCharCount(b);if(N>p){if(k=!0,x>0){this._editorRange();const _=this.getRange(),C=_.endOffset-1,E=this.getSelectionNode().textContent,T=_.endOffset-(N-p);this.getSelectionNode().textContent=E.slice(0,T<0?0:T)+E.slice(_.endOffset,E.length),this.setRange(_.endContainer,C,_.endContainer,C)}}else N+x>p&&(k=!0);if(k&&(this._callCounterBlink(),x>0))return!1}return!0},checkCharCount:function(m,p){if(r.maxCharCount){const b=p||r.charCounterType,x=this.getCharLength(typeof m=="string"?m:this._charTypeHTML&&m.nodeType===1?m.outerHTML:m.textContent,b);if(x>0&&x+y.getCharCount(b)>r.maxCharCount)return this._callCounterBlink(),!1}return!0},getCharLength:function(m,p){return/byte/.test(p)?l.getByteLength(m):m.length},resetResponsiveToolbar:function(){u.controllersOff();const m=g._responsiveButtonSize;if(m){let p=0;(u._isBalloon||u._isInline)&&r.toolbarWidth==="auto"?p=e.element.topArea.offsetWidth:p=e.element.toolbar.offsetWidth;let b="default";for(let x=1,k=m.length;x<k;x++)if(p<m[x]){b=m[x]+"";break}g._responsiveCurrentSize!==b&&(g._responsiveCurrentSize=b,y.setToolbarButtons(g._responsiveButtons[b]))}},_setCharCount:function(){e.element.charCounter&&c.setTimeout(function(m,p){this.textContent&&m&&(this.textContent=m.getCharCount(p.charCounterType))}.bind(e.element.charCounter,y,r),0)},_callCounterBlink:function(){const m=e.element.charWrapper;m&&!l.hasClass(m,"se-blink")&&(l.addClass(m,"se-blink"),c.setTimeout(function(){l.removeClass(m,"se-blink")},600))},_checkComponents:function(){for(let m=0,p=this._fileInfoPluginsCheck.length;m<p;m++)this._fileInfoPluginsCheck[m]()},_resetComponents:function(){for(let m=0,p=this._fileInfoPluginsReset.length;m<p;m++)this._fileInfoPluginsReset[m]()},_setCodeView:function(m){r.codeMirrorEditor?r.codeMirrorEditor.getDoc().setValue(m):e.element.code.value=m},_getCodeView:function(){return r.codeMirrorEditor?r.codeMirrorEditor.getDoc().getValue():e.element.code.value},_setKeyEffect:function(m){const p=this.commandMap,b=this.activePlugins;for(let x in p)m.indexOf(x)>-1||!l.hasOwn(p,x)||(b.indexOf(x)>-1?n[x].active.call(this,null):p.OUTDENT&&/^OUTDENT$/i.test(x)?l.isImportantDisabled(p.OUTDENT)||p.OUTDENT.setAttribute("disabled",!0):p.INDENT&&/^INDENT$/i.test(x)?l.isImportantDisabled(p.INDENT)||p.INDENT.removeAttribute("disabled"):l.removeClass(p[x],"active"))},_init:function(m,p){const b=c.RegExp;this._ww=r.iframe?e.element.wysiwygFrame.contentWindow:c,this._wd=o,this._charTypeHTML=r.charCounterType==="byte-html",this.wwComputedStyle=c.getComputedStyle(e.element.wysiwyg),this._editorHeight=e.element.wysiwygFrame.offsetHeight,this._editorHeightPadding=l.getNumber(this.wwComputedStyle.getPropertyValue("padding-top"))+l.getNumber(this.wwComputedStyle.getPropertyValue("padding-bottom")),this._classNameFilter=function(j){return this.test(j)?j:""}.bind(r.allowedClassNames);const x=r.__allowedScriptTag?"":"script|";if(this.__scriptTagRegExp=new b("<(script)[^>]*>([\\s\\S]*?)<\\/\\1>|<script[^>]*\\/?>","gi"),this.__disallowedTagsRegExp=new b("<("+x+"style)[^>]*>([\\s\\S]*?)<\\/\\1>|<("+x+"style)[^>]*\\/?>","gi"),this.__disallowedTagNameRegExp=new b("^("+x+"meta|link|style|[a-z]+:[a-z]+)
`+u.convertHTMLForCodeView(p,!1));else{const b=l.createElement("DIV");b.innerHTML=p;const x=e.element.wysiwyg,k=b.children;for(let N=0,_=k.length;N<_;N++)k[N]&&x.appendChild(k[N])}u.history.push(!1)},readOnly:function(m){u.isReadOnly=m,l.setDisabledButtons(!!m,u.resizingDisabledButtons),m?(u.controllersOff(),u.submenuActiveButton&&u.submenuActiveButton.disabled&&u.submenuOff(),u._moreLayerActiveButton&&u._moreLayerActiveButton.disabled&&u.moreLayerOff(),u.containerActiveButton&&u.containerActiveButton.disabled&&u.containerOff(),u.modalForm&&u.plugins.dialog.close.call(u),e.element.code.setAttribute("readOnly","true"),l.addClass(e.element.wysiwygFrame,"se-read-only")):(e.element.code.removeAttribute("readOnly"),l.removeClass(e.element.wysiwygFrame,"se-read-only")),r.codeMirrorEditor&&r.codeMirrorEditor.setOption("readOnly",!!m)},disable:function(){this.toolbar.disable(),this.wysiwyg.disable()},disabled:function(){this.disable()},enable:function(){this.toolbar.enable(),this.wysiwyg.enable()},enabled:function(){this.enable()},show:function(){const m=e.element.topArea.style;m.display==="none"&&(m.display=r.display)},hide:function(){e.element.topArea.style.display="none"},destroy:function(){u.submenuOff(),u.containerOff(),u.controllersOff(),u.notice&&u.notice.close.call(u),u.modalForm&&u.plugins.dialog.close.call(u),u.history._destroy(),g._removeEvent(),l.removeItem(e.element.toolbar),l.removeItem(e.element.topArea);for(let m in u.functions)l.hasOwn(u,m)&&delete u.functions[m];for(let m in u)l.hasOwn(u,m)&&delete u[m];for(let m in g)l.hasOwn(g,m)&&delete g[m];for(let m in e)l.hasOwn(e,m)&&delete e[m];for(let m in t)l.hasOwn(t,m)&&delete t[m];for(let m in this)l.hasOwn(this,m)&&delete this[m]},toolbar:{disable:function(){u.submenuOff(),u.moreLayerOff(),u.containerOff(),e.tool.cover.style.display="block"},disabled:function(){this.disable()},enable:function(){e.tool.cover.style.display="none"},enabled:function(){this.enable()},show:function(){u._isInline?g._showToolbarInline():(e.element.toolbar.style.display="",e.element._stickyDummy.style.display=""),g.onResize_window()},hide:function(){u._isInline?g._hideToolbar():(e.element.toolbar.style.display="none",e.element._stickyDummy.style.display="none"),g.onResize_window()}},wysiwyg:{disable:function(){u.controllersOff(),u.modalForm&&u.plugins.dialog.close.call(u),e.element.wysiwyg.setAttribute("contenteditable",!1),u.isDisabled=!0,r.codeMirrorEditor?r.codeMirrorEditor.setOption("readOnly",!0):e.element.code.setAttribute("disabled","disabled")},enable:function(){e.element.wysiwyg.setAttribute("contenteditable",!0),u.isDisabled=!1,r.codeMirrorEditor?r.codeMirrorEditor.setOption("readOnly",!1):e.element.code.removeAttribute("disabled")}}};u.functions=y,u.options=r;let w=e.element,v=w.originElement,S=w.topArea;return v.style.display="none",S.style.display="block",r.iframe&&w.wysiwygFrame.addEventListener("load",function(){l._setIframeDocument(this,r),u._editorInit(!1,r.value),r.value=null}),typeof v.nextElementSibling=="object"?v.parentNode.insertBefore(S,v.nextElementSibling):v.parentNode.appendChild(S),w.editorArea.appendChild(w.wysiwygFrame),w=v=S=null,r.iframe||(u._editorInit(!1,r.value),r.value=null),y}var i2e={init:function(e){return{create:function(t,n){return this.create(t,n,e)}.bind(this)}},create:function(e,t,n){zt._propertiesInit(),typeof t!="object"&&(t={}),n&&(t=[n,t].reduce(function(i,o){for(let c in o)if(!!zt.hasOwn(o,c))if(c==="plugins"&&o[c]&&i[c]){let l=i[c],d=o[c];l=l.length?l:Object.keys(l).map(function(u){return l[u]}),d=d.length?d:Object.keys(d).map(function(u){return d[u]}),i[c]=d.filter(function(u){return l.indexOf(u)===-1}).concat(l)}else i[c]=o[c];return i},{}));const a=typeof e=="string"?document.getElementById(e):e;if(!a)throw Error(typeof e=="string"?'[SUNEDITOR.create.fail] The element for that id was not found (ID:"'+e+'")':"[SUNEDITOR.create.fail] suneditor requires textarea's element or id value");const r=j4.init(a,t);if(r.constructed._top.id&&document.getElementById(r.constructed._top.id))throw Error('[SUNEDITOR.create.fail] The ID of the suneditor y
`);iE(g,c)},iE=function(e,t){var n="\uFEFF",a=new Blob([n,e],{type:bwe}),r=document.createElement("a");r.href=URL.createObjectURL(a),r.download=t,r.style.display="none",document.body.appendChild(r),r.click(),document.body.removeChild(r)},xwe=function(e){return/csv$/i.test(e)?e:"".concat(e,".csv")},wwe=Object.freeze(Object.defineProperty({__proto__:null,default:ywe},Symbol.toStringTag,{value:"Module"})),vwe=M_(wwe);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=r(h.exports),n=r(vwe),a=["data","filename","delimiter","headers"];function r(u){return u&&u.__esModule?u:{default:u}}function i(){return i=Object.assign?Object.assign.bind():function(u){for(var g=1;g<arguments.length;g++){var y=arguments[g];for(var w in y)Object.prototype.hasOwnProperty.call(y,w)&&(u[w]=y[w])}return u},i.apply(this,arguments)}function o(u,g){if(u==null)return{};var y=c(u,g),w,v;if(Object.getOwnPropertySymbols){var S=Object.getOwnPropertySymbols(u);for(v=0;v<S.length;v++)w=S[v],!(g.indexOf(w)>=0)&&(!Object.prototype.propertyIsEnumerable.call(u,w)||(y[w]=u[w]))}return y}function c(u,g){if(u==null)return{};var y={},w=Object.keys(u),v,S;for(S=0;S<w.length;S++)v=w[S],!(g.indexOf(v)>=0)&&(y[v]=u[v]);return y}var l=function(g){var y=g.data,w=g.filename,v=g.delimiter,S=g.headers,m=o(g,a);return t.default.createElement("button",i({onClick:function(){return(0,n.default)({data:y,filename:w,delimiter:v,headers:S})}},m),g.children||"Download Data")},d=l;e.default=d})(eR);var qy=zU(eR);let oE=new _e;const _we=()=>{var U,W,V,X,ne,oe,q,te;const{dispatch:e}=R.useContext(Ee),{dispatch:t}=R.useContext(we),[n,a]=R.useState([]),[r,i]=R.useState(10),[o,c]=R.useState(0),[l,d]=R.useState(0),[u,g]=R.useState(0),[y,w]=R.useState(!1),[v,S]=R.useState(!1),[m,p]=R.useState(!1),[b,x]=R.useState([]),[k,N]=lt(),[_]=lt((U=localStorage.getItem("admin_payout_filter"))!=null?U:""),C=je(),E=Qe({host_name:ge(),customer_name:ge(),status:ge()}),{reset:T,register:D,handleSubmit:P,setError:M,formState:{errors:O}}=Oe({resolver:Xe(E),defaultValues:(()=>{let G=Ue(k);return Object.keys(G).length>0?G:Ue(_)})()}),F=[{key:"",value:"All"},{key:"0",value:"Pending"},{key:"1",value:"Initiated"},{key:"2",value:"Paid"},{key:"3",value:"Cancelled"}],z=[{key:"0",value:"Pending"},{key:"1",value:"Initiated"},{key:"2",value:"Paid"},{key:"3",value:"Cancelled"}];function H(G){(async function(){i(G),await I(0,G)})()}function A(){(async function(){await I(u-1>0?u-1:0,r)})()}function j(){(async function(){await I(u+1<=o?u+1:0,r)})()}async function I(G,J){var Q;let K=Ue(k);K=Object.keys(K).length<1?Ue(_):K,K.id=(Q=K.id)==null?void 0:Q.replace(mt.PAYOUT,"");try{const Z=await oE.callRawAPI("/v2/api/custom/ergo/payout/PAGINATE",{where:[K?`${K.id?`ergo_payout.id LIKE '%${K.id}%'`:"1"} AND ${K.customer_name?`customer.first_name LIKE '%${K.customer_name}%' OR customer.last_name LIKE '%${K.customer_name}%'`:"1"} AND ${K.status?`ergo_payout.status LIKE '%${K.status}%'`:"1"} AND ${K.host_name?`ergo_user.first_name LIKE '%${K.host_name}%' OR ergo_user.last_name LIKE '%${K.host_name}%'`:"1"}`:1,"ergo_payout.deleted_at IS NULL"],page:G,limit:J,sortId:"update_at",direction:"DESC"},"POST"),{list:se,total:ce,limit:le,num_pages:ae,page:ie}=Z;a(se),i(le),c(ae),g(ie),d(ce),w(ie>1),S(ie+1<=ae)}catch(Z){me(e,Z.message),pe(t,Z.message,4e3,"ERROR")}}const B=G=>{k.set("id",G.id),k.set("host_name",G.host_name),k.set("customer_name",G.customer_name),k.set("status",G.status),N(k),localStorage.setItem("admin_payout_filter",k.toString()),I(1,r)};R.useEffect(()=>{t({type:"SETPATH",payload:{path:"payout"}}),async function(){await I(1,r)}()},[]);const Y=async G=>{G.bulk_status==1&&(G.initiated_at=new Date().toISOString());try{await Promise.all(b.map(J=>oE.callRawAPI("/v2/api/custom/ergo/payout/PUT",{id:J,status:G.bulk_status,initiated_at:G.initiated_at},"POST"))),pe(t,"Successful"),x([]),p(!1),I(1,r)}catch(J){me(e,J.message),pe(t,J.message,4e3,"ERROR")}};return f(Se,{children:[f("form",{className:"mb-10 rounded bg-white p-5 shadow",onSubmit:P(B),children:[f("div",{className:"flex justify-between",children:
AND ${te.host_id?`ergo_property.host_id = ${te.host_id}`:"1"}
AND ${te.email?`ergo_user.email LIKE '%${te.email}%'`:"1"}
AND ${te.zip?`ergo_property.zip LIKE '%${te.zip}%'`:"1"}
AND ${te.country?`ergo_property.country LIKE '%${te.country}%'`:"1"}`:1,"ergo_property.deleted_at IS NULL"],page:oe,limit:q,sortId:"update_at",direction:"DESC"},"POST"),{list:K,total:Q,limit:Z,num_pages:se,page:ce}=J,le=P(K,!1);i(le),c(Z),d(se),w(ce),g(Q),S(ce>1),p(ce+1<=se)}catch(J){console.log("ERROR",J),me(e,J.message),pe(t,J.message,4e3,"ERROR")}}const H=oe=>{b.set("id",oe.id),b.set("city",oe.city),b.set("zip",oe.zip),b.set("email",oe.email),x(b),localStorage.setItem("admin_property_filter",b.toString()),z(1,o)};R.useEffect(()=>{t({type:"SETPATH",payload:{path:"property"}}),A(),z(1,o)},[]);async function A(){var oe;Dw.setTable("settings");try{const q=await Dw.callRestAPI({limit:1,page:1,payload:{key_name:"admin_property_space_column_order"}},"PAGINATE");Array.isArray(q.list)&&q.list.length>0&&a(va((oe=q.list[0].optional_data)!=null?oe:[],_a.admin_property))}catch(q){me(e,q.message),pe(t,q.message,4e3,"ERROR")}}return f(Se,{children:[f("form",{className:"rounded rounded-b-none border border-b-0 bg-white p-5",onSubmit:C(H),children:[f("div",{className:"flex justify-between",children:[s("h4",{className:"text-2xl font-medium",children:"Property"}),s(ma,{link:"/admin/add-property",text:"Add New Property"})]}),f("div",{className:"filter-form-holder mt-10 flex flex-wrap",children:[f("div",{className:"mb-4 w-full pr-2 pl-2 md:w-1/3",children:[s("label",{className:"mb-2 block text-sm font-bold text-gray-700",htmlFor:"id",children:"ID"}),s("input",{..._("id"),className:`"shadow focus:shadow-outline w-full rounded border py-2 px-3 leading-tight text-gray-700 focus:outline-none ${(I=T.id)!=null&&I.message?"border-red-500":""}`}),s("p",{className:"text-xs italic text-red-500",children:(B=T.id)==null?void 0:B.message})]}),f("div",{className:"mb-4 w-full pr-2 pl-2 md:w-1/3",children:[s("label",{className:"mb-2 block text-sm font-bold text-gray-700",htmlFor:"host_id",children:"Host's Email"}),s("input",{..._("email"),className:`"shadow focus:shadow-outline w-full rounded border py-2 px-3 leading-tight text-gray-700 focus:outline-none ${(Y=T.host_id)!=null&&Y.message?"border-red-500":""}`}),s("p",{className:"text-xs italic text-red-500",children:(U=T.host_id)==null?void 0:U.message})]}),f("div",{className:"mb-4 w-full pr-2 pl-2 md:w-1/3",children:[s("label",{className:"mb-2 block text-sm font-bold text-gray-700",htmlFor:"city",children:"City"}),s("input",{..._("city"),className:`"shadow focus:shadow-outline w-full rounded border py-2 px-3 leading-tight text-gray-700 focus:outline-none ${(W=T.city)!=null&&W.message?"border-red-500":""}`}),s("p",{className:"text-xs italic text-red-500",children:(V=T.city)==null?void 0:V.message})]}),f("div",{className:"mb-4 w-full pr-2 pl-2 md:w-1/3",children:[s("label",{className:"mb-2 block text-sm font-bold text-gray-700",htmlFor:"zip",children:"Zip Code"}),s("input",{type:"number",..._("zip"),className:`"shadow focus:shadow-outline w-full rounded border py-2 px-3 leading-tight text-gray-700 focus:outline-none ${(X=T.zip)!=null&&X.message?"border-red-500":""}`}),s("p",{className:"text-xs italic text-red-500",children:(ne=T.zip)==null?void 0:ne.message})]})]}),s(dn,{text:"Search"}),s("button",{className:"font-inter ml-2 cursor-pointer rounded-md border border-[#33D4B7] bg-gradient-to-r from-[#33D4B7] to-[#0D9895] bg-clip-text px-[66px] py-[10px] text-transparent",type:"reset",onClick:()=>{N({id:"",zip:"",host_id:"",city:""}),localStorage.removeItem("admin_property_filter"),Pt(b,x),z(y,o)},children:"Reset"})]}),s(Ln,{currentPage:y,pageSize:o,totalNumber:u,updatePageSize:M}),f("div",{className:"flex justify-end bg-white py-3 pt-5",children:[s($e,{to:"/admin/column_order/property",className:"ml-5 mb-1 mr-3 flex items-center rounded !bg-gradient-to-r from-[#33D4B7] to-[#0D9895] px-6 py-2 text-sm font-semibold text-white outline-none focus:outline-none",children:"Change Column Order"})," ",s(Ka,{id:"test-table-xls-button",className:"ml-5 mb-1 mr-3 flex items-center rounded !bg-gradient-to-r from-[#33D4B7] to-[#0D9895] px-6 py-2 text-sm font-semibold text-white outline-none focus
AND ${G.property_add_on_id?`ergo_add_on.id = '${G.property_add_on_id}'`:"1"}
AND ${G.booking_id?`booking_id = '${G.booking_id}'`:"1"}`:1,"ergo_booking_addons.deleted_at IS NULL"],page:q,limit:te,sortId:"update_at",direction:"DESC"},"POST"),{list:Z,total:se,limit:ce,num_pages:le,page:ae}=Q;console.log("list",Z);const ie=F(Z,!1);o(ie),l(ce),u(le),v(ae),y(se),m(ae>1),b(ae+1<=le)}catch(Q){me(e,Q.message),pe(t,Q.message,4e3,"ERROR")}}const B=q=>{console.log("submitting",q),N.set("id",q.id),N.set("booking_id",q.booking_id),N.set("property_add_on_id",q.property_add_on_id),_(N),localStorage.setItem("admin_bka_filter",N.toString()),I(1,c)};R.useEffect(()=>{t({type:"SETPATH",payload:{path:"booking_addons"}}),j(),async function(){await Y(),I(1,c)}()},[]),R.useEffect(()=>{n.deleted&&(t({type:"DELETED",payload:{deleted:!1}}),I(w,c))},[n.deleted]);async function Y(){var te;D0.setTable("settings");const q={key_name:"admin_booking_addons_column_order"};try{const G=await D0.callRestAPI({limit:1,page:1,payload:q},"PAGINATE");Array.isArray(G.list)&&G.list.length>0&&r(va((te=G.list[0].optional_data)!=null?te:[],_a.admin_booking_addons))}catch(G){me(e,G.message),pe(t,G.message,4e3,"ERROR")}}return f(Se,{children:[f("form",{className:"rounded rounded-b-none border border-b-0 bg-white p-5",onSubmit:D(B),children:[f("div",{className:"flex justify-between",children:[s("h4",{className:"text-2xl font-medium",children:"Booking Addons Search"}),s(ma,{link:"/admin/add-booking_addons",text:"Add new Booking Add-on"})]}),f("div",{className:"filter-form-holder mt-10 flex max-w-3xl flex-wrap",children:[f("div",{className:"mb-4 w-full pr-2 pl-2 md:w-1/2",children:[s("label",{className:"mb-2 block text-sm font-bold text-gray-700",htmlFor:"id",children:"ID"}),s("input",{placeholder:"ID",...T("id"),className:`"shadow focus:shadow-outline w-full rounded border py-2 px-3 leading-tight text-gray-700 focus:outline-none ${(W=M.id)!=null&&W.message?"border-red-500":""}`}),s("p",{className:"text-xs italic text-red-500",children:(V=M.id)==null?void 0:V.message})]}),f("div",{className:"mb-4 w-full pr-2 pl-2 md:w-1/2",children:[s("label",{className:"mb-2 block text-sm font-bold text-gray-700",htmlFor:"booking_id",children:"Booking ID"}),s("input",{placeholder:"Booking ID",...T("booking_id"),className:`"shadow focus:shadow-outline w-full rounded border py-2 px-3 leading-tight text-gray-700 focus:outline-none ${(X=M.booking_id)!=null&&X.message?"border-red-500":""}`}),s("p",{className:"text-xs italic text-red-500",children:(ne=M.booking_id)==null?void 0:ne.message})]}),f("div",{className:"mb-4 w-full pr-2 pl-2 md:w-1/2",children:[s("label",{className:"mb-2 block text-sm font-bold text-gray-700",htmlFor:"property_add_on_id",children:"Add-ons"}),f("select",{className:"mb-3 w-full rounded border bg-white py-2 px-3 leading-tight text-gray-700 focus:outline-none",...T("property_add_on_id"),children:[s("option",{value:"",children:"Select Option"}),x.map(q=>s("option",{value:q.id,children:q==null?void 0:q.name},q.id))]}),s("p",{className:"text-xs italic text-red-500",children:(oe=M.property_add_on_id)==null?void 0:oe.message})]})]}),s(dn,{text:"Search"}),s("button",{className:"font-inter ml-2 cursor-pointer rounded-md border border-[#33D4B7] bg-gradient-to-r from-[#33D4B7] to-[#0D9895] bg-clip-text px-[66px] py-[10px] text-transparent",type:"reset",onClick:()=>{E({id:"",property_add_on_id:"",booking_id:""}),localStorage.removeItem("admin_bka_filter"),Pt(N,_),I(w,c)},children:"Reset"})]}),s(Ln,{currentPage:w,pageSize:c,totalNumber:g,updatePageSize:z}),f("div",{className:"flex justify-end bg-white py-3 pt-5",children:[s($e,{to:"/admin/column_order/booking_addons",className:"ml-5 mb-1 mr-3 flex items-center rounded !bg-gradient-to-r from-[#33D4B7] to-[#0D9895] px-6 py-2 text-sm font-semibold text-white outline-none focus:outline-none",children:"Change Column Order"})," ",s(Ka,{id:"test-table-xls-button",className:"ml-5 mb-1 mr-3 flex items-center rounded !bg-gradient-to-r from-[#33D4B7] to-[#0D9895] px-6 py-2 text-sm font-semibold text-white outline-none focus:outline-none",table:"table-to-xls",filename:"booking_addons",sheet:"booking_
relative inline-flex h-[28px] w-[55px] shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out focus:outline-none focus-visible:ring-2 focus-visible:ring-white focus-visible:ring-opacity-75`,children:[s("span",{className:"sr-only",children:"Use setting"}),s("span",{"aria-hidden":"true",className:`${e?"translate-x-7":"translate-x-0"}
pointer-events-none inline-block h-[24px] w-[24px] transform rounded-full bg-white shadow-lg ring-0 transition duration-200 ease-in-out`})]})})}function Vwe({modalOpen:e,modalImage:t,closeModal:n}){return s(Se,{children:s(ke,{appear:!0,show:e,as:h.exports.Fragment,children:f(De,{as:"div",className:"relative z-10",onClose:n,children:[s(ke.Child,{as:h.exports.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-200",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:s("div",{className:"fixed inset-0 bg-black bg-opacity-25"})}),s("div",{className:"fixed inset-0 overflow-y-auto",children:s("div",{className:"flex min-h-full items-center justify-center p-4 text-center",children:s(ke.Child,{as:h.exports.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 scale-95",enterTo:"opacity-100 scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 scale-100",leaveTo:"opacity-0 scale-95",children:s(De.Panel,{as:"img",className:"w-full max-w-3xl transform overflow-hidden align-middle shadow-xl transition-all",src:t})})})})]})})})}function Wwe({modalOpen:e,data:t,closeModal:n,onSuccess:a}){const{dispatch:r}=h.exports.useContext(Ee),{dispatch:i}=h.exports.useContext(we),[o,c]=h.exports.useState(!1);async function l(d){var w;c(!0);const u=new _e;d.preventDefault();const y=new FormData(d.target).get("reason");u.setTable("property_spaces_images");try{if(await u.callRestAPI({id:t.id,is_approved:rn.NOT_APPROVED},"PUT"),on(t.settings,{}).email_on_space_image_declined==!0){const v=await u.getEmailTemplate("space-image-decline"),S=(w=v.html)==null?void 0:w.replace(new RegExp("{{{reason}}}","g"),y);await u.sendEmail(t.email,v.subject,S),pe(i,"Email sent to user")}else pe(i,"Successful");a(),d.target.reset()}catch(v){me(r,v.message),pe(i,v.message,4e3,"ERROR")}n(),c(!1)}return s(Se,{children:s(ke,{appear:!0,show:e,as:h.exports.Fragment,children:f(De,{as:"div",className:"relative z-10",onClose:n,children:[s(ke.Child,{as:h.exports.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-200",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:s("div",{className:"fixed inset-0 bg-black bg-opacity-25"})}),s("div",{className:"fixed inset-0 overflow-y-auto",children:s("div",{className:"flex min-h-full items-center justify-center p-4 text-center",children:s(ke.Child,{as:h.exports.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 scale-95",enterTo:"opacity-100 scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 scale-100",leaveTo:"opacity-0 scale-95",children:f(De.Panel,{as:"form",className:"w-full max-w-md transform overflow-hidden rounded-2xl bg-white p-6 text-left align-middle shadow-xl transition-all",onSubmit:l,children:[s(De.Title,{as:"h3",className:"text-lg font-medium leading-6 text-gray-900 mb-8",children:"Decline Reason"}),s("textarea",{name:"reason",cols:"30",rows:"5",className:"w-full focus:outline-none border-2 p-2 resize-none text-sm text-gray-900"}),f("div",{className:"mt-4 flex gap-4 justify-end",children:[s("button",{type:"button",className:"inline-flex justify-center rounded-md border border-black px-4 py-2 text-sm font-medium",onClick:n,children:"Cancel"}),s("button",{disabled:o,type:"submit",className:"bg-gradient-to-r from-[#33D4B7] to-[#0D9895] text-white inline-flex justify-center rounded-md px-4 py-2 text-sm font-medium",children:"Reject"})]})]})})})})]})})})}let ms=new _e;const Ywe=()=>{var Z,se,ce,le,ae,ie,de,fe,be,he,ve,Ce,nt;const{dispatch:e}=R.useContext(Ee),{dispatch:t,state:n}=R.useContext(we),[a,r]=R.useState([]),[i,o]=R.useState([]),[c,l]=R.useState(10),[d,u]=R.useState(0),[g,y]=R.useState(0),[w,v]=R.useState(0),[S,m]=R.useState(!1),[p,b]=R.useState(!1),[x,k]=R.useState(!0),[N,_]=R.useState([]),[C,E]=lt(),[T]=lt((Z=localStorage.getItem("admin_psi_filter"))!=null?Z:""),[D,P]=R.useState(null),[M,O]=R.useState(!1),[F,z]=R.useState({}),H=Qe({id:ge(),property_id:ge(),property_space_name:ge(),property_name:ge(),is_approved:ge(),host_email:ge()}),{reset:A,register:j,handleSubmit
AND ${te.property_name?`ergo_property.name LIKE '%${te.property_name}%'`:"1"}
AND ${te.addon_name?`ergo_add_on.name LIKE '%${te.addon_name}%'`:"1"} AND ${te.property_id?`ergo_property.id = ${te.property_id}`:"1"}`:1,"ergo_property_add_on.deleted_at IS NULL"],page:oe,limit:q,sortId:"update_at",direction:"DESC"},"POST"),{list:K,total:Q,limit:Z,num_pages:se,page:ce}=J,le=F(K,!1);o(le),l(Z),u(se),v(ce),y(Q),m(ce>1),b(ce+1<=se)}catch(J){console.log("ERROR",J),me(e,J.message),pe(t,J.message,4e3,"ERROR")}}const I=oe=>{N.set("id",oe.id),N.set("property_name",oe.property_name),N.set("addon_name",oe.addon_name),_(N),localStorage.setItem("admin_property_addon_filter",N.toString()),j(1,c)},B=async()=>{try{Pw.setTable("add_on");const oe=await Pw.callRestAPI({},"GETALL");oe.error||k(oe.list)}catch(oe){console.log("Error",oe),P("add_on_id",{type:"manual",message:oe.message}),me(e,oe.message)}};return R.useEffect(()=>{t({type:"SETPATH",payload:{path:"property_add_on"}}),B(),j(1,c)},[]),R.useEffect(()=>{n.deleted&&(t({type:"DELETED",payload:{deleted:!1}}),j(w,c))},[n.deleted]),f(Se,{children:[f("form",{className:"rounded rounded-b-none border border-b-0 bg-white p-5",onSubmit:D(I),children:[f("div",{className:"flex justify-between",children:[s("h4",{className:"text-2xl font-medium",children:"Property Add-on Search"}),s(ma,{link:"/admin/add-property_add_on",text:"Add New Property Add-on"})]}),f("div",{className:"filter-form-holder mt-10 flex max-w-2xl flex-wrap",children:[f("div",{className:"mb-4 w-full pr-2 pl-2 md:w-1/2",children:[s("label",{className:"mb-2 block text-sm font-bold text-gray-700",htmlFor:"id",children:"ID"}),s("input",{placeholder:"ID",...T("id"),className:`"shadow focus:shadow-outline w-full rounded border py-2 px-3 leading-tight text-gray-700 focus:outline-none ${(U=M.id)!=null&&U.message?"border-red-500":""}`}),s("p",{className:"text-xs italic text-red-500",children:(W=M.id)==null?void 0:W.message})]}),f("div",{className:"mb-4 w-full pr-2 pl-2 md:w-1/2",children:[s("label",{className:"mb-2 block text-sm font-bold text-gray-700",htmlFor:"property_name",children:"Property"}),s("input",{placeholder:"Property",...T("property_name"),className:`"shadow focus:shadow-outline w-full rounded border py-2 px-3 leading-tight text-gray-700 focus:outline-none ${(V=M.property_name)!=null&&V.message?"border-red-500":""}`}),s("p",{className:"text-xs italic text-red-500",children:(X=M.property_name)==null?void 0:X.message})]}),f("div",{className:"mb-4 w-full pr-2 pl-2 md:w-1/2",children:[s("label",{className:"mb-2 block text-sm font-bold text-gray-700",htmlFor:"addon_name",children:"Add-on"}),f("select",{className:"mb-3 w-full cursor-pointer rounded border bg-white py-2 px-3 leading-tight text-gray-700 focus:outline-none",...T("addon_name"),children:[s("option",{value:"",children:"Select Option"}),x.map(oe=>s("option",{children:oe==null?void 0:oe.name},oe.id))]}),s("p",{className:"text-xs italic text-red-500",children:(ne=M.addon_name)==null?void 0:ne.message})]})]}),s(dn,{text:"Search"}),s("button",{className:"font-inter ml-2 cursor-pointer rounded-md border border-[#33D4B7] bg-gradient-to-r from-[#33D4B7] to-[#0D9895] bg-clip-text px-[66px] py-[10px] text-transparent",type:"reset",onClick:()=>{E({id:"",property_name:"",add_on_name:"",property_id:""}),localStorage.removeItem("admin_property_addon_filter"),Pt(N,_),j(w,c)},children:"Reset"})]}),s(Ln,{currentPage:w,pageSize:c,totalNumber:g,updatePageSize:z}),s("div",{className:"flex justify-end bg-white py-3 pt-5",children:s(Ka,{id:"test-table-xls-button",className:"ml-5 mb-1 mr-3 flex items-center rounded !bg-gradient-to-r from-[#33D4B7] to-[#0D9895] px-6 py-2 text-sm font-semibold text-white outline-none focus:outline-none",table:"table-to-xls",filename:"property_addon",sheet:"property_addon",buttonText:"Export to xls"})}),s("div",{className:"overflow-x-auto rounded bg-white",children:s("div",{className:"overflow-x-auto border-b border-gray-200 shadow ",children:s(zr,{columns:a,rows:i,tableType:"property_add_on",table1:"property_add_on",profile:!0,deleteMessage:"Are you sure you want to delete this Property Add-on?",deleteTitle:"Confirm Delete
Copyright (c) 2018 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var i="",o=0;o<arguments.length;o++){var c=arguments[o];c&&(i=r(i,a(c)))}return i}function a(i){if(typeof i=="string"||typeof i=="number")return i;if(typeof i!="object")return"";if(Array.isArray(i))return n.apply(null,i);if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]"))return i.toString();var o="";for(var c in i)t.call(i,c)&&i[c]&&(o=r(o,c));return o}function r(i,o){return o?i?i+" "+o:i+o:i}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(mR);var B4=mR.exports;/*
* React Tooltip
* {@link https://github.com/ReactTooltip/react-tooltip}
* @copyright ReactTooltip Team
* @license MIT
*/const r3e="react-tooltip-core-styles",s3e="react-tooltip-base-styles",SE={core:!1,base:!1};function kE({css:e,id:t=s3e,type:n="base",ref:a}){var r,i;if(!e||typeof document=="undefined"||SE[n]||n==="core"&&typeof process!="undefined"&&((r=process==null?void 0:process.env)===null||r===void 0?void 0:r.REACT_TOOLTIP_DISABLE_CORE_STYLES)||n!=="base"&&typeof process!="undefined"&&((i=process==null?void 0:process.env)===null||i===void 0?void 0:i.REACT_TOOLTIP_DISABLE_BASE_STYLES))return;n==="core"&&(t=r3e),a||(a={});const{insertAt:o}=a;if(document.getElementById(t))return void console.warn(`[react-tooltip] Element with id '${t}' already exists. Call \`removeStyle()\` first`);const c=document.head||document.getElementsByTagName("head")[0],l=document.createElement("style");l.id=t,l.type="text/css",o==="top"&&c.firstChild?c.insertBefore(l,c.firstChild):c.appendChild(l),l.styleSheet?l.styleSheet.cssText=e:l.appendChild(document.createTextNode(e)),SE[n]=!0}const CE=async({elementReference:e=null,tooltipReference:t=null,tooltipArrowReference:n=null,place:a="top",offset:r=10,strategy:i="absolute",middlewares:o=[e3e(Number(r)),n3e({fallbackAxisSideDirection:"start"}),t3e({padding:5})],border:c})=>{if(!e)return{tooltipStyles:{},tooltipArrowStyles:{},place:a};if(t===null)return{tooltipStyles:{},tooltipArrowStyles:{},place:a};const l=o;return n?(l.push(a3e({element:n,padding:5})),NE(e,t,{placement:a,strategy:i,middleware:l}).then(({x:d,y:u,placement:g,middlewareData:y})=>{var w,v;const S={left:`${d}px`,top:`${u}px`,border:c},{x:m,y:p}=(w=y.arrow)!==null&&w!==void 0?w:{x:0,y:0},b=(v={top:"bottom",right:"left",bottom:"top",left:"right"}[g.split("-")[0]])!==null&&v!==void 0?v:"bottom",x=c&&{borderBottom:c,borderRight:c};let k=0;if(c){const N=`${c}`.match(/(\d+)px/);k=N!=null&&N[1]?Number(N[1]):1}return{tooltipStyles:S,tooltipArrowStyles:{left:m!=null?`${m}px`:"",top:p!=null?`${p}px`:"",right:"",bottom:"",...x,[b]:`-${4+k}px`},place:g}})):NE(e,t,{placement:"bottom",strategy:i,middleware:l}).then(({x:d,y:u,placement:g})=>({tooltipStyles:{left:`${d}px`,top:`${u}px`},tooltipArrowStyles:{},place:g}))},EE=(e,t)=>!("CSS"in window&&"supports"in window.CSS)||window.CSS.supports(e,t),TE=(e,t,n)=>{let a=null;const r=function(...i){const o=()=>{a=null,n||e.apply(this,i)};n&&!a&&(e.apply(this,i),a=setTimeout(o,t)),n||(a&&clearTimeout(a),a=setTimeout(o,t))};return r.cancel=()=>{a&&(clearTimeout(a),a=null)},r},LE=e=>e!==null&&!Array.isArray(e)&&typeof e=="object",H4=(e,t)=>{if(e===t)return!0;if(Array.isArray(e)&&Array.isArray(t))return e.length===t.length&&e.every((r,i)=>H4(r,t[i]));if(Array.isArray(e)!==Array.isArray(t))return!1;if(!LE(e)||!LE(t))return e===t;const n=Object.keys(e),a=Object.keys(t);return n.length===a.length&&n.every(r=>H4(e[r],t[r]))},i3e=e=>{if(!(e instanceof HTMLElement||e instanceof SVGElement))return!1;const t=getComputedStyle(e);return["overflow","overflow-x","overflow-y"].some(n=>{const a=t.getPropertyValue(n);return a==="auto"||a==="scroll"})},DE=e=>{if(!e)return null;let t=e.parentElement;for(;t;){if(i3e(t))return t;t=t.parentElement}return document.scrollingElement||document.documentElement},o3e=typeof window!="undefined"?h.exports.useLayoutEffect:h.exports.useEffect,l3e="DEFAULT_TOOLTIP_ID",c3e={anchorRefs:new Set,activeAnchor:{current:null},attach:()=>{},detach:()=>{},setActiveAnchor:()=>{}},d3e=h.exports.createContext({getTooltipData:()=>c3e});function pR(e=l3e){return h.exports.useContext(d3e).getTooltipData(e)}var wd={tooltip:"core-styles-module_tooltip__3vRRp",fixed:"core-styles-module_fixed__pcSol",arrow:"core-styles-module_arrow__cvMwQ",noArrow:"core-styles-module_noArrow__xock6",clickable:"core-styles-module_clickable__ZuTTB",show:"core-styles-module_show__Nt9eE",closing:"core-styles-module_closing__sGnxF"},zw={tooltip:"styles-module_tooltip__mnnfp",arrow:"styles-module_arrow__K0L3T",dark:"styles-module_dark__xNqje",light:"styles-module_light__Z6W-X",success:"styles-module_success__A2AKt",warning:"styles-module_warning__SCK0X",error:"styles-module_error__JvumD",info:"styles-module_info__BWdHW"};const u3e=({forwardRef
.styles-module_tooltip__mnnfp{padding:8px 16px;border-radius:3px;font-size:90%;width:max-content}.styles-module_arrow__K0L3T{width:8px;height:8px}[class*='react-tooltip__place-top']>.styles-module_arrow__K0L3T{transform:rotate(45deg)}[class*='react-tooltip__place-right']>.styles-module_arrow__K0L3T{transform:rotate(135deg)}[class*='react-tooltip__place-bottom']>.styles-module_arrow__K0L3T{transform:rotate(225deg)}[class*='react-tooltip__place-left']>.styles-module_arrow__K0L3T{transform:rotate(315deg)}.styles-module_dark__xNqje{background:var(--rt-color-dark);color:var(--rt-color-white)}.styles-module_light__Z6W-X{background-color:var(--rt-color-white);color:var(--rt-color-dark)}.styles-module_success__A2AKt{background-color:var(--rt-color-success);color:var(--rt-color-white)}.styles-module_warning__SCK0X{background-color:var(--rt-color-warning);color:var(--rt-color-white)}.styles-module_error__JvumD{background-color:var(--rt-color-error);color:var(--rt-color-white)}.styles-module_info__BWdHW{background-color:var(--rt-color-info);color:var(--rt-color-white)}`,type:"base"})});function ls({space_id:e,user_property_spaces_id:t,reRender:n,withLoader:a,className:r,buttonClassName:i,stroke:o,favColor:c}){const[l,d]=h.exports.useState(!1),u=cr(l,100),{dispatch:g}=h.exports.useContext(we),{state:y}=h.exports.useContext(Ee),w=new _e;async function v(){a&&g({type:"START_LOADING"}),w.setTable("user_property_spaces");try{await w.callRestAPI({property_spaces_id:e,user_id:y.user},"POST"),n&&n(new Date),g({type:"STOP_LOADING"})}catch(p){g({type:"STOP_LOADING"}),g({type:"SHOW_ERROR",payload:{heading:"Operation failed",message:p.message}})}}async function S(){a&&g({type:"START_LOADING"}),w.setTable("user_property_spaces");try{await w.callRestAPI({id:t},"DELETE"),n&&n(new Date),g({type:"STOP_LOADING"}),d(!1)}catch(p){g({type:"STOP_LOADING"}),g({type:"SHOW_ERROR",payload:{heading:"Operation Failed",message:p.message}})}}async function m(){t?d(!0):v()}return f("div",{className:r!=null?r:"flex flex-grow justify-end pt-2",children:[s("button",{className:i!=null?i:"pointer-auto flex h-[32px] w-[32px] items-center justify-center rounded-full bg-[#13131366] text-end",onClick:p=>{p.preventDefault(),p.stopPropagation(),m()},id:"favorite-button",children:s(vve,{isFav:t!==null&&t!==0,stroke:o,favColor:c})}),u&&s("div",{className:"popup-container flex items-center justify-center normal-case",onClick:p=>{p.preventDefault(),p.stopPropagation(),d(!1)},children:f("div",{className:`${l?"pop-in":"pop-out"} w-[400px] max-w-[80%] rounded-lg bg-white p-5 px-3 md:px-5`,onClick:p=>p.stopPropagation(),children:[f("div",{className:"mb-[18px] flex items-center justify-between",children:[s("h3",{className:"text-2xl font-semibold",children:"Are you sure?"}),s("button",{className:"rounded-full border p-1 px-3 text-2xl font-normal duration-300 hover:bg-gray-200",onClick:p=>{p.preventDefault(),p.stopPropagation(),d(!1)},children:"\u2715"})]}),s("p",{children:"Are you sure you want to remove this space from your favorites?"}),f("div",{className:"flex gap-4",children:[s("button",{type:"button",className:"mt-4 flex-grow rounded border-2 border-[#98A2B3] py-2 tracking-wide outline-none focus:outline-none",onClick:p=>{p.preventDefault(),p.stopPropagation(),d(!1)},children:"Cancel"}),s("button",{type:"button",className:"login-btn-gradient mt-4 flex-grow rounded py-2 tracking-wide text-white outline-none focus:outline-none",onClick:p=>{p.preventDefault(),p.stopPropagation(),S()},children:"Yes, remove"})]})]})})]})}let Fw=new _e;function m3e(){const{dispatch:e}=R.useContext(Ee),{dispatch:t}=R.useContext(we),[n,a]=h.exports.useState(0),[r,i]=h.exports.useState(""),[o,c]=h.exports.useState(!1);async function l(){Fw.setTable("cms");try{const u=await Fw.callRestAPI({payload:{content_key:"privacy_policy"},limit:1,page:1},"PAGINATE");Array.isArray(u.list)&&u.list.length>0&&(a(u.list[0].id),i(u.list[0].content_value))}catch(u){me(e,u.message),pe(t,u.message,4e3,"ERROR")}}const d=async u=>{c(!0),u.preventDefault();try{const g=await Fw.callRestAPI({id:n,content_value:r},"PUT");pe(t,"
[`+Ne+"] ";for(Pe in arguments[0])c(arguments[0],Pe)&&(ue+=Pe+": "+arguments[0][Pe]+", ");ue=ue.slice(0,-2)}else ue=arguments[Ne];re.push(ue)}T(L+`
Arguments: `+Array.prototype.slice.call(re).join("")+`
`+new Error().stack),ee=!1}return $.apply(this,arguments)},$)}var P={};function M(L,$){a.deprecationHandler!=null&&a.deprecationHandler(L,$),P[L]||(T($),P[L]=!0)}a.suppressDeprecationWarnings=!1,a.deprecationHandler=null;function O(L){return typeof Function!="undefined"&&L instanceof Function||Object.prototype.toString.call(L)==="[object Function]"}function F(L){var $,ee;for(ee in L)c(L,ee)&&($=L[ee],O($)?this[ee]=$:this["_"+ee]=$);this._config=L,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function z(L,$){var ee=w({},L),re;for(re in $)c($,re)&&(o(L[re])&&o($[re])?(ee[re]={},w(ee[re],L[re]),w(ee[re],$[re])):$[re]!=null?ee[re]=$[re]:delete ee[re]);for(re in L)c(L,re)&&!c($,re)&&o(L[re])&&(ee[re]=w({},ee[re]));return ee}function H(L){L!=null&&this.set(L)}var A;Object.keys?A=Object.keys:A=function(L){var $,ee=[];for($ in L)c(L,$)&&ee.push($);return ee};var j={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function I(L,$,ee){var re=this._calendar[L]||this._calendar.sameElse;return O(re)?re.call($,ee):re}function B(L,$,ee){var re=""+Math.abs(L),ue=$-re.length,Ne=L>=0;return(Ne?ee?"+":"":"-")+Math.pow(10,Math.max(0,ue)).toString().substr(1)+re}var Y=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,U=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,W={},V={};function X(L,$,ee,re){var ue=re;typeof re=="string"&&(ue=function(){return this[re]()}),L&&(V[L]=ue),$&&(V[$[0]]=function(){return B(ue.apply(this,arguments),$[1],$[2])}),ee&&(V[ee]=function(){return this.localeData().ordinal(ue.apply(this,arguments),L)})}function ne(L){return L.match(/\[[\s\S]/)?L.replace(/^\[|\]$/g,""):L.replace(/\\/g,"")}function oe(L){var $=L.match(Y),ee,re;for(ee=0,re=$.length;ee<re;ee++)V[$[ee]]?$[ee]=V[$[ee]]:$[ee]=ne($[ee]);return function(ue){var Ne="",Pe;for(Pe=0;Pe<re;Pe++)Ne+=O($[Pe])?$[Pe].call(ue,L):$[Pe];return Ne}}function q(L,$){return L.isValid()?($=te($,L.localeData()),W[$]=W[$]||oe($),W[$](L)):L.localeData().invalidDate()}function te(L,$){var ee=5;function re(ue){return $.longDateFormat(ue)||ue}for(U.lastIndex=0;ee>=0&&U.test(L);)L=L.replace(U,re),U.lastIndex=0,ee-=1;return L}var G={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function J(L){var $=this._longDateFormat[L],ee=this._longDateFormat[L.toUpperCase()];return $||!ee?$:(this._longDateFormat[L]=ee.match(Y).map(function(re){return re==="MMMM"||re==="MM"||re==="DD"||re==="dddd"?re.slice(1):re}).join(""),this._longDateFormat[L])}var K="Invalid date";function Q(){return this._invalidDate}var Z="%d",se=/\d{1,2}/;function ce(L){return this._ordinal.replace("%d",L)}var le={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function ae(L,$,ee,re){var ue=this._relativeTime[ee];return O(ue)?ue(L,$,ee,re):ue.replace(/%d/i,L)}function ie(L,$){var ee=this._relativeTime[L>0?"future":"past"];return O(ee)?ee($):ee.replace(/%s/i,$)}var de={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"is
return a.version="2.30.1",r(Wn),a.fn=et,a.min=SB,a.max=kB,a.now=CB,a.utc=v,a.unix=eU,a.months=nU,a.isDate=g,a.locale=jo,a.invalid=x,a.duration=js,a.isMoment=E,a.weekdays=rU,a.parseZone=tU,a.localeData=Fi,a.isDuration=Hh,a.monthsShort=aU,a.weekdaysMin=iU,a.defineLocale=Bx,a.updateLocale=tB,a.locales=nB,a.weekdaysShort=sU,a.normalizeUnits=fe,a.relativeTimeRounding=IU,a.relativeTimeThreshold=OU,a.calendarFormat=JB,a.prototype=et,a.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},a})})(wR);var q1=wR.exports;function k3e({isOpen:e,closeModal:t,setIsAgreed:n}){const[a,r]=h.exports.useState(""),[i,o]=h.exports.useState(!1),{dispatch:c}=h.exports.useContext(we);async function l(){try{const d=await _t("cms","post",{where:["content_key = 'terms_and_conditions'"],limit:1,page:1},"PAGINATE");Array.isArray(d.list)&&d.list.length>0&&r(d.list[0].content_value)}catch(d){c({type:"SHOW_ERROR",payload:{heading:"Cannot get Terms and Conditions",message:d.message}})}}return h.exports.useEffect(()=>{l()},[]),f(Se,{children:[s("div",{className:`${e?"flex":"hidden"} fixed inset-0 items-center justify-center`}),s(ke,{appear:!0,show:e,as:h.exports.Fragment,children:f(De,{as:"div",className:"relative z-10",onClose:t,children:[s(ke.Child,{as:h.exports.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-200",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:s("div",{className:"fixed inset-0 bg-black bg-opacity-25"})}),s("div",{className:"fixed inset-0 overflow-y-auto",children:s("div",{className:"flex min-h-full items-center justify-center p-4 text-center",children:s(ke.Child,{as:h.exports.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 scale-95",enterTo:"opacity-100 scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 scale-100",leaveTo:"opacity-0 scale-95",children:f(De.Panel,{className:"w-full max-w-6xl transform overflow-hidden rounded-2xl bg-white p-6 text-left align-middle shadow-xl transition-all",children:[f(De.Title,{as:"h3",className:"text-lg flex items-center justify-between font-medium leading-6 text-gray-900",children:[" ",s("button",{type:"button",onClick:t,className:"flex justify-end rounded-full border px-3 py-2 text-2xl font-normal duration-100 hover:bg-gray-200 active:bg-gray-300",children:"\u2715"})]}),s("div",{className:"mt-2",children:s("article",{className:"sun-editor-editable my-8 max-h-[600px] overflow-y-auto text-sm",dangerouslySetInnerHTML:{__html:a}})}),f("div",{className:"checkbox-container",children:[s("input",{type:"checkbox",name:"i-agree",id:"i-agree",checked:i,onChange:()=>{o(d=>!d),n(d=>!d),t()}}),s("label",{htmlFor:"i-agree",className:"remove-select cursor-pointer items-center",children:"Yeah, I agree to everything"})]})]})})})})]})})]})}function vR(e){var t,n,a="";if(typeof e=="string"||typeof e=="number")a+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(n=vR(e[t]))&&(a&&(a+=" "),a+=n)}else for(n in e)e[n]&&(a&&(a+=" "),a+=n);return a}function li(){for(var e,t,n=0,a="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=vR(e))&&(a&&(a+=" "),a+=t);return a}const C3e=(e,t,n,a)=>{if(n==="length"||n==="prototype"||n==="arguments"||n==="caller")return;const r=Object.getOwnPropertyDescriptor(e,n),i=Object.getOwnPropertyDescriptor(t,n);!E3e(r,i)&&a||Object.defineProperty(e,n,i)},E3e=function(e,t){return e===void 0||e.configurable||e.writable===t.writable&&e.enumerable===t.enumerable&&e.configurable===t.configurable&&(e.writable||e.value===t.value)},T3e=(e,t)=>{const n=Object.getPrototypeOf(t);n!==Object.getPrototypeOf(e)&&Object.setPrototypeOf(e,n)},L3e=(e,t)=>`/* Wrapped ${e}*/
${t}`,D3e=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),M3e=Object.getOwnPropertyDescriptor(Function.prototype.toString,"name"),A3e=(e,t,n)=>{const a=n===""?"":`with ${n.trim()}() `,r=L3e.bind(null,a,t.toString());Object.defineProperty(r,"name",M3e),Object.defineProperty(e,"toString",{...D3e,value:r})},I3e=(e,t,{ignoreNonConfigurable:n=!1}={})=>{const{name:a}=e;for(const r of Reflect.ownKeys(t))C3e(e,t,r,n);return T3e(e,t),A3e(e,t,a),e};var O3e=I3e,V4={exports:{}},P3e=()=>{const e={};return e.promise=new Promise((t,n)=>{e.resolve=t,e.reject=n}),e};(function(e,t){var n=sn&&sn.__awaiter||function(o,c,l,d){return new(l||(l=Promise))(function(u,g){function y(S){try{v(d.next(S))}catch(m){g(m)}}function w(S){try{v(d.throw(S))}catch(m){g(m)}}function v(S){S.done?u(S.value):new l(function(m){m(S.value)}).then(y,w)}v((d=d.apply(o,c||[])).next())})},a=sn&&sn.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(t,"__esModule",{value:!0});const r=a(P3e);function i(o,c="maxAge"){let l,d,u;const g=()=>n(this,void 0,void 0,function*(){if(l!==void 0)return;const v=S=>n(this,void 0,void 0,function*(){u=r.default();const m=S[1][c]-Date.now();if(m<=0){o.delete(S[0]),u.resolve();return}return l=S[0],d=setTimeout(()=>{o.delete(S[0]),u&&u.resolve()},m),typeof d.unref=="function"&&d.unref(),u.promise});try{for(const S of o)yield v(S)}catch{}l=void 0}),y=()=>{l=void 0,d!==void 0&&(clearTimeout(d),d=void 0),u!==void 0&&(u.reject(void 0),u=void 0)},w=o.set.bind(o);return o.set=(v,S)=>{o.has(v)&&o.delete(v);const m=w(v,S);return l&&l===v&&y(),g(),m},g(),o}t.default=i,e.exports=i,e.exports.default=i})(V4,V4.exports);const R3e=O3e,j3e=V4.exports,Ww=new WeakMap,_R=new WeakMap,Z1=(e,{cacheKey:t,cache:n=new Map,maxAge:a}={})=>{typeof a=="number"&&j3e(n);const r=function(...i){const o=t?t(i):i[0],c=n.get(o);if(c)return c.data;const l=e.apply(this,i);return n.set(o,{data:l,maxAge:a?Date.now()+a:Number.POSITIVE_INFINITY}),l};return R3e(r,e,{ignoreNonConfigurable:!0}),_R.set(r,n),r};Z1.decorator=(e={})=>(t,n,a)=>{const r=t[n];if(typeof r!="function")throw new TypeError("The decorated value must be a function");delete a.value,delete a.writable,a.get=function(){if(!Ww.has(this)){const i=Z1(r,e);return Ww.set(this,i),i}return Ww.get(this)}};Z1.clear=e=>{const t=_R.get(e);if(!t)throw new TypeError("Can't clear a function that was not memoized!");if(typeof t.clear!="function")throw new TypeError("The cache Map can't be cleared!");t.clear()};var NR=Z1;function z3e(e){return typeof e=="string"}function F3e(e,t,n){return n.indexOf(e)===t}function $3e(e){return e.toLowerCase()===e}function IE(e){return e.indexOf(",")===-1?e:e.split(",")}function W4(e){if(!e)return e;if(e==="C"||e==="posix"||e==="POSIX")return"en-US";if(e.indexOf(".")!==-1){var t=e.split(".")[0],n=t===void 0?"":t;return W4(n)}if(e.indexOf("@")!==-1){var a=e.split("@")[0],n=a===void 0?"":a;return W4(n)}if(e.indexOf("-")===-1||!$3e(e))return e;var r=e.split("-"),i=r[0],o=r[1],c=o===void 0?"":o;return"".concat(i,"-").concat(c.toUpperCase())}function B3e(e){var t=e===void 0?{}:e,n=t.useFallbackLocale,a=n===void 0?!0:n,r=t.fallbackLocale,i=r===void 0?"en-US":r,o=[];if(typeof navigator!="undefined"){for(var c=navigator.languages||[],l=[],d=0,u=c;d<u.length;d++){var g=u[d];l=l.concat(IE(g))}var y=navigator.language,w=y&&IE(y);o=o.concat(l,w)}return a&&o.push(i),o.filter(z3e).map(W4).filter(F3e)}var H3e=NR(B3e,{cacheKey:JSON.stringify});function U3e(e){return H3e(e)[0]||null}var SR=NR(U3e,{cacheKey:JSON.stringify});function Io(e,t,n){return function(r,i){i===void 0&&(i=n);var o=e(r)+i;return t(o)}}function bh(e){return function(n){return new Date(e(n).getTime()-1)}}function yh(e,t){return function(a){return[e(a),t(a)]}}function aa(e){if(e instanceof Date)return e.getFullYear();if(typeof e=="number")return e;var t=parseInt(e,10);if(typeof e=="string"&&!isNaN(t))return t;throw new Error("Failed to get year from date: ".concat(e,"."))}function Vl(e){if(e instanceof Date)return e.getMonth();throw new Error("Failed to get month from date: ".concat(e,"."))}fun
* react-is.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var Va=typeof Symbol=="function"&&Symbol.for,I5=Va?Symbol.for("react.element"):60103,O5=Va?Symbol.for("react.portal"):60106,ox=Va?Symbol.for("react.fragment"):60107,lx=Va?Symbol.for("react.strict_mode"):60108,cx=Va?Symbol.for("react.profiler"):60114,dx=Va?Symbol.for("react.provider"):60109,ux=Va?Symbol.for("react.context"):60110,P5=Va?Symbol.for("react.async_mode"):60111,fx=Va?Symbol.for("react.concurrent_mode"):60111,mx=Va?Symbol.for("react.forward_ref"):60112,px=Va?Symbol.for("react.suspense"):60113,b_e=Va?Symbol.for("react.suspense_list"):60120,hx=Va?Symbol.for("react.memo"):60115,gx=Va?Symbol.for("react.lazy"):60116,y_e=Va?Symbol.for("react.block"):60121,x_e=Va?Symbol.for("react.fundamental"):60117,w_e=Va?Symbol.for("react.responder"):60118,v_e=Va?Symbol.for("react.scope"):60119;function cs(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case I5:switch(e=e.type,e){case P5:case fx:case ox:case cx:case lx:case px:return e;default:switch(e=e&&e.$$typeof,e){case ux:case mx:case gx:case hx:case dx:return e;default:return t}}case O5:return t}}}function ej(e){return cs(e)===fx}In.AsyncMode=P5;In.ConcurrentMode=fx;In.ContextConsumer=ux;In.ContextProvider=dx;In.Element=I5;In.ForwardRef=mx;In.Fragment=ox;In.Lazy=gx;In.Memo=hx;In.Portal=O5;In.Profiler=cx;In.StrictMode=lx;In.Suspense=px;In.isAsyncMode=function(e){return ej(e)||cs(e)===P5};In.isConcurrentMode=ej;In.isContextConsumer=function(e){return cs(e)===ux};In.isContextProvider=function(e){return cs(e)===dx};In.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===I5};In.isForwardRef=function(e){return cs(e)===mx};In.isFragment=function(e){return cs(e)===ox};In.isLazy=function(e){return cs(e)===gx};In.isMemo=function(e){return cs(e)===hx};In.isPortal=function(e){return cs(e)===O5};In.isProfiler=function(e){return cs(e)===cx};In.isStrictMode=function(e){return cs(e)===lx};In.isSuspense=function(e){return cs(e)===px};In.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===ox||e===fx||e===cx||e===lx||e===px||e===b_e||typeof e=="object"&&e!==null&&(e.$$typeof===gx||e.$$typeof===hx||e.$$typeof===dx||e.$$typeof===ux||e.$$typeof===mx||e.$$typeof===x_e||e.$$typeof===w_e||e.$$typeof===v_e||e.$$typeof===y_e)};In.typeOf=cs;ix.exports=In;var R5=ix.exports,__e={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},N_e={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},S_e={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},tj={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},j5={};j5[R5.ForwardRef]=S_e;j5[R5.Memo]=tj;function ZE(e){return R5.isMemo(e)?tj:j5[e.$$typeof]||__e}var k_e=Object.defineProperty,C_e=Object.getOwnPropertyNames,QE=Object.getOwnPropertySymbols,E_e=Object.getOwnPropertyDescriptor,T_e=Object.getPrototypeOf,JE=Object.prototype;function nj(e,t,n){if(typeof t!="string"){if(JE){var a=T_e(t);a&&a!==JE&&nj(e,a,n)}var r=C_e(t);QE&&(r=r.concat(QE(t)));for(var i=ZE(e),o=ZE(t),c=0;c<r.length;++c){var l=r[c];if(!N_e[l]&&!(n&&n[l])&&!(o&&o[l])&&!(i&&i[l])){var d=E_e(t,l);try{k_e(e,l,d)}catch{}}}}return e}var aj=nj;function a_(){return a_=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},a_.apply(this,arguments)}function L_e(e,t){if(e==null)return{};var n={},a=Object.keys(e),r,i;for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&(n[r]=e[r]);return n}function D_e(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var $s={},M_e=0;function A_e(e,t){return t=t||{},function(a){var r=a.displayName||a.name||"Component",i=function(c){D_e(l,c);function l(u,g){var y;return y=c.call(this,u,g)||this,y.state={},y.__scriptURL="",y}var d=l.prototype;return d.asyncScriptLoaderGetScriptLoaderID=function(){return this.__scriptLoaderID||(this.__scriptLoaderID="async-script-loader-"+M_e++),th
happen because the element may not have been added to DOM yet.
See https://github.com/ankeetmaini/react-infinite-scroll-component/issues/59 for more info.
`),null)},a.onStart=function(r){a.lastScrollTop||(a.dragging=!0,r instanceof MouseEvent?a.startY=r.pageY:r instanceof TouchEvent&&(a.startY=r.touches[0].pageY),a.currentY=a.startY,a._infScroll&&(a._infScroll.style.willChange="transform",a._infScroll.style.transition="transform 0.2s cubic-bezier(0,0,0.31,1)"))},a.onMove=function(r){!a.dragging||(r instanceof MouseEvent?a.currentY=r.pageY:r instanceof TouchEvent&&(a.currentY=r.touches[0].pageY),!(a.currentY<a.startY)&&(a.currentY-a.startY>=Number(a.props.pullDownToRefreshThreshold)&&a.setState({pullToRefreshThresholdBreached:!0}),!(a.currentY-a.startY>a.maxPullDownDistance*1.5)&&a._infScroll&&(a._infScroll.style.overflow="visible",a._infScroll.style.transform="translate3d(0px, "+(a.currentY-a.startY)+"px, 0px)")))},a.onEnd=function(){a.startY=0,a.currentY=0,a.dragging=!1,a.state.pullToRefreshThresholdBreached&&(a.props.refreshFunction&&a.props.refreshFunction(),a.setState({pullToRefreshThresholdBreached:!1})),requestAnimationFrame(function(){a._infScroll&&(a._infScroll.style.overflow="auto",a._infScroll.style.transform="none",a._infScroll.style.willChange="unset")})},a.onScrollListener=function(r){typeof a.props.onScroll=="function"&&setTimeout(function(){return a.props.onScroll&&a.props.onScroll(r)},0);var i=a.props.height||a._scrollableNode?r.target:document.documentElement.scrollTop?document.documentElement:document.body;if(!a.actionTriggered){var o=a.props.inverse?a.isElementAtTop(i,a.props.scrollThreshold):a.isElementAtBottom(i,a.props.scrollThreshold);o&&a.props.hasMore&&(a.actionTriggered=!0,a.setState({showLoader:!0}),a.props.next&&a.props.next()),a.lastScrollTop=i.scrollTop}},a.state={showLoader:!1,pullToRefreshThresholdBreached:!1,prevDataLength:n.dataLength},a.throttledOnScrollListener=B_e(150,a.onScrollListener).bind(a),a.onStart=a.onStart.bind(a),a.onMove=a.onMove.bind(a),a.onEnd=a.onEnd.bind(a),a}return t.prototype.componentDidMount=function(){if(typeof this.props.dataLength=="undefined")throw new Error('mandatory prop "dataLength" is missing. The prop is needed when loading more content. Check README.md for usage');if(this._scrollableNode=this.getScrollableTarget(),this.el=this.props.height?this._infScroll:this._scrollableNode||window,this.el&&this.el.addEventListener("scroll",this.throttledOnScrollListener),typeof this.props.initialScrollY=="number"&&this.el&&this.el instanceof HTMLElement&&this.el.scrollHeight>this.props.initialScrollY&&this.el.scrollTo(0,this.props.initialScrollY),this.props.pullDownToRefresh&&this.el&&(this.el.addEventListener("touchstart",this.onStart),this.el.addEventListener("touchmove",this.onMove),this.el.addEventListener("touchend",this.onEnd),this.el.addEventListener("mousedown",this.onStart),this.el.addEventListener("mousemove",this.onMove),this.el.addEventListener("mouseup",this.onEnd),this.maxPullDownDistance=this._pullDown&&this._pullDown.firstChild&&this._pullDown.firstChild.getBoundingClientRect().height||0,this.forceUpdate(),typeof this.props.refreshFunction!="function"))throw new Error(`Mandatory prop "refreshFunction" missing.
Pull Down To Refresh functionality will not work
as expected. Check README.md for usage'`)},t.prototype.componentWillUnmount=function(){this.el&&(this.el.removeEventListener("scroll",this.throttledOnScrollListener),this.props.pullDownToRefresh&&(this.el.removeEventListener("touchstart",this.onStart),this.el.removeEventListener("touchmove",this.onMove),this.el.removeEventListener("touchend",this.onEnd),this.el.removeEventListener("mousedown",this.onStart),this.el.removeEventListener("mousemove",this.onMove),this.el.removeEventListener("mouseup",this.onEnd)))},t.prototype.componentDidUpdate=function(n){this.props.dataLength!==n.dataLength&&(this.actionTriggered=!1,this.setState({showLoader:!1}))},t.getDerivedStateFromProps=function(n,a){var r=n.dataLength!==a.prevDataLength;return r?Fm(Fm({},a),{prevDataLength:n.dataLength}):null},t.prototype.isElementAtTop=function(n,a){a===void 0&&(a=.8);var r=n===document.body||n===document.documentElement?window.screen.availHeight:n.clientHeight,i=XE(a);return i.unit===wu.Pixel?n.scrollTop<=i.value+r-n.scrollHeight+1:n.scrollTop<=i.value/100+r-n.scrollHeight+1},t.prototype.isElementAtBottom=function(n,a){a===void 0&&(a=.8);var r=n===document.body||n===document.documentElement?window.screen.availHeight:n.clientHeight,i=XE(a);return i.unit===wu.Pixel?n.scrollTop+r>=n.scrollHeight-i.value:n.scrollTop+r>=i.value/100*n.scrollHeight},t.prototype.render=function(){var n=this,a=Fm({height:this.props.height||"auto",overflow:"auto",WebkitOverflowScrolling:"touch"},this.props.style),r=this.props.hasChildren||!!(this.props.children&&this.props.children instanceof Array&&this.props.children.length),i=this.props.pullDownToRefresh&&this.props.height?{overflow:"auto"}:{};return s("div",{style:i,className:"infinite-scroll-component__outerdiv",children:f("div",{className:"infinite-scroll-component "+(this.props.className||""),ref:function(o){return n._infScroll=o},style:a,children:[this.props.pullDownToRefresh&&s("div",{style:{position:"relative"},ref:function(o){return n._pullDown=o},children:s("div",{style:{position:"absolute",left:0,right:0,top:-1*this.maxPullDownDistance},children:this.state.pullToRefreshThresholdBreached?this.props.releaseToRefreshContent:this.props.pullDownToRefreshContent})}),this.props.children,!this.state.showLoader&&!r&&this.props.hasMore&&this.props.loader,this.state.showLoader&&this.props.hasMore&&this.props.loader,!this.props.hasMore&&this.props.endMessage]})})},t}(h.exports.Component);function e8(e){return e!==null&&typeof e=="object"&&"constructor"in e&&e.constructor===Object}function z5(e={},t={}){Object.keys(t).forEach(n=>{typeof e[n]=="undefined"?e[n]=t[n]:e8(t[n])&&e8(e[n])&&Object.keys(t[n]).length>0&&z5(e[n],t[n])})}const oj={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector(){return null},querySelectorAll(){return[]},getElementById(){return null},createEvent(){return{initEvent(){}}},createElement(){return{children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName(){return[]}}},createElementNS(){return{}},importNode(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function Fr(){const e=typeof document!="undefined"?document:{};return z5(e,oj),e}const H_e={document:oj,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle(){return{getPropertyValue(){return""}}},Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia(){return{}},requestAnimationFrame(e){return typeof setTimeout=="undefined"?(e(),null):setTimeout(e,0)},cancelAnimationFrame(e){typeof setTimeout!="undefined"&&clearTimeout(e)}};function Ia(){const e=typeof window!="undefined"?window:{};return z5(e,H_e),e}function U_e(e){const t=e.__proto__;Object.defineProperty(e,"__proto__",{get(){return t},set(n){t.__proto__=n}})}class ml extends Array{constructor(t){typeof t=="number"?super(t):(super(...t|
&key=AIzaSyDDO29hDprF49HURTLsB7xnKjo-2qaOH70`,modalOpen:n,closeModal:()=>a(!1)})]})};function s5e(){return s("svg",{width:"18",height:"16",viewBox:"0 0 18 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:s("path",{d:"M1.5 2.45C1.5 2.02996 1.5 1.81994 1.58175 1.65951C1.65365 1.51839 1.76839 1.40365 1.90951 1.33175C2.06994 1.25 2.27996 1.25 2.7 1.25H15.3C15.72 1.25 15.9301 1.25 16.0905 1.33175C16.2316 1.40365 16.3463 1.51839 16.4183 1.65951C16.5 1.81994 16.5 2.02996 16.5 2.45V2.95205C16.5 3.15364 16.5 3.25444 16.4754 3.34817C16.4535 3.43123 16.4176 3.50993 16.3691 3.58082C16.3144 3.66082 16.2383 3.72684 16.0859 3.85887L11.2891 8.01613C11.1367 8.14816 11.0606 8.21418 11.0059 8.29418C10.9574 8.36507 10.9215 8.44377 10.8996 8.52683C10.875 8.62056 10.875 8.72136 10.875 8.92295V12.8438C10.875 12.9905 10.875 13.0638 10.8513 13.1272C10.8304 13.1832 10.7964 13.2334 10.7522 13.2736C10.7021 13.3192 10.634 13.3464 10.4978 13.4009L7.94783 14.4209C7.67218 14.5311 7.53435 14.5863 7.4237 14.5633C7.32695 14.5432 7.24204 14.4857 7.18744 14.4033C7.125 14.3091 7.125 14.1607 7.125 13.8638V8.92295C7.125 8.72136 7.125 8.62056 7.10037 8.52683C7.07854 8.44377 7.0426 8.36507 6.99413 8.29418C6.93943 8.21418 6.86326 8.14816 6.71092 8.01613L1.91408 3.85887C1.76174 3.72684 1.68557 3.66082 1.63087 3.58082C1.5824 3.50993 1.54646 3.43123 1.52463 3.34817C1.5 3.25444 1.5 3.15364 1.5 2.95205V2.45Z",stroke:"black",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})}function cm({name:e,control:t,setValue:n,reset:a,title:r,labelField:i,valueField:o,options:c}){const{field:l,fieldState:d,formState:u}=Ii({control:t,name:e});return s("div",{className:"mb-[34px]",children:f(mu,{defaultOpen:!0,children:[f("div",{className:"mb-[12px] flex justify-between",children:[f("h4",{className:"flex w-full justify-between text-[16px] font-semibold lg:block",children:[s("span",{className:"lg:mr-2 lg:border-r lg:pr-2",children:r}),s("button",{className:"text-sm font-normal lowercase lg:text-xs",onClick:a,children:"Clear"})]}),f(mu.Button,{className:"hidden duration-200 ui-open:rotate-180 lg:inline",children:[" ",s("svg",{width:"14",height:"8",viewBox:"0 0 14 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:s("path",{d:"M13 7L7 1L1 7",stroke:"#475467",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})]})]}),s(ke,{as:h.exports.Fragment,enter:"transition-all ease duration-500",enterFrom:"max-h-0",enterTo:"max-h-[900px]",leave:"transition-all ease duration-500",leaveFrom:"max-h-[900px]",leaveTo:"max-h-0",children:s(mu.Panel,{className:"overflow-hidden text-gray-500 duration-500",children:c.map((g,y)=>f("div",{className:"checkbox-container flex gap-2 items-center mb-[12px]",children:[s("input",{type:`${e==="capacity"?"radio":"checkbox"}`,id:g[o],value:g[o],className:`text-xl w-5 h-8 rounded ${e==="capacity"?"accent-[#0D9895]":""}`,name:e,checked:l.value.includes(g[o]),onChange:()=>{e==="capacity"?l.onChange(g[o]):l.value.includes(g[o])?l.onChange(l.value.filter(v=>v!==g[o])):l.onChange([...l.value,g[o]])},onBlur:l.onBlur}),e!=="capacity"?f("label",{htmlFor:g[o],children:[g[i]," ",r=="Reviews"?Array(Number(g[o])).fill("").map((w,v)=>s("span",{className:"ml-1",children:s(ds,{})},v)):null]}):f("span",{children:[g[i]," "]})]},y))})})]})})}const i5e=new AbortController;function Ch(e,t){const[n,a]=h.exports.useState([]),{dispatch:r}=h.exports.useContext(Ee),{dispatch:i}=h.exports.useContext(we);async function o(){let c=new _e;try{const l=await c.callRawAPI("/v2/api/custom/ergo/amenity/PAGINATE",{page:1,limit:1e3,where:["deleted_at IS NULL",`${t?e&&`space_id != ${e}`:e?`space_id = ${e}`:"1"} OR ${`creator_id = ${Number(localStorage.getItem("user"))}`}`]},"POST",i5e.signal);l.error||a(l.list)}catch(l){if(me(r,l.message),l.name=="AbortError")return;i({type:"SHOW_ERROR",payload:{heading:"Operation failed",message:l.message}})}}return h.exports.useEffect(()=>{o()},[e]),n}const o5e=[{name:"$0 - $30",id:0},{name:"$31 - $60",id:1},{name:"$60 - $90",id:2},{name:"$90 - $120",id:3},{name:"$120 - $150",id:4},{name:"$150 - $180",id:5}],l5e=[{name
${t}`:t}var Dj=class Mj{constructor(t,n,a,r){this.sheet=t,this.property=n,this.value=a,this.selector=r,this.property=n,this.value=a,this.joined=o8(n,a);const i=this.selector.preconditions.concat(this.selector.postconditions);this.hash=this.selector.hasConditions?this.selector.scopeClassName:Lj(this.sheet.name,this.joined),this.key=eb([this.joined,i,this.hash])}toString(){let t=i_(this.selector.preconditions,{right:this.hash});return t=i_(this.selector.postconditions,{left:t}),`${t} {${Mj.genRule(this.property,this.value)}}`}static genRule(t,n){const a=h5e(t);return o8(a,p5e(t,n))+";"}};function i_(e,{left:t="",right:n=""}={}){const a=e.reduce((r,i)=>U5(i)?r+i:Tj(i)?r+i.slice(1):eb([r,i]," "),t);return eb([a,g5e(n)]," ")}var y5e=class Dg{constructor(t,n=null,{preconditions:a,postconditions:r}={}){this.sheet=t,this.preconditions=[],this.scopeClassName=null,this.scopeName=null,this.postconditions=[],this.preconditions=a?s_(a):[],this.postconditions=r?s_(r):[],this.setScope(n)}setScope(t){return t?(this.scopeClassName||(this.scopeName=t,this.scopeClassName=Lj(this.sheet.name,t+this.sheet.count)),this):this}get hasConditions(){return this.preconditions.length>0||this.postconditions.length>0}addScope(t){return new Dg(this.sheet,t,{preconditions:this.preconditions,postconditions:this.postconditions})}addPrecondition(t){return new Dg(this.sheet,this.scopeClassName,{postconditions:this.postconditions,preconditions:this.preconditions.concat(t)})}addPostcondition(t){return new Dg(this.sheet,this.scopeClassName,{preconditions:this.preconditions,postconditions:this.postconditions.concat(t)})}createRule(t,n){return new Dj(this.sheet,t,n,this)}},x5e=class{constructor(e,t){this.name=e,this.rootNode=t,this.storedStyles={},this.storedClasses={},this.style="",this.count=0,this.id=`flairup-${e}`,this.styleTag=this.createStyleTag()}getStyle(){return this.style}append(e){this.style=b5e(this.style,e)}apply(){this.count++,this.styleTag&&(this.styleTag.innerHTML=this.style)}isApplied(){return!!this.styleTag}createStyleTag(){var t;if(typeof document=="undefined"||this.isApplied()||this.rootNode===null)return this.styleTag;const e=document.createElement("style");return e.type="text/css",e.id=this.id,((t=this.rootNode)!=null?t:document.head).appendChild(e),e}addRule(e){const t=this.storedClasses[e.key];return bx(t)?t:(this.storedClasses[e.key]=e.hash,this.storedStyles[e.hash]=[e.property,e.value],this.append(e.toString()),e.hash)}};function V5(e,t){for(const n in e)t(n.trim(),e[n])}function mn(...e){const t=e.reduce((n,a)=>(a instanceof Set?n.push(...a):typeof a=="string"?n.push(a):Array.isArray(a)?n.push(mn(...a)):typeof a=="object"&&Object.entries(a).forEach(([r,i])=>{i&&n.push(r)}),n),[]);return eb(t," ").trim()}function w5e(e,t){const n=new x5e(e,t);return{create:a,getStyle:n.getStyle.bind(n),isApplied:n.isApplied.bind(n)};function a(r){const i={};return Aj(n,r,new y5e(n)).forEach(([c,l,d])=>{yx(n,l,d).forEach(u=>{o(c,u)})}),n.apply(),i;function o(c,l){var d;i[c]=(d=i[c])!=null?d:new Set,i[c].add(l)}}}function Aj(e,t,n){const a=[];return V5(t,(r,i)=>{if(Sj(r))return Aj(e,i,n.addPrecondition(r)).forEach(o=>a.push(o));a.push([r,t[r],n.addScope(r)])}),a}function yx(e,t,n){const a=new Set;return V5(t,(r,i)=>{let o=[];if(Sj(r))o=yx(e,i,n.addPostcondition(r));else if(m5e(r))o=s_(i);else if(Cj(r))o=_5e(e,i,r,n);else if(Ej(r))o=v5e(e,i,n);else if(kj(r,i)){const c=n.createRule(r,i);e.addRule(c),a.add(c.hash)}return Ij(o,a)}),a}function Ij(e,t){return e.forEach(n=>t.add(n)),t}function v5e(e,t,n){const a=new Set,r=[];if(V5(t,(i,o)=>{if(kj(i,o)){r.push(Dj.genRule(i,o));return}const c=yx(e,o!=null?o:{},n);Ij(c,a)}),!n.scopeClassName)return a;if(r.length){const i=r.join(" ");e.append(`${i_(n.preconditions,{right:n.scopeClassName})} {${i}}`)}return a.add(n.scopeClassName),a}function _5e(e,t,n,a){e.append(n+" {");const r=yx(e,t,a);return e.append("}"),r}function oa(){return oa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},oa.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var tn;(function(e){e.hiddenOnSearch="epr-hidden-on-search",e.searchActive="epr-search-active",e.hidden="epr-hidden",e.visible="epr-visible",e.active="epr-active",e.emoji="epr-emoji",e.category="epr-emoji-category",e.label="epr-emoji-category-label",e.categoryContent="epr-emoji-category-content",e.emojiHasVariations="epr-emoji-has-variations",e.scrollBody="epr-body",e.emojiList="epr-emoji-list",e.external="__EmojiPicker__",e.emojiPicker="EmojiPickerReact",e.open="epr-open",e.vertical="epr-vertical",e.horizontal="epr-horizontal",e.variationPicker="epr-emoji-variation-picker",e.darkTheme="epr-dark-theme",e.autoTheme="epr-auto-theme"})(tn||(tn={}));function dr(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.map(function(a){return"."+a}).join("")}var ra=w5e("epr",null),Mg={display:"none",opacity:"0",pointerEvents:"none",visibility:"hidden",overflow:"hidden"},W5=ra.create({hidden:oa({".":tn.hidden},Mg)}),C5e=h.exports.memo(function(){return h.exports.createElement("style",{suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:ra.getStyle()}})}),Qc=ra.create({".epr-main":{":has(input:not(:placeholder-shown))":{categoryBtn:{":hover":{opacity:"1",backgroundPositionY:"var(--epr-category-navigation-button-size)"}},hiddenOnSearch:oa({".":tn.hiddenOnSearch},Mg)},":has(input(:placeholder-shown))":{visibleOnSearchOnly:Mg}},hiddenOnReactions:{transition:"all 0.5s ease-in-out"},".epr-reactions":{hiddenOnReactions:{height:"0px",width:"0px",opacity:"0",pointerEvents:"none",overflow:"hidden"}},".EmojiPickerReact:not(.epr-search-active)":{categoryBtn:{":hover":{opacity:"1",backgroundPositionY:"var(--epr-category-navigation-button-size)"},"&.epr-active":{opacity:"1",backgroundPositionY:"var(--epr-category-navigation-button-size)"}},visibleOnSearchOnly:oa({".":"epr-visible-on-search-only"},Mg)}});function Ol(e,t){var n,a;return{".epr-dark-theme":(n={},n[e]=t,n),".epr-auto-theme":(a={},a[e]={"@media (prefers-color-scheme: dark)":t},a)}}function Pj(e,t){var n,a,r=(n=e.customEmojis)!=null?n:[],i=(a=t.customEmojis)!=null?a:[];return e.open===t.open&&e.emojiVersion===t.emojiVersion&&e.reactionsDefaultOpen===t.reactionsDefaultOpen&&e.searchPlaceHolder===t.searchPlaceHolder&&e.searchPlaceholder===t.searchPlaceholder&&e.defaultSkinTone===t.defaultSkinTone&&e.skinTonesDisabled===t.skinTonesDisabled&&e.autoFocusSearch===t.autoFocusSearch&&e.emojiStyle===t.emojiStyle&&e.theme===t.theme&&e.suggestedEmojisMode===t.suggestedEmojisMode&&e.lazyLoadEmojis===t.lazyLoadEmojis&&e.className===t.className&&e.height===t.height&&e.width===t.width&&e.style===t.style&&e.searchDisabled===t.searchDisabled&&e.skinTonePickerLocation===t.skinTonePickerLocation&&r.length===i.length}var E5e=["1f44d","2764-fe0f","1f603","1f622","1f64f","1f44e","1f621"],Tp;(function(e){e.RECENT="recent",e.FREQUENT="frequent"})(Tp||(Tp={}));var Kr;(function(e){e.NATIVE="native",e.APPLE="apple",e.TWITTER="twitter",e.GOOGLE="google",e.FACEBOOK="facebook"})(Kr||(Kr={}));var Lp;(function(e){e.DARK="dark",e.LIGHT="light",e.AUTO="auto"})(Lp||(Lp={}));var Ys;(function(e){e.NEUTRAL="neutral",e.LIGHT="1f3fb",e.MEDIUM_LIGHT="1f3fc",e.MEDIUM="1f3fd",e.MEDIUM_DARK="1f3fe",e.DARK="1f3ff"})(Ys||(Ys={}));var Xt;(function(e){e.SUGGESTED="suggested",e.CUSTOM="custom",e.SMILEYS_PEOPLE="smileys_people",e.ANIMALS_NATURE="animals_nature",e.FOOD_DRINK="food_drink",e.TRAVEL_PLACES="travel_places",e.ACTIVITIES="activities",e.OBJECTS="objects",e.SYMBOLS="symbols",e.FLAGS="flags"})(Xt||(Xt={}));var Hu;(function(e){e.SEARCH="SEARCH",e.PREVIEW="PREVIEW"})(Hu||(Hu={}));var ps,T5e=[Xt.SUGGESTED,Xt.CUSTOM,Xt.SMILEYS_PEOPLE,Xt.ANIMALS_NATURE,Xt.FOOD_DRINK,Xt.TRAVEL_PLACES,Xt.ACTIVITIES,Xt.OBJECTS,Xt.SYMBOLS,Xt.FLAGS],L5e={name:"Recently Used",category:Xt.SUGGESTED},Rj=(ps={},ps[Xt.SUGGESTED]={category:Xt.SUGGESTED,name:"Frequently Used"},ps[Xt.CUSTOM]={category:Xt.CUSTOM,name:"Custom Emojis"},ps[Xt.SMILEYS_PEOPLE]={category:Xt.SMILEYS_PEOPLE,name:"Smileys & People"},ps[Xt.ANIMALS_NATURE]={category:Xt.
`+pv+" "+Fz+` {
display: none;
}
`+pv+" "+n+` {
display: flex;
}
`+pv+" "+NCe+":not(:has("+n+`)) {
display: none;
}
`)}function kCe(e){return[Fz,'[data-full-name*="',c_(e),'"]'].join("")}var CCe="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI2LjMuMSwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IgoJIHdpZHRoPSIyMHB4IiBoZWlnaHQ9IjQwcHgiIHZpZXdCb3g9IjAgMCAyMCA0MCIgZW5hYmxlLWJhY2tncm91bmQ9Im5ldyAwIDAgMjAgNDAiIHhtbDpzcGFjZT0icHJlc2VydmUiPgo8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZmlsbD0iIzg2ODY4NiIgZD0iTTEyLDguODFjMCwyLjA4LTEuNjgsMy43Ni0zLjc2LDMuNzZjLTIuMDgsMC0zLjc2LTEuNjgtMy43Ni0zLjc2CgljMC0yLjA4LDEuNjgtMy43NiwzLjc2LTMuNzZDMTAuMzIsNS4wNSwxMiw2LjczLDEyLDguODF6IE0xMS4yMywxMi43MmMtMC44MywwLjY0LTEuODcsMS4wMS0yLjk5LDEuMDFjLTIuNzIsMC00LjkyLTIuMi00LjkyLTQuOTIKCWMwLTIuNzIsMi4yLTQuOTIsNC45Mi00LjkyYzIuNzIsMCw0LjkyLDIuMiw0LjkyLDQuOTJjMCwxLjEzLTAuMzgsMi4xNi0xLjAxLDIuOTlsMy45NCwzLjkzYzAuMjUsMC4yNSwwLjI1LDAuNjYsMCwwLjkyCgljLTAuMjUsMC4yNS0wLjY2LDAuMjUtMC45MiwwTDExLjIzLDEyLjcyeiIvPgo8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZmlsbD0iI0MwQzBCRiIgZD0iTTEyLDI4LjgxYzAsMi4wOC0xLjY4LDMuNzYtMy43NiwzLjc2Yy0yLjA4LDAtMy43Ni0xLjY4LTMuNzYtMy43NgoJYzAtMi4wOCwxLjY4LTMuNzYsMy43Ni0zLjc2QzEwLjMyLDI1LjA1LDEyLDI2LjczLDEyLDI4LjgxeiBNMTEuMjMsMzIuNzJjLTAuODMsMC42NC0xLjg3LDEuMDEtMi45OSwxLjAxCgljLTIuNzIsMC00LjkyLTIuMi00LjkyLTQuOTJjMC0yLjcyLDIuMi00LjkyLDQuOTItNC45MmMyLjcyLDAsNC45MiwyLjIsNC45Miw0LjkyYzAsMS4xMy0wLjM4LDIuMTYtMS4wMSwyLjk5bDMuOTQsMy45MwoJYzAuMjUsMC4yNSwwLjI1LDAuNjYsMCwwLjkyYy0wLjI1LDAuMjUtMC42NiwwLjI1LTAuOTIsMEwxMS4yMywzMi43MnoiLz4KPC9zdmc+";function ECe(){return h.exports.createElement("div",{className:mn(TCe.icnSearch)})}var TCe=ra.create(oa({icnSearch:{".":"epr-icn-search",content:"",position:"absolute",top:"50%",left:"var(--epr-search-bar-inner-padding)",transform:"translateY(-50%)",width:"20px",height:"20px",backgroundRepeat:"no-repeat",backgroundPosition:"0 0",backgroundSize:"20px",backgroundImage:"url("+CCe+")"}},Ol("icnSearch",{backgroundPositionY:"-20px"})));function LCe(){var e=Qj(),t=eS();return e?null:h.exports.createElement(Rz,{className:mn(Ig.overlay)},h.exports.createElement(DCe,null),t?h.exports.createElement(jz,null):null)}function DCe(){var e=h.exports.useState(0),t=e[0],n=e[1],a=Kc(),r=Gl(),i=lSe(),o=dSe(),c=QSe(),l=c.statusSearchResults,d=c.searchTerm,u=c.onChange,g=r==null?void 0:r.current,y=g==null?void 0:g.value;return h.exports.createElement(Lx,{className:mn(Ig.searchContainer)},h.exports.createElement(SCe,{value:y}),h.exports.createElement("input",{autoFocus:o,"aria-label":"Type to search for an emoji",onFocus:a,className:mn(Ig.search),type:"text","aria-controls":"epr-search-id",placeholder:i,onChange:function(v){n(t+1),setTimeout(function(){var S,m;u((S=v==null||(m=v.target)==null?void 0:m.value)!=null?S:y)})},ref:r}),d?h.exports.createElement("div",{role:"status",className:mn("epr-status-search-results",Ig.visuallyHidden),"aria-live":"polite",id:"epr-search-id","aria-atomic":"true"},l):null,h.exports.createElement(ECe,null),h.exports.createElement(vCe,null))}var Ig=ra.create(oa({overlay:{padding:"var(--epr-header-padding)",zIndex:"var(--epr-header-overlay-z-index)"},searchContainer:{".":"epr-search-container",flex:"1",display:"block",minWidth:"0"},visuallyHidden:{clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",overflow:"hidden",position:"absolute",whiteSpace:"nowrap",width:"1px"},search:{outline:"none",transition:"all 0.2s ease-in-out",color:"var(--epr-search-input-text-color)",borderRadius:"var(--epr-search-input-border-radius)",padding:"var(--epr-search-input-padding)",height:"var(--epr-search-input-height)",backgroundColor:"var(--epr-search-input-bg-color)",border:"1px solid var(--epr-search-input-bg-color)",width:"100%",":focus":{backgroundColor:"var(--epr-search-input-bg-color-active)",border:"1px solid var(--epr-search-border-color)"},"::placeholder":{color:"var(--epr-search-input-placeholder-color)"}},btnClearSearch:{".
`,WCe="\uFE0F",YCe="\u200D";let G0=null,q0=null;function GCe(e){e===void 0&&(e=[]);const t={};Gr.groups=t;const n=new Gr;G0==null&&(G0=M8(FCe)),q0==null&&(q0=M8($Ce)),it(n,"'",wb),it(n,"{",Hm),it(n,"}",Um),it(n,"[",sb),it(n,"]",ib),it(n,"(",ob),it(n,")",lb),it(n,"<",cb),it(n,">",db),it(n,"\uFF08",ub),it(n,"\uFF09",fb),it(n,"\u300C",mb),it(n,"\u300D",pb),it(n,"\u300E",hb),it(n,"\u300F",gb),it(n,"\uFF1C",bb),it(n,"\uFF1E",yb),it(n,"&",xb),it(n,"*",vb),it(n,"@",nl),it(n,"`",Nb),it(n,"^",Sb),it(n,":",sl),it(n,",",uS),it(n,"$",kb),it(n,".",hi),it(n,"=",Cb),it(n,"!",fS),it(n,"-",gi),it(n,"%",Eb),it(n,"|",Tb),it(n,"+",Lb),it(n,"#",Db),it(n,"?",Mb),it(n,'"',mS),it(n,"/",bi),it(n,";",pS),it(n,"~",Vm),it(n,"_",Ab),it(n,"\\",_b);const a=hs(n,bv,cS,{[u_]:!0});hs(a,bv,a);const r=hs(n,Nd,Zi,{[f_]:!0});hs(r,Nd,r);const i=hs(n,hv,h_,{[m_]:!0});hs(i,Nd),hs(i,hv,i);const o=hs(n,L8,Bz,{[E8]:!0});it(n,D8,dS,{[E8]:!0}),it(o,D8),hs(o,L8,o);const c=hs(n,gv,Hz,{[$z]:!0});hs(c,gv,c),it(c,WCe,c);const l=it(c,YCe);hs(l,gv,c);const d=[[Nd,r]],u=[[Nd,null],[hv,i]];for(let g=0;g<G0.length;g++)qo(n,G0[g],g_,Zi,d);for(let g=0;g<q0.length;g++)qo(n,q0[g],b_,h_,u);yc(g_,{tld:!0,ascii:!0},t),yc(b_,{utld:!0,alpha:!0},t),qo(n,"file",Pg,Zi,d),qo(n,"mailto",Pg,Zi,d),qo(n,"http",zd,Zi,d),qo(n,"https",zd,Zi,d),qo(n,"ftp",zd,Zi,d),qo(n,"ftps",zd,Zi,d),yc(Pg,{scheme:!0,ascii:!0},t),yc(zd,{slashscheme:!0,ascii:!0},t),e=e.sort((g,y)=>g[0]>y[0]?1:-1);for(let g=0;g<e.length;g++){const y=e[g][0],v=e[g][1]?{[BCe]:!0}:{[HCe]:!0};y.indexOf("-")>=0?v[p_]=!0:Nd.test(y)?bv.test(y)?v[Og]=!0:v[f_]=!0:v[u_]=!0,T8(n,y,y,v)}return T8(n,"localhost",Pp,{ascii:!0}),n.jd=new Gr(Ib),{start:n,tokens:Wu({groups:t},Uz)}}function qCe(e,t){const n=ZCe(t.replace(/[A-Z]/g,c=>c.toLowerCase())),a=n.length,r=[];let i=0,o=0;for(;o<a;){let c=e,l=null,d=0,u=null,g=-1,y=-1;for(;o<a&&(l=c.go(n[o]));)c=l,c.accepts()?(g=0,y=0,u=c):g>=0&&(g+=n[o].length,y++),d+=n[o].length,i+=n[o].length,o++;i-=g,o-=y,d-=g,r.push({t:u.t,v:t.slice(i-d,i),s:i-d,e:i})}return r}function ZCe(e){const t=[],n=e.length;let a=0;for(;a<n;){let r=e.charCodeAt(a),i,o=r<55296||r>56319||a+1===n||(i=e.charCodeAt(a+1))<56320||i>57343?e[a]:e.slice(a,a+2);t.push(o),a+=o.length}return t}function qo(e,t,n,a,r){let i;const o=t.length;for(let c=0;c<o-1;c++){const l=t[c];e.j[l]?i=e.j[l]:(i=new Gr(a),i.jr=r.slice(),e.j[l]=i),e=i}return i=new Gr(n),i.jr=r.slice(),e.j[t[o-1]]=i,i}function M8(e){const t=[],n=[];let a=0,r="0123456789";for(;a<e.length;){let i=0;for(;r.indexOf(e[a+i])>=0;)i++;if(i>0){t.push(n.join(""));for(let o=parseInt(e.substring(a,a+i),10);o>0;o--)n.pop();a+=i}else n.push(e[a]),a++}return t}const Rp={defaultProtocol:"http",events:null,format:A8,formatHref:A8,nl2br:!1,tagName:"a",target:null,rel:null,validate:!0,truncate:1/0,className:null,attributes:null,ignoreTags:[],render:null};function hS(e,t){t===void 0&&(t=null);let n=Wu({},Rp);e&&(n=Wu(n,e instanceof hS?e.o:e));const a=n.ignoreTags,r=[];for(let i=0;i<a.length;i++)r.push(a[i].toUpperCase());this.o=n,t&&(this.defaultRender=t),this.ignoreTags=r}hS.prototype={o:Rp,ignoreTags:[],defaultRender(e){return e},check(e){return this.get("validate",e.toString(),e)},get(e,t,n){const a=t!=null;let r=this.o[e];return r&&(typeof r=="object"?(r=n.t in r?r[n.t]:Rp[e],typeof r=="function"&&a&&(r=r(t,n))):typeof r=="function"&&a&&(r=r(t,n.t,n)),r)},getObj(e,t,n){let a=this.o[e];return typeof a=="function"&&t!=null&&(a=a(t,n.t,n)),a},render(e){const t=e.render(this);return(this.get("render",null,e)||this.defaultRender)(t,e.t,e)}};function A8(e){return e}function Vz(e,t){this.t="token",this.v=e,this.tk=t}Vz.prototype={isLink:!1,toString(){return this.v},toHref(e){return this.toString()},toFormattedString(e){const t=this.toString(),n=e.get("truncate",t,this),a=e.get("format",t,this);return n&&a.length>n?a.substring(0,n)+"\u2026":a},toFormattedHref(e){return e.get("formatHref",this.toHref(e.get("defaultProtocol")),this)},startIndex(){return this.tk[0].s},endIndex(){return this.tk[this.tk.length-1].e},toObject(e){return e===void 0&&(e=Rp.defaultProtocol),{type:this.t,value:this.toString(),isLink
&key=AIzaSyDDO29hDprF49HURTLsB7xnKjo-2qaOH70`,modalOpen:_,closeModal:()=>C(!1)})]})})},s9e=()=>s("svg",{width:"17",height:"18",viewBox:"0 0 17 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:s("path",{d:"M16 11.5V12.5C16 13.9001 16 14.6002 15.7275 15.135C15.4878 15.6054 15.1054 15.9878 14.635 16.2275C14.1002 16.5 13.4001 16.5 12 16.5H5C3.59987 16.5 2.8998 16.5 2.36502 16.2275C1.89462 15.9878 1.51217 15.6054 1.27248 15.135C1 14.6002 1 13.9001 1 12.5V11.5M12.6667 7.33333L8.5 11.5M8.5 11.5L4.33333 7.33333M8.5 11.5V1.5",stroke:"#667085",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}),F8=[{header:"BOOKING DATE",accessor:"booking_start_time"},{header:"SPACE",accessor:"space"},{header:"PAYMENT METHOD",accessor:"payment_method"},{header:"AMOUNT",accessor:"amount"},{header:"RECEIPT",accessor:"receipt"},{header:"ACTION",accessor:""}],i9e=()=>{var ne,oe;const[e,t]=h.exports.useState(!1),n=cr(e,300),a=localStorage.getItem("role"),[r,i]=lt(),[o,c]=h.exports.useState(10),[l,d]=h.exports.useState(0),[u,g]=h.exports.useState(0),[y,w]=h.exports.useState(0),[v,S]=h.exports.useState(!1),[m,p]=h.exports.useState(!1),[b,x]=h.exports.useState("DESC"),[k,N]=h.exports.useState([]),[_,C]=h.exports.useState([]),{dispatch:E}=h.exports.useContext(we),[T,D]=h.exports.useState({}),P=h.exports.useRef(new Date);h.exports.useState(P.current),h.exports.useState(P.current);const{handleSubmit:M,register:O,reset:F,setValue:z,control:H,dirtyFields:A}=Oe({defaultValues:(()=>(Ue(r),{from:"",to:""}))()});function j(q){(async function(){c(q),await Y(0,q)})()}function I(){(async function(){await Y(y-1>0?y-1:0,o)})()}function B(){(async function(){await Y(y+1<=l?y+1:0,o)})()}async function Y(q,te){E({type:"START_LOADING"});const G=Ue(r),J=localStorage.getItem("user");var K=G==null?void 0:G.from,Q=G==null?void 0:G.to;const Z=[`${a=="host"?`ergo_booking.host_id = ${J}`:`ergo_booking.customer_id = ${J}`}
AND ${G.space_id?`ergo_property_spaces.id = ${G.space_id}`:"1"}
AND ergo_booking.status = 3 ${K?`AND ergo_booking.booking_start_time BETWEEN '${K}' AND '${Q}'`:""}`];try{const se=await _t("booking","post",{where:Z,page:q,limit:te,sortId:"update_at",direction:"DESC"},"PAGINATE"),{list:ce,total:le,limit:ae,num_pages:ie,page:de}=se;N(ce),c(ae),d(ie),w(de),g(le),S(de>1),p(de+1<=ie)}catch(se){E({type:"SHOW_ERROR",payload:{heading:"Operation failed",message:se.message}})}E({type:"STOP_LOADING"})}async function U(){let q=localStorage.getItem("user"),te=[`ergo_property.host_id = ${q}`];try{const G=await _t("popular","post",{page:1,limit:1e3,user_id:q,where:te,all:!0,sortId:"update_at",direction:"DESC"},"PAGINATE");Array.isArray(G.list)&&C(G.list)}catch(G){E({type:"SHOW_ERROR",payload:{heading:"Operation failed",message:G.message}})}}const W=async q=>{console.log(q);const te=qC(q.from),G=qC(q.to);r.set("from",q.from?te:""),r.set("to",q.to?G:new Date().toISOString().split("T")[0]),r.set("status",q.status),r.set("space_id",q.space_id),i(r),Y(1,o)};h.exports.useEffect(()=>{Y(1,o),U()},[]);const V=(q,te)=>b=="DESC"?new Date(te.update_at)-new Date(q.update_at):new Date(q.update_at)-new Date(te.update_at);function X(){var q=window.open("","PRINT","height=400,width=600");q.document.write("<html><head><title>"+document.title+"</title>"),q.document.write("</head><body >"),q.document.write("<h1>"+document.title+"</h1>"),q.document.write(document.getElementById("receipt").innerHTML),q.document.write("</body></html>"),q.document.close(),q.focus(),q.print()}return f("div",{className:"pt-[44px] min-h-screen",children:[f("div",{className:"",children:[s("div",{className:"flex justify-between items-center mb-0 sm:mb-[21px] flex-wrap",children:f("form",{onSubmit:M(W),className:"sm:flex gap-[12px] items-center w-full flex-wrap md:mb-0 mb-4",children:[s("div",{className:"z-10 min-w-[190px] rounded-md bg-white h-fit",children:s(No,{reset:()=>resetField("from",{keepDirty:!1,keepTouched:!1}),setValue:q=>z("from",q,{shouldDirty:!0}),control:H,name:"from",labelClassName:"justify-between flex-grow flex-row-reverse",placeholder:"Start",type:"space",min:new Date("2001-01-01")})}),s("div",{className:"z-10 min-w-[190px] rounded-md bg-white h-fit",children:s(No,{reset:()=>resetField("to",{keepDirty:!1,keepTouched:!1}),setValue:q=>z("to",q,{shouldDirty:!0}),control:H,name:"to",labelClassName:"justify-between flex-grow flex-row-reverse",placeholder:"End",type:"space",min:new Date("2001-01-01")})}),s(As,{options:_,name:"space_id",accessor:"name",valueAccessor:"id",register:O,setValue:z,formMode:!0,defaultValue:{name:"All Spaces",value:""},className:"min-w-[200px] mb- sm:mb-0",defaultOptionClassName:"text-[#667085]"}),f("div",{className:"flex items-center gap-6",children:[s("button",{type:"submit",className:"sm:mt-0 sm:mb-0 border-black border h-fit p-2 px-6 w-fit rounded-md",children:"Search"}),s("div",{className:"grid justify-start sm:flex sm:justify-end my-4",children:f(qy,{id:"test-table-xls-button",filename:"payout",data:k,className:"border-black border p-2 px-6 rounded-md flex gap-2",children:[s(s9e,{})," Export CSV"]})})]})]})}),f("div",{className:"flex justify-between mb-[16px] items-center",children:[f("h2",{className:"text-2xl",children:["Total Paid Out: ",f("strong",{children:["$",k.reduce((q,te)=>q+(te.total+te.addon_cost),0).toFixed(2)]})]}),s(As,{options:[{label:"By Date: Newest First",value:"DESC"},{label:"By Date: Oldest First",value:"ASC"}],onChange:x,accessor:"label",valueAccessor:"value",className:"min-w-[200px]"})]})]}),s(Ln,{currentPage:y,pageSize:o,totalNumber:u,updatePageSize:j,noBorder:!0}),s("div",{className:"snap-scroll",children:f("table",{className:"min-w-full divide-y divide-gray-200 bg-white mt-1",children:[s("thead",{className:"bg-[#F9FAFB] border-t border-b border-[#EAECF0] cursor-pointer",children:s("tr",{className:"cursor-pointer",children:F8.map((q,te)=>s("th",{scope:"col",className:"px-6 py-4 text-left text-xs font-medium text-gray-500 uppercase tracking-wider cursor-pointer whitespace-nowrap",children:q.header},te))})}),s("tbody",{className:"divide-y divide-gray-200",children:k.sort
`;return a},e}(),Rg=new Map,Pb=new Map,Wm=1,J0=function(e){if(Rg.has(e))return Rg.get(e);for(;Pb.has(Wm);)Wm++;var t=Wm++;return Rg.set(e,t),Pb.set(t,e),t},w9e=function(e){return Pb.get(e)},v9e=function(e,t){t>=Wm&&(Wm=t+1),Rg.set(e,t),Pb.set(t,e)},_9e="style["+Yu+'][data-styled-version="5.3.11"]',N9e=new RegExp("^"+Yu+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),S9e=function(e,t,n){for(var a,r=n.split(","),i=0,o=r.length;i<o;i++)(a=r[i])&&e.registerName(t,a)},k9e=function(e,t){for(var n=(t.textContent||"").split(`/*!sc*/
`),a=[],r=0,i=n.length;r<i;r++){var o=n[r].trim();if(o){var c=o.match(N9e);if(c){var l=0|parseInt(c[1],10),d=c[2];l!==0&&(v9e(d,l),S9e(e,d,c[3]),e.getTag().insertRules(l,a)),a.length=0}else a.push(o)}}},C9e=function(){return typeof __webpack_nonce__!="undefined"?__webpack_nonce__:null},qz=function(e){var t=document.head,n=e||t,a=document.createElement("style"),r=function(c){for(var l=c.childNodes,d=l.length;d>=0;d--){var u=l[d];if(u&&u.nodeType===1&&u.hasAttribute(Yu))return u}}(n),i=r!==void 0?r.nextSibling:null;a.setAttribute(Yu,"active"),a.setAttribute("data-styled-version","5.3.11");var o=C9e();return o&&a.setAttribute("nonce",o),n.insertBefore(a,i),a},E9e=function(){function e(n){var a=this.element=qz(n);a.appendChild(document.createTextNode("")),this.sheet=function(r){if(r.sheet)return r.sheet;for(var i=document.styleSheets,o=0,c=i.length;o<c;o++){var l=i[o];if(l.ownerNode===r)return l}Ah(17)}(a),this.length=0}var t=e.prototype;return t.insertRule=function(n,a){try{return this.sheet.insertRule(a,n),this.length++,!0}catch{return!1}},t.deleteRule=function(n){this.sheet.deleteRule(n),this.length--},t.getRule=function(n){var a=this.sheet.cssRules[n];return a!==void 0&&typeof a.cssText=="string"?a.cssText:""},e}(),T9e=function(){function e(n){var a=this.element=qz(n);this.nodes=a.childNodes,this.length=0}var t=e.prototype;return t.insertRule=function(n,a){if(n<=this.length&&n>=0){var r=document.createTextNode(a),i=this.nodes[n];return this.element.insertBefore(r,i||null),this.length++,!0}return!1},t.deleteRule=function(n){this.element.removeChild(this.nodes[n]),this.length--},t.getRule=function(n){return n<this.length?this.nodes[n].textContent:""},e}(),L9e=function(){function e(n){this.rules=[],this.length=0}var t=e.prototype;return t.insertRule=function(n,a){return n<=this.length&&(this.rules.splice(n,0,a),this.length++,!0)},t.deleteRule=function(n){this.rules.splice(n,1),this.length--},t.getRule=function(n){return n<this.length?this.rules[n]:""},e}(),U8=bS,D9e={isServer:!bS,useCSSOMInjection:!y9e},Zz=function(){function e(n,a,r){n===void 0&&(n=Tl),a===void 0&&(a={}),this.options=co({},D9e,{},n),this.gs=a,this.names=new Map(r),this.server=!!n.isServer,!this.server&&bS&&U8&&(U8=!1,function(i){for(var o=document.querySelectorAll(_9e),c=0,l=o.length;c<l;c++){var d=o[c];d&&d.getAttribute(Yu)!=="active"&&(k9e(i,d),d.parentNode&&d.parentNode.removeChild(d))}}(this))}e.registerId=function(n){return J0(n)};var t=e.prototype;return t.reconstructWithOptions=function(n,a){return a===void 0&&(a=!0),new e(co({},this.options,{},n),this.gs,a&&this.names||void 0)},t.allocateGSInstance=function(n){return this.gs[n]=(this.gs[n]||0)+1},t.getTag=function(){return this.tag||(this.tag=(r=(a=this.options).isServer,i=a.useCSSOMInjection,o=a.target,n=r?new L9e(o):i?new E9e(o):new T9e(o),new x9e(n)));var n,a,r,i,o},t.hasNameForId=function(n,a){return this.names.has(n)&&this.names.get(n).has(a)},t.registerName=function(n,a){if(J0(n),this.names.has(n))this.names.get(n).add(a);else{var r=new Set;r.add(a),this.names.set(n,r)}},t.insertRules=function(n,a,r){this.registerName(n,a),this.getTag().insertRules(J0(n),r)},t.clearNames=function(n){this.names.has(n)&&this.names.get(n).clear()},t.clearRules=function(n){this.getTag().clearGroup(J0(n)),this.clearNames(n)},t.clearTag=function(){this.tag=void 0},t.toString=function(){return function(n){for(var a=n.getTag(),r=a.length,i="",o=0;o<r;o++){var c=w9e(o);if(c!==void 0){var l=n.names.get(c),d=a.getGroup(o);if(l&&d&&l.size){var u=Yu+".g"+o+'[id="'+c+'"]',g="";l!==void 0&&l.forEach(function(y){y.length>0&&(g+=y+",")}),i+=""+d+u+'{content:"'+g+`"}/*!sc*/
`}}}return i}(this)},e}(),M9e=/(a)(d)/gi,V8=function(e){return String.fromCharCode(e+(e>25?39:97))};function x_(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=V8(t%52)+n;return(V8(t%52)+n).replace(M9e,"$1-$2")}var su=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},Qz=function(e){return su(5381,e)};function A9e(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(jp(n)&&!gS(n))return!1}return!0}var I9e=Qz("5.3.11"),O9e=function(){function e(t,n,a){this.rules=t,this.staticRulesId="",this.isStatic=(a===void 0||a.isStatic)&&A9e(t),this.componentId=n,this.baseHash=su(I9e,n),this.baseStyle=a,Zz.registerId(n)}return e.prototype.generateAndInjectStyles=function(t,n,a){var r=this.componentId,i=[];if(this.baseStyle&&i.push(this.baseStyle.generateAndInjectStyles(t,n,a)),this.isStatic&&!a.hash)if(this.staticRulesId&&n.hasNameForId(r,this.staticRulesId))i.push(this.staticRulesId);else{var o=Gu(this.rules,t,n,a).join(""),c=x_(su(this.baseHash,o)>>>0);if(!n.hasNameForId(r,c)){var l=a(o,"."+c,void 0,r);n.insertRules(r,c,l)}i.push(c),this.staticRulesId=c}else{for(var d=this.rules.length,u=su(this.baseHash,a.hash),g="",y=0;y<d;y++){var w=this.rules[y];if(typeof w=="string")g+=w;else if(w){var v=Gu(w,t,n,a),S=Array.isArray(v)?v.join(""):v;u=su(u,S+y),g+=S}}if(g){var m=x_(u>>>0);if(!n.hasNameForId(r,m)){var p=a(g,"."+m,void 0,r);n.insertRules(r,m,p)}i.push(m)}}return i.join(" ")},e}(),P9e=/^\s*\/\/.*$/gm,R9e=[":","[",".","#"];function j9e(e){var t,n,a,r,i=e===void 0?Tl:e,o=i.options,c=o===void 0?Tl:o,l=i.plugins,d=l===void 0?Ob:l,u=new p9e(c),g=[],y=function(S){function m(p){if(p)try{S(p+"}")}catch{}}return function(p,b,x,k,N,_,C,E,T,D){switch(p){case 1:if(T===0&&b.charCodeAt(0)===64)return S(b+";"),"";break;case 2:if(E===0)return b+"/*|*/";break;case 3:switch(E){case 102:case 112:return S(x[0]+b),"";default:return b+(D===0?"/*|*/":"")}case-2:b.split("/*|*/}").forEach(m)}}}(function(S){g.push(S)}),w=function(S,m,p){return m===0&&R9e.indexOf(p[n.length])!==-1||p.match(r)?S:"."+t};function v(S,m,p,b){b===void 0&&(b="&");var x=S.replace(P9e,""),k=m&&p?p+" "+m+" { "+x+" }":x;return t=b,n=m,a=new RegExp("\\"+n+"\\b","g"),r=new RegExp("(\\"+n+"\\b){2,}"),u(p||!m?"":m,k)}return u.use([].concat(d,[function(S,m,p){S===2&&p.length&&p[0].lastIndexOf(n)>0&&(p[0]=p[0].replace(a,w))},y,function(S){if(S===-2){var m=g;return g=[],m}}])),v.hash=d.length?d.reduce(function(S,m){return m.name||Ah(15),su(S,m.name)},5381).toString():"",v}var Jz=R.createContext();Jz.Consumer;var Kz=R.createContext(),z9e=(Kz.Consumer,new Zz),w_=j9e();function F9e(){return h.exports.useContext(Jz)||z9e}function $9e(){return h.exports.useContext(Kz)||w_}var B9e=function(){function e(t,n){var a=this;this.inject=function(r,i){i===void 0&&(i=w_);var o=a.name+i.hash;r.hasNameForId(a.id,o)||r.insertRules(a.id,o,i(a.rules,o,"@keyframes"))},this.toString=function(){return Ah(12,String(a.name))},this.name=t,this.id="sc-keyframes-"+t,this.rules=n}return e.prototype.getName=function(t){return t===void 0&&(t=w_),this.name+t.hash},e}(),H9e=/([A-Z])/,U9e=/([A-Z])/g,V9e=/^ms-/,W9e=function(e){return"-"+e.toLowerCase()};function W8(e){return H9e.test(e)?e.replace(U9e,W9e).replace(V9e,"-ms-"):e}var Y8=function(e){return e==null||e===!1||e===""};function Gu(e,t,n,a){if(Array.isArray(e)){for(var r,i=[],o=0,c=e.length;o<c;o+=1)(r=Gu(e[o],t,n,a))!==""&&(Array.isArray(r)?i.push.apply(i,r):i.push(r));return i}if(Y8(e))return"";if(gS(e))return"."+e.styledComponentId;if(jp(e)){if(typeof(d=e)!="function"||d.prototype&&d.prototype.isReactComponent||!t)return e;var l=e(t);return Gu(l,t,n,a)}var d;return e instanceof B9e?n?(e.inject(n,a),e.getName(a)):e:y_(e)?function u(g,y){var w,v,S=[];for(var m in g)g.hasOwnProperty(m)&&!Y8(g[m])&&(Array.isArray(g[m])&&g[m].isCss||jp(g[m])?S.push(W8(m)+":",g[m],";"):y_(g[m])?S.push.apply(S,u(g[m],m)):S.push(W8(m)+": "+(w=m,(v=g[m])==null||typeof v=="boolean"||v===""?"":typeof v!="number"||v===0||w in h9e||w.startsWith("--")?String(v).trim():v+"px")+";"));return y?[y+" {"].concat(S,["}"]):S}(e):e.toString()}var G8=function(e){return Array.isArray(e)&&(e.isC
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var kc=function(){return kc=Object.assign||function(e){for(var t,n=1,a=arguments.length;n<a;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},kc.apply(this,arguments)};function Ih(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var q8,Z8,Q8,J8,K8,K9e=Xz(q8||(q8=Ih([`
display: flex;
align-items: center;
min-width: 322px;
max-width: 508px;
height: 48px;
border: dashed 2px `,`;
padding: 8px 16px 8px 8px;
border-radius: 5px;
cursor: pointer;
flex-grow: 0;
&.is-disabled {
border: dashed 2px `,`;
cursor: no-drop;
svg {
fill: `,`;
color: `,`;
path {
fill: `,`;
color: `,`;
}
}
}
`],[`
display: flex;
align-items: center;
min-width: 322px;
max-width: 508px;
height: 48px;
border: dashed 2px `,`;
padding: 8px 16px 8px 8px;
border-radius: 5px;
cursor: pointer;
flex-grow: 0;
&.is-disabled {
border: dashed 2px `,`;
cursor: no-drop;
svg {
fill: `,`;
color: `,`;
path {
fill: `,`;
color: `,`;
}
}
}
`])),"#0658c2","#666","#666","#666","#666","#666"),X9e=Mx.label(Z8||(Z8=Ih([`
position: relative;
`,`;
&:focus-within {
outline: 2px solid black;
}
& > input {
display: block;
opacity: 0;
position: absolute;
pointer-events: none;
}
`],[`
position: relative;
`,`;
&:focus-within {
outline: 2px solid black;
}
& > input {
display: block;
opacity: 0;
position: absolute;
pointer-events: none;
}
`])),function(e){return e.overRide?"":K9e}),e7e=Mx.div(Q8||(Q8=Ih([`
border: dashed 2px `,`;
border-radius: 5px;
background-color: `,`;
opacity: 0.5;
position: absolute;
top: 0;
right: 0;
left: 0;
bottom: 0;
& > span {
position: absolute;
top: 50%;
left: 50%;
transform: translateX(-50%) translateY(-50%);
}
`],[`
border: dashed 2px `,`;
border-radius: 5px;
background-color: `,`;
opacity: 0.5;
position: absolute;
top: 0;
right: 0;
left: 0;
bottom: 0;
& > span {
position: absolute;
top: 50%;
left: 50%;
transform: translateX(-50%) translateY(-50%);
}
`])),"#666","#999"),t7e=Mx.div(J8||(J8=Ih([`
display: flex;
justify-content: space-between;
flex-grow: 1;
& > span {
font-size: 12px;
color: `,`;
}
.file-types {
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
max-width: 100px;
}
`],[`
display: flex;
justify-content: space-between;
flex-grow: 1;
& > span {
font-size: 12px;
color: `,`;
}
.file-types {
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
max-width: 100px;
}
`])),function(e){return e.error?"red":"#666"}),n7e=Mx.span(K8||(K8=Ih([`
font-size: 14px;
color: `,`;
span {
text-decoration: underline;
}
`],[`
font-size: 14px;
color: `,`;
span {
text-decoration: underline;
}
`])),"#666"),X8=function(e){return e/1e3/1e3},a7e=function(e){return e===void 0?"":e.map(function(t){return".".concat(t.toLowerCase())}).join(",")};function r7e(e){var t=e.types,n=e.minSize,a=e.maxSize;if(t){var r=t.toString(),i="";return a&&(i+="size >= ".concat(a,", ")),n&&(i+="size <= ".concat(n,", ")),s("span",kc({title:"".concat(i,"types: ").concat(r),className:"file-types"},{children:r}),void 0)}return null}function s7e(){return f("svg",kc({width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[s("path",{d:"M5.33317 6.66667H22.6665V16H25.3332V6.66667C25.3332 5.196 24.1372 4 22.6665 4H5.33317C3.8625 4 2.6665 5.196 2.6665 6.66667V22.6667C2.6665 24.1373 3.8625 25.3333 5.33317 25.3333H15.9998V22.6667H5.33317V6.66667Z",fill:"#0658C2"},void 0),s("path",{d:"M10.6665 14.6667L6.6665 20H21.3332L15.9998 12L11.9998 17.3333L10.6665 14.6667Z",fill:"#0658C2"},void 0),s("path",{d:"M25.3332 18.6667H22.6665V22.6667H18.6665V25.3333H22.6665V29.3333H25.3332V25.3333H29.3332V22.6667H25.3332V18.6667Z",fill:"#0658C2"},void 0)]}),void 0)}var vv=0,i7e=function(e,t,n,a,r){return n?s("span",{children:"File type/size error, Hovered on types!"},void 0):s(n7e,{children:a?s("span",{children:"Upload disabled"},void 0):e||t?f(Se,{children:[s("span",{children:"Uploaded Successfully!"},void 0)," Upload another?"]},void 0):s(Se,{children:f(Se,r?{children:[s("span",{children:r.split(" ")[0]},void 0)," ",r.substr(r.indexOf(" ")+1)]}:{children:[s("span",{children:"Upload"},void 0)," or drop a file right here"]},void 0)},void 0)},void 0)},ti=function(e){var t=e.name,n=e.hoverTitle,a=e.types,r=e.handleChange,i=e.classes,o=e.children,c=e.maxSize,l=e.minSize,d=e.fileOrFiles,u=e.onSizeError,g=e.onTypeError,y=e.onSelect,w=e.onDrop,v=e.disabled,S=e.label,m=e.multiple,p=e.required,b=e.onDraggingStateChange,x=e.dropMessageStyle,k=h.exports.useRef(null),N=h.exports.useRef(null),_=h.exports.useState(!1),C=_[0],E=_[1],T=h.exports.useState(null),D=T[0],P=T[1],M=h.exports.useState(!1),O=M[0],F=M[1],z=function(j){return a&&!function(I,B){var Y=I.name.split(".").pop();return B.map(function(U){return U.toLowerCase()}).includes(Y.toLowerCase())}(j,a)?(F(!0),g&&g("File type is not supported"),!1):c&&X8(j.size)>c?(F(!0),u&&u("File size is too big"),!1):!(l&&X8(j.size)<l)||(F(!0),u&&u("File size is too small"),!1)},H=function(j){var I=!1;if(j){if(j instanceof File)I=!z(j);else for(var B=0;B<j.length;B++){var Y=j[B];I=!z(Y)||I}return!I&&(r&&r(j),P(j),E(!0),F(!1),!0)}return!1},A=function(j){var I=j.labelRef,B=j.inputRef,Y=j.multiple,U=j.handleChanges,W=j.onDrop,V=h.exports.useState(!1),X=V[0],ne=V[1],oe=h.exports.useCallback(function(){B.current.click()},[B]),q=h.exports.useCallback(function(K){K.preventDefault(),K.stopPropagation(),vv++,K.dataTransfer.items&&K.dataTransfer.items.length!==0&&ne(!0)},[]),te=h.exports.useCallback(function(K){K.preventDefault(),K.stopPropagation(),--vv>0||ne(!1)},[]),G=h.exports.useCallback(function(K){K.preventDefault(),K.stopPropagation()},[]),J=h.exports.useCallback(function(K){K.preventDefault(),K.stopPropagation(),ne(!1),vv=0;var Q=K.dataTransfer.files;if(Q&&Q.length>0){var Z=Y?Q:Q[0],se=U(Z);W&&se&&W(Z)}},[U]);return h.exports.useEffect(function(){var K=I.current;return K.addEventListener("click",oe),K.addEventListener("dragenter",q),K.addEventListener("dragleave",te),K.addEventListener("dragover",G),K.addEventListener("drop",J),function(){K.removeEventListener("click",oe),K.removeEventListener("dragenter",q),K.removeEventListener("dragleave",te),K.removeEventListener("dragover",G),K.removeEventListener("drop",J)}},[oe,q,te,G,J,I]),X}({labelRef:k,inputRef:N,multiple:m,handleChanges:H,onDrop:w});return h.exports.useEffect(function(){b==null||b(A)},[A]),h.exports.useEffect(function(){d?(E(!0),P(d)):(N.current&&(N.current.value=""),E(!1),P(null))},[d]),f(X9e,kc({overRide:o,className:"".concat(i||""," ").concat(v?"is-disabled":""),ref:k,htmlFor:t,onClick:function(j){j.preventDefault(),j.stopPropagation()}},{children:[s("input",{onClick:function(j){j.stopPropagation(),N&&N.current&&(N.current.value=
&key=AIzaSyDDO29hDprF49HURTLsB7xnKjo-2qaOH70`,modalOpen:r,closeModal:()=>i(!1)}),s(f7e,{modalOpen:m,closeModal:()=>p(!1)}),s(g7e,{modalOpen:b,closeModal:()=>x(!1)}),s(m7e,{modalOpen:k,closeModal:()=>N(!1)}),s(p7e,{modalOpen:_,closeModal:()=>C(!1)}),s(h7e,{modalOpen:E,closeModal:()=>T(!1)}),s(mF,{modalOpen:D,closeModal:()=>P(!1),onSubmit:M})]})},x7e=()=>f("div",{className:"min-h-screen md:mt-0 mt-16",children:[f("div",{className:"flex justify-between items-center mb-[28px]",children:[f("div",{className:"flex items-center",children:[s(_f,{size:"35"}),s("h1",{className:"md:text-4xl text-2xl font-semibold",children:"Space successfully submitted"})]}),s($e,{to:"/account/my-spaces",className:"font-semibold text-[#344054] text-sm outline-none focus:outline-none rounded py-2 px-4 border-2 border-[#98A2B3] whitespace-nowrap",children:"Go to my spaces"})]}),f("div",{className:"bg-[#F9FAFB] border-[#EAECF0] rounded-lg border px-[24px] py-[16px] max-w-3xl mb-[32px]",children:[f("h3",{className:"text-lg font-semibold flex gap-2 items-center mb-2",children:[s("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:s("path",{d:"M9.99935 13.3337V10.0003M9.99935 6.66699H10.0077M18.3327 10.0003C18.3327 14.6027 14.6017 18.3337 9.99935 18.3337C5.39698 18.3337 1.66602 14.6027 1.66602 10.0003C1.66602 5.39795 5.39698 1.66699 9.99935 1.66699C14.6017 1.66699 18.3327 5.39795 18.3327 10.0003Z",stroke:"#475467",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}),s("span",{children:"What's next?"})]}),s("p",{className:"ml-6 text-sm leading-relaxed",children:"Our team will review the space and get back to you shortly. It usually takes up to 24 hrs. We will email you when there\u2019s an update.."})]})]}),w7e=new AbortController;function Ix(e,t){const[n,a]=h.exports.useState([]),{dispatch:r}=h.exports.useContext(Ee),{dispatch:i}=h.exports.useContext(we);async function o(){let c=new _e;try{const l=await c.callRawAPI("/v2/api/custom/ergo/add_on/PAGINATE",{page:1,limit:1e3,where:["deleted_at IS NULL",`${t?e&&`space_id != ${e}`:e?`space_id = ${e}`:"1"} OR ${`creator_id = ${Number(localStorage.getItem("user"))}`}`]},"POST",w7e.signal);l.error||a(l.list)}catch(l){if(me(r,l.message),l.name=="AbortError")return;i({type:"SHOW_ERROR",payload:{heading:"Operation failed",message:l.message}})}}return h.exports.useEffect(()=>{o()},[e]),n}new AbortController;function v7e(e){const[t,n]=h.exports.useState([]),{dispatch:a}=h.exports.useContext(Ee),{dispatch:r}=h.exports.useContext(we);async function i(){let o=new St;try{let c=["deleted_at,is"];e&&c.push(`host_id,eq,${e}`);const l=await o.getList("property_space_rule_template",{filter:c,join:[]});l.error||n(l.list)}catch(c){if(me(a,c.message),c.name=="AbortError")return;r({type:"SHOW_ERROR",payload:{heading:"Operation failed",message:c.message}})}}return h.exports.useEffect(()=>{i()},[e]),t}new _e;const _7e=()=>{const e=je(),{pathname:t}=An(),n=t.split("/"),a=Number(n[n.length-1])||1,{state:r}=h.exports.useContext(we),i=Ch(),o=Ix(),c=v7e(r.user.id),l=r.spaceCategories;return s(u9e,{children:f("div",{className:"container mx-auto w-full px-4 pt-[100px] normal-case md:pt-[110px] 2xl:px-32",children:[a<5&&f("div",{className:"flex flex-wrap-reverse items-center",children:[f("button",{type:"button",onClick:()=>e(-1),className:"mr-2 mb-2 inline-flex items-center py-2.5 pr-5 text-center text-sm font-semibold",children:[s(ln,{type:"arrow",variant:"narrow-left",className:"h-4 w-4 stroke-[#667085]"})," ",s("span",{className:"ml-2",children:"Back"})]}),f("div",{className:"mx-auto mb-3 flex max-w-full gap-1",children:[s("div",{className:`${a>1?"bg-my-gradient":"bg-[#F2F4F7]"} w-[80px] rounded-lg border py-1 md:w-24`}),s("div",{className:`${a>2?"bg-my-gradient":"bg-[#F2F4F7]"} w-[80px] rounded-lg border py-1 md:w-24`}),s("div",{className:`${a>3?"bg-my-gradient":"bg-[#F2F4F7]"} w-[80px] rounded-lg border py-1 md:w-24`}),s("div",{className:`${a>4?"bg-my-gradient":"bg-[#F2F4F7]"} w-[80px] rounded-lg border py-1 md:w-24`})]})]}),s(Xu,{context:{amenities:i,spaceCategori
&key=AIzaSyDDO29hDprF49HURTLsB7xnKjo-2qaOH70`,modalOpen:E,closeModal:()=>T(!1)}),s(H7e,{modalOpen:j,closeModal:()=>I(!1),propertySpace:D})]})},G7e=({data:e,forceRender:t,selectedTemplate:n,setSelectedTemplate:a})=>{const[r,i]=h.exports.useState(!1),{dispatch:o}=h.exports.useContext(we),c=on(e.slots,[]);async function l(d){o({type:"START_LOADING"});try{await _t("host/schedule-slot/template","delete",{id:d},""),t&&t(new Date)}catch(u){o({type:"STOP_LOADING"}),o({type:"SHOW_ERROR",payload:{heading:"Operation failed",message:u.message}})}}return f("div",{className:"mb-[44px] flex items-center justify-between rounded-lg border border-[#EAECF0] bg-[#F9FAFB] p-[12px]",children:[s("div",{className:"w-full",children:f("div",{className:"flex justify-between lg:justify-start",children:[f("div",{className:"lg:min-w-[370px]",children:[s("h3",{className:"text-xl font-semibold",children:e.template_name}),f("p",{className:"capitalize",children:["(",sr.filter(d=>e[d]==1).map((d,u,g)=>d+(u==g.length-1?"":", ")),")"]}),f("div",{className:"block md:hidden",children:[s("br",{}),s(Zl,{items:[{label:"Edit",icon:s(Ga,{}),onClick:()=>i(!0)},{label:"Delete",icon:s(Rb,{}),onClick:()=>l(e.id)}],menuClassName:"right-[unset] left-0 origin-top-left"})]})]}),s("div",{className:"flex flex-wrap justify-end gap-[32px] lg:flex-nowrap lg:justify-start",children:Array.isArray(c)&&c.slice(0,2).map((d,u)=>f("div",{className:"whitespace-nowrap",children:[f("p",{className:"text-sm",children:["Slot ",u+1,":"]}),f("p",{className:"font-semibold",children:[Pn(d.start)," - ",Pn(d.end)]})]},u))})]})}),f("div",{className:"hidden lg:flex",children:[f("button",{onClick:()=>i(!0),className:"inline-flex w-full items-center gap-2 px-4 py-2 text-center text-sm",children:[s(Ga,{}),"Edit"]}),f("button",{onClick:()=>l(e.id),className:"inline-flex w-full items-center gap-2 px-4 py-2 text-center text-sm",children:[s(Rb,{}),"Delete"]})]}),s(uF,{data:e,selectedTemplate:n,setSelectedTemplate:a,forceRender:t,onSuccess:()=>{t&&t()},modalOpen:r,closeModal:()=>i(!1)})]})};let ng=new _e;const q7e=({selectedDate:e,date:t,id:n,schedule_id:a,selected_id:r,isDirty:i,setIsDirty:o,selectedTemplate:c,activeStartDate:l})=>{var Y,U,W;const{spaceData:d,dispatch:u}=Ql(),[g,y]=h.exports.useState(!1),[w,v]=h.exports.useState(!1),[S,m]=h.exports.useState([]),p=cr(w,300),b=Te(t).format("MM/DD/YY");async function x(){ng.setTable("property_spaces_schedule_template");const V=await ng.callRestAPI({},"GETALL"),X=V==null?void 0:V.list.find(ne=>ne.property_spaces_id===Number(n));X!=null&&X.customSlots&&m(JSON.parse(X==null?void 0:X.custom_slots))}h.exports.useEffect(()=>{x()},[w]);let k=Array.isArray((Y=d==null?void 0:d.customSlots[b])!=null?Y:S[b])?(U=d==null?void 0:d.customSlots[b])!=null?U:S[b]:c[sr[t.getDay()]]==1&&Array.isArray(on(c.slots))?on(c.slots):[],N=Array.isArray((W=d==null?void 0:d.customSlots[b])!=null?W:S[b]);const{handleSubmit:_,register:C,control:E,getValues:T,setValue:D}=Oe({defaultValues:{custom_slot:k.map(V=>({start:Pn(V.start),end:Pn(V.end)}))}}),{fields:P,append:M,prepend:O,remove:F,swap:z,move:H,insert:A}=af({control:E,name:"custom_slot"});h.exports.useEffect(()=>{y(!1)},[e]);const j=async V=>{u({type:"SET_DAY_SLOT",payload:{day:b,slots:V.custom_slot.map(X=>({start:new Date(`${b} ${X.start}`).toISOString(),end:new Date(`${b} ${X.end}`).toISOString()}))}}),ng.setTable("property_spaces_schedule_template"),await ng.callRestAPI({id:a&&a,schedule_template_id:r&&r,custom_slots:JSON.stringify(d==null?void 0:d.customSlots)},"PUT"),v(!1)},I=V=>{V.stopPropagation(),u({type:"CLEAR_DAY_SLOT",payload:b})},B=V=>{V.stopPropagation(),u({type:"INHERIT_DAY_SLOT",payload:b})};return f("div",{className:` ${t.getDay()==0?"":"border-r-0"} border relative min-h-[180px] border-t-0 schedule-day`,children:[f("div",{className:"border-b py-2 px-[14px] flex justify-between",children:[s("h5",{className:"font-semibold",children:t.getDate()}),N?s(lF,{}):s(iF,{})]}),f("div",{className:"px-[8px] py-4 flex flex-col items-start gap-3",children:[k.slice(0,3).map((V,X)=>s("p",{children:Pn(V.start)+" - "+Pn(V.end)},X
&key=AIzaSyDDO29hDprF49HURTLsB7xnKjo-2qaOH70`,modalOpen:Y,closeModal:()=>U(!1)})]})};function eT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,a)}return n}function tT(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?eT(Object(n),!0).forEach(function(a){NF(e,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eT(Object(n)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(n,a))})}return e}function jg(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?jg=function(t){return typeof t}:jg=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},jg(e)}function NF(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zg(e,t){return iEe(e)||oEe(e,t)||lEe(e,t)||cEe()}function iEe(e){if(Array.isArray(e))return e}function oEe(e,t){var n=e&&(typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"]);if(n!=null){var a=[],r=!0,i=!1,o,c;try{for(n=n.call(e);!(r=(o=n.next()).done)&&(a.push(o.value),!(t&&a.length===t));r=!0);}catch(l){i=!0,c=l}finally{try{!r&&n.return!=null&&n.return()}finally{if(i)throw c}}return a}}function lEe(e,t){if(!!e){if(typeof e=="string")return nT(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return nT(e,t)}}function nT(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function cEe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var S_=function(t){var n=R.useRef(t);return R.useEffect(function(){n.current=t},[t]),n.current},qu=function(t){return t!==null&&jg(t)==="object"},dEe=function(t){return qu(t)&&typeof t.then=="function"},uEe=function(t){return qu(t)&&typeof t.elements=="function"&&typeof t.createToken=="function"&&typeof t.createPaymentMethod=="function"&&typeof t.confirmCardPayment=="function"},aT="[object Object]",fEe=function e(t,n){if(!qu(t)||!qu(n))return t===n;var a=Array.isArray(t),r=Array.isArray(n);if(a!==r)return!1;var i=Object.prototype.toString.call(t)===aT,o=Object.prototype.toString.call(n)===aT;if(i!==o)return!1;if(!i&&!a)return t===n;var c=Object.keys(t),l=Object.keys(n);if(c.length!==l.length)return!1;for(var d={},u=0;u<c.length;u+=1)d[c[u]]=!0;for(var g=0;g<l.length;g+=1)d[l[g]]=!0;var y=Object.keys(d);if(y.length!==c.length)return!1;var w=t,v=n,S=function(p){return e(w[p],v[p])};return y.every(S)},SF=function(t,n,a){return qu(t)?Object.keys(t).reduce(function(r,i){var o=!qu(n)||!fEe(t[i],n[i]);return a.includes(i)?(o&&console.warn("Unsupported prop change: options.".concat(i," is not a mutable property.")),r):o?tT(tT({},r||{}),{},NF({},i,t[i])):r},null):null},mEe="Invalid prop `stripe` supplied to `Elements`. We recommend using the `loadStripe` utility from `@stripe/stripe-js`. See https://stripe.com/docs/stripe-js/react#elements-props-stripe for details.",rT=function(t){if(t===null||uEe(t))return t;throw new Error(mEe)},pEe=function(t){if(dEe(t))return{tag:"async",stripePromise:Promise.resolve(t).then(rT)};var n=rT(t);return n===null?{tag:"empty"}:{tag:"sync",stripe:n}},vS=R.createContext(null);vS.displayName="ElementsContext";var hEe=function(t,n){if(!t)throw new Error("Could not find Elements context; You need to wrap the part of your app that ".concat(n," in an <Elements> provider."));return t},_S=R.createContext(null);_S.displayName="CartElementContext";var gEe=function(t,n){if(!t)throw new Error("Could not find Elements context; You need to wrap the part of your app that ".concat(n," in an <Elements> provider."));return t},kF=function(t){var n=t.stripe,a=t.options,r=t.children,i=R.useMemo(function(){return pEe(n)},[n]),o=R.useState(null),c=zg(o,2),l=c[0],d=c[1],u=R.useState(null),g=zg(u,2),y=g[0],w=g[1],v=R.useState(function(){return{stripe:i.tag==="sync"?i.stripe:null,elements:i.tag==="sync"?i.stripe.elements(a):null}}),S=zg(v,2),m=S[0],p=S[1];R.useEffect(function(){var k=!0,N=function(C){p(function(E){return E.stripe?E:{stripe:C,elements:C.elements(a)}})};return i.tag==="async"&&!m.stripe?i.stripePromise.then(function(_){_&&k&&N(_)}):i.tag==="sync"&&!m.stripe&&N(i.stripe),function(){k=!1}},[i,m,a]);var b=S_(n);R.useEffect(function(){b!==null&&b!==n&&console.warn("Unsupported prop change on Elements: You cannot change the `stripe` prop after setting it.")},[b,n]);var x=S_(a);return R.useEffect(function(){if(!!m.elements){var k=SF(a,x,["clientSecret","fonts"]);k&&m.elements.update(k)}},[a,x,m.elements]),R.useEffect(function(){var k=m.stripe;!k||!k._registerWrapper||!k.registerAppInfo||(k._registerWrapper({name:"react-stripe-js",version:"1.16.5"}),k.registerAppInfo({name:"react-stripe-js",version:"1.16.5",url:"https://stripe.com/docs/stripe-js/react"}))},[m.stripe]),R.createElement(vS.Provider,{value:m},R.createElement(_S.Provider,{value:{cart:l,setCart:d,cartState:y,setCartState:w}},r))};kF.propTypes={stripe:Ie.any,options:Ie.object};var jb=function(t){var n=R.useContext(vS);return hEe(n,t)},sT=function(t){var n=R.useContext(_S);return gEe(n,t)},bEe=function(){var t=jb("calls useElements()"),n=t.elements;return n},CF=function(){var t=jb("calls useStripe()"),n=t.stripe;return n};Ie.func.isRequired;var hr=function(t,n,a){var r=!!a,i=R.useRef(a);R.useEffect(function(){i.current=a},[a]),R.useEffect(function(){if(!r||!t)return function(){};var o=function(){i.current&&i.current.apply(i,arguments)};return t.on(n,o),function(){t.off(n,o)}},[r,n,t,i])},yEe=function(t){return t.charAt(0).toUpperCase()+t.slice(1)},ka=function(t,n){var a="".
&key=AIzaSyDDO29hDprF49HURTLsB7xnKjo-2qaOH70`,modalOpen:c,closeModal:()=>l(!1)})]})},kd=()=>{const[e]=lt(),[t,n]=h.exports.useState("Verifying your email..."),a=je(),{dispatch:r}=h.exports.useContext(we);let i=new _e;async function o(){var l;const c=e.get("token");try{const d=await i.verifyEmail(c);if(e.get("is_manual")!="true"){const u=await _t("get-user","post",{id:d.user_id},""),g=await i.getEmailTemplate("signup-confirmation"),y=(l=g.html)==null?void 0:l.replace(new RegExp("{{{first_name}}}","g"),u.first_name).replace(new RegExp("{{{last_name}}}","g"),u.last_name);await i.sendEmail(u.email,g.subject,y)}d.error||pe(r,"Email verified",3e3,"success"),n("Your account has been verified, You will be redirected to login page shortly"),setTimeout(()=>{a("/login")},4e3)}catch{}}return h.exports.useEffect(()=>{o()},[]),s("div",{className:"flex min-h-screen items-center justify-center",children:s("h1",{className:"text-5xl",children:t})})},IEe=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];let Cd=new _e;const OEe=["Pending","Upcoming","Ongoing","Completed","Declined","Cancelled"],PEe=()=>{var C,E,T,D;const{dispatch:e}=R.useContext(Ee),[t,n]=R.useState([]),[a,r]=R.useState([]),{dispatch:i}=R.useContext(we),[o,c]=R.useState([]),[l,d]=R.useState([]),[u,g]=R.useState([]),y=Qe({start_date:ge(),end_date:ge(),report_type:ge(),status:ge()}),{register:w,handleSubmit:v,watch:S,formState:{errors:m}}=Oe({resolver:Xe(y)}),p=S("report_type"),b=P=>{switch(console.log("submitting",P),P.report_type){case"bookings":g("Bookings"),x(P.start_date,P.end_date,P.status),n(o);break;case"analytics":g("Analytics"),k(P.start_date,P.end_date),n(l);break;default:g(""),n([]),r([])}};async function x(P,M,O){const F=[`${P&&M?`ergo_booking.create_at BETWEEN '${P}' AND '${M} 23:59:59'`:"1"} AND ${O?`ergo_booking.status = ${O}`:"1"}`,"ergo_booking.deleted_at IS NULL"];console.log("where",F);try{const z=await _t("booking","post",{where:F,page:1,limit:1e5},"PAGINATE");Array.isArray(z.list)&&r(z.list)}catch(z){me(e,z.message),pe(i,z.message,4e3,"ERROR")}}async function k(P,M){Cd.setTable("analytic_log");try{const O=await Cd.callRestAPI({payload:{}},"GETALL");Array.isArray(O.list)&&r(O.list)}catch(O){me(e,O.message),pe(i,O.message,4e3,"ERROR")}}R.useEffect(()=>{i({type:"SETPATH",payload:{path:"reports"}}),N(),_()},[]);async function N(){var P;Cd.setTable("settings");try{const M=await Cd.callRestAPI({limit:1,page:1,payload:{key_name:"admin_booking_reports_column_order"}},"PAGINATE");Array.isArray(M.list)&&M.list.length>0&&c(va((P=M.list[0].optional_data)!=null?P:[],_a.admin_booking_report))}catch(M){me(e,M.message),pe(i,M.message,4e3,"ERROR")}}async function _(){var P;Cd.setTable("settings");try{const M=await Cd.callRestAPI({limit:1,page:1,payload:{key_name:"admin_analytics_column_order"}},"PAGINATE");Array.isArray(M.list)&&M.list.length>0&&d(va((P=M.list[0].optional_data)!=null?P:[],_a.admin_analytics))}catch(M){me(e,M.message),pe(i,M.message,4e3,"ERROR")}}return f(Se,{children:[f("form",{className:"rounded rounded-b-none border border-b-0 bg-white p-5",onSubmit:v(b),children:[s("div",{className:"flex justify-between",children:s("h4",{className:"text-2xl font-medium",children:"Reports"})}),f("div",{className:"filter-form-holder mt-10 flex max-w-3xl flex-wrap",children:[f("div",{className:"mb-4 w-full pr-2 pl-2 md:w-1/3",children:[s("label",{className:"mb-2 block text-sm font-bold text-gray-700",children:"Start date"}),s("input",{type:"date",placeholder:"Start date",...w("start_date"),className:"mb-3 w-full rounded border py-2 px-3 leading-tight text-gray-700 focus:outline-none"}),s("p",{className:"text-xs italic text-red-500",children:(C=m.start_date)==null?void 0:C.message})]}),f("div",{className:"mb-4 w-full pr-2 pl-2 md:w-1/3",children:[s("label",{className:"mb-2 block text-sm font-bold text-gray-700",children:"End date"}),s("input",{type:"date",placeholder:"End date",...w("end_date"),className:"mb-3 w-full rounded border py-2 px-3 leading-tight text-gray-700 focus:outline-none"}),s("p",{className:"text-xs italic text-red-500",ch
&key=AIzaSyDDO29hDprF49HURTLsB7xnKjo-2qaOH70`,modalOpen:b,closeModal:()=>x(!1)}),s(gF,{modalOpen:P,closeModal:()=>M(!1),onSuccess:()=>I(r),booking:i}),s(bF,{modalOpen:O,closeModal:()=>F(!1),onSuccess:()=>I(r),booking:i})]})}let pm=new _e;function ZEe({data:e,forceRender:t,favoriteId:n}){var v,S,m,p,b,x,k,N,_,C;const a=["Pending","Upcoming","Ongoing","Completed","Declined","Canceled","Expired"],r=["text-white","my-text-gradient","text-[yellow]","text-[#667085]","text-[#D92D20]","text-[#DC6803]","text-[#D92D20] !bg-[#F2F4F7]"],{dispatch:i,state:o}=h.exports.useContext(we),[c,l]=h.exports.useState(!1),d=e.booking_start_time&&e.status<2?new Date(e.booking_start_time)<Date.now():!1,[u,g]=h.exports.useState({});async function y(E){const T={id:E,booked_unit:1,status:ut.CANCELLED};try{await _t("booking","post",T,"PUT"),e.status===ut.UPCOMING?await pm.callRawAPI("/v2/api/custom/ergo/refund",{booking_id:e.id,stripe_payment_intent_id:e.stripe_payment_intent_id},"POST"):await pm.callRawAPI("/v2/api/custom/ergo/capture",{booking_id:e.id,status:5,stripe_payment_intent_id:e.stripe_payment_intent_id},"POST"),w(e.host_id,e.property_name,`from ${Te(e.booking_start_time).format("MM/DD/YYYY")} to ${Te(e.booking_end_time).format("MM/DD/YYYY")}`),t&&t(new Date)}catch(D){i({type:"SHOW_ERROR",payload:{heading:"Operation failed",message:D.message}})}}async function w(E,T,D){var P,M;try{const O=await _t("get-user","post",{id:E},""),F=await pm.getEmailTemplate("booking-cancelled");if(on(O.settings,{}).email_on_booking_cancelled==!0){const z=(P=F.html)==null?void 0:P.replace(new RegExp("{{{space_name}}}","g"),T).replace(new RegExp("{{{time}}}","g"),D);await pm.sendEmail(O.email,F.subject,z)}if(on(o.user.settings,{}).email_on_booking_cancelled==!0){const z=(M=F.html)==null?void 0:M.replace(new RegExp("{{{space_name}}}","g"),T).replace(new RegExp("{{{time}}}","g"),D);await pm.sendEmail(o.user.email,F.subject,z)}}catch{}}return h.exports.useEffect(()=>{if(e.status!=ut.UPCOMING&&!d)return;let E=null;if(!e.booking_start_time)return()=>clearInterval(E);E=setInterval(()=>{const T=xR(e.booking_start_time);g(T)},1e3)},[e.booking_start_time]),f(Se,{children:[f("div",{className:"mb-10 hidden border lg:flex",children:[f("div",{className:"relative min-w-[16rem]",children:[s("img",{src:e.image_url,onLoad:()=>l(!0),alt:"",className:"absolute top-0 left-0 h-full w-full object-cover"}),e.status==ut.UPCOMING&&!d&&s("div",{className:"absolute inset-0 flex items-end justify-start px-4 py-2 normal-case",children:f("div",{className:"flex rounded-md bg-[#13131366] py-1 px-2 font-semibold text-white",children:[s(E1,{className:"h-6 w-6"})," ",s("span",{className:"mx-1",children:u.timeLeft}),s("span",{className:"normal-case",children:u.format})]})}),s("div",{className:"absolute inset-0 px-2",children:s(ls,{className:"flex flex-grow justify-end pt-2",space_id:e.property_space_id,user_property_spaces_id:n,reRender:t,withLoader:!0})}),!c&&s(Ut,{className:"absolute -top-1 left-0 h-full w-full"})]}),f("div",{className:"flex flex-grow gap-16 px-8 py-6 xl:gap-24 2xl:gap-32",children:[f("div",{className:"flex max-w-sm flex-grow flex-col space-y-3",children:[s("h3",{className:"text-2xl font-semibold",children:e.property_name||s(Ut,{width:180})}),f("p",{className:"tracking-wider",children:[" ",e.property_name?(v=[1,2].includes(e.status)&&!d?e.address_line_1:e.property_city)!=null?v:"N/A":s(Ut,{width:150})]}),f("p",{className:"tracking-wider",children:[" ",e.property_name?(S=[1,2].includes(e.status)&&!d?e.address_line_2:e.property_country)!=null?S:"N/A":s(Ut,{width:150})]}),e.property_name?f("p",{className:"tracking-wider",children:[s("span",{children:"Host"}),": ",e.host_first_name," ",e.host_last_name]}):s(Ut,{width:100})]}),f("div",{className:"flex flex-col justify-between",children:[e.booking_start_time?f("div",{className:"flex justify-between gap-6",children:[s("p",{className:"whitespace-nowrap",children:"Date"}),s("strong",{className:"whitespace-nowrap",children:Rr[new Date(e.booking_start_time).getMonth()]+" "+new Date(e.booking_start_time).getDate()+"/"+new Date(e.booki
&key=AIzaSyDDO29hDprF49HURTLsB7xnKjo-2qaOH70`,modalOpen:x,closeModal:()=>k(!1)}),z&&s("div",{className:"popup-container flex items-center justify-center normal-case",onClick:()=>F(!1),children:f("div",{className:`${O?"pop-in":"pop-out"} w-[403px] max-w-[80%] rounded-lg bg-white p-5 px-3 md:px-5`,onClick:he=>he.stopPropagation(),children:[f("div",{className:"mb-[18px] flex items-center justify-between",children:[s("h3",{className:"text-2xl font-semibold",children:"Are you sure?"}),s("button",{className:"rounded-full border p-1 px-3 text-2xl font-normal duration-100 hover:bg-gray-200 active:bg-gray-300",onClick:()=>F(!1),children:"\u2715"})]}),s("hr",{className:"mb-4"}),f("p",{className:"mb-[16px]",children:["You are about to decline a booking from"," ",f("b",{children:[o.customer_first_name," ",o.customer_last_name]})," ","for ",f("b",{children:[o.property_name," "]}),"on"," ",s("b",{children:Rr[new Date(o.booking_start_time).getMonth()]+" "+new Date(o.booking_start_time).getDate()+"/"+new Date(o.booking_start_time).getFullYear()}),"."]}),s("h4",{className:"mb-[8px] text-xl font-semibold",children:"Reason"}),s("textarea",{cols:"30",rows:"5",className:"w-full resize-none border p-3 focus:outline-none active:outline-none",value:H,onChange:he=>A(he.target.value)}),f("div",{className:"flex gap-4",children:[s("button",{type:"button",className:"mt-4 flex-grow rounded border-2 border-[#98A2B3] py-2 tracking-wide outline-none focus:outline-none",onClick:()=>F(!1),children:"Cancel"}),s("button",{type:"button",className:"mt-4 flex-grow rounded bg-[#D92D20] py-2 tracking-wide text-white outline-none focus:outline-none",onClick:()=>declineBooking(o.id),children:"Yes, decline"})]})]})})]})}const bT=[{header:"ID",accessor:"id"},{header:"BOOKING DATE",accessor:"booking_start_time"},{header:"SPACE",accessor:"name"},{header:"HOST",accessor:"host_full_name"},{header:"RATING",accessor:"rating"},{header:"STATUS",accessor:"status",mapping:["Under Review","Posted","Declined"]},{header:"ACTION",accessor:""}];function a8e(){var O,F,z,H;const[e,t]=h.exports.useState(0),[n,a]=h.exports.useState(!1),r=cr(n,100),[i,o]=h.exports.useState({}),[c,l]=h.exports.useState(10),[d,u]=h.exports.useState(0),[g,y]=h.exports.useState(0),[w,v]=h.exports.useState(0),[S,m]=h.exports.useState(!1),[p,b]=h.exports.useState(!1),[x,k]=h.exports.useState([]),[N,_]=h.exports.useState("DESC"),{dispatch:C}=h.exports.useContext(we);async function E(A,j){C({type:"START_LOADING"});const B=[`ergo_review.customer_id = ${localStorage.getItem("user")}`,`ergo_review.given_by = ${e==1?"'customer'":"'host'"}`];try{const Y=await _t("review-hashtag","post",{where:B,page:A,limit:j,user:"customer",sortId:"post_date",direction:"DESC"},"PAGINATE"),{list:U,total:W,limit:V,num_pages:X,page:ne}=Y;k(U),l(V),u(X),v(ne),y(W),m(ne>1),b(ne+1<=X)}catch(Y){C({type:"SHOW_ERROR",payload:{heading:"Operation failed",message:Y.message}})}C({type:"STOP_LOADING"})}function T(A){(async function(){l(A),await E(0,A)})()}function D(){(async function(){await E(w-1>0?w-1:0,c)})()}function P(){(async function(){await E(w+1<=d?w+1:0,c)})()}h.exports.useEffect(()=>{E(1,10)},[e]);const M=(A,j)=>N=="DESC"?new Date(j.update_at)-new Date(A.update_at):new Date(A.update_at)-new Date(j.update_at);return f("div",{className:"eighteen-step-summary pt-[44px] min-h-screen",children:[f("div",{className:"flex flex-wrap justify-between mb-[16px] items-start",children:[f("div",{className:"md:w-[unset] w-full mb-4 flex",children:[s("button",{className:`${e==0?"bg-[#F2F4F7] border":""} py-[8px] md:px-[12px] px-12 flex-grow rounded-sm mr-[16px]`,onClick:()=>t(0),children:"Received"}),s("button",{className:`${e==1?"bg-[#F2F4F7] border":""} py-[8px] md:px-[12px] px-12 flex-grow rounded-sm`,onClick:()=>t(1),children:"Given"})]}),s(As,{options:[{label:"By Date: Newest First",value:"DESC"},{label:"By Date: Oldest First",value:"ASC"}],onChange:_,accessor:"label",valueAccessor:"value",className:"md:max-w-[200px] flex-grow",listOptionClassName:"pl-4"})]}),s("div",{className:"snap-scroll",children:s(Ln,{currentPage:w,pageSize:c,totalN
&key=AIzaSyDDO29hDprF49HURTLsB7xnKjo-2qaOH70`,modalOpen:m,closeModal:()=>p(!1)}),s($8e,{modalOpen:H,propertyDescription:i==null?void 0:i.description,closeModal:()=>A(!1)}),s(B8e,{name:i==null?void 0:i.name,modalOpen:j,closeModal:()=>I(!1)}),s(V8e,{modalOpen:d,category:i==null?void 0:i.category,propertyAmenities:v,id:i==null?void 0:i.space_id,closeModal:()=>u(!1),idAm:N,p_id:e,forceRender:r}),s(H8e,{modalOpen:g,category:i==null?void 0:i.category,propertyAddons:w,id:i==null?void 0:i.space_id,closeModal:()=>y(!1),idAm:C,property_id:i==null?void 0:i.property_id,p_id:e,forceRender:r}),s(U8e,{modalOpen:B,rules:i==null?void 0:i.rule,closeModal:()=>Y(!1)}),s(mF,{modalOpen:U,closeModal:()=>W(!1),onSubmit:V})]})};let kT=new _e;function $r({modalOpen:e,closeModal:t,onSuccess:n,data:a}){const{dispatch:r}=R.useContext(we),{dispatch:i}=R.useContext(Ee);async function o(){try{kT.setTable(a.entity_type),await kT.callRestAPI({id:a.id,deleted_at:null},"PUT"),pe(r,"Restored successfully"),n(),t()}catch(c){tokenExpireError(i,c.message),pe(r,c.message,5e3,"ERROR")}}return s(Se,{children:e?f(Se,{children:[s("div",{className:"fixed inset-0 z-50 flex items-center justify-center overflow-y-auto overflow-x-hidden outline-none focus:outline-none",children:s("div",{className:"relative my-6 mx-auto w-auto max-w-3xl md:min-w-[35rem]",children:f("div",{className:"relative flex w-full flex-col rounded-lg border-0 bg-white shadow-lg outline-none focus:outline-none",children:[f("div",{className:"flex items-start justify-between rounded-t border-solid border-slate-200 px-5 pt-6",children:[s("h3",{className:"text-xl font-semibold",children:"Are you sure?"}),s("button",{className:"float-right ml-auto border-0 bg-transparent p-1 text-3xl font-semibold leading-none text-black outline-none focus:outline-none",onClick:t,children:s("span",{className:"block h-6 w-6 bg-transparent text-2xl text-black outline-none focus:outline-none",children:"\xD7"})})]}),s("div",{className:"relative flex-auto px-6 py-2",children:s("p",{className:"text-lg my-2 normal-case leading-relaxed text-slate-500",children:"Are you sure you want to restore this record?"})}),f("div",{className:"flex items-center justify-end rounded-b border-solid border-slate-200 px-6 pb-6",children:[s("button",{className:"background-transparent mr-1 mb-1 rounded border border-[##98A2B3] px-6 py-2 text-sm font-bold text-[#667085] outline-none focus:outline-none",type:"button",onClick:t,children:"Cancel"}),s("button",{className:"ml-5 mb-1 rounded border border-[##98A2B3] !bg-gradient-to-r from-primary to-primary-dark px-6 py-2 text-sm font-medium text-white outline-none focus:outline-none",type:"button",onClick:o,children:"Restore"})]})]})})}),s("div",{className:"fixed inset-0 z-40 bg-black opacity-25"})]}):null})}let Qo=new _e;function Br({modalOpen:e,closeModal:t,onSuccess:n,data:a,table:r}){const{dispatch:i}=R.useContext(we),{dispatch:o}=R.useContext(Ee);async function c(){try{if(r==="user"){var l=[`ergo_booking.host_id = ${a.id} OR ergo_booking.customer_id = ${a.id}`];const d=await Qo.callRawAPI("/v2/api/custom/ergo/booking/PAGINATE",{page:1,limit:999,where:l,sortId:"update_at",direction:"DESC"},"POST");(d==null?void 0:d.list.find(g=>g.status===2||g.status===1||g.status===0))===void 0?(Qo.setTable("user"),await Qo.callRestAPI({id:a.id},"DELETE"),pe(i,"User deleted successfully"),t(),n()):(pe(i,"User has active bookings",4e3,"ERROR"),t())}else if(r==="property_spaces"){var l=[`ergo_booking.property_space_id = ${a.space_id}`];const u=await Qo.callRawAPI("/v2/api/custom/ergo/booking/PAGINATE",{page:1,limit:999,where:l,sortId:"update_at",direction:"DESC"},"POST");(u==null?void 0:u.list.find(y=>y.status===2||y.status===1||y.status===0))===void 0?(Qo.setTable("property_spaces"),await Qo.callRestAPI({id:a.id},"DELETE"),pe(i,"Property Space deleted successfully"),t(),n()):(pe(i,"Property Space has active bookings",4e3,"ERROR"),t())}else Qo.setTable(r),await Qo.callRestAPI({id:a.id},"DELETE"),pe(i,"Record deleted successfully"),t(),n()}catch(d){me(o,d.message),pe(i,d.message,5e3,"ERROR")}}return s(Se,{child
relative inline-flex h-[28px] w-[55px] shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out focus:outline-none focus-visible:ring-2 focus-visible:ring-white focus-visible:ring-opacity-75`,children:[s("span",{className:"sr-only",children:"Use setting"}),s("span",{"aria-hidden":"true",className:`${K?"translate-x-7":"translate-x-0"}
pointer-events-none inline-block h-[24px] w-[24px] transform rounded-full bg-white shadow-lg ring-0 transition duration-200 ease-in-out`})]})}const V=J=>{c.set("id",J.id),c.set("deleted_at",J.deleted_at),c.set("email",J.email),l(c),localStorage.setItem("admin_recycle_filter",c.toString()),U(J)};return R.useEffect(()=>{n({type:"SETPATH",payload:{path:"recycle_bin_users"}}),U(),I(),Y(),B()},[]),f(Se,{children:[s("form",{className:"rounded rounded-b-none border border-b-0 bg-white p-5",onSubmit:A(V),children:f("div",{className:"max-w-5xl",children:[s("div",{className:"flex justify-between",children:s("h4",{className:"text-2xl font-medium",children:"Recycle Bin"})}),f("div",{className:"filter-form-holder mt-10 flex flex-wrap",children:[f("div",{className:"mb-4 w-full pr-2 pl-2 md:w-1/3",children:[s("label",{className:"mb-2 block text-sm font-bold text-gray-700",htmlFor:"id",children:"ID"}),s("input",{...H("id"),className:`focus:shadow-outline w-full rounded border py-2 px-3 leading-tight text-gray-700 focus:outline-none ${(ne=j.id)!=null&&ne.message?"border-red-500":""}`}),s("p",{className:"text-xs italic text-red-500",children:(oe=j.id)==null?void 0:oe.message})]}),f("div",{className:"mb-4 w-full pr-2 pl-2 md:w-1/3",children:[s("label",{className:"mb-2 block text-sm font-bold text-gray-700",htmlFor:"email",children:"Email"}),s("input",{...H("email"),className:`focus:shadow-outline w-full rounded border py-2 px-3 leading-tight text-gray-700 focus:outline-none ${(q=j.email)!=null&&q.message?"border-red-500":""}`}),s("p",{className:"text-xs italic text-red-500",children:(te=j.email)==null?void 0:te.message})]}),f("div",{className:"mb-4 w-full pr-2 pl-2 md:w-1/3",children:[s("label",{className:"mb-2 block text-sm font-bold text-gray-700",htmlFor:"deleted_at",children:"Date Deleted"}),s("input",{type:"date",...H("deleted_at"),className:"none mb-3 w-full rounded border bg-white py-2 px-3 leading-tight text-gray-700 focus:outline-none"}),s("p",{className:"text-xs italic text-red-500",children:(G=j.deleted_at)==null?void 0:G.message})]})]}),s(dn,{text:"Search"}),s("button",{className:"font-inter ml-2 cursor-pointer rounded-md border border-[#33D4B7] bg-gradient-to-r from-[#33D4B7] to-[#0D9895] bg-clip-text px-[66px] py-[10px] text-transparent",type:"reset",onClick:()=>{z({id:"",entity_type:"",deleted_at:"",email:""}),localStorage.removeItem("admin_recycle_filter"),Pt(c,l),U()},children:"Reset"})]})}),s("div",{className:"flex justify-end bg-white px-6 pt-4",children:s(Xa,{enabled:a,setEnabled:r})}),a&&f("div",{className:"flex items-center justify-between bg-white py-4 pl-2 pr-6 font-medium text-[#667085]",children:[f("label",{className:"flex cursor-pointer items-center gap-2",children:[s("input",{type:"checkbox",name:"bulk-mode",id:"",onClick:()=>{i.length!=d.length?o(d.map(J=>({id:J.id,table:J.entity_type}))):o([])},checked:i.length==d.length&&d.length>0,onChange:()=>{}}),"Select All"]}),i.length>0?f("div",{className:"flex items-start gap-4",children:[" ",s("button",{onClick:()=>{pe(n,"Working on it",4e3,"ERROR"),M(!0)},children:"Delete All"}),s("button",{onClick:()=>b(!0),children:"Restore All"})]}):null]}),s("div",{className:"overflow-x-auto",children:s("div",{className:"overflow-x-auto border-b border-gray-200 shadow ",children:g?s("div",{className:"flex items-center justify-center py-12",children:"Loading..."}):f("table",{className:"min-w-full divide-y divide-gray-200 border border-t-0 bg-white",children:[s("thead",{className:"cursor-pointer bg-gray-50",children:f("tr",{className:"cursor-pointer",children:[a&&s("th",{scope:"col",className:"px-2 py-3 text-left text-xs font-medium uppercase tracking-wider text-gray-500"}),ET.map((J,K)=>f("th",{scope:"col",className:"cursor-pointer whitespace-nowrap px-6 py-4 text-left text-xs font-medium uppercase tracking-wider text-gray-500",children:[J.header,J.isSorted,s("span",{children:J.isSorted?J.isSortedDesc?" \u25BC":" \u25B2":""})]},K))]})}),s("tbody",{className:"divide-y divide-gray-200 normal-case",children:d.sort((J,K)=>new Date(K.deleted_at)-new Date(J.deleted_at)).map((
relative inline-flex h-[28px] w-[55px] shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out focus:outline-none focus-visible:ring-2 focus-visible:ring-white focus-visible:ring-opacity-75`,children:[s("span",{className:"sr-only",children:"Use setting"}),s("span",{"aria-hidden":"true",className:`${se?"translate-x-7":"translate-x-0"}
pointer-events-none inline-block h-[24px] w-[24px] transform rounded-full bg-white shadow-lg ring-0 transition duration-200 ease-in-out`})]})}const oe=Z=>{c.set("id",Z.id),c.set("deleted_at",Z.deleted_at),c.set("email",Z.email),l(c),localStorage.setItem("admin_recycle_filter",c.toString()),X(p,g,Z)};return R.useEffect(()=>{n({type:"SETPATH",payload:{path:"recycle_bin_devices"}}),X(1,g)},[]),f(Se,{children:[s("form",{className:"rounded rounded-b-none border border-b-0 bg-white p-5",onSubmit:B(oe),children:f("div",{className:"max-w-5xl",children:[s("div",{className:"flex justify-between",children:s("h4",{className:"text-2xl font-medium",children:"Recycle Bin (Devices)"})}),f("div",{className:"filter-form-holder mt-10 flex flex-wrap",children:[f("div",{className:"mb-4 w-full pr-2 pl-2 md:w-1/3",children:[s("label",{className:"mb-2 block text-sm font-bold text-gray-700",htmlFor:"id",children:"ID"}),s("input",{...I("id"),className:`focus:shadow-outline w-full rounded border py-2 px-3 leading-tight text-gray-700 focus:outline-none ${(te=Y.id)!=null&&te.message?"border-red-500":""}`}),s("p",{className:"text-xs italic text-red-500",children:(G=Y.id)==null?void 0:G.message})]}),f("div",{className:"mb-4 w-full pr-2 pl-2 md:w-1/3",children:[s("label",{className:"mb-2 block text-sm font-bold text-gray-700",htmlFor:"email",children:"Email"}),s("input",{...I("email"),className:`focus:shadow-outline w-full rounded border py-2 px-3 leading-tight text-gray-700 focus:outline-none ${(J=Y.email)!=null&&J.message?"border-red-500":""}`}),s("p",{className:"text-xs italic text-red-500",children:(K=Y.email)==null?void 0:K.message})]}),f("div",{className:"mb-4 w-full pr-2 pl-2 md:w-1/3",children:[s("label",{className:"mb-2 block text-sm font-bold text-gray-700",htmlFor:"deleted_at",children:"Date Deleted"}),s("input",{type:"date",...I("deleted_at"),className:"none mb-3 w-full rounded border bg-white py-2 px-3 leading-tight text-gray-700 focus:outline-none"}),s("p",{className:"text-xs italic text-red-500",children:(Q=Y.deleted_at)==null?void 0:Q.message})]})]}),s(dn,{text:"Search"}),s("button",{className:"font-inter ml-2 cursor-pointer rounded-md border border-[#33D4B7] bg-gradient-to-r from-[#33D4B7] to-[#0D9895] bg-clip-text px-[66px] py-[10px] text-transparent",type:"reset",onClick:()=>{j({id:"",entity_type:"",deleted_at:"",email:""}),localStorage.removeItem("admin_recycle_filter"),Pt(c,l),X(1,g)},children:"Reset"})]})}),s("div",{className:"flex justify-end bg-white px-6 pt-4",children:s(Xa,{enabled:a,setEnabled:r})}),a&&f("div",{className:"flex items-center justify-between bg-white py-4 pl-2 pr-6 font-medium text-[#667085]",children:[f("label",{className:"flex cursor-pointer items-center gap-2",children:[s("input",{type:"checkbox",name:"bulk-mode",id:"",onClick:()=>{i.length!=d.length?o(d.map(Z=>({id:Z.id,table:Z.entity_type}))):o([])},checked:i.length==d.length&&d.length>0,onChange:()=>{}}),"Select All"]}),i.length>0?f("div",{className:"flex items-start gap-4",children:[" ",s("button",{onClick:()=>{pe(n,"Working on it",4e3,"ERROR"),H(!0)},children:"Delete All"}),s("button",{onClick:()=>F(!0),children:"Restore All"})]}):null]}),s("div",{className:"overflow-x-auto",children:s("div",{className:"overflow-x-auto border-b border-gray-200 shadow ",children:C?s("div",{className:"flex items-center justify-center py-12",children:"Loading..."}):f("table",{className:"min-w-full divide-y divide-gray-200 border border-t-0 bg-white",children:[s("thead",{className:"cursor-pointer bg-gray-50",children:f("tr",{className:"cursor-pointer",children:[a&&s("th",{scope:"col",className:"px-2 py-3 text-left text-xs font-medium uppercase tracking-wider text-gray-500"}),TT.map((Z,se)=>f("th",{scope:"col",className:"cursor-pointer whitespace-nowrap px-6 py-4 text-left text-xs font-medium uppercase tracking-wider text-gray-500",children:[Z.header,Z.isSorted,s("span",{children:Z.isSorted?Z.isSortedDesc?" \u25BC":" \u25B2":""})]},se))]})}),s("tbody",{className:"divide-y divide-gray-200 normal-case",children:d.sort((Z,se)=>new Date(se.deleted_at)-new Date(Z.delete
relative inline-flex h-[28px] w-[55px] shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out focus:outline-none focus-visible:ring-2 focus-visible:ring-white focus-visible:ring-opacity-75`,children:[s("span",{className:"sr-only",children:"Use setting"}),s("span",{"aria-hidden":"true",className:`${B?"translate-x-7":"translate-x-0"}
pointer-events-none inline-block h-[24px] w-[24px] transform rounded-full bg-white shadow-lg ring-0 transition duration-200 ease-in-out`})]})}const M=I=>{c.set("id",I.id),c.set("entity_type",I.entity_type),c.set("deleted_at",I.deleted_at),c.set("email",I.email),l(c),localStorage.setItem("admin_recycle_filter",c.toString()),D(I)};return R.useEffect(()=>{n({type:"SETPATH",payload:{path:"recycle_bin_properties`"}}),D()},[]),f(Se,{children:[s("form",{className:"rounded rounded-b-none border border-b-0 bg-white p-5",onSubmit:E(M),children:f("div",{className:"max-w-5xl",children:[s("div",{className:"flex justify-between",children:s("h4",{className:"text-2xl font-medium",children:"Recycle Bin (Properties)"})}),f("div",{className:"filter-form-holder mt-10 flex flex-wrap",children:[f("div",{className:"mb-4 w-full pr-2 pl-2 md:w-1/3",children:[s("label",{className:"mb-2 block text-sm font-bold text-gray-700",htmlFor:"id",children:"ID"}),s("input",{...C("id"),className:`focus:shadow-outline w-full rounded border py-2 px-3 leading-tight text-gray-700 focus:outline-none ${(F=T.id)!=null&&F.message?"border-red-500":""}`}),s("p",{className:"text-xs italic text-red-500",children:(z=T.id)==null?void 0:z.message})]}),f("div",{className:"mb-4 w-full pr-2 pl-2 md:w-1/3",children:[s("label",{className:"mb-2 block text-sm font-bold text-gray-700",htmlFor:"email",children:"Email"}),s("input",{...C("email"),className:`focus:shadow-outline w-full rounded border py-2 px-3 leading-tight text-gray-700 focus:outline-none ${(H=T.email)!=null&&H.message?"border-red-500":""}`}),s("p",{className:"text-xs italic text-red-500",children:(A=T.email)==null?void 0:A.message})]}),f("div",{className:"mb-4 w-full pr-2 pl-2 md:w-1/3",children:[s("label",{className:"mb-2 block text-sm font-bold text-gray-700",htmlFor:"deleted_at",children:"Date Deleted"}),s("input",{type:"date",...C("deleted_at"),className:"none mb-3 w-full rounded border bg-white py-2 px-3 leading-tight text-gray-700 focus:outline-none"}),s("p",{className:"text-xs italic text-red-500",children:(j=T.deleted_at)==null?void 0:j.message})]})]}),s(dn,{text:"Search"}),s("button",{className:"font-inter ml-2 cursor-pointer rounded-md border border-[#33D4B7] bg-gradient-to-r from-[#33D4B7] to-[#0D9895] bg-clip-text px-[66px] py-[10px] text-transparent",type:"reset",onClick:()=>{_({id:"",entity_type:"",deleted_at:"",email:""}),localStorage.removeItem("admin_recycle_filter"),Pt(c,l),D()},children:"Reset"})]})}),s("div",{className:"flex justify-end bg-white px-6 pt-4",children:s(Xa,{enabled:a,setEnabled:r})}),a&&f("div",{className:"flex items-center justify-between bg-white py-4 pl-2 pr-6 font-medium text-[#667085]",children:[f("label",{className:"flex cursor-pointer items-center gap-2",children:[s("input",{type:"checkbox",name:"bulk-mode",id:"",onClick:()=>{i.length!=d.length?o(d.map(I=>({id:I.id,table:I.entity_type}))):o([])},checked:i.length==d.length&&d.length>0,onChange:()=>{}}),"Select All"]}),i.length>0?f("div",{className:"flex items-start gap-4",children:[" ",s("button",{onClick:()=>{pe(n,"Working on it",4e3,"ERROR"),k(!0)},children:"Delete All"}),s("button",{onClick:()=>b(!0),children:"Restore All"})]}):null]}),s("div",{className:"overflow-x-auto",children:s("div",{className:"overflow-x-auto border-b border-gray-200 shadow ",children:g?s("div",{className:"flex items-center justify-center py-12",children:"Loading..."}):f("table",{className:"min-w-full divide-y divide-gray-200 border border-t-0 bg-white",children:[s("thead",{className:"cursor-pointer bg-gray-50",children:f("tr",{className:"cursor-pointer",children:[a&&s("th",{scope:"col",className:"px-2 py-3 text-left text-xs font-medium uppercase tracking-wider text-gray-500"}),LT.map((I,B)=>f("th",{scope:"col",className:"cursor-pointer whitespace-nowrap px-6 py-4 text-left text-xs font-medium uppercase tracking-wider text-gray-500",children:[I.header,I.isSorted,s("span",{children:I.isSorted?I.isSortedDesc?" \u25BC":" \u25B2":""})]},B))]})}),s("tbody",{className:"divide-y divide-gray-200 normal-case",children:d.sort((I,B)=>new Date(B.delet
relative inline-flex h-[28px] w-[55px] shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out focus:outline-none focus-visible:ring-2 focus-visible:ring-white focus-visible:ring-opacity-75`,children:[s("span",{className:"sr-only",children:"Use setting"}),s("span",{"aria-hidden":"true",className:`${j?"translate-x-7":"translate-x-0"}
pointer-events-none inline-block h-[24px] w-[24px] transform rounded-full bg-white shadow-lg ring-0 transition duration-200 ease-in-out`})]})}const D=A=>{c.set("id",A.id),c.set("deleted_at",A.deleted_at),c.set("email",A.email),l(c),localStorage.setItem("admin_recycle_filter",c.toString()),E(A)};return R.useEffect(()=>{n({type:"SETPATH",payload:{path:"recycle_bin_properties_spaces`"}}),E()},[]),f(Se,{children:[s("form",{className:"rounded rounded-b-none border border-b-0 bg-white p-5",onSubmit:_(D),children:f("div",{className:"max-w-5xl",children:[s("div",{className:"flex justify-between",children:s("h4",{className:"text-2xl font-medium",children:"Recycle Bin (Property Spaces)"})}),f("div",{className:"filter-form-holder mt-10 flex flex-wrap",children:[f("div",{className:"mb-4 w-full pr-2 pl-2 md:w-1/3",children:[s("label",{className:"mb-2 block text-sm font-bold text-gray-700",htmlFor:"id",children:"ID"}),s("input",{...N("id"),className:`focus:shadow-outline w-full rounded border py-2 px-3 leading-tight text-gray-700 focus:outline-none ${(M=C.id)!=null&&M.message?"border-red-500":""}`}),s("p",{className:"text-xs italic text-red-500",children:(O=C.id)==null?void 0:O.message})]}),f("div",{className:"mb-4 w-full pr-2 pl-2 md:w-1/3",children:[s("label",{className:"mb-2 block text-sm font-bold text-gray-700",htmlFor:"email",children:"Email"}),s("input",{...N("email"),className:`focus:shadow-outline w-full rounded border py-2 px-3 leading-tight text-gray-700 focus:outline-none ${(F=C.email)!=null&&F.message?"border-red-500":""}`}),s("p",{className:"text-xs italic text-red-500",children:(z=C.email)==null?void 0:z.message})]}),f("div",{className:"mb-4 w-full pr-2 pl-2 md:w-1/3",children:[s("label",{className:"mb-2 block text-sm font-bold text-gray-700",htmlFor:"deleted_at",children:"Date Deleted"}),s("input",{type:"date",...N("deleted_at"),className:"none mb-3 w-full rounded border bg-white py-2 px-3 leading-tight text-gray-700 focus:outline-none"}),s("p",{className:"text-xs italic text-red-500",children:(H=C.deleted_at)==null?void 0:H.message})]})]}),s(dn,{text:"Search"}),s("button",{className:"font-inter ml-2 cursor-pointer rounded-md border border-[#33D4B7] bg-gradient-to-r from-[#33D4B7] to-[#0D9895] bg-clip-text px-[66px] py-[10px] text-transparent",type:"reset",onClick:()=>{k({id:"",entity_type:"",deleted_at:"",email:""}),localStorage.removeItem("admin_recycle_filter"),Pt(c,l),E()},children:"Reset"})]})}),s("div",{className:"flex justify-end bg-white px-6 pt-4",children:s(Xa,{enabled:a,setEnabled:r})}),a&&f("div",{className:"flex items-center justify-between bg-white py-4 pl-2 pr-6 font-medium text-[#667085]",children:[f("label",{className:"flex cursor-pointer items-center gap-2",children:[s("input",{type:"checkbox",name:"bulk-mode",id:"",onClick:()=>{i.length!=d.length?o(d.map(A=>({id:A.id,table:A.entity_type}))):o([])},checked:i.length==d.length&&d.length>0,onChange:()=>{}}),"Select All"]}),i.length>0?f("div",{className:"flex items-start gap-4",children:[" ",s("button",{onClick:()=>{pe(n,"Working on it",4e3,"ERROR")},children:"Delete All"}),s("button",{onClick:()=>b(!0),children:"Restore All"})]}):null]}),s("div",{className:"overflow-x-auto",children:s("div",{className:"overflow-x-auto border-b border-gray-200 shadow ",children:g?s("div",{className:"flex items-center justify-center py-12",children:"Loading..."}):f("table",{className:"min-w-full divide-y divide-gray-200 border border-t-0 bg-white",children:[s("thead",{className:"cursor-pointer bg-gray-50",children:f("tr",{className:"cursor-pointer",children:[a&&s("th",{scope:"col",className:"px-2 py-3 text-left text-xs font-medium uppercase tracking-wider text-gray-500"}),DT.map((A,j)=>f("th",{scope:"col",className:"cursor-pointer whitespace-nowrap px-6 py-4 text-left text-xs font-medium uppercase tracking-wider text-gray-500",children:[A.header,A.isSorted,s("span",{children:A.isSorted?A.isSortedDesc?" \u25BC":" \u25B2":""})]},j))]})}),s("tbody",{className:"divide-y divide-gray-200 normal-case",children:d.sort((A,j)=>new Date(j.deleted_at)-new Date(A.deleted_at)
relative inline-flex h-[28px] w-[55px] shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out focus:outline-none focus-visible:ring-2 focus-visible:ring-white focus-visible:ring-opacity-75`,children:[s("span",{className:"sr-only",children:"Use setting"}),s("span",{"aria-hidden":"true",className:`${B?"translate-x-7":"translate-x-0"}
pointer-events-none inline-block h-[24px] w-[24px] transform rounded-full bg-white shadow-lg ring-0 transition duration-200 ease-in-out`})]})}const M=I=>{c.set("id",I.id),c.set("deleted_at",I.deleted_at),c.set("email",I.email),l(c),localStorage.setItem("admin_recycle_filter",c.toString()),D(I)};return R.useEffect(()=>{n({type:"SETPATH",payload:{path:"recycle_bin_properties_space_images"}}),D()},[]),f(Se,{children:[s("form",{className:"rounded rounded-b-none border border-b-0 bg-white p-5",onSubmit:E(M),children:f("div",{className:"max-w-5xl",children:[s("div",{className:"flex justify-between",children:s("h4",{className:"text-2xl font-medium",children:"Recycle Bin (Property Space Images)"})}),f("div",{className:"filter-form-holder mt-10 flex flex-wrap",children:[f("div",{className:"mb-4 w-full pr-2 pl-2 md:w-1/3",children:[s("label",{className:"mb-2 block text-sm font-bold text-gray-700",htmlFor:"id",children:"ID"}),s("input",{...C("id"),className:`focus:shadow-outline w-full rounded border py-2 px-3 leading-tight text-gray-700 focus:outline-none ${(F=T.id)!=null&&F.message?"border-red-500":""}`}),s("p",{className:"text-xs italic text-red-500",children:(z=T.id)==null?void 0:z.message})]}),f("div",{className:"mb-4 w-full pr-2 pl-2 md:w-1/3",children:[s("label",{className:"mb-2 block text-sm font-bold text-gray-700",htmlFor:"email",children:"Email"}),s("input",{...C("email"),className:`focus:shadow-outline w-full rounded border py-2 px-3 leading-tight text-gray-700 focus:outline-none ${(H=T.email)!=null&&H.message?"border-red-500":""}`}),s("p",{className:"text-xs italic text-red-500",children:(A=T.email)==null?void 0:A.message})]}),f("div",{className:"mb-4 w-full pr-2 pl-2 md:w-1/3",children:[s("label",{className:"mb-2 block text-sm font-bold text-gray-700",htmlFor:"deleted_at",children:"Date Deleted"}),s("input",{type:"date",...C("deleted_at"),className:"none mb-3 w-full rounded border bg-white py-2 px-3 leading-tight text-gray-700 focus:outline-none"}),s("p",{className:"text-xs italic text-red-500",children:(j=T.deleted_at)==null?void 0:j.message})]})]}),s(dn,{text:"Search"}),s("button",{className:"font-inter ml-2 cursor-pointer rounded-md border border-[#33D4B7] bg-gradient-to-r from-[#33D4B7] to-[#0D9895] bg-clip-text px-[66px] py-[10px] text-transparent",type:"reset",onClick:()=>{_({id:"",entity_type:"",deleted_at:"",email:""}),localStorage.removeItem("admin_recycle_filter"),Pt(c,l),D()},children:"Reset"})]})}),s("div",{className:"flex justify-end bg-white px-6 pt-4",children:s(Xa,{enabled:a,setEnabled:r})}),a&&f("div",{className:"flex items-center justify-between bg-white py-4 pl-2 pr-6 font-medium text-[#667085]",children:[f("label",{className:"flex cursor-pointer items-center gap-2",children:[s("input",{type:"checkbox",name:"bulk-mode",id:"",onClick:()=>{i.length!=d.length?o(d.map(I=>({id:I.id,table:I.entity_type}))):o([])},checked:i.length==d.length&&d.length>0,onChange:()=>{}}),"Select All"]}),i.length>0?f("div",{className:"flex items-start gap-4",children:[" ",s("button",{onClick:()=>{pe(n,"Working on it",4e3,"ERROR"),k(!0)},children:"Delete All"}),s("button",{onClick:()=>b(!0),children:"Restore All"})]}):null]}),s("div",{className:"overflow-x-auto",children:s("div",{className:"overflow-x-auto border-b border-gray-200 shadow ",children:g?s("div",{className:"flex items-center justify-center py-12",children:"Loading..."}):f("table",{className:"min-w-full divide-y divide-gray-200 border border-t-0 bg-white",children:[s("thead",{className:"cursor-pointer bg-gray-50",children:f("tr",{className:"cursor-pointer",children:[a&&s("th",{scope:"col",className:"px-2 py-3 text-left text-xs font-medium uppercase tracking-wider text-gray-500"}),MT.map((I,B)=>f("th",{scope:"col",className:"cursor-pointer whitespace-nowrap px-6 py-4 text-left text-xs font-medium uppercase tracking-wider text-gray-500",children:[I.header,I.isSorted,s("span",{children:I.isSorted?I.isSortedDesc?" \u25BC":" \u25B2":""})]},B))]})}),s("tbody",{className:"divide-y divide-gray-200 normal-case",children:d.sort((I,B)=>new Date(B.deleted_at)-new D
relative inline-flex h-[28px] w-[55px] shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out focus:outline-none focus-visible:ring-2 focus-visible:ring-white focus-visible:ring-opacity-75`,children:[s("span",{className:"sr-only",children:"Use setting"}),s("span",{"aria-hidden":"true",className:`${B?"translate-x-7":"translate-x-0"}
pointer-events-none inline-block h-[24px] w-[24px] transform rounded-full bg-white shadow-lg ring-0 transition duration-200 ease-in-out`})]})}const M=I=>{c.set("id",I.id),c.set("entity_type",I.entity_type),c.set("deleted_at",I.deleted_at),c.set("email",I.email),l(c),localStorage.setItem("admin_recycle_filter",c.toString()),D()};return R.useEffect(()=>{n({type:"SETPATH",payload:{path:"recycle_bin_properties_space_amenities`"}}),D()},[]),f(Se,{children:[s("form",{className:"rounded rounded-b-none border border-b-0 bg-white p-5",onSubmit:E(M),children:f("div",{className:"max-w-5xl",children:[s("div",{className:"flex justify-between",children:s("h4",{className:"text-2xl font-medium",children:"Recycle Bin (Property Space Amenities)"})}),f("div",{className:"filter-form-holder mt-10 flex flex-wrap",children:[f("div",{className:"mb-4 w-full pr-2 pl-2 md:w-1/3",children:[s("label",{className:"mb-2 block text-sm font-bold text-gray-700",htmlFor:"id",children:"ID"}),s("input",{...C("id"),className:`focus:shadow-outline w-full rounded border py-2 px-3 leading-tight text-gray-700 focus:outline-none ${(F=T.id)!=null&&F.message?"border-red-500":""}`}),s("p",{className:"text-xs italic text-red-500",children:(z=T.id)==null?void 0:z.message})]}),f("div",{className:"mb-4 w-full pr-2 pl-2 md:w-1/3",children:[s("label",{className:"mb-2 block text-sm font-bold text-gray-700",htmlFor:"email",children:"Email"}),s("input",{...C("email"),className:`focus:shadow-outline w-full rounded border py-2 px-3 leading-tight text-gray-700 focus:outline-none ${(H=T.email)!=null&&H.message?"border-red-500":""}`}),s("p",{className:"text-xs italic text-red-500",children:(A=T.email)==null?void 0:A.message})]}),f("div",{className:"mb-4 w-full pr-2 pl-2 md:w-1/3",children:[s("label",{className:"mb-2 block text-sm font-bold text-gray-700",htmlFor:"deleted_at",children:"Date Deleted"}),s("input",{type:"date",...C("deleted_at"),className:"none mb-3 w-full rounded border bg-white py-2 px-3 leading-tight text-gray-700 focus:outline-none"}),s("p",{className:"text-xs italic text-red-500",children:(j=T.deleted_at)==null?void 0:j.message})]})]}),s(dn,{text:"Search"}),s("button",{className:"font-inter ml-2 cursor-pointer rounded-md border border-[#33D4B7] bg-gradient-to-r from-[#33D4B7] to-[#0D9895] bg-clip-text px-[66px] py-[10px] text-transparent",type:"reset",onClick:()=>{_({id:"",entity_type:"",deleted_at:"",email:""}),localStorage.removeItem("admin_recycle_filter"),Pt(c,l),D()},children:"Reset"})]})}),s("div",{className:"flex justify-end bg-white px-6 pt-4",children:s(Xa,{enabled:a,setEnabled:r})}),a&&f("div",{className:"flex items-center justify-between bg-white py-4 pl-2 pr-6 font-medium text-[#667085]",children:[f("label",{className:"flex cursor-pointer items-center gap-2",children:[s("input",{type:"checkbox",name:"bulk-mode",id:"",onClick:()=>{i.length!=d.length?o(d.map(I=>({id:I.id,table:I.entity_type}))):o([])},checked:i.length==d.length&&d.length>0,onChange:()=>{}}),"Select All"]}),i.length>0?f("div",{className:"flex items-start gap-4",children:[" ",s("button",{onClick:()=>{pe(n,"Working on it",4e3,"ERROR"),k(!0)},children:"Delete All"}),s("button",{onClick:()=>b(!0),children:"Restore All"})]}):null]}),s("div",{className:"overflow-x-auto",children:s("div",{className:"overflow-x-auto border-b border-gray-200 shadow ",children:g?s("div",{className:"flex items-center justify-center py-12",children:"Loading..."}):f("table",{className:"min-w-full divide-y divide-gray-200 border border-t-0 bg-white",children:[s("thead",{className:"cursor-pointer bg-gray-50",children:f("tr",{className:"cursor-pointer",children:[a&&s("th",{scope:"col",className:"px-2 py-3 text-left text-xs font-medium uppercase tracking-wider text-gray-500"}),AT.map((I,B)=>f("th",{scope:"col",className:"cursor-pointer whitespace-nowrap px-6 py-4 text-left text-xs font-medium uppercase tracking-wider text-gray-500",children:[I.header,I.isSorted,s("span",{children:I.isSorted?I.isSortedDesc?" \u25BC":" \u25B2":""})]},B))]})}),s("tbody",{className:"divide-y divide-gray-200 normal-case",children:d
relative inline-flex h-[28px] w-[55px] shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out focus:outline-none focus-visible:ring-2 focus-visible:ring-white focus-visible:ring-opacity-75`,children:[s("span",{className:"sr-only",children:"Use setting"}),s("span",{"aria-hidden":"true",className:`${j?"translate-x-7":"translate-x-0"}
pointer-events-none inline-block h-[24px] w-[24px] transform rounded-full bg-white shadow-lg ring-0 transition duration-200 ease-in-out`})]})}const M=A=>{c.set("id",A.id),c.set("deleted_at",A.deleted_at),c.set("email",A.email),l(c),localStorage.setItem("admin_recycle_filter",c.toString()),D(A)};return R.useEffect(()=>{n({type:"SETPATH",payload:{path:"recycle_bin_booking_addon"}}),D()},[]),f(Se,{children:[s("form",{className:"rounded rounded-b-none border border-b-0 bg-white p-5",onSubmit:E(M),children:f("div",{className:"max-w-5xl",children:[s("div",{className:"flex justify-between",children:s("h4",{className:"text-2xl font-medium",children:"Recycle Bin (Booking Addons)"})}),f("div",{className:"filter-form-holder mt-10 flex flex-wrap",children:[f("div",{className:"mb-4 w-full pr-2 pl-2 md:w-1/3",children:[s("label",{className:"mb-2 block text-sm font-bold text-gray-700",htmlFor:"id",children:"ID"}),s("input",{...C("id"),className:`focus:shadow-outline w-full rounded border py-2 px-3 leading-tight text-gray-700 focus:outline-none ${(F=T.id)!=null&&F.message?"border-red-500":""}`}),s("p",{className:"text-xs italic text-red-500",children:(z=T.id)==null?void 0:z.message})]}),f("div",{className:"mb-4 w-full pr-2 pl-2 md:w-1/3",children:[s("label",{className:"mb-2 block text-sm font-bold text-gray-700",htmlFor:"deleted_at",children:"Date Deleted"}),s("input",{type:"date",...C("deleted_at"),className:"none mb-3 w-full rounded border bg-white py-2 px-3 leading-tight text-gray-700 focus:outline-none"}),s("p",{className:"text-xs italic text-red-500",children:(H=T.deleted_at)==null?void 0:H.message})]})]}),s(dn,{text:"Search"}),s("button",{className:"font-inter ml-2 cursor-pointer rounded-md border border-[#33D4B7] bg-gradient-to-r from-[#33D4B7] to-[#0D9895] bg-clip-text px-[66px] py-[10px] text-transparent",type:"reset",onClick:()=>{_({id:"",entity_type:"",deleted_at:"",email:""}),localStorage.removeItem("admin_recycle_filter"),Pt(c,l),D()},children:"Reset"})]})}),s("div",{className:"flex justify-end bg-white px-6 pt-4",children:s(Xa,{enabled:a,setEnabled:r})}),a&&f("div",{className:"flex items-center justify-between bg-white py-4 pl-2 pr-6 font-medium text-[#667085]",children:[f("label",{className:"flex cursor-pointer items-center gap-2",children:[s("input",{type:"checkbox",name:"bulk-mode",id:"",onClick:()=>{i.length!=d.length?o(d.map(A=>({id:A.id,table:A.entity_type}))):o([])},checked:i.length==d.length&&d.length>0,onChange:()=>{}}),"Select All"]}),i.length>0?f("div",{className:"flex items-start gap-4",children:[" ",s("button",{onClick:()=>{pe(n,"Working on it",4e3,"ERROR"),k(!0)},children:"Delete All"}),s("button",{onClick:()=>b(!0),children:"Restore All"})]}):null]}),s("div",{className:"overflow-x-auto",children:s("div",{className:"overflow-x-auto border-b border-gray-200 shadow ",children:g?s("div",{className:"flex items-center justify-center py-12",children:"Loading..."}):f("table",{className:"min-w-full divide-y divide-gray-200 border border-t-0 bg-white",children:[s("thead",{className:"cursor-pointer bg-gray-50",children:f("tr",{className:"cursor-pointer",children:[a&&s("th",{scope:"col",className:"px-2 py-3 text-left text-xs font-medium uppercase tracking-wider text-gray-500"}),IT.map((A,j)=>f("th",{scope:"col",className:"cursor-pointer whitespace-nowrap px-6 py-4 text-left text-xs font-medium uppercase tracking-wider text-gray-500",children:[A.header,A.isSorted,s("span",{children:A.isSorted?A.isSortedDesc?" \u25BC":" \u25B2":""})]},j))]})}),s("tbody",{className:"divide-y divide-gray-200 normal-case",children:d.sort((A,j)=>new Date(j.deleted_at)-new Date(A.deleted_at)).map((A,j)=>f("tr",{className:"py-2 text-sm",children:[a&&s("td",{className:"whitespace-nowrap px-2 py-2",children:s("input",{type:"checkbox",name:"bulk-mode",id:"",onClick:()=>{i.some(I=>I.id==A.id)?o(I=>{let B=[...I];return B.splice(I.findIndex(Y=>Y.id==A.id),1),B}):o(I=>[...I,{id:A.id,table:A.entity_type}])},checked:i.some(I=>I.id==A.id),onChange:()=>{}})}),IT.map((I,B)=>I.format?s("td",{className:"whitespace-nowrap px-6 py-4",children:I.form
relative inline-flex h-[28px] w-[55px] shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out focus:outline-none focus-visible:ring-2 focus-visible:ring-white focus-visible:ring-opacity-75`,children:[s("span",{className:"sr-only",children:"Use setting"}),s("span",{"aria-hidden":"true",className:`${j?"translate-x-7":"translate-x-0"}
pointer-events-none inline-block h-[24px] w-[24px] transform rounded-full bg-white shadow-lg ring-0 transition duration-200 ease-in-out`})]})}const M=A=>{c.set("id",A.id),c.set("entity_type",A.entity_type),c.set("deleted_at",A.deleted_at),c.set("email",A.email),l(c),localStorage.setItem("admin_recycle_filter",c.toString()),D(A)};return R.useEffect(()=>{n({type:"SETPATH",payload:{path:"recycle_bin_faqs"}}),D()},[]),f(Se,{children:[s("form",{className:"rounded rounded-b-none border border-b-0 bg-white p-5",onSubmit:E(M),children:f("div",{className:"max-w-5xl",children:[s("div",{className:"flex justify-between",children:s("h4",{className:"text-2xl font-medium",children:"Recycle Bin (Faqs)"})}),f("div",{className:"filter-form-holder mt-10 flex flex-wrap",children:[f("div",{className:"mb-4 w-full pr-2 pl-2 md:w-1/3",children:[s("label",{className:"mb-2 block text-sm font-bold text-gray-700",htmlFor:"id",children:"ID"}),s("input",{...C("id"),className:`focus:shadow-outline w-full rounded border py-2 px-3 leading-tight text-gray-700 focus:outline-none ${(F=T.id)!=null&&F.message?"border-red-500":""}`}),s("p",{className:"text-xs italic text-red-500",children:(z=T.id)==null?void 0:z.message})]}),f("div",{className:"mb-4 w-full pr-2 pl-2 md:w-1/3",children:[s("label",{className:"mb-2 block text-sm font-bold text-gray-700",htmlFor:"deleted_at",children:"Date Deleted"}),s("input",{type:"date",...C("deleted_at"),className:"none mb-3 w-full rounded border bg-white py-2 px-3 leading-tight text-gray-700 focus:outline-none"}),s("p",{className:"text-xs italic text-red-500",children:(H=T.deleted_at)==null?void 0:H.message})]})]}),s(dn,{text:"Search"}),s("button",{className:"font-inter ml-2 cursor-pointer rounded-md border border-[#33D4B7] bg-gradient-to-r from-[#33D4B7] to-[#0D9895] bg-clip-text px-[66px] py-[10px] text-transparent",type:"reset",onClick:()=>{_({id:"",entity_type:"",deleted_at:"",email:""}),localStorage.removeItem("admin_recycle_filter"),Pt(c,l),D()},children:"Reset"})]})}),s("div",{className:"flex justify-end bg-white px-6 pt-4",children:s(Xa,{enabled:a,setEnabled:r})}),a&&f("div",{className:"flex items-center justify-between bg-white py-4 pl-2 pr-6 font-medium text-[#667085]",children:[f("label",{className:"flex cursor-pointer items-center gap-2",children:[s("input",{type:"checkbox",name:"bulk-mode",id:"",onClick:()=>{i.length!=d.length?o(d.map(A=>({id:A.id,table:A.entity_type}))):o([])},checked:i.length==d.length&&d.length>0,onChange:()=>{}}),"Select All"]}),i.length>0?f("div",{className:"flex items-start gap-4",children:[" ",s("button",{onClick:()=>{pe(n,"Working on it",4e3,"ERROR"),k(!0)},children:"Delete All"}),s("button",{onClick:()=>b(!0),children:"Restore All"})]}):null]}),s("div",{className:"overflow-x-auto",children:s("div",{className:"overflow-x-auto border-b border-gray-200 shadow ",children:g?s("div",{className:"flex items-center justify-center py-12",children:"Loading..."}):f("table",{className:"min-w-full divide-y divide-gray-200 border border-t-0 bg-white",children:[s("thead",{className:"cursor-pointer bg-gray-50",children:f("tr",{className:"cursor-pointer",children:[a&&s("th",{scope:"col",className:"px-2 py-3 text-left text-xs font-medium uppercase tracking-wider text-gray-500"}),OT.map((A,j)=>f("th",{scope:"col",className:"cursor-pointer whitespace-nowrap px-6 py-4 text-left text-xs font-medium uppercase tracking-wider text-gray-500",children:[A.header,A.isSorted,s("span",{children:A.isSorted?A.isSortedDesc?" \u25BC":" \u25B2":""})]},j))]})}),s("tbody",{className:"divide-y divide-gray-200 normal-case",children:d.sort((A,j)=>new Date(j.deleted_at)-new Date(A.deleted_at)).map((A,j)=>f("tr",{className:"py-2 text-sm",children:[a&&s("td",{className:"whitespace-nowrap px-2 py-2",children:s("input",{type:"checkbox",name:"bulk-mode",id:"",onClick:()=>{i.some(I=>I.id==A.id)?o(I=>{let B=[...I];return B.splice(I.findIndex(Y=>Y.id==A.id),1),B}):o(I=>[...I,{id:A.id,table:A.entity_type}])},checked:i.some(I=>I.id==A.id),onChange:()=>{}})}),OT.map((I,B)=>I.format?s("td",{className:"whitespace-nowrap px-6 py-4"
relative inline-flex h-[28px] w-[55px] shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out focus:outline-none focus-visible:ring-2 focus-visible:ring-white focus-visible:ring-opacity-75`,children:[s("span",{className:"sr-only",children:"Use setting"}),s("span",{"aria-hidden":"true",className:`${j?"translate-x-7":"translate-x-0"}
pointer-events-none inline-block h-[24px] w-[24px] transform rounded-full bg-white shadow-lg ring-0 transition duration-200 ease-in-out`})]})}const M=A=>{c.set("id",A.id),c.set("entity_type",A.entity_type),c.set("deleted_at",A.deleted_at),c.set("email",A.email),l(c),localStorage.setItem("admin_recycle_filter",c.toString()),D(A)};return R.useEffect(()=>{n({type:"SETPATH",payload:{path:"recycle_bin_hashtag`"}}),D()},[]),f(Se,{children:[s("form",{className:"rounded rounded-b-none border border-b-0 bg-white p-5",onSubmit:E(M),children:f("div",{className:"max-w-5xl",children:[s("div",{className:"flex justify-between",children:s("h4",{className:"text-2xl font-medium",children:"Recycle Bin (Hashtags)"})}),f("div",{className:"filter-form-holder mt-10 flex flex-wrap",children:[f("div",{className:"mb-4 w-full pr-2 pl-2 md:w-1/3",children:[s("label",{className:"mb-2 block text-sm font-bold text-gray-700",htmlFor:"id",children:"ID"}),s("input",{...C("id"),className:`focus:shadow-outline w-full rounded border py-2 px-3 leading-tight text-gray-700 focus:outline-none ${(F=T.id)!=null&&F.message?"border-red-500":""}`}),s("p",{className:"text-xs italic text-red-500",children:(z=T.id)==null?void 0:z.message})]}),f("div",{className:"mb-4 w-full pr-2 pl-2 md:w-1/3",children:[s("label",{className:"mb-2 block text-sm font-bold text-gray-700",htmlFor:"deleted_at",children:"Date Deleted"}),s("input",{type:"date",...C("deleted_at"),className:"none mb-3 w-full rounded border bg-white py-2 px-3 leading-tight text-gray-700 focus:outline-none"}),s("p",{className:"text-xs italic text-red-500",children:(H=T.deleted_at)==null?void 0:H.message})]})]}),s(dn,{text:"Search"}),s("button",{className:"font-inter ml-2 cursor-pointer rounded-md border border-[#33D4B7] bg-gradient-to-r from-[#33D4B7] to-[#0D9895] bg-clip-text px-[66px] py-[10px] text-transparent",type:"reset",onClick:()=>{_({id:"",entity_type:"",deleted_at:"",email:""}),localStorage.removeItem("admin_recycle_filter"),Pt(c,l),D()},children:"Reset"})]})}),s("div",{className:"flex justify-end bg-white px-6 pt-4",children:s(Xa,{enabled:a,setEnabled:r})}),a&&f("div",{className:"flex items-center justify-between bg-white py-4 pl-2 pr-6 font-medium text-[#667085]",children:[f("label",{className:"flex cursor-pointer items-center gap-2",children:[s("input",{type:"checkbox",name:"bulk-mode",id:"",onClick:()=>{i.length!=d.length?o(d.map(A=>({id:A.id,table:A.entity_type}))):o([])},checked:i.length==d.length&&d.length>0,onChange:()=>{}}),"Select All"]}),i.length>0?f("div",{className:"flex items-start gap-4",children:[" ",s("button",{onClick:()=>{pe(n,"Working on it",4e3,"ERROR"),k(!0)},children:"Delete All"}),s("button",{onClick:()=>b(!0),children:"Restore All"})]}):null]}),s("div",{className:"overflow-x-auto",children:s("div",{className:"overflow-x-auto border-b border-gray-200 shadow ",children:g?s("div",{className:"flex items-center justify-center py-12",children:"Loading..."}):f("table",{className:"min-w-full divide-y divide-gray-200 border border-t-0 bg-white",children:[s("thead",{className:"cursor-pointer bg-gray-50",children:f("tr",{className:"cursor-pointer",children:[a&&s("th",{scope:"col",className:"px-2 py-3 text-left text-xs font-medium uppercase tracking-wider text-gray-500"}),PT.map((A,j)=>f("th",{scope:"col",className:"cursor-pointer whitespace-nowrap px-6 py-4 text-left text-xs font-medium uppercase tracking-wider text-gray-500",children:[A.header,A.isSorted,s("span",{children:A.isSorted?A.isSortedDesc?" \u25BC":" \u25B2":""})]},j))]})}),s("tbody",{className:"divide-y divide-gray-200 normal-case",children:d.sort((A,j)=>new Date(j.deleted_at)-new Date(A.deleted_at)).map((A,j)=>f("tr",{className:"py-2 text-sm",children:[a&&s("td",{className:"whitespace-nowrap px-2 py-2",children:s("input",{type:"checkbox",name:"bulk-mode",id:"",onClick:()=>{i.some(I=>I.id==A.id)?o(I=>{let B=[...I];return B.splice(I.findIndex(Y=>Y.id==A.id),1),B}):o(I=>[...I,{id:A.id,table:A.entity_type}])},checked:i.some(I=>I.id==A.id),onChange:()=>{}})}),PT.map((I,B)=>I.format?s("td",{className:"whitespace-nowrap px
relative inline-flex h-[28px] w-[55px] shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out focus:outline-none focus-visible:ring-2 focus-visible:ring-white focus-visible:ring-opacity-75`,children:[s("span",{className:"sr-only",children:"Use setting"}),s("span",{"aria-hidden":"true",className:`${j?"translate-x-7":"translate-x-0"}
pointer-events-none inline-block h-[24px] w-[24px] transform rounded-full bg-white shadow-lg ring-0 transition duration-200 ease-in-out`})]})}const M=A=>{c.set("id",A.id),c.set("deleted_at",A.deleted_at),c.set("email",A.email),l(c),localStorage.setItem("admin_recycle_filter",c.toString()),D(A)};return R.useEffect(()=>{n({type:"SETPATH",payload:{path:"recycle_bin_spaces`"}}),D()},[]),f(Se,{children:[s("form",{className:"rounded rounded-b-none border border-b-0 bg-white p-5",onSubmit:E(M),children:f("div",{className:"max-w-5xl",children:[s("div",{className:"flex justify-between",children:s("h4",{className:"text-2xl font-medium",children:"Recycle Bin (Spaces)"})}),f("div",{className:"filter-form-holder mt-10 flex flex-wrap",children:[f("div",{className:"mb-4 w-full pr-2 pl-2 md:w-1/3",children:[s("label",{className:"mb-2 block text-sm font-bold text-gray-700",htmlFor:"id",children:"ID"}),s("input",{...C("id"),className:`focus:shadow-outline w-full rounded border py-2 px-3 leading-tight text-gray-700 focus:outline-none ${(F=T.id)!=null&&F.message?"border-red-500":""}`}),s("p",{className:"text-xs italic text-red-500",children:(z=T.id)==null?void 0:z.message})]}),f("div",{className:"mb-4 w-full pr-2 pl-2 md:w-1/3",children:[s("label",{className:"mb-2 block text-sm font-bold text-gray-700",htmlFor:"deleted_at",children:"Date Deleted"}),s("input",{type:"date",...C("deleted_at"),className:"none mb-3 w-full rounded border bg-white py-2 px-3 leading-tight text-gray-700 focus:outline-none"}),s("p",{className:"text-xs italic text-red-500",children:(H=T.deleted_at)==null?void 0:H.message})]})]}),s(dn,{text:"Search"}),s("button",{className:"font-inter ml-2 cursor-pointer rounded-md border border-[#33D4B7] bg-gradient-to-r from-[#33D4B7] to-[#0D9895] bg-clip-text px-[66px] py-[10px] text-transparent",type:"reset",onClick:()=>{_({id:"",entity_type:"",deleted_at:"",email:""}),localStorage.removeItem("admin_recycle_filter"),Pt(c,l),D()},children:"Reset"})]})}),s("div",{className:"flex justify-end bg-white px-6 pt-4",children:s(Xa,{enabled:a,setEnabled:r})}),a&&f("div",{className:"flex items-center justify-between bg-white py-4 pl-2 pr-6 font-medium text-[#667085]",children:[f("label",{className:"flex cursor-pointer items-center gap-2",children:[s("input",{type:"checkbox",name:"bulk-mode",id:"",onClick:()=>{i.length!=d.length?o(d.map(A=>({id:A.id,table:A.entity_type}))):o([])},checked:i.length==d.length&&d.length>0,onChange:()=>{}}),"Select All"]}),i.length>0?f("div",{className:"flex items-start gap-4",children:[" ",s("button",{onClick:()=>{pe(n,"Working on it",4e3,"ERROR"),k(!0)},children:"Delete All"}),s("button",{onClick:()=>b(!0),children:"Restore All"})]}):null]}),s("div",{className:"overflow-x-auto",children:s("div",{className:"overflow-x-auto border-b border-gray-200 shadow ",children:g?s("div",{className:"flex items-center justify-center py-12",children:"Loading..."}):f("table",{className:"min-w-full divide-y divide-gray-200 border border-t-0 bg-white",children:[s("thead",{className:"cursor-pointer bg-gray-50",children:f("tr",{className:"cursor-pointer",children:[a&&s("th",{scope:"col",className:"px-2 py-3 text-left text-xs font-medium uppercase tracking-wider text-gray-500"}),RT.map((A,j)=>f("th",{scope:"col",className:"cursor-pointer whitespace-nowrap px-6 py-4 text-left text-xs font-medium uppercase tracking-wider text-gray-500",children:[A.header,A.isSorted,s("span",{children:A.isSorted?A.isSortedDesc?" \u25BC":" \u25B2":""})]},j))]})}),s("tbody",{className:"divide-y divide-gray-200 normal-case",children:d.sort((A,j)=>new Date(j.deleted_at)-new Date(A.deleted_at)).map((A,j)=>f("tr",{className:"py-2 text-sm",children:[a&&s("td",{className:"whitespace-nowrap px-2 py-2",children:s("input",{type:"checkbox",name:"bulk-mode",id:"",onClick:()=>{i.some(I=>I.id==A.id)?o(I=>{let B=[...I];return B.splice(I.findIndex(Y=>Y.id==A.id),1),B}):o(I=>[...I,{id:A.id,table:A.entity_type}])},checked:i.some(I=>I.id==A.id),onChange:()=>{}})}),RT.map((I,B)=>I.format?s("td",{className:"whitespace-nowrap px-6 py-4",children:I.format(A[I.accesso
relative inline-flex h-[28px] w-[55px] shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out focus:outline-none focus-visible:ring-2 focus-visible:ring-white focus-visible:ring-opacity-75`,children:[s("span",{className:"sr-only",children:"Use setting"}),s("span",{"aria-hidden":"true",className:`${H?"translate-x-7":"translate-x-0"}
pointer-events-none inline-block h-[24px] w-[24px] transform rounded-full bg-white shadow-lg ring-0 transition duration-200 ease-in-out`})]})}const D=z=>{c.set("id",z.id),c.set("entity_type",z.entity_type),c.set("deleted_at",z.deleted_at),c.set("email",z.email),l(c),localStorage.setItem("admin_recycle_filter",c.toString()),E(z)};return R.useEffect(()=>{n({type:"SETPATH",payload:{path:"recycle_bin_properties_addon`"}}),E()},[]),f(Se,{children:[s("form",{className:"rounded rounded-b-none border border-b-0 bg-white p-5",onSubmit:_(D),children:f("div",{className:"max-w-5xl",children:[s("div",{className:"flex justify-between",children:s("h4",{className:"text-2xl font-medium",children:"Recycle Bin (Property Addons)"})}),f("div",{className:"filter-form-holder mt-10 flex flex-wrap",children:[f("div",{className:"mb-4 w-full pr-2 pl-2 md:w-1/3",children:[s("label",{className:"mb-2 block text-sm font-bold text-gray-700",htmlFor:"id",children:"ID"}),s("input",{...N("id"),className:`focus:shadow-outline w-full rounded border py-2 px-3 leading-tight text-gray-700 focus:outline-none ${(M=C.id)!=null&&M.message?"border-red-500":""}`}),s("p",{className:"text-xs italic text-red-500",children:(O=C.id)==null?void 0:O.message})]}),f("div",{className:"mb-4 w-full pr-2 pl-2 md:w-1/3",children:[s("label",{className:"mb-2 block text-sm font-bold text-gray-700",htmlFor:"deleted_at",children:"Date Deleted"}),s("input",{type:"date",...N("deleted_at"),className:"none mb-3 w-full rounded border bg-white py-2 px-3 leading-tight text-gray-700 focus:outline-none"}),s("p",{className:"text-xs italic text-red-500",children:(F=C.deleted_at)==null?void 0:F.message})]})]}),s(dn,{text:"Search"}),s("button",{className:"font-inter ml-2 cursor-pointer rounded-md border border-[#33D4B7] bg-gradient-to-r from-[#33D4B7] to-[#0D9895] bg-clip-text px-[66px] py-[10px] text-transparent",type:"reset",onClick:()=>{k({id:"",entity_type:"",deleted_at:"",email:""}),localStorage.removeItem("admin_recycle_filter"),Pt(c,l),E()},children:"Reset"})]})}),s("div",{className:"flex justify-end bg-white px-6 pt-4",children:s(Xa,{enabled:a,setEnabled:r})}),a&&f("div",{className:"flex items-center justify-between bg-white py-4 pl-2 pr-6 font-medium text-[#667085]",children:[f("label",{className:"flex cursor-pointer items-center gap-2",children:[s("input",{type:"checkbox",name:"bulk-mode",id:"",onClick:()=>{i.length!=d.length?o(d.map(z=>({id:z.id,table:z.entity_type}))):o([])},checked:i.length==d.length&&d.length>0,onChange:()=>{}}),"Select All"]}),i.length>0?f("div",{className:"flex items-start gap-4",children:[" ",s("button",{onClick:()=>{pe(n,"Working on it",4e3,"ERROR")},children:"Delete All"}),s("button",{onClick:()=>b(!0),children:"Restore All"})]}):null]}),s("div",{className:"overflow-x-auto",children:s("div",{className:"overflow-x-auto border-b border-gray-200 shadow ",children:g?s("div",{className:"flex items-center justify-center py-12",children:"Loading..."}):f("table",{className:"min-w-full divide-y divide-gray-200 border border-t-0 bg-white",children:[s("thead",{className:"cursor-pointer bg-gray-50",children:f("tr",{className:"cursor-pointer",children:[a&&s("th",{scope:"col",className:"px-2 py-3 text-left text-xs font-medium uppercase tracking-wider text-gray-500"}),jT.map((z,H)=>f("th",{scope:"col",className:"cursor-pointer whitespace-nowrap px-6 py-4 text-left text-xs font-medium uppercase tracking-wider text-gray-500",children:[z.header,z.isSorted,s("span",{children:z.isSorted?z.isSortedDesc?" \u25BC":" \u25B2":""})]},H))]})}),s("tbody",{className:"divide-y divide-gray-200 normal-case",children:d.sort((z,H)=>new Date(H.deleted_at)-new Date(z.deleted_at)).map((z,H)=>f("tr",{className:"py-2 text-sm",children:[a&&s("td",{className:"whitespace-nowrap px-2 py-2",children:s("input",{type:"checkbox",name:"bulk-mode",id:"",onClick:()=>{i.some(A=>A.id==z.id)?o(A=>{let j=[...A];return j.splice(A.findIndex(I=>I.id==z.id),1),j}):o(A=>[...A,{id:z.id,table:z.entity_type}])},checked:i.some(A=>A.id==z.id),onChange:()=>{}})}),jT.map((A,j)=>A.format?s("td",{className:"whitespace
relative inline-flex h-[28px] w-[55px] shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out focus:outline-none focus-visible:ring-2 focus-visible:ring-white focus-visible:ring-opacity-75`,children:[s("span",{className:"sr-only",children:"Use setting"}),s("span",{"aria-hidden":"true",className:`${j?"translate-x-7":"translate-x-0"}
pointer-events-none inline-block h-[24px] w-[24px] transform rounded-full bg-white shadow-lg ring-0 transition duration-200 ease-in-out`})]})}const M=A=>{c.set("id",A.id),c.set("entity_type",A.entity_type),c.set("deleted_at",A.deleted_at),c.set("email",A.email),l(c),localStorage.setItem("admin_recycle_filter",c.toString()),D()};return R.useEffect(()=>{n({type:"SETPATH",payload:{path:"recycle_bin_properties_space_faq`"}}),D()},[]),f(Se,{children:[s("form",{className:"rounded rounded-b-none border border-b-0 bg-white p-5",onSubmit:E(M),children:f("div",{className:"max-w-5xl",children:[s("div",{className:"flex justify-between",children:s("h4",{className:"text-2xl font-medium",children:"Recycle Bin (Space Faqs)"})}),f("div",{className:"filter-form-holder mt-10 flex flex-wrap",children:[f("div",{className:"mb-4 w-full pr-2 pl-2 md:w-1/3",children:[s("label",{className:"mb-2 block text-sm font-bold text-gray-700",htmlFor:"id",children:"ID"}),s("input",{...C("id"),className:`focus:shadow-outline w-full rounded border py-2 px-3 leading-tight text-gray-700 focus:outline-none ${(F=T.id)!=null&&F.message?"border-red-500":""}`}),s("p",{className:"text-xs italic text-red-500",children:(z=T.id)==null?void 0:z.message})]}),f("div",{className:"mb-4 w-full pr-2 pl-2 md:w-1/3",children:[s("label",{className:"mb-2 block text-sm font-bold text-gray-700",htmlFor:"deleted_at",children:"Date Deleted"}),s("input",{type:"date",...C("deleted_at"),className:"none mb-3 w-full rounded border bg-white py-2 px-3 leading-tight text-gray-700 focus:outline-none"}),s("p",{className:"text-xs italic text-red-500",children:(H=T.deleted_at)==null?void 0:H.message})]})]}),s(dn,{text:"Search"}),s("button",{className:"font-inter ml-2 cursor-pointer rounded-md border border-[#33D4B7] bg-gradient-to-r from-[#33D4B7] to-[#0D9895] bg-clip-text px-[66px] py-[10px] text-transparent",type:"reset",onClick:()=>{_({id:"",entity_type:"",deleted_at:"",email:""}),localStorage.removeItem("admin_recycle_filter"),Pt(c,l),D()},children:"Reset"})]})}),s("div",{className:"flex justify-end bg-white px-6 pt-4",children:s(Xa,{enabled:a,setEnabled:r})}),a&&f("div",{className:"flex items-center justify-between bg-white py-4 pl-2 pr-6 font-medium text-[#667085]",children:[f("label",{className:"flex cursor-pointer items-center gap-2",children:[s("input",{type:"checkbox",name:"bulk-mode",id:"",onClick:()=>{i.length!=d.length?o(d.map(A=>({id:A.id,table:A.entity_type}))):o([])},checked:i.length==d.length&&d.length>0,onChange:()=>{}}),"Select All"]}),i.length>0?f("div",{className:"flex items-start gap-4",children:[" ",s("button",{onClick:()=>{pe(n,"Working on it",4e3,"ERROR"),k(!0)},children:"Delete All"}),s("button",{onClick:()=>b(!0),children:"Restore All"})]}):null]}),s("div",{className:"overflow-x-auto",children:s("div",{className:"overflow-x-auto border-b border-gray-200 shadow ",children:g?s("div",{className:"flex items-center justify-center py-12",children:"Loading..."}):f("table",{className:"min-w-full divide-y divide-gray-200 border border-t-0 bg-white",children:[s("thead",{className:"cursor-pointer bg-gray-50",children:f("tr",{className:"cursor-pointer",children:[a&&s("th",{scope:"col",className:"px-2 py-3 text-left text-xs font-medium uppercase tracking-wider text-gray-500"}),zT.map((A,j)=>f("th",{scope:"col",className:"cursor-pointer whitespace-nowrap px-6 py-4 text-left text-xs font-medium uppercase tracking-wider text-gray-500",children:[A.header,A.isSorted,s("span",{children:A.isSorted?A.isSortedDesc?" \u25BC":" \u25B2":""})]},j))]})}),s("tbody",{className:"divide-y divide-gray-200 normal-case",children:d.sort((A,j)=>new Date(j.deleted_at)-new Date(A.deleted_at)).map((A,j)=>f("tr",{className:"py-2 text-sm",children:[a&&s("td",{className:"whitespace-nowrap px-2 py-2",children:s("input",{type:"checkbox",name:"bulk-mode",id:"",onClick:()=>{i.some(I=>I.id==A.id)?o(I=>{let B=[...I];return B.splice(I.findIndex(Y=>Y.id==A.id),1),B}):o(I=>[...I,{id:A.id,table:A.entity_type}])},checked:i.some(I=>I.id==A.id),onChange:()=>{}})}),zT.map((I,B)=>I.format?s("td",{className:"whites
relative inline-flex h-[28px] w-[55px] shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out focus:outline-none focus-visible:ring-2 focus-visible:ring-white focus-visible:ring-opacity-75`,children:[s("span",{className:"sr-only",children:"Use setting"}),s("span",{"aria-hidden":"true",className:`${j?"translate-x-7":"translate-x-0"}
pointer-events-none inline-block h-[24px] w-[24px] transform rounded-full bg-white shadow-lg ring-0 transition duration-200 ease-in-out`})]})}const D=A=>{c.set("id",A.id),c.set("entity_type",A.entity_type),c.set("deleted_at",A.deleted_at),c.set("email",A.email),l(c),localStorage.setItem("admin_recycle_filter",c.toString()),E()};return R.useEffect(()=>{n({type:"SETPATH",payload:{path:"recycle_bin_payout`"}}),E()},[]),f(Se,{children:[s("form",{className:"rounded rounded-b-none border border-b-0 bg-white p-5",onSubmit:_(D),children:f("div",{className:"max-w-5xl",children:[s("div",{className:"flex justify-between",children:s("h4",{className:"text-2xl font-medium",children:"Recycle Bin (Payout)"})}),f("div",{className:"filter-form-holder mt-10 flex flex-wrap",children:[f("div",{className:"mb-4 w-full pr-2 pl-2 md:w-1/3",children:[s("label",{className:"mb-2 block text-sm font-bold text-gray-700",htmlFor:"id",children:"ID"}),s("input",{...N("id"),className:`focus:shadow-outline w-full rounded border py-2 px-3 leading-tight text-gray-700 focus:outline-none ${(M=C.id)!=null&&M.message?"border-red-500":""}`}),s("p",{className:"text-xs italic text-red-500",children:(O=C.id)==null?void 0:O.message})]}),f("div",{className:"mb-4 w-full pr-2 pl-2 md:w-1/3",children:[s("label",{className:"mb-2 block text-sm font-bold text-gray-700",htmlFor:"email",children:"Email"}),s("input",{...N("email"),className:`focus:shadow-outline w-full rounded border py-2 px-3 leading-tight text-gray-700 focus:outline-none ${(F=C.email)!=null&&F.message?"border-red-500":""}`}),s("p",{className:"text-xs italic text-red-500",children:(z=C.email)==null?void 0:z.message})]}),f("div",{className:"mb-4 w-full pr-2 pl-2 md:w-1/3",children:[s("label",{className:"mb-2 block text-sm font-bold text-gray-700",htmlFor:"deleted_at",children:"Date Deleted"}),s("input",{type:"date",...N("deleted_at"),className:"none mb-3 w-full rounded border bg-white py-2 px-3 leading-tight text-gray-700 focus:outline-none"}),s("p",{className:"text-xs italic text-red-500",children:(H=C.deleted_at)==null?void 0:H.message})]})]}),s(dn,{text:"Search"}),s("button",{className:"font-inter ml-2 cursor-pointer rounded-md border border-[#33D4B7] bg-gradient-to-r from-[#33D4B7] to-[#0D9895] bg-clip-text px-[66px] py-[10px] text-transparent",type:"reset",onClick:()=>{k({id:"",entity_type:"",deleted_at:"",email:""}),localStorage.removeItem("admin_recycle_filter"),Pt(c,l),E()},children:"Reset"})]})}),s("div",{className:"flex justify-end bg-white px-6 pt-4",children:s(Xa,{enabled:a,setEnabled:r})}),a&&f("div",{className:"flex items-center justify-between bg-white py-4 pl-2 pr-6 font-medium text-[#667085]",children:[f("label",{className:"flex cursor-pointer items-center gap-2",children:[s("input",{type:"checkbox",name:"bulk-mode",id:"",onClick:()=>{i.length!=d.length?o(d.map(A=>({id:A.id,table:A.entity_type}))):o([])},checked:i.length==d.length&&d.length>0,onChange:()=>{}}),"Select All"]}),i.length>0?f("div",{className:"flex items-start gap-4",children:[" ",s("button",{onClick:()=>{pe(n,"Working on it",4e3,"ERROR")},children:"Delete All"}),s("button",{onClick:()=>b(!0),children:"Restore All"})]}):null]}),s("div",{className:"overflow-x-auto",children:s("div",{className:"overflow-x-auto border-b border-gray-200 shadow ",children:g?s("div",{className:"flex items-center justify-center py-12",children:"Loading..."}):f("table",{className:"min-w-full divide-y divide-gray-200 border border-t-0 bg-white",children:[s("thead",{className:"cursor-pointer bg-gray-50",children:f("tr",{className:"cursor-pointer",children:[a&&s("th",{scope:"col",className:"px-2 py-3 text-left text-xs font-medium uppercase tracking-wider text-gray-500"}),FT.map((A,j)=>f("th",{scope:"col",className:"cursor-pointer whitespace-nowrap px-6 py-4 text-left text-xs font-medium uppercase tracking-wider text-gray-500",children:[A.header,A.isSorted,s("span",{children:A.isSorted?A.isSortedDesc?" \u25BC":" \u25B2":""})]},j))]})}),s("tbody",{className:"divide-y divide-gray-200 normal-case",children:d.sort((A,j)=>new Date(j.deleted_at)-new Date
relative inline-flex h-[28px] w-[55px] shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out focus:outline-none focus-visible:ring-2 focus-visible:ring-white focus-visible:ring-opacity-75`,children:[s("span",{className:"sr-only",children:"Use setting"}),s("span",{"aria-hidden":"true",className:`${B?"translate-x-7":"translate-x-0"}
pointer-events-none inline-block h-[24px] w-[24px] transform rounded-full bg-white shadow-lg ring-0 transition duration-200 ease-in-out`})]})}const M=I=>{c.set("id",I.id),c.set("deleted_at",I.deleted_at),c.set("email",I.email),l(c),localStorage.setItem("admin_recycle_filter",c.toString()),D(I)};return R.useEffect(()=>{n({type:"SETPATH",payload:{path:"recycle_bin_booking"}}),D()},[]),f(Se,{children:[s("form",{className:"rounded rounded-b-none border border-b-0 bg-white p-5",onSubmit:E(M),children:f("div",{className:"max-w-5xl",children:[s("div",{className:"flex justify-between",children:s("h4",{className:"text-2xl font-medium",children:"Recycle Bin (Booking)"})}),f("div",{className:"filter-form-holder mt-10 flex flex-wrap",children:[f("div",{className:"mb-4 w-full pr-2 pl-2 md:w-1/3",children:[s("label",{className:"mb-2 block text-sm font-bold text-gray-700",htmlFor:"id",children:"ID"}),s("input",{...C("id"),className:`focus:shadow-outline w-full rounded border py-2 px-3 leading-tight text-gray-700 focus:outline-none ${(F=T.id)!=null&&F.message?"border-red-500":""}`}),s("p",{className:"text-xs italic text-red-500",children:(z=T.id)==null?void 0:z.message})]}),f("div",{className:"mb-4 w-full pr-2 pl-2 md:w-1/3",children:[s("label",{className:"mb-2 block text-sm font-bold text-gray-700",htmlFor:"email",children:"Email"}),s("input",{...C("email"),className:`focus:shadow-outline w-full rounded border py-2 px-3 leading-tight text-gray-700 focus:outline-none ${(H=T.email)!=null&&H.message?"border-red-500":""}`}),s("p",{className:"text-xs italic text-red-500",children:(A=T.email)==null?void 0:A.message})]}),f("div",{className:"mb-4 w-full pr-2 pl-2 md:w-1/3",children:[s("label",{className:"mb-2 block text-sm font-bold text-gray-700",htmlFor:"deleted_at",children:"Date Deleted"}),s("input",{type:"date",...C("deleted_at"),className:"none mb-3 w-full rounded border bg-white py-2 px-3 leading-tight text-gray-700 focus:outline-none"}),s("p",{className:"text-xs italic text-red-500",children:(j=T.deleted_at)==null?void 0:j.message})]})]}),s(dn,{text:"Search"}),s("button",{className:"font-inter ml-2 cursor-pointer rounded-md border border-[#33D4B7] bg-gradient-to-r from-[#33D4B7] to-[#0D9895] bg-clip-text px-[66px] py-[10px] text-transparent",type:"reset",onClick:()=>{_({id:"",entity_type:"",deleted_at:"",email:""}),localStorage.removeItem("admin_recycle_filter"),Pt(c,l),D()},children:"Reset"})]})}),s("div",{className:"flex justify-end bg-white px-6 pt-4",children:s(Xa,{enabled:a,setEnabled:r})}),a&&f("div",{className:"flex items-center justify-between bg-white py-4 pl-2 pr-6 font-medium text-[#667085]",children:[f("label",{className:"flex cursor-pointer items-center gap-2",children:[s("input",{type:"checkbox",name:"bulk-mode",id:"",onClick:()=>{i.length!=d.length?o(d.map(I=>({id:I.id,table:I.entity_type}))):o([])},checked:i.length==d.length&&d.length>0,onChange:()=>{}}),"Select All"]}),i.length>0?f("div",{className:"flex items-start gap-4",children:[" ",s("button",{onClick:()=>{pe(n,"Working on it",4e3,"ERROR"),k(!0)},children:"Delete All"}),s("button",{onClick:()=>b(!0),children:"Restore All"})]}):null]}),s("div",{className:"overflow-x-auto",children:s("div",{className:"overflow-x-auto border-b border-gray-200 shadow ",children:g?s("div",{className:"flex items-center justify-center py-12",children:"Loading..."}):f("table",{className:"min-w-full divide-y divide-gray-200 border border-t-0 bg-white",children:[s("thead",{className:"cursor-pointer bg-gray-50",children:f("tr",{className:"cursor-pointer",children:[a&&s("th",{scope:"col",className:"px-2 py-3 text-left text-xs font-medium uppercase tracking-wider text-gray-500"}),$T.map((I,B)=>f("th",{scope:"col",className:"cursor-pointer whitespace-nowrap px-6 py-4 text-left text-xs font-medium uppercase tracking-wider text-gray-500",children:[I.header,I.isSorted,s("span",{children:I.isSorted?I.isSortedDesc?" \u25BC":" \u25B2":""})]},B))]})}),s("tbody",{className:"divide-y divide-gray-200 normal-case",children:d.sort((I,B)=>new Date(B.deleted_at)-new Date(I.deleted_at)).map((I,B)=>
${e}[data-mantine-color-scheme="dark"] { --mantine-color-scheme: dark; }
${e}[data-mantine-color-scheme="light"] { --mantine-color-scheme: light; }
`}function qF({cssVariablesSelector:e,deduplicateCssVariables:t}){const n=nd(),a=LS(),r=TTe(),i=QTe({theme:n,generator:r}),o=e===":root"&&t,c=o?JTe(i):i,l=GTe(c,e);return l?s("style",{"data-mantine-styles":!0,nonce:a==null?void 0:a(),dangerouslySetInnerHTML:{__html:`${l}${o?"":KTe(e)}`}}):null}qF.displayName="@mantine/CssVariables";function XTe(){const e=console.error;console.error=(...t)=>{t.length>1&&typeof t[0]=="string"&&t[0].toLowerCase().includes("extra attributes from the server")&&typeof t[1]=="string"&&t[1].toLowerCase().includes("data-mantine-color-scheme")||e(...t)}}function Id(e,t){var a;const n=e!=="auto"?e:window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light";(a=t())==null||a.setAttribute("data-mantine-color-scheme",n)}function eLe({manager:e,defaultColorScheme:t,getRootElement:n,forceColorScheme:a}){const r=h.exports.useRef(),[i,o]=h.exports.useState(()=>e.get(t)),c=a||i,l=h.exports.useCallback(u=>{a||(Id(u,n),o(u),e.set(u))},[e.set,c,a]),d=h.exports.useCallback(()=>{o(t),Id(t,n),e.clear()},[e.clear,t]);return h.exports.useEffect(()=>(e.subscribe(l),e.unsubscribe),[e.subscribe,e.unsubscribe]),ES(()=>{Id(e.get(t),n)},[]),h.exports.useEffect(()=>{var g;if(a)return Id(a,n),()=>{};a===void 0&&Id(i,n),r.current=window.matchMedia("(prefers-color-scheme: dark)");const u=y=>{i==="auto"&&Id(y.matches?"dark":"light",n)};return(g=r.current)==null||g.addEventListener("change",u),()=>{var y;return(y=r.current)==null?void 0:y.removeEventListener("change",u)}},[i,a]),{colorScheme:c,setColorScheme:l,clearColorScheme:d}}function tLe({respectReducedMotion:e,getRootElement:t}){ES(()=>{var n;e&&((n=t())==null||n.setAttribute("data-respect-reduced-motion","true"))},[e])}XTe();function ZF({theme:e,children:t,getStyleNonce:n,withStaticClasses:a=!0,withGlobalClasses:r=!0,deduplicateCssVariables:i=!0,withCssVariables:o=!0,cssVariablesSelector:c=":root",classNamesPrefix:l="mantine",colorSchemeManager:d=HTe(),defaultColorScheme:u="light",getRootElement:g=()=>document.documentElement,cssVariablesResolver:y,forceColorScheme:w,stylesTransform:v}){const{colorScheme:S,setColorScheme:m,clearColorScheme:p}=eLe({defaultColorScheme:u,forceColorScheme:w,manager:d,getRootElement:g});return tLe({respectReducedMotion:(e==null?void 0:e.respectReducedMotion)||!1,getRootElement:g}),s(WF.Provider,{value:{colorScheme:S,setColorScheme:m,clearColorScheme:p,getRootElement:g,classNamesPrefix:l,getStyleNonce:n,cssVariablesResolver:y,cssVariablesSelector:c,withStaticClasses:a,stylesTransform:v},children:f(YF,{theme:e,children:[o&&s(qF,{cssVariablesSelector:c,deduplicateCssVariables:i}),r&&s(YTe,{}),t]})})}ZF.displayName="@mantine/core/MantineProvider";const nLe={always:"mantine-focus-always",auto:"mantine-focus-auto",never:"mantine-focus-never"};function aLe({theme:e,options:t,unstyled:n}){return li((t==null?void 0:t.focusable)&&!n&&(e.focusClassName||nLe[e.focusRing]),(t==null?void 0:t.active)&&!n&&e.activeClassName)}function rLe({selector:e,stylesCtx:t,options:n,props:a,theme:r}){return TS({theme:r,classNames:n==null?void 0:n.classNames,props:(n==null?void 0:n.props)||a,stylesCtx:t})[e]}function eL({selector:e,stylesCtx:t,theme:n,classNames:a,props:r}){return TS({theme:n,classNames:a,props:r,stylesCtx:t})[e]}function sLe({rootSelector:e,selector:t,className:n}){return e===t?n:void 0}function iLe({selector:e,classes:t,unstyled:n}){return n?void 0:t[e]}function oLe({themeName:e,classNamesPrefix:t,selector:n,withStaticClass:a}){return a===!1?[]:e.map(r=>`${t}-${r}-${n}`)}function lLe({themeName:e,theme:t,selector:n,props:a,stylesCtx:r}){return e.map(i=>{var o,c;return(c=TS({theme:t,classNames:(o=t.components[i])==null?void 0:o.classNames,props:a,stylesCtx:r}))==null?void 0:c[n]})}function cLe({options:e,classes:t,selector:n,unstyled:a}){return(e==null?void 0:e.variant)&&!a?t[`${n}--${e.variant}`]:void 0}function dLe({theme:e,options:t,themeName:n,selector:a,classNamesPrefix:r,classNames:i,classes:o,unstyled:c,className:l,rootSelector:d,props:u,stylesCtx:g,withStaticClasses:y,headless:w,transformedStyles:v}){return li(aLe({theme:e,options