From c6284f52f27645cf81fd0cc936ce340c16e13dfa Mon Sep 17 00:00:00 2001 From: omkieit Date: Tue, 12 Nov 2024 18:25:53 +0530 Subject: [PATCH] done --- ef-api/models/property.js | 12 + ef-ui/dist/assets/index-NQYOhmIv.js | 89 --- ef-ui/dist/assets/index-wGi2QxgW.js | 89 +++ ef-ui/dist/index.html | 2 +- .../vendor/fontawesome-free/package-lock.json | 24 + .../dist/vendor/fontawesome-free/package.json | 6 +- .../vendor/fontawesome-free/package-lock.json | 24 + .../vendor/fontawesome-free/package.json | 6 +- ef-ui/src/components/Addproperty.jsx | 168 +++++- ef-ui/src/components/Dashboard.jsx | 2 +- ef-ui/src/components/EditProperty.jsx | 191 +++++- ef-ui/src/components/ProfileView.jsx | 3 +- ef-ui/src/components/admin/Dashboard.jsx | 564 +++++++++--------- ef-ui/src/components/admin/UserProperties.jsx | 4 +- 14 files changed, 783 insertions(+), 401 deletions(-) delete mode 100644 ef-ui/dist/assets/index-NQYOhmIv.js create mode 100644 ef-ui/dist/assets/index-wGi2QxgW.js create mode 100644 ef-ui/dist/vendor/fontawesome-free/package-lock.json create mode 100644 ef-ui/public/vendor/fontawesome-free/package-lock.json diff --git a/ef-api/models/property.js b/ef-api/models/property.js index 9d8eea5..0f04422 100644 --- a/ef-api/models/property.js +++ b/ef-api/models/property.js @@ -318,6 +318,18 @@ const propertySchema = mongoose.Schema({ }, }, ], + + IAB:[ + { + title: { + type: String, + }, + URL: { + type: String, + }, + }, + ], + }); const PropertyModal = mongoose.model("property", propertySchema); diff --git a/ef-ui/dist/assets/index-NQYOhmIv.js b/ef-ui/dist/assets/index-NQYOhmIv.js deleted file mode 100644 index c69902f..0000000 --- a/ef-ui/dist/assets/index-NQYOhmIv.js +++ /dev/null @@ -1,89 +0,0 @@ -var Lg=Object.defineProperty;var Mg=(e,t,n)=>t in e?Lg(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var vl=(e,t,n)=>Mg(e,typeof t!="symbol"?t+"":t,n);function Bg(e,t){for(var n=0;ns[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))s(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const a of o.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&s(a)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function s(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();var zg=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function wi(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ap={exports:{}},Ca={},Ip={exports:{}},ue={};/** - * @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 Si=Symbol.for("react.element"),$g=Symbol.for("react.portal"),Wg=Symbol.for("react.fragment"),Ug=Symbol.for("react.strict_mode"),qg=Symbol.for("react.profiler"),Vg=Symbol.for("react.provider"),Hg=Symbol.for("react.context"),Kg=Symbol.for("react.forward_ref"),Yg=Symbol.for("react.suspense"),Gg=Symbol.for("react.memo"),Qg=Symbol.for("react.lazy"),Au=Symbol.iterator;function Xg(e){return e===null||typeof e!="object"?null:(e=Au&&e[Au]||e["@@iterator"],typeof e=="function"?e:null)}var Fp={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Dp=Object.assign,Lp={};function us(e,t,n){this.props=e,this.context=t,this.refs=Lp,this.updater=n||Fp}us.prototype.isReactComponent={};us.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")};us.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Mp(){}Mp.prototype=us.prototype;function Nd(e,t,n){this.props=e,this.context=t,this.refs=Lp,this.updater=n||Fp}var Cd=Nd.prototype=new Mp;Cd.constructor=Nd;Dp(Cd,us.prototype);Cd.isPureReactComponent=!0;var Iu=Array.isArray,Bp=Object.prototype.hasOwnProperty,bd={current:null},zp={key:!0,ref:!0,__self:!0,__source:!0};function $p(e,t,n){var s,i={},o=null,a=null;if(t!=null)for(s in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(o=""+t.key),t)Bp.call(t,s)&&!zp.hasOwnProperty(s)&&(i[s]=t[s]);var l=arguments.length-2;if(l===1)i.children=n;else if(1>>1,W=R[L];if(0>>1;Li(ee,B))rei(ne,ee)?(R[L]=ne,R[re]=B,L=re):(R[L]=ee,R[Y]=B,L=Y);else if(rei(ne,B))R[L]=ne,R[re]=B,L=re;else break e}}return A}function i(R,A){var B=R.sortIndex-A.sortIndex;return B!==0?B:R.id-A.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var a=Date,l=a.now();e.unstable_now=function(){return a.now()-l}}var d=[],c=[],u=1,f=null,g=3,b=!1,x=!1,N=!1,C=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,v=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function h(R){for(var A=n(c);A!==null;){if(A.callback===null)s(c);else if(A.startTime<=R)s(c),A.sortIndex=A.expirationTime,t(d,A);else break;A=n(c)}}function y(R){if(N=!1,h(R),!x)if(n(d)!==null)x=!0,U(k);else{var A=n(c);A!==null&&G(y,A.startTime-R)}}function k(R,A){x=!1,N&&(N=!1,m(_),_=-1),b=!0;var B=g;try{for(h(A),f=n(d);f!==null&&(!(f.expirationTime>A)||R&&!H());){var L=f.callback;if(typeof L=="function"){f.callback=null,g=f.priorityLevel;var W=L(f.expirationTime<=A);A=e.unstable_now(),typeof W=="function"?f.callback=W:f===n(d)&&s(d),h(A)}else s(d);f=n(d)}if(f!==null)var K=!0;else{var Y=n(c);Y!==null&&G(y,Y.startTime-A),K=!1}return K}finally{f=null,g=B,b=!1}}var O=!1,T=null,_=-1,D=5,z=-1;function H(){return!(e.unstable_now()-zR||125L?(R.sortIndex=B,t(c,R),n(d)===null&&R===n(c)&&(N?(m(_),_=-1):N=!0,G(y,B-L))):(R.sortIndex=W,t(d,R),x||b||(x=!0,U(k))),R},e.unstable_shouldYield=H,e.unstable_wrapCallback=function(R){var A=g;return function(){var B=g;g=A;try{return R.apply(this,arguments)}finally{g=B}}}})(Hp);Vp.exports=Hp;var lx=Vp.exports;/** - * @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 cx=w,gt=lx;function V(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),oc=Object.prototype.hasOwnProperty,dx=/^[: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]*$/,Du={},Lu={};function ux(e){return oc.call(Lu,e)?!0:oc.call(Du,e)?!1:dx.test(e)?Lu[e]=!0:(Du[e]=!0,!1)}function fx(e,t,n,s){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return s?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function px(e,t,n,s){if(t===null||typeof t>"u"||fx(e,t,n,s))return!0;if(s)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 Ze(e,t,n,s,i,o,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=s,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var We={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){We[e]=new Ze(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];We[t]=new Ze(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){We[e]=new Ze(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){We[e]=new Ze(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){We[e]=new Ze(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){We[e]=new Ze(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){We[e]=new Ze(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){We[e]=new Ze(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){We[e]=new Ze(e,5,!1,e.toLowerCase(),null,!1,!1)});var Sd=/[\-:]([a-z])/g;function kd(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 v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Sd,kd);We[t]=new Ze(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Sd,kd);We[t]=new Ze(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Sd,kd);We[t]=new Ze(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){We[e]=new Ze(e,1,!1,e.toLowerCase(),null,!1,!1)});We.xlinkHref=new Ze("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){We[e]=new Ze(e,1,!1,e.toLowerCase(),null,!0,!0)});function Ed(e,t,n,s){var i=We.hasOwnProperty(t)?We[t]:null;(i!==null?i.type!==0:s||!(2l||i[a]!==o[l]){var d=` -`+i[a].replace(" at new "," at ");return e.displayName&&d.includes("")&&(d=d.replace("",e.displayName)),d}while(1<=a&&0<=l);break}}}finally{yl=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?As(e):""}function mx(e){switch(e.tag){case 5:return As(e.type);case 16:return As("Lazy");case 13:return As("Suspense");case 19:return As("SuspenseList");case 0:case 2:case 15:return e=jl(e.type,!1),e;case 11:return e=jl(e.type.render,!1),e;case 1:return e=jl(e.type,!0),e;default:return""}}function dc(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 Ar:return"Fragment";case Rr:return"Portal";case ac:return"Profiler";case Pd:return"StrictMode";case lc:return"Suspense";case cc:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Gp:return(e.displayName||"Context")+".Consumer";case Yp:return(e._context.displayName||"Context")+".Provider";case _d:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Od:return t=e.displayName||null,t!==null?t:dc(e.type)||"Memo";case Nn:t=e._payload,e=e._init;try{return dc(e(t))}catch{}}return null}function hx(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 dc(t);case 8:return t===Pd?"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 Wn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Xp(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function vx(e){var t=Xp(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),s=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(a){s=""+a,o.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return s},setValue:function(a){s=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Wi(e){e._valueTracker||(e._valueTracker=vx(e))}function Jp(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),s="";return e&&(s=Xp(e)?e.checked?"true":"false":e.value),e=s,e!==n?(t.setValue(e),!0):!1}function Lo(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function uc(e,t){var n=t.checked;return ke({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Bu(e,t){var n=t.defaultValue==null?"":t.defaultValue,s=t.checked!=null?t.checked:t.defaultChecked;n=Wn(t.value!=null?t.value:n),e._wrapperState={initialChecked:s,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Zp(e,t){t=t.checked,t!=null&&Ed(e,"checked",t,!1)}function fc(e,t){Zp(e,t);var n=Wn(t.value),s=t.type;if(n!=null)s==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(s==="submit"||s==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?pc(e,t.type,n):t.hasOwnProperty("defaultValue")&&pc(e,t.type,Wn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function zu(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var s=t.type;if(!(s!=="submit"&&s!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function pc(e,t,n){(t!=="number"||Lo(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Is=Array.isArray;function Qr(e,t,n,s){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=Ui.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function ti(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var $s={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},gx=["Webkit","ms","Moz","O"];Object.keys($s).forEach(function(e){gx.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),$s[t]=$s[e]})});function rm(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||$s.hasOwnProperty(e)&&$s[e]?(""+t).trim():t+"px"}function sm(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var s=n.indexOf("--")===0,i=rm(n,t[n],s);n==="float"&&(n="cssFloat"),s?e.setProperty(n,i):e[n]=i}}var xx=ke({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function vc(e,t){if(t){if(xx[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(V(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(V(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(V(61))}if(t.style!=null&&typeof t.style!="object")throw Error(V(62))}}function gc(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var xc=null;function Td(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var yc=null,Xr=null,Jr=null;function Uu(e){if(e=Pi(e)){if(typeof yc!="function")throw Error(V(280));var t=e.stateNode;t&&(t=Ea(t),yc(e.stateNode,e.type,t))}}function im(e){Xr?Jr?Jr.push(e):Jr=[e]:Xr=e}function om(){if(Xr){var e=Xr,t=Jr;if(Jr=Xr=null,Uu(e),t)for(e=0;e>>=0,e===0?32:31-(_x(e)/Ox|0)|0}var qi=64,Vi=4194304;function Fs(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function $o(e,t){var n=e.pendingLanes;if(n===0)return 0;var s=0,i=e.suspendedLanes,o=e.pingedLanes,a=n&268435455;if(a!==0){var l=a&~i;l!==0?s=Fs(l):(o&=a,o!==0&&(s=Fs(o)))}else a=n&~i,a!==0?s=Fs(a):o!==0&&(s=Fs(o));if(s===0)return 0;if(t!==0&&t!==s&&!(t&i)&&(i=s&-s,o=t&-t,i>=o||i===16&&(o&4194240)!==0))return t;if(s&4&&(s|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=s;0n;n++)t.push(e);return t}function ki(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-It(t),e[t]=n}function Ix(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var s=e.eventTimes;for(e=e.expirationTimes;0=Us),Ju=" ",Zu=!1;function km(e,t){switch(e){case"keyup":return ly.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Em(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ir=!1;function dy(e,t){switch(e){case"compositionend":return Em(t);case"keypress":return t.which!==32?null:(Zu=!0,Ju);case"textInput":return e=t.data,e===Ju&&Zu?null:e;default:return null}}function uy(e,t){if(Ir)return e==="compositionend"||!Bd&&km(e,t)?(e=wm(),po=Dd=_n=null,Ir=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=s}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=rf(n)}}function Tm(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Tm(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Rm(){for(var e=window,t=Lo();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Lo(e.document)}return t}function zd(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function jy(e){var t=Rm(),n=e.focusedElem,s=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Tm(n.ownerDocument.documentElement,n)){if(s!==null&&zd(n)){if(t=s.start,e=s.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(s.start,i);s=s.end===void 0?o:Math.min(s.end,i),!e.extend&&o>s&&(i=s,s=o,o=i),i=sf(n,o);var a=sf(n,s);i&&a&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>s?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Fr=null,Sc=null,Vs=null,kc=!1;function of(e,t,n){var s=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;kc||Fr==null||Fr!==Lo(s)||(s=Fr,"selectionStart"in s&&zd(s)?s={start:s.selectionStart,end:s.selectionEnd}:(s=(s.ownerDocument&&s.ownerDocument.defaultView||window).getSelection(),s={anchorNode:s.anchorNode,anchorOffset:s.anchorOffset,focusNode:s.focusNode,focusOffset:s.focusOffset}),Vs&&ai(Vs,s)||(Vs=s,s=qo(Sc,"onSelect"),0Mr||(e.current=Rc[Mr],Rc[Mr]=null,Mr--)}function xe(e,t){Mr++,Rc[Mr]=e.current,e.current=t}var Un={},He=Hn(Un),it=Hn(!1),gr=Un;function rs(e,t){var n=e.type.contextTypes;if(!n)return Un;var s=e.stateNode;if(s&&s.__reactInternalMemoizedUnmaskedChildContext===t)return s.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return s&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function ot(e){return e=e.childContextTypes,e!=null}function Ho(){Ne(it),Ne(He)}function pf(e,t,n){if(He.current!==Un)throw Error(V(168));xe(He,t),xe(it,n)}function $m(e,t,n){var s=e.stateNode;if(t=t.childContextTypes,typeof s.getChildContext!="function")return n;s=s.getChildContext();for(var i in s)if(!(i in t))throw Error(V(108,hx(e)||"Unknown",i));return ke({},n,s)}function Ko(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Un,gr=He.current,xe(He,e),xe(it,it.current),!0}function mf(e,t,n){var s=e.stateNode;if(!s)throw Error(V(169));n?(e=$m(e,t,gr),s.__reactInternalMemoizedMergedChildContext=e,Ne(it),Ne(He),xe(He,e)):Ne(it),xe(it,n)}var rn=null,Pa=!1,Il=!1;function Wm(e){rn===null?rn=[e]:rn.push(e)}function Ry(e){Pa=!0,Wm(e)}function Kn(){if(!Il&&rn!==null){Il=!0;var e=0,t=ve;try{var n=rn;for(ve=1;e>=a,i-=a,sn=1<<32-It(t)+i|n<_?(D=T,T=null):D=T.sibling;var z=g(m,T,h[_],y);if(z===null){T===null&&(T=D);break}e&&T&&z.alternate===null&&t(m,T),v=o(z,v,_),O===null?k=z:O.sibling=z,O=z,T=D}if(_===h.length)return n(m,T),Ce&&tr(m,_),k;if(T===null){for(;__?(D=T,T=null):D=T.sibling;var H=g(m,T,z.value,y);if(H===null){T===null&&(T=D);break}e&&T&&H.alternate===null&&t(m,T),v=o(H,v,_),O===null?k=H:O.sibling=H,O=H,T=D}if(z.done)return n(m,T),Ce&&tr(m,_),k;if(T===null){for(;!z.done;_++,z=h.next())z=f(m,z.value,y),z!==null&&(v=o(z,v,_),O===null?k=z:O.sibling=z,O=z);return Ce&&tr(m,_),k}for(T=s(m,T);!z.done;_++,z=h.next())z=b(T,m,_,z.value,y),z!==null&&(e&&z.alternate!==null&&T.delete(z.key===null?_:z.key),v=o(z,v,_),O===null?k=z:O.sibling=z,O=z);return e&&T.forEach(function(te){return t(m,te)}),Ce&&tr(m,_),k}function C(m,v,h,y){if(typeof h=="object"&&h!==null&&h.type===Ar&&h.key===null&&(h=h.props.children),typeof h=="object"&&h!==null){switch(h.$$typeof){case $i:e:{for(var k=h.key,O=v;O!==null;){if(O.key===k){if(k=h.type,k===Ar){if(O.tag===7){n(m,O.sibling),v=i(O,h.props.children),v.return=m,m=v;break e}}else if(O.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===Nn&&gf(k)===O.type){n(m,O.sibling),v=i(O,h.props),v.ref=_s(m,O,h),v.return=m,m=v;break e}n(m,O);break}else t(m,O);O=O.sibling}h.type===Ar?(v=fr(h.props.children,m.mode,y,h.key),v.return=m,m=v):(y=No(h.type,h.key,h.props,null,m.mode,y),y.ref=_s(m,v,h),y.return=m,m=y)}return a(m);case Rr:e:{for(O=h.key;v!==null;){if(v.key===O)if(v.tag===4&&v.stateNode.containerInfo===h.containerInfo&&v.stateNode.implementation===h.implementation){n(m,v.sibling),v=i(v,h.children||[]),v.return=m,m=v;break e}else{n(m,v);break}else t(m,v);v=v.sibling}v=Wl(h,m.mode,y),v.return=m,m=v}return a(m);case Nn:return O=h._init,C(m,v,O(h._payload),y)}if(Is(h))return x(m,v,h,y);if(ws(h))return N(m,v,h,y);Ji(m,h)}return typeof h=="string"&&h!==""||typeof h=="number"?(h=""+h,v!==null&&v.tag===6?(n(m,v.sibling),v=i(v,h),v.return=m,m=v):(n(m,v),v=$l(h,m.mode,y),v.return=m,m=v),a(m)):n(m,v)}return C}var is=Hm(!0),Km=Hm(!1),Qo=Hn(null),Xo=null,$r=null,qd=null;function Vd(){qd=$r=Xo=null}function Hd(e){var t=Qo.current;Ne(Qo),e._currentValue=t}function Fc(e,t,n){for(;e!==null;){var s=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,s!==null&&(s.childLanes|=t)):s!==null&&(s.childLanes&t)!==t&&(s.childLanes|=t),e===n)break;e=e.return}}function es(e,t){Xo=e,qd=$r=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(st=!0),e.firstContext=null)}function Et(e){var t=e._currentValue;if(qd!==e)if(e={context:e,memoizedValue:t,next:null},$r===null){if(Xo===null)throw Error(V(308));$r=e,Xo.dependencies={lanes:0,firstContext:e}}else $r=$r.next=e;return t}var lr=null;function Kd(e){lr===null?lr=[e]:lr.push(e)}function Ym(e,t,n,s){var i=t.interleaved;return i===null?(n.next=n,Kd(t)):(n.next=i.next,i.next=n),t.interleaved=n,dn(e,s)}function dn(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Cn=!1;function Yd(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Gm(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function an(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Ln(e,t,n){var s=e.updateQueue;if(s===null)return null;if(s=s.shared,pe&2){var i=s.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),s.pending=t,dn(e,n)}return i=s.interleaved,i===null?(t.next=t,Kd(s)):(t.next=i.next,i.next=t),s.interleaved=t,dn(e,n)}function ho(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var s=t.lanes;s&=e.pendingLanes,n|=s,t.lanes=n,Ad(e,n)}}function xf(e,t){var n=e.updateQueue,s=e.alternate;if(s!==null&&(s=s.updateQueue,n===s)){var i=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?i=o=a:o=o.next=a,n=n.next}while(n!==null);o===null?i=o=t:o=o.next=t}else i=o=t;n={baseState:s.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:s.shared,effects:s.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Jo(e,t,n,s){var i=e.updateQueue;Cn=!1;var o=i.firstBaseUpdate,a=i.lastBaseUpdate,l=i.shared.pending;if(l!==null){i.shared.pending=null;var d=l,c=d.next;d.next=null,a===null?o=c:a.next=c,a=d;var u=e.alternate;u!==null&&(u=u.updateQueue,l=u.lastBaseUpdate,l!==a&&(l===null?u.firstBaseUpdate=c:l.next=c,u.lastBaseUpdate=d))}if(o!==null){var f=i.baseState;a=0,u=c=d=null,l=o;do{var g=l.lane,b=l.eventTime;if((s&g)===g){u!==null&&(u=u.next={eventTime:b,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var x=e,N=l;switch(g=t,b=n,N.tag){case 1:if(x=N.payload,typeof x=="function"){f=x.call(b,f,g);break e}f=x;break e;case 3:x.flags=x.flags&-65537|128;case 0:if(x=N.payload,g=typeof x=="function"?x.call(b,f,g):x,g==null)break e;f=ke({},f,g);break e;case 2:Cn=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,g=i.effects,g===null?i.effects=[l]:g.push(l))}else b={eventTime:b,lane:g,tag:l.tag,payload:l.payload,callback:l.callback,next:null},u===null?(c=u=b,d=f):u=u.next=b,a|=g;if(l=l.next,l===null){if(l=i.shared.pending,l===null)break;g=l,l=g.next,g.next=null,i.lastBaseUpdate=g,i.shared.pending=null}}while(!0);if(u===null&&(d=f),i.baseState=d,i.firstBaseUpdate=c,i.lastBaseUpdate=u,t=i.shared.interleaved,t!==null){i=t;do a|=i.lane,i=i.next;while(i!==t)}else o===null&&(i.shared.lanes=0);jr|=a,e.lanes=a,e.memoizedState=f}}function yf(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var s=Dl.transition;Dl.transition={};try{e(!1),t()}finally{ve=n,Dl.transition=s}}function fh(){return Pt().memoizedState}function Dy(e,t,n){var s=Bn(e);if(n={lane:s,action:n,hasEagerState:!1,eagerState:null,next:null},ph(e))mh(t,n);else if(n=Ym(e,t,n,s),n!==null){var i=Xe();Ft(n,e,s,i),hh(n,t,s)}}function Ly(e,t,n){var s=Bn(e),i={lane:s,action:n,hasEagerState:!1,eagerState:null,next:null};if(ph(e))mh(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var a=t.lastRenderedState,l=o(a,n);if(i.hasEagerState=!0,i.eagerState=l,Mt(l,a)){var d=t.interleaved;d===null?(i.next=i,Kd(t)):(i.next=d.next,d.next=i),t.interleaved=i;return}}catch{}finally{}n=Ym(e,t,i,s),n!==null&&(i=Xe(),Ft(n,e,s,i),hh(n,t,s))}}function ph(e){var t=e.alternate;return e===Se||t!==null&&t===Se}function mh(e,t){Hs=ea=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function hh(e,t,n){if(n&4194240){var s=t.lanes;s&=e.pendingLanes,n|=s,t.lanes=n,Ad(e,n)}}var ta={readContext:Et,useCallback:Ue,useContext:Ue,useEffect:Ue,useImperativeHandle:Ue,useInsertionEffect:Ue,useLayoutEffect:Ue,useMemo:Ue,useReducer:Ue,useRef:Ue,useState:Ue,useDebugValue:Ue,useDeferredValue:Ue,useTransition:Ue,useMutableSource:Ue,useSyncExternalStore:Ue,useId:Ue,unstable_isNewReconciler:!1},My={readContext:Et,useCallback:function(e,t){return Ht().memoizedState=[e,t===void 0?null:t],e},useContext:Et,useEffect:Nf,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,go(4194308,4,ah.bind(null,t,e),n)},useLayoutEffect:function(e,t){return go(4194308,4,e,t)},useInsertionEffect:function(e,t){return go(4,2,e,t)},useMemo:function(e,t){var n=Ht();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var s=Ht();return t=n!==void 0?n(t):t,s.memoizedState=s.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},s.queue=e,e=e.dispatch=Dy.bind(null,Se,e),[s.memoizedState,e]},useRef:function(e){var t=Ht();return e={current:e},t.memoizedState=e},useState:jf,useDebugValue:nu,useDeferredValue:function(e){return Ht().memoizedState=e},useTransition:function(){var e=jf(!1),t=e[0];return e=Fy.bind(null,e[1]),Ht().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var s=Se,i=Ht();if(Ce){if(n===void 0)throw Error(V(407));n=n()}else{if(n=t(),De===null)throw Error(V(349));yr&30||Zm(s,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,Nf(th.bind(null,s,o,e),[e]),s.flags|=2048,hi(9,eh.bind(null,s,o,n,t),void 0,null),n},useId:function(){var e=Ht(),t=De.identifierPrefix;if(Ce){var n=on,s=sn;n=(s&~(1<<32-It(s)-1)).toString(32)+n,t=":"+t+"R"+n,n=pi++,0<\/script>",e=e.removeChild(e.firstChild)):typeof s.is=="string"?e=a.createElement(n,{is:s.is}):(e=a.createElement(n),n==="select"&&(a=e,s.multiple?a.multiple=!0:s.size&&(a.size=s.size))):e=a.createElementNS(e,n),e[Yt]=t,e[di]=s,Sh(e,t,!1,!1),t.stateNode=e;e:{switch(a=gc(n,s),n){case"dialog":je("cancel",e),je("close",e),i=s;break;case"iframe":case"object":case"embed":je("load",e),i=s;break;case"video":case"audio":for(i=0;ils&&(t.flags|=128,s=!0,Os(o,!1),t.lanes=4194304)}else{if(!s)if(e=Zo(a),e!==null){if(t.flags|=128,s=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Os(o,!0),o.tail===null&&o.tailMode==="hidden"&&!a.alternate&&!Ce)return qe(t),null}else 2*Oe()-o.renderingStartTime>ls&&n!==1073741824&&(t.flags|=128,s=!0,Os(o,!1),t.lanes=4194304);o.isBackwards?(a.sibling=t.child,t.child=a):(n=o.last,n!==null?n.sibling=a:t.child=a,o.last=a)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=Oe(),t.sibling=null,n=we.current,xe(we,s?n&1|2:n&1),t):(qe(t),null);case 22:case 23:return lu(),s=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==s&&(t.flags|=8192),s&&t.mode&1?dt&1073741824&&(qe(t),t.subtreeFlags&6&&(t.flags|=8192)):qe(t),null;case 24:return null;case 25:return null}throw Error(V(156,t.tag))}function Hy(e,t){switch(Wd(t),t.tag){case 1:return ot(t.type)&&Ho(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return os(),Ne(it),Ne(He),Xd(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Qd(t),null;case 13:if(Ne(we),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(V(340));ss()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ne(we),null;case 4:return os(),null;case 10:return Hd(t.type._context),null;case 22:case 23:return lu(),null;case 24:return null;default:return null}}var eo=!1,Ve=!1,Ky=typeof WeakSet=="function"?WeakSet:Set,J=null;function Wr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(s){Ee(e,t,s)}else n.current=null}function qc(e,t,n){try{n()}catch(s){Ee(e,t,s)}}var Rf=!1;function Yy(e,t){if(Ec=Wo,e=Rm(),zd(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var s=n.getSelection&&n.getSelection();if(s&&s.rangeCount!==0){n=s.anchorNode;var i=s.anchorOffset,o=s.focusNode;s=s.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var a=0,l=-1,d=-1,c=0,u=0,f=e,g=null;t:for(;;){for(var b;f!==n||i!==0&&f.nodeType!==3||(l=a+i),f!==o||s!==0&&f.nodeType!==3||(d=a+s),f.nodeType===3&&(a+=f.nodeValue.length),(b=f.firstChild)!==null;)g=f,f=b;for(;;){if(f===e)break t;if(g===n&&++c===i&&(l=a),g===o&&++u===s&&(d=a),(b=f.nextSibling)!==null)break;f=g,g=f.parentNode}f=b}n=l===-1||d===-1?null:{start:l,end:d}}else n=null}n=n||{start:0,end:0}}else n=null;for(Pc={focusedElem:e,selectionRange:n},Wo=!1,J=t;J!==null;)if(t=J,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,J=e;else for(;J!==null;){t=J;try{var x=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(x!==null){var N=x.memoizedProps,C=x.memoizedState,m=t.stateNode,v=m.getSnapshotBeforeUpdate(t.elementType===t.type?N:Ot(t.type,N),C);m.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var h=t.stateNode.containerInfo;h.nodeType===1?h.textContent="":h.nodeType===9&&h.documentElement&&h.removeChild(h.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(V(163))}}catch(y){Ee(t,t.return,y)}if(e=t.sibling,e!==null){e.return=t.return,J=e;break}J=t.return}return x=Rf,Rf=!1,x}function Ks(e,t,n){var s=t.updateQueue;if(s=s!==null?s.lastEffect:null,s!==null){var i=s=s.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&qc(t,n,o)}i=i.next}while(i!==s)}}function Ta(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var s=n.create;n.destroy=s()}n=n.next}while(n!==t)}}function Vc(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Ph(e){var t=e.alternate;t!==null&&(e.alternate=null,Ph(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Yt],delete t[di],delete t[Tc],delete t[Oy],delete t[Ty])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function _h(e){return e.tag===5||e.tag===3||e.tag===4}function Af(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||_h(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Hc(e,t,n){var s=e.tag;if(s===5||s===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Vo));else if(s!==4&&(e=e.child,e!==null))for(Hc(e,t,n),e=e.sibling;e!==null;)Hc(e,t,n),e=e.sibling}function Kc(e,t,n){var s=e.tag;if(s===5||s===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(s!==4&&(e=e.child,e!==null))for(Kc(e,t,n),e=e.sibling;e!==null;)Kc(e,t,n),e=e.sibling}var ze=null,Tt=!1;function yn(e,t,n){for(n=n.child;n!==null;)Oh(e,t,n),n=n.sibling}function Oh(e,t,n){if(Qt&&typeof Qt.onCommitFiberUnmount=="function")try{Qt.onCommitFiberUnmount(ba,n)}catch{}switch(n.tag){case 5:Ve||Wr(n,t);case 6:var s=ze,i=Tt;ze=null,yn(e,t,n),ze=s,Tt=i,ze!==null&&(Tt?(e=ze,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ze.removeChild(n.stateNode));break;case 18:ze!==null&&(Tt?(e=ze,n=n.stateNode,e.nodeType===8?Al(e.parentNode,n):e.nodeType===1&&Al(e,n),ii(e)):Al(ze,n.stateNode));break;case 4:s=ze,i=Tt,ze=n.stateNode.containerInfo,Tt=!0,yn(e,t,n),ze=s,Tt=i;break;case 0:case 11:case 14:case 15:if(!Ve&&(s=n.updateQueue,s!==null&&(s=s.lastEffect,s!==null))){i=s=s.next;do{var o=i,a=o.destroy;o=o.tag,a!==void 0&&(o&2||o&4)&&qc(n,t,a),i=i.next}while(i!==s)}yn(e,t,n);break;case 1:if(!Ve&&(Wr(n,t),s=n.stateNode,typeof s.componentWillUnmount=="function"))try{s.props=n.memoizedProps,s.state=n.memoizedState,s.componentWillUnmount()}catch(l){Ee(n,t,l)}yn(e,t,n);break;case 21:yn(e,t,n);break;case 22:n.mode&1?(Ve=(s=Ve)||n.memoizedState!==null,yn(e,t,n),Ve=s):yn(e,t,n);break;default:yn(e,t,n)}}function If(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Ky),t.forEach(function(s){var i=rj.bind(null,e,s);n.has(s)||(n.add(s),s.then(i,i))})}}function _t(e,t){var n=t.deletions;if(n!==null)for(var s=0;si&&(i=a),s&=~o}if(s=i,s=Oe()-s,s=(120>s?120:480>s?480:1080>s?1080:1920>s?1920:3e3>s?3e3:4320>s?4320:1960*Qy(s/1960))-s,10e?16:e,On===null)var s=!1;else{if(e=On,On=null,sa=0,pe&6)throw Error(V(331));var i=pe;for(pe|=4,J=e.current;J!==null;){var o=J,a=o.child;if(J.flags&16){var l=o.deletions;if(l!==null){for(var d=0;dOe()-ou?ur(e,0):iu|=n),at(e,t)}function Mh(e,t){t===0&&(e.mode&1?(t=Vi,Vi<<=1,!(Vi&130023424)&&(Vi=4194304)):t=1);var n=Xe();e=dn(e,t),e!==null&&(ki(e,t,n),at(e,n))}function nj(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Mh(e,n)}function rj(e,t){var n=0;switch(e.tag){case 13:var s=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:s=e.stateNode;break;default:throw Error(V(314))}s!==null&&s.delete(t),Mh(e,n)}var Bh;Bh=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||it.current)st=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return st=!1,qy(e,t,n);st=!!(e.flags&131072)}else st=!1,Ce&&t.flags&1048576&&Um(t,Go,t.index);switch(t.lanes=0,t.tag){case 2:var s=t.type;xo(e,t),e=t.pendingProps;var i=rs(t,He.current);es(t,n),i=Zd(null,t,s,e,i,n);var o=eu();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,ot(s)?(o=!0,Ko(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Yd(t),i.updater=Oa,t.stateNode=i,i._reactInternals=t,Lc(t,s,e,n),t=zc(null,t,s,!0,o,n)):(t.tag=0,Ce&&o&&$d(t),Ge(null,t,i,n),t=t.child),t;case 16:s=t.elementType;e:{switch(xo(e,t),e=t.pendingProps,i=s._init,s=i(s._payload),t.type=s,i=t.tag=ij(s),e=Ot(s,e),i){case 0:t=Bc(null,t,s,e,n);break e;case 1:t=_f(null,t,s,e,n);break e;case 11:t=Ef(null,t,s,e,n);break e;case 14:t=Pf(null,t,s,Ot(s.type,e),n);break e}throw Error(V(306,s,""))}return t;case 0:return s=t.type,i=t.pendingProps,i=t.elementType===s?i:Ot(s,i),Bc(e,t,s,i,n);case 1:return s=t.type,i=t.pendingProps,i=t.elementType===s?i:Ot(s,i),_f(e,t,s,i,n);case 3:e:{if(Ch(t),e===null)throw Error(V(387));s=t.pendingProps,o=t.memoizedState,i=o.element,Gm(e,t),Jo(t,s,null,n);var a=t.memoizedState;if(s=a.element,o.isDehydrated)if(o={element:s,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=as(Error(V(423)),t),t=Of(e,t,s,n,i);break e}else if(s!==i){i=as(Error(V(424)),t),t=Of(e,t,s,n,i);break e}else for(ut=Dn(t.stateNode.containerInfo.firstChild),ht=t,Ce=!0,Rt=null,n=Km(t,null,s,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(ss(),s===i){t=un(e,t,n);break e}Ge(e,t,s,n)}t=t.child}return t;case 5:return Qm(t),e===null&&Ic(t),s=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,a=i.children,_c(s,i)?a=null:o!==null&&_c(s,o)&&(t.flags|=32),Nh(e,t),Ge(e,t,a,n),t.child;case 6:return e===null&&Ic(t),null;case 13:return bh(e,t,n);case 4:return Gd(t,t.stateNode.containerInfo),s=t.pendingProps,e===null?t.child=is(t,null,s,n):Ge(e,t,s,n),t.child;case 11:return s=t.type,i=t.pendingProps,i=t.elementType===s?i:Ot(s,i),Ef(e,t,s,i,n);case 7:return Ge(e,t,t.pendingProps,n),t.child;case 8:return Ge(e,t,t.pendingProps.children,n),t.child;case 12:return Ge(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(s=t.type._context,i=t.pendingProps,o=t.memoizedProps,a=i.value,xe(Qo,s._currentValue),s._currentValue=a,o!==null)if(Mt(o.value,a)){if(o.children===i.children&&!it.current){t=un(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var l=o.dependencies;if(l!==null){a=o.child;for(var d=l.firstContext;d!==null;){if(d.context===s){if(o.tag===1){d=an(-1,n&-n),d.tag=2;var c=o.updateQueue;if(c!==null){c=c.shared;var u=c.pending;u===null?d.next=d:(d.next=u.next,u.next=d),c.pending=d}}o.lanes|=n,d=o.alternate,d!==null&&(d.lanes|=n),Fc(o.return,n,t),l.lanes|=n;break}d=d.next}}else if(o.tag===10)a=o.type===t.type?null:o.child;else if(o.tag===18){if(a=o.return,a===null)throw Error(V(341));a.lanes|=n,l=a.alternate,l!==null&&(l.lanes|=n),Fc(a,n,t),a=o.sibling}else a=o.child;if(a!==null)a.return=o;else for(a=o;a!==null;){if(a===t){a=null;break}if(o=a.sibling,o!==null){o.return=a.return,a=o;break}a=a.return}o=a}Ge(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,s=t.pendingProps.children,es(t,n),i=Et(i),s=s(i),t.flags|=1,Ge(e,t,s,n),t.child;case 14:return s=t.type,i=Ot(s,t.pendingProps),i=Ot(s.type,i),Pf(e,t,s,i,n);case 15:return yh(e,t,t.type,t.pendingProps,n);case 17:return s=t.type,i=t.pendingProps,i=t.elementType===s?i:Ot(s,i),xo(e,t),t.tag=1,ot(s)?(e=!0,Ko(t)):e=!1,es(t,n),vh(t,s,i),Lc(t,s,i,n),zc(null,t,s,!0,e,n);case 19:return wh(e,t,n);case 22:return jh(e,t,n)}throw Error(V(156,t.tag))};function zh(e,t){return pm(e,t)}function sj(e,t,n,s){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=s,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function St(e,t,n,s){return new sj(e,t,n,s)}function du(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ij(e){if(typeof e=="function")return du(e)?1:0;if(e!=null){if(e=e.$$typeof,e===_d)return 11;if(e===Od)return 14}return 2}function zn(e,t){var n=e.alternate;return n===null?(n=St(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function No(e,t,n,s,i,o){var a=2;if(s=e,typeof e=="function")du(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case Ar:return fr(n.children,i,o,t);case Pd:a=8,i|=8;break;case ac:return e=St(12,n,t,i|2),e.elementType=ac,e.lanes=o,e;case lc:return e=St(13,n,t,i),e.elementType=lc,e.lanes=o,e;case cc:return e=St(19,n,t,i),e.elementType=cc,e.lanes=o,e;case Qp:return Aa(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Yp:a=10;break e;case Gp:a=9;break e;case _d:a=11;break e;case Od:a=14;break e;case Nn:a=16,s=null;break e}throw Error(V(130,e==null?e:typeof e,""))}return t=St(a,n,t,i),t.elementType=e,t.type=s,t.lanes=o,t}function fr(e,t,n,s){return e=St(7,e,s,t),e.lanes=n,e}function Aa(e,t,n,s){return e=St(22,e,s,t),e.elementType=Qp,e.lanes=n,e.stateNode={isHidden:!1},e}function $l(e,t,n){return e=St(6,e,null,t),e.lanes=n,e}function Wl(e,t,n){return t=St(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function oj(e,t,n,s,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Cl(0),this.expirationTimes=Cl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Cl(0),this.identifierPrefix=s,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function uu(e,t,n,s,i,o,a,l,d){return e=new oj(e,t,n,l,d),t===1?(t=1,o===!0&&(t|=8)):t=0,o=St(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:s,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Yd(o),e}function aj(e,t,n){var s=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(qh)}catch(e){console.error(e)}}qh(),qp.exports=jt;var Vh=qp.exports;const qr=wi(Vh);var Hh,Wf=Vh;Hh=Wf.createRoot,Wf.hydrateRoot;var Kh={exports:{}},Yh={};/** - * @license React - * use-sync-external-store-with-selector.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 Oi=w;function fj(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var pj=typeof Object.is=="function"?Object.is:fj,mj=Oi.useSyncExternalStore,hj=Oi.useRef,vj=Oi.useEffect,gj=Oi.useMemo,xj=Oi.useDebugValue;Yh.useSyncExternalStoreWithSelector=function(e,t,n,s,i){var o=hj(null);if(o.current===null){var a={hasValue:!1,value:null};o.current=a}else a=o.current;o=gj(function(){function d(b){if(!c){if(c=!0,u=b,b=s(b),i!==void 0&&a.hasValue){var x=a.value;if(i(x,b))return f=x}return f=b}if(x=f,pj(u,b))return x;var N=s(b);return i!==void 0&&i(x,N)?x:(u=b,f=N)}var c=!1,u,f,g=n===void 0?null:n;return[function(){return d(t())},g===null?void 0:function(){return d(g())}]},[t,n,s,i]);var l=mj(e,o[0],o[1]);return vj(function(){a.hasValue=!0,a.value=l},[l]),xj(l),l};Kh.exports=Yh;var yj=Kh.exports,ft="default"in ic?I:ic,Uf=Symbol.for("react-redux-context"),qf=typeof globalThis<"u"?globalThis:{};function jj(){if(!ft.createContext)return{};const e=qf[Uf]??(qf[Uf]=new Map);let t=e.get(ft.createContext);return t||(t=ft.createContext(null),e.set(ft.createContext,t)),t}var qn=jj(),Nj=()=>{throw new Error("uSES not initialized!")};function hu(e=qn){return function(){return ft.useContext(e)}}var Gh=hu(),Qh=Nj,Cj=e=>{Qh=e},bj=(e,t)=>e===t;function wj(e=qn){const t=e===qn?Gh:hu(e),n=(s,i={})=>{const{equalityFn:o=bj,devModeChecks:a={}}=typeof i=="function"?{equalityFn:i}:i,{store:l,subscription:d,getServerState:c,stabilityCheck:u,identityFunctionCheck:f}=t();ft.useRef(!0);const g=ft.useCallback({[s.name](x){return s(x)}}[s.name],[s,u,a.stabilityCheck]),b=Qh(d.addNestedSub,l.getState,c||l.getState,g,o);return ft.useDebugValue(b),b};return Object.assign(n,{withTypes:()=>n}),n}var _e=wj();function Sj(e){e()}function kj(){let e=null,t=null;return{clear(){e=null,t=null},notify(){Sj(()=>{let n=e;for(;n;)n.callback(),n=n.next})},get(){const n=[];let s=e;for(;s;)n.push(s),s=s.next;return n},subscribe(n){let s=!0;const i=t={callback:n,next:null,prev:t};return i.prev?i.prev.next=i:e=i,function(){!s||e===null||(s=!1,i.next?i.next.prev=i.prev:t=i.prev,i.prev?i.prev.next=i.next:e=i.next)}}}}var Vf={notify(){},get:()=>[]};function Ej(e,t){let n,s=Vf,i=0,o=!1;function a(N){u();const C=s.subscribe(N);let m=!1;return()=>{m||(m=!0,C(),f())}}function l(){s.notify()}function d(){x.onStateChange&&x.onStateChange()}function c(){return o}function u(){i++,n||(n=e.subscribe(d),s=kj())}function f(){i--,n&&i===0&&(n(),n=void 0,s.clear(),s=Vf)}function g(){o||(o=!0,u())}function b(){o&&(o=!1,f())}const x={addNestedSub:a,notifyNestedSubs:l,handleChangeWrapper:d,isSubscribed:c,trySubscribe:g,tryUnsubscribe:b,getListeners:()=>s};return x}var Pj=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",_j=typeof navigator<"u"&&navigator.product==="ReactNative",Oj=Pj||_j?ft.useLayoutEffect:ft.useEffect;function Tj({store:e,context:t,children:n,serverState:s,stabilityCheck:i="once",identityFunctionCheck:o="once"}){const a=ft.useMemo(()=>{const c=Ej(e);return{store:e,subscription:c,getServerState:s?()=>s:void 0,stabilityCheck:i,identityFunctionCheck:o}},[e,s,i,o]),l=ft.useMemo(()=>e.getState(),[e]);Oj(()=>{const{subscription:c}=a;return c.onStateChange=c.notifyNestedSubs,c.trySubscribe(),l!==e.getState()&&c.notifyNestedSubs(),()=>{c.tryUnsubscribe(),c.onStateChange=void 0}},[a,l]);const d=t||qn;return ft.createElement(d.Provider,{value:a},n)}var Rj=Tj;function Xh(e=qn){const t=e===qn?Gh:hu(e),n=()=>{const{store:s}=t();return s};return Object.assign(n,{withTypes:()=>n}),n}var Aj=Xh();function Ij(e=qn){const t=e===qn?Aj:Xh(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var Ke=Ij();Cj(yj.useSyncExternalStoreWithSelector);function Be(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var Fj=typeof Symbol=="function"&&Symbol.observable||"@@observable",Hf=Fj,Ul=()=>Math.random().toString(36).substring(7).split("").join("."),Dj={INIT:`@@redux/INIT${Ul()}`,REPLACE:`@@redux/REPLACE${Ul()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Ul()}`},aa=Dj;function vu(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function Jh(e,t,n){if(typeof e!="function")throw new Error(Be(2));if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(Be(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(Be(1));return n(Jh)(e,t)}let s=e,i=t,o=new Map,a=o,l=0,d=!1;function c(){a===o&&(a=new Map,o.forEach((C,m)=>{a.set(m,C)}))}function u(){if(d)throw new Error(Be(3));return i}function f(C){if(typeof C!="function")throw new Error(Be(4));if(d)throw new Error(Be(5));let m=!0;c();const v=l++;return a.set(v,C),function(){if(m){if(d)throw new Error(Be(6));m=!1,c(),a.delete(v),o=null}}}function g(C){if(!vu(C))throw new Error(Be(7));if(typeof C.type>"u")throw new Error(Be(8));if(typeof C.type!="string")throw new Error(Be(17));if(d)throw new Error(Be(9));try{d=!0,i=s(i,C)}finally{d=!1}return(o=a).forEach(v=>{v()}),C}function b(C){if(typeof C!="function")throw new Error(Be(10));s=C,g({type:aa.REPLACE})}function x(){const C=f;return{subscribe(m){if(typeof m!="object"||m===null)throw new Error(Be(11));function v(){const y=m;y.next&&y.next(u())}return v(),{unsubscribe:C(v)}},[Hf](){return this}}}return g({type:aa.INIT}),{dispatch:g,subscribe:f,getState:u,replaceReducer:b,[Hf]:x}}function Lj(e){Object.keys(e).forEach(t=>{const n=e[t];if(typeof n(void 0,{type:aa.INIT})>"u")throw new Error(Be(12));if(typeof n(void 0,{type:aa.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Be(13))})}function Mj(e){const t=Object.keys(e),n={};for(let o=0;o"u")throw l&&l.type,new Error(Be(14));c[f]=x,d=d||x!==b}return d=d||s.length!==Object.keys(a).length,d?c:a}}function la(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...s)=>t(n(...s)))}function Bj(...e){return t=>(n,s)=>{const i=t(n,s);let o=()=>{throw new Error(Be(15))};const a={getState:i.getState,dispatch:(d,...c)=>o(d,...c)},l=e.map(d=>d(a));return o=la(...l)(i.dispatch),{...i,dispatch:o}}}function zj(e){return vu(e)&&"type"in e&&typeof e.type=="string"}var Zh=Symbol.for("immer-nothing"),Kf=Symbol.for("immer-draftable"),xt=Symbol.for("immer-state");function At(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var cs=Object.getPrototypeOf;function Cr(e){return!!e&&!!e[xt]}function fn(e){var t;return e?ev(e)||Array.isArray(e)||!!e[Kf]||!!((t=e.constructor)!=null&&t[Kf])||Ba(e)||za(e):!1}var $j=Object.prototype.constructor.toString();function ev(e){if(!e||typeof e!="object")return!1;const t=cs(e);if(t===null)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object?!0:typeof n=="function"&&Function.toString.call(n)===$j}function ca(e,t){Ma(e)===0?Reflect.ownKeys(e).forEach(n=>{t(n,e[n],e)}):e.forEach((n,s)=>t(s,n,e))}function Ma(e){const t=e[xt];return t?t.type_:Array.isArray(e)?1:Ba(e)?2:za(e)?3:0}function Jc(e,t){return Ma(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function tv(e,t,n){const s=Ma(e);s===2?e.set(t,n):s===3?e.add(n):e[t]=n}function Wj(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function Ba(e){return e instanceof Map}function za(e){return e instanceof Set}function rr(e){return e.copy_||e.base_}function Zc(e,t){if(Ba(e))return new Map(e);if(za(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const n=ev(e);if(t===!0||t==="class_only"&&!n){const s=Object.getOwnPropertyDescriptors(e);delete s[xt];let i=Reflect.ownKeys(s);for(let o=0;o1&&(e.set=e.add=e.clear=e.delete=Uj),Object.freeze(e),t&&Object.entries(e).forEach(([n,s])=>gu(s,!0))),e}function Uj(){At(2)}function $a(e){return Object.isFrozen(e)}var qj={};function br(e){const t=qj[e];return t||At(0,e),t}var gi;function nv(){return gi}function Vj(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function Yf(e,t){t&&(br("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function ed(e){td(e),e.drafts_.forEach(Hj),e.drafts_=null}function td(e){e===gi&&(gi=e.parent_)}function Gf(e){return gi=Vj(gi,e)}function Hj(e){const t=e[xt];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function Qf(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[xt].modified_&&(ed(t),At(4)),fn(e)&&(e=da(t,e),t.parent_||ua(t,e)),t.patches_&&br("Patches").generateReplacementPatches_(n[xt].base_,e,t.patches_,t.inversePatches_)):e=da(t,n,[]),ed(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==Zh?e:void 0}function da(e,t,n){if($a(t))return t;const s=t[xt];if(!s)return ca(t,(i,o)=>Xf(e,s,t,i,o,n)),t;if(s.scope_!==e)return t;if(!s.modified_)return ua(e,s.base_,!0),s.base_;if(!s.finalized_){s.finalized_=!0,s.scope_.unfinalizedDrafts_--;const i=s.copy_;let o=i,a=!1;s.type_===3&&(o=new Set(i),i.clear(),a=!0),ca(o,(l,d)=>Xf(e,s,i,l,d,n,a)),ua(e,i,!1),n&&e.patches_&&br("Patches").generatePatches_(s,n,e.patches_,e.inversePatches_)}return s.copy_}function Xf(e,t,n,s,i,o,a){if(Cr(i)){const l=o&&t&&t.type_!==3&&!Jc(t.assigned_,s)?o.concat(s):void 0,d=da(e,i,l);if(tv(n,s,d),Cr(d))e.canAutoFreeze_=!1;else return}else a&&n.add(i);if(fn(i)&&!$a(i)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;da(e,i),(!t||!t.scope_.parent_)&&typeof s!="symbol"&&Object.prototype.propertyIsEnumerable.call(n,s)&&ua(e,i)}}function ua(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&gu(t,n)}function Kj(e,t){const n=Array.isArray(e),s={type_:n?1:0,scope_:t?t.scope_:nv(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=s,o=xu;n&&(i=[s],o=xi);const{revoke:a,proxy:l}=Proxy.revocable(i,o);return s.draft_=l,s.revoke_=a,l}var xu={get(e,t){if(t===xt)return e;const n=rr(e);if(!Jc(n,t))return Yj(e,n,t);const s=n[t];return e.finalized_||!fn(s)?s:s===ql(e.base_,t)?(Vl(e),e.copy_[t]=rd(s,e)):s},has(e,t){return t in rr(e)},ownKeys(e){return Reflect.ownKeys(rr(e))},set(e,t,n){const s=rv(rr(e),t);if(s!=null&&s.set)return s.set.call(e.draft_,n),!0;if(!e.modified_){const i=ql(rr(e),t),o=i==null?void 0:i[xt];if(o&&o.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(Wj(n,i)&&(n!==void 0||Jc(e.base_,t)))return!0;Vl(e),nd(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty(e,t){return ql(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,Vl(e),nd(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=rr(e),s=Reflect.getOwnPropertyDescriptor(n,t);return s&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:s.enumerable,value:n[t]}},defineProperty(){At(11)},getPrototypeOf(e){return cs(e.base_)},setPrototypeOf(){At(12)}},xi={};ca(xu,(e,t)=>{xi[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});xi.deleteProperty=function(e,t){return xi.set.call(this,e,t,void 0)};xi.set=function(e,t,n){return xu.set.call(this,e[0],t,n,e[0])};function ql(e,t){const n=e[xt];return(n?rr(n):e)[t]}function Yj(e,t,n){var i;const s=rv(t,n);return s?"value"in s?s.value:(i=s.get)==null?void 0:i.call(e.draft_):void 0}function rv(e,t){if(!(t in e))return;let n=cs(e);for(;n;){const s=Object.getOwnPropertyDescriptor(n,t);if(s)return s;n=cs(n)}}function nd(e){e.modified_||(e.modified_=!0,e.parent_&&nd(e.parent_))}function Vl(e){e.copy_||(e.copy_=Zc(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var Gj=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,n,s)=>{if(typeof t=="function"&&typeof n!="function"){const o=n;n=t;const a=this;return function(d=o,...c){return a.produce(d,u=>n.call(this,u,...c))}}typeof n!="function"&&At(6),s!==void 0&&typeof s!="function"&&At(7);let i;if(fn(t)){const o=Gf(this),a=rd(t,void 0);let l=!0;try{i=n(a),l=!1}finally{l?ed(o):td(o)}return Yf(o,s),Qf(i,o)}else if(!t||typeof t!="object"){if(i=n(t),i===void 0&&(i=t),i===Zh&&(i=void 0),this.autoFreeze_&&gu(i,!0),s){const o=[],a=[];br("Patches").generateReplacementPatches_(t,i,o,a),s(o,a)}return i}else At(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(a,...l)=>this.produceWithPatches(a,d=>t(d,...l));let s,i;return[this.produce(t,n,(a,l)=>{s=a,i=l}),s,i]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){fn(e)||At(8),Cr(e)&&(e=Qj(e));const t=Gf(this),n=rd(e,void 0);return n[xt].isManual_=!0,td(t),n}finishDraft(e,t){const n=e&&e[xt];(!n||!n.isManual_)&&At(9);const{scope_:s}=n;return Yf(s,t),Qf(void 0,s)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const i=t[n];if(i.path.length===0&&i.op==="replace"){e=i.value;break}}n>-1&&(t=t.slice(n+1));const s=br("Patches").applyPatches_;return Cr(e)?s(e,t):this.produce(e,i=>s(i,t))}};function rd(e,t){const n=Ba(e)?br("MapSet").proxyMap_(e,t):za(e)?br("MapSet").proxySet_(e,t):Kj(e,t);return(t?t.scope_:nv()).drafts_.push(n),n}function Qj(e){return Cr(e)||At(10,e),sv(e)}function sv(e){if(!fn(e)||$a(e))return e;const t=e[xt];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=Zc(e,t.scope_.immer_.useStrictShallowCopy_)}else n=Zc(e,!0);return ca(n,(s,i)=>{tv(n,s,sv(i))}),t&&(t.finalized_=!1),n}var yt=new Gj,iv=yt.produce;yt.produceWithPatches.bind(yt);yt.setAutoFreeze.bind(yt);yt.setUseStrictShallowCopy.bind(yt);yt.applyPatches.bind(yt);yt.createDraft.bind(yt);yt.finishDraft.bind(yt);function ov(e){return({dispatch:n,getState:s})=>i=>o=>typeof o=="function"?o(n,s,e):i(o)}var Xj=ov(),Jj=ov,Zj=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?la:la.apply(null,arguments)},e1=e=>e&&typeof e.match=="function";function Qs(e,t){function n(...s){if(t){let i=t(...s);if(!i)throw new Error(Dt(0));return{type:e,payload:i.payload,..."meta"in i&&{meta:i.meta},..."error"in i&&{error:i.error}}}return{type:e,payload:s[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=s=>zj(s)&&s.type===e,n}var av=class Ls extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,Ls.prototype)}static get[Symbol.species](){return Ls}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new Ls(...t[0].concat(this)):new Ls(...t.concat(this))}};function Jf(e){return fn(e)?iv(e,()=>{}):e}function Zf(e,t,n){if(e.has(t)){let i=e.get(t);return n.update&&(i=n.update(i,t,e),e.set(t,i)),i}if(!n.insert)throw new Error(Dt(10));const s=n.insert(t,e);return e.set(t,s),s}function t1(e){return typeof e=="boolean"}var n1=()=>function(t){const{thunk:n=!0,immutableCheck:s=!0,serializableCheck:i=!0,actionCreatorCheck:o=!0}=t??{};let a=new av;return n&&(t1(n)?a.push(Xj):a.push(Jj(n.extraArgument))),a},r1="RTK_autoBatch",lv=e=>t=>{setTimeout(t,e)},s1=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:lv(10),i1=(e={type:"raf"})=>t=>(...n)=>{const s=t(...n);let i=!0,o=!1,a=!1;const l=new Set,d=e.type==="tick"?queueMicrotask:e.type==="raf"?s1:e.type==="callback"?e.queueNotification:lv(e.timeout),c=()=>{a=!1,o&&(o=!1,l.forEach(u=>u()))};return Object.assign({},s,{subscribe(u){const f=()=>i&&u(),g=s.subscribe(f);return l.add(u),()=>{g(),l.delete(u)}},dispatch(u){var f;try{return i=!((f=u==null?void 0:u.meta)!=null&&f[r1]),o=!i,o&&(a||(a=!0,d(c))),s.dispatch(u)}finally{i=!0}}})},o1=e=>function(n){const{autoBatch:s=!0}=n??{};let i=new av(e);return s&&i.push(i1(typeof s=="object"?s:void 0)),i};function a1(e){const t=n1(),{reducer:n=void 0,middleware:s,devTools:i=!0,preloadedState:o=void 0,enhancers:a=void 0}=e||{};let l;if(typeof n=="function")l=n;else if(vu(n))l=Mj(n);else throw new Error(Dt(1));let d;typeof s=="function"?d=s(t):d=t();let c=la;i&&(c=Zj({trace:!1,...typeof i=="object"&&i}));const u=Bj(...d),f=o1(u);let g=typeof a=="function"?a(f):f();const b=c(...g);return Jh(l,o,b)}function cv(e){const t={},n=[];let s;const i={addCase(o,a){const l=typeof o=="string"?o:o.type;if(!l)throw new Error(Dt(28));if(l in t)throw new Error(Dt(29));return t[l]=a,i},addMatcher(o,a){return n.push({matcher:o,reducer:a}),i},addDefaultCase(o){return s=o,i}};return e(i),[t,n,s]}function l1(e){return typeof e=="function"}function c1(e,t){let[n,s,i]=cv(t),o;if(l1(e))o=()=>Jf(e());else{const l=Jf(e);o=()=>l}function a(l=o(),d){let c=[n[d.type],...s.filter(({matcher:u})=>u(d)).map(({reducer:u})=>u)];return c.filter(u=>!!u).length===0&&(c=[i]),c.reduce((u,f)=>{if(f)if(Cr(u)){const b=f(u,d);return b===void 0?u:b}else{if(fn(u))return iv(u,g=>f(g,d));{const g=f(u,d);if(g===void 0){if(u===null)return u;throw new Error(Dt(9))}return g}}return u},l)}return a.getInitialState=o,a}var d1=(e,t)=>e1(e)?e.match(t):e(t);function u1(...e){return t=>e.some(n=>d1(n,t))}var f1="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",p1=(e=21)=>{let t="",n=e;for(;n--;)t+=f1[Math.random()*64|0];return t},m1=["name","message","stack","code"],Hl=class{constructor(e,t){vl(this,"_type");this.payload=e,this.meta=t}},ep=class{constructor(e,t){vl(this,"_type");this.payload=e,this.meta=t}},h1=e=>{if(typeof e=="object"&&e!==null){const t={};for(const n of m1)typeof e[n]=="string"&&(t[n]=e[n]);return t}return{message:String(e)}},et=(()=>{function e(t,n,s){const i=Qs(t+"/fulfilled",(d,c,u,f)=>({payload:d,meta:{...f||{},arg:u,requestId:c,requestStatus:"fulfilled"}})),o=Qs(t+"/pending",(d,c,u)=>({payload:void 0,meta:{...u||{},arg:c,requestId:d,requestStatus:"pending"}})),a=Qs(t+"/rejected",(d,c,u,f,g)=>({payload:f,error:(s&&s.serializeError||h1)(d||"Rejected"),meta:{...g||{},arg:u,requestId:c,rejectedWithValue:!!f,requestStatus:"rejected",aborted:(d==null?void 0:d.name)==="AbortError",condition:(d==null?void 0:d.name)==="ConditionError"}}));function l(d){return(c,u,f)=>{const g=s!=null&&s.idGenerator?s.idGenerator(d):p1(),b=new AbortController;let x,N;function C(v){N=v,b.abort()}const m=async function(){var y,k;let v;try{let O=(y=s==null?void 0:s.condition)==null?void 0:y.call(s,d,{getState:u,extra:f});if(g1(O)&&(O=await O),O===!1||b.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const T=new Promise((_,D)=>{x=()=>{D({name:"AbortError",message:N||"Aborted"})},b.signal.addEventListener("abort",x)});c(o(g,d,(k=s==null?void 0:s.getPendingMeta)==null?void 0:k.call(s,{requestId:g,arg:d},{getState:u,extra:f}))),v=await Promise.race([T,Promise.resolve(n(d,{dispatch:c,getState:u,extra:f,requestId:g,signal:b.signal,abort:C,rejectWithValue:(_,D)=>new Hl(_,D),fulfillWithValue:(_,D)=>new ep(_,D)})).then(_=>{if(_ instanceof Hl)throw _;return _ instanceof ep?i(_.payload,g,d,_.meta):i(_,g,d)})])}catch(O){v=O instanceof Hl?a(null,g,d,O.payload,O.meta):a(O,g,d)}finally{x&&b.signal.removeEventListener("abort",x)}return s&&!s.dispatchConditionRejection&&a.match(v)&&v.meta.condition||c(v),v}();return Object.assign(m,{abort:C,requestId:g,arg:d,unwrap(){return m.then(v1)}})}}return Object.assign(l,{pending:o,rejected:a,fulfilled:i,settled:u1(a,i),typePrefix:t})}return e.withTypes=()=>e,e})();function v1(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function g1(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var x1=Symbol.for("rtk-slice-createasyncthunk");function y1(e,t){return`${e}/${t}`}function j1({creators:e}={}){var n;const t=(n=e==null?void 0:e.asyncThunk)==null?void 0:n[x1];return function(i){const{name:o,reducerPath:a=o}=i;if(!o)throw new Error(Dt(11));typeof process<"u";const l=(typeof i.reducers=="function"?i.reducers(C1()):i.reducers)||{},d=Object.keys(l),c={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},u={addCase(h,y){const k=typeof h=="string"?h:h.type;if(!k)throw new Error(Dt(12));if(k in c.sliceCaseReducersByType)throw new Error(Dt(13));return c.sliceCaseReducersByType[k]=y,u},addMatcher(h,y){return c.sliceMatchers.push({matcher:h,reducer:y}),u},exposeAction(h,y){return c.actionCreators[h]=y,u},exposeCaseReducer(h,y){return c.sliceCaseReducersByName[h]=y,u}};d.forEach(h=>{const y=l[h],k={reducerName:h,type:y1(o,h),createNotation:typeof i.reducers=="function"};w1(y)?k1(k,y,u,t):b1(k,y,u)});function f(){const[h={},y=[],k=void 0]=typeof i.extraReducers=="function"?cv(i.extraReducers):[i.extraReducers],O={...h,...c.sliceCaseReducersByType};return c1(i.initialState,T=>{for(let _ in O)T.addCase(_,O[_]);for(let _ of c.sliceMatchers)T.addMatcher(_.matcher,_.reducer);for(let _ of y)T.addMatcher(_.matcher,_.reducer);k&&T.addDefaultCase(k)})}const g=h=>h,b=new Map;let x;function N(h,y){return x||(x=f()),x(h,y)}function C(){return x||(x=f()),x.getInitialState()}function m(h,y=!1){function k(T){let _=T[h];return typeof _>"u"&&y&&(_=C()),_}function O(T=g){const _=Zf(b,y,{insert:()=>new WeakMap});return Zf(_,T,{insert:()=>{const D={};for(const[z,H]of Object.entries(i.selectors??{}))D[z]=N1(H,T,C,y);return D}})}return{reducerPath:h,getSelectors:O,get selectors(){return O(k)},selectSlice:k}}const v={name:o,reducer:N,actions:c.actionCreators,caseReducers:c.sliceCaseReducersByName,getInitialState:C,...m(a),injectInto(h,{reducerPath:y,...k}={}){const O=y??a;return h.inject({reducerPath:O,reducer:N},k),{...v,...m(O,!0)}}};return v}}function N1(e,t,n,s){function i(o,...a){let l=t(o);return typeof l>"u"&&s&&(l=n()),e(l,...a)}return i.unwrapped=e,i}var Ti=j1();function C1(){function e(t,n){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...n}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...n){return t(...n)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,n){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:n}},asyncThunk:e}}function b1({type:e,reducerName:t,createNotation:n},s,i){let o,a;if("reducer"in s){if(n&&!S1(s))throw new Error(Dt(17));o=s.reducer,a=s.prepare}else o=s;i.addCase(e,o).exposeCaseReducer(t,o).exposeAction(t,a?Qs(e,a):Qs(e))}function w1(e){return e._reducerDefinitionType==="asyncThunk"}function S1(e){return e._reducerDefinitionType==="reducerWithPrepare"}function k1({type:e,reducerName:t},n,s,i){if(!i)throw new Error(Dt(18));const{payloadCreator:o,fulfilled:a,pending:l,rejected:d,settled:c,options:u}=n,f=i(e,o,u);s.exposeAction(t,f),a&&s.addCase(f.fulfilled,a),l&&s.addCase(f.pending,l),d&&s.addCase(f.rejected,d),c&&s.addMatcher(f.settled,c),s.exposeCaseReducer(t,{fulfilled:a||ro,pending:l||ro,rejected:d||ro,settled:c||ro})}function ro(){}function Dt(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}function dv(e,t){return function(){return e.apply(t,arguments)}}const{toString:E1}=Object.prototype,{getPrototypeOf:yu}=Object,Wa=(e=>t=>{const n=E1.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Bt=e=>(e=e.toLowerCase(),t=>Wa(t)===e),Ua=e=>t=>typeof t===e,{isArray:ms}=Array,yi=Ua("undefined");function P1(e){return e!==null&&!yi(e)&&e.constructor!==null&&!yi(e.constructor)&&vt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const uv=Bt("ArrayBuffer");function _1(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&uv(e.buffer),t}const O1=Ua("string"),vt=Ua("function"),fv=Ua("number"),qa=e=>e!==null&&typeof e=="object",T1=e=>e===!0||e===!1,Co=e=>{if(Wa(e)!=="object")return!1;const t=yu(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},R1=Bt("Date"),A1=Bt("File"),I1=Bt("Blob"),F1=Bt("FileList"),D1=e=>qa(e)&&vt(e.pipe),L1=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||vt(e.append)&&((t=Wa(e))==="formdata"||t==="object"&&vt(e.toString)&&e.toString()==="[object FormData]"))},M1=Bt("URLSearchParams"),[B1,z1,$1,W1]=["ReadableStream","Request","Response","Headers"].map(Bt),U1=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ri(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let s,i;if(typeof e!="object"&&(e=[e]),ms(e))for(s=0,i=e.length;s0;)if(i=n[s],t===i.toLowerCase())return i;return null}const dr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,mv=e=>!yi(e)&&e!==dr;function sd(){const{caseless:e}=mv(this)&&this||{},t={},n=(s,i)=>{const o=e&&pv(t,i)||i;Co(t[o])&&Co(s)?t[o]=sd(t[o],s):Co(s)?t[o]=sd({},s):ms(s)?t[o]=s.slice():t[o]=s};for(let s=0,i=arguments.length;s(Ri(t,(i,o)=>{n&&vt(i)?e[o]=dv(i,n):e[o]=i},{allOwnKeys:s}),e),V1=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),H1=(e,t,n,s)=>{e.prototype=Object.create(t.prototype,s),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},K1=(e,t,n,s)=>{let i,o,a;const l={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),o=i.length;o-- >0;)a=i[o],(!s||s(a,e,t))&&!l[a]&&(t[a]=e[a],l[a]=!0);e=n!==!1&&yu(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Y1=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const s=e.indexOf(t,n);return s!==-1&&s===n},G1=e=>{if(!e)return null;if(ms(e))return e;let t=e.length;if(!fv(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Q1=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&yu(Uint8Array)),X1=(e,t)=>{const s=(e&&e[Symbol.iterator]).call(e);let i;for(;(i=s.next())&&!i.done;){const o=i.value;t.call(e,o[0],o[1])}},J1=(e,t)=>{let n;const s=[];for(;(n=e.exec(t))!==null;)s.push(n);return s},Z1=Bt("HTMLFormElement"),e0=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,s,i){return s.toUpperCase()+i}),tp=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),t0=Bt("RegExp"),hv=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),s={};Ri(n,(i,o)=>{let a;(a=t(i,o,e))!==!1&&(s[o]=a||i)}),Object.defineProperties(e,s)},n0=e=>{hv(e,(t,n)=>{if(vt(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const s=e[n];if(vt(s)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},r0=(e,t)=>{const n={},s=i=>{i.forEach(o=>{n[o]=!0})};return ms(e)?s(e):s(String(e).split(t)),n},s0=()=>{},i0=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,Kl="abcdefghijklmnopqrstuvwxyz",np="0123456789",vv={DIGIT:np,ALPHA:Kl,ALPHA_DIGIT:Kl+Kl.toUpperCase()+np},o0=(e=16,t=vv.ALPHA_DIGIT)=>{let n="";const{length:s}=t;for(;e--;)n+=t[Math.random()*s|0];return n};function a0(e){return!!(e&&vt(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const l0=e=>{const t=new Array(10),n=(s,i)=>{if(qa(s)){if(t.indexOf(s)>=0)return;if(!("toJSON"in s)){t[i]=s;const o=ms(s)?[]:{};return Ri(s,(a,l)=>{const d=n(a,i+1);!yi(d)&&(o[l]=d)}),t[i]=void 0,o}}return s};return n(e,0)},c0=Bt("AsyncFunction"),d0=e=>e&&(qa(e)||vt(e))&&vt(e.then)&&vt(e.catch),gv=((e,t)=>e?setImmediate:t?((n,s)=>(dr.addEventListener("message",({source:i,data:o})=>{i===dr&&o===n&&s.length&&s.shift()()},!1),i=>{s.push(i),dr.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",vt(dr.postMessage)),u0=typeof queueMicrotask<"u"?queueMicrotask.bind(dr):typeof process<"u"&&process.nextTick||gv,$={isArray:ms,isArrayBuffer:uv,isBuffer:P1,isFormData:L1,isArrayBufferView:_1,isString:O1,isNumber:fv,isBoolean:T1,isObject:qa,isPlainObject:Co,isReadableStream:B1,isRequest:z1,isResponse:$1,isHeaders:W1,isUndefined:yi,isDate:R1,isFile:A1,isBlob:I1,isRegExp:t0,isFunction:vt,isStream:D1,isURLSearchParams:M1,isTypedArray:Q1,isFileList:F1,forEach:Ri,merge:sd,extend:q1,trim:U1,stripBOM:V1,inherits:H1,toFlatObject:K1,kindOf:Wa,kindOfTest:Bt,endsWith:Y1,toArray:G1,forEachEntry:X1,matchAll:J1,isHTMLForm:Z1,hasOwnProperty:tp,hasOwnProp:tp,reduceDescriptors:hv,freezeMethods:n0,toObjectSet:r0,toCamelCase:e0,noop:s0,toFiniteNumber:i0,findKey:pv,global:dr,isContextDefined:mv,ALPHABET:vv,generateString:o0,isSpecCompliantForm:a0,toJSONObject:l0,isAsyncFn:c0,isThenable:d0,setImmediate:gv,asap:u0};function oe(e,t,n,s,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),s&&(this.request=s),i&&(this.response=i,this.status=i.status?i.status:null)}$.inherits(oe,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:$.toJSONObject(this.config),code:this.code,status:this.status}}});const xv=oe.prototype,yv={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{yv[e]={value:e}});Object.defineProperties(oe,yv);Object.defineProperty(xv,"isAxiosError",{value:!0});oe.from=(e,t,n,s,i,o)=>{const a=Object.create(xv);return $.toFlatObject(e,a,function(d){return d!==Error.prototype},l=>l!=="isAxiosError"),oe.call(a,e.message,t,n,s,i),a.cause=e,a.name=e.name,o&&Object.assign(a,o),a};const f0=null;function id(e){return $.isPlainObject(e)||$.isArray(e)}function jv(e){return $.endsWith(e,"[]")?e.slice(0,-2):e}function rp(e,t,n){return e?e.concat(t).map(function(i,o){return i=jv(i),!n&&o?"["+i+"]":i}).join(n?".":""):t}function p0(e){return $.isArray(e)&&!e.some(id)}const m0=$.toFlatObject($,{},null,function(t){return/^is[A-Z]/.test(t)});function Va(e,t,n){if(!$.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=$.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(N,C){return!$.isUndefined(C[N])});const s=n.metaTokens,i=n.visitor||u,o=n.dots,a=n.indexes,d=(n.Blob||typeof Blob<"u"&&Blob)&&$.isSpecCompliantForm(t);if(!$.isFunction(i))throw new TypeError("visitor must be a function");function c(x){if(x===null)return"";if($.isDate(x))return x.toISOString();if(!d&&$.isBlob(x))throw new oe("Blob is not supported. Use a Buffer instead.");return $.isArrayBuffer(x)||$.isTypedArray(x)?d&&typeof Blob=="function"?new Blob([x]):Buffer.from(x):x}function u(x,N,C){let m=x;if(x&&!C&&typeof x=="object"){if($.endsWith(N,"{}"))N=s?N:N.slice(0,-2),x=JSON.stringify(x);else if($.isArray(x)&&p0(x)||($.isFileList(x)||$.endsWith(N,"[]"))&&(m=$.toArray(x)))return N=jv(N),m.forEach(function(h,y){!($.isUndefined(h)||h===null)&&t.append(a===!0?rp([N],y,o):a===null?N:N+"[]",c(h))}),!1}return id(x)?!0:(t.append(rp(C,N,o),c(x)),!1)}const f=[],g=Object.assign(m0,{defaultVisitor:u,convertValue:c,isVisitable:id});function b(x,N){if(!$.isUndefined(x)){if(f.indexOf(x)!==-1)throw Error("Circular reference detected in "+N.join("."));f.push(x),$.forEach(x,function(m,v){(!($.isUndefined(m)||m===null)&&i.call(t,m,$.isString(v)?v.trim():v,N,g))===!0&&b(m,N?N.concat(v):[v])}),f.pop()}}if(!$.isObject(e))throw new TypeError("data must be an object");return b(e),t}function sp(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(s){return t[s]})}function ju(e,t){this._pairs=[],e&&Va(e,this,t)}const Nv=ju.prototype;Nv.append=function(t,n){this._pairs.push([t,n])};Nv.toString=function(t){const n=t?function(s){return t.call(this,s,sp)}:sp;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function h0(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Cv(e,t,n){if(!t)return e;const s=n&&n.encode||h0,i=n&&n.serialize;let o;if(i?o=i(t,n):o=$.isURLSearchParams(t)?t.toString():new ju(t,n).toString(s),o){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class ip{constructor(){this.handlers=[]}use(t,n,s){return this.handlers.push({fulfilled:t,rejected:n,synchronous:s?s.synchronous:!1,runWhen:s?s.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){$.forEach(this.handlers,function(s){s!==null&&t(s)})}}const bv={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},v0=typeof URLSearchParams<"u"?URLSearchParams:ju,g0=typeof FormData<"u"?FormData:null,x0=typeof Blob<"u"?Blob:null,y0={isBrowser:!0,classes:{URLSearchParams:v0,FormData:g0,Blob:x0},protocols:["http","https","file","blob","url","data"]},Nu=typeof window<"u"&&typeof document<"u",od=typeof navigator=="object"&&navigator||void 0,j0=Nu&&(!od||["ReactNative","NativeScript","NS"].indexOf(od.product)<0),N0=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",C0=Nu&&window.location.href||"http://localhost",b0=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Nu,hasStandardBrowserEnv:j0,hasStandardBrowserWebWorkerEnv:N0,navigator:od,origin:C0},Symbol.toStringTag,{value:"Module"})),lt={...b0,...y0};function w0(e,t){return Va(e,new lt.classes.URLSearchParams,Object.assign({visitor:function(n,s,i,o){return lt.isNode&&$.isBuffer(n)?(this.append(s,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function S0(e){return $.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function k0(e){const t={},n=Object.keys(e);let s;const i=n.length;let o;for(s=0;s=n.length;return a=!a&&$.isArray(i)?i.length:a,d?($.hasOwnProp(i,a)?i[a]=[i[a],s]:i[a]=s,!l):((!i[a]||!$.isObject(i[a]))&&(i[a]=[]),t(n,s,i[a],o)&&$.isArray(i[a])&&(i[a]=k0(i[a])),!l)}if($.isFormData(e)&&$.isFunction(e.entries)){const n={};return $.forEachEntry(e,(s,i)=>{t(S0(s),i,n,0)}),n}return null}function E0(e,t,n){if($.isString(e))try{return(t||JSON.parse)(e),$.trim(e)}catch(s){if(s.name!=="SyntaxError")throw s}return(n||JSON.stringify)(e)}const Ai={transitional:bv,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const s=n.getContentType()||"",i=s.indexOf("application/json")>-1,o=$.isObject(t);if(o&&$.isHTMLForm(t)&&(t=new FormData(t)),$.isFormData(t))return i?JSON.stringify(wv(t)):t;if($.isArrayBuffer(t)||$.isBuffer(t)||$.isStream(t)||$.isFile(t)||$.isBlob(t)||$.isReadableStream(t))return t;if($.isArrayBufferView(t))return t.buffer;if($.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(o){if(s.indexOf("application/x-www-form-urlencoded")>-1)return w0(t,this.formSerializer).toString();if((l=$.isFileList(t))||s.indexOf("multipart/form-data")>-1){const d=this.env&&this.env.FormData;return Va(l?{"files[]":t}:t,d&&new d,this.formSerializer)}}return o||i?(n.setContentType("application/json",!1),E0(t)):t}],transformResponse:[function(t){const n=this.transitional||Ai.transitional,s=n&&n.forcedJSONParsing,i=this.responseType==="json";if($.isResponse(t)||$.isReadableStream(t))return t;if(t&&$.isString(t)&&(s&&!this.responseType||i)){const a=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(l){if(a)throw l.name==="SyntaxError"?oe.from(l,oe.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:lt.classes.FormData,Blob:lt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};$.forEach(["delete","get","head","post","put","patch"],e=>{Ai.headers[e]={}});const P0=$.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),_0=e=>{const t={};let n,s,i;return e&&e.split(` -`).forEach(function(a){i=a.indexOf(":"),n=a.substring(0,i).trim().toLowerCase(),s=a.substring(i+1).trim(),!(!n||t[n]&&P0[n])&&(n==="set-cookie"?t[n]?t[n].push(s):t[n]=[s]:t[n]=t[n]?t[n]+", "+s:s)}),t},op=Symbol("internals");function Rs(e){return e&&String(e).trim().toLowerCase()}function bo(e){return e===!1||e==null?e:$.isArray(e)?e.map(bo):String(e)}function O0(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let s;for(;s=n.exec(e);)t[s[1]]=s[2];return t}const T0=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Yl(e,t,n,s,i){if($.isFunction(s))return s.call(this,t,n);if(i&&(t=n),!!$.isString(t)){if($.isString(s))return t.indexOf(s)!==-1;if($.isRegExp(s))return s.test(t)}}function R0(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,s)=>n.toUpperCase()+s)}function A0(e,t){const n=$.toCamelCase(" "+t);["get","set","has"].forEach(s=>{Object.defineProperty(e,s+n,{value:function(i,o,a){return this[s].call(this,t,i,o,a)},configurable:!0})})}class ct{constructor(t){t&&this.set(t)}set(t,n,s){const i=this;function o(l,d,c){const u=Rs(d);if(!u)throw new Error("header name must be a non-empty string");const f=$.findKey(i,u);(!f||i[f]===void 0||c===!0||c===void 0&&i[f]!==!1)&&(i[f||d]=bo(l))}const a=(l,d)=>$.forEach(l,(c,u)=>o(c,u,d));if($.isPlainObject(t)||t instanceof this.constructor)a(t,n);else if($.isString(t)&&(t=t.trim())&&!T0(t))a(_0(t),n);else if($.isHeaders(t))for(const[l,d]of t.entries())o(d,l,s);else t!=null&&o(n,t,s);return this}get(t,n){if(t=Rs(t),t){const s=$.findKey(this,t);if(s){const i=this[s];if(!n)return i;if(n===!0)return O0(i);if($.isFunction(n))return n.call(this,i,s);if($.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Rs(t),t){const s=$.findKey(this,t);return!!(s&&this[s]!==void 0&&(!n||Yl(this,this[s],s,n)))}return!1}delete(t,n){const s=this;let i=!1;function o(a){if(a=Rs(a),a){const l=$.findKey(s,a);l&&(!n||Yl(s,s[l],l,n))&&(delete s[l],i=!0)}}return $.isArray(t)?t.forEach(o):o(t),i}clear(t){const n=Object.keys(this);let s=n.length,i=!1;for(;s--;){const o=n[s];(!t||Yl(this,this[o],o,t,!0))&&(delete this[o],i=!0)}return i}normalize(t){const n=this,s={};return $.forEach(this,(i,o)=>{const a=$.findKey(s,o);if(a){n[a]=bo(i),delete n[o];return}const l=t?R0(o):String(o).trim();l!==o&&delete n[o],n[l]=bo(i),s[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return $.forEach(this,(s,i)=>{s!=null&&s!==!1&&(n[i]=t&&$.isArray(s)?s.join(", "):s)}),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 s=new this(t);return n.forEach(i=>s.set(i)),s}static accessor(t){const s=(this[op]=this[op]={accessors:{}}).accessors,i=this.prototype;function o(a){const l=Rs(a);s[l]||(A0(i,a),s[l]=!0)}return $.isArray(t)?t.forEach(o):o(t),this}}ct.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);$.reduceDescriptors(ct.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(s){this[n]=s}}});$.freezeMethods(ct);function Gl(e,t){const n=this||Ai,s=t||n,i=ct.from(s.headers);let o=s.data;return $.forEach(e,function(l){o=l.call(n,o,i.normalize(),t?t.status:void 0)}),i.normalize(),o}function Sv(e){return!!(e&&e.__CANCEL__)}function hs(e,t,n){oe.call(this,e??"canceled",oe.ERR_CANCELED,t,n),this.name="CanceledError"}$.inherits(hs,oe,{__CANCEL__:!0});function kv(e,t,n){const s=n.config.validateStatus;!n.status||!s||s(n.status)?e(n):t(new oe("Request failed with status code "+n.status,[oe.ERR_BAD_REQUEST,oe.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function I0(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function F0(e,t){e=e||10;const n=new Array(e),s=new Array(e);let i=0,o=0,a;return t=t!==void 0?t:1e3,function(d){const c=Date.now(),u=s[o];a||(a=c),n[i]=d,s[i]=c;let f=o,g=0;for(;f!==i;)g+=n[f++],f=f%e;if(i=(i+1)%e,i===o&&(o=(o+1)%e),c-a{n=u,i=null,o&&(clearTimeout(o),o=null),e.apply(null,c)};return[(...c)=>{const u=Date.now(),f=u-n;f>=s?a(c,u):(i=c,o||(o=setTimeout(()=>{o=null,a(i)},s-f)))},()=>i&&a(i)]}const fa=(e,t,n=3)=>{let s=0;const i=F0(50,250);return D0(o=>{const a=o.loaded,l=o.lengthComputable?o.total:void 0,d=a-s,c=i(d),u=a<=l;s=a;const f={loaded:a,total:l,progress:l?a/l:void 0,bytes:d,rate:c||void 0,estimated:c&&l&&u?(l-a)/c:void 0,event:o,lengthComputable:l!=null,[t?"download":"upload"]:!0};e(f)},n)},ap=(e,t)=>{const n=e!=null;return[s=>t[0]({lengthComputable:n,total:e,loaded:s}),t[1]]},lp=e=>(...t)=>$.asap(()=>e(...t)),L0=lt.hasStandardBrowserEnv?function(){const t=lt.navigator&&/(msie|trident)/i.test(lt.navigator.userAgent),n=document.createElement("a");let s;function i(o){let a=o;return t&&(n.setAttribute("href",a),a=n.href),n.setAttribute("href",a),{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 s=i(window.location.href),function(a){const l=$.isString(a)?i(a):a;return l.protocol===s.protocol&&l.host===s.host}}():function(){return function(){return!0}}(),M0=lt.hasStandardBrowserEnv?{write(e,t,n,s,i,o){const a=[e+"="+encodeURIComponent(t)];$.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),$.isString(s)&&a.push("path="+s),$.isString(i)&&a.push("domain="+i),o===!0&&a.push("secure"),document.cookie=a.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 B0(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function z0(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Ev(e,t){return e&&!B0(t)?z0(e,t):t}const cp=e=>e instanceof ct?{...e}:e;function wr(e,t){t=t||{};const n={};function s(c,u,f){return $.isPlainObject(c)&&$.isPlainObject(u)?$.merge.call({caseless:f},c,u):$.isPlainObject(u)?$.merge({},u):$.isArray(u)?u.slice():u}function i(c,u,f){if($.isUndefined(u)){if(!$.isUndefined(c))return s(void 0,c,f)}else return s(c,u,f)}function o(c,u){if(!$.isUndefined(u))return s(void 0,u)}function a(c,u){if($.isUndefined(u)){if(!$.isUndefined(c))return s(void 0,c)}else return s(void 0,u)}function l(c,u,f){if(f in t)return s(c,u);if(f in e)return s(void 0,c)}const d={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:l,headers:(c,u)=>i(cp(c),cp(u),!0)};return $.forEach(Object.keys(Object.assign({},e,t)),function(u){const f=d[u]||i,g=f(e[u],t[u],u);$.isUndefined(g)&&f!==l||(n[u]=g)}),n}const Pv=e=>{const t=wr({},e);let{data:n,withXSRFToken:s,xsrfHeaderName:i,xsrfCookieName:o,headers:a,auth:l}=t;t.headers=a=ct.from(a),t.url=Cv(Ev(t.baseURL,t.url),e.params,e.paramsSerializer),l&&a.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):"")));let d;if($.isFormData(n)){if(lt.hasStandardBrowserEnv||lt.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if((d=a.getContentType())!==!1){const[c,...u]=d?d.split(";").map(f=>f.trim()).filter(Boolean):[];a.setContentType([c||"multipart/form-data",...u].join("; "))}}if(lt.hasStandardBrowserEnv&&(s&&$.isFunction(s)&&(s=s(t)),s||s!==!1&&L0(t.url))){const c=i&&o&&M0.read(o);c&&a.set(i,c)}return t},$0=typeof XMLHttpRequest<"u",W0=$0&&function(e){return new Promise(function(n,s){const i=Pv(e);let o=i.data;const a=ct.from(i.headers).normalize();let{responseType:l,onUploadProgress:d,onDownloadProgress:c}=i,u,f,g,b,x;function N(){b&&b(),x&&x(),i.cancelToken&&i.cancelToken.unsubscribe(u),i.signal&&i.signal.removeEventListener("abort",u)}let C=new XMLHttpRequest;C.open(i.method.toUpperCase(),i.url,!0),C.timeout=i.timeout;function m(){if(!C)return;const h=ct.from("getAllResponseHeaders"in C&&C.getAllResponseHeaders()),k={data:!l||l==="text"||l==="json"?C.responseText:C.response,status:C.status,statusText:C.statusText,headers:h,config:e,request:C};kv(function(T){n(T),N()},function(T){s(T),N()},k),C=null}"onloadend"in C?C.onloadend=m:C.onreadystatechange=function(){!C||C.readyState!==4||C.status===0&&!(C.responseURL&&C.responseURL.indexOf("file:")===0)||setTimeout(m)},C.onabort=function(){C&&(s(new oe("Request aborted",oe.ECONNABORTED,e,C)),C=null)},C.onerror=function(){s(new oe("Network Error",oe.ERR_NETWORK,e,C)),C=null},C.ontimeout=function(){let y=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const k=i.transitional||bv;i.timeoutErrorMessage&&(y=i.timeoutErrorMessage),s(new oe(y,k.clarifyTimeoutError?oe.ETIMEDOUT:oe.ECONNABORTED,e,C)),C=null},o===void 0&&a.setContentType(null),"setRequestHeader"in C&&$.forEach(a.toJSON(),function(y,k){C.setRequestHeader(k,y)}),$.isUndefined(i.withCredentials)||(C.withCredentials=!!i.withCredentials),l&&l!=="json"&&(C.responseType=i.responseType),c&&([g,x]=fa(c,!0),C.addEventListener("progress",g)),d&&C.upload&&([f,b]=fa(d),C.upload.addEventListener("progress",f),C.upload.addEventListener("loadend",b)),(i.cancelToken||i.signal)&&(u=h=>{C&&(s(!h||h.type?new hs(null,e,C):h),C.abort(),C=null)},i.cancelToken&&i.cancelToken.subscribe(u),i.signal&&(i.signal.aborted?u():i.signal.addEventListener("abort",u)));const v=I0(i.url);if(v&<.protocols.indexOf(v)===-1){s(new oe("Unsupported protocol "+v+":",oe.ERR_BAD_REQUEST,e));return}C.send(o||null)})},U0=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let s=new AbortController,i;const o=function(c){if(!i){i=!0,l();const u=c instanceof Error?c:this.reason;s.abort(u instanceof oe?u:new hs(u instanceof Error?u.message:u))}};let a=t&&setTimeout(()=>{a=null,o(new oe(`timeout ${t} of ms exceeded`,oe.ETIMEDOUT))},t);const l=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(c=>{c.unsubscribe?c.unsubscribe(o):c.removeEventListener("abort",o)}),e=null)};e.forEach(c=>c.addEventListener("abort",o));const{signal:d}=s;return d.unsubscribe=()=>$.asap(l),d}},q0=function*(e,t){let n=e.byteLength;if(!t||n{const i=V0(e,t);let o=0,a,l=d=>{a||(a=!0,s&&s(d))};return new ReadableStream({async pull(d){try{const{done:c,value:u}=await i.next();if(c){l(),d.close();return}let f=u.byteLength;if(n){let g=o+=f;n(g)}d.enqueue(new Uint8Array(u))}catch(c){throw l(c),c}},cancel(d){return l(d),i.return()}},{highWaterMark:2})},Ha=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",_v=Ha&&typeof ReadableStream=="function",K0=Ha&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Ov=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Y0=_v&&Ov(()=>{let e=!1;const t=new Request(lt.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),up=64*1024,ad=_v&&Ov(()=>$.isReadableStream(new Response("").body)),pa={stream:ad&&(e=>e.body)};Ha&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!pa[t]&&(pa[t]=$.isFunction(e[t])?n=>n[t]():(n,s)=>{throw new oe(`Response type '${t}' is not supported`,oe.ERR_NOT_SUPPORT,s)})})})(new Response);const G0=async e=>{if(e==null)return 0;if($.isBlob(e))return e.size;if($.isSpecCompliantForm(e))return(await new Request(lt.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if($.isArrayBufferView(e)||$.isArrayBuffer(e))return e.byteLength;if($.isURLSearchParams(e)&&(e=e+""),$.isString(e))return(await K0(e)).byteLength},Q0=async(e,t)=>{const n=$.toFiniteNumber(e.getContentLength());return n??G0(t)},X0=Ha&&(async e=>{let{url:t,method:n,data:s,signal:i,cancelToken:o,timeout:a,onDownloadProgress:l,onUploadProgress:d,responseType:c,headers:u,withCredentials:f="same-origin",fetchOptions:g}=Pv(e);c=c?(c+"").toLowerCase():"text";let b=U0([i,o&&o.toAbortSignal()],a),x;const N=b&&b.unsubscribe&&(()=>{b.unsubscribe()});let C;try{if(d&&Y0&&n!=="get"&&n!=="head"&&(C=await Q0(u,s))!==0){let k=new Request(t,{method:"POST",body:s,duplex:"half"}),O;if($.isFormData(s)&&(O=k.headers.get("content-type"))&&u.setContentType(O),k.body){const[T,_]=ap(C,fa(lp(d)));s=dp(k.body,up,T,_)}}$.isString(f)||(f=f?"include":"omit");const m="credentials"in Request.prototype;x=new Request(t,{...g,signal:b,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:s,duplex:"half",credentials:m?f:void 0});let v=await fetch(x);const h=ad&&(c==="stream"||c==="response");if(ad&&(l||h&&N)){const k={};["status","statusText","headers"].forEach(D=>{k[D]=v[D]});const O=$.toFiniteNumber(v.headers.get("content-length")),[T,_]=l&&ap(O,fa(lp(l),!0))||[];v=new Response(dp(v.body,up,T,()=>{_&&_(),N&&N()}),k)}c=c||"text";let y=await pa[$.findKey(pa,c)||"text"](v,e);return!h&&N&&N(),await new Promise((k,O)=>{kv(k,O,{data:y,headers:ct.from(v.headers),status:v.status,statusText:v.statusText,config:e,request:x})})}catch(m){throw N&&N(),m&&m.name==="TypeError"&&/fetch/i.test(m.message)?Object.assign(new oe("Network Error",oe.ERR_NETWORK,e,x),{cause:m.cause||m}):oe.from(m,m&&m.code,e,x)}}),ld={http:f0,xhr:W0,fetch:X0};$.forEach(ld,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const fp=e=>`- ${e}`,J0=e=>$.isFunction(e)||e===null||e===!1,Tv={getAdapter:e=>{e=$.isArray(e)?e:[e];const{length:t}=e;let n,s;const i={};for(let o=0;o`adapter ${l} `+(d===!1?"is not supported by the environment":"is not available in the build"));let a=t?o.length>1?`since : -`+o.map(fp).join(` -`):" "+fp(o[0]):"as no adapter specified";throw new oe("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return s},adapters:ld};function Ql(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new hs(null,e)}function pp(e){return Ql(e),e.headers=ct.from(e.headers),e.data=Gl.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Tv.getAdapter(e.adapter||Ai.adapter)(e).then(function(s){return Ql(e),s.data=Gl.call(e,e.transformResponse,s),s.headers=ct.from(s.headers),s},function(s){return Sv(s)||(Ql(e),s&&s.response&&(s.response.data=Gl.call(e,e.transformResponse,s.response),s.response.headers=ct.from(s.response.headers))),Promise.reject(s)})}const Rv="1.7.7",Cu={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Cu[e]=function(s){return typeof s===e||"a"+(t<1?"n ":" ")+e}});const mp={};Cu.transitional=function(t,n,s){function i(o,a){return"[Axios v"+Rv+"] Transitional option '"+o+"'"+a+(s?". "+s:"")}return(o,a,l)=>{if(t===!1)throw new oe(i(a," has been removed"+(n?" in "+n:"")),oe.ERR_DEPRECATED);return n&&!mp[a]&&(mp[a]=!0,console.warn(i(a," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,a,l):!0}};function Z0(e,t,n){if(typeof e!="object")throw new oe("options must be an object",oe.ERR_BAD_OPTION_VALUE);const s=Object.keys(e);let i=s.length;for(;i-- >0;){const o=s[i],a=t[o];if(a){const l=e[o],d=l===void 0||a(l,o,e);if(d!==!0)throw new oe("option "+o+" must be "+d,oe.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new oe("Unknown option "+o,oe.ERR_BAD_OPTION)}}const cd={assertOptions:Z0,validators:Cu},jn=cd.validators;class pr{constructor(t){this.defaults=t,this.interceptors={request:new ip,response:new ip}}async request(t,n){try{return await this._request(t,n)}catch(s){if(s instanceof Error){let i;Error.captureStackTrace?Error.captureStackTrace(i={}):i=new Error;const o=i.stack?i.stack.replace(/^.+\n/,""):"";try{s.stack?o&&!String(s.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(s.stack+=` -`+o):s.stack=o}catch{}}throw s}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=wr(this.defaults,n);const{transitional:s,paramsSerializer:i,headers:o}=n;s!==void 0&&cd.assertOptions(s,{silentJSONParsing:jn.transitional(jn.boolean),forcedJSONParsing:jn.transitional(jn.boolean),clarifyTimeoutError:jn.transitional(jn.boolean)},!1),i!=null&&($.isFunction(i)?n.paramsSerializer={serialize:i}:cd.assertOptions(i,{encode:jn.function,serialize:jn.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=o&&$.merge(o.common,o[n.method]);o&&$.forEach(["delete","get","head","post","put","patch","common"],x=>{delete o[x]}),n.headers=ct.concat(a,o);const l=[];let d=!0;this.interceptors.request.forEach(function(N){typeof N.runWhen=="function"&&N.runWhen(n)===!1||(d=d&&N.synchronous,l.unshift(N.fulfilled,N.rejected))});const c=[];this.interceptors.response.forEach(function(N){c.push(N.fulfilled,N.rejected)});let u,f=0,g;if(!d){const x=[pp.bind(this),void 0];for(x.unshift.apply(x,l),x.push.apply(x,c),g=x.length,u=Promise.resolve(n);f{if(!s._listeners)return;let o=s._listeners.length;for(;o-- >0;)s._listeners[o](i);s._listeners=null}),this.promise.then=i=>{let o;const a=new Promise(l=>{s.subscribe(l),o=l}).then(i);return a.cancel=function(){s.unsubscribe(o)},a},t(function(o,a,l){s.reason||(s.reason=new hs(o,a,l),n(s.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)}toAbortSignal(){const t=new AbortController,n=s=>{t.abort(s)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new bu(function(i){t=i}),cancel:t}}}function eN(e){return function(n){return e.apply(null,n)}}function tN(e){return $.isObject(e)&&e.isAxiosError===!0}const dd={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(dd).forEach(([e,t])=>{dd[t]=e});function Av(e){const t=new pr(e),n=dv(pr.prototype.request,t);return $.extend(n,pr.prototype,t,{allOwnKeys:!0}),$.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return Av(wr(e,i))},n}const me=Av(Ai);me.Axios=pr;me.CanceledError=hs;me.CancelToken=bu;me.isCancel=Sv;me.VERSION=Rv;me.toFormData=Va;me.AxiosError=oe;me.Cancel=me.CanceledError;me.all=function(t){return Promise.all(t)};me.spread=eN;me.isAxiosError=tN;me.mergeConfig=wr;me.AxiosHeaders=ct;me.formToJSON=e=>wv($.isHTMLForm(e)?new FormData(e):e);me.getAdapter=Tv.getAdapter;me.HttpStatusCode=dd;me.default=me;const nN="http://67.225.129.127:3002",Jt=me.create({baseURL:nN});Jt.interceptors.request.use(e=>(localStorage.getItem("profile")&&(e.headers.Authorization=`Bearer ${JSON.parse(localStorage.getItem("profile")).token}`),e));const rN=e=>Jt.post("/users/signup",e),sN=e=>Jt.post("/users/signin",e),iN=(e,t,n)=>Jt.get(`/users/${e}/verify/${t}`,n),oN=e=>Jt.post("/properties",e),aN=(e,t,n)=>Jt.get(`/properties/user/${e}?page=${t}&limit=${n}`,e),lN=e=>Jt.get(`/properties/${e}`,e),cN=(e,t)=>Jt.put(`/properties/${e}`,t),dN=e=>Jt.get(`/users/${e}`),uN=e=>Jt.patch("/users/invest",e),fN="http://67.225.129.127:3002",wo=et("auth/login",async({formValue:e,navigate:t},{rejectWithValue:n})=>{try{const s=await sN(e);return t("/dashboard"),s.data}catch(s){return n(s.response.data)}}),So=et("auth/register",async({formValue:e,navigate:t,toast:n},{rejectWithValue:s})=>{try{const i=await rN(e);return console.log("response",i),n.success("Register Successfully"),t("/registrationsuccess"),i.data}catch(i){return s(i.response.data)}}),ko=et("auth/updateUser",async({formData:e,toast:t,navigate:n},{rejectWithValue:s})=>{try{const i=await me.put(`${fN}/users/update`,e);return t.success("Updated Successfully"),n("/login"),i.data}catch(i){return s(i.response.data)}}),Eo=et("auth/WillingToInvest",async({formData:e,toast:t},{rejectWithValue:n})=>{try{const s=await uN(e);return t.success("Investment amount updated successfully!"),s.data}catch(s){return t.error(s.response.data.message),n(s.response.data)}}),Iv=Ti({name:"auth",initialState:{user:null,error:"",loading:!1,isLoading:!1},reducers:{setUser:(e,t)=>{e.user=t.payload},setLogout:e=>{localStorage.clear(),e.user=null},setUserDetails:(e,t)=>{e.user=t.payload},updateUser:(e,t)=>{const n=t.payload;e.user={...e.user,...n}}},extraReducers:e=>{e.addCase(wo.pending,t=>{t.loading=!0}).addCase(wo.fulfilled,(t,n)=>{t.loading=!1,localStorage.setItem("profile",JSON.stringify({...n.payload})),t.user=n.payload}).addCase(wo.rejected,(t,n)=>{t.loading=!1,t.error=n.payload.message}).addCase(So.pending,t=>{t.loading=!0}).addCase(So.fulfilled,(t,n)=>{t.loading=!1,localStorage.setItem("profile",JSON.stringify({...n.payload})),t.user=n.payload}).addCase(So.rejected,(t,n)=>{t.loading=!1,t.error=n.payload.message}).addCase(ko.pending,t=>{t.isLoading=!0}).addCase(ko.fulfilled,(t,n)=>{t.isLoading=!1,t.user=n.payload}).addCase(ko.rejected,(t,n)=>{t.isLoading=!1,t.error=n.payload}).addCase(Eo.pending,t=>{t.loading=!0}).addCase(Eo.fulfilled,(t,n)=>{t.loading=!1,t.user={...t.user,result:n.payload}}).addCase(Eo.rejected,(t,n)=>{t.loading=!1,t.error=n.payload})}}),{setUser:dS,setLogout:pN,setUserDetails:uS}=Iv.actions,mN=Iv.reducer,Po=et("user/showUser",async(e,{rejectWithValue:t})=>{try{return(await dN(e)).data}catch(n){return t(n.response.data)}}),_o=et("user/verifyEmail",async({id:e,token:t,data:n},{rejectWithValue:s})=>{try{return(await iN(e,t,n)).data.message}catch(i){return s(i.response.data)}}),hN=Ti({name:"user",initialState:{users:[],error:"",loading:!1,verified:!1,user:{}},reducers:{},extraReducers:e=>{e.addCase(Po.pending,t=>{t.loading=!0,t.error=null}).addCase(Po.fulfilled,(t,n)=>{t.loading=!1,t.user=n.payload}).addCase(Po.rejected,(t,n)=>{t.loading=!1,t.error=n.payload}).addCase(_o.pending,t=>{t.loading=!0,t.error=null}).addCase(_o.fulfilled,(t,n)=>{t.loading=!1,t.verified=n.payload==="Email verified successfully"}).addCase(_o.rejected,(t,n)=>{t.loading=!1,t.error=n.error.message})}}),vN=hN.reducer,Oo=et("property/submitProperty",async(e,{rejectWithValue:t})=>{try{return(await oN(e)).data}catch(n){return t(n.response.data)}}),Xs=et("property/fetchUserProperties",async({userId:e,page:t,limit:n},{rejectWithValue:s})=>{try{return(await aN(e,t,n)).data}catch(i){return s(i.response.data)}}),Js=et("property/fetchPropertyById",async(e,{rejectWithValue:t})=>{try{return(await lN(e)).data}catch(n){return t(n.response.data)}}),To=et("property/updateProperty",async({id:e,propertyData:t},{rejectWithValue:n})=>{try{return(await cN(e,t)).data}catch(s){return n(s.response.data)}}),Ro=et("property/addFundDetails",async({id:e,fundDetails:t,toast:n},{rejectWithValue:s})=>{try{const i=await me.put(`http://67.225.129.127:3002/properties/${e}/fund-details`,t);return n.success("Submitted Successfully"),i.data}catch(i){return s(i.response.data)}}),Ao=et("property/deleteFundDetail",async({id:e,fundDetailId:t,token:n},{rejectWithValue:s})=>{try{return(await me.delete(`http://67.225.129.127:3002/properties/${e}/fund-details/${t}`,{headers:{Authorization:`Bearer ${n}`}})).data}catch(i){return s(i.response.data)}}),mr=et("properties/getProperties",async({page:e,limit:t,keyword:n=""})=>(await me.get(`http://67.225.129.127:3002/properties?page=${e}&limit=${t}&keyword=${n}`)).data),gN=Ti({name:"property",initialState:{property:{},status:"idle",error:null,userProperties:[],selectedProperty:null,totalPages:0,currentPage:1,loading:!1,properties:[],fundDetails:[]},reducers:{},extraReducers:e=>{e.addCase(Oo.pending,t=>{t.status="loading"}).addCase(Oo.fulfilled,(t,n)=>{t.status="succeeded",t.property=n.payload}).addCase(Oo.rejected,(t,n)=>{t.status="failed",t.error=n.payload}).addCase(Xs.pending,t=>{t.loading=!0}).addCase(Xs.fulfilled,(t,{payload:n})=>{t.loading=!1,t.userProperties=n.properties,t.totalPages=n.totalPages,t.currentPage=n.currentPage}).addCase(Xs.rejected,(t,{payload:n})=>{t.loading=!1,t.error=n}).addCase(Js.pending,t=>{t.status="loading"}).addCase(Js.fulfilled,(t,n)=>{t.status="succeeded",t.selectedProperty=n.payload}).addCase(Js.rejected,(t,n)=>{t.status="failed",t.error=n.payload}).addCase(To.pending,t=>{t.status="loading"}).addCase(To.fulfilled,(t,n)=>{t.status="succeeded",t.selectedProperty=n.payload}).addCase(To.rejected,(t,n)=>{t.status="failed",t.error=n.payload}).addCase(mr.pending,t=>{t.loading=!0}).addCase(mr.fulfilled,(t,n)=>{t.loading=!1,t.properties=n.payload.data,t.totalPages=n.payload.totalPages,t.currentPage=n.payload.currentPage}).addCase(mr.rejected,(t,n)=>{t.loading=!1,t.error=n.error.message}).addCase(Ro.pending,t=>{t.loading=!0}).addCase(Ro.fulfilled,(t,n)=>{t.loading=!1,t.property=n.payload.property}).addCase(Ro.rejected,(t,n)=>{t.loading=!1,t.error=n.payload}).addCase(Ao.pending,t=>{t.loading=!0}).addCase(Ao.fulfilled,(t,n)=>{t.loading=!1,t.fundDetails=t.fundDetails.filter(s=>s._id!==n.meta.arg.id)}).addCase(Ao.rejected,(t,n)=>{t.loading=!1,t.error=n.payload})}}),xN=gN.reducer,Xl=et("fundDetails/fetchFundDetails",async(e,{rejectWithValue:t})=>{try{return(await me.get(`http://67.225.129.127:3002/properties/${e}/fund-details`)).data.fundDetails}catch(n){return t(n.response.data)}}),yN=Ti({name:"fundDetails",initialState:{fundDetails:[],loading:!1,error:null},reducers:{},extraReducers:e=>{e.addCase(Xl.pending,t=>{t.loading=!0}).addCase(Xl.fulfilled,(t,n)=>{t.loading=!1,t.fundDetails=n.payload}).addCase(Xl.rejected,(t,n)=>{t.loading=!1,t.error=n.payload})}}),jN=yN.reducer,NN="http://67.225.129.127:3002",Io=et("admin/fetchAdminUser",async()=>(await me.get(`${NN}/admin/username`)).data),CN=Ti({name:"admin",initialState:{user:null,loading:!1,error:null},reducers:{},extraReducers:e=>{e.addCase(Io.pending,t=>{t.loading=!0,t.error=null}).addCase(Io.fulfilled,(t,n)=>{t.loading=!1,t.user=n.payload}).addCase(Io.rejected,(t,n)=>{t.loading=!1,t.error=n.error.message})}}),bN=CN.reducer,wN=a1({reducer:{auth:mN,user:vN,property:xN,fundDetails:jN,admin:bN}});/** - * @remix-run/router v1.19.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 ji(){return ji=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function Fv(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function kN(){return Math.random().toString(36).substr(2,8)}function vp(e,t){return{usr:e.state,key:e.key,idx:t}}function ud(e,t,n,s){return n===void 0&&(n=null),ji({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?vs(t):t,{state:n,key:t&&t.key||s||kN()})}function ma(e){let{pathname:t="/",search:n="",hash:s=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),s&&s!=="#"&&(t+=s.charAt(0)==="#"?s:"#"+s),t}function vs(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let s=e.indexOf("?");s>=0&&(t.search=e.substr(s),e=e.substr(0,s)),e&&(t.pathname=e)}return t}function EN(e,t,n,s){s===void 0&&(s={});let{window:i=document.defaultView,v5Compat:o=!1}=s,a=i.history,l=Tn.Pop,d=null,c=u();c==null&&(c=0,a.replaceState(ji({},a.state,{idx:c}),""));function u(){return(a.state||{idx:null}).idx}function f(){l=Tn.Pop;let C=u(),m=C==null?null:C-c;c=C,d&&d({action:l,location:N.location,delta:m})}function g(C,m){l=Tn.Push;let v=ud(N.location,C,m);c=u()+1;let h=vp(v,c),y=N.createHref(v);try{a.pushState(h,"",y)}catch(k){if(k instanceof DOMException&&k.name==="DataCloneError")throw k;i.location.assign(y)}o&&d&&d({action:l,location:N.location,delta:1})}function b(C,m){l=Tn.Replace;let v=ud(N.location,C,m);c=u();let h=vp(v,c),y=N.createHref(v);a.replaceState(h,"",y),o&&d&&d({action:l,location:N.location,delta:0})}function x(C){let m=i.location.origin!=="null"?i.location.origin:i.location.href,v=typeof C=="string"?C:ma(C);return v=v.replace(/ $/,"%20"),Pe(m,"No window.location.(origin|href) available to create URL for href: "+v),new URL(v,m)}let N={get action(){return l},get location(){return e(i,a)},listen(C){if(d)throw new Error("A history only accepts one active listener");return i.addEventListener(hp,f),d=C,()=>{i.removeEventListener(hp,f),d=null}},createHref(C){return t(i,C)},createURL:x,encodeLocation(C){let m=x(C);return{pathname:m.pathname,search:m.search,hash:m.hash}},push:g,replace:b,go(C){return a.go(C)}};return N}var gp;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(gp||(gp={}));function PN(e,t,n){return n===void 0&&(n="/"),_N(e,t,n,!1)}function _N(e,t,n,s){let i=typeof t=="string"?vs(t):t,o=ds(i.pathname||"/",n);if(o==null)return null;let a=Dv(e);ON(a);let l=null;for(let d=0;l==null&&d{let d={relativePath:l===void 0?o.path||"":l,caseSensitive:o.caseSensitive===!0,childrenIndex:a,route:o};d.relativePath.startsWith("/")&&(Pe(d.relativePath.startsWith(s),'Absolute route path "'+d.relativePath+'" nested under path '+('"'+s+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),d.relativePath=d.relativePath.slice(s.length));let c=$n([s,d.relativePath]),u=n.concat(d);o.children&&o.children.length>0&&(Pe(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),Dv(o.children,t,u,c)),!(o.path==null&&!o.index)&&t.push({path:c,score:LN(c,o.index),routesMeta:u})};return e.forEach((o,a)=>{var l;if(o.path===""||!((l=o.path)!=null&&l.includes("?")))i(o,a);else for(let d of Lv(o.path))i(o,a,d)}),t}function Lv(e){let t=e.split("/");if(t.length===0)return[];let[n,...s]=t,i=n.endsWith("?"),o=n.replace(/\?$/,"");if(s.length===0)return i?[o,""]:[o];let a=Lv(s.join("/")),l=[];return l.push(...a.map(d=>d===""?o:[o,d].join("/"))),i&&l.push(...a),l.map(d=>e.startsWith("/")&&d===""?"/":d)}function ON(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:MN(t.routesMeta.map(s=>s.childrenIndex),n.routesMeta.map(s=>s.childrenIndex)))}const TN=/^:[\w-]+$/,RN=3,AN=2,IN=1,FN=10,DN=-2,xp=e=>e==="*";function LN(e,t){let n=e.split("/"),s=n.length;return n.some(xp)&&(s+=DN),t&&(s+=AN),n.filter(i=>!xp(i)).reduce((i,o)=>i+(TN.test(o)?RN:o===""?IN:FN),s)}function MN(e,t){return e.length===t.length&&e.slice(0,-1).every((s,i)=>s===t[i])?e[e.length-1]-t[t.length-1]:0}function BN(e,t,n){let{routesMeta:s}=e,i={},o="/",a=[];for(let l=0;l{let{paramName:g,isOptional:b}=u;if(g==="*"){let N=l[f]||"";a=o.slice(0,o.length-N.length).replace(/(.)\/+$/,"$1")}const x=l[f];return b&&!x?c[g]=void 0:c[g]=(x||"").replace(/%2F/g,"/"),c},{}),pathname:o,pathnameBase:a,pattern:e}}function zN(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Fv(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let s=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,l,d)=>(s.push({paramName:l,isOptional:d!=null}),d?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(s.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),s]}function $N(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Fv(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function ds(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,s=e.charAt(n);return s&&s!=="/"?null:e.slice(n)||"/"}function WN(e,t){t===void 0&&(t="/");let{pathname:n,search:s="",hash:i=""}=typeof e=="string"?vs(e):e;return{pathname:n?n.startsWith("/")?n:UN(n,t):t,search:HN(s),hash:KN(i)}}function UN(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function Jl(e,t,n,s){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(s)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function qN(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Mv(e,t){let n=qN(e);return t?n.map((s,i)=>i===n.length-1?s.pathname:s.pathnameBase):n.map(s=>s.pathnameBase)}function Bv(e,t,n,s){s===void 0&&(s=!1);let i;typeof e=="string"?i=vs(e):(i=ji({},e),Pe(!i.pathname||!i.pathname.includes("?"),Jl("?","pathname","search",i)),Pe(!i.pathname||!i.pathname.includes("#"),Jl("#","pathname","hash",i)),Pe(!i.search||!i.search.includes("#"),Jl("#","search","hash",i)));let o=e===""||i.pathname==="",a=o?"/":i.pathname,l;if(a==null)l=n;else{let f=t.length-1;if(!s&&a.startsWith("..")){let g=a.split("/");for(;g[0]==="..";)g.shift(),f-=1;i.pathname=g.join("/")}l=f>=0?t[f]:"/"}let d=WN(i,l),c=a&&a!=="/"&&a.endsWith("/"),u=(o||a===".")&&n.endsWith("/");return!d.pathname.endsWith("/")&&(c||u)&&(d.pathname+="/"),d}const $n=e=>e.join("/").replace(/\/\/+/g,"/"),VN=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),HN=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,KN=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function YN(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const zv=["post","put","patch","delete"];new Set(zv);const GN=["get",...zv];new Set(GN);/** - * React Router v6.26.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 Ni(){return Ni=Object.assign?Object.assign.bind():function(e){for(var t=1;t{l.current=!0}),w.useCallback(function(c,u){if(u===void 0&&(u={}),!l.current)return;if(typeof c=="number"){s.go(c);return}let f=Bv(c,JSON.parse(a),o,u.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:$n([t,f.pathname])),(u.replace?s.replace:s.push)(f,u.state,u)},[t,s,a,o,e])}function gs(){let{matches:e}=w.useContext(Gn),t=e[e.length-1];return t?t.params:{}}function Ga(e,t){let{relative:n}=t===void 0?{}:t,{future:s}=w.useContext(Yn),{matches:i}=w.useContext(Gn),{pathname:o}=Fi(),a=JSON.stringify(Mv(i,s.v7_relativeSplatPath));return w.useMemo(()=>Bv(e,JSON.parse(a),o,n==="path"),[e,a,o,n])}function JN(e,t){return ZN(e,t)}function ZN(e,t,n,s){Ii()||Pe(!1);let{navigator:i}=w.useContext(Yn),{matches:o}=w.useContext(Gn),a=o[o.length-1],l=a?a.params:{};a&&a.pathname;let d=a?a.pathnameBase:"/";a&&a.route;let c=Fi(),u;if(t){var f;let C=typeof t=="string"?vs(t):t;d==="/"||(f=C.pathname)!=null&&f.startsWith(d)||Pe(!1),u=C}else u=c;let g=u.pathname||"/",b=g;if(d!=="/"){let C=d.replace(/^\//,"").split("/");b="/"+g.replace(/^\//,"").split("/").slice(C.length).join("/")}let x=PN(e,{pathname:b}),N=sC(x&&x.map(C=>Object.assign({},C,{params:Object.assign({},l,C.params),pathname:$n([d,i.encodeLocation?i.encodeLocation(C.pathname).pathname:C.pathname]),pathnameBase:C.pathnameBase==="/"?d:$n([d,i.encodeLocation?i.encodeLocation(C.pathnameBase).pathname:C.pathnameBase])})),o,n,s);return t&&N?w.createElement(Ya.Provider,{value:{location:Ni({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:Tn.Pop}},N):N}function eC(){let e=lC(),t=YN(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return w.createElement(w.Fragment,null,w.createElement("h2",null,"Unexpected Application Error!"),w.createElement("h3",{style:{fontStyle:"italic"}},t),n?w.createElement("pre",{style:i},n):null,null)}const tC=w.createElement(eC,null);class nC extends w.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,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?w.createElement(Gn.Provider,{value:this.props.routeContext},w.createElement(Wv.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function rC(e){let{routeContext:t,match:n,children:s}=e,i=w.useContext(Ka);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),w.createElement(Gn.Provider,{value:t},s)}function sC(e,t,n,s){var i;if(t===void 0&&(t=[]),n===void 0&&(n=null),s===void 0&&(s=null),e==null){var o;if(!n)return null;if(n.errors)e=n.matches;else if((o=s)!=null&&o.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let a=e,l=(i=n)==null?void 0:i.errors;if(l!=null){let u=a.findIndex(f=>f.route.id&&(l==null?void 0:l[f.route.id])!==void 0);u>=0||Pe(!1),a=a.slice(0,Math.min(a.length,u+1))}let d=!1,c=-1;if(n&&s&&s.v7_partialHydration)for(let u=0;u=0?a=a.slice(0,c+1):a=[a[0]];break}}}return a.reduceRight((u,f,g)=>{let b,x=!1,N=null,C=null;n&&(b=l&&f.route.id?l[f.route.id]:void 0,N=f.route.errorElement||tC,d&&(c<0&&g===0?(x=!0,C=null):c===g&&(x=!0,C=f.route.hydrateFallbackElement||null)));let m=t.concat(a.slice(0,g+1)),v=()=>{let h;return b?h=N:x?h=C:f.route.Component?h=w.createElement(f.route.Component,null):f.route.element?h=f.route.element:h=u,w.createElement(rC,{match:f,routeContext:{outlet:u,matches:m,isDataRoute:n!=null},children:h})};return n&&(f.route.ErrorBoundary||f.route.errorElement||g===0)?w.createElement(nC,{location:n.location,revalidation:n.revalidation,component:N,error:b,children:v(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):v()},null)}var qv=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(qv||{}),va=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(va||{});function iC(e){let t=w.useContext(Ka);return t||Pe(!1),t}function oC(e){let t=w.useContext($v);return t||Pe(!1),t}function aC(e){let t=w.useContext(Gn);return t||Pe(!1),t}function Vv(e){let t=aC(),n=t.matches[t.matches.length-1];return n.route.id||Pe(!1),n.route.id}function lC(){var e;let t=w.useContext(Wv),n=oC(va.UseRouteError),s=Vv(va.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[s]}function cC(){let{router:e}=iC(qv.UseNavigateStable),t=Vv(va.UseNavigateStable),n=w.useRef(!1);return Uv(()=>{n.current=!0}),w.useCallback(function(i,o){o===void 0&&(o={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,Ni({fromRouteId:t},o)))},[e,t])}function be(e){Pe(!1)}function dC(e){let{basename:t="/",children:n=null,location:s,navigationType:i=Tn.Pop,navigator:o,static:a=!1,future:l}=e;Ii()&&Pe(!1);let d=t.replace(/^\/*/,"/"),c=w.useMemo(()=>({basename:d,navigator:o,static:a,future:Ni({v7_relativeSplatPath:!1},l)}),[d,l,o,a]);typeof s=="string"&&(s=vs(s));let{pathname:u="/",search:f="",hash:g="",state:b=null,key:x="default"}=s,N=w.useMemo(()=>{let C=ds(u,d);return C==null?null:{location:{pathname:C,search:f,hash:g,state:b,key:x},navigationType:i}},[d,u,f,g,b,x,i]);return N==null?null:w.createElement(Yn.Provider,{value:c},w.createElement(Ya.Provider,{children:n,value:N}))}function uC(e){let{children:t,location:n}=e;return JN(fd(t),n)}new Promise(()=>{});function fd(e,t){t===void 0&&(t=[]);let n=[];return w.Children.forEach(e,(s,i)=>{if(!w.isValidElement(s))return;let o=[...t,i];if(s.type===w.Fragment){n.push.apply(n,fd(s.props.children,o));return}s.type!==be&&Pe(!1),!s.props.index||!s.props.children||Pe(!1);let a={id:s.props.id||o.join("-"),caseSensitive:s.props.caseSensitive,element:s.props.element,Component:s.props.Component,index:s.props.index,path:s.props.path,loader:s.props.loader,action:s.props.action,errorElement:s.props.errorElement,ErrorBoundary:s.props.ErrorBoundary,hasErrorBoundary:s.props.ErrorBoundary!=null||s.props.errorElement!=null,shouldRevalidate:s.props.shouldRevalidate,handle:s.props.handle,lazy:s.props.lazy};s.props.children&&(a.children=fd(s.props.children,o)),n.push(a)}),n}/** - * React Router DOM v6.26.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 ga(){return ga=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[i]=e[i]);return n}function fC(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function pC(e,t){return e.button===0&&(!t||t==="_self")&&!fC(e)}const mC=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],hC=["aria-current","caseSensitive","className","end","style","to","unstable_viewTransition","children"],vC="6";try{window.__reactRouterVersion=vC}catch{}const gC=w.createContext({isTransitioning:!1}),xC="startTransition",yp=ic[xC];function yC(e){let{basename:t,children:n,future:s,window:i}=e,o=w.useRef();o.current==null&&(o.current=SN({window:i,v5Compat:!0}));let a=o.current,[l,d]=w.useState({action:a.action,location:a.location}),{v7_startTransition:c}=s||{},u=w.useCallback(f=>{c&&yp?yp(()=>d(f)):d(f)},[d,c]);return w.useLayoutEffect(()=>a.listen(u),[a,u]),w.createElement(dC,{basename:t,children:n,location:l.location,navigationType:l.action,navigator:a,future:s})}const jC=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",NC=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,CC=w.forwardRef(function(t,n){let{onClick:s,relative:i,reloadDocument:o,replace:a,state:l,target:d,to:c,preventScrollReset:u,unstable_viewTransition:f}=t,g=Hv(t,mC),{basename:b}=w.useContext(Yn),x,N=!1;if(typeof c=="string"&&NC.test(c)&&(x=c,jC))try{let h=new URL(window.location.href),y=c.startsWith("//")?new URL(h.protocol+c):new URL(c),k=ds(y.pathname,b);y.origin===h.origin&&k!=null?c=k+y.search+y.hash:N=!0}catch{}let C=QN(c,{relative:i}),m=wC(c,{replace:a,state:l,target:d,preventScrollReset:u,relative:i,unstable_viewTransition:f});function v(h){s&&s(h),h.defaultPrevented||m(h)}return w.createElement("a",ga({},g,{href:x||C,onClick:N||o?s:v,ref:n,target:d}))}),ae=w.forwardRef(function(t,n){let{"aria-current":s="page",caseSensitive:i=!1,className:o="",end:a=!1,style:l,to:d,unstable_viewTransition:c,children:u}=t,f=Hv(t,hC),g=Ga(d,{relative:f.relative}),b=Fi(),x=w.useContext($v),{navigator:N,basename:C}=w.useContext(Yn),m=x!=null&&SC(g)&&c===!0,v=N.encodeLocation?N.encodeLocation(g).pathname:g.pathname,h=b.pathname,y=x&&x.navigation&&x.navigation.location?x.navigation.location.pathname:null;i||(h=h.toLowerCase(),y=y?y.toLowerCase():null,v=v.toLowerCase()),y&&C&&(y=ds(y,C)||y);const k=v!=="/"&&v.endsWith("/")?v.length-1:v.length;let O=h===v||!a&&h.startsWith(v)&&h.charAt(k)==="/",T=y!=null&&(y===v||!a&&y.startsWith(v)&&y.charAt(v.length)==="/"),_={isActive:O,isPending:T,isTransitioning:m},D=O?s:void 0,z;typeof o=="function"?z=o(_):z=[o,O?"active":null,T?"pending":null,m?"transitioning":null].filter(Boolean).join(" ");let H=typeof l=="function"?l(_):l;return w.createElement(CC,ga({},f,{"aria-current":D,className:z,ref:n,style:H,to:d,unstable_viewTransition:c}),typeof u=="function"?u(_):u)});var pd;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(pd||(pd={}));var jp;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(jp||(jp={}));function bC(e){let t=w.useContext(Ka);return t||Pe(!1),t}function wC(e,t){let{target:n,replace:s,state:i,preventScrollReset:o,relative:a,unstable_viewTransition:l}=t===void 0?{}:t,d=hn(),c=Fi(),u=Ga(e,{relative:a});return w.useCallback(f=>{if(pC(f,n)){f.preventDefault();let g=s!==void 0?s:ma(c)===ma(u);d(e,{replace:g,state:i,preventScrollReset:o,relative:a,unstable_viewTransition:l})}},[c,d,u,s,i,n,e,o,a,l])}function SC(e,t){t===void 0&&(t={});let n=w.useContext(gC);n==null&&Pe(!1);let{basename:s}=bC(pd.useViewTransitionState),i=Ga(e,{relative:t.relative});if(!n.isTransitioning)return!1;let o=ds(n.currentLocation.pathname,s)||n.currentLocation.pathname,a=ds(n.nextLocation.pathname,s)||n.nextLocation.pathname;return ha(i.pathname,a)!=null||ha(i.pathname,o)!=null}function Kv(e){var t,n,s="";if(typeof e=="string"||typeof e=="number")s+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;ttypeof e=="number"&&!isNaN(e),hr=e=>typeof e=="string",pt=e=>typeof e=="function",Fo=e=>hr(e)||pt(e)?e:null,md=e=>w.isValidElement(e)||hr(e)||pt(e)||Ci(e);function kC(e,t,n){n===void 0&&(n=300);const{scrollHeight:s,style:i}=e;requestAnimationFrame(()=>{i.minHeight="initial",i.height=s+"px",i.transition=`all ${n}ms`,requestAnimationFrame(()=>{i.height="0",i.padding="0",i.margin="0",setTimeout(t,n)})})}function Qa(e){let{enter:t,exit:n,appendPosition:s=!1,collapse:i=!0,collapseDuration:o=300}=e;return function(a){let{children:l,position:d,preventExitTransition:c,done:u,nodeRef:f,isIn:g,playToast:b}=a;const x=s?`${t}--${d}`:t,N=s?`${n}--${d}`:n,C=w.useRef(0);return w.useLayoutEffect(()=>{const m=f.current,v=x.split(" "),h=y=>{y.target===f.current&&(b(),m.removeEventListener("animationend",h),m.removeEventListener("animationcancel",h),C.current===0&&y.type!=="animationcancel"&&m.classList.remove(...v))};m.classList.add(...v),m.addEventListener("animationend",h),m.addEventListener("animationcancel",h)},[]),w.useEffect(()=>{const m=f.current,v=()=>{m.removeEventListener("animationend",v),i?kC(m,u,o):u()};g||(c?v():(C.current=1,m.className+=` ${N}`,m.addEventListener("animationend",v)))},[g]),I.createElement(I.Fragment,null,l)}}function Np(e,t){return e!=null?{content:e.content,containerId:e.props.containerId,id:e.props.toastId,theme:e.props.theme,type:e.props.type,data:e.props.data||{},isLoading:e.props.isLoading,icon:e.props.icon,status:t}:{}}const Qe=new Map;let bi=[];const hd=new Set,EC=e=>hd.forEach(t=>t(e)),Yv=()=>Qe.size>0;function Gv(e,t){var n;if(t)return!((n=Qe.get(t))==null||!n.isToastActive(e));let s=!1;return Qe.forEach(i=>{i.isToastActive(e)&&(s=!0)}),s}function Qv(e,t){md(e)&&(Yv()||bi.push({content:e,options:t}),Qe.forEach(n=>{n.buildToast(e,t)}))}function Cp(e,t){Qe.forEach(n=>{t!=null&&t!=null&&t.containerId?(t==null?void 0:t.containerId)===n.id&&n.toggle(e,t==null?void 0:t.id):n.toggle(e,t==null?void 0:t.id)})}function PC(e){const{subscribe:t,getSnapshot:n,setProps:s}=w.useRef(function(o){const a=o.containerId||1;return{subscribe(l){const d=function(u,f,g){let b=1,x=0,N=[],C=[],m=[],v=f;const h=new Map,y=new Set,k=()=>{m=Array.from(h.values()),y.forEach(_=>_())},O=_=>{C=_==null?[]:C.filter(D=>D!==_),k()},T=_=>{const{toastId:D,onOpen:z,updateId:H,children:te}=_.props,Q=H==null;_.staleId&&h.delete(_.staleId),h.set(D,_),C=[...C,_.props.toastId].filter(Z=>Z!==_.staleId),k(),g(Np(_,Q?"added":"updated")),Q&&pt(z)&&z(w.isValidElement(te)&&te.props)};return{id:u,props:v,observe:_=>(y.add(_),()=>y.delete(_)),toggle:(_,D)=>{h.forEach(z=>{D!=null&&D!==z.props.toastId||pt(z.toggle)&&z.toggle(_)})},removeToast:O,toasts:h,clearQueue:()=>{x-=N.length,N=[]},buildToast:(_,D)=>{if((W=>{let{containerId:K,toastId:Y,updateId:ee}=W;const re=K?K!==u:u!==1,ne=h.has(Y)&&ee==null;return re||ne})(D))return;const{toastId:z,updateId:H,data:te,staleId:Q,delay:Z}=D,F=()=>{O(z)},U=H==null;U&&x++;const G={...v,style:v.toastStyle,key:b++,...Object.fromEntries(Object.entries(D).filter(W=>{let[K,Y]=W;return Y!=null})),toastId:z,updateId:H,data:te,closeToast:F,isIn:!1,className:Fo(D.className||v.toastClassName),bodyClassName:Fo(D.bodyClassName||v.bodyClassName),progressClassName:Fo(D.progressClassName||v.progressClassName),autoClose:!D.isLoading&&(R=D.autoClose,A=v.autoClose,R===!1||Ci(R)&&R>0?R:A),deleteToast(){const W=h.get(z),{onClose:K,children:Y}=W.props;pt(K)&&K(w.isValidElement(Y)&&Y.props),g(Np(W,"removed")),h.delete(z),x--,x<0&&(x=0),N.length>0?T(N.shift()):k()}};var R,A;G.closeButton=v.closeButton,D.closeButton===!1||md(D.closeButton)?G.closeButton=D.closeButton:D.closeButton===!0&&(G.closeButton=!md(v.closeButton)||v.closeButton);let B=_;w.isValidElement(_)&&!hr(_.type)?B=w.cloneElement(_,{closeToast:F,toastProps:G,data:te}):pt(_)&&(B=_({closeToast:F,toastProps:G,data:te}));const L={content:B,props:G,staleId:Q};v.limit&&v.limit>0&&x>v.limit&&U?N.push(L):Ci(Z)?setTimeout(()=>{T(L)},Z):T(L)},setProps(_){v=_},setToggle:(_,D)=>{h.get(_).toggle=D},isToastActive:_=>C.some(D=>D===_),getSnapshot:()=>v.newestOnTop?m.reverse():m}}(a,o,EC);Qe.set(a,d);const c=d.observe(l);return bi.forEach(u=>Qv(u.content,u.options)),bi=[],()=>{c(),Qe.delete(a)}},setProps(l){var d;(d=Qe.get(a))==null||d.setProps(l)},getSnapshot(){var l;return(l=Qe.get(a))==null?void 0:l.getSnapshot()}}}(e)).current;s(e);const i=w.useSyncExternalStore(t,n,n);return{getToastToRender:function(o){if(!i)return[];const a=new Map;return i.forEach(l=>{const{position:d}=l.props;a.has(d)||a.set(d,[]),a.get(d).push(l)}),Array.from(a,l=>o(l[0],l[1]))},isToastActive:Gv,count:i==null?void 0:i.length}}function _C(e){const[t,n]=w.useState(!1),[s,i]=w.useState(!1),o=w.useRef(null),a=w.useRef({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:l,pauseOnHover:d,closeToast:c,onClick:u,closeOnClick:f}=e;var g,b;function x(){n(!0)}function N(){n(!1)}function C(h){const y=o.current;a.canDrag&&y&&(a.didMove=!0,t&&N(),a.delta=e.draggableDirection==="x"?h.clientX-a.start:h.clientY-a.start,a.start!==h.clientX&&(a.canCloseOnClick=!1),y.style.transform=`translate3d(${e.draggableDirection==="x"?`${a.delta}px, var(--y)`:`0, calc(${a.delta}px + var(--y))`},0)`,y.style.opacity=""+(1-Math.abs(a.delta/a.removalDistance)))}function m(){document.removeEventListener("pointermove",C),document.removeEventListener("pointerup",m);const h=o.current;if(a.canDrag&&a.didMove&&h){if(a.canDrag=!1,Math.abs(a.delta)>a.removalDistance)return i(!0),e.closeToast(),void e.collapseAll();h.style.transition="transform 0.2s, opacity 0.2s",h.style.removeProperty("transform"),h.style.removeProperty("opacity")}}(b=Qe.get((g={id:e.toastId,containerId:e.containerId,fn:n}).containerId||1))==null||b.setToggle(g.id,g.fn),w.useEffect(()=>{if(e.pauseOnFocusLoss)return document.hasFocus()||N(),window.addEventListener("focus",x),window.addEventListener("blur",N),()=>{window.removeEventListener("focus",x),window.removeEventListener("blur",N)}},[e.pauseOnFocusLoss]);const v={onPointerDown:function(h){if(e.draggable===!0||e.draggable===h.pointerType){a.didMove=!1,document.addEventListener("pointermove",C),document.addEventListener("pointerup",m);const y=o.current;a.canCloseOnClick=!0,a.canDrag=!0,y.style.transition="none",e.draggableDirection==="x"?(a.start=h.clientX,a.removalDistance=y.offsetWidth*(e.draggablePercent/100)):(a.start=h.clientY,a.removalDistance=y.offsetHeight*(e.draggablePercent===80?1.5*e.draggablePercent:e.draggablePercent)/100)}},onPointerUp:function(h){const{top:y,bottom:k,left:O,right:T}=o.current.getBoundingClientRect();h.nativeEvent.type!=="touchend"&&e.pauseOnHover&&h.clientX>=O&&h.clientX<=T&&h.clientY>=y&&h.clientY<=k?N():x()}};return l&&d&&(v.onMouseEnter=N,e.stacked||(v.onMouseLeave=x)),f&&(v.onClick=h=>{u&&u(h),a.canCloseOnClick&&c()}),{playToast:x,pauseToast:N,isRunning:t,preventExitTransition:s,toastRef:o,eventHandlers:v}}function OC(e){let{delay:t,isRunning:n,closeToast:s,type:i="default",hide:o,className:a,style:l,controlledProgress:d,progress:c,rtl:u,isIn:f,theme:g}=e;const b=o||d&&c===0,x={...l,animationDuration:`${t}ms`,animationPlayState:n?"running":"paused"};d&&(x.transform=`scaleX(${c})`);const N=Rn("Toastify__progress-bar",d?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${g}`,`Toastify__progress-bar--${i}`,{"Toastify__progress-bar--rtl":u}),C=pt(a)?a({rtl:u,type:i,defaultClassName:N}):Rn(N,a),m={[d&&c>=1?"onTransitionEnd":"onAnimationEnd"]:d&&c<1?null:()=>{f&&s()}};return I.createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":b},I.createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${g} Toastify__progress-bar--${i}`}),I.createElement("div",{role:"progressbar","aria-hidden":b?"true":"false","aria-label":"notification timer",className:C,style:x,...m}))}let TC=1;const Xv=()=>""+TC++;function RC(e){return e&&(hr(e.toastId)||Ci(e.toastId))?e.toastId:Xv()}function Zs(e,t){return Qv(e,t),t.toastId}function xa(e,t){return{...t,type:t&&t.type||e,toastId:RC(t)}}function so(e){return(t,n)=>Zs(t,xa(e,n))}function ie(e,t){return Zs(e,xa("default",t))}ie.loading=(e,t)=>Zs(e,xa("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),ie.promise=function(e,t,n){let s,{pending:i,error:o,success:a}=t;i&&(s=hr(i)?ie.loading(i,n):ie.loading(i.render,{...n,...i}));const l={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},d=(u,f,g)=>{if(f==null)return void ie.dismiss(s);const b={type:u,...l,...n,data:g},x=hr(f)?{render:f}:f;return s?ie.update(s,{...b,...x}):ie(x.render,{...b,...x}),g},c=pt(e)?e():e;return c.then(u=>d("success",a,u)).catch(u=>d("error",o,u)),c},ie.success=so("success"),ie.info=so("info"),ie.error=so("error"),ie.warning=so("warning"),ie.warn=ie.warning,ie.dark=(e,t)=>Zs(e,xa("default",{theme:"dark",...t})),ie.dismiss=function(e){(function(t){var n;if(Yv()){if(t==null||hr(n=t)||Ci(n))Qe.forEach(s=>{s.removeToast(t)});else if(t&&("containerId"in t||"id"in t)){const s=Qe.get(t.containerId);s?s.removeToast(t.id):Qe.forEach(i=>{i.removeToast(t.id)})}}else bi=bi.filter(s=>t!=null&&s.options.toastId!==t)})(e)},ie.clearWaitingQueue=function(e){e===void 0&&(e={}),Qe.forEach(t=>{!t.props.limit||e.containerId&&t.id!==e.containerId||t.clearQueue()})},ie.isActive=Gv,ie.update=function(e,t){t===void 0&&(t={});const n=((s,i)=>{var o;let{containerId:a}=i;return(o=Qe.get(a||1))==null?void 0:o.toasts.get(s)})(e,t);if(n){const{props:s,content:i}=n,o={delay:100,...s,...t,toastId:t.toastId||e,updateId:Xv()};o.toastId!==e&&(o.staleId=e);const a=o.render||i;delete o.render,Zs(a,o)}},ie.done=e=>{ie.update(e,{progress:1})},ie.onChange=function(e){return hd.add(e),()=>{hd.delete(e)}},ie.play=e=>Cp(!0,e),ie.pause=e=>Cp(!1,e);const AC=typeof window<"u"?w.useLayoutEffect:w.useEffect,io=e=>{let{theme:t,type:n,isLoading:s,...i}=e;return I.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:t==="colored"?"currentColor":`var(--toastify-icon-color-${n})`,...i})},Zl={info:function(e){return I.createElement(io,{...e},I.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(e){return I.createElement(io,{...e},I.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(e){return I.createElement(io,{...e},I.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(e){return I.createElement(io,{...e},I.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return I.createElement("div",{className:"Toastify__spinner"})}},IC=e=>{const{isRunning:t,preventExitTransition:n,toastRef:s,eventHandlers:i,playToast:o}=_C(e),{closeButton:a,children:l,autoClose:d,onClick:c,type:u,hideProgressBar:f,closeToast:g,transition:b,position:x,className:N,style:C,bodyClassName:m,bodyStyle:v,progressClassName:h,progressStyle:y,updateId:k,role:O,progress:T,rtl:_,toastId:D,deleteToast:z,isIn:H,isLoading:te,closeOnClick:Q,theme:Z}=e,F=Rn("Toastify__toast",`Toastify__toast-theme--${Z}`,`Toastify__toast--${u}`,{"Toastify__toast--rtl":_},{"Toastify__toast--close-on-click":Q}),U=pt(N)?N({rtl:_,position:x,type:u,defaultClassName:F}):Rn(F,N),G=function(L){let{theme:W,type:K,isLoading:Y,icon:ee}=L,re=null;const ne={theme:W,type:K};return ee===!1||(pt(ee)?re=ee({...ne,isLoading:Y}):w.isValidElement(ee)?re=w.cloneElement(ee,ne):Y?re=Zl.spinner():(se=>se in Zl)(K)&&(re=Zl[K](ne))),re}(e),R=!!T||!d,A={closeToast:g,type:u,theme:Z};let B=null;return a===!1||(B=pt(a)?a(A):w.isValidElement(a)?w.cloneElement(a,A):function(L){let{closeToast:W,theme:K,ariaLabel:Y="close"}=L;return I.createElement("button",{className:`Toastify__close-button Toastify__close-button--${K}`,type:"button",onClick:ee=>{ee.stopPropagation(),W(ee)},"aria-label":Y},I.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},I.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}(A)),I.createElement(b,{isIn:H,done:z,position:x,preventExitTransition:n,nodeRef:s,playToast:o},I.createElement("div",{id:D,onClick:c,"data-in":H,className:U,...i,style:C,ref:s},I.createElement("div",{...H&&{role:O},className:pt(m)?m({type:u}):Rn("Toastify__toast-body",m),style:v},G!=null&&I.createElement("div",{className:Rn("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!te})},G),I.createElement("div",null,l)),B,I.createElement(OC,{...k&&!R?{key:`pb-${k}`}:{},rtl:_,theme:Z,delay:d,isRunning:t,isIn:H,closeToast:g,hide:f,type:u,style:y,className:h,controlledProgress:R,progress:T||0})))},Xa=function(e,t){return t===void 0&&(t=!1),{enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:t}},FC=Qa(Xa("bounce",!0));Qa(Xa("slide",!0));Qa(Xa("zoom"));Qa(Xa("flip"));const DC={position:"top-right",transition:FC,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};function LC(e){let t={...DC,...e};const n=e.stacked,[s,i]=w.useState(!0),o=w.useRef(null),{getToastToRender:a,isToastActive:l,count:d}=PC(t),{className:c,style:u,rtl:f,containerId:g}=t;function b(N){const C=Rn("Toastify__toast-container",`Toastify__toast-container--${N}`,{"Toastify__toast-container--rtl":f});return pt(c)?c({position:N,rtl:f,defaultClassName:C}):Rn(C,Fo(c))}function x(){n&&(i(!0),ie.play())}return AC(()=>{if(n){var N;const C=o.current.querySelectorAll('[data-in="true"]'),m=12,v=(N=t.position)==null?void 0:N.includes("top");let h=0,y=0;Array.from(C).reverse().forEach((k,O)=>{const T=k;T.classList.add("Toastify__toast--stacked"),O>0&&(T.dataset.collapsed=`${s}`),T.dataset.pos||(T.dataset.pos=v?"top":"bot");const _=h*(s?.2:1)+(s?0:m*O);T.style.setProperty("--y",`${v?_:-1*_}px`),T.style.setProperty("--g",`${m}`),T.style.setProperty("--s",""+(1-(s?y:0))),h+=T.offsetHeight,y+=.025})}},[s,d,n]),I.createElement("div",{ref:o,className:"Toastify",id:g,onMouseEnter:()=>{n&&(i(!1),ie.pause())},onMouseLeave:x},a((N,C)=>{const m=C.length?{...u}:{...u,pointerEvents:"none"};return I.createElement("div",{className:b(N),style:m,key:`container-${N}`},C.map(v=>{let{content:h,props:y}=v;return I.createElement(IC,{...y,stacked:n,collapseAll:x,isIn:l(y.toastId,y.containerId),style:y.style,key:`toast-${y.key}`},h)}))}))}const tt=()=>{const e=new Date().getFullYear();return r.jsx(r.Fragment,{children:r.jsxs("div",{children:[r.jsx("div",{className:"footer_section layout_padding",children:r.jsxs("div",{className:"container",children:[r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-md-12"})}),r.jsx("div",{className:"footer_section_2",children:r.jsxs("div",{className:"row",children:[r.jsxs("div",{className:"col-md-4",children:[r.jsx("h2",{className:"useful_text",children:"QUICK LINKS"}),r.jsx("div",{className:"footer_menu",children:r.jsxs("ul",{children:[r.jsx("li",{children:r.jsx(ae,{to:"/",className:"link-primary text-decoration-none",children:"Home"})}),r.jsx("li",{children:r.jsx(ae,{to:"/about",className:"link-primary text-decoration-none",children:"About"})}),r.jsx("li",{children:r.jsx(ae,{to:"/services",className:"link-primary text-decoration-none",children:"Services"})}),r.jsx("li",{children:r.jsx(ae,{to:"/contact",className:"link-primary text-decoration-none",children:"Contact Us"})})]})})]}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("h2",{className:"useful_text",children:"Work Portfolio"}),r.jsx("p",{className:"lorem_text",children:"It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem"})]}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("h2",{className:"useful_text",children:"SIGN UP TO OUR NEWSLETTER"}),r.jsxs("div",{className:"form-group",children:[r.jsx("textarea",{className:"update_mail",placeholder:"Enter Your Email",rows:5,id:"comment",name:"Enter Your Email",defaultValue:""}),r.jsx("div",{className:"subscribe_bt",children:r.jsx("a",{href:"#",children:"Subscribe"})})]})]})]})}),r.jsx("div",{className:"social_icon",children:r.jsxs("ul",{children:[r.jsx("li",{children:r.jsx("a",{href:"#",children:r.jsx("i",{className:"fa fa-facebook","aria-hidden":"true"})})}),r.jsx("li",{children:r.jsx("a",{href:"#",children:r.jsx("i",{className:"fa fa-twitter","aria-hidden":"true"})})}),r.jsx("li",{children:r.jsx("a",{href:"#",children:r.jsx("i",{className:"fa fa-linkedin","aria-hidden":"true"})})}),r.jsx("li",{children:r.jsx("a",{href:"#",children:r.jsx("i",{className:"fa fa-instagram","aria-hidden":"true"})})})]})})]})}),r.jsx("div",{className:"copyright_section",children:r.jsx("div",{className:"container",children:r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-sm-12",children:r.jsxs("p",{className:"copyright_text",children:[e," All Rights Reserved."]})})})})})]})})},MC="/assets/logo-Cb1x1exd.png",Le=()=>{var i;const{user:e}=_e(o=>({...o.auth})),t=Ke(),n=hn(),s=()=>{t(pN()),n("/")};return r.jsx("div",{className:"navbar navbar-expand-lg w-100",style:{backgroundColor:"#000000",position:"fixed",top:0,left:0,right:0,zIndex:1e3},children:r.jsxs("div",{className:"container-fluid d-flex align-items-center justify-content-between",children:[r.jsxs("div",{className:"d-flex align-items-center",children:[r.jsx("img",{src:MC,alt:"logo",width:"75",height:"75",className:"img-fluid"}),r.jsx("p",{style:{display:"inline-block",fontStyle:"italic",fontSize:"14px",color:"white",margin:"0 0 0 10px"}})]}),r.jsxs("div",{className:"collapse navbar-collapse",id:"navbarSupportedContent",children:[r.jsxs("ul",{className:"navbar-nav ml-auto",children:[r.jsx("li",{className:"nav-item active",children:r.jsx(ae,{to:"/",className:"nav-link",style:{color:"#fda417",fontSize:"20px",fontWeight:"normal"},children:"Home"})}),r.jsx("li",{className:"nav-item",children:r.jsx(ae,{to:"/services",className:"nav-link",style:{fontSize:"20px",fontWeight:"normal"},children:"Services"})}),r.jsx("li",{className:"nav-item",children:r.jsx(ae,{to:"/searchmyproperties",className:"nav-link",style:{color:"#fda417",fontSize:"20px",fontWeight:"normal"},children:"Search Database"})}),r.jsx("li",{className:"nav-item",children:r.jsx(ae,{to:"/about",className:"nav-link",style:{fontSize:"20px",fontWeight:"normal"},children:"About"})}),r.jsx("li",{className:"nav-item",children:r.jsx(ae,{to:"/searchproperties",className:"nav-link",style:{color:"#fda417",fontSize:"20px",fontWeight:"normal"},children:"Search Properties"})}),r.jsx("li",{className:"nav-item",children:r.jsx(ae,{to:"/contact",className:"nav-link",style:{fontSize:"20px",fontWeight:"normal"},children:"Contact"})})]}),r.jsx("div",{className:"navbar-right",children:(i=e==null?void 0:e.result)!=null&&i._id?r.jsxs(r.Fragment,{children:[r.jsx(ae,{to:"/dashboard",style:{fontWeight:"bold",color:"#fda417",marginRight:"20px"},children:"Dashboard"}),r.jsx("span",{onClick:s,style:{fontWeight:"bold",color:"#fda417",cursor:"pointer"},className:"nav-link logout-link",children:"Logout"})]}):r.jsxs(r.Fragment,{children:[r.jsx(ae,{to:"/register",className:"nav-link",style:{fontWeight:"bold",color:"#fda417",marginRight:"20px"},children:"Register"}),r.jsx(ae,{to:"/login",className:"nav-link",style:{fontWeight:"bold",color:"#fda417"},children:"Login"})]})})]})]})})},BC=()=>r.jsxs(r.Fragment,{children:[r.jsx(Le,{}),r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{}),r.jsxs("div",{children:[r.jsx("div",{className:"header_section",children:r.jsx("div",{className:"banner_section layout_padding",children:r.jsxs("div",{id:"my_slider",className:"carousel slide","data-ride":"carousel",children:[r.jsxs("div",{className:"carousel-inner",children:[r.jsx("div",{className:"carousel-item active",children:r.jsx("div",{className:"container",children:r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-sm-12",children:r.jsxs("div",{className:"banner_taital_main",children:[r.jsx("h1",{className:"banner_taital",children:"Reinventing real estate investment"}),r.jsxs("p",{className:"banner_text",children:["Owners/operators, and real estate investment firms to excel in what they do best: finding new opportunities"," "]}),r.jsxs("div",{className:"btn_main",children:[r.jsx("div",{className:"started_text active",children:r.jsx("a",{href:"#",children:"Contact US"})}),r.jsx("div",{className:"started_text",children:r.jsx("a",{href:"#",children:"About Us"})})]})]})})})})}),r.jsx("div",{className:"carousel-item",children:r.jsx("div",{className:"container",children:r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-sm-12",children:r.jsxs("div",{className:"banner_taital_main",children:[r.jsx("h1",{className:"banner_taital",children:"streamline investment management"}),r.jsxs("p",{className:"banner_text",children:["Best possible experience to our customers and their investors."," "]}),r.jsxs("div",{className:"btn_main",children:[r.jsx("div",{className:"started_text active",children:r.jsx("a",{href:"#",children:"Contact US"})}),r.jsx("div",{className:"started_text",children:r.jsx("a",{href:"#",children:"About Us"})})]})]})})})})}),r.jsx("div",{className:"carousel-item",children:r.jsx("div",{className:"container",children:r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-sm-12",children:r.jsxs("div",{className:"banner_taital_main",children:[r.jsx("h1",{className:"banner_taital",children:"Increase your efficiency and security"}),r.jsxs("p",{className:"banner_text",children:["All-in-one real estate investment management platform with 100% security tools"," "]}),r.jsxs("div",{className:"btn_main",children:[r.jsx("div",{className:"started_text active",children:r.jsx("a",{href:"#",children:"Contact US"})}),r.jsx("div",{className:"started_text",children:r.jsx("a",{href:"#",children:"About Us"})})]})]})})})})})]}),r.jsx("a",{className:"carousel-control-prev",href:"#my_slider",role:"button","data-slide":"prev",children:r.jsx("i",{className:"fa fa-angle-left"})}),r.jsx("a",{className:"carousel-control-next",href:"#my_slider",role:"button","data-slide":"next",children:r.jsx("i",{className:"fa fa-angle-right"})})]})})}),r.jsx("div",{className:"services_section layout_padding",children:r.jsxs("div",{className:"container-fluid",children:[r.jsx("div",{className:"row",children:r.jsxs("div",{className:"col-sm-12",children:[r.jsx("h1",{className:"services_taital",children:"Our Services"}),r.jsx("p",{className:"services_text_1",children:"your documents, always and immediately within reach"})]})}),r.jsx("div",{className:"services_section_2",children:r.jsxs("div",{className:"row",children:[r.jsx("div",{className:"col-lg-3 col-sm-6",children:r.jsxs("div",{className:"box_main active",children:[r.jsx("div",{className:"service_img",children:r.jsx("img",{src:"images/icon-1.png"})}),r.jsx("h4",{className:"development_text",children:"Dedication Services"}),r.jsx("p",{className:"services_text",children:"Real estate investing even on a very small scale remains a tried and true means of building and individual cash flow and wealth"}),r.jsx("div",{className:"readmore_bt",children:r.jsx("a",{href:"#",children:"Read More"})})]})}),r.jsx("div",{className:"col-lg-3 col-sm-6",children:r.jsxs("div",{className:"box_main",children:[r.jsx("div",{className:"service_img",children:r.jsx("img",{src:"images/icon-2.png"})}),r.jsx("h4",{className:"development_text",children:"Building work Reports"}),r.jsx("p",{className:"services_text",children:"Deliver all the reports your investors need. Eliminate manual work and human errors with automatic distribution and allocation"}),r.jsx("div",{className:"readmore_bt",children:r.jsx("a",{href:"#",children:"Read More"})})]})}),r.jsx("div",{className:"col-lg-3 col-sm-6",children:r.jsxs("div",{className:"box_main",children:[r.jsx("div",{className:"service_img",children:r.jsx("img",{src:"images/icon-3.png"})}),r.jsx("h4",{className:"development_text",children:"Reporting continuously"}),r.jsx("p",{className:"services_text",children:"Streamlining investor interactions, gaining complete visibility into your data, and using smart filters to create automatic workflows"}),r.jsx("div",{className:"readmore_bt",children:r.jsx("a",{href:"#",children:"Read More"})})]})}),r.jsx("div",{className:"col-lg-3 col-sm-6",children:r.jsxs("div",{className:"box_main",children:[r.jsx("div",{className:"service_img",children:r.jsx("img",{src:"images/icon-4.png"})}),r.jsx("h4",{className:"development_text",children:"Manage your investment "}),r.jsx("p",{className:"services_text",children:"We offer a comprehensive set of tools and services to fully facilitate all your real estate investment management needs"}),r.jsx("div",{className:"readmore_bt",children:r.jsx("a",{href:"#",children:"Read More"})})]})})]})})]})})]}),r.jsx(tt,{})]}),zC=()=>r.jsxs(r.Fragment,{children:[r.jsx(Le,{}),r.jsxs("div",{className:"about_section layout_padding",children:[r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{}),r.jsx("div",{className:"container",children:r.jsxs("div",{className:"row",children:[r.jsxs("div",{className:"col-md-6",children:[r.jsx("h1",{className:"about_taital",children:"About Us"}),r.jsxs("p",{className:"about_text",children:["There are many variations of passages of Lorem Ipsum available, but the majority have suffered alteration in some form, by injected humour, or randomised words which don't look even slightly believable. If you are going to use a passage of Lorem Ipsum, you need to be sure there isn't anything embarrassing hidden in the middle of text. All"," "]}),r.jsx("div",{className:"read_bt_1",children:r.jsx("a",{href:"#",children:"Read More"})})]}),r.jsx("div",{className:"col-md-6",children:r.jsx("div",{className:"about_img",children:r.jsx("div",{className:"video_bt",children:r.jsx("div",{className:"play_icon",children:r.jsx("img",{src:"images/play-icon.png"})})})})})]})}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{})]}),r.jsx(tt,{})]}),$C=()=>r.jsxs(r.Fragment,{children:[r.jsx(Le,{}),r.jsxs("div",{className:"contact_section layout_padding",children:[r.jsx("div",{className:"container",children:r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-md-12",children:r.jsx("h1",{className:"contact_taital",children:"Contact Us"})})})}),r.jsx("div",{className:"container-fluid",children:r.jsx("div",{className:"contact_section_2",children:r.jsxs("div",{className:"row",children:[r.jsx("div",{className:"col-md-6",children:r.jsx("form",{action:!0,children:r.jsxs("div",{className:"mail_section_1",children:[r.jsx("input",{type:"text",className:"mail_text",placeholder:"Name",name:"Name"}),r.jsx("input",{type:"text",className:"mail_text",placeholder:"Phone Number",name:"Phone Number"}),r.jsx("input",{type:"text",className:"mail_text",placeholder:"Email",name:"Email"}),r.jsx("textarea",{className:"massage-bt",placeholder:"Massage",rows:5,id:"comment",name:"Massage",defaultValue:""}),r.jsx("div",{className:"send_bt",children:r.jsx("a",{href:"#",children:"SEND"})})]})})}),r.jsx("div",{className:"col-md-6 padding_left_15",children:r.jsx("div",{className:"contact_img",children:r.jsx("img",{src:"images/contact-img.png"})})})]})})})]}),r.jsx(tt,{})]});var nn=function(){return nn=Object.assign||function(e){for(var t,n=1,s=arguments.length;n{const[e,t]=w.useState(fb),[n,s]=w.useState(!1),{loading:i,error:o}=_e(k=>({...k.auth})),{title:a,email:l,password:d,firstName:c,middleName:u,lastName:f,confirmPassword:g,termsconditions:b,userType:x}=e,N=Ke(),C=hn();w.useEffect(()=>{o&&ie.error(o)},[o]),w.useEffect(()=>{s(a!=="None"&&l&&d&&c&&u&&f&&g&&b&&x!=="")},[a,l,d,c,u,f,g,b,x]);const m=k=>{if(k.preventDefault(),d!==g)return ie.error("Password should match");n?N(So({formValue:e,navigate:C,toast:ie})):ie.error("Please fill in all fields and select all checkboxes")},v=k=>k.charAt(0).toUpperCase()+k.slice(1),h=k=>{const{name:O,value:T,type:_,checked:D}=k.target;t(_==="checkbox"?z=>({...z,[O]:D}):z=>({...z,[O]:O==="email"||O==="password"||O==="confirmPassword"?T:v(T)}))},y=k=>{t(O=>({...O,userType:k.target.value}))};return r.jsxs(r.Fragment,{children:[r.jsx(Le,{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("section",{className:"card",style:{minHeight:"100vh",backgroundColor:"#FFFFFF"},children:r.jsx("div",{className:"container-fluid px-0",children:r.jsxs("div",{className:"row gy-4 align-items-center justify-content-center",children:[r.jsx("div",{className:"col-12 col-md-0 col-xl-20 text-center text-md-start"}),r.jsx("div",{className:"col-12 col-md-6 col-xl-5",children:r.jsx("div",{className:"card border-0 rounded-4 shadow-lg",style:{width:"100%"},children:r.jsxs("div",{className:"card-body p-3 p-md-4 p-xl-5",children:[r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-12",children:r.jsxs("div",{className:"mb-4",children:[r.jsx("h2",{className:"h3",children:"Registration"}),r.jsx("h3",{style:{color:"red"},children:'All fields are mandatory to enable "Sign up"'}),r.jsx("hr",{})]})})}),r.jsx("form",{onSubmit:m,children:r.jsxs("div",{className:"row gy-3 overflow-hidden",children:[r.jsx("div",{className:"col-12",children:r.jsxs("div",{className:"form-floating mb-3",children:[r.jsxs("label",{className:"form-label",children:["Please select the role. ",r.jsx("br",{}),r.jsx("br",{})]}),r.jsxs("div",{className:"form-check form-check-inline",children:[r.jsx("input",{className:"form-check-input",type:"radio",name:"userType",value:"Lender",checked:x==="Lender",onChange:y,required:!0}),r.jsx("label",{className:"form-check-label",children:"Lender"})]}),r.jsxs("div",{className:"form-check form-check-inline",children:[r.jsx("input",{className:"form-check-input",type:"radio",name:"userType",value:"Borrower",checked:x==="Borrower",onChange:y,required:!0}),r.jsxs("label",{className:"form-check-label",children:["Borrower"," "]}),r.jsx("br",{}),r.jsx("br",{})]})]})}),r.jsxs("div",{className:"col-12",children:[r.jsxs("select",{className:"form-floating mb-3 form-control","aria-label":"Default select example",name:"title",value:a,onChange:h,children:[r.jsx("option",{value:"None",children:"Please Select Title"}),r.jsx("option",{value:"Dr",children:"Dr"}),r.jsx("option",{value:"Prof",children:"Prof"}),r.jsx("option",{value:"Mr",children:"Mr"}),r.jsx("option",{value:"Miss",children:"Miss"})]}),r.jsx("br",{})]}),r.jsx("div",{className:"col-12",children:r.jsxs("div",{className:"form-floating mb-3",children:[r.jsx("input",{type:"text",className:"form-control",value:c,name:"firstName",onChange:h,placeholder:"First Name",required:"required"}),r.jsx("label",{htmlFor:"firstName",className:"form-label",children:"First Name"})]})}),r.jsx("div",{className:"col-12",children:r.jsxs("div",{className:"form-floating mb-3",children:[r.jsx("input",{type:"text",className:"form-control",value:u,name:"middleName",onChange:h,placeholder:"Middle Name",required:"required"}),r.jsx("label",{htmlFor:"middleName",className:"form-label",children:"Middle Name"})]})}),r.jsx("div",{className:"col-12",children:r.jsxs("div",{className:"form-floating mb-3",children:[r.jsx("input",{type:"text",className:"form-control",value:f,name:"lastName",onChange:h,placeholder:"Last Name",required:"required"}),r.jsx("label",{htmlFor:"lastName",className:"form-label",children:"Last Name"})]})}),r.jsx("div",{className:"col-12",children:r.jsxs("div",{className:"form-floating mb-3",children:[r.jsx("input",{type:"email",className:"form-control",value:l,name:"email",onChange:h,placeholder:"name@example.com",required:"required"}),r.jsx("label",{htmlFor:"email",className:"form-label",children:"Email"})]})}),r.jsx("div",{className:"col-12",children:r.jsxs("div",{className:"form-floating mb-3",children:[r.jsx("input",{type:"password",className:"form-control",value:d,name:"password",onChange:h,placeholder:"Password",required:"required"}),r.jsx("label",{htmlFor:"password",className:"form-label",children:"Password"})]})}),r.jsx("div",{className:"col-12",children:r.jsxs("div",{className:"form-floating mb-3",children:[r.jsx("input",{type:"password",className:"form-control",value:g,name:"confirmPassword",onChange:h,placeholder:"confirmPassword",required:"required"}),r.jsx("label",{htmlFor:"password",className:"form-label",children:"Retype Password"})]})}),r.jsx("div",{className:"col-12",children:r.jsxs("div",{className:"form-check",children:[r.jsx("input",{className:"form-check-input",type:"checkbox",id:"termsconditions",value:b,name:"termsconditions",checked:b,onChange:h,required:!0}),r.jsxs("label",{className:"form-check-label text-secondary",htmlFor:"iAgree",children:["I agree to the"," ",r.jsx("a",{href:"#!",className:"link-primary text-decoration-none",children:"terms and conditions"})]})]})}),r.jsx("div",{className:"col-12",children:r.jsx("div",{className:"d-grid",children:r.jsxs("button",{className:"btn btn-primary btn-lg",type:"submit",style:{backgroundColor:"#fda417",border:"#fda417"},disabled:!n||i,children:[i&&r.jsx(Jv.Bars,{}),"Sign up"]})})})]})}),r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-12",children:r.jsx("div",{className:"d-flex gap-2 gap-md-4 flex-column flex-md-row justify-content-md-end mt-4",children:r.jsxs("p",{className:"m-0 text-secondary text-center",children:["Already have an account?"," ",r.jsx("a",{href:"#!",className:"link-primary text-decoration-none",children:"Sign in"})]})})})}),r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-12"})})]})})})]})})}),r.jsx(tt,{})]})},mb={email:"",password:""},hb=()=>{const[e,t]=w.useState(mb),{loading:n,error:s}=_e(u=>({...u.auth})),{email:i,password:o}=e,a=Ke(),l=hn();w.useEffect(()=>{s&&ie.error(s)},[s]);const d=u=>{u.preventDefault(),i&&o&&a(wo({formValue:e,navigate:l,toast:ie}))},c=u=>{let{name:f,value:g}=u.target;t({...e,[f]:g})};return r.jsxs(r.Fragment,{children:[r.jsx(Le,{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("section",{className:"py-19 py-md-5 py-xl-8",style:{minHeight:"100vh",backgroundColor:"#FFFFFF"},children:r.jsx("div",{className:"container-fluid px-0",children:r.jsxs("div",{className:"row gy-4 align-items-center justify-content-center",children:[r.jsx("div",{className:"col-12 col-md-6 col-xl-20 text-center text-md-start",children:r.jsx("div",{className:"text-bg-primary",children:r.jsxs("div",{className:"px-4",children:[r.jsx("hr",{className:"border-primary-subtle mb-4"}),r.jsx("p",{className:"lead mb-5",children:"A beautiful, easy-to-use, and secure Investor Portal that gives your investors everything they may need"}),r.jsx("div",{className:"text-endx",children:r.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:48,height:48,fill:"currentColor",className:"bi bi-grip-horizontal",viewBox:"0 0 16 16",children:r.jsx("path",{d:"M2 8a1 1 0 1 1 0 2 1 1 0 0 1 0-2zm0-3a1 1 0 1 1 0 2 1 1 0 0 1 0-2zm3 3a1 1 0 1 1 0 2 1 1 0 0 1 0-2zm0-3a1 1 0 1 1 0 2 1 1 0 0 1 0-2zm3 3a1 1 0 1 1 0 2 1 1 0 0 1 0-2zm0-3a1 1 0 1 1 0 2 1 1 0 0 1 0-2zm3 3a1 1 0 1 1 0 2 1 1 0 0 1 0-2zm0-3a1 1 0 1 1 0 2 1 1 0 0 1 0-2zm3 3a1 1 0 1 1 0 2 1 1 0 0 1 0-2zm0-3a1 1 0 1 1 0 2 1 1 0 0 1 0-2z"})})})]})})}),r.jsx("div",{className:"col-12 col-md-6 col-xl-5",children:r.jsx("div",{className:"card border-0 rounded-4 shadow-lg",style:{width:"100%"},children:r.jsxs("div",{className:"card-body p-3 p-md-4 p-xl-5",children:[r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-12",children:r.jsx("div",{className:"mb-4",children:r.jsx("h2",{className:"h3",children:"Please Login"})})})}),r.jsx("form",{method:"POST",children:r.jsxs("div",{className:"row gy-3 overflow-hidden",children:[r.jsx("div",{className:"col-12"}),r.jsx("div",{className:"col-12"}),r.jsx("div",{className:"col-12",children:r.jsxs("div",{className:"form-floating mb-3",children:[r.jsx("input",{type:"email",className:"form-control",id:"email",placeholder:"name@example.com",value:i,name:"email",onChange:c,required:!0}),r.jsx("label",{htmlFor:"email",className:"form-label",children:"Email"})]})}),r.jsx("div",{className:"col-12",children:r.jsxs("div",{className:"form-floating mb-3",children:[r.jsx("input",{type:"password",className:"form-control",id:"password",placeholder:"Password",value:o,name:"password",onChange:c,required:!0}),r.jsx("label",{htmlFor:"password",className:"form-label",children:"Password"})]})}),r.jsx("div",{className:"col-12",children:r.jsxs("div",{className:"form-check",children:[r.jsx("input",{className:"form-check-input",type:"checkbox",name:"iAgree",id:"iAgree",required:!0}),r.jsxs("label",{className:"form-check-label text-secondary",htmlFor:"iAgree",children:["Remember me"," "]})]})}),r.jsx("div",{className:"col-12",children:r.jsx("div",{className:"d-grid",children:r.jsxs("button",{className:"btn btn-primary btn-lg",type:"submit",name:"signin",value:"Sign in",onClick:d,style:{backgroundColor:"#fda417",border:"#fda417"},children:[n&&r.jsx(Jv.Bars,{}),"Sign In"]})})})]})}),r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-12",children:r.jsx("div",{className:"d-flex gap-2 gap-md-4 flex-column flex-md-row justify-content-md-end mt-4",children:r.jsxs("p",{className:"m-0 text-secondary text-center",children:["Don't have an account?"," ",r.jsx(ae,{to:"/register",className:"link-primary text-decoration-none",children:"Register"}),r.jsx(ae,{to:"/forgotpassword",className:"nav-link",children:"Forgot Password"})]})})})}),r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-12"})})]})})})]})})}),r.jsx(tt,{})]})},Ms="/assets/samplepic-BM_cnzgz.jpg";var Zv={exports:{}};(function(e,t){(function(n,s){e.exports=s()})(zg,function(){return function(n){function s(o){if(i[o])return i[o].exports;var a=i[o]={exports:{},id:o,loaded:!1};return n[o].call(a.exports,a,a.exports,s),a.loaded=!0,a.exports}var i={};return s.m=n,s.c=i,s.p="",s(0)}([function(n,s,i){function o(b){return b&&b.__esModule?b:{default:b}}function a(b,x){if(!(b instanceof x))throw new TypeError("Cannot call a class as a function")}function l(b,x){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!x||typeof x!="object"&&typeof x!="function"?b:x}function d(b,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof x);b.prototype=Object.create(x&&x.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),x&&(Object.setPrototypeOf?Object.setPrototypeOf(b,x):b.__proto__=x)}Object.defineProperty(s,"__esModule",{value:!0});var c=function(){function b(x,N){for(var C=0;C1)for(var k=1;k1?u-1:0),g=1;g2?f-2:0),b=2;b1){for(var Z=Array(Q),F=0;F"u"||_.$$typeof!==m)){var G=typeof y=="function"?y.displayName||y.name||"Unknown":y;D&&d(_,G),z&&c(_,G)}return h(y,D,z,H,te,b.current,_)},h.createFactory=function(y){var k=h.createElement.bind(null,y);return k.type=y,k},h.cloneAndReplaceKey=function(y,k){var O=h(y.type,k,y.ref,y._self,y._source,y._owner,y.props);return O},h.cloneElement=function(y,k,O){var T,_=g({},y.props),D=y.key,z=y.ref,H=y._self,te=y._source,Q=y._owner;if(k!=null){a(k)&&(z=k.ref,Q=b.current),l(k)&&(D=""+k.key);var Z;y.type&&y.type.defaultProps&&(Z=y.type.defaultProps);for(T in k)C.call(k,T)&&!v.hasOwnProperty(T)&&(k[T]===void 0&&Z!==void 0?_[T]=Z[T]:_[T]=k[T])}var F=arguments.length-2;if(F===1)_.children=O;else if(F>1){for(var U=Array(F),G=0;G1?c-1:0),f=1;f2?u-2:0),g=2;g.")}return T}function c(O,T){if(O._store&&!O._store.validated&&O.key==null){O._store.validated=!0;var _=y.uniqueKey||(y.uniqueKey={}),D=d(T);if(!_[D]){_[D]=!0;var z="";O&&O._owner&&O._owner!==g.current&&(z=" It was passed a child from "+O._owner.getName()+"."),o.env.NODE_ENV!=="production"&&v(!1,'Each child in an array or iterator should have a unique "key" prop.%s%s See https://fb.me/react-warning-keys for more information.%s',D,z,b.getCurrentStackAddendum(O))}}}function u(O,T){if(typeof O=="object"){if(Array.isArray(O))for(var _=0;_1?Y-1:0),re=1;re"u"||L===null)return""+L;var W=Q(L);if(W==="object"){if(L instanceof Date)return"date";if(L instanceof RegExp)return"regexp"}return W}function F(L){var W=Z(L);switch(W){case"array":case"object":return"an "+W;case"boolean":case"date":case"regexp":return"a "+W;default:return W}}function U(L){return L.constructor&&L.constructor.name?L.constructor.name:A}var G=typeof Symbol=="function"&&Symbol.iterator,R="@@iterator",A="<>",B={array:m("array"),bool:m("boolean"),func:m("function"),number:m("number"),object:m("object"),string:m("string"),symbol:m("symbol"),any:v(),arrayOf:h,element:y(),instanceOf:k,node:D(),objectOf:T,oneOf:O,oneOfType:_,shape:z};return N.prototype=Error.prototype,B.checkPropTypes=u,B.PropTypes=B,B}}).call(s,i(1))},function(n,s){function i(l){var d=/[=:]/g,c={"=":"=0",":":"=2"},u=(""+l).replace(d,function(f){return c[f]});return"$"+u}function o(l){var d=/(=0|=2)/g,c={"=0":"=","=2":":"},u=l[0]==="."&&l[1]==="$"?l.substring(2):l.substring(1);return(""+u).replace(d,function(f){return c[f]})}var a={escape:i,unescape:o};n.exports=a},function(n,s,i){(function(o){var a=i(5),l=i(2),d=function(m){var v=this;if(v.instancePool.length){var h=v.instancePool.pop();return v.call(h,m),h}return new v(m)},c=function(m,v){var h=this;if(h.instancePool.length){var y=h.instancePool.pop();return h.call(y,m,v),y}return new h(m,v)},u=function(m,v,h){var y=this;if(y.instancePool.length){var k=y.instancePool.pop();return y.call(k,m,v,h),k}return new y(m,v,h)},f=function(m,v,h,y){var k=this;if(k.instancePool.length){var O=k.instancePool.pop();return k.call(O,m,v,h,y),O}return new k(m,v,h,y)},g=function(m){var v=this;m instanceof v||(o.env.NODE_ENV!=="production"?l(!1,"Trying to release an instance into a pool of a different type."):a("25")),m.destructor(),v.instancePool.length{const[e,t]=w.useState("propertydetails"),n=()=>{e==="propertydetails"&&t("Images"),e==="Images"&&t("Accounting")},s=()=>{e==="Images"&&t("propertydetails"),e==="Accounting"&&t("Images")},i=Ke(),{status:o,error:a}=_e(p=>p.property),{user:l}=_e(p=>({...p.auth})),d=[1,2,3,4,5,6,7,8,9,10],[c,u]=w.useState({propertyTaxInfo:[{propertytaxowned:"0",ownedyear:"0",taxassessed:"0",taxyear:"0"}],images:[{title:"",file:""}],googleMapLink:"",renovationRisk:null,purchaseCost:"0",costPaidAtoB:[{title:"Closing Fees - Settlement Fee",price:"0"},{title:"Closing Fees - Owner's Title Insurance",price:"0"},{title:"Courier Fees",price:"0"},{title:"Wire Fee",price:"0"},{title:"E recording Fee",price:"0"},{title:"Recording Fee",price:"0"},{title:"Property Tax",price:"0"}],credits:[{title:"Credits",price:"0"}],cashAdjustments:[{title:"Cash Adjustments",price:"0"}],incidentalCost:[{title:"Accounting Fees",price:"0"},{title:"Bank Charges",price:"0"},{title:"Legal Fees",price:"0"},{title:"Property Taxes",price:"0"},{title:"Travel Expenses",price:"0"}],carryCosts:[{title:"Electricity",price:"0"},{title:"Water and Sewer",price:"0"},{title:"Natural Gas",price:"0"},{title:"Trash and Recycling",price:"0"},{title:"Internet and Cable",price:"0"},{title:"Heating Oil/Propane",price:"0"},{title:"HOA fees",price:"0"},{title:"Dump fees",price:"0"},{title:"Insurance",price:"0"},{title:"Interest on Loans",price:"0"},{title:"Loan Payment",price:"0"},{title:"Property Taxes",price:"0"},{title:"Security",price:"0"},{title:"Real Estates fees",price:"0"}],renovationCost:[{title:"Demolition: Removing existing structures or finishes",price:"0"},{title:"Framing: Making structural changes or additions",price:"0"},{title:"Plumbing: Installing or modifying plumbing systems",price:"0"},{title:"Electrical: Updating wiring and fixtures",price:"0"},{title:"HVAC: Installing or upgrading heating and cooling systems",price:"0"},{title:"Insulation: Adding or replacing insulation",price:"0"},{title:"Drywall: Hanging and finishing drywall",price:"0"},{title:"Interior Finishes: Painting, flooring, cabinetry, and fixtures",price:"0"},{title:"Exterior Work: Addressing siding, roofing, or landscaping, if applicable",price:"0"},{title:"Final Inspections: Ensuring everything meets codes",price:"0"},{title:"Punch List: Completing any remaining task",price:"0"}],sellingPriceBtoC:"0",costPaidOutofClosing:[{title:"Buyers Agent Commission",price:"0"},{title:"Sellers Agent Commission",price:"0"},{title:"Home Warranty",price:"0"},{title:"Document Preparation",price:"0"},{title:"Excise Tax",price:"0"},{title:"Legal Fees",price:"0"},{title:"Wire Fees/courier Fees",price:"0"},{title:"County Taxes",price:"0"},{title:"HOA Fee",price:"0"},{title:"Payoff of 1st Mortgage",price:"0"},{title:"Payoff of 2nd Mortgage",price:"0"},{title:"Payoff 3rd Mortgage",price:"0"}],adjustments:[{title:"adjustments",price:"0"}],incomestatement:[{title:"income statement",price:"0"},{title:"income statement",price:"0"}],fundspriortoclosing:"0",shorttermrental:"0",OtherIncome:"0",InsuranceClaim:"0",LongTermRental:"0",FinancingCostClosingCost:"0"}),[f,g]=w.useState(!1),b=(p,j)=>{console.log("File received:",p);const S=[...c.images];S[j].file=p.base64,u({...c,images:S})},x=()=>{u({...c,images:[...c.images,{title:"",file:""}]})},N=p=>{const j=c.images.filter((S,M)=>M!==p);u({...c,images:j})},C=(p,j)=>{const S=[...c.images];S[p].title=j.target.value,u({...c,images:S})},m=(p,j,S)=>{const{name:M,value:q}=p.target;if(S==="propertyTaxInfo"){const X=[...c.propertyTaxInfo];X[j][M]=q,u({...c,propertyTaxInfo:X})}else u({...c,[M]:q})},v=()=>{u({...c,propertyTaxInfo:[...c.propertyTaxInfo,{propertytaxowned:"",ownedyear:"",taxassessed:"",taxyear:""}]})},h=p=>{const j=c.propertyTaxInfo.filter((S,M)=>M!==p);u({...c,propertyTaxInfo:j})},y=()=>{u(p=>({...p,costPaidAtoB:[...p.costPaidAtoB,{title:"",price:""}]}))},k=p=>{const j=c.costPaidAtoB.filter((S,M)=>M!==p);u(S=>({...S,costPaidAtoB:j}))},O=(p,j,S)=>{const M=[...c.costPaidAtoB];M[p][j]=S,u(q=>({...q,costPaidAtoB:M}))},T=(p,j)=>{let S=p.target.value;if(S=S.replace(/^\$/,"").trim(),/^\d*\.?\d*$/.test(S)||S===""){const q=c.costPaidAtoB.map((X,ce)=>ce===j?{...X,price:S,isInvalid:!1}:X);u({...c,costPaidAtoB:q})}else{const q=c.costPaidAtoB.map((X,ce)=>ce===j?{...X,isInvalid:!0}:X);u({...c,costPaidAtoB:q})}},_=()=>{const p=c.costPaidAtoB.reduce((S,M)=>{const q=parseFloat(M.price)||0;return S+q},0),j=parseFloat(c.purchaseCost)||0;return p+j},D=()=>{u(p=>({...p,credits:[...p.credits,{title:"",price:""}]}))},z=p=>{const j=c.credits.filter((S,M)=>M!==p);u(S=>({...S,credits:j}))},H=(p,j,S)=>{const M=[...c.credits];M[p][j]=S,u(q=>({...q,credits:M}))},te=(p,j)=>{const S=p.target.value;if(/^\d*\.?\d*$/.test(S)||S===""){const q=c.credits.map((X,ce)=>ce===j?{...X,price:S,isInvalid:!1}:X);u({...c,credits:q})}else{const q=c.credits.map((X,ce)=>ce===j?{...X,isInvalid:!0}:X);u({...c,credits:q})}},Q=()=>c.credits.reduce((p,j)=>{const S=parseFloat(j.price);return p+(isNaN(S)?0:S)},0),Z=()=>{const p=c.costPaidAtoB.reduce((M,q)=>{const X=parseFloat(q.price)||0;return M+X},0),j=c.credits.reduce((M,q)=>{const X=parseFloat(q.price)||0;return M+X},0),S=parseFloat(c.purchaseCost)||0;return p+j+S},F=()=>{u(p=>({...p,cashAdjustments:[...p.cashAdjustments,{title:"",price:""}]}))},U=p=>{const j=c.cashAdjustments.filter((S,M)=>M!==p);u(S=>({...S,cashAdjustments:j}))},G=(p,j,S)=>{const M=[...c.cashAdjustments];M[p][j]=S,u(q=>({...q,cashAdjustments:M}))},R=(p,j)=>{const S=p.target.value;if(/^\d*\.?\d*$/.test(S)||S===""){const q=c.cashAdjustments.map((X,ce)=>ce===j?{...X,price:S,isInvalid:!1}:X);u({...c,cashAdjustments:q})}else{const q=c.cashAdjustments.map((X,ce)=>ce===j?{...X,isInvalid:!0}:X);u({...c,cashAdjustments:q})}},A=()=>c.cashAdjustments.reduce((p,j)=>{const S=parseFloat(j.price);return p+(isNaN(S)?0:S)},0),B=()=>{const p=A(),j=Q(),S=_();return p+j+S},L=()=>{u(p=>({...p,incidentalCost:[...p.incidentalCost,{title:"",price:""}]}))},W=p=>{const j=c.incidentalCost.filter((S,M)=>M!==p);u(S=>({...S,incidentalCost:j}))},K=(p,j,S)=>{const M=[...c.incidentalCost];M[p][j]=S,u(q=>({...q,incidentalCost:M}))},Y=(p,j)=>{const S=p.target.value;if(/^\d*\.?\d*$/.test(S)||S===""){const q=c.incidentalCost.map((X,ce)=>ce===j?{...X,price:S,isInvalid:!1}:X);u({...c,incidentalCost:q})}else{const q=c.incidentalCost.map((X,ce)=>ce===j?{...X,isInvalid:!0}:X);u({...c,incidentalCost:q})}},ee=()=>c.incidentalCost.reduce((p,j)=>{const S=parseFloat(j.price);return p+(isNaN(S)?0:S)},0),re=()=>{u(p=>({...p,carryCosts:[...p.carryCosts,{title:"",price:""}]}))},ne=p=>{const j=c.carryCosts.filter((S,M)=>M!==p);u(S=>({...S,carryCosts:j}))},se=(p,j,S)=>{const M=[...c.carryCosts];M[p][j]=S,u(q=>({...q,carryCosts:M}))},le=(p,j)=>{const S=p.target.value;if(/^\d*\.?\d*$/.test(S)||S===""){const q=c.carryCosts.map((X,ce)=>ce===j?{...X,price:S,isInvalid:!1}:X);u({...c,carryCosts:q})}else{const q=c.carryCosts.map((X,ce)=>ce===j?{...X,isInvalid:!0}:X);u({...c,carryCosts:q})}},de=()=>c.carryCosts.reduce((p,j)=>{const S=parseFloat(j.price);return p+(isNaN(S)?0:S)},0),ge=()=>{u(p=>({...p,renovationCost:[...p.renovationCost,{title:"",price:""}]}))},Me=p=>{const j=c.renovationCost.filter((S,M)=>M!==p);u(S=>({...S,renovationCost:j}))},Ct=(p,j,S)=>{const M=[...c.renovationCost];M[p][j]=S,u(q=>({...q,renovationCost:M}))},zt=(p,j)=>{const S=p.target.value;if(/^\d*\.?\d*$/.test(S)||S===""){const q=c.renovationCost.map((X,ce)=>ce===j?{...X,price:S,isInvalid:!1}:X);u({...c,renovationCost:q})}else{const q=c.renovationCost.map((X,ce)=>ce===j?{...X,isInvalid:!0}:X);u({...c,renovationCost:q})}},he=()=>c.renovationCost.reduce((p,j)=>{const S=parseFloat(j.price);return p+(isNaN(S)?0:S)},0),$t=()=>{const p=ee(),j=de(),S=he();return p+j+S},Ye=()=>{const p=$t(),j=B();return p+j},Qn=()=>{u(p=>({...p,costPaidOutofClosing:[...p.costPaidOutofClosing,{title:"",price:""}]}))},Zt=p=>{const j=c.costPaidOutofClosing.filter((S,M)=>M!==p);u(S=>({...S,costPaidOutofClosing:j}))},ys=(p,j,S)=>{const M=[...c.costPaidOutofClosing];M[p][j]=S,u(q=>({...q,costPaidOutofClosing:M}))},js=(p,j)=>{const S=p.target.value;if(/^\d*\.?\d*$/.test(S)||S===""){const q=c.costPaidOutofClosing.map((X,ce)=>ce===j?{...X,price:S,isInvalid:!1}:X);u({...c,costPaidOutofClosing:q})}else{const q=c.costPaidOutofClosing.map((X,ce)=>ce===j?{...X,isInvalid:!0}:X);u({...c,costPaidOutofClosing:q})}},Xn=()=>c.costPaidOutofClosing.reduce((p,j)=>{const S=parseFloat(j.price);return p+(isNaN(S)?0:S)},0),Wt=()=>{const p=c.sellingPriceBtoC,j=Xn();return p-j},gn=()=>{u(p=>({...p,adjustments:[...p.adjustments,{title:"",price:""}]}))},Ut=p=>{const j=c.adjustments.filter((S,M)=>M!==p);u(S=>({...S,adjustments:j}))},fe=(p,j,S)=>{const M=[...c.adjustments];M[p][j]=S,u(q=>({...q,adjustments:M}))},qt=(p,j)=>{const S=p.target.value;if(/^\d*\.?\d*$/.test(S)||S===""){const q=c.adjustments.map((X,ce)=>ce===j?{...X,price:S,isInvalid:!1}:X);u({...c,adjustments:q})}else{const q=c.adjustments.map((X,ce)=>ce===j?{...X,isInvalid:!0}:X);u({...c,adjustments:q})}},xn=()=>c.adjustments.reduce((p,j)=>{const S=parseFloat(j.price);return p+(isNaN(S)?0:S)},0),Li=()=>{const p=Wt(),j=xn();return p+j},Ns=()=>{u(p=>({...p,incomestatement:[...p.incomestatement,{title:"",price:""}]}))},Mi=p=>{const j=c.incomestatement.filter((S,M)=>M!==p);u(S=>({...S,incomestatement:j}))},tl=(p,j,S)=>{const M=[...c.incomestatement];M[p][j]=S,u(q=>({...q,incomestatement:M}))},nl=(p,j)=>{const S=p.target.value;if(/^\d*\.?\d*$/.test(S)||S===""){const q=c.incomestatement.map((X,ce)=>ce===j?{...X,price:S,isInvalid:!1}:X);u({...c,incomestatement:q})}else{const q=c.incomestatement.map((X,ce)=>ce===j?{...X,isInvalid:!0}:X);u({...c,incomestatement:q})}},Cs=()=>c.incomestatement.reduce((p,j)=>{const S=parseFloat(j.price);return p+(isNaN(S)?0:S)},0),Jn=()=>{const p=Cs(),j=Wt();return p+j},Zn=()=>{const p=isNaN(parseFloat(Jn()))?0:parseFloat(Jn()),j=isNaN(parseFloat(c.shorttermrental))?0:parseFloat(c.shorttermrental),S=isNaN(parseFloat(c.OtherIncome))?0:parseFloat(c.OtherIncome),M=isNaN(parseFloat(c.InsuranceClaim))?0:parseFloat(c.InsuranceClaim),q=isNaN(parseFloat(c.LongTermRental))?0:parseFloat(c.LongTermRental),X=isNaN(parseFloat(Ye()))?0:parseFloat(Ye());return p+j+S+M+q-X},en=()=>{const p=Zn(),j=c.FinancingCostClosingCost;return p-j},Er=()=>en(),bs=()=>{var p,j,S,M,q,X;if(c.address&&c.city&&c.state&&c.county&&c.zip&&c.parcel&&c.subdivision&&c.legal&&c.costpersqft&&c.propertyType&&c.lotacres&&c.yearBuild&&c.totallivingsqft&&c.beds&&c.baths&&c.stories&&c.garage&&c.garagesqft&&c.poolspa&&c.fireplaces&&c.ac&&c.heating&&c.buildingstyle&&c.sitevacant&&c.extwall&&c.roofing&&c.totalSqft&&c.renovationRisk&&c.closeDateAtoB&&c.closeDateBtoC&&c.purchaseCost&&c.sellingPriceBtoC&&c.fundspriortoclosing&&c.shorttermrental&&c.OtherIncome&&c.InsuranceClaim&&c.LongTermRental&&c.FinancingCostClosingCost){const ce=Er(),Bi=_(),sl=Z(),il=A(),ol=ee(),al=Q(),ll=B(),cl=de(),dl=he(),ul=$t(),fl=Ye(),pl=Xn(),ml=xn(),Og=Li(),Tg=Wt(),Rg=Wt(),Ag=Cs(),Ig=Jn(),Fg=Zn(),Dg=en(),hl={...c,userfirstname:(p=l==null?void 0:l.result)==null?void 0:p.firstName,usermiddlename:(j=l==null?void 0:l.result)==null?void 0:j.middleName,userlastname:(S=l==null?void 0:l.result)==null?void 0:S.lastName,usertitle:(M=l==null?void 0:l.result)==null?void 0:M.title,useremail:(q=l==null?void 0:l.result)==null?void 0:q.email,userId:(X=l==null?void 0:l.result)==null?void 0:X.userId,totalPurchaseCosts:Bi,totalcredits:al,totalPurchaseCostsaftercredits:sl,totalcashAdjustments:il,totalcashrequiredonsettlement:ll,totalincidentalCost:ol,totalcarryCosts:cl,totalrenovationCost:dl,totalRenovationsandHoldingCost:ul,totalCoststoBuyAtoB:fl,totalcostPaidOutofClosing:pl,totaladjustments:ml,fundsavailablefordistribution:Og,grossproceedsperHUD:Tg,totalCosttoSellBtoC:Rg,totalincomestatement:Ag,netBtoCsalevalue:Ig,netprofitbeforefinancingcosts:Fg,NetProfit:Dg,rateofreturn:ce};Array.isArray(c.propertyTaxInfo)&&c.propertyTaxInfo.length>0?hl.propertyTaxInfo=c.propertyTaxInfo:hl.propertyTaxInfo=[],i(Oo(hl)),g(!0)}else ie.error("Please fill all fields before submitting",{position:"top-right",autoClose:3e3})};w.useEffect(()=>{f&&(o==="succeeded"?(ie.success("Property submitted successfully!",{position:"top-right",autoClose:3e3}),g(!1)):o==="failed"&&(ie.error(`Failed to submit: ${a}`,{position:"top-right",autoClose:3e3}),g(!1)))},[o,a,f]);const[rl,E]=w.useState("0 days"),P=(p,j)=>{if(p&&j){const S=new Date(p),M=new Date(j),q=Math.abs(M-S),X=Math.ceil(q/(1e3*60*60*24));E(`${X} days`)}else E("0 days")};return r.jsx(r.Fragment,{children:r.jsxs("div",{className:"container tabs-wrap",children:[r.jsx(Le,{}),r.jsxs("ul",{className:"nav nav-tabs",role:"tablist",children:[r.jsx("li",{role:"presentation",className:e==="propertydetails"?"active tab":"tab",children:r.jsx("a",{onClick:()=>t("propertydetails"),role:"tab",children:"Property Details"})}),r.jsx("li",{role:"presentation",className:e==="Images"?"active tab":"tab",children:r.jsx("a",{onClick:()=>t("Images"),role:"tab",children:"Images, Maps"})}),r.jsx("li",{role:"presentation",className:e==="Accounting"?"active tab":"tab",children:r.jsx("a",{onClick:()=>t("Accounting"),role:"tab",children:"Accounting"})})]}),r.jsxs("div",{className:"tab-content",children:[e==="propertydetails"&&r.jsxs("div",{role:"tabpanel",className:"card tab-pane active",children:[r.jsxs("form",{children:[r.jsx("h3",{style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:"Property Location"}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Property Address",r.jsx("input",{type:"text",className:"form-control",name:"address",value:c.address,onChange:m,required:!0})]})}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["City",r.jsx("input",{type:"text",className:"form-control",name:"city",value:c.city,onChange:m,required:!0})]})}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["State",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"state",value:c.state,onChange:m,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"Alaska",children:"Alaska"}),r.jsx("option",{value:"Alabama",children:"Alabama"}),r.jsx("option",{value:"Arkansas",children:"Arkansas"}),r.jsx("option",{value:"Arizona",children:"Arizona"}),r.jsx("option",{value:"California",children:"California"}),r.jsx("option",{value:"Colorado",children:"Colorado"}),r.jsx("option",{value:"Connecticut",children:"Connecticut"}),r.jsx("option",{value:"District Of Columbia",children:"District Of Columbia"}),r.jsx("option",{value:"Delaware",children:"Delaware"}),r.jsx("option",{value:"Florida",children:"Florida"}),r.jsx("option",{value:"Georgia",children:"Georgia"}),r.jsx("option",{value:"Hawaii",children:"Hawaii"}),r.jsx("option",{value:"Iowa",children:"Iowa"}),r.jsx("option",{value:"Idaho",children:"Idaho"}),r.jsx("option",{value:"Illinois",children:"Illinois"}),r.jsx("option",{value:"Indiana",children:"Indiana"}),r.jsx("option",{value:"Kansas",children:"Kansas"}),r.jsx("option",{value:"Kentucky",children:"Kentucky"}),r.jsx("option",{value:"Louisiana",children:"Louisiana"}),r.jsx("option",{value:"Massachusetts",children:"Massachusetts"}),r.jsx("option",{value:"Maryland",children:"Maryland"}),r.jsx("option",{value:"Michigan",children:"Michigan"}),r.jsx("option",{value:"Minnesota",children:"Minnesota"}),r.jsx("option",{value:"Missouri",children:"Missouri"}),r.jsx("option",{value:"Mississippi",children:"Mississippi"}),r.jsx("option",{value:"Montana",children:"Montana"}),r.jsx("option",{value:"North Carolina",children:"North Carolina"}),r.jsx("option",{value:"North Dakota",children:"North Dakota"}),r.jsx("option",{value:"Nebraska",children:"Nebraska"}),r.jsx("option",{value:"New Hampshire",children:"New Hampshire"}),r.jsx("option",{value:"New Jersey",children:"New Jersey"}),r.jsx("option",{value:"New Mexico",children:"New Mexico"}),r.jsx("option",{value:"Nevada",children:"Nevada"}),r.jsx("option",{value:"New York",children:"New York"}),r.jsx("option",{value:"Ohio",children:"Ohio"}),r.jsx("option",{value:"Oklahoma",children:"Oklahoma"}),r.jsx("option",{value:"Oregon",children:"Oregon"}),r.jsx("option",{value:"Pennsylvania",children:"Pennsylvania"}),r.jsx("option",{value:"Rhode Island",children:"Rhode Island"}),r.jsx("option",{value:"South Carolina",children:"South Carolina"}),r.jsx("option",{value:"South Dakota",children:"South Dakota"}),r.jsx("option",{value:"Tennessee",children:"Tennessee"}),r.jsx("option",{value:"Texas",children:"Texas"}),r.jsx("option",{value:"Texas",children:"Travis"}),r.jsx("option",{value:"Utah",children:"Utah"}),r.jsx("option",{value:"Virginia",children:"Virginia"}),r.jsx("option",{value:"Vermont",children:"Vermont"}),r.jsx("option",{value:"Washington",children:"Washington"}),r.jsx("option",{value:"Wisconsin",children:"Wisconsin"}),r.jsx("option",{value:"West Virginia",children:"West Virginia"}),r.jsx("option",{value:"Wyoming",children:"Wyoming"})]})]})})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsxs("div",{className:"col-md-4",children:["County",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"county",value:c.county,onChange:m,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"Abbeville",children:"Abbeville"}),r.jsx("option",{value:"Aiken",children:"Aiken"}),r.jsx("option",{value:"Allendale",children:"Allendale"}),r.jsx("option",{value:"Anderson",children:"Anderson"}),r.jsx("option",{value:"Bamberg",children:"Bamberg"}),r.jsx("option",{value:"Barnwell",children:"Barnwell"}),r.jsx("option",{value:"Beaufort",children:"Beaufort"}),r.jsx("option",{value:"Berkeley",children:"Berkeley"}),r.jsx("option",{value:"Calhoun",children:"Calhoun"}),r.jsx("option",{value:"Charleston",children:"Charleston"}),r.jsx("option",{value:"Cherokee",children:"Cherokee"}),r.jsx("option",{value:"Chester",children:"Chester"}),r.jsx("option",{value:"Chesterfield",children:"Chesterfield"}),r.jsx("option",{value:"Clarendon",children:"Clarendon"}),r.jsx("option",{value:"Colleton",children:"Colleton"}),r.jsx("option",{value:"Darlington",children:"Darlington"}),r.jsx("option",{value:"Dillon",children:"Dillon"}),r.jsx("option",{value:"Dorchester",children:"Dorchester"}),r.jsx("option",{value:"Edgefield",children:"Edgefield"}),r.jsx("option",{value:"Fairfield",children:"Fairfield"}),r.jsx("option",{value:"Florence",children:"Florence"}),r.jsx("option",{value:"Georgetown",children:"Georgetown"}),r.jsx("option",{value:"Greenville",children:"Greenville"}),r.jsx("option",{value:"Greenwood",children:"Greenwood"}),r.jsx("option",{value:"Hampton",children:"Hampton"}),r.jsx("option",{value:"Horry",children:"Horry"}),r.jsx("option",{value:"Jasper",children:"Jasper"}),r.jsx("option",{value:"Kershaw",children:"Kershaw"}),r.jsx("option",{value:"Lancaster",children:"Lancaster"}),r.jsx("option",{value:"Laurens",children:"Laurens"}),r.jsx("option",{value:"Lee",children:"Lee"}),r.jsx("option",{value:"Lexington",children:"Lexington"}),r.jsx("option",{value:"Marion",children:"Marion"}),r.jsx("option",{value:"Marlboro",children:"Marlboro"}),r.jsx("option",{value:"McCormick",children:"McCormick"}),r.jsx("option",{value:"Newberry",children:"Newberry"}),r.jsx("option",{value:"Oconee",children:"Oconee"}),r.jsx("option",{value:"Orangeburg",children:"Orangeburg"}),r.jsx("option",{value:"Pickens",children:"Pickens"}),r.jsx("option",{value:"Richland",children:"Richland"}),r.jsx("option",{value:"Saluda",children:"Saluda"}),r.jsx("option",{value:"Spartanburg",children:"Spartanburg"}),r.jsx("option",{value:"Sumter",children:"Sumter"}),r.jsx("option",{value:"Union",children:"Union"}),r.jsx("option",{value:"Williamsburg",children:"Williamsburg"}),r.jsx("option",{value:"York",children:"York"})]})]}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Zip",r.jsx("input",{type:"text",className:"form-control",name:"zip",value:c.zip,onChange:m,required:!0})]})}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Parcel",r.jsx("input",{type:"text",className:"form-control",name:"parcel",value:c.parcel,onChange:m,required:!0})]})})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Sub division",r.jsx("input",{type:"text",className:"form-control",name:"subdivision",value:c.subdivision,onChange:m,required:!0})]})}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Legal Description",r.jsx("textarea",{type:"text",className:"form-control",name:"legal",value:c.legal,onChange:m,required:!0})]})}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Cost per SQFT",r.jsx("input",{type:"text",className:"form-control",name:"costpersqft",value:c.costpersqft,onChange:m,required:!0})]})})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsxs("div",{className:"col-md-4",children:["Property Type",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"propertyType",value:c.propertyType,onChange:m,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"Residential",children:"Residential"}),r.jsx("option",{value:"Land",children:"Land"}),r.jsx("option",{value:"Commercial",children:"Commercial"}),r.jsx("option",{value:"Industrial",children:"Industrial"}),r.jsx("option",{value:"Water",children:"Water"})]})]}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Lot Acres/Sqft",r.jsx("input",{type:"text",className:"form-control",name:"lotacres",value:c.lotacres,onChange:m,required:!0})]})}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Year Build",r.jsx("input",{type:"text",className:"form-control",name:"yearBuild",value:c.yearBuild,onChange:m,required:!0})]})})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Total Living SQFT",r.jsx("input",{type:"text",className:"form-control",name:"totallivingsqft",value:c.totallivingsqft,onChange:m,required:!0})]})}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Beds",r.jsx("input",{type:"text",className:"form-control",name:"beds",value:c.beds,onChange:m,required:!0})]})}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Baths",r.jsx("input",{type:"text",className:"form-control",name:"baths",value:c.baths,onChange:m,required:!0})]})})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsxs("div",{className:"col-md-4",children:["Stories",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"stories",value:c.stories,onChange:m,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"0",children:"0"}),r.jsx("option",{value:"1",children:"1"}),r.jsx("option",{value:"2",children:"2"}),r.jsx("option",{value:"3",children:"3"}),r.jsx("option",{value:"4",children:"4"}),r.jsx("option",{value:"5",children:"5"}),r.jsx("option",{value:"6",children:"6"}),r.jsx("option",{value:"7",children:"7"}),r.jsx("option",{value:"8",children:"8"}),r.jsx("option",{value:"9",children:"9"}),r.jsx("option",{value:"10",children:"10"})]})]}),r.jsxs("div",{className:"col-md-4",children:["Garage",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"garage",value:c.garage,onChange:m,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"0",children:"0"}),r.jsx("option",{value:"1",children:"1"}),r.jsx("option",{value:"2",children:"2"}),r.jsx("option",{value:"3",children:"3"}),r.jsx("option",{value:"4",children:"4"}),r.jsx("option",{value:"5",children:"5"})]})]}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Garage SQFT",r.jsx("input",{type:"text",className:"form-control",name:"garagesqft",value:c.garagesqft,onChange:m,required:!0})]})})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsxs("div",{className:"col-md-4",children:["Pool/SPA",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"poolspa",value:c.poolspa,onChange:m,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"N/A",children:"N/A"}),r.jsx("option",{value:"Yes- Pool Only",children:"Yes- Pool Only"}),r.jsx("option",{value:"Yes- SPA only",children:"Yes- SPA only"}),r.jsx("option",{value:"Yes - Both Pool and SPA",children:"Yes - Both Pool and SPA"}),r.jsx("option",{value:"4",children:"None"})]})]}),r.jsxs("div",{className:"col-md-4",children:["Fire places",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"fireplaces",value:c.fireplaces,onChange:m,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"N/A",children:"N/A"}),r.jsx("option",{value:"yes",children:"Yes"}),r.jsx("option",{value:"no",children:"No"})]})]}),r.jsxs("div",{className:"col-md-4",children:["A/C",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"ac",value:c.ac,onChange:m,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"N/A",children:"N/A"}),r.jsx("option",{value:"Central",children:"Central"}),r.jsx("option",{value:"Heat Pump",children:"Heat Pump"}),r.jsx("option",{value:"Warm Air",children:"Warm Air"}),r.jsx("option",{value:"Forced Air",children:"Forced Air"}),r.jsx("option",{value:"Gas",children:"Gas"})]})]})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsxs("div",{className:"col-md-4",children:["Heating",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"heating",value:c.heating,onChange:m,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"N/A",children:"N/A"}),r.jsx("option",{value:"Central",children:"Central"}),r.jsx("option",{value:"Heat Pump",children:"Heat Pump"}),r.jsx("option",{value:"Warm Air",children:"Warm Air"}),r.jsx("option",{value:"Forced Air",children:"Forced Air"}),r.jsx("option",{value:"Gas",children:"Gas"})]})]}),r.jsxs("div",{className:"col-md-4",children:["Building Style",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"buildingstyle",value:c.buildingstyle,onChange:m,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"One Story",children:"One Story"}),r.jsx("option",{value:"Craftsman",children:"Craftsman"}),r.jsx("option",{value:"Log/Cabin",children:"Log/Cabin"}),r.jsx("option",{value:"Split-Level",children:"Split-Level"}),r.jsx("option",{value:"Split-Foyer",children:"Split-Foyer"}),r.jsx("option",{value:"Stick Built",children:"Stick Built"}),r.jsx("option",{value:"Single wide",children:"Single wide"}),r.jsx("option",{value:"Double wide",children:"Double wide"}),r.jsx("option",{value:"Duplex",children:"Duplex"}),r.jsx("option",{value:"Triplex",children:"Triplex"}),r.jsx("option",{value:"Quadruplex",children:"Quadruplex"}),r.jsx("option",{value:"Two Story",children:"Two Story"}),r.jsx("option",{value:"Victorian",children:"Victorian"}),r.jsx("option",{value:"Tudor",children:"Tudor"}),r.jsx("option",{value:"Modern",children:"Modern"}),r.jsx("option",{value:"Art Deco",children:"Art Deco"}),r.jsx("option",{value:"Bungalow",children:"Bungalow"}),r.jsx("option",{value:"Mansion",children:"Mansion"}),r.jsx("option",{value:"Farmhouse",children:"Farmhouse"}),r.jsx("option",{value:"Conventional",children:"Conventional"}),r.jsx("option",{value:"Ranch",children:"Ranch"}),r.jsx("option",{value:"Ranch with Basement",children:"Ranch with Basement"}),r.jsx("option",{value:"Cape Cod",children:"Cape Cod"}),r.jsx("option",{value:"Contemporary",children:"Contemporary"}),r.jsx("option",{value:"Colonial",children:"Colonial"}),r.jsx("option",{value:"Mediterranean",children:"Mediterranean"})]})]}),r.jsxs("div",{className:"col-md-4",children:["Site Vacant",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"sitevacant",value:c.sitevacant,onChange:m,required:!0,children:[r.jsx("option",{value:"",children:"Please select"}),r.jsx("option",{value:"Yes",children:"Yes"}),r.jsx("option",{value:"No",children:"No"})]})]})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsxs("div",{className:"col-md-4",children:["Ext Wall",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"extwall",value:c.extwall,onChange:m,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"N/A",children:"N/A"}),r.jsx("option",{value:"Brick",children:"Brick"}),r.jsx("option",{value:"Brick/Vinyl Siding",children:"Brick/Vinyl Siding"}),r.jsx("option",{value:"Wood/Vinyl Siding",children:"Wood/Vinyl Siding"}),r.jsx("option",{value:"Brick/Wood Siding",children:"Brick/Wood Siding"}),r.jsx("option",{value:"Stone",children:"Stone"}),r.jsx("option",{value:"Masonry",children:"Masonry"}),r.jsx("option",{value:"Metal",children:"Metal"}),r.jsx("option",{value:"Fiberboard",children:"Fiberboard"}),r.jsx("option",{value:"Asphalt Siding",children:"Asphalt Siding"}),r.jsx("option",{value:"Concrete Block",children:"Concrete Block"}),r.jsx("option",{value:"Gable",children:"Gable"}),r.jsx("option",{value:"Brick Veneer",children:"Brick Veneer"}),r.jsx("option",{value:"Frame",children:"Frame"}),r.jsx("option",{value:"Siding",children:"Siding"}),r.jsx("option",{value:"Cement/Wood Fiber Siding",children:"Cement/Wood Fiber Siding"}),r.jsx("option",{value:"Fiber/Cement Siding",children:"Fiber/Cement Siding"}),r.jsx("option",{value:"Wood Siding",children:"Wood Siding"}),r.jsx("option",{value:"Vinyl Siding",children:"Vinyl Siding"}),r.jsx("option",{value:"Aluminium Siding",children:"Aluminium Siding"}),r.jsx("option",{value:"Wood/Vinyl Siding",children:"Alum/Vinyl Siding"})]})]}),r.jsxs("div",{className:"col-md-4",children:["Roofing",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"roofing",value:c.roofing,onChange:m,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"N/A",children:"N/A"}),r.jsx("option",{value:"Asphalt Shingle",children:"Asphalt Shingle"}),r.jsx("option",{value:"Green Roofs",children:"Green Roofs"}),r.jsx("option",{value:"Built-up Roofing",children:"Built-up Roofing"}),r.jsx("option",{value:"Composition Shingle",children:"Composition Shingle"}),r.jsx("option",{value:"Composition Shingle Heavy",children:"Composition Shingle Heavy"}),r.jsx("option",{value:"Solar tiles",children:"Solar tiles"}),r.jsx("option",{value:"Metal",children:"Metal"}),r.jsx("option",{value:"Stone-coated steel",children:"Stone-coated steel"}),r.jsx("option",{value:"Slate",children:"Slate"}),r.jsx("option",{value:"Rubber Slate",children:"Rubber Slate"}),r.jsx("option",{value:"Clay and Concrete tiles",children:"Clay and Concrete tiles"})]})]}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Total SQFT",r.jsx("input",{type:"text",className:"form-control",name:"totalSqft",value:c.totalSqft,onChange:m,required:!0})]})})]}),r.jsxs("h3",{style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:[r.jsx("br",{}),"Property Tax Information"]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),c.propertyTaxInfo.map((p,j)=>r.jsxs("div",{className:"row gy-4",children:[r.jsx("div",{className:"col-md-3",children:r.jsxs("div",{className:"form-floating mb-3",children:["Property Tax Owned",r.jsx("input",{type:"text",className:"form-control",name:"propertytaxowned",value:p.propertytaxowned,onChange:S=>m(S,j,"propertyTaxInfo"),required:!0})]})}),r.jsx("div",{className:"col-md-2",children:r.jsxs("div",{className:"form-floating mb-2",children:["Owned Year",r.jsx("input",{type:"text",className:"form-control",name:"ownedyear",value:p.ownedyear,onChange:S=>m(S,j,"propertyTaxInfo"),required:!0})]})}),r.jsx("div",{className:"col-md-2",children:r.jsxs("div",{className:"form-floating mb-2",children:["Tax Assessed",r.jsx("input",{type:"text",className:"form-control",name:"taxassessed",value:p.taxassessed,onChange:S=>m(S,j,"propertyTaxInfo"),required:!0})]})}),r.jsx("div",{className:"col-md-2",children:r.jsxs("div",{className:"form-floating mb-2",children:["Tax Year",r.jsx("input",{type:"text",className:"form-control",name:"taxyear",value:p.taxyear,onChange:S=>m(S,j,"propertyTaxInfo"),required:!0})]})}),r.jsx("div",{className:"col-md-3",children:r.jsxs("div",{className:"form-floating mb-2",children:[r.jsx("br",{}),r.jsx("button",{className:"btn btn-danger",onClick:()=>h(j),style:{height:"25px",width:"35px"},children:"X"})]})})]},j)),r.jsx("button",{className:"btn btn-secondary",onClick:v,children:"+ Add Another Property Tax Info"})]}),r.jsx("button",{className:"btn btn-primary continue",onClick:n,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Continue"})]}),e==="Images"&&r.jsxs("div",{role:"tabpanel",className:"card tab-pane active",children:[r.jsxs("h3",{style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:["Upload Images"," "]}),r.jsxs("form",{children:[c.images.map((p,j)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:p.title,placeholder:"Image Title",onChange:S=>C(j,S)})}),r.jsxs("div",{className:"col-md-4 d-flex align-items-center",children:[r.jsx(wu,{multiple:!1,onDone:S=>b(S,j)}),r.jsx("button",{type:"button",className:"btn btn-danger",onClick:()=>N(j),style:{marginLeft:"5px"},children:"Delete"})]}),p.file&&r.jsxs(r.Fragment,{children:[r.jsx("p",{children:"Base64 Data:"})," ",r.jsxs("pre",{children:[p.file.slice(0,100),"..."]})," ",r.jsx("div",{className:"col-md-12",children:r.jsx("img",{src:p.file,alt:"uploaded",style:{width:"150px",height:"150px",objectFit:"cover"}})})]})]},j)),r.jsx("button",{type:"button",className:"btn btn-primary",onClick:x,style:{backgroundColor:"#fda417",border:"#fda417"},children:"+ Add Image"}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"mb-3",children:[r.jsx("label",{htmlFor:"googleMapLink",className:"form-label",children:r.jsxs("h3",{style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:["Google Maps Link"," "]})}),r.jsx("input",{type:"text",className:"form-control",name:"googleMapLink",value:c.googleMapLink,onChange:m,placeholder:"Enter Google Maps link"})]}),c.googleMapLink&&r.jsx("iframe",{title:"Google Map",width:"100%",height:"300",src:`https://www.google.com/maps/embed/v1/view?key=YOUR_API_KEY¢er=${c.googleMapLink}&zoom=10`,frameBorder:"0",allowFullScreen:!0})]}),r.jsx("button",{className:"btn btn-primary back",onClick:s,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Go Back"})," ",r.jsx("button",{className:"btn btn-primary continue",onClick:n,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Continue"})]}),e==="Accounting"&&r.jsxs("div",{className:"card",style:{color:"#fda417",border:"1px solid #fda417",padding:"10px",borderRadius:"8px"},children:[r.jsx("br",{}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Close Date A to B",required:!0,disabled:!0})}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"date",className:"form-control",name:"closeDateAtoB",value:c.closeDateAtoB,onChange:p=>{const j=p.target.value;u({...c,closeDateAtoB:j}),P(j,c.closeDateBtoC)},placeholder:"Close Date A to B",style:{textAlign:"right"},required:!0})}),r.jsx("div",{children:r.jsxs("p",{children:[r.jsxs("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:["[M-D-Y]"," "]}),":"," ",r.jsx("span",{style:{color:"#000000",fontSize:"14px",fontWeight:"normal"},children:new Date(c.closeDateAtoB).toLocaleDateString("en-US",{month:"numeric",day:"numeric",year:"numeric"})})]})})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Close Date B to C",required:!0,disabled:!0})}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"date",className:"form-control",name:"closeDateBtoC",value:c.closeDateBtoC,onChange:p=>{const j=p.target.value;u({...c,closeDateBtoC:j}),P(c.closeDateAtoB,j)},placeholder:"Close Date B to C",style:{textAlign:"right"},required:!0})}),r.jsx("div",{children:r.jsxs("p",{children:[r.jsxs("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:["[M-D-Y] :"," "]}),r.jsx("span",{style:{color:"#000000",fontSize:"14px",fontWeight:"normal"},children:new Date(c.closeDateBtoC).toLocaleDateString("en-US",{month:"numeric",day:"numeric",year:"numeric"})})]})})]}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Renovation Risk"}),r.jsx("div",{className:"col-md-7",children:d.map(p=>r.jsxs("div",{className:"form-check form-check-inline",children:[r.jsx("input",{className:"form-check-input",type:"radio",name:"renovationRisk",id:`renovationRisk${p}`,value:p,checked:c.renovationRisk===p,onChange:j=>{const S=parseInt(j.target.value,10);u({...c,renovationRisk:S})}}),r.jsx("label",{className:"form-check-label",htmlFor:`renovationRisk${p}`,children:p})]},p))})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Rate of Return"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"rateofreturn",value:`$ ${Er().toFixed(2)}`,readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Turn Time"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:rl,readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("br",{}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Purchase Price"}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${c.isPurchaseCostInvalid?"is-invalid":""}`,value:`$ ${c.purchaseCost}`,name:"purchaseCost",onChange:p=>{let j=p.target.value.replace(/[^\d.]/g,"");const S=/^\d*\.?\d*$/.test(j);u({...c,purchaseCost:j,isPurchaseCostInvalid:!S})},onKeyPress:p=>{const j=p.charCode;(j<48||j>57)&&j!==46&&(p.preventDefault(),u({...c,isPurchaseCostInvalid:!0}))},placeholder:"Enter Purchase Cost",style:{textAlign:"right"},required:!0}),c.isPurchaseCostInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Costs paid out of Closing Hud A to B:"}),c.costPaidAtoB.map((p,j)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:p.title,onChange:S=>O(j,"title",S.target.value),placeholder:"Title",required:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${p.isInvalid?"is-invalid":""}`,value:`$ ${p.price}`,onChange:S=>T(S,j),placeholder:"Price",style:{textAlign:"right"},required:!0}),p.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),r.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:r.jsx("button",{className:"btn btn-danger",onClick:()=>k(j),style:{marginLeft:"5px"},children:"x"})})]},j)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{onClick:y,className:"btn btn-primary back",style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Extra Cost"]})}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Purchase Cost"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalPurchaseCosts",value:`$ ${_().toFixed(2)}`,readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Credits received on settlement:"}),c.credits.map((p,j)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:p.title,onChange:S=>H(j,"title",S.target.value),placeholder:"credits",required:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${p.isInvalid?"is-invalid":""}`,value:p.price,onChange:S=>te(S,j),placeholder:"Price",style:{textAlign:"right"},required:!0}),p.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),r.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:r.jsx("button",{className:"btn btn-danger",onClick:()=>z(j),style:{marginLeft:"5px"},children:"x"})})]},j)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:D,style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add credits"]})}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total credits received on settlement"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalcredits",value:Q(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Purchase Cost after Credits Received"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalPurchaseCostsaftercredits",value:Z(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Cash Adjustments:"}),c.cashAdjustments.map((p,j)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:p.title,onChange:S=>G(j,"title",S.target.value),placeholder:"Title",required:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${p.isInvalid?"is-invalid":""}`,value:p.price,onChange:S=>R(S,j),placeholder:"Price",style:{textAlign:"right"},required:!0}),p.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),r.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:r.jsx("button",{className:"btn btn-danger",onClick:()=>U(j),style:{marginLeft:"5px"},children:"x"})})]},j)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:F,style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Cash Adjustments"]})}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Cash Adjustments on Settlement"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalcashAdjustments",value:A(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Cash Required on Settlement"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalcashrequiredonsettlement",value:B(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Incidental Cost:"}),c.incidentalCost.map((p,j)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:p.title,onChange:S=>K(j,"title",S.target.value),placeholder:"Title",required:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${p.isInvalid?"is-invalid":""}`,value:p.price,onChange:S=>Y(S,j),placeholder:"Price",style:{textAlign:"right"},required:!0}),p.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),r.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:r.jsx("button",{className:"btn btn-danger",onClick:()=>W(j),style:{marginLeft:"5px"},children:"x"})})]},j)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:L,style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Incidental Cost"]})}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Incidental Cost"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalincidentalCost",value:ee(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Carry Costs:"}),c.carryCosts.map((p,j)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:p.title,onChange:S=>se(j,"title",S.target.value),placeholder:"Title",required:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${p.isInvalid?"is-invalid":""}`,value:p.price,onChange:S=>le(S,j),placeholder:"Price",style:{textAlign:"right"},required:!0}),p.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),r.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:r.jsx("button",{className:"btn btn-danger",onClick:()=>ne(j),style:{marginLeft:"5px"},children:"x"})})]},j)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:re,style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Carry Cost"]})}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Carry Cost"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalcarryCosts",value:de(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Reno/Construction"}),c.renovationCost.map((p,j)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:p.title,onChange:S=>Ct(j,"title",S.target.value),placeholder:"Title",required:!0,style:{fontSize:"10px"}})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${p.isInvalid?"is-invalid":""}`,value:p.price,onChange:S=>zt(S,j),placeholder:"Price",style:{textAlign:"right"},required:!0}),p.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),r.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:r.jsx("button",{className:"btn btn-danger",onClick:()=>Me(j),style:{marginLeft:"5px"},children:"x"})})]},j)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:ge,style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Reno/Construction"]})}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Renovation Cost"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalrenovationCost",value:he(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Renovations & Holding Cost"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalRenovationsandHoldingCost",value:$t(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Costs to Buy A to B"}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:"form-control",name:"totalCoststoBuyAtoB",value:Ye(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0}),c.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Selling Price B to C"}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${c.isPurchaseCostInvalid?"is-invalid":""}`,name:"sellingPriceBtoC",value:c.sellingPriceBtoC,onChange:p=>{const j=p.target.value,S=/^\d*\.?\d*$/.test(j);u({...c,sellingPriceBtoC:j,isPurchaseCostInvalid:!S})},onKeyPress:p=>{const j=p.charCode;(j<48||j>57)&&j!==46&&(p.preventDefault(),u({...c,isPurchaseCostInvalid:!0}))},placeholder:"Enter Purchase Cost",style:{textAlign:"right"},required:!0}),c.isPurchaseCostInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Less:Costs paid out of closing Hud B to C:"}),c.costPaidOutofClosing.map((p,j)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:p.title,onChange:S=>ys(j,"title",S.target.value),placeholder:"Title",required:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${p.isInvalid?"is-invalid":""}`,value:p.price,onChange:S=>js(S,j),placeholder:"Price",style:{textAlign:"right"},required:!0}),p.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),r.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:r.jsx("button",{className:"btn btn-danger",onClick:()=>Zt(j),style:{marginLeft:"5px"},children:"x"})})]},j)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:Qn,style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Cost Paid Out of Closing"]})}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total cost paid out of closing"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalcostPaidOutofClosing",value:Xn(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Cost to Sell B to C"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalCosttoSellBtoC",value:Wt(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Gross Proceeds per HUD"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"grossproceedsperHUD",value:Wt(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Adjustments:"}),c.adjustments.map((p,j)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:p.title,onChange:S=>fe(j,"title",S.target.value),placeholder:"Title",required:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${p.isInvalid?"is-invalid":""}`,value:p.price,onChange:S=>qt(S,j),placeholder:"Price",style:{textAlign:"right"},required:!0}),p.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),r.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:r.jsx("button",{className:"btn btn-danger",onClick:()=>Ut(j),style:{marginLeft:"5px"},children:"x"})})]},j)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:gn,style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Adjustments"]})}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Adjustments"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totaladjustments",value:xn(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Funds Available for distribution"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"fundsavailablefordistribution",value:Li(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Income Statement Adjustments:"}),c.incomestatement.map((p,j)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:p.title,onChange:S=>tl(j,"title",S.target.value),placeholder:"Title",required:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${p.isInvalid?"is-invalid":""}`,value:p.price,onChange:S=>nl(S,j),placeholder:"Price",style:{textAlign:"right"},required:!0}),p.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),r.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:r.jsx("button",{className:"btn btn-danger",onClick:()=>Mi(j),style:{marginLeft:"5px"},children:"x"})})]},j)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:Ns,style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Income Statement"]})}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Income Statement Adjustment"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalincomestatement",value:Cs(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Net B to C Sale Value"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"netBtoCsalevalue",value:Jn(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Net Profit Computation"}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Total Costs to Buy A to B",required:!0,disabled:!0})}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalCoststoBuyAtoBagain",value:Ye(),style:{textAlign:"right"},required:!0})})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Funds Prior to Closing",required:!0,disabled:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${c.isfundspriortoclosingInvalid?"is-invalid":""}`,value:c.fundspriortoclosing,name:"fundspriortoclosing",onChange:p=>{const j=p.target.value,S=/^\d*\.?\d*$/.test(j);u({...c,fundspriortoclosing:j,isfundspriortoclosingInvalid:!S})},onKeyPress:p=>{const j=p.charCode;(j<48||j>57)&&j!==46&&(p.preventDefault(),u({...c,isfundspriortoclosingInvalid:!0}))},style:{textAlign:"right"},required:!0}),c.isfundspriortoclosingInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Net B to C Sale Value",required:!0,disabled:!0})}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"netBtoCsalevalue",value:Jn(),style:{textAlign:"right"},required:!0})})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Short Term Rental",required:!0,disabled:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${c.isPurchaseCostInvalid?"is-invalid":""}`,value:c.shorttermrental,name:"shorttermrental",onChange:p=>{const j=p.target.value,S=/^\d*\.?\d*$/.test(j);u({...c,shorttermrental:j,isPurchaseCostInvalid:!S})},onKeyPress:p=>{const j=p.charCode;(j<48||j>57)&&j!==46&&(p.preventDefault(),u({...c,isPurchaseCostInvalid:!0}))},style:{textAlign:"right"},required:!0}),c.isPurchaseCostInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Other Income",required:!0,disabled:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${c.isPurchaseCostInvalid?"is-invalid":""}`,value:c.OtherIncome,name:"OtherIncome",onChange:p=>{const j=p.target.value,S=/^\d*\.?\d*$/.test(j);u({...c,OtherIncome:j,isPurchaseCostInvalid:!S})},onKeyPress:p=>{const j=p.charCode;(j<48||j>57)&&j!==46&&(p.preventDefault(),u({...c,isPurchaseCostInvalid:!0}))},style:{textAlign:"right"},required:!0}),c.isPurchaseCostInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Insurance Claim",required:!0,disabled:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${c.isPurchaseCostInvalid?"is-invalid":""}`,value:c.InsuranceClaim,name:"InsuranceClaim",onChange:p=>{const j=p.target.value,S=/^\d*\.?\d*$/.test(j);u({...c,InsuranceClaim:j,isPurchaseCostInvalid:!S})},onKeyPress:p=>{const j=p.charCode;(j<48||j>57)&&j!==46&&(p.preventDefault(),u({...c,isPurchaseCostInvalid:!0}))},style:{textAlign:"right"},required:!0}),c.isPurchaseCostInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Long Term Rental",required:!0,disabled:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${c.isPurchaseCostInvalid?"is-invalid":""}`,value:c.LongTermRental,name:"LongTermRental",onChange:p=>{const j=p.target.value,S=/^\d*\.?\d*$/.test(j);u({...c,LongTermRental:j,isPurchaseCostInvalid:!S})},onKeyPress:p=>{const j=p.charCode;(j<48||j>57)&&j!==46&&(p.preventDefault(),u({...c,isPurchaseCostInvalid:!0}))},style:{textAlign:"right"},required:!0}),c.isPurchaseCostInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Net Profit Before Financing Costs"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"netprofitbeforefinancingcosts",value:Zn(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Financing Cost/Other Closing Costs"}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${c.isFinancingCostClosingCostInvalid?"is-invalid":""}`,value:c.FinancingCostClosingCost,name:"FinancingCostClosingCost",onChange:p=>{const j=p.target.value,S=/^\d*\.?\d*$/.test(j);u({...c,FinancingCostClosingCost:j,isFinancingCostClosingCostInvalid:!S})},onKeyPress:p=>{const j=p.charCode;(j<48||j>57)&&j!==46&&(p.preventDefault(),u({...c,isFinancingCostClosingCostInvalid:!0}))},style:{textAlign:"right"},required:!0}),c.isFinancingCostClosingCostInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Net Profit"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"netprofit",value:en(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("button",{className:"btn btn-primary back",onClick:s,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Go Back"})," ",r.jsx("button",{type:"button",className:"btn btn-primary continue",style:{backgroundColor:"#fda417",border:"#fda417"},onClick:bs,children:"Submit"})," "]}),r.jsx("br",{})]})]})]})})},mt="/assets/propertydummy-DhVEZ7jN.jpg",gb=()=>{var d;const e=Ke(),{user:t}=_e(c=>({...c.auth})),{userProperties:n,totalPages:s}=_e(c=>c.property),[i,o]=w.useState(1),a=5;w.useEffect(()=>{e(Xs({userId:t.result.userId,page:i,limit:a}))},[e,(d=t==null?void 0:t.result)==null?void 0:d.userId,i]);const l=c=>{o(c)};return r.jsx(r.Fragment,{children:n.length>0?r.jsxs(r.Fragment,{children:[r.jsx("ul",{children:n.map(c=>r.jsx("li",{children:r.jsx("div",{className:"container",children:r.jsx("div",{className:"col-md-12",children:r.jsxs("div",{className:"row p-2 bg-white border rounded mt-2",children:[r.jsx("div",{className:"col-md-3 mt-1",children:r.jsx("img",{src:c.images[0].file||mt,className:"w-70",alt:"Img",style:{marginTop:"0px",maxWidth:"200px",maxHeight:"200px"}})}),r.jsxs("div",{className:"col-md-6 mt-1",children:[r.jsxs("h5",{children:[" ",r.jsxs(ae,{to:`/property/${c.propertyId}`,target:"_blank",children:[c.address,"....."]})]}),r.jsx("div",{className:"d-flex flex-row"}),r.jsxs("div",{className:"mt-1 mb-1 spec-1",children:[r.jsx("span",{children:"100% cotton"}),r.jsx("span",{className:"dot"}),r.jsx("span",{children:"Light weight"}),r.jsx("span",{className:"dot"}),r.jsxs("span",{children:["Best finish",r.jsx("br",{})]})]}),r.jsxs("div",{className:"mt-1 mb-1 spec-1",children:[r.jsx("span",{children:"Unique design"}),r.jsx("span",{className:"dot"}),r.jsx("span",{children:"For men"}),r.jsx("span",{className:"dot"}),r.jsxs("span",{children:["Casual",r.jsx("br",{})]})]}),r.jsxs("p",{className:"text-justify text-truncate para mb-0",children:["There are many variations of passages of",r.jsx("br",{}),r.jsx("br",{})]})]}),r.jsx("div",{className:"align-items-center align-content-center col-md-3 border-left mt-1",children:r.jsxs("div",{className:"d-flex flex-column mt-4",children:[r.jsx(ae,{to:`/property/${c.propertyId}`,children:r.jsxs("button",{className:"btn btn-outline-primary btn-sm mt-2",type:"button",style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{className:"fa fa-eye",style:{color:"#F74B02"}})," "," ","View Details"]})}),r.jsx(ae,{to:`/editproperty/${c.propertyId}`,children:r.jsxs("button",{className:"btn btn-outline-primary btn-sm mt-2",type:"button",style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{className:"fa fa-edit",style:{color:"#F74B02"}})," "," ","Edit Details .."]})})]})})]})})})},c._id))}),r.jsxs("div",{className:"pagination",children:[r.jsx("button",{onClick:()=>l(i-1),disabled:i===1,children:"Previous"}),Array.from({length:s},(c,u)=>u+1).map(c=>c===i||c===1||c===s||c>=i-1&&c<=i+1?r.jsx("button",{onClick:()=>l(c),disabled:i===c,children:c},c):c===2||c===s-1?r.jsx("span",{children:"..."},c):null),r.jsx("button",{onClick:()=>l(i+1),disabled:i===s,children:"Next"})]})]}):r.jsx("p",{children:"No active properties found."})})},xb=()=>{var c,u,f,g,b,x,N,C,m,v,h,y;const{user:e,isLoading:t}=_e(k=>k.auth),n=Ke(),s=hn(),[i,o]=w.useState({userId:((c=e==null?void 0:e.result)==null?void 0:c.userId)||"",title:((u=e==null?void 0:e.result)==null?void 0:u.title)||"",firstName:((f=e==null?void 0:e.result)==null?void 0:f.firstName)||"",middleName:((g=e==null?void 0:e.result)==null?void 0:g.middleName)||"",lastName:((b=e==null?void 0:e.result)==null?void 0:b.lastName)||"",email:((x=e==null?void 0:e.result)==null?void 0:x.email)||"",aboutme:((N=e==null?void 0:e.result)==null?void 0:N.aboutme)||"",city:((C=e==null?void 0:e.result)==null?void 0:C.city)||"",state:((m=e==null?void 0:e.result)==null?void 0:m.state)||"",county:((v=e==null?void 0:e.result)==null?void 0:v.county)||"",zip:((h=e==null?void 0:e.result)==null?void 0:h.zip)||"",profileImage:((y=e==null?void 0:e.result)==null?void 0:y.profileImage)||""});w.useEffect(()=>{e&&o({userId:e.result.userId,title:e.result.title,firstName:e.result.firstName,middleName:e.result.middleName,lastName:e.result.lastName,email:e.result.email,aboutme:e.result.aboutme,city:e.result.city,state:e.result.state,county:e.result.county,zip:e.result.zip,profileImage:e.result.profileImage})},[e]);const a=k=>{o({...i,[k.target.name]:k.target.value})},l=()=>{o({...i,profileImage:""})},d=k=>{k.preventDefault(),n(ko({formData:i,toast:ie,navigate:s}))};return r.jsx(r.Fragment,{children:r.jsxs("form",{onSubmit:d,children:[r.jsxs("div",{className:"col-4",children:["Title",r.jsxs("select",{className:"form-floating mb-3 form-control","aria-label":"Default select example",name:"title",value:i.title,onChange:a,children:[r.jsx("option",{value:"None",children:"Please Select Title"}),r.jsx("option",{value:"Dr",children:"Dr"}),r.jsx("option",{value:"Prof",children:"Prof"}),r.jsx("option",{value:"Mr",children:"Mr"}),r.jsx("option",{value:"Miss",children:"Miss"})]})]}),r.jsx("div",{className:"col-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["First Name",r.jsx("input",{type:"text",className:"form-control",placeholder:"First Name",required:"required",name:"firstName",value:i.firstName,onChange:a})]})}),r.jsx("div",{className:"col-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Middle Name",r.jsx("input",{type:"text",className:"form-control",placeholder:"Middle Name",required:"required",name:"middleName",value:i.middleName,onChange:a})]})}),r.jsx("div",{className:"col-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Last Name",r.jsx("input",{type:"text",className:"form-control",placeholder:"Last Name",required:"required",name:"lastName",value:i.lastName,onChange:a})]})}),r.jsx("div",{className:"col-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Email",r.jsx("input",{type:"text",className:"form-control",placeholder:"Email",required:"required",name:"email",value:i.email,onChange:a,disabled:!0})]})}),r.jsx("div",{className:"col-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["About me",r.jsx("textarea",{type:"text",id:"aboutme",name:"aboutme",className:"form-control h-100",value:i.aboutme,onChange:a})]})}),r.jsx("div",{className:"col-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["City",r.jsx("input",{type:"text",className:"form-control",name:"city",placeholder:"city",value:i.city,onChange:a,required:!0})]})}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["State",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"state",value:i.state,onChange:a,required:!0,children:[r.jsx("option",{value:"",children:"Please Select State"}),r.jsx("option",{value:"Alaska",children:"Alaska"}),r.jsx("option",{value:"Alabama",children:"Alabama"}),r.jsx("option",{value:"Arkansas",children:"Arkansas"}),r.jsx("option",{value:"Arizona",children:"Arizona"}),r.jsx("option",{value:"California",children:"California"}),r.jsx("option",{value:"Colorado",children:"Colorado"}),r.jsx("option",{value:"Connecticut",children:"Connecticut"}),r.jsx("option",{value:"District Of Columbia",children:"District Of Columbia"}),r.jsx("option",{value:"Delaware",children:"Delaware"}),r.jsx("option",{value:"Florida",children:"Florida"}),r.jsx("option",{value:"Georgia",children:"Georgia"}),r.jsx("option",{value:"Hawaii",children:"Hawaii"}),r.jsx("option",{value:"Iowa",children:"Iowa"}),r.jsx("option",{value:"Idaho",children:"Idaho"}),r.jsx("option",{value:"Illinois",children:"Illinois"}),r.jsx("option",{value:"Indiana",children:"Indiana"}),r.jsx("option",{value:"Kansas",children:"Kansas"}),r.jsx("option",{value:"Kentucky",children:"Kentucky"}),r.jsx("option",{value:"Louisiana",children:"Louisiana"}),r.jsx("option",{value:"Massachusetts",children:"Massachusetts"}),r.jsx("option",{value:"Maryland",children:"Maryland"}),r.jsx("option",{value:"Michigan",children:"Michigan"}),r.jsx("option",{value:"Minnesota",children:"Minnesota"}),r.jsx("option",{value:"Missouri",children:"Missouri"}),r.jsx("option",{value:"Mississippi",children:"Mississippi"}),r.jsx("option",{value:"Montana",children:"Montana"}),r.jsx("option",{value:"North Carolina",children:"North Carolina"}),r.jsx("option",{value:"North Dakota",children:"North Dakota"}),r.jsx("option",{value:"Nebraska",children:"Nebraska"}),r.jsx("option",{value:"New Hampshire",children:"New Hampshire"}),r.jsx("option",{value:"New Jersey",children:"New Jersey"}),r.jsx("option",{value:"New Mexico",children:"New Mexico"}),r.jsx("option",{value:"Nevada",children:"Nevada"}),r.jsx("option",{value:"New York",children:"New York"}),r.jsx("option",{value:"Ohio",children:"Ohio"}),r.jsx("option",{value:"Oklahoma",children:"Oklahoma"}),r.jsx("option",{value:"Oregon",children:"Oregon"}),r.jsx("option",{value:"Pennsylvania",children:"Pennsylvania"}),r.jsx("option",{value:"Rhode Island",children:"Rhode Island"}),r.jsx("option",{value:"South Carolina",children:"South Carolina"}),r.jsx("option",{value:"South Dakota",children:"South Dakota"}),r.jsx("option",{value:"Tennessee",children:"Tennessee"}),r.jsx("option",{value:"Texas",children:"Texas"}),r.jsx("option",{value:"Utah",children:"Utah"}),r.jsx("option",{value:"Virginia",children:"Virginia"}),r.jsx("option",{value:"Vermont",children:"Vermont"}),r.jsx("option",{value:"Washington",children:"Washington"}),r.jsx("option",{value:"Wisconsin",children:"Wisconsin"}),r.jsx("option",{value:"West Virginia",children:"West Virginia"}),r.jsx("option",{value:"Wyoming",children:"Wyoming"})]})]})}),r.jsxs("div",{className:"col-md-4",children:["County",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"county",value:i.county,onChange:a,required:!0,children:[r.jsx("option",{value:"",children:"Please Select County"}),r.jsx("option",{value:"Abbeville",children:"Abbeville"}),r.jsx("option",{value:"Aiken",children:"Aiken"}),r.jsx("option",{value:"Allendale",children:"Allendale"}),r.jsx("option",{value:"Anderson",children:"Anderson"}),r.jsx("option",{value:"Bamberg",children:"Bamberg"}),r.jsx("option",{value:"Barnwell",children:"Barnwell"}),r.jsx("option",{value:"Beaufort",children:"Beaufort"}),r.jsx("option",{value:"Berkeley",children:"Berkeley"}),r.jsx("option",{value:"Calhoun",children:"Calhoun"}),r.jsx("option",{value:"Charleston",children:"Charleston"}),r.jsx("option",{value:"Cherokee",children:"Cherokee"}),r.jsx("option",{value:"Chester",children:"Chester"}),r.jsx("option",{value:"Chesterfield",children:"Chesterfield"}),r.jsx("option",{value:"Clarendon",children:"Clarendon"}),r.jsx("option",{value:"Colleton",children:"Colleton"}),r.jsx("option",{value:"Darlington",children:"Darlington"}),r.jsx("option",{value:"Dillon",children:"Dillon"}),r.jsx("option",{value:"Dorchester",children:"Dorchester"}),r.jsx("option",{value:"Edgefield",children:"Edgefield"}),r.jsx("option",{value:"Fairfield",children:"Fairfield"}),r.jsx("option",{value:"Florence",children:"Florence"}),r.jsx("option",{value:"Georgetown",children:"Georgetown"}),r.jsx("option",{value:"Greenville",children:"Greenville"}),r.jsx("option",{value:"Greenwood",children:"Greenwood"}),r.jsx("option",{value:"Hampton",children:"Hampton"}),r.jsx("option",{value:"Horry",children:"Horry"}),r.jsx("option",{value:"Jasper",children:"Jasper"}),r.jsx("option",{value:"Kershaw",children:"Kershaw"}),r.jsx("option",{value:"Lancaster",children:"Lancaster"}),r.jsx("option",{value:"Laurens",children:"Laurens"}),r.jsx("option",{value:"Lee",children:"Lee"}),r.jsx("option",{value:"Lexington",children:"Lexington"}),r.jsx("option",{value:"Marion",children:"Marion"}),r.jsx("option",{value:"Marlboro",children:"Marlboro"}),r.jsx("option",{value:"McCormick",children:"McCormick"}),r.jsx("option",{value:"Newberry",children:"Newberry"}),r.jsx("option",{value:"Oconee",children:"Oconee"}),r.jsx("option",{value:"Orangeburg",children:"Orangeburg"}),r.jsx("option",{value:"Pickens",children:"Pickens"}),r.jsx("option",{value:"Richland",children:"Richland"}),r.jsx("option",{value:"Saluda",children:"Saluda"}),r.jsx("option",{value:"Spartanburg",children:"Spartanburg"}),r.jsx("option",{value:"Sumter",children:"Sumter"}),r.jsx("option",{value:"Union",children:"Union"}),r.jsx("option",{value:"Williamsburg",children:"Williamsburg"}),r.jsx("option",{value:"York",children:"York"})]})]}),r.jsx("div",{className:"col-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Zip",r.jsx("input",{type:"text",className:"form-control",name:"zip",placeholder:"zip",value:i.zip,onChange:a,required:!0})]})}),r.jsxs("div",{className:"col-4",children:[r.jsx("label",{children:"Profile Image"}),r.jsx("div",{className:"mb-3",children:r.jsx(wu,{type:"file",multiple:!1,onDone:({base64:k})=>o({...i,profileImage:k})})})]}),i.profileImage&&r.jsxs("div",{className:"col-4 mb-3",children:[r.jsx("img",{src:i.profileImage,alt:"Profile Preview",style:{width:"150px",height:"150px",borderRadius:"50%"}}),r.jsx("button",{type:"button",className:"btn btn-danger mt-2",onClick:l,children:"Delete Image"})]}),r.jsx("div",{className:"col-12",children:r.jsx("div",{className:"d-grid",children:r.jsx("button",{className:"btn btn-primary btn-lg",type:"submit",style:{backgroundColor:"#fda417",border:"#fda417"},disabled:t,children:t?"Updating...":"Update"})})})]})})},yb=()=>{var c;const e=Ke(),{user:t}=_e(u=>({...u.auth})),{userProperties:n,totalPages:s}=_e(u=>u.property),[i,o]=w.useState(1),a=5;w.useEffect(()=>{e(Xs({userId:t.result.userId,page:i,limit:a}))},[e,(c=t==null?void 0:t.result)==null?void 0:c.userId,i]);const l=u=>{o(u)},d=n.filter(u=>u.fundDetails&&u.fundDetails.some(f=>f.fundValue!==void 0&&f.fundPercentage!==void 0&&f.userId));return r.jsx(r.Fragment,{children:d.length>0?r.jsxs(r.Fragment,{children:[r.jsx("ul",{children:d.map(u=>r.jsx("li",{children:r.jsx("div",{className:"container",children:r.jsx("div",{className:"col-md-12",children:r.jsxs("div",{className:"row p-2 bg-white border rounded mt-2",children:[r.jsx("div",{className:"col-md-3 mt-1",children:r.jsx("img",{src:u.images[0].file||mt,className:"w-70",alt:"Img",style:{marginTop:"0px",maxWidth:"200px",maxHeight:"200px"}})}),r.jsxs("div",{className:"col-md-6 mt-1",children:[r.jsxs("h5",{children:[" ",r.jsxs(ae,{to:`/property/${u.propertyId}`,children:[u.address,"....."]})]}),r.jsx("div",{className:"d-flex flex-row"}),r.jsxs("div",{className:"mt-1 mb-1 spec-1",children:[r.jsx("span",{children:"100% cotton"}),r.jsx("span",{className:"dot"}),r.jsx("span",{children:"Light weight"}),r.jsx("span",{className:"dot"}),r.jsxs("span",{children:["Best finish",r.jsx("br",{})]})]}),r.jsxs("div",{className:"mt-1 mb-1 spec-1",children:[r.jsx("span",{children:"Unique design"}),r.jsx("span",{className:"dot"}),r.jsx("span",{children:"For men"}),r.jsx("span",{className:"dot"}),r.jsxs("span",{children:["Casual",r.jsx("br",{})]})]}),r.jsxs("p",{className:"text-justify text-truncate para mb-0",children:["There are many variations of passages of",r.jsx("br",{}),r.jsx("br",{})]})]}),r.jsx("div",{className:"align-items-center align-content-center col-md-3 border-left mt-1",children:r.jsxs("div",{className:"d-flex flex-column mt-4",children:[r.jsx(ae,{to:`/property/${u.propertyId}`,children:r.jsxs("button",{className:"btn btn-outline-primary btn-sm mt-2",type:"button",style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{className:"fa fa-eye",style:{color:"#F74B02"}})," "," ","View Details"]})}),r.jsx(ae,{to:`/editproperty/${u.propertyId}`,children:r.jsxs("button",{className:"btn btn-outline-primary btn-sm mt-2",type:"button",style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{className:"fa fa-edit",style:{color:"#F74B02"}})," "," ","Edit Details .."]})})]})})]})})})},u._id))}),r.jsxs("div",{className:"pagination",children:[r.jsx("button",{onClick:()=>l(i-1),disabled:i===1,children:"Previous"}),Array.from({length:s},(u,f)=>f+1).map(u=>u===i||u===1||u===s||u>=i-1&&u<=i+1?r.jsx("button",{onClick:()=>l(u),disabled:i===u,children:u},u):u===2||u===s-1?r.jsx("span",{children:"..."},u):null),r.jsx("button",{onClick:()=>l(i+1),disabled:i===s,children:"Next"})]})]}):r.jsx("p",{children:"No active properties found."})})},jb=()=>{var c;const e=Ke(),{user:t}=_e(u=>({...u.auth})),{properties:n,totalPages:s}=_e(u=>u.property),[i,o]=w.useState(1),a=5;w.useEffect(()=>{e(mr({page:i,limit:a}))},[e,(c=t==null?void 0:t.result)==null?void 0:c.userId,i]);const l=u=>{o(u)},d=n.filter(u=>u.fundDetails&&u.fundDetails.some(f=>f.fundValue!==void 0&&f.fundPercentage!==void 0&&f.userId===t.result._id));return r.jsx(r.Fragment,{children:d.length>0?r.jsxs(r.Fragment,{children:[r.jsx("ul",{children:d.map(u=>r.jsx("li",{children:r.jsx("div",{className:"container",children:r.jsx("div",{className:"col-md-12",children:r.jsxs("div",{className:"row p-2 bg-white border rounded mt-2",children:[r.jsx("div",{className:"col-md-3 mt-1",children:r.jsx("img",{src:u.images[0].file||mt,className:"w-70",alt:"Img",style:{marginTop:"0px",maxWidth:"200px",maxHeight:"200px"}})}),r.jsxs("div",{className:"col-md-6 mt-1",children:[r.jsxs("h5",{children:[" ",r.jsxs(ae,{to:`/property/${u.propertyId}`,target:"_blank",children:[u.address,"....."]})]}),r.jsx("div",{className:"d-flex flex-row"}),r.jsxs("div",{className:"mt-1 mb-1 spec-1",children:[r.jsx("span",{children:"100% cotton"}),r.jsx("span",{className:"dot"}),r.jsx("span",{children:"Light weight"}),r.jsx("span",{className:"dot"}),r.jsxs("span",{children:["Best finish",r.jsx("br",{})]})]}),r.jsxs("div",{className:"mt-1 mb-1 spec-1",children:[r.jsx("span",{children:"Unique design"}),r.jsx("span",{className:"dot"}),r.jsx("span",{children:"For men"}),r.jsx("span",{className:"dot"}),r.jsxs("span",{children:["Casual",r.jsx("br",{})]})]}),r.jsxs("p",{className:"text-justify text-truncate para mb-0",children:["There are many variations of passages of",r.jsx("br",{}),r.jsx("br",{})]})]}),r.jsx("div",{className:"align-items-center align-content-center col-md-3 border-left mt-1",children:r.jsxs("div",{className:"d-flex flex-column mt-4",children:[r.jsx(ae,{to:`/property/${u.propertyId}`,children:r.jsxs("button",{className:"btn btn-outline-primary btn-sm mt-2",type:"button",style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{className:"fa fa-eye",style:{color:"#F74B02"}})," "," ","View Details"]})}),r.jsx(ae,{to:`/editproperty/${u.propertyId}`,children:r.jsxs("button",{className:"btn btn-outline-primary btn-sm mt-2",type:"button",style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{className:"fa fa-edit",style:{color:"#F74B02"}})," "," ","Edit Details .."]})})]})})]})})})},u._id))}),r.jsxs("div",{className:"pagination",children:[r.jsx("button",{onClick:()=>l(i-1),disabled:i===1,children:"Previous"}),Array.from({length:s},(u,f)=>f+1).map(u=>u===i||u===1||u===s||u>=i-1&&u<=i+1?r.jsx("button",{onClick:()=>l(u),disabled:i===u,children:u},u):u===2||u===s-1?r.jsx("span",{children:"..."},u):null),r.jsx("button",{onClick:()=>l(i+1),disabled:i===s,children:"Next"})]})]}):r.jsx("p",{children:"No active properties found."})})},Nb=()=>{var a,l;const{user:e}=_e(d=>({...d.auth}));console.log("user",e);const t=Ke(),[n,s]=w.useState({userId:((a=e==null?void 0:e.result)==null?void 0:a.userId)||"",fundAmount:((l=e==null?void 0:e.result)==null?void 0:l.fundAmount)||""});w.useEffect(()=>{var d,c;e&&s({userId:(d=e==null?void 0:e.result)==null?void 0:d.userId,fundAmount:(c=e==null?void 0:e.result)==null?void 0:c.fundAmount})},[e]);const i=d=>{s({...n,[d.target.name]:d.target.value})},o=d=>{if(d.preventDefault(),n.fundAmount<=0)return ie.error("Please enter a valid funding amount greater than 0");t(Eo({formData:n,toast:ie}))};return r.jsx(r.Fragment,{children:r.jsxs("form",{onSubmit:o,children:[r.jsx("div",{className:"col-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Willing to Invest",r.jsx("input",{type:"text",className:"form-control",placeholder:"Enter Fund Amount",name:"fundAmount",value:n.fundAmount,onChange:i})]})}),r.jsx("div",{className:"col-12",children:r.jsx("div",{className:"d-grid",children:r.jsx("button",{className:"btn btn-primary btn-lg",type:"submit",style:{backgroundColor:"#fda417",border:"#fda417"},children:"submit"})})})]})})},Cb=()=>{const[e,t]=w.useState("dashboard"),{user:n}=_e(i=>i.auth),s=()=>{switch(e){case"Userdetails":return r.jsx(xb,{});case"FundToInvest":return r.jsx(Nb,{});case"addProperty":return r.jsx(eg,{});case"activeProperties":return r.jsxs("div",{children:[r.jsx("h3",{children:"Active Properties"}),r.jsx(gb,{})]});case"Fundings Received":return r.jsxs("div",{children:[r.jsx("h3",{children:"Fundings Received"}),r.jsx(yb,{})]});case"Offers Submitted":return r.jsxs("div",{children:[r.jsx("h3",{children:"Offers Submitted"}),r.jsx(jb,{})]});case"closedProperties":return r.jsx("p",{children:"These are your closed properties."});default:return r.jsx(r.Fragment,{})}};return r.jsxs(r.Fragment,{children:[r.jsx(Le,{}),r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{}),r.jsxs("div",{className:"d-flex",style:{margin:"0",padding:"0"},children:[r.jsx("div",{className:"col-md-3 p-1",style:{paddingRight:"2px",margin:"0"},children:r.jsxs("div",{className:"card card1 p-5",children:[r.jsx("img",{className:"img-fluid",src:n.result.profileImage||Ms,alt:"ProfileImage",style:{maxWidth:"250px",maxHeight:"250px"}}),r.jsx("hr",{className:"hline"}),r.jsxs("div",{className:"d-flex flex-column align-items-center",children:[r.jsxs("button",{className:`btn ${e==="dashboard"?"active":""}`,onClick:()=>t("dashboard"),children:[r.jsx("i",{className:"fa fa-dashboard",style:{color:"#F74B02"}}),r.jsx("span",{children:"Dashboard"})]}),r.jsxs("button",{className:`btn mt-3 ${e==="Userdetails"?"active":""}`,onClick:()=>t("Userdetails"),children:[r.jsx("span",{className:"fa fa-home",style:{color:"#F74B02"}}),r.jsx("span",{children:"User Profile"})]}),r.jsxs("button",{className:`btn mt-3 ${e==="FundToInvest"?"active":""}`,onClick:()=>t("FundToInvest"),children:[r.jsx("span",{className:"fa fa-home",style:{color:"#F74B02"}}),r.jsx("span",{children:"Fund To Invest"})]}),r.jsxs("button",{className:`btn mt-3 ${e==="addProperty"?"active":""}`,onClick:()=>t("addProperty"),children:[r.jsx("span",{className:"fa fa-home",style:{color:"#F74B02"}}),r.jsx("span",{children:"Add Property"})]}),r.jsxs("button",{className:`btn mt-3 ${e==="activeProperties"?"active":""}`,onClick:()=>t("activeProperties"),children:[r.jsx("span",{className:"fa fa-home",style:{color:"#F74B02"}}),r.jsx("span",{children:"Active Properties"})]}),r.jsxs("button",{className:`btn mt-3 ${e==="Fundings Received"?"active":""}`,onClick:()=>t("Fundings Received"),children:[r.jsx("span",{className:"fa fa-home",style:{color:"#F74B02"}}),r.jsx("span",{children:"Fundings Received"})]}),r.jsxs("button",{className:`btn mt-3 ${e==="Offers Submitted"?"active":""}`,onClick:()=>t("Offers Submitted"),children:[r.jsx("span",{className:"fa fa-home",style:{color:"#F74B02"}}),r.jsx("span",{children:"Offers Submitted"})]}),r.jsxs("button",{className:`btn mt-3 ${e==="closedProperties"?"active":""}`,onClick:()=>t("closedProperties"),children:[r.jsx("span",{className:"fa fa-home",style:{color:"#F74B02"}}),r.jsx("span",{children:"Closed Properties"})]})]})]})}),r.jsx("div",{className:"col-md-9 p-1",style:{paddingLeft:"2px",margin:"0"},children:r.jsxs("div",{className:"card card2 p-2",children:[r.jsxs("span",{children:[r.jsx("br",{}),"Welcome to"," ",r.jsx("span",{style:{color:"#067ADC"},children:r.jsxs(ae,{to:`/profile/${n.result.userId}`,className:"link-primary text-decoration-none",children:[n.result.title,". ",n.result.firstName," ",n.result.middleName," ",n.result.lastName]})}),r.jsx("span",{style:{color:"#067ADC"},children:r.jsx(ae,{to:"/addproperty",className:"link-primary text-decoration-none",children:"add"})})]}),e==="dashboard"&&r.jsxs(r.Fragment,{children:[r.jsx("br",{}),r.jsxs("div",{className:"banner_taital",children:[r.jsxs("h1",{style:{color:"#fda417",fontSize:"30px",padding:"10px",fontWeight:"normal"},className:"services_taital",children:["Now you are accessing the world's only portal which has Streamlined the",r.jsx("h1",{style:{fontSize:"30px",padding:"10px",fontWeight:"normal"},children:" investor-borrower interactions, "})]}),r.jsxs("h1",{className:"services_taital",style:{color:"#fda417",fontSize:"30px",padding:"10px",fontWeight:"normal"},children:["gaining complete visibility into your data, and using smart filters to",r.jsxs("h1",{className:"services_taital",style:{fontSize:"30px",padding:"10px",fontWeight:"normal"},children:["create automatic workflows"," "]})]}),r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{}),r.jsx("br",{})]})]}),r.jsx("br",{}),s()]})})]}),r.jsx(tt,{})]})};var tg={exports:{}},bb="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",wb=bb,Sb=wb;function ng(){}function rg(){}rg.resetWarningCache=ng;var kb=function(){function e(s,i,o,a,l,d){if(d!==Sb){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:rg,resetWarningCache:ng};return n.PropTypes=n,n};tg.exports=kb();var Eb=tg.exports;const Lt=wi(Eb),Pb=()=>{const[e,t]=w.useState(3),n=hn();return w.useEffect(()=>{const s=setInterval(()=>{t(i=>--i)},1e3);return e===0&&n("/login"),()=>clearInterval(s)},[e,n]),r.jsx("div",{style:{marginTop:"100px"},children:r.jsxs("h5",{children:["Redirecting you in ",e," seconds"]})})},Bs=({children:e})=>{const{user:t}=_e(n=>({...n.auth}));return t?e:r.jsx(Pb,{})};Bs.propTypes={children:Lt.node.isRequired};const _b=()=>{const e=Ke(),{id:t,token:n}=gs();return w.useEffect(()=>{e(_o({id:t,token:n}))},[e,t,n]),r.jsxs(r.Fragment,{children:[r.jsx(Le,{}),r.jsxs("div",{className:"contact_section layout_padding",children:[r.jsx("div",{className:"container",children:r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-md-12",children:r.jsx("h1",{className:"contact_taital",children:"Contact Us"})})})}),r.jsx("div",{className:"container-fluid",children:r.jsx("div",{className:"contact_section_2",children:r.jsxs("div",{className:"row",children:[r.jsxs("div",{className:"col-md-6",children:[r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("h1",{className:"card-title text-center",children:r.jsxs(ae,{to:"/login",className:"glightbox play-btn mb-4",children:[" ","Email verified successfully !!! Please",r.jsx("span",{style:{color:"#F74B02"},children:" login "})," "," ","to access ..."]})})]}),r.jsx("div",{className:"col-md-6 padding_left_15",children:r.jsx("div",{className:"contact_img"})})]})})})]}),r.jsx(tt,{})]})},Ob=()=>{const[e,t]=w.useState(""),[n,s]=w.useState(""),i="http://67.225.129.127:3002",o=async()=>{try{const a=await me.post(`${i}/users/forgotpassword`,{email:e});s(a.data.message)}catch(a){console.error("Forgot Password Error:",a),s(a.response.data.message)}};return r.jsxs(r.Fragment,{children:[r.jsx(Le,{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsxs("section",{className:"card",style:{minHeight:"100vh",backgroundColor:"#FFFFFF"},children:[r.jsx("div",{className:"container-fluid px-0",children:r.jsxs("div",{className:"row gy-4 align-items-center justify-content-center",children:[r.jsx("div",{className:"col-12 col-md-0 col-xl-20 text-center text-md-start"}),r.jsx("div",{className:"col-12 col-md-6 col-xl-5",children:r.jsx("div",{className:"card border-0 rounded-4 shadow-lg",style:{width:"100%"},children:r.jsxs("div",{className:"card-body p-3 p-md-4 p-xl-5",children:[r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-12",children:r.jsxs("div",{className:"mb-4",children:[r.jsx("h2",{className:"h3",children:"Forgot Password"}),r.jsx("hr",{})]})})}),r.jsxs("div",{className:"row gy-3 overflow-hidden",children:[r.jsx("div",{className:"col-12",children:r.jsxs("div",{className:"form-floating mb-3",children:[r.jsx("input",{type:"email",className:"form-control",value:e,onChange:a=>t(a.target.value),placeholder:"name@example.com",required:"required"}),r.jsx("label",{htmlFor:"email",className:"form-label",children:"Enter your email address to receive a password reset link"})]})}),r.jsxs("div",{className:"col-12",children:[r.jsx("div",{className:"d-grid",children:r.jsx("button",{className:"btn btn-primary btn-lg",type:"submit",style:{backgroundColor:"#fda417",border:"#fda417"},onClick:o,children:"Reset Password"})}),r.jsx("p",{style:{color:"#067ADC"},className:"card-title text-center",children:n})]})]}),r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-12",children:r.jsx("div",{className:"d-flex gap-2 gap-md-4 flex-column flex-md-row justify-content-md-end mt-4",children:r.jsxs("p",{className:"m-0 text-secondary text-center",children:["Already have an account?"," ",r.jsx(ae,{to:"/login",className:"link-primary text-decoration-none",children:"Sign In"})]})})})}),r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-12"})})]})})})]})}),r.jsx(tt,{})]})]})},Tb=()=>{const{userId:e,token:t}=gs(),[n,s]=w.useState(""),[i,o]=w.useState(""),[a,l]=w.useState(""),d="http://67.225.129.127:3002",c=async()=>{try{if(!n||n.trim()===""){l("Password not entered"),ie.error("Password not entered");return}const u=await me.post(`${d}/users/resetpassword/${e}/${t}`,{userId:e,token:t,password:n});if(n!==i){l("Passwords do not match."),ie.error("Passwords do not match.");return}else l("Password reset successfull"),ie.success(u.data.message)}catch(u){console.error("Reset Password Error:",u)}};return w.useEffect(()=>{ie.dismiss()},[]),r.jsxs(r.Fragment,{children:[r.jsx(Le,{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("section",{className:"card mb-0 vh-100",children:r.jsx("div",{className:"container py-10 h-100",children:r.jsx("div",{className:"row d-flex align-items-center justify-content-center h-100",children:r.jsxs("div",{className:"col-md-10 col-lg-5 col-xl-5 offset-xl-1 card mb-10",children:[r.jsx("br",{}),r.jsxs("h2",{children:["Reset Password",r.jsx("hr",{}),r.jsx("p",{className:"card-title text-center",style:{color:"#F74B02"},children:"Enter your new password:"})]}),r.jsx("input",{className:"form-control vh-10",type:"password",value:n,onChange:u=>s(u.target.value),placeholder:"Enter your new password",style:{display:"flex",gap:"35px"}}),r.jsx("br",{}),r.jsx("input",{className:"form-control",type:"password",value:i,onChange:u=>o(u.target.value),placeholder:"Confirm your new password"}),r.jsx("br",{}),r.jsx("button",{className:"btn btn-primary btn-lg",type:"submit",name:"signin",value:"Sign in",onClick:c,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Reset Password"}),r.jsx("p",{style:{color:"#067ADC"},className:"card-title text-center",children:a})]})})})}),r.jsx(tt,{})]})},Rb=()=>r.jsxs(r.Fragment,{children:[r.jsx(Le,{}),r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{}),r.jsxs("div",{className:"col-md-18",children:[r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsxs("h1",{className:"card-title text-center",children:[" ","Thank you for joining the world's most trusted realtor investment and borrowers portal."]}),r.jsxs("h2",{children:["We reqest you to kindly ",r.jsx("span",{style:{fontSize:"2rem",color:"#fda417"},children:"check your email inbox "})," and click on the ",r.jsx("span",{style:{fontSize:"2rem",color:"#fda417"},children:"verification link "}),"to access the dashboard."]})]}),r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{}),r.jsx(tt,{})]});var sg={exports:{}};/*! - 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 o="",a=0;a{o.target===e&&(i(),t(o))},n+s)}function Zb(e){e.offsetHeight}const Sp=e=>!e||typeof e=="function"?e:t=>{e.current=t};function ew(e,t){const n=Sp(e),s=Sp(t);return i=>{n&&n(i),s&&s(i)}}function Di(e,t){return w.useMemo(()=>ew(e,t),[e,t])}function tw(e){return e&&"setState"in e?qr.findDOMNode(e):e??null}const nw=I.forwardRef(({onEnter:e,onEntering:t,onEntered:n,onExit:s,onExiting:i,onExited:o,addEndListener:a,children:l,childRef:d,...c},u)=>{const f=w.useRef(null),g=Di(f,d),b=O=>{g(tw(O))},x=O=>T=>{O&&f.current&&O(f.current,T)},N=w.useCallback(x(e),[e]),C=w.useCallback(x(t),[t]),m=w.useCallback(x(n),[n]),v=w.useCallback(x(s),[s]),h=w.useCallback(x(i),[i]),y=w.useCallback(x(o),[o]),k=w.useCallback(x(a),[a]);return r.jsx(vn,{ref:u,...c,onEnter:N,onEntered:m,onEntering:C,onExit:v,onExited:y,onExiting:h,addEndListener:k,nodeRef:f,children:typeof l=="function"?(O,T)=>l(O,{...T,ref:b}):I.cloneElement(l,{ref:b})})});function rw(e){const t=w.useRef(e);return w.useEffect(()=>{t.current=e},[e]),t}function Gt(e){const t=rw(e);return w.useCallback(function(...n){return t.current&&t.current(...n)},[t])}const sw=e=>w.forwardRef((t,n)=>r.jsx("div",{...t,ref:n,className:ye(t.className,e)}));function iw(){return w.useState(null)}function ow(){const e=w.useRef(!0),t=w.useRef(()=>e.current);return w.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),t.current}function aw(e){const t=w.useRef(null);return w.useEffect(()=>{t.current=e}),t.current}const lw=typeof global<"u"&&global.navigator&&global.navigator.product==="ReactNative",cw=typeof document<"u",kp=cw||lw?w.useLayoutEffect:w.useEffect,dw=["as","disabled"];function uw(e,t){if(e==null)return{};var n={};for(var s in e)if({}.hasOwnProperty.call(e,s)){if(t.indexOf(s)>=0)continue;n[s]=e[s]}return n}function fw(e){return!e||e.trim()==="#"}function lg({tagName:e,disabled:t,href:n,target:s,rel:i,role:o,onClick:a,tabIndex:l=0,type:d}){e||(n!=null||s!=null||i!=null?e="a":e="button");const c={tagName:e};if(e==="button")return[{type:d||"button",disabled:t},c];const u=g=>{if((t||e==="a"&&fw(n))&&g.preventDefault(),t){g.stopPropagation();return}a==null||a(g)},f=g=>{g.key===" "&&(g.preventDefault(),u(g))};return e==="a"&&(n||(n="#"),t&&(n=void 0)),[{role:o??"button",disabled:void 0,tabIndex:t?void 0:l,href:n,target:e==="a"?s:void 0,"aria-disabled":t||void 0,rel:e==="a"?i:void 0,onClick:u,onKeyDown:f},c]}const pw=w.forwardRef((e,t)=>{let{as:n,disabled:s}=e,i=uw(e,dw);const[o,{tagName:a}]=lg(Object.assign({tagName:n,disabled:s},i));return r.jsx(a,Object.assign({},i,o,{ref:t}))});pw.displayName="Button";function mw(e){return e.code==="Escape"||e.keyCode===27}function cg(){const e=w.version.split(".");return{major:+e[0],minor:+e[1],patch:+e[2]}}const hw={[kn]:"show",[or]:"show"},Su=w.forwardRef(({className:e,children:t,transitionClasses:n={},onEnter:s,...i},o)=>{const a={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1,...i},l=w.useCallback((u,f)=>{Zb(u),s==null||s(u,f)},[s]),{major:d}=cg(),c=d>=19?t.props.ref:t.ref;return r.jsx(nw,{ref:o,addEndListener:Jb,...a,onEnter:l,childRef:c,children:(u,f)=>w.cloneElement(t,{...f,className:ye("fade",e,t.props.className,hw[u],n[u])})})});Su.displayName="Fade";const vw={"aria-label":Lt.string,onClick:Lt.func,variant:Lt.oneOf(["white"])},ku=w.forwardRef(({className:e,variant:t,"aria-label":n="Close",...s},i)=>r.jsx("button",{ref:i,type:"button",className:ye("btn-close",t&&`btn-close-${t}`,e),"aria-label":n,...s}));ku.displayName="CloseButton";ku.propTypes=vw;const dg=w.forwardRef(({as:e,bsPrefix:t,variant:n="primary",size:s,active:i=!1,disabled:o=!1,className:a,...l},d)=>{const c=Ie(t,"btn"),[u,{tagName:f}]=lg({tagName:e,disabled:o,...l}),g=f;return r.jsx(g,{...u,...l,ref:d,disabled:o,className:ye(a,c,i&&"active",n&&`${c}-${n}`,s&&`${c}-${s}`,l.href&&o&&"disabled")})});dg.displayName="Button";function gw(e){const t=w.useRef(e);return t.current=e,t}function ug(e){const t=gw(e);w.useEffect(()=>()=>t.current(),[])}function xw(e,t){return w.Children.toArray(e).some(n=>w.isValidElement(n)&&n.type===t)}function yw({as:e,bsPrefix:t,className:n,...s}){t=Ie(t,"col");const i=Mb(),o=Bb(),a=[],l=[];return i.forEach(d=>{const c=s[d];delete s[d];let u,f,g;typeof c=="object"&&c!=null?{span:u,offset:f,order:g}=c:u=c;const b=d!==o?`-${d}`:"";u&&a.push(u===!0?`${t}${b}`:`${t}${b}-${u}`),g!=null&&l.push(`order${b}-${g}`),f!=null&&l.push(`offset${b}-${f}`)}),[{...s,className:ye(n,...a,...l)},{as:e,bsPrefix:t,spans:a}]}const fg=w.forwardRef((e,t)=>{const[{className:n,...s},{as:i="div",bsPrefix:o,spans:a}]=yw(e);return r.jsx(i,{...s,ref:t,className:ye(n,!a.length&&o)})});fg.displayName="Col";var jw=Function.prototype.bind.call(Function.prototype.call,[].slice);function Or(e,t){return jw(e.querySelectorAll(t))}function Ep(e,t){if(e.contains)return e.contains(t);if(e.compareDocumentPosition)return e===t||!!(e.compareDocumentPosition(t)&16)}const Nw="data-rr-ui-";function Cw(e){return`${Nw}${e}`}const pg=w.createContext(xs?window:void 0);pg.Provider;function Eu(){return w.useContext(pg)}const bw={type:Lt.string,tooltip:Lt.bool,as:Lt.elementType},el=w.forwardRef(({as:e="div",className:t,type:n="valid",tooltip:s=!1,...i},o)=>r.jsx(e,{...i,ref:o,className:ye(t,`${n}-${s?"tooltip":"feedback"}`)}));el.displayName="Feedback";el.propTypes=bw;const pn=w.createContext({}),Pu=w.forwardRef(({id:e,bsPrefix:t,className:n,type:s="checkbox",isValid:i=!1,isInvalid:o=!1,as:a="input",...l},d)=>{const{controlId:c}=w.useContext(pn);return t=Ie(t,"form-check-input"),r.jsx(a,{...l,ref:d,type:s,id:e||c,className:ye(n,t,i&&"is-valid",o&&"is-invalid")})});Pu.displayName="FormCheckInput";const ja=w.forwardRef(({bsPrefix:e,className:t,htmlFor:n,...s},i)=>{const{controlId:o}=w.useContext(pn);return e=Ie(e,"form-check-label"),r.jsx("label",{...s,ref:i,htmlFor:n||o,className:ye(t,e)})});ja.displayName="FormCheckLabel";const mg=w.forwardRef(({id:e,bsPrefix:t,bsSwitchPrefix:n,inline:s=!1,reverse:i=!1,disabled:o=!1,isValid:a=!1,isInvalid:l=!1,feedbackTooltip:d=!1,feedback:c,feedbackType:u,className:f,style:g,title:b="",type:x="checkbox",label:N,children:C,as:m="input",...v},h)=>{t=Ie(t,"form-check"),n=Ie(n,"form-switch");const{controlId:y}=w.useContext(pn),k=w.useMemo(()=>({controlId:e||y}),[y,e]),O=!C&&N!=null&&N!==!1||xw(C,ja),T=r.jsx(Pu,{...v,type:x==="switch"?"checkbox":x,ref:h,isValid:a,isInvalid:l,disabled:o,as:m});return r.jsx(pn.Provider,{value:k,children:r.jsx("div",{style:g,className:ye(f,O&&t,s&&`${t}-inline`,i&&`${t}-reverse`,x==="switch"&&n),children:C||r.jsxs(r.Fragment,{children:[T,O&&r.jsx(ja,{title:b,children:N}),c&&r.jsx(el,{type:u,tooltip:d,children:c})]})})})});mg.displayName="FormCheck";const Na=Object.assign(mg,{Input:Pu,Label:ja}),hg=w.forwardRef(({bsPrefix:e,type:t,size:n,htmlSize:s,id:i,className:o,isValid:a=!1,isInvalid:l=!1,plaintext:d,readOnly:c,as:u="input",...f},g)=>{const{controlId:b}=w.useContext(pn);return e=Ie(e,"form-control"),r.jsx(u,{...f,type:t,size:s,ref:g,readOnly:c,id:i||b,className:ye(o,d?`${e}-plaintext`:e,n&&`${e}-${n}`,t==="color"&&`${e}-color`,a&&"is-valid",l&&"is-invalid")})});hg.displayName="FormControl";const ww=Object.assign(hg,{Feedback:el}),vg=w.forwardRef(({className:e,bsPrefix:t,as:n="div",...s},i)=>(t=Ie(t,"form-floating"),r.jsx(n,{ref:i,className:ye(e,t),...s})));vg.displayName="FormFloating";const _u=w.forwardRef(({controlId:e,as:t="div",...n},s)=>{const i=w.useMemo(()=>({controlId:e}),[e]);return r.jsx(pn.Provider,{value:i,children:r.jsx(t,{...n,ref:s})})});_u.displayName="FormGroup";const gg=w.forwardRef(({as:e="label",bsPrefix:t,column:n=!1,visuallyHidden:s=!1,className:i,htmlFor:o,...a},l)=>{const{controlId:d}=w.useContext(pn);t=Ie(t,"form-label");let c="col-form-label";typeof n=="string"&&(c=`${c} ${c}-${n}`);const u=ye(i,t,s&&"visually-hidden",n&&c);return o=o||d,n?r.jsx(fg,{ref:l,as:"label",className:u,htmlFor:o,...a}):r.jsx(e,{ref:l,className:u,htmlFor:o,...a})});gg.displayName="FormLabel";const xg=w.forwardRef(({bsPrefix:e,className:t,id:n,...s},i)=>{const{controlId:o}=w.useContext(pn);return e=Ie(e,"form-range"),r.jsx("input",{...s,type:"range",ref:i,className:ye(t,e),id:n||o})});xg.displayName="FormRange";const yg=w.forwardRef(({bsPrefix:e,size:t,htmlSize:n,className:s,isValid:i=!1,isInvalid:o=!1,id:a,...l},d)=>{const{controlId:c}=w.useContext(pn);return e=Ie(e,"form-select"),r.jsx("select",{...l,size:n,ref:d,className:ye(s,e,t&&`${e}-${t}`,i&&"is-valid",o&&"is-invalid"),id:a||c})});yg.displayName="FormSelect";const jg=w.forwardRef(({bsPrefix:e,className:t,as:n="small",muted:s,...i},o)=>(e=Ie(e,"form-text"),r.jsx(n,{...i,ref:o,className:ye(t,e,s&&"text-muted")})));jg.displayName="FormText";const Ng=w.forwardRef((e,t)=>r.jsx(Na,{...e,ref:t,type:"switch"}));Ng.displayName="Switch";const Sw=Object.assign(Ng,{Input:Na.Input,Label:Na.Label}),Cg=w.forwardRef(({bsPrefix:e,className:t,children:n,controlId:s,label:i,...o},a)=>(e=Ie(e,"form-floating"),r.jsxs(_u,{ref:a,className:ye(t,e),controlId:s,...o,children:[n,r.jsx("label",{htmlFor:s,children:i})]})));Cg.displayName="FloatingLabel";const kw={_ref:Lt.any,validated:Lt.bool,as:Lt.elementType},Ou=w.forwardRef(({className:e,validated:t,as:n="form",...s},i)=>r.jsx(n,{...s,ref:i,className:ye(e,t&&"was-validated")}));Ou.displayName="Form";Ou.propTypes=kw;const er=Object.assign(Ou,{Group:_u,Control:ww,Floating:vg,Check:Na,Switch:Sw,Label:gg,Text:jg,Range:xg,Select:yg,FloatingLabel:Cg});var ao;function Pp(e){if((!ao&&ao!==0||e)&&xs){var t=document.createElement("div");t.style.position="absolute",t.style.top="-9999px",t.style.width="50px",t.style.height="50px",t.style.overflow="scroll",document.body.appendChild(t),ao=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return ao}function tc(e){e===void 0&&(e=Za());try{var t=e.activeElement;return!t||!t.nodeName?null:t}catch{return e.body}}function Ew(e=document){const t=e.defaultView;return Math.abs(t.innerWidth-e.documentElement.clientWidth)}const _p=Cw("modal-open");class Tu{constructor({ownerDocument:t,handleContainerOverflow:n=!0,isRTL:s=!1}={}){this.handleContainerOverflow=n,this.isRTL=s,this.modals=[],this.ownerDocument=t}getScrollbarWidth(){return Ew(this.ownerDocument)}getElement(){return(this.ownerDocument||document).body}setModalAttributes(t){}removeModalAttributes(t){}setContainerStyle(t){const n={overflow:"hidden"},s=this.isRTL?"paddingLeft":"paddingRight",i=this.getElement();t.style={overflow:i.style.overflow,[s]:i.style[s]},t.scrollBarWidth&&(n[s]=`${parseInt(vr(i,s)||"0",10)+t.scrollBarWidth}px`),i.setAttribute(_p,""),vr(i,n)}reset(){[...this.modals].forEach(t=>this.remove(t))}removeContainerStyle(t){const n=this.getElement();n.removeAttribute(_p),Object.assign(n.style,t.style)}add(t){let n=this.modals.indexOf(t);return n!==-1||(n=this.modals.length,this.modals.push(t),this.setModalAttributes(t),n!==0)||(this.state={scrollBarWidth:this.getScrollbarWidth(),style:{}},this.handleContainerOverflow&&this.setContainerStyle(this.state)),n}remove(t){const n=this.modals.indexOf(t);n!==-1&&(this.modals.splice(n,1),!this.modals.length&&this.handleContainerOverflow&&this.removeContainerStyle(this.state),this.removeModalAttributes(t))}isTopModal(t){return!!this.modals.length&&this.modals[this.modals.length-1]===t}}const nc=(e,t)=>xs?e==null?(t||Za()).body:(typeof e=="function"&&(e=e()),e&&"current"in e&&(e=e.current),e&&("nodeType"in e||e.getBoundingClientRect)?e:null):null;function Pw(e,t){const n=Eu(),[s,i]=w.useState(()=>nc(e,n==null?void 0:n.document));if(!s){const o=nc(e);o&&i(o)}return w.useEffect(()=>{},[t,s]),w.useEffect(()=>{const o=nc(e);o!==s&&i(o)},[e,s]),s}function _w({children:e,in:t,onExited:n,mountOnEnter:s,unmountOnExit:i}){const o=w.useRef(null),a=w.useRef(t),l=Gt(n);w.useEffect(()=>{t?a.current=!0:l(o.current)},[t,l]);const d=Di(o,e.ref),c=w.cloneElement(e,{ref:d});return t?c:i||!a.current&&s?null:c}const Ow=["onEnter","onEntering","onEntered","onExit","onExiting","onExited","addEndListener","children"];function Tw(e,t){if(e==null)return{};var n={};for(var s in e)if({}.hasOwnProperty.call(e,s)){if(t.indexOf(s)>=0)continue;n[s]=e[s]}return n}function Rw(e){let{onEnter:t,onEntering:n,onEntered:s,onExit:i,onExiting:o,onExited:a,addEndListener:l,children:d}=e,c=Tw(e,Ow);const{major:u}=cg(),f=u>=19?d.props.ref:d.ref,g=w.useRef(null),b=Di(g,typeof d=="function"?null:f),x=O=>T=>{O&&g.current&&O(g.current,T)},N=w.useCallback(x(t),[t]),C=w.useCallback(x(n),[n]),m=w.useCallback(x(s),[s]),v=w.useCallback(x(i),[i]),h=w.useCallback(x(o),[o]),y=w.useCallback(x(a),[a]),k=w.useCallback(x(l),[l]);return Object.assign({},c,{nodeRef:g},t&&{onEnter:N},n&&{onEntering:C},s&&{onEntered:m},i&&{onExit:v},o&&{onExiting:h},a&&{onExited:y},l&&{addEndListener:k},{children:typeof d=="function"?(O,T)=>d(O,Object.assign({},T,{ref:b})):w.cloneElement(d,{ref:b})})}const Aw=["component"];function Iw(e,t){if(e==null)return{};var n={};for(var s in e)if({}.hasOwnProperty.call(e,s)){if(t.indexOf(s)>=0)continue;n[s]=e[s]}return n}const Fw=w.forwardRef((e,t)=>{let{component:n}=e,s=Iw(e,Aw);const i=Rw(s);return r.jsx(n,Object.assign({ref:t},i))});function Dw({in:e,onTransition:t}){const n=w.useRef(null),s=w.useRef(!0),i=Gt(t);return kp(()=>{if(!n.current)return;let o=!1;return i({in:e,element:n.current,initial:s.current,isStale:()=>o}),()=>{o=!0}},[e,i]),kp(()=>(s.current=!1,()=>{s.current=!0}),[]),n}function Lw({children:e,in:t,onExited:n,onEntered:s,transition:i}){const[o,a]=w.useState(!t);t&&o&&a(!1);const l=Dw({in:!!t,onTransition:c=>{const u=()=>{c.isStale()||(c.in?s==null||s(c.element,c.initial):(a(!0),n==null||n(c.element)))};Promise.resolve(i(c)).then(u,f=>{throw c.in||a(!0),f})}}),d=Di(l,e.ref);return o&&!t?null:w.cloneElement(e,{ref:d})}function Op(e,t,n){return e?r.jsx(Fw,Object.assign({},n,{component:e})):t?r.jsx(Lw,Object.assign({},n,{transition:t})):r.jsx(_w,Object.assign({},n))}const Mw=["show","role","className","style","children","backdrop","keyboard","onBackdropClick","onEscapeKeyDown","transition","runTransition","backdropTransition","runBackdropTransition","autoFocus","enforceFocus","restoreFocus","restoreFocusOptions","renderDialog","renderBackdrop","manager","container","onShow","onHide","onExit","onExited","onExiting","onEnter","onEntering","onEntered"];function Bw(e,t){if(e==null)return{};var n={};for(var s in e)if({}.hasOwnProperty.call(e,s)){if(t.indexOf(s)>=0)continue;n[s]=e[s]}return n}let rc;function zw(e){return rc||(rc=new Tu({ownerDocument:e==null?void 0:e.document})),rc}function $w(e){const t=Eu(),n=e||zw(t),s=w.useRef({dialog:null,backdrop:null});return Object.assign(s.current,{add:()=>n.add(s.current),remove:()=>n.remove(s.current),isTopModal:()=>n.isTopModal(s.current),setDialogRef:w.useCallback(i=>{s.current.dialog=i},[]),setBackdropRef:w.useCallback(i=>{s.current.backdrop=i},[])})}const bg=w.forwardRef((e,t)=>{let{show:n=!1,role:s="dialog",className:i,style:o,children:a,backdrop:l=!0,keyboard:d=!0,onBackdropClick:c,onEscapeKeyDown:u,transition:f,runTransition:g,backdropTransition:b,runBackdropTransition:x,autoFocus:N=!0,enforceFocus:C=!0,restoreFocus:m=!0,restoreFocusOptions:v,renderDialog:h,renderBackdrop:y=he=>r.jsx("div",Object.assign({},he)),manager:k,container:O,onShow:T,onHide:_=()=>{},onExit:D,onExited:z,onExiting:H,onEnter:te,onEntering:Q,onEntered:Z}=e,F=Bw(e,Mw);const U=Eu(),G=Pw(O),R=$w(k),A=ow(),B=aw(n),[L,W]=w.useState(!n),K=w.useRef(null);w.useImperativeHandle(t,()=>R,[R]),xs&&!B&&n&&(K.current=tc(U==null?void 0:U.document)),n&&L&&W(!1);const Y=Gt(()=>{if(R.add(),de.current=ya(document,"keydown",se),le.current=ya(document,"focus",()=>setTimeout(re),!0),T&&T(),N){var he,$t;const Ye=tc((he=($t=R.dialog)==null?void 0:$t.ownerDocument)!=null?he:U==null?void 0:U.document);R.dialog&&Ye&&!Ep(R.dialog,Ye)&&(K.current=Ye,R.dialog.focus())}}),ee=Gt(()=>{if(R.remove(),de.current==null||de.current(),le.current==null||le.current(),m){var he;(he=K.current)==null||he.focus==null||he.focus(v),K.current=null}});w.useEffect(()=>{!n||!G||Y()},[n,G,Y]),w.useEffect(()=>{L&&ee()},[L,ee]),ug(()=>{ee()});const re=Gt(()=>{if(!C||!A()||!R.isTopModal())return;const he=tc(U==null?void 0:U.document);R.dialog&&he&&!Ep(R.dialog,he)&&R.dialog.focus()}),ne=Gt(he=>{he.target===he.currentTarget&&(c==null||c(he),l===!0&&_())}),se=Gt(he=>{d&&mw(he)&&R.isTopModal()&&(u==null||u(he),he.defaultPrevented||_())}),le=w.useRef(),de=w.useRef(),ge=(...he)=>{W(!0),z==null||z(...he)};if(!G)return null;const Me=Object.assign({role:s,ref:R.setDialogRef,"aria-modal":s==="dialog"?!0:void 0},F,{style:o,className:i,tabIndex:-1});let Ct=h?h(Me):r.jsx("div",Object.assign({},Me,{children:w.cloneElement(a,{role:"document"})}));Ct=Op(f,g,{unmountOnExit:!0,mountOnEnter:!0,appear:!0,in:!!n,onExit:D,onExiting:H,onExited:ge,onEnter:te,onEntering:Q,onEntered:Z,children:Ct});let zt=null;return l&&(zt=y({ref:R.setBackdropRef,onClick:ne}),zt=Op(b,x,{in:!!n,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:zt})),r.jsx(r.Fragment,{children:qr.createPortal(r.jsxs(r.Fragment,{children:[zt,Ct]}),G)})});bg.displayName="Modal";const Ww=Object.assign(bg,{Manager:Tu});function Uw(e,t){return e.classList?e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function qw(e,t){e.classList?e.classList.add(t):Uw(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function Tp(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function Vw(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=Tp(e.className,t):e.setAttribute("class",Tp(e.className&&e.className.baseVal||"",t))}const Tr={FIXED_CONTENT:".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",STICKY_CONTENT:".sticky-top",NAVBAR_TOGGLER:".navbar-toggler"};class Hw extends Tu{adjustAndStore(t,n,s){const i=n.style[t];n.dataset[t]=i,vr(n,{[t]:`${parseFloat(vr(n,t))+s}px`})}restore(t,n){const s=n.dataset[t];s!==void 0&&(delete n.dataset[t],vr(n,{[t]:s}))}setContainerStyle(t){super.setContainerStyle(t);const n=this.getElement();if(qw(n,"modal-open"),!t.scrollBarWidth)return;const s=this.isRTL?"paddingLeft":"paddingRight",i=this.isRTL?"marginLeft":"marginRight";Or(n,Tr.FIXED_CONTENT).forEach(o=>this.adjustAndStore(s,o,t.scrollBarWidth)),Or(n,Tr.STICKY_CONTENT).forEach(o=>this.adjustAndStore(i,o,-t.scrollBarWidth)),Or(n,Tr.NAVBAR_TOGGLER).forEach(o=>this.adjustAndStore(i,o,t.scrollBarWidth))}removeContainerStyle(t){super.removeContainerStyle(t);const n=this.getElement();Vw(n,"modal-open");const s=this.isRTL?"paddingLeft":"paddingRight",i=this.isRTL?"marginLeft":"marginRight";Or(n,Tr.FIXED_CONTENT).forEach(o=>this.restore(s,o)),Or(n,Tr.STICKY_CONTENT).forEach(o=>this.restore(i,o)),Or(n,Tr.NAVBAR_TOGGLER).forEach(o=>this.restore(i,o))}}let sc;function Kw(e){return sc||(sc=new Hw(e)),sc}const wg=w.forwardRef(({className:e,bsPrefix:t,as:n="div",...s},i)=>(t=Ie(t,"modal-body"),r.jsx(n,{ref:i,className:ye(e,t),...s})));wg.displayName="ModalBody";const Sg=w.createContext({onHide(){}}),Ru=w.forwardRef(({bsPrefix:e,className:t,contentClassName:n,centered:s,size:i,fullscreen:o,children:a,scrollable:l,...d},c)=>{e=Ie(e,"modal");const u=`${e}-dialog`,f=typeof o=="string"?`${e}-fullscreen-${o}`:`${e}-fullscreen`;return r.jsx("div",{...d,ref:c,className:ye(u,t,i&&`${e}-${i}`,s&&`${u}-centered`,l&&`${u}-scrollable`,o&&f),children:r.jsx("div",{className:ye(`${e}-content`,n),children:a})})});Ru.displayName="ModalDialog";const kg=w.forwardRef(({className:e,bsPrefix:t,as:n="div",...s},i)=>(t=Ie(t,"modal-footer"),r.jsx(n,{ref:i,className:ye(e,t),...s})));kg.displayName="ModalFooter";const Yw=w.forwardRef(({closeLabel:e="Close",closeVariant:t,closeButton:n=!1,onHide:s,children:i,...o},a)=>{const l=w.useContext(Sg),d=Gt(()=>{l==null||l.onHide(),s==null||s()});return r.jsxs("div",{ref:a,...o,children:[i,n&&r.jsx(ku,{"aria-label":e,variant:t,onClick:d})]})}),Eg=w.forwardRef(({bsPrefix:e,className:t,closeLabel:n="Close",closeButton:s=!1,...i},o)=>(e=Ie(e,"modal-header"),r.jsx(Yw,{ref:o,...i,className:ye(t,e),closeLabel:n,closeButton:s})));Eg.displayName="ModalHeader";const Gw=sw("h4"),Pg=w.forwardRef(({className:e,bsPrefix:t,as:n=Gw,...s},i)=>(t=Ie(t,"modal-title"),r.jsx(n,{ref:i,className:ye(e,t),...s})));Pg.displayName="ModalTitle";function Qw(e){return r.jsx(Su,{...e,timeout:null})}function Xw(e){return r.jsx(Su,{...e,timeout:null})}const _g=w.forwardRef(({bsPrefix:e,className:t,style:n,dialogClassName:s,contentClassName:i,children:o,dialogAs:a=Ru,"data-bs-theme":l,"aria-labelledby":d,"aria-describedby":c,"aria-label":u,show:f=!1,animation:g=!0,backdrop:b=!0,keyboard:x=!0,onEscapeKeyDown:N,onShow:C,onHide:m,container:v,autoFocus:h=!0,enforceFocus:y=!0,restoreFocus:k=!0,restoreFocusOptions:O,onEntered:T,onExit:_,onExiting:D,onEnter:z,onEntering:H,onExited:te,backdropClassName:Q,manager:Z,...F},U)=>{const[G,R]=w.useState({}),[A,B]=w.useState(!1),L=w.useRef(!1),W=w.useRef(!1),K=w.useRef(null),[Y,ee]=iw(),re=Di(U,ee),ne=Gt(m),se=zb();e=Ie(e,"modal");const le=w.useMemo(()=>({onHide:ne}),[ne]);function de(){return Z||Kw({isRTL:se})}function ge(fe){if(!xs)return;const qt=de().getScrollbarWidth()>0,xn=fe.scrollHeight>Za(fe).documentElement.clientHeight;R({paddingRight:qt&&!xn?Pp():void 0,paddingLeft:!qt&&xn?Pp():void 0})}const Me=Gt(()=>{Y&&ge(Y.dialog)});ug(()=>{jd(window,"resize",Me),K.current==null||K.current()});const Ct=()=>{L.current=!0},zt=fe=>{L.current&&Y&&fe.target===Y.dialog&&(W.current=!0),L.current=!1},he=()=>{B(!0),K.current=ag(Y.dialog,()=>{B(!1)})},$t=fe=>{fe.target===fe.currentTarget&&he()},Ye=fe=>{if(b==="static"){$t(fe);return}if(W.current||fe.target!==fe.currentTarget){W.current=!1;return}m==null||m()},Qn=fe=>{x?N==null||N(fe):(fe.preventDefault(),b==="static"&&he())},Zt=(fe,qt)=>{fe&&ge(fe),z==null||z(fe,qt)},ys=fe=>{K.current==null||K.current(),_==null||_(fe)},js=(fe,qt)=>{H==null||H(fe,qt),og(window,"resize",Me)},Xn=fe=>{fe&&(fe.style.display=""),te==null||te(fe),jd(window,"resize",Me)},Wt=w.useCallback(fe=>r.jsx("div",{...fe,className:ye(`${e}-backdrop`,Q,!g&&"show")}),[g,Q,e]),gn={...n,...G};gn.display="block";const Ut=fe=>r.jsx("div",{role:"dialog",...fe,style:gn,className:ye(t,e,A&&`${e}-static`,!g&&"show"),onClick:b?Ye:void 0,onMouseUp:zt,"data-bs-theme":l,"aria-label":u,"aria-labelledby":d,"aria-describedby":c,children:r.jsx(a,{...F,onMouseDown:Ct,className:s,contentClassName:i,children:o})});return r.jsx(Sg.Provider,{value:le,children:r.jsx(Ww,{show:f,ref:re,backdrop:b,container:v,keyboard:!0,autoFocus:h,enforceFocus:y,restoreFocus:k,restoreFocusOptions:O,onEscapeKeyDown:Qn,onShow:C,onHide:m,onEnter:Zt,onEntering:js,onEntered:T,onExit:ys,onExiting:D,onExited:Xn,manager:de(),transition:g?Qw:void 0,backdropTransition:g?Xw:void 0,renderBackdrop:Wt,renderDialog:Ut})})});_g.displayName="Modal";const lo=Object.assign(_g,{Body:wg,Header:Eg,Title:Pg,Footer:kg,Dialog:Ru,TRANSITION_DURATION:300,BACKDROP_TRANSITION_DURATION:150}),Jw=()=>{var O;const{id:e}=gs(),t=Ke(),{selectedProperty:n,status:s,error:i}=_e(T=>T.property),{user:o}=_e(T=>({...T.auth})),[a,l]=w.useState("propertydetails"),[d,c]=w.useState(!0),[u,f]=w.useState(!1),[g,b]=w.useState({fundValue:"0",fundPercentage:"0"});if(w.useEffect(()=>{e&&t(Js(e))},[e,t]),w.useEffect(()=>{s==="succeeded"&&c(!1)},[s]),s==="failed")return r.jsxs("p",{children:["Error loading property: ",i]});const x=((O=o==null?void 0:o.result)==null?void 0:O.userId)===(n==null?void 0:n.userId),N=!!o,C=()=>{f(!0)},m=()=>{f(!1)},v=T=>{const{name:_,value:D}=T.target;b({...g,[_]:D})},h=T=>{if(T.preventDefault(),g.fundValue<=0)return ie.error("Please enter a valid funding amount greater than 0");if(g.fundValue>((n==null?void 0:n.totalCoststoBuyAtoB)||0))return ie.error(`Funding amount cannot exceed ${(n==null?void 0:n.totalCoststoBuyAtoB)||"N/A"}`);if(g.fundPercentage<=0||g.fundPercentage>100)return ie.error("Please enter a valid interest percentage (0-100)");const _={fundValue:Number(g.fundValue),fundPercentage:Number(g.fundPercentage),userId:o.result._id};t(Ro({id:e,fundDetails:_,toast:ie})),m()},y=T=>{const _=JSON.parse(localStorage.getItem("profile")).token;t(Ao({id:e,fundDetailId:T,token:_}))},k=T=>{window.confirm("Are you sure you want to delete this?")&&y(T)};return r.jsxs(r.Fragment,{children:[r.jsx(Le,{}),r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{}),r.jsx("br",{}),r.jsxs("div",{children:[r.jsxs("ul",{className:"nav nav-tabs",role:"tablist",style:{borderRadius:"12px 12px 0 0"},children:[r.jsx("li",{role:"presentation",className:a==="propertydetails"?"active tab":"tab",children:r.jsx("a",{onClick:()=>l("propertydetails"),role:"tab",children:"Property Details"})}),r.jsx("li",{role:"presentation",className:a==="Funding Details"?"active tab":"tab",children:r.jsx("a",{onClick:()=>l("Funding Details"),role:"tab",children:"Funding Details"})}),r.jsx("li",{role:"presentation",className:a==="Accounting"?"active tab":"tab",children:r.jsx("a",{onClick:()=>l("Accounting"),role:"tab",children:"Accounting"})})]}),r.jsxs("div",{children:[a==="propertydetails"&&r.jsx("div",{role:"tabpanel",className:"card container tab-pane active col-12",children:r.jsx("div",{className:"container col-12",children:d?r.jsx("div",{className:"loader",children:"Loading..."}):n?r.jsx("div",{className:"py-3 py-md-5 bg-light",children:r.jsxs("div",{className:"card-header bg-white",children:[r.jsxs("div",{className:"row",children:[r.jsxs("div",{className:"col-md-5 mt-3",children:[r.jsx("div",{children:n.images&&n.images[0]?r.jsx("img",{src:n.images[0].file||mt,alt:"Property Thumbnail",style:{marginTop:"0px",maxWidth:"400px",maxHeight:"400px"}}):r.jsx("img",{src:mt,alt:"Default Property Thumbnail",style:{marginTop:"0px",maxWidth:"400px",maxHeight:"400px"}})}),r.jsx("br",{}),r.jsxs("div",{className:"label-stock border",children:[r.jsxs("p",{style:{color:"#fda417",fontSize:"30px",padding:"10px",fontWeight:"normal"},children:["Funding Required:"," ",r.jsxs("span",{style:{color:"#000000",fontSize:"25px"},children:[r.jsx("span",{className:"fa fa-dollar",style:{color:"#F74B02"}})," ",(n==null?void 0:n.totalCoststoBuyAtoB)||"N/A"]})]}),r.jsxs("p",{style:{color:"#fda417",fontSize:"30px",padding:"10px",fontWeight:"normal"},children:["Net profit:"," ",r.jsxs("span",{style:{color:"#000000",fontSize:"25px"},children:[r.jsx("span",{className:"fa fa-dollar",style:{color:"#F74B02"}})," ",(n==null?void 0:n.NetProfit)||"N/A"]})]})]}),r.jsx("br",{}),r.jsxs("button",{className:"btn btn-primary back",style:{backgroundColor:"#fda417",border:"#fda417"},disabled:x||!N,onClick:x||!N?null:C,children:[r.jsx("span",{style:{fontSize:"25px",fontWeight:"normal"},children:"Willing to Invest/Fund"})," "]}),x&&r.jsx("span",{style:{color:"red",marginTop:"10px"},children:"You cannot invest in your own property."}),!N&&r.jsx("span",{style:{color:"red",marginTop:"10px"},children:"Please login to invest."})]}),r.jsx("div",{className:"col-md-7 mt-3",children:r.jsxs("div",{className:"product-view",children:[r.jsxs("h4",{className:"product-name",style:{color:"#fda417",fontSize:"25px"},children:[n.address,r.jsx("label",{className:"label-stock bg-success",children:"Verified Property"})]}),r.jsx("hr",{}),r.jsxs("span",{className:"product-path",children:[r.jsxs("span",{style:{color:"#fda417",fontSize:"15px"},children:["City:"," "]})," ",n.city," "," /"," "," "," ",r.jsxs("span",{style:{color:"#fda417",fontSize:"15px"},children:["County:"," "]})," ",n.county," "," ","/"," "," ",r.jsxs("span",{style:{color:"#fda417",fontSize:"15px"},children:["State:"," "]})," ",n.state," "," ","/ "," "," ",r.jsxs("span",{style:{color:"#fda417",fontSize:"15px"},children:["Zipcode:"," "]})," ",n.zip," "]}),r.jsx("br",{})," ",r.jsx("br",{}),r.jsxs("div",{children:[r.jsxs("span",{className:"selling-price",style:{color:"#fda417",fontSize:"15px"},children:["Total Living Square Foot:"," "]}),n.totallivingsqft,r.jsx("p",{}),r.jsxs("span",{className:"selling-price",style:{color:"#fda417",fontSize:"15px"},children:["Cost per Square Foot:"," "]}),"$",n.costpersqft,"/sqft",r.jsx("p",{}),r.jsxs("span",{className:"selling-price",style:{color:"#fda417",fontSize:"15px"},children:["Year Built:"," "]}),n.yearBuild]}),r.jsxs("div",{className:"mt-3 card bg-white label-stock border",children:[r.jsx("h5",{className:"mb-0",style:{color:"#fda417",fontSize:"15px"},children:"Legal Description"}),r.jsx("span",{children:n.legal?n.legal:"No data available"})]})]})})]}),r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-md-12 mt-3",children:r.jsxs("div",{className:"card",children:[r.jsx("div",{className:"card-header bg-white",children:r.jsx("h4",{className:"product-name",style:{color:"#fda417",fontSize:"25px"},children:"Description"})}),r.jsx("div",{className:"card-body",children:r.jsx("p",{children:"Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum."})})]})})})]})}):r.jsx("p",{children:"No property found."})})}),a==="Funding Details"&&r.jsx("div",{children:a==="Funding Details"&&r.jsx("div",{className:"tab-pane active",children:r.jsx("div",{children:n.fundDetails.length===0?r.jsx("p",{children:"No fund details available."}):r.jsx("ul",{style:{listStyleType:"none",padding:0},children:n.fundDetails.map((T,_)=>{var D,z;return r.jsx("li",{className:"d-flex align-items-center",children:r.jsxs("div",{className:"d-flex align-items-center",children:[r.jsxs("span",{children:["Total Fund Value: $ ",T.fundValue,", Interest Percentage: ",T.fundPercentage,"%"]}),r.jsx("br",{})," ",r.jsx("br",{}),((D=o==null?void 0:o.result)==null?void 0:D.userId)&&((z=o==null?void 0:o.result)==null?void 0:z._id)===T.userId&&r.jsx("button",{className:"btn btn-danger ms-2",onClick:()=>k(T._id),style:{padding:"2px 10px",marginLeft:"8px"},children:"x"})]})},_)})})})})}),a==="Accounting"&&r.jsx("div",{})]})]}),r.jsx(tt,{}),r.jsxs(lo,{show:u,onHide:m,children:[r.jsx(lo.Header,{closeButton:!0,children:r.jsx(lo.Title,{children:"Investment/Funding Details"})}),r.jsx(lo.Body,{children:r.jsxs(er,{onSubmit:h,children:[r.jsxs(er.Group,{children:[r.jsx(er.Label,{children:"Total Fund Value"}),r.jsx(er.Control,{type:"number",id:"fundValue",name:"fundValue",value:g.fundValue,onChange:v})]}),r.jsx("br",{}),r.jsxs(er.Group,{children:[r.jsx(er.Label,{children:"Interest Percentage"}),r.jsx(er.Control,{type:"number",id:"fundPercentage",name:"fundPercentage",value:g.fundPercentage,onChange:v})]}),r.jsx(dg,{variant:"primary",type:"submit",children:"Submit"})]})})]})]})},Zw=()=>{const[e,t]=w.useState([]),[n,s]=w.useState(0),[i,o]=w.useState(0),[a]=w.useState(10),[l,d]=w.useState(""),[c,u]=w.useState(!1),[f,g]=w.useState(!1),b=async()=>{u(!0),g(!1);try{const m=await me.get("http://67.225.129.127:3002/mysql/searchmysql",{params:{limit:a,offset:i*a,search:l},headers:{"Cache-Control":"no-cache"}});t(m.data.data),s(m.data.totalRecords),l.trim()&&g(!0)}catch(m){console.log("Error fetching data:",m)}finally{u(!1)}},x=m=>{d(m.target.value),m.target.value.trim()===""&&(o(0),t([]),s(0),g(!1),b())},N=m=>{m.key==="Enter"&&(m.preventDefault(),b())};w.useEffect(()=>{b()},[l,i]);const C=Math.ceil(n/a);return r.jsxs(r.Fragment,{children:[r.jsx(Le,{}),r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{}),r.jsxs("div",{className:"container col-12",children:[r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-lg-12 card-margin col-12",children:r.jsx("div",{className:"card search-form col-12",children:r.jsx("div",{className:"card-body p-0",children:r.jsx("form",{id:"search-form",children:r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-12",children:r.jsx("div",{className:"row no-gutters",children:r.jsx("div",{className:"col-lg-8 col-md-6 col-sm-12 p-0",children:r.jsx("input",{type:"text",placeholder:"Enter the keyword and hit ENTER button...",className:"form-control",id:"search",name:"search",value:l,onChange:x,onKeyDown:N})})})})})})})})})}),r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-12",children:r.jsx("div",{className:"card card-margin",children:r.jsxs("div",{className:"card-body",children:[f&&e.length>0&&r.jsxs("div",{children:["Showing search results for the keyword"," ",r.jsx("span",{style:{color:"#fda417",fontSize:"25px"},children:l})]}),r.jsx("div",{className:"table-responsive",children:r.jsxs("table",{className:"table widget-26",children:[r.jsx("thead",{style:{color:"#fda417",fontSize:"15px"},children:r.jsxs("tr",{children:[r.jsx("th",{children:"Details"}),r.jsx("th",{children:"Total Living Square Foot"}),r.jsx("th",{children:"Year Built"}),r.jsx("th",{children:"Cost per Square Foot"})]})}),r.jsx("tbody",{children:e.length>0?e.map((m,v)=>r.jsxs("tr",{children:[r.jsx("td",{children:r.jsxs("div",{className:"widget-26-job-title",children:[r.jsx(ae,{to:`/properties/${m.house_id}`,className:"link-primary text-decoration-none",target:"_blank",children:m.address}),r.jsxs("p",{className:"m-0",children:[r.jsxs("span",{className:"employer-name",children:[r.jsx("i",{className:"fa fa-map-marker",style:{color:"#F74B02"}}),m.city,", ",m.county,",",m.state]}),r.jsxs("p",{className:"text-muted m-0",children:["House Id: ",m.house_id]})]})]})}),r.jsx("td",{children:r.jsx("div",{className:"widget-26-job-info",children:r.jsx("p",{className:"m-0",children:m.total_living_sqft})})}),r.jsx("td",{children:r.jsx("div",{className:"widget-26-job-info",children:r.jsx("p",{className:"m-0",children:m.year_built})})}),r.jsx("td",{children:r.jsxs("div",{className:"widget-26-job-salary",children:["$ ",m.cost_per_sqft,"/sqft"]})})]},v)):r.jsx("tr",{children:r.jsx("td",{colSpan:"4",children:"No results found"})})})]})}),r.jsxs("div",{children:[r.jsx("button",{onClick:()=>o(i-1),disabled:i===0||c,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Previous"}),r.jsxs("span",{children:[" ","Page ",i+1," of ",C," "]}),r.jsx("button",{onClick:()=>o(i+1),disabled:i+1>=C||c,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Next"})]})]})})})})]}),r.jsx(tt,{})]})},eS=()=>r.jsxs(r.Fragment,{children:[r.jsx(Le,{}),r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{}),r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{}),"This page will show the list of services offered by the company",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{}),r.jsx(tt,{})]}),tS=()=>{const{house_id:e}=gs();console.log("house_id",e);const[t,n]=w.useState(null),[s,i]=w.useState(!0);return w.useEffect(()=>{(async()=>{try{const a=await me.get(`http://67.225.129.127:3002/mysql/properties/${e}`);n(a.data)}catch(a){console.log("Error fetching property details:",a)}finally{i(!1)}})()},[e]),r.jsxs(r.Fragment,{children:[r.jsx(Le,{}),r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{}),r.jsx("div",{className:"container col-12",children:s?r.jsx("div",{className:"loader",children:"Loading..."}):t?r.jsx("div",{className:"py-3 py-md-5 bg-light",children:r.jsxs("div",{className:"card-header bg-white",children:[r.jsxs("div",{className:"row",children:[r.jsx("div",{className:"col-md-5 mt-3",children:r.jsx("div",{className:"bg-white border",children:r.jsx("img",{src:mt,className:"w-70",alt:"Img",style:{marginTop:"0px",maxWidth:"450px",maxHeight:"450px"}})})}),r.jsx("div",{className:"col-md-7 mt-3",children:r.jsxs("div",{className:"product-view",children:[r.jsxs("h4",{className:"product-name",style:{color:"#fda417",fontSize:"25px"},children:[t.address,r.jsx("label",{className:"label-stock bg-success",children:"Verified Property"})]}),r.jsx("hr",{}),r.jsxs("p",{className:"product-path",children:[r.jsxs("span",{style:{color:"#fda417",fontSize:"15px"},children:["city:"," "]})," ",t.city," /",r.jsxs("span",{style:{color:"#fda417",fontSize:"15px"},children:["County:"," "]})," ",t.county," /",r.jsxs("span",{style:{color:"#fda417",fontSize:"15px"},children:["State:"," "]})," ",t.state," /",r.jsx("span",{style:{color:"#fda417",fontSize:"15px"},children:"Zipcode:"})," ",t.zip]}),r.jsxs("div",{children:[r.jsxs("span",{className:"selling-price",style:{color:"#fda417",fontSize:"15px"},children:["Total Living Square Foot:"," "]}),t.total_living_sqft,r.jsx("p",{}),r.jsxs("span",{className:"",style:{color:"#fda417",fontSize:"15px"},children:["Cost per Square Foot:"," "]}),"$",t.cost_per_sqft,"/sqft",r.jsx("p",{}),r.jsxs("span",{className:"",style:{color:"#fda417",fontSize:"15px"},children:["Year Built:"," "]}),t.year_built]}),r.jsxs("div",{className:"mt-3 card bg-white",children:[r.jsx("h5",{className:"mb-0",style:{color:"#fda417",fontSize:"15px"},children:"Legal Summary report"}),r.jsx("span",{children:t.legal_summary_report?t.legal_summary_report:"No data available"})]})]})})]}),r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-md-12 mt-3",children:r.jsxs("div",{className:"card",children:[r.jsx("div",{className:"card-header bg-white",children:r.jsx("h4",{className:"product-name",style:{color:"#fda417",fontSize:"25px"},children:"Description"})}),r.jsx("div",{className:"card-body",children:r.jsx("p",{children:"Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum."})})]})})})]})}):r.jsx("p",{children:"No property details found."})}),r.jsx(tt,{})]})},Rp=()=>{const{id:e}=gs(),t=Ke(),[n,s]=w.useState("propertydetails"),i=()=>{n==="propertydetails"&&s("Images"),n==="Images"&&s("Accounting")},o=()=>{n==="Images"&&s("propertydetails"),n==="Accounting"&&s("Images")},{selectedProperty:a}=_e(E=>E.property),[l,d]=w.useState({address:"",city:"",state:"",zip:"",propertyTaxInfo:[{propertytaxowned:"0",ownedyear:"0",taxassessed:"0",taxyear:"0"}],images:[{title:"",file:""}],googleMapLink:"",purchaseCost:"0",costPaidAtoB:[{title:"Closing Fees - Settlement Fee",price:"0"},{title:"Closing Fees - Owner's Title Insurance",price:"0"},{title:"Courier Fees",price:"0"},{title:"Wire Fee",price:"0"},{title:"E recording Fee",price:"0"},{title:"Recording Fee",price:"0"},{title:"Property Tax",price:"0"}],renovationRisk:null,turnTime:"",credits:[{title:"Credits",price:"0"}],cashAdjustments:[{title:"Cash Adjustments",price:"0"}],incidentalCost:[{title:"Accounting Fees",price:"0"},{title:"Bank Charges",price:"0"},{title:"Legal Fees",price:"0"},{title:"Property Taxes",price:"0"},{title:"Travel Expenses",price:"0"}],carryCosts:[{title:"Electricity",price:"0"},{title:"Water and Sewer",price:"0"},{title:"Natural Gas",price:"0"},{title:"Trash and Recycling",price:"0"},{title:"Internet and Cable",price:"0"},{title:"Heating Oil/Propane",price:"0"},{title:"HOA fees",price:"0"},{title:"Dump fees",price:"0"},{title:"Insurance",price:"0"},{title:"Interest on Loans",price:"0"},{title:"Loan Payment",price:"0"},{title:"Property Taxes",price:"0"},{title:"Security",price:"0"},{title:"Real Estates fees",price:"0"}],renovationCost:[{title:"Demolition: Removing existing structures or finishes",price:"0"},{title:"Framing: Making structural changes or additions",price:"0"},{title:"Plumbing: Installing or modifying plumbing systems",price:"0"},{title:"Electrical: Updating wiring and fixtures",price:"0"},{title:"HVAC: Installing or upgrading heating and cooling systems",price:"0"},{title:"Insulation: Adding or replacing insulation",price:"0"},{title:"Drywall: Hanging and finishing drywall",price:"0"},{title:"Interior Finishes: Painting, flooring, cabinetry, and fixtures",price:"0"},{title:"Exterior Work: Addressing siding, roofing, or landscaping, if applicable",price:"0"},{title:"Final Inspections: Ensuring everything meets codes",price:"0"},{title:"Punch List: Completing any remaining task",price:"0"}],sellingPriceBtoC:"0",costPaidOutofClosing:[{title:"Buyers Agent Commission",price:"0"},{title:"Sellers Agent Commission",price:"0"},{title:"Home Warranty",price:"0"},{title:"Document Preparation",price:"0"},{title:"Excise Tax",price:"0"},{title:"Legal Fees",price:"0"},{title:"Wire Fees/courier Fees",price:"0"},{title:"County Taxes",price:"0"},{title:"HOA Fee",price:"0"},{title:"Payoff of 1st Mortgage",price:"0"},{title:"Payoff of 2nd Mortgage",price:"0"},{title:"Payoff 3rd Mortgage",price:"0"}],adjustments:[{title:"adjustments",price:"0"}],incomestatement:[{title:"income statement",price:"0"},{title:"income statement",price:"0"}],fundspriortoclosing:"0",shorttermrental:"0",OtherIncome:"0",InsuranceClaim:"0",LongTermRental:"0",FinancingCostClosingCost:"0"}),c=[1,2,3,4,5,6,7,8,9,10];w.useEffect(()=>{t(Js(e))},[t,e]),w.useEffect(()=>{a&&d({address:a.address||"",city:a.city||"",state:a.state||"",zip:a.zip||"",parcel:a.parcel||"",subdivision:a.subdivision||"",legal:a.legal||"",costpersqft:a.costpersqft||"",propertyType:a.propertyType||"",lotacres:a.lotacres||"",yearBuild:a.yearBuild||"",totallivingsqft:a.totallivingsqft||"",beds:a.beds||"",baths:a.baths||"",stories:a.stories||"",garage:a.garage||"",garagesqft:a.garagesqft||"",poolspa:a.poolspa||"",fireplaces:a.fireplaces||"",ac:a.ac||"",heating:a.heating||"",buildingstyle:a.buildingstyle||"",sitevacant:a.sitevacant||"",extwall:a.extwall||"",roofing:a.roofing||"",totalSqft:a.totalSqft||"",renovationRisk:a.renovationRisk,closeDateAtoB:a.closeDateAtoB,closeDateBtoC:a.closeDateBtoC,purchaseCost:a.purchaseCost,costPaidAtoB:a.costPaidAtoB,totalPurchaseCosts:a.totalPurchaseCosts,credits:a.credits,totalPurchaseCostsaftercredits:a.totalPurchaseCostsaftercredits,cashAdjustments:a.cashAdjustments,totalcashrequiredonsettlement:a.totalcashrequiredonsettlement,incidentalCost:a.incidentalCost,carryCosts:a.carryCosts,renovationCost:a.renovationCost,sellingPriceBtoC:a.sellingPriceBtoC,costPaidOutofClosing:a.costPaidOutofClosing,totalCosttoSellBtoC:a.totalCosttoSellBtoC,grossproceedsperHUD:a.grossproceedsperHUD,adjustments:a.adjustments,fundsavailablefordistribution:a.fundsavailablefordistribution,incomestatement:a.incomestatement,fundspriortoclosing:a.fundspriortoclosing,shorttermrental:a.shorttermrental,OtherIncome:a.OtherIncome,InsuranceClaim:a.InsuranceClaim,LongTermRental:a.LongTermRental,netprofitbeforefinancingcosts:a.netprofitbeforefinancingcosts,FinancingCostClosingCost:a.FinancingCostClosingCost,propertyTaxInfo:a.propertyTaxInfo||[{propertytaxowned:"0",ownedyear:"0",taxassessed:"0",taxyear:"0"}],images:a.images||[{title:"",file:""}],googleMapLink:a.googleMapLink,rateofreturn:a.rateofreturn})},[a]);const u=E=>{d({...l,[E.target.name]:E.target.value})},f=(E,P)=>{const{name:p,value:j}=E.target,S=[...l.propertyTaxInfo],M={...S[P]};M[p]=j,S[P]=M,d({...l,propertyTaxInfo:S})},g=E=>{E.preventDefault();const P=z(),p=F(),j=U(),S=L(),M=W(),q=ne(),X=Me(),ce=Ye(),Bi=Qn(),sl=Zt(),il=gn(),ol=Ut(),al=Ut(),ll=Ns(),cl=Mi(),dl=Zn(),ul=en(),fl=Er(),pl=bs(),ml={...l,totalPurchaseCosts:P.toFixed(2),totalcredits:p.toFixed(2),totalPurchaseCostsaftercredits:j.toFixed(2),totalcashAdjustments:S.toFixed(2),totalcashrequiredonsettlement:M.toFixed(2),totalincidentalCost:q.toFixed(2),totalcarryCosts:X.toFixed(2),totalrenovationCost:ce.toFixed(2),totalRenovationsandHoldingCost:Bi.toFixed(2),totalCoststoBuyAtoB:sl.toFixed(2),totalcostPaidOutofClosing:il.toFixed(2),totalCosttoSellBtoC:ol.toFixed(2),grossproceedsperHUD:al.toFixed(2),totaladjustments:ll.toFixed(2),fundsavailablefordistribution:cl.toFixed(2),totalincomestatement:dl.toFixed(2),netBtoCsalevalue:ul.toFixed(2),netprofitbeforefinancingcosts:fl.toFixed(2),netprofit:pl.toFixed(2)};t(To({id:e,propertyData:ml}))},b=()=>{d({...l,propertyTaxInfo:[...l.propertyTaxInfo,{propertytaxowned:"",ownedyear:"",taxassessed:"",taxyear:""}]})},x=E=>{const P=l.propertyTaxInfo.filter((p,j)=>j!==E);d({...l,propertyTaxInfo:P})},N=(E,P)=>{const p=[...l.images];p[P]={...p[P],file:E.base64},d({...l,images:p})},C=()=>{d({...l,images:[...l.images,{title:"",file:""}]})},m=E=>{const P=l.images.filter((p,j)=>j!==E);d({...l,images:P})},v=(E,P)=>{const p=[...l.images];p[E]={...p[E],title:P.target.value},d({...l,images:p})};w.useEffect(()=>{k(l.closeDateAtoB,l.closeDateBtoC)},[l.closeDateAtoB,l.closeDateBtoC]);const[h,y]=w.useState("0 days"),k=(E,P)=>{if(E&&P){const p=new Date(E),j=new Date(P),S=Math.abs(j-p),M=Math.ceil(S/(1e3*60*60*24));y(`${M} days`)}else y("0 days")},O=()=>{d(E=>({...E,costPaidAtoB:[...E.costPaidAtoB,{title:"",price:""}]}))},T=E=>{const P=l.costPaidAtoB.filter((p,j)=>j!==E);d(p=>({...p,costPaidAtoB:P}))},_=(E,P,p)=>{const j=[...l.costPaidAtoB];j[E][P]=p,d(S=>({...S,costPaidAtoB:j}))},D=(E,P)=>{let p=E.target.value;if(p=p.replace(/^\$/,"").trim(),/^\d*\.?\d*$/.test(p)||p===""){const S=l.costPaidAtoB.map((M,q)=>q===P?{...M,price:p,isInvalid:!1}:M);d({...l,costPaidAtoB:S})}else{const S=l.costPaidAtoB.map((M,q)=>q===P?{...M,isInvalid:!0}:M);d({...l,costPaidAtoB:S})}},z=()=>{const E=l.costPaidAtoB.reduce((p,j)=>{const S=parseFloat(j.price)||0;return p+S},0),P=parseFloat(l.purchaseCost)||0;return E+P},H=()=>{d(E=>({...E,credits:[...E.credits,{title:"",price:""}]}))},te=E=>{const P=l.credits.filter((p,j)=>j!==E);d(p=>({...p,credits:P}))},Q=(E,P,p)=>{const j=[...l.credits];j[E][P]=p,d(S=>({...S,credits:j}))},Z=(E,P)=>{const p=E.target.value;if(/^\d*\.?\d*$/.test(p)||p===""){const S=l.credits.map((M,q)=>q===P?{...M,price:p,isInvalid:!1}:M);d({...l,credits:S})}else{const S=l.credits.map((M,q)=>q===P?{...M,isInvalid:!0}:M);d({...l,credits:S})}},F=()=>l.credits.reduce((E,P)=>{const p=parseFloat(P.price);return E+(isNaN(p)?0:p)},0),U=()=>{const E=l.costPaidAtoB.reduce((j,S)=>{const M=parseFloat(S.price)||0;return j+M},0),P=l.credits.reduce((j,S)=>{const M=parseFloat(S.price)||0;return j+M},0),p=parseFloat(l.purchaseCost)||0;return E+P+p},G=()=>{d(E=>({...E,cashAdjustments:[...E.cashAdjustments,{title:"",price:""}]}))},R=E=>{const P=l.cashAdjustments.filter((p,j)=>j!==E);d(p=>({...p,cashAdjustments:P}))},A=(E,P,p)=>{const j=[...l.cashAdjustments];j[E][P]=p,d(S=>({...S,cashAdjustments:j}))},B=(E,P)=>{const p=E.target.value;if(/^\d*\.?\d*$/.test(p)||p===""){const S=l.cashAdjustments.map((M,q)=>q===P?{...M,price:p,isInvalid:!1}:M);d({...l,cashAdjustments:S})}else{const S=l.cashAdjustments.map((M,q)=>q===P?{...M,isInvalid:!0}:M);d({...l,cashAdjustments:S})}},L=()=>l.cashAdjustments.reduce((E,P)=>{const p=parseFloat(P.price);return E+(isNaN(p)?0:p)},0),W=()=>{const E=L(),P=F(),p=z();return E+P+p},K=()=>{d(E=>({...E,incidentalCost:[...E.incidentalCost,{title:"",price:""}]}))},Y=E=>{const P=l.incidentalCost.filter((p,j)=>j!==E);d(p=>({...p,incidentalCost:P}))},ee=(E,P,p)=>{const j=[...l.incidentalCost];j[E][P]=p,d(S=>({...S,incidentalCost:j}))},re=(E,P)=>{const p=E.target.value;if(/^\d*\.?\d*$/.test(p)||p===""){const S=l.incidentalCost.map((M,q)=>q===P?{...M,price:p,isInvalid:!1}:M);d({...l,incidentalCost:S})}else{const S=l.incidentalCost.map((M,q)=>q===P?{...M,isInvalid:!0}:M);d({...l,incidentalCost:S})}},ne=()=>l.incidentalCost.reduce((E,P)=>{const p=parseFloat(P.price);return E+(isNaN(p)?0:p)},0),se=()=>{d(E=>({...E,carryCosts:[...E.carryCosts,{title:"",price:""}]}))},le=E=>{const P=l.carryCosts.filter((p,j)=>j!==E);d(p=>({...p,carryCosts:P}))},de=(E,P,p)=>{const j=[...l.carryCosts];j[E][P]=p,d(S=>({...S,carryCosts:j}))},ge=(E,P)=>{const p=E.target.value;if(/^\d*\.?\d*$/.test(p)||p===""){const S=l.carryCosts.map((M,q)=>q===P?{...M,price:p,isInvalid:!1}:M);d({...l,carryCosts:S})}else{const S=l.carryCosts.map((M,q)=>q===P?{...M,isInvalid:!0}:M);d({...l,carryCosts:S})}},Me=()=>l.carryCosts.reduce((E,P)=>{const p=parseFloat(P.price);return E+(isNaN(p)?0:p)},0),Ct=()=>{d(E=>({...E,renovationCost:[...E.renovationCost,{title:"",price:""}]}))},zt=E=>{const P=l.renovationCost.filter((p,j)=>j!==E);d(p=>({...p,renovationCost:P}))},he=(E,P,p)=>{const j=[...l.renovationCost];j[E][P]=p,d(S=>({...S,renovationCost:j}))},$t=(E,P)=>{const p=E.target.value;if(/^\d*\.?\d*$/.test(p)||p===""){const S=l.renovationCost.map((M,q)=>q===P?{...M,price:p,isInvalid:!1}:M);d({...l,renovationCost:S})}else{const S=l.renovationCost.map((M,q)=>q===P?{...M,isInvalid:!0}:M);d({...l,renovationCost:S})}},Ye=()=>l.renovationCost.reduce((E,P)=>{const p=parseFloat(P.price);return E+(isNaN(p)?0:p)},0),Qn=()=>{const E=ne(),P=Me(),p=Ye();return E+P+p},Zt=()=>{const E=Qn(),P=W();return E+P},ys=()=>{d(E=>({...E,costPaidOutofClosing:[...E.costPaidOutofClosing,{title:"",price:""}]}))},js=E=>{const P=l.costPaidOutofClosing.filter((p,j)=>j!==E);d(p=>({...p,costPaidOutofClosing:P}))},Xn=(E,P,p)=>{const j=[...l.costPaidOutofClosing];j[E][P]=p,d(S=>({...S,costPaidOutofClosing:j}))},Wt=(E,P)=>{const p=E.target.value;if(/^\d*\.?\d*$/.test(p)||p===""){const S=l.costPaidOutofClosing.map((M,q)=>q===P?{...M,price:p,isInvalid:!1}:M);d({...l,costPaidOutofClosing:S})}else{const S=l.costPaidOutofClosing.map((M,q)=>q===P?{...M,isInvalid:!0}:M);d({...l,costPaidOutofClosing:S})}},gn=()=>l.costPaidOutofClosing.reduce((E,P)=>{const p=parseFloat(P.price);return E+(isNaN(p)?0:p)},0),Ut=()=>{const E=l.sellingPriceBtoC,P=gn();return E-P},fe=()=>{d(E=>({...E,adjustments:[...E.adjustments,{title:"",price:""}]}))},qt=E=>{const P=l.adjustments.filter((p,j)=>j!==E);d(p=>({...p,adjustments:P}))},xn=(E,P,p)=>{const j=[...l.adjustments];j[E][P]=p,d(S=>({...S,adjustments:j}))},Li=(E,P)=>{const p=E.target.value;if(/^\d*\.?\d*$/.test(p)||p===""){const S=l.adjustments.map((M,q)=>q===P?{...M,price:p,isInvalid:!1}:M);d({...l,adjustments:S})}else{const S=l.adjustments.map((M,q)=>q===P?{...M,isInvalid:!0}:M);d({...l,adjustments:S})}},Ns=()=>l.adjustments.reduce((E,P)=>{const p=parseFloat(P.price);return E+(isNaN(p)?0:p)},0),Mi=()=>{const E=Ut(),P=Ns();return E+P},tl=()=>{d(E=>({...E,incomestatement:[...E.incomestatement,{title:"",price:""}]}))},nl=E=>{const P=l.incomestatement.filter((p,j)=>j!==E);d(p=>({...p,incomestatement:P}))},Cs=(E,P,p)=>{const j=[...l.incomestatement];j[E][P]=p,d(S=>({...S,incomestatement:j}))},Jn=(E,P)=>{const p=E.target.value;if(/^\d*\.?\d*$/.test(p)||p===""){const S=l.incomestatement.map((M,q)=>q===P?{...M,price:p,isInvalid:!1}:M);d({...l,incomestatement:S})}else{const S=l.incomestatement.map((M,q)=>q===P?{...M,isInvalid:!0}:M);d({...l,incomestatement:S})}},Zn=()=>l.incomestatement.reduce((E,P)=>{const p=parseFloat(P.price);return E+(isNaN(p)?0:p)},0),en=()=>{const E=Zn(),P=Ut();return E+P},Er=()=>{const E=isNaN(parseFloat(en()))?0:parseFloat(en()),P=isNaN(parseFloat(l.shorttermrental))?0:parseFloat(l.shorttermrental),p=isNaN(parseFloat(l.OtherIncome))?0:parseFloat(l.OtherIncome),j=isNaN(parseFloat(l.InsuranceClaim))?0:parseFloat(l.InsuranceClaim),S=isNaN(parseFloat(l.LongTermRental))?0:parseFloat(l.LongTermRental),M=isNaN(parseFloat(Zt()))?0:parseFloat(Zt());return E+P+p+j+S-M},bs=()=>{const E=Er(),P=l.FinancingCostClosingCost;return E-P},rl=()=>bs();return r.jsxs(r.Fragment,{children:[r.jsx(Le,{}),r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{}),r.jsx("div",{className:"card d-flex justify-content-center align-items-center",children:r.jsxs("div",{className:"justify-content-center",children:[r.jsxs("ul",{className:"nav nav-tabs",role:"tablist",children:[r.jsx("li",{role:"presentation",className:n==="propertydetails"?"active tab":"tab",children:r.jsx("a",{onClick:()=>s("propertydetails"),role:"tab",children:"Property Details"})}),r.jsx("li",{role:"presentation",className:n==="Images"?"active tab":"tab",children:r.jsx("a",{onClick:()=>s("Images"),role:"tab",children:"Images, Maps"})}),r.jsx("li",{role:"presentation",className:n==="Accounting"?"active tab":"tab",children:r.jsx("a",{onClick:()=>s("Accounting"),role:"tab",children:"Accounting"})})]}),r.jsxs("div",{className:"tab-content",children:[n==="propertydetails"&&r.jsxs("div",{role:"tabpanel",className:"card tab-pane active",children:[r.jsxs("form",{children:[r.jsx("h3",{style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:"Property Location"}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Property Address",r.jsx("input",{type:"text",className:"form-control",name:"address",value:l.address,onChange:u,required:!0})]})}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["City",r.jsx("input",{type:"text",className:"form-control",name:"city",value:l.city,onChange:u,required:!0})]})}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["State",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"state",value:l.state,onChange:u,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"Alaska",children:"Alaska"}),r.jsx("option",{value:"Alabama",children:"Alabama"}),r.jsx("option",{value:"Arkansas",children:"Arkansas"}),r.jsx("option",{value:"Arizona",children:"Arizona"}),r.jsx("option",{value:"California",children:"California"}),r.jsx("option",{value:"Colorado",children:"Colorado"}),r.jsx("option",{value:"Connecticut",children:"Connecticut"}),r.jsx("option",{value:"District Of Columbia",children:"District Of Columbia"}),r.jsx("option",{value:"Delaware",children:"Delaware"}),r.jsx("option",{value:"Florida",children:"Florida"}),r.jsx("option",{value:"Georgia",children:"Georgia"}),r.jsx("option",{value:"Hawaii",children:"Hawaii"}),r.jsx("option",{value:"Iowa",children:"Iowa"}),r.jsx("option",{value:"Idaho",children:"Idaho"}),r.jsx("option",{value:"Illinois",children:"Illinois"}),r.jsx("option",{value:"Indiana",children:"Indiana"}),r.jsx("option",{value:"Kansas",children:"Kansas"}),r.jsx("option",{value:"Kentucky",children:"Kentucky"}),r.jsx("option",{value:"Louisiana",children:"Louisiana"}),r.jsx("option",{value:"Massachusetts",children:"Massachusetts"}),r.jsx("option",{value:"Maryland",children:"Maryland"}),r.jsx("option",{value:"Michigan",children:"Michigan"}),r.jsx("option",{value:"Minnesota",children:"Minnesota"}),r.jsx("option",{value:"Missouri",children:"Missouri"}),r.jsx("option",{value:"Mississippi",children:"Mississippi"}),r.jsx("option",{value:"Montana",children:"Montana"}),r.jsx("option",{value:"North Carolina",children:"North Carolina"}),r.jsx("option",{value:"North Dakota",children:"North Dakota"}),r.jsx("option",{value:"Nebraska",children:"Nebraska"}),r.jsx("option",{value:"New Hampshire",children:"New Hampshire"}),r.jsx("option",{value:"New Jersey",children:"New Jersey"}),r.jsx("option",{value:"New Mexico",children:"New Mexico"}),r.jsx("option",{value:"Nevada",children:"Nevada"}),r.jsx("option",{value:"New York",children:"New York"}),r.jsx("option",{value:"Ohio",children:"Ohio"}),r.jsx("option",{value:"Oklahoma",children:"Oklahoma"}),r.jsx("option",{value:"Oregon",children:"Oregon"}),r.jsx("option",{value:"Pennsylvania",children:"Pennsylvania"}),r.jsx("option",{value:"Rhode Island",children:"Rhode Island"}),r.jsx("option",{value:"South Carolina",children:"South Carolina"}),r.jsx("option",{value:"South Dakota",children:"South Dakota"}),r.jsx("option",{value:"Tennessee",children:"Tennessee"}),r.jsx("option",{value:"Texas",children:"Texas"}),r.jsx("option",{value:"Texas",children:"Travis"}),r.jsx("option",{value:"Utah",children:"Utah"}),r.jsx("option",{value:"Virginia",children:"Virginia"}),r.jsx("option",{value:"Vermont",children:"Vermont"}),r.jsx("option",{value:"Washington",children:"Washington"}),r.jsx("option",{value:"Wisconsin",children:"Wisconsin"}),r.jsx("option",{value:"West Virginia",children:"West Virginia"}),r.jsx("option",{value:"Wyoming",children:"Wyoming"})]})]})})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsxs("div",{className:"col-md-4",children:["County",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"county",value:l.county,onChange:u,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"Abbeville",children:"Abbeville"}),r.jsx("option",{value:"Aiken",children:"Aiken"}),r.jsx("option",{value:"Allendale",children:"Allendale"}),r.jsx("option",{value:"Anderson",children:"Anderson"}),r.jsx("option",{value:"Bamberg",children:"Bamberg"}),r.jsx("option",{value:"Barnwell",children:"Barnwell"}),r.jsx("option",{value:"Beaufort",children:"Beaufort"}),r.jsx("option",{value:"Berkeley",children:"Berkeley"}),r.jsx("option",{value:"Calhoun",children:"Calhoun"}),r.jsx("option",{value:"Charleston",children:"Charleston"}),r.jsx("option",{value:"Cherokee",children:"Cherokee"}),r.jsx("option",{value:"Chester",children:"Chester"}),r.jsx("option",{value:"Chesterfield",children:"Chesterfield"}),r.jsx("option",{value:"Clarendon",children:"Clarendon"}),r.jsx("option",{value:"Colleton",children:"Colleton"}),r.jsx("option",{value:"Darlington",children:"Darlington"}),r.jsx("option",{value:"Dillon",children:"Dillon"}),r.jsx("option",{value:"Dorchester",children:"Dorchester"}),r.jsx("option",{value:"Edgefield",children:"Edgefield"}),r.jsx("option",{value:"Fairfield",children:"Fairfield"}),r.jsx("option",{value:"Florence",children:"Florence"}),r.jsx("option",{value:"Georgetown",children:"Georgetown"}),r.jsx("option",{value:"Greenville",children:"Greenville"}),r.jsx("option",{value:"Greenwood",children:"Greenwood"}),r.jsx("option",{value:"Hampton",children:"Hampton"}),r.jsx("option",{value:"Horry",children:"Horry"}),r.jsx("option",{value:"Jasper",children:"Jasper"}),r.jsx("option",{value:"Kershaw",children:"Kershaw"}),r.jsx("option",{value:"Lancaster",children:"Lancaster"}),r.jsx("option",{value:"Laurens",children:"Laurens"}),r.jsx("option",{value:"Lee",children:"Lee"}),r.jsx("option",{value:"Lexington",children:"Lexington"}),r.jsx("option",{value:"Marion",children:"Marion"}),r.jsx("option",{value:"Marlboro",children:"Marlboro"}),r.jsx("option",{value:"McCormick",children:"McCormick"}),r.jsx("option",{value:"Newberry",children:"Newberry"}),r.jsx("option",{value:"Oconee",children:"Oconee"}),r.jsx("option",{value:"Orangeburg",children:"Orangeburg"}),r.jsx("option",{value:"Pickens",children:"Pickens"}),r.jsx("option",{value:"Richland",children:"Richland"}),r.jsx("option",{value:"Saluda",children:"Saluda"}),r.jsx("option",{value:"Spartanburg",children:"Spartanburg"}),r.jsx("option",{value:"Sumter",children:"Sumter"}),r.jsx("option",{value:"Union",children:"Union"}),r.jsx("option",{value:"Williamsburg",children:"Williamsburg"}),r.jsx("option",{value:"York",children:"York"})]})]}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Zip",r.jsx("input",{type:"text",className:"form-control",name:"zip",value:l.zip,onChange:u,required:!0})]})}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Parcel",r.jsx("input",{type:"text",className:"form-control",name:"parcel",value:l.parcel,onChange:u,required:!0})]})})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Sub division",r.jsx("input",{type:"text",className:"form-control",name:"subdivision",value:l.subdivision,onChange:u,required:!0})]})}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Legal Description",r.jsx("textarea",{type:"text",className:"form-control",name:"legal",value:l.legal,onChange:u,required:!0})]})}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Cost per SQFT",r.jsx("input",{type:"text",className:"form-control",name:"costpersqft",value:l.costpersqft,onChange:u,required:!0})]})})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsxs("div",{className:"col-md-4",children:["Property Type",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"propertyType",value:l.propertyType,onChange:u,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"Residential",children:"Residential"}),r.jsx("option",{value:"Land",children:"Land"}),r.jsx("option",{value:"Commercial",children:"Commercial"}),r.jsx("option",{value:"Industrial",children:"Industrial"}),r.jsx("option",{value:"Water",children:"Water"})]})]}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Lot Acres/Sqft",r.jsx("input",{type:"text",className:"form-control",name:"lotacres",value:l.lotacres,onChange:u,required:!0})]})}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Year Build",r.jsx("input",{type:"text",className:"form-control",name:"yearBuild",value:l.yearBuild,onChange:u,required:!0})]})})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Total Living SQFT",r.jsx("input",{type:"text",className:"form-control",name:"totallivingsqft",value:l.totallivingsqft,onChange:u,required:!0})]})}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Beds",r.jsx("input",{type:"text",className:"form-control",name:"beds",value:l.beds,onChange:u,required:!0})]})}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Baths",r.jsx("input",{type:"text",className:"form-control",name:"baths",value:l.baths,onChange:u,required:!0})]})})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsxs("div",{className:"col-md-4",children:["Stories",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"stories",value:l.stories,onChange:u,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"0",children:"0"}),r.jsx("option",{value:"1",children:"1"}),r.jsx("option",{value:"2",children:"2"}),r.jsx("option",{value:"3",children:"3"}),r.jsx("option",{value:"4",children:"4"}),r.jsx("option",{value:"5",children:"5"}),r.jsx("option",{value:"6",children:"6"}),r.jsx("option",{value:"7",children:"7"}),r.jsx("option",{value:"8",children:"8"}),r.jsx("option",{value:"9",children:"9"}),r.jsx("option",{value:"10",children:"10"})]})]}),r.jsxs("div",{className:"col-md-4",children:["Garage",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"garage",value:l.garage,onChange:u,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"0",children:"0"}),r.jsx("option",{value:"1",children:"1"}),r.jsx("option",{value:"2",children:"2"}),r.jsx("option",{value:"3",children:"3"}),r.jsx("option",{value:"4",children:"4"}),r.jsx("option",{value:"5",children:"5"})]})]}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Garage SQFT",r.jsx("input",{type:"text",className:"form-control",name:"garagesqft",value:l.garagesqft,onChange:u,required:!0})]})})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsxs("div",{className:"col-md-4",children:["Pool/SPA",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"poolspa",value:l.poolspa,onChange:u,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"N/A",children:"N/A"}),r.jsx("option",{value:"Yes- Pool Only",children:"Yes- Pool Only"}),r.jsx("option",{value:"Yes- SPA only",children:"Yes- SPA only"}),r.jsx("option",{value:"Yes - Both Pool and SPA",children:"Yes - Both Pool and SPA"}),r.jsx("option",{value:"4",children:"None"})]})]}),r.jsxs("div",{className:"col-md-4",children:["Fire places",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"fireplaces",value:l.fireplaces,onChange:u,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"N/A",children:"N/A"}),r.jsx("option",{value:"yes",children:"Yes"}),r.jsx("option",{value:"no",children:"No"})]})]}),r.jsxs("div",{className:"col-md-4",children:["A/C",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"ac",value:l.ac,onChange:u,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"N/A",children:"N/A"}),r.jsx("option",{value:"Central",children:"Central"}),r.jsx("option",{value:"Heat Pump",children:"Heat Pump"}),r.jsx("option",{value:"Warm Air",children:"Warm Air"}),r.jsx("option",{value:"Forced Air",children:"Forced Air"}),r.jsx("option",{value:"Gas",children:"Gas"})]})]})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsxs("div",{className:"col-md-4",children:["Heating",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"heating",value:l.heating,onChange:u,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"N/A",children:"N/A"}),r.jsx("option",{value:"Central",children:"Central"}),r.jsx("option",{value:"Heat Pump",children:"Heat Pump"}),r.jsx("option",{value:"Warm Air",children:"Warm Air"}),r.jsx("option",{value:"Forced Air",children:"Forced Air"}),r.jsx("option",{value:"Gas",children:"Gas"})]})]}),r.jsxs("div",{className:"col-md-4",children:["Building Style",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"buildingstyle",value:l.buildingstyle,onChange:u,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"One Story",children:"One Story"}),r.jsx("option",{value:"Craftsman",children:"Craftsman"}),r.jsx("option",{value:"Log/Cabin",children:"Log/Cabin"}),r.jsx("option",{value:"Split-Level",children:"Split-Level"}),r.jsx("option",{value:"Split-Foyer",children:"Split-Foyer"}),r.jsx("option",{value:"Stick Built",children:"Stick Built"}),r.jsx("option",{value:"Single wide",children:"Single wide"}),r.jsx("option",{value:"Double wide",children:"Double wide"}),r.jsx("option",{value:"Duplex",children:"Duplex"}),r.jsx("option",{value:"Triplex",children:"Triplex"}),r.jsx("option",{value:"Quadruplex",children:"Quadruplex"}),r.jsx("option",{value:"Two Story",children:"Two Story"}),r.jsx("option",{value:"Victorian",children:"Victorian"}),r.jsx("option",{value:"Tudor",children:"Tudor"}),r.jsx("option",{value:"Modern",children:"Modern"}),r.jsx("option",{value:"Art Deco",children:"Art Deco"}),r.jsx("option",{value:"Bungalow",children:"Bungalow"}),r.jsx("option",{value:"Mansion",children:"Mansion"}),r.jsx("option",{value:"Farmhouse",children:"Farmhouse"}),r.jsx("option",{value:"Conventional",children:"Conventional"}),r.jsx("option",{value:"Ranch",children:"Ranch"}),r.jsx("option",{value:"Ranch with Basement",children:"Ranch with Basement"}),r.jsx("option",{value:"Cape Cod",children:"Cape Cod"}),r.jsx("option",{value:"Contemporary",children:"Contemporary"}),r.jsx("option",{value:"Colonial",children:"Colonial"}),r.jsx("option",{value:"Mediterranean",children:"Mediterranean"})]})]}),r.jsxs("div",{className:"col-md-4",children:["Site Vacant",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"sitevacant",value:l.sitevacant,onChange:u,required:!0,children:[r.jsx("option",{value:"",children:"Please select"}),r.jsx("option",{value:"Yes",children:"Yes"}),r.jsx("option",{value:"No",children:"No"})]})]})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsxs("div",{className:"col-md-4",children:["Ext Wall",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"extwall",value:l.extwall,onChange:u,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"N/A",children:"N/A"}),r.jsx("option",{value:"Brick",children:"Brick"}),r.jsx("option",{value:"Brick/Vinyl Siding",children:"Brick/Vinyl Siding"}),r.jsx("option",{value:"Wood/Vinyl Siding",children:"Wood/Vinyl Siding"}),r.jsx("option",{value:"Brick/Wood Siding",children:"Brick/Wood Siding"}),r.jsx("option",{value:"Stone",children:"Stone"}),r.jsx("option",{value:"Masonry",children:"Masonry"}),r.jsx("option",{value:"Metal",children:"Metal"}),r.jsx("option",{value:"Fiberboard",children:"Fiberboard"}),r.jsx("option",{value:"Asphalt Siding",children:"Asphalt Siding"}),r.jsx("option",{value:"Concrete Block",children:"Concrete Block"}),r.jsx("option",{value:"Gable",children:"Gable"}),r.jsx("option",{value:"Brick Veneer",children:"Brick Veneer"}),r.jsx("option",{value:"Frame",children:"Frame"}),r.jsx("option",{value:"Siding",children:"Siding"}),r.jsx("option",{value:"Cement/Wood Fiber Siding",children:"Cement/Wood Fiber Siding"}),r.jsx("option",{value:"Fiber/Cement Siding",children:"Fiber/Cement Siding"}),r.jsx("option",{value:"Wood Siding",children:"Wood Siding"}),r.jsx("option",{value:"Vinyl Siding",children:"Vinyl Siding"}),r.jsx("option",{value:"Aluminium Siding",children:"Aluminium Siding"}),r.jsx("option",{value:"Wood/Vinyl Siding",children:"Alum/Vinyl Siding"})]})]}),r.jsxs("div",{className:"col-md-4",children:["Roofing",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"roofing",value:l.roofing,onChange:u,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"N/A",children:"N/A"}),r.jsx("option",{value:"Asphalt Shingle",children:"Asphalt Shingle"}),r.jsx("option",{value:"Green Roofs",children:"Green Roofs"}),r.jsx("option",{value:"Built-up Roofing",children:"Built-up Roofing"}),r.jsx("option",{value:"Composition Shingle",children:"Composition Shingle"}),r.jsx("option",{value:"Composition Shingle Heavy",children:"Composition Shingle Heavy"}),r.jsx("option",{value:"Solar tiles",children:"Solar tiles"}),r.jsx("option",{value:"Metal",children:"Metal"}),r.jsx("option",{value:"Stone-coated steel",children:"Stone-coated steel"}),r.jsx("option",{value:"Slate",children:"Slate"}),r.jsx("option",{value:"Rubber Slate",children:"Rubber Slate"}),r.jsx("option",{value:"Clay and Concrete tiles",children:"Clay and Concrete tiles"})]})]}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Total SQFT",r.jsx("input",{type:"text",className:"form-control",name:"totalSqft",value:l.totalSqft,onChange:u,required:!0})]})})]}),r.jsxs("h3",{style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:[r.jsx("br",{}),"Property Tax Information"]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),l.propertyTaxInfo&&l.propertyTaxInfo.map((E,P)=>r.jsxs("div",{className:"row gy-4",children:[r.jsx("div",{className:"col-md-3",children:r.jsxs("div",{className:"form-floating mb-3",children:["Property Tax Owned",r.jsx("input",{type:"text",className:"form-control",name:"propertytaxowned",value:E.propertytaxowned,onChange:p=>f(p,P),required:!0})]})}),r.jsx("div",{className:"col-md-2",children:r.jsxs("div",{className:"form-floating mb-2",children:["Owned Year",r.jsx("input",{type:"text",className:"form-control",name:"ownedyear",value:E.ownedyear,onChange:p=>f(p,P),required:!0})]})}),r.jsx("div",{className:"col-md-2",children:r.jsxs("div",{className:"form-floating mb-2",children:["Tax Assessed",r.jsx("input",{type:"text",className:"form-control",name:"taxassessed",value:E.taxassessed,onChange:p=>f(p,P),required:!0})]})}),r.jsx("div",{className:"col-md-2",children:r.jsxs("div",{className:"form-floating mb-2",children:["Tax Year",r.jsx("input",{type:"text",className:"form-control",name:"taxyear",value:E.taxyear,onChange:p=>f(p,P),required:!0})]})}),r.jsx("div",{className:"col-md-3",children:r.jsxs("div",{className:"form-floating mb-2",children:[r.jsx("br",{}),r.jsx("button",{className:"btn btn-danger",onClick:()=>x(P),style:{height:"25px",width:"35px"},children:"X"})]})})]},P)),r.jsx("button",{className:"btn btn-secondary",onClick:b,children:"+ Add Another Property Tax Info"})]}),r.jsx("button",{className:"btn btn-primary continue",onClick:i,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Continue"})]}),n==="Images"&&r.jsxs("div",{role:"tabpanel",className:"card tab-pane active",children:[r.jsxs("h3",{style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:["Upload Images"," "]}),r.jsxs("form",{children:[r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),l.images.map((E,P)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:E.title,placeholder:"Image Title",onChange:p=>v(P,p)})}),r.jsxs("div",{className:"col-md-4 d-flex align-items-center",children:[r.jsx(wu,{multiple:!1,onDone:p=>N(p,P)}),r.jsx("button",{type:"button",className:"btn btn-danger",onClick:()=>m(P),style:{marginLeft:"5px"},children:"Delete"})]}),E.file&&r.jsx("div",{className:"col-md-12",children:r.jsx("img",{src:E.file,alt:"uploaded",style:{width:"150px",height:"150px"}})})]},P)),r.jsx("button",{type:"button",className:"btn btn-primary",onClick:C,style:{backgroundColor:"#fda417",border:"#fda417"},children:"+ Add Image"}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"mb-3",children:[r.jsx("label",{htmlFor:"googleMapLink",className:"form-label",children:r.jsxs("h3",{style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:["Google Maps Link"," "]})}),r.jsx("input",{type:"text",className:"form-control",name:"googleMapLink",value:l.googleMapLink,onChange:u,placeholder:"Enter Google Maps link"})]}),l.googleMapLink&&r.jsx("iframe",{title:"Google Map",width:"100%",height:"300",src:`https://www.google.com/maps/embed/v1/view?key=YOUR_API_KEY¢er=${l.googleMapLink}&zoom=10`,frameBorder:"0",allowFullScreen:!0})]}),r.jsx("button",{className:"btn btn-primary back",onClick:o,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Go Back"})," ",r.jsx("button",{className:"btn btn-primary continue",onClick:i,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Continue"})]}),n==="Accounting"&&r.jsxs("div",{className:"card",style:{color:"#fda417",border:"1px solid #fda417",padding:"10px",borderRadius:"8px"},children:[r.jsx("br",{}),r.jsxs("div",{className:"row gy-3 col-16",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Close Date A to B",required:!0,disabled:!0})}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"date",className:"form-control",name:"closeDateAtoB",value:l.closeDateAtoB,onChange:E=>{const P=E.target.value;d({...l,closeDateAtoB:P}),k(P,l.closeDateBtoC)},placeholder:"Close Date A to B",style:{textAlign:"right"},required:!0})}),r.jsx("div",{children:r.jsxs("p",{children:[r.jsxs("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:["[M-D-Y]"," "]}),":"," ",r.jsx("span",{style:{color:"#000000",fontSize:"14px",fontWeight:"normal"},children:new Date(l.closeDateAtoB).toLocaleDateString("en-US",{month:"numeric",day:"numeric",year:"numeric"})})]})})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Close Date B to C",required:!0,disabled:!0})}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"date",className:"form-control",name:"closeDateBtoC",value:l.closeDateBtoC,onChange:E=>{const P=E.target.value;d({...l,closeDateBtoC:P}),k(l.closeDateAtoB,P)},placeholder:"Close Date B to C",style:{textAlign:"right"},required:!0})}),r.jsx("div",{children:r.jsxs("p",{children:[r.jsxs("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:["[M-D-Y] :"," "]}),r.jsx("span",{style:{color:"#000000",fontSize:"14px",fontWeight:"normal"},children:new Date(l.closeDateBtoC).toLocaleDateString("en-US",{month:"numeric",day:"numeric",year:"numeric"})})]})})]}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Renovation Risk"}),r.jsx("div",{className:"col-md-7",children:c.map(E=>r.jsxs("div",{className:"form-check form-check-inline",children:[r.jsx("input",{className:"form-check-input",type:"radio",name:"renovationRisk",id:`renovationRisk${E}`,value:E,checked:l.renovationRisk===E,onChange:P=>{const p=parseInt(P.target.value,10);d({...l,renovationRisk:p})}}),r.jsx("label",{className:"form-check-label",htmlFor:`renovationRisk${E}`,children:E})]},E))})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Rate of Return"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"rateofreturn",value:`$ ${rl().toFixed(2)}`,readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Turn Time"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:h,readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Purchase Price"}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${l.isPurchaseCostInvalid?"is-invalid":""}`,value:`$ ${l.purchaseCost}`,name:"purchaseCost",onChange:E=>{let P=E.target.value.replace(/[^\d.]/g,"");const p=/^\d*\.?\d*$/.test(P);d({...l,purchaseCost:P,isPurchaseCostInvalid:!p})},onKeyPress:E=>{const P=E.charCode;(P<48||P>57)&&P!==46&&(E.preventDefault(),d({...l,isPurchaseCostInvalid:!0}))},placeholder:"Enter Purchase Cost",style:{textAlign:"right"},required:!0}),l.isPurchaseCostInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Costs paid out of Closing Hud A to B:"}),l.costPaidAtoB.map((E,P)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:E.title,onChange:p=>_(P,"title",p.target.value),placeholder:"Title",required:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${E.isInvalid?"is-invalid":""}`,value:`$ ${E.price}`,onChange:p=>D(p,P),placeholder:"Price",style:{textAlign:"right"},required:!0}),E.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),r.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:r.jsx("button",{className:"btn btn-danger",onClick:()=>T(P),style:{marginLeft:"5px"},children:"x"})})]},P)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{onClick:O,className:"btn btn-primary back",style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Extra Cost"]})}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Purchase Cost"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalPurchaseCosts",value:`$ ${z().toFixed(2)}`,readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Credits received on settlement:"}),l.credits.map((E,P)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:E.title,onChange:p=>Q(P,"title",p.target.value),placeholder:"credits",required:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${E.isInvalid?"is-invalid":""}`,value:E.price,onChange:p=>Z(p,P),placeholder:"Price",style:{textAlign:"right"},required:!0}),E.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),r.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:r.jsx("button",{className:"btn btn-danger",onClick:()=>te(P),style:{marginLeft:"5px"},children:"x"})})]},P)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:H,style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add credits"]})}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total credits received on settlement"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalcredits",value:F(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Purchase Cost after Credits Received"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalPurchaseCostsaftercredits",value:U(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Cash Adjustments:"}),l.cashAdjustments.map((E,P)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:E.title,onChange:p=>A(P,"title",p.target.value),placeholder:"Title",required:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${E.isInvalid?"is-invalid":""}`,value:E.price,onChange:p=>B(p,P),placeholder:"Price",style:{textAlign:"right"},required:!0}),E.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),r.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:r.jsx("button",{className:"btn btn-danger",onClick:()=>R(P),style:{marginLeft:"5px"},children:"x"})})]},P)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:G,style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Cash Adjustments"]})}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Cash Adjustments on Settlement"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalcashAdjustments",value:L(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Cash Required on Settlement"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalcashrequiredonsettlement",value:W(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Incidental Cost:"}),l.incidentalCost.map((E,P)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:E.title,onChange:p=>ee(P,"title",p.target.value),placeholder:"Title",required:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${E.isInvalid?"is-invalid":""}`,value:E.price,onChange:p=>re(p,P),placeholder:"Price",style:{textAlign:"right"},required:!0}),E.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),r.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:r.jsx("button",{className:"btn btn-danger",onClick:()=>Y(P),style:{marginLeft:"5px"},children:"x"})})]},P)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:K,style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Incidental Cost"]})}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Incidental Cost"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalincidentalCost",value:ne(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Carry Costs:"}),l.carryCosts.map((E,P)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:E.title,onChange:p=>de(P,"title",p.target.value),placeholder:"Title",required:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${E.isInvalid?"is-invalid":""}`,value:E.price,onChange:p=>ge(p,P),placeholder:"Price",style:{textAlign:"right"},required:!0}),E.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),r.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:r.jsx("button",{className:"btn btn-danger",onClick:()=>le(P),style:{marginLeft:"5px"},children:"x"})})]},P)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:se,style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Carry Cost"]})}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Carry Cost"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalcarryCosts",value:Me(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Reno/Construction"}),l.renovationCost.map((E,P)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:E.title,onChange:p=>he(P,"title",p.target.value),placeholder:"Title",required:!0,style:{fontSize:"10px"}})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${E.isInvalid?"is-invalid":""}`,value:E.price,onChange:p=>$t(p,P),placeholder:"Price",style:{textAlign:"right"},required:!0}),E.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),r.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:r.jsx("button",{className:"btn btn-danger",onClick:()=>zt(P),style:{marginLeft:"5px"},children:"x"})})]},P)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:Ct,style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Reno/Construction"]})}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Renovation Cost"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalrenovationCost",value:Ye(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Renovations & Holding Cost"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalRenovationsandHoldingCost",value:Qn(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Costs to Buy A to B"}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:"form-control",name:"totalCoststoBuyAtoB",value:Zt(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0}),l.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Selling Price B to C"}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${l.isPurchaseCostInvalid?"is-invalid":""}`,name:"sellingPriceBtoC",value:l.sellingPriceBtoC,onChange:E=>{const P=E.target.value,p=/^\d*\.?\d*$/.test(P);d({...l,sellingPriceBtoC:P,isPurchaseCostInvalid:!p})},onKeyPress:E=>{const P=E.charCode;(P<48||P>57)&&P!==46&&(E.preventDefault(),d({...l,isPurchaseCostInvalid:!0}))},placeholder:"Enter Purchase Cost",style:{textAlign:"right"},required:!0}),l.isPurchaseCostInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Less:Costs paid out of closing Hud B to C:"}),l.costPaidOutofClosing.map((E,P)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:E.title,onChange:p=>Xn(P,"title",p.target.value),placeholder:"Title",required:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${E.isInvalid?"is-invalid":""}`,value:E.price,onChange:p=>Wt(p,P),placeholder:"Price",style:{textAlign:"right"},required:!0}),E.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),r.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:r.jsx("button",{className:"btn btn-danger",onClick:()=>js(P),style:{marginLeft:"5px"},children:"x"})})]},P)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:ys,style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Cost Paid Out of Closing"]})}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total cost paid out of closing"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalcostPaidOutofClosing",value:gn(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Cost to Sell B to C"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalCosttoSellBtoC",value:Ut(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Gross Proceeds per HUD"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"grossproceedsperHUD",value:Ut(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Adjustments:"}),l.adjustments.map((E,P)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:E.title,onChange:p=>xn(P,"title",p.target.value),placeholder:"Title",required:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${E.isInvalid?"is-invalid":""}`,value:E.price,onChange:p=>Li(p,P),placeholder:"Price",style:{textAlign:"right"},required:!0}),E.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),r.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:r.jsx("button",{className:"btn btn-danger",onClick:()=>qt(P),style:{marginLeft:"5px"},children:"x"})})]},P)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:fe,style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Adjustments"]})}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Adjustments"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totaladjustments",value:Ns(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Funds Available for distribution"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"fundsavailablefordistribution",value:Mi(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Income Statement Adjustments:"}),l.incomestatement.map((E,P)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:E.title,onChange:p=>Cs(P,"title",p.target.value),placeholder:"Title",required:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${E.isInvalid?"is-invalid":""}`,value:E.price,onChange:p=>Jn(p,P),placeholder:"Price",style:{textAlign:"right"},required:!0}),E.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),r.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:r.jsx("button",{className:"btn btn-danger",onClick:()=>nl(P),style:{marginLeft:"5px"},children:"x"})})]},P)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:tl,style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Income Statement"]})}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Income Statement Adjustment"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalincomestatement",value:Zn(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Net B to C Sale Value"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"netBtoCsalevalue",value:en(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Net Profit Computation"}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Total Costs to Buy A to B",required:!0,disabled:!0})}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalCoststoBuyAtoBagain",value:Zt(),style:{textAlign:"right"},required:!0})})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Funds Prior to Closing",required:!0,disabled:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${l.isfundspriortoclosingInvalid?"is-invalid":""}`,value:l.fundspriortoclosing,name:"fundspriortoclosing",onChange:E=>{const P=E.target.value,p=/^\d*\.?\d*$/.test(P);d({...l,fundspriortoclosing:P,isfundspriortoclosingInvalid:!p})},onKeyPress:E=>{const P=E.charCode;(P<48||P>57)&&P!==46&&(E.preventDefault(),d({...l,isfundspriortoclosingInvalid:!0}))},style:{textAlign:"right"},required:!0}),l.isfundspriortoclosingInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Net B to C Sale Value",required:!0,disabled:!0})}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"netBtoCsalevalue",value:en(),style:{textAlign:"right"},required:!0})})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Short Term Rental",required:!0,disabled:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${l.isPurchaseCostInvalid?"is-invalid":""}`,value:l.shorttermrental,name:"shorttermrental",onChange:E=>{const P=E.target.value,p=/^\d*\.?\d*$/.test(P);d({...l,shorttermrental:P,isPurchaseCostInvalid:!p})},onKeyPress:E=>{const P=E.charCode;(P<48||P>57)&&P!==46&&(E.preventDefault(),d({...l,isPurchaseCostInvalid:!0}))},style:{textAlign:"right"},required:!0}),l.isPurchaseCostInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Other Income",required:!0,disabled:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${l.isPurchaseCostInvalid?"is-invalid":""}`,value:l.OtherIncome,name:"OtherIncome",onChange:E=>{const P=E.target.value,p=/^\d*\.?\d*$/.test(P);d({...l,OtherIncome:P,isPurchaseCostInvalid:!p})},onKeyPress:E=>{const P=E.charCode;(P<48||P>57)&&P!==46&&(E.preventDefault(),d({...l,isPurchaseCostInvalid:!0}))},style:{textAlign:"right"},required:!0}),l.isPurchaseCostInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Insurance Claim",required:!0,disabled:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${l.isPurchaseCostInvalid?"is-invalid":""}`,value:l.InsuranceClaim,name:"InsuranceClaim",onChange:E=>{const P=E.target.value,p=/^\d*\.?\d*$/.test(P);d({...l,InsuranceClaim:P,isPurchaseCostInvalid:!p})},onKeyPress:E=>{const P=E.charCode;(P<48||P>57)&&P!==46&&(E.preventDefault(),d({...l,isPurchaseCostInvalid:!0}))},style:{textAlign:"right"},required:!0}),l.isPurchaseCostInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Long Term Rental",required:!0,disabled:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${l.isPurchaseCostInvalid?"is-invalid":""}`,value:l.LongTermRental,name:"LongTermRental",onChange:E=>{const P=E.target.value,p=/^\d*\.?\d*$/.test(P);d({...l,LongTermRental:P,isPurchaseCostInvalid:!p})},onKeyPress:E=>{const P=E.charCode;(P<48||P>57)&&P!==46&&(E.preventDefault(),d({...l,isPurchaseCostInvalid:!0}))},style:{textAlign:"right"},required:!0}),l.isPurchaseCostInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Net Profit Before Financing Costs"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"netprofitbeforefinancingcosts",value:Er(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Financing Cost/Other Closing Costs"}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${l.isFinancingCostClosingCostInvalid?"is-invalid":""}`,value:l.FinancingCostClosingCost,name:"FinancingCostClosingCost",onChange:E=>{const P=E.target.value,p=/^\d*\.?\d*$/.test(P);d({...l,FinancingCostClosingCost:P,isFinancingCostClosingCostInvalid:!p})},onKeyPress:E=>{const P=E.charCode;(P<48||P>57)&&P!==46&&(E.preventDefault(),d({...l,isFinancingCostClosingCostInvalid:!0}))},style:{textAlign:"right"},required:!0}),l.isFinancingCostClosingCostInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Net Profit"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"netprofit",value:bs(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("br",{}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("button",{className:"btn btn-primary back",onClick:o,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Go Back"})," ",r.jsx("button",{type:"button",className:"btn btn-primary continue",style:{backgroundColor:"#fda417",border:"#fda417"},onClick:g,children:"Submit"})," "]}),r.jsx("br",{})]})]})]})})]})},nS=()=>{const e=Ke(),{properties:t,loading:n,totalPages:s,currentPage:i}=_e(N=>N.property),[o,a]=w.useState(""),[l,d]=w.useState([]),[c,u]=w.useState(1),f=10;w.useEffect(()=>{e(mr({page:c,limit:f,keyword:o}))},[e,c,o]),w.useEffect(()=>{o.trim()?d(t.filter(N=>N.address.toLowerCase().includes(o.toLowerCase()))):d(t)},[o,t]);const g=N=>{a(N.target.value)},b=N=>{N.preventDefault()},x=N=>{u(N),e(mr({page:N,limit:f,keyword:o}))};return r.jsxs(r.Fragment,{children:[r.jsx(Le,{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsxs("div",{className:"container col-12",children:[r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-lg-12 card-margin col-12",children:r.jsx("div",{className:"card search-form col-12",children:r.jsx("div",{className:"card-body p-0",children:r.jsx("form",{id:"search-form",onSubmit:b,children:r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-12",children:r.jsx("div",{className:"row no-gutters",children:r.jsx("div",{className:"col-lg-8 col-md-6 col-sm-12 p-0",children:r.jsx("input",{type:"text",value:o,onChange:g,placeholder:"Enter the keyword and hit ENTER button...",className:"form-control"})})})})})})})})})}),r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-12",children:r.jsx("div",{className:"card card-margin",children:r.jsx("div",{className:"card-body",children:n?r.jsx("div",{children:"Loading..."}):r.jsx("div",{className:"table-responsive",children:r.jsxs("table",{className:"table widget-26",children:[r.jsx("thead",{style:{color:"#fda417",fontSize:"15px"},children:r.jsxs("tr",{children:[r.jsx("th",{children:"Image"}),r.jsx("th",{children:"Details"}),r.jsx("th",{children:"Total Living Square Foot"}),r.jsx("th",{children:"Year Built"}),r.jsx("th",{children:"Cost per Square Foot"})]})}),r.jsx("tbody",{children:l.length>0?l.map(N=>r.jsxs("tr",{children:[r.jsx("td",{children:N.images&&N.images[0]?r.jsx("img",{src:N.images[0].file||mt,alt:"Property Thumbnail",style:{width:"100px",height:"auto"}}):r.jsx("img",{src:mt,alt:"Default Property Thumbnail",style:{width:"100px",height:"auto"}})}),r.jsx("td",{children:r.jsxs("div",{className:"widget-26-job-title",children:[r.jsx(ae,{to:`/property/${N.propertyId}`,className:"link-primary text-decoration-none",children:N.address}),r.jsxs("p",{className:"m-0",children:[r.jsxs("span",{className:"employer-name",children:[r.jsx("i",{className:"fa fa-map-marker",style:{color:"#F74B02"}}),N.city,", ",N.county,","," ",N.state]}),r.jsxs("p",{className:"text-muted m-0",children:["House Id: ",N.propertyId]})]})]})}),r.jsx("td",{children:N.totallivingsqft}),r.jsx("td",{children:N.yearBuild}),r.jsx("td",{children:N.costpersqft})]},N.id)):r.jsx("tr",{children:r.jsx("td",{colSpan:"5",children:"No properties found."})})})]})})})})})}),r.jsx("nav",{"aria-label":"Page navigation",children:r.jsxs("ul",{className:"pagination justify-content-center",children:[r.jsx("li",{className:`page-item ${i===1?"disabled":""}`,children:r.jsx("button",{className:"page-link",onClick:()=>x(i-1),children:"Previous"})}),Array.from({length:s},(N,C)=>r.jsx("li",{className:`page-item ${i===C+1?"active":""}`,children:r.jsx("button",{className:"page-link",onClick:()=>x(C+1),children:C+1})},C+1)),r.jsx("li",{className:`page-item ${i===s?"disabled":""}`,children:r.jsx("button",{className:"page-link",onClick:()=>x(i+1),children:"Next"})})]})})]}),r.jsx(tt,{})]})},rS=()=>{const{userId:e}=gs(),t=Ke(),{user:n,loading:s}=_e(i=>i.user);return w.useEffect(()=>{e&&t(Po(e))},[e,t]),s?r.jsx("div",{children:"Loading..."}):r.jsxs(r.Fragment,{children:[r.jsx(Le,{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("div",{className:"main-body",children:r.jsxs("div",{className:"row gutters-sm",children:[r.jsx("div",{className:"col-md-4 mb-3",children:r.jsx("div",{className:"card",children:r.jsxs("div",{className:"card-body",children:[r.jsxs("div",{className:"d-flex flex-column align-items-center text-center",children:[r.jsx("img",{className:"img-fluid",src:n.profileImage||Ms,alt:"ProfileImage",style:{marginTop:"0px",maxWidth:"300px",maxHeight:"300px"}}),r.jsxs("h4",{children:[n.title,". ",n.firstName," ",n.middleName," ",n.lastName]}),r.jsxs("span",{className:"text-muted font-size-sm",children:[r.jsx("i",{className:"fa fa-map-marker",style:{color:"#F74B02",fontSize:"20px"}})," ",n.city,", ",n.state,", ",n.county,", ",n.zip]})]}),r.jsx("br",{})]})})}),r.jsx("div",{className:"col-md-4 mb-3",children:r.jsx("div",{className:"card",children:r.jsxs("div",{className:"card-body",children:[r.jsxs("h1",{className:"d-flex align-items-center mb-3",style:{color:"#fda417",fontSize:"26px"},children:[r.jsx("i",{className:"material-icons text-info mr-2",style:{color:"#fda417",fontSize:"26px"},children:"Recent"}),"Project investments"]}),r.jsx("hr",{}),r.jsx("img",{src:mt,alt:"Admin",className:"rounded-circle",style:{marginRight:"10px",maxWidth:"50px",maxHeight:"50px"}}),r.jsx("small",{children:"Web Design project in California"}),r.jsx("div",{className:"progress",style:{width:"100%",marginTop:"10px"},children:r.jsx("div",{className:"progress-bar",role:"progressbar",style:{width:"25%"},"aria-valuenow":25,"aria-valuemin":0,"aria-valuemax":100,children:"25% completed"})}),r.jsx("hr",{}),r.jsx("img",{src:mt,alt:"Admin",className:"rounded-circle",style:{marginRight:"10px",maxWidth:"50px",maxHeight:"50px"}}),r.jsx("small",{children:"Web Design project in California"}),r.jsx("div",{className:"progress",style:{width:"100%",marginTop:"10px"},children:r.jsx("div",{className:"progress-bar",role:"progressbar",style:{width:"75%"},"aria-valuenow":75,"aria-valuemin":0,"aria-valuemax":100,children:"75% completed"})})]})})}),r.jsx("div",{className:"col-md-4 mb-3",children:r.jsx("div",{className:"card",children:r.jsxs("div",{className:"card-body",children:[r.jsxs("h1",{className:"d-flex align-items-center mb-3",style:{color:"#fda417",fontSize:"26px"},children:[r.jsx("i",{className:"material-icons text-info mr-2",children:"Projects"}),"Seeking investments"]}),r.jsx("hr",{}),r.jsx("img",{src:mt,alt:"Admin",className:"rounded-circle",style:{marginRight:"10px",maxWidth:"50px",maxHeight:"50px"}}),r.jsx("small",{children:"Web Design project in California"}),r.jsx("br",{})," ",r.jsx("br",{}),r.jsx("hr",{}),r.jsx("img",{src:mt,alt:"Admin",className:"rounded-circle",style:{marginRight:"10px",maxWidth:"50px",maxHeight:"50px"}}),r.jsx("small",{children:"Web Design project in California"}),r.jsx("br",{})," ",r.jsx("br",{})]})})}),r.jsx("div",{className:"col-md-4",children:r.jsx("div",{className:"card mb-3",children:r.jsxs("div",{className:"card-body",children:[r.jsxs("h1",{className:"d-flex align-items-center mb-3",style:{color:"#fda417",fontSize:"26px"},children:[r.jsx("i",{className:"material-icons text-info mr-2",style:{color:"#fda417",fontSize:"26px"},children:"About"}),"me :"]})," ",r.jsx("hr",{}),n.aboutme]})})}),r.jsx("div",{className:"col-md-4 mb-3",children:r.jsx("div",{className:"card",children:r.jsxs("div",{className:"card-body",children:[r.jsxs("h1",{className:"d-flex align-items-center mb-3",style:{color:"#fda417",fontSize:"26px"},children:[r.jsx("i",{className:"material-icons text-info mr-2",style:{color:"#fda417",fontSize:"26px"},children:"Willing to"}),"invest:"]}),r.jsx("hr",{}),r.jsxs("h2",{className:"d-flex flex-column align-items-center text-center",style:{color:"#fda417",border:"#fda417",fontSize:"60px",fontWeight:"normal"},children:["$ ",n.fundAmount]}),r.jsx("hr",{}),r.jsxs("div",{className:"card-body",children:[r.jsxs("div",{className:"row",children:[r.jsx("div",{className:"col-sm-3",children:r.jsx("span",{className:"mb-0",children:"Email"})}),n.email,r.jsx("div",{className:"col-sm-9 text-secondary"})]}),r.jsx("hr",{}),r.jsxs("div",{className:"row",children:[r.jsx("div",{className:"col-sm-3",children:r.jsx("span",{className:"mb-0",children:"Phone"})}),"67656584687",r.jsx("div",{className:"col-sm-9 text-secondary"})]})]})]})})}),r.jsx("div",{className:"col-md-4 mb-3",children:r.jsx("div",{className:"card",children:r.jsxs("div",{className:"card-body",children:[r.jsxs("h1",{className:"d-flex align-items-center mb-3",style:{color:"#fda417",fontSize:"26px"},children:[r.jsx("i",{className:"material-icons text-info mr-2",children:"Suggested"}),"Borrowers"]}),r.jsxs("ul",{className:"list-group list-group-flush",children:[r.jsx("li",{className:"list-group-item d-flex justify-content-between align-items-center flex-wrap",children:r.jsxs("h6",{className:"mb-0",children:[r.jsx("img",{src:Ms,style:{marginTop:"0px",maxWidth:"50px",maxHeight:"50px"}}),"Ravichandu"]})}),r.jsx("li",{className:"list-group-item d-flex justify-content-between align-items-center flex-wrap",children:r.jsxs("h6",{className:"mb-0",children:[r.jsx("img",{src:Ms,style:{marginTop:"0px",maxWidth:"50px",maxHeight:"50px"}}),"Ravichandu"]})}),r.jsx("li",{className:"list-group-item d-flex justify-content-between align-items-center flex-wrap",children:r.jsxs("h6",{className:"mb-0",children:[r.jsx("img",{src:Ms,style:{marginTop:"0px",maxWidth:"50px",maxHeight:"50px"}}),"Ravichandu"]})})]})]})})})]})})]})};function sS(){const e="http://67.225.129.127:3002",[t,n]=w.useState(""),[s,i]=w.useState(""),o=hn(),a=async l=>{l.preventDefault();try{const{data:d}=await me.post(`${e}/admin/login`,{username:t,password:s});localStorage.setItem("token",d.token),o("/AdminPLogin/dashboard")}catch(d){alert("Invalid login credentials",d)}};return r.jsx(r.Fragment,{children:r.jsx("section",{className:"d-flex justify-content-center align-items-center col-12",style:{minHeight:"100vh",backgroundColor:"#FFFFFF",width:"100%",paddingLeft:"500px"},children:r.jsx("div",{className:"col-md-6 col-lg-4",children:r.jsx("div",{className:"container-fluid px-0",children:r.jsx("div",{className:"row gy-4 align-items-center justify-content-center",children:r.jsxs("div",{className:"col-12 text-center",children:[r.jsx("input",{autoComplete:"off",type:"text",value:t,onChange:l=>n(l.target.value)}),r.jsx("br",{})," ",r.jsx("br",{}),r.jsx("input",{autoComplete:"off",type:"password",value:s,onChange:l=>i(l.target.value)}),r.jsx("div",{className:"mb-3",children:r.jsx("button",{onClick:a,className:"btn btn-dark w-70",children:"Login"})})]})})})})})})}function Do({children:e}){const t=hn(),n=localStorage.getItem("token");return w.useEffect(()=>{n||t("/AdminPLogin")},[n,t]),n?e:null}Do.propTypes={children:Lt.node.isRequired};const iS=()=>{const e=Ke(),{properties:t,totalPages:n}=_e(d=>d.property),[s,i]=w.useState(1),o=5,a="";w.useEffect(()=>{e(mr({page:s,limit:o,keyword:a}))},[e,s,a]);const l=d=>{i(d)};return r.jsx("div",{className:"container-fluid",style:{padding:"35px",paddingLeft:"120px"},children:t.length>0?r.jsxs(r.Fragment,{children:[r.jsx("ul",{children:t.map(d=>r.jsx("li",{children:r.jsx("div",{className:"container",children:r.jsx("div",{className:"col-md-12",children:r.jsxs("div",{className:"row p-2 bg-white border rounded mt-2",children:[r.jsx("div",{className:"col-md-3 mt-1",children:r.jsx("img",{src:d.images[0].file||mt,className:"w-70",alt:"Img",style:{marginTop:"0px",maxWidth:"200px",maxHeight:"200px"}})}),r.jsxs("div",{className:"col-md-6 mt-1",children:[r.jsxs("h5",{children:[" ",r.jsxs(ae,{to:`/property/${d.propertyId}`,target:"_blank",children:[d.address,"....."]})]}),r.jsx("div",{className:"d-flex flex-row"}),r.jsxs("div",{className:"mt-1 mb-1 spec-1",children:[r.jsx("span",{children:"100% cotton"}),r.jsx("span",{className:"dot"}),r.jsx("span",{children:"Light weight"}),r.jsx("span",{className:"dot"}),r.jsxs("span",{children:["Best finish",r.jsx("br",{})]})]}),r.jsxs("div",{className:"mt-1 mb-1 spec-1",children:[r.jsx("span",{children:"Unique design"}),r.jsx("span",{className:"dot"}),r.jsx("span",{children:"For men"}),r.jsx("span",{className:"dot"}),r.jsxs("span",{children:["Casual",r.jsx("br",{})]})]}),r.jsxs("p",{className:"text-justify text-truncate para mb-0",children:["There are many variations of passages of",r.jsx("br",{}),r.jsx("br",{})]})]}),r.jsx("div",{className:"align-items-center align-content-center col-md-3 border-left mt-1",children:r.jsxs("div",{className:"d-flex flex-column mt-4",children:[r.jsx(ae,{to:`/property/${d.propertyId}`,children:r.jsxs("button",{className:"btn btn-outline-primary btn-sm mt-2",type:"button",style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{className:"fa fa-eye",style:{color:"#F74B02"}})," "," ","View Details"]})}),r.jsx(ae,{to:`/admineditproperty/${d.propertyId}`,children:r.jsxs("button",{className:"btn btn-outline-primary btn-sm mt-2",type:"button",style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{className:"fa fa-edit",style:{color:"#F74B02"}})," "," ","Edit Details .."]})})]})})]})})})},d._id))}),r.jsxs("div",{className:"pagination",children:[r.jsx("button",{onClick:()=>l(s-1),disabled:s===1,children:"Previous"}),Array.from({length:n},(d,c)=>c+1).map(d=>d===s||d===1||d===n||d>=s-1&&d<=s+1?r.jsx("button",{onClick:()=>l(d),disabled:s===d,children:d},d):d===2||d===n-1?r.jsx("span",{children:"..."},d):null),r.jsx("button",{onClick:()=>l(s+1),disabled:s===n,children:"Next"})]})]}):r.jsx("p",{children:"No active properties found."})})},oS=()=>{const e=hn(),[t,n]=w.useState("dashboard"),s=()=>{switch(t){case"activeUsers":return r.jsx("div",{children:"Active Users Content"});case"inactiveUsers":return r.jsx("div",{children:"Inactive Users Content"});case"addProperty":return r.jsx("div",{children:"Add Property Content"});case"userProperties":return r.jsx("div",{children:r.jsx(iS,{})});case"adminProperties":return r.jsx("div",{children:"Admin Properties Content"});default:return r.jsxs("div",{children:[r.jsx(ae,{to:"/AdminPLogin/admininfo",children:"Welcome to the Dashboard"}),r.jsxs("div",{className:"container-fluid",style:{padding:"20px",maxwidth:"150%"},children:[r.jsxs("div",{className:"row",style:{padding:"30px",maxwidth:"180%"},children:[r.jsx("div",{className:"col-xl-3 col-md-6 mb-4",children:r.jsx("div",{className:"card border-left-primary shadow h-100 py-2",children:r.jsx("div",{className:"card-body",children:r.jsxs("div",{className:"row no-gutters align-items-center",children:[r.jsxs("div",{className:"col mr-2",children:[r.jsx("div",{className:"text-xs font-weight-bold text-primary text-uppercase mb-1",children:"Total Users"}),r.jsx("div",{className:"h5 mb-0 font-weight-bold text-gray-800",children:"40,000,000"})]}),r.jsx("div",{className:"col-auto",children:r.jsx("i",{className:"fas fa-calendar fa-2x text-gray-300"})})]})})})}),r.jsx("div",{className:"col-xl-3 col-md-6 mb-4",children:r.jsx("div",{className:"card border-left-success shadow h-100 py-2",children:r.jsx("div",{className:"card-body",children:r.jsxs("div",{className:"row no-gutters align-items-center",children:[r.jsxs("div",{className:"col mr-2",children:[r.jsx("div",{className:"text-xs font-weight-bold text-success text-uppercase mb-1",children:"Total payments"}),r.jsx("div",{className:"h5 mb-0 font-weight-bold text-gray-800",children:"$215,000"})]}),r.jsx("div",{className:"col-auto",children:r.jsx("i",{className:"fas fa-dollar-sign fa-2x text-gray-300"})})]})})})}),r.jsx("div",{className:"col-xl-3 col-md-6 mb-4",children:r.jsx("div",{className:"card border-left-info shadow h-100 py-2",children:r.jsx("div",{className:"card-body",children:r.jsxs("div",{className:"row no-gutters align-items-center",children:[r.jsxs("div",{className:"col mr-2",children:[r.jsx("div",{className:"text-xs font-weight-bold text-info text-uppercase mb-1",children:"Total Properties"}),r.jsxs("div",{className:"row no-gutters align-items-center",children:[r.jsx("div",{className:"col-auto",children:r.jsx("div",{className:"h5 mb-0 mr-3 font-weight-bold text-gray-800",children:"50,000"})}),r.jsx("div",{className:"col",children:r.jsx("div",{className:"progress progress-sm mr-2",children:r.jsx("div",{className:"progress-bar bg-info",role:"progressbar",style:{width:"50%"},"aria-valuenow":50,"aria-valuemin":0,"aria-valuemax":100})})})]})]}),r.jsx("div",{className:"col-auto",children:r.jsx("i",{className:"fas fa-clipboard-list fa-2x text-gray-300"})})]})})})}),r.jsx("div",{className:"col-xl-3 col-md-6 mb-4",children:r.jsx("div",{className:"card border-left-warning shadow h-100 py-2",children:r.jsx("div",{className:"card-body",children:r.jsxs("div",{className:"row no-gutters align-items-center",children:[r.jsxs("div",{className:"col mr-2",children:[r.jsx("div",{className:"text-xs font-weight-bold text-warning text-uppercase mb-1",children:"Pending Inquires"}),r.jsx("div",{className:"h5 mb-0 font-weight-bold text-gray-800",children:"18"})]}),r.jsx("div",{className:"col-auto",children:r.jsx("i",{className:"fas fa-comments fa-2x text-gray-300"})})]})})})})]}),r.jsx("div",{className:"row"})]})]})}},i=()=>{localStorage.removeItem("token"),e("/AdminPLogin")};return r.jsx(r.Fragment,{children:r.jsx("div",{children:r.jsxs("div",{id:"wrapper",children:[r.jsxs("ul",{className:"navbar-nav bg-gradient-primary sidebar sidebar-dark accordion",id:"accordionSidebar",children:[r.jsxs("span",{className:"sidebar-brand d-flex align-items-center justify-content-center",href:"index.html",children:[r.jsx("div",{className:"sidebar-brand-icon rotate-n-15",children:r.jsx("i",{className:"fas fa-laugh-wink"})}),r.jsxs("div",{className:"sidebar-brand-text mx-3",children:["Admin ",r.jsx("sup",{children:"EL"})]})]}),r.jsx("hr",{className:"sidebar-divider my-0"}),r.jsx("li",{className:"nav-item active",children:r.jsxs(ae,{to:"#",onClick:()=>n("dashboard"),className:"nav-link link-primary text-decoration-none",children:[r.jsx("i",{className:"fas fa-fw fa-tachometer-alt"}),r.jsx("span",{children:"Dashboard"})]})}),r.jsx("hr",{className:"sidebar-divider"}),r.jsx("div",{className:"sidebar-heading",children:"Interface"}),r.jsxs("li",{className:"nav-item",children:[r.jsxs("a",{className:"nav-link collapsed",href:"#","data-toggle":"collapse","data-target":"#collapseTwo","aria-expanded":"true","aria-controls":"collapseTwo",children:[r.jsx("i",{className:"fas fa-fw fa-cog"}),r.jsx("span",{children:"Users"})]}),r.jsx("div",{id:"collapseTwo",className:"collapse","aria-labelledby":"headingTwo","data-parent":"#accordionSidebar",children:r.jsxs("div",{className:"bg-white py-2 collapse-inner rounded",children:[r.jsx("h6",{className:"collapse-header",children:"Registered Users:"}),r.jsx(ae,{to:"#",onClick:()=>n("activeUsers"),className:"collapse-item link-primary text-decoration-none",children:"Active Users"}),r.jsx(ae,{to:"#",onClick:()=>n("inactiveUsers"),className:"collapse-item link-primary text-decoration-none",children:"Inactive Users"})]})})]}),r.jsxs("li",{className:"nav-item",children:[r.jsxs("a",{className:"nav-link collapsed",href:"#","data-toggle":"collapse","data-target":"#collapseUtilities","aria-expanded":"true","aria-controls":"collapseUtilities",children:[r.jsx("i",{className:"fas fa-fw fa-wrench"}),r.jsx("span",{children:"Properties"})]}),r.jsx("div",{id:"collapseUtilities",className:"collapse","aria-labelledby":"headingUtilities","data-parent":"#accordionSidebar",children:r.jsxs("div",{className:"bg-white py-2 collapse-inner rounded",children:[r.jsx("h6",{className:"collapse-header",children:"Details:"}),r.jsx(ae,{to:"#",onClick:()=>n("addProperty"),className:"collapse-item link-primary text-decoration-none",children:"Add Property"}),r.jsx(ae,{to:"#",onClick:()=>n("userProperties"),className:"collapse-item link-primary text-decoration-none",children:"User Properties"}),r.jsx(ae,{to:"#",onClick:()=>n("adminProperties"),className:"collapse-item link-primary text-decoration-none",children:"Admin Properties"})]})})]}),r.jsx("hr",{className:"sidebar-divider"}),r.jsx("div",{className:"sidebar-heading",children:"Addons"}),r.jsx("li",{className:"nav-item",children:r.jsxs(ae,{to:"#",onClick:()=>n("admin"),className:"nav-link link-primary text-decoration-none",children:[r.jsx("i",{className:"fas fa-fw fa-chart-area"}),"Admin"]})}),r.jsx("hr",{className:"sidebar-divider d-none d-md-block"}),r.jsx("li",{className:"nav-item",children:r.jsxs(ae,{to:"/",onClick:o=>{o.preventDefault(),i()},className:"nav-link link-primary text-decoration-none",children:[r.jsx("i",{className:"fas fa-fw fa-sign-out-alt"}),r.jsx("span",{children:"Logout"})]})})]}),r.jsx("div",{id:"content-wrapper",className:"content col-12",style:{paddingRight:"40px",maxwidth:"100%"},children:r.jsx("div",{className:"main-content",children:s()})})]})})})},aS=()=>{const e=Ke(),{user:t,loading:n,error:s}=_e(i=>i.admin);return console.log("user",t),w.useEffect(()=>{e(Io())},[e]),n?r.jsx("p",{children:"Loading..."}):s?r.jsxs("p",{children:["Error: ",s]}):r.jsxs("div",{children:[r.jsx("h2",{children:"Admin Details"}),t?r.jsx("div",{children:r.jsxs("p",{children:[r.jsx("strong",{children:"Username:"})," ",t.username]})}):r.jsx("p",{children:"No user details found. Thank you"})]})},lS=()=>r.jsxs(yC,{children:[r.jsx(LC,{}),r.jsxs(uC,{children:[r.jsx(be,{path:"/",element:r.jsx(BC,{})}),r.jsx(be,{path:"/about",element:r.jsx(zC,{})}),r.jsx(be,{path:"/services",element:r.jsx(eS,{})}),r.jsx(be,{path:"/contact",element:r.jsx($C,{})}),r.jsx(be,{path:"/register",element:r.jsx(pb,{})}),r.jsx(be,{path:"/registrationsuccess",element:r.jsx(Bs,{children:r.jsx(Rb,{})})}),r.jsx(be,{path:"/login",element:r.jsx(hb,{})}),r.jsx(be,{path:"/dashboard",element:r.jsx(Bs,{children:r.jsx(Cb,{})})}),r.jsx(be,{path:"/users/:id/verify/:token",element:r.jsx(_b,{})}),r.jsx(be,{path:"/forgotpassword",element:r.jsx(Ob,{})}),r.jsx(be,{path:"/users/resetpassword/:userId/:token",element:r.jsx(Tb,{})}),r.jsx(be,{path:"/addproperty",element:r.jsx(Bs,{children:r.jsx(eg,{})})}),r.jsx(be,{path:"/property/:id",element:r.jsx(Jw,{})}),r.jsx(be,{path:"/properties/:house_id",element:r.jsx(tS,{})}),r.jsx(be,{path:"/searchmyproperties",element:r.jsx(Zw,{})}),r.jsx(be,{path:"/searchproperties",element:r.jsx(nS,{})}),r.jsx(be,{path:"/editproperty/:id",element:r.jsx(Bs,{children:r.jsx(Rp,{})})}),r.jsx(be,{path:"/profile/:userId",element:r.jsx(rS,{})}),r.jsx(be,{path:"/AdminPLogin",element:r.jsx(sS,{})}),r.jsx(be,{path:"/AdminPLogin/dashboard",element:r.jsx(Do,{children:r.jsx(oS,{})})}),r.jsx(be,{path:"/AdminPLogin/admininfo",element:r.jsx(Do,{children:r.jsx(aS,{})})}),r.jsx(be,{path:"/admineditproperty/:id",element:r.jsx(Do,{children:r.jsx(Rp,{})})})]})]});Hh(document.getElementById("root")).render(r.jsx(w.StrictMode,{children:r.jsx(Rj,{store:wN,children:r.jsx(lS,{})})})); diff --git a/ef-ui/dist/assets/index-wGi2QxgW.js b/ef-ui/dist/assets/index-wGi2QxgW.js new file mode 100644 index 0000000..f4a0c91 --- /dev/null +++ b/ef-ui/dist/assets/index-wGi2QxgW.js @@ -0,0 +1,89 @@ +var $g=Object.defineProperty;var Wg=(e,t,n)=>t in e?$g(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var jl=(e,t,n)=>Wg(e,typeof t!="symbol"?t+"":t,n);function Ug(e,t){for(var n=0;ns[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))s(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&s(a)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function s(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();var qg=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function So(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Lp={exports:{}},wa={},Bp={exports:{}},ue={};/** + * @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 ko=Symbol.for("react.element"),Vg=Symbol.for("react.portal"),Hg=Symbol.for("react.fragment"),Kg=Symbol.for("react.strict_mode"),Yg=Symbol.for("react.profiler"),Gg=Symbol.for("react.provider"),Qg=Symbol.for("react.context"),Xg=Symbol.for("react.forward_ref"),Jg=Symbol.for("react.suspense"),Zg=Symbol.for("react.memo"),ex=Symbol.for("react.lazy"),Lu=Symbol.iterator;function tx(e){return e===null||typeof e!="object"?null:(e=Lu&&e[Lu]||e["@@iterator"],typeof e=="function"?e:null)}var Mp={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},zp=Object.assign,$p={};function us(e,t,n){this.props=e,this.context=t,this.refs=$p,this.updater=n||Mp}us.prototype.isReactComponent={};us.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")};us.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Wp(){}Wp.prototype=us.prototype;function Sd(e,t,n){this.props=e,this.context=t,this.refs=$p,this.updater=n||Mp}var kd=Sd.prototype=new Wp;kd.constructor=Sd;zp(kd,us.prototype);kd.isPureReactComponent=!0;var Bu=Array.isArray,Up=Object.prototype.hasOwnProperty,Ed={current:null},qp={key:!0,ref:!0,__self:!0,__source:!0};function Vp(e,t,n){var s,o={},i=null,a=null;if(t!=null)for(s in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(i=""+t.key),t)Up.call(t,s)&&!qp.hasOwnProperty(s)&&(o[s]=t[s]);var l=arguments.length-2;if(l===1)o.children=n;else if(1>>1,W=A[B];if(0>>1;Bo(ee,M))reo(ne,ee)?(A[B]=ne,A[re]=M,B=re):(A[B]=ee,A[Y]=M,B=Y);else if(reo(ne,M))A[B]=ne,A[re]=M,B=re;else break e}}return R}function o(A,R){var M=A.sortIndex-R.sortIndex;return M!==0?M:A.id-R.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,l=a.now();e.unstable_now=function(){return a.now()-l}}var d=[],c=[],u=1,p=null,g=3,N=!1,x=!1,C=!1,b=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,v=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function h(A){for(var R=n(c);R!==null;){if(R.callback===null)s(c);else if(R.startTime<=A)s(c),R.sortIndex=R.expirationTime,t(d,R);else break;R=n(c)}}function y(A){if(C=!1,h(A),!x)if(n(d)!==null)x=!0,U(E);else{var R=n(c);R!==null&&G(y,R.startTime-A)}}function E(A,R){x=!1,C&&(C=!1,m(_),_=-1),N=!0;var M=g;try{for(h(R),p=n(d);p!==null&&(!(p.expirationTime>R)||A&&!H());){var B=p.callback;if(typeof B=="function"){p.callback=null,g=p.priorityLevel;var W=B(p.expirationTime<=R);R=e.unstable_now(),typeof W=="function"?p.callback=W:p===n(d)&&s(d),h(R)}else s(d);p=n(d)}if(p!==null)var K=!0;else{var Y=n(c);Y!==null&&G(y,Y.startTime-R),K=!1}return K}finally{p=null,g=M,N=!1}}var T=!1,O=null,_=-1,L=5,z=-1;function H(){return!(e.unstable_now()-zA||125B?(A.sortIndex=M,t(c,A),n(d)===null&&A===n(c)&&(C?(m(_),_=-1):C=!0,G(y,M-B))):(A.sortIndex=W,t(d,A),x||N||(x=!0,U(E))),A},e.unstable_shouldYield=H,e.unstable_wrapCallback=function(A){var R=g;return function(){var M=g;g=R;try{return A.apply(this,arguments)}finally{g=M}}}})(Qp);Gp.exports=Qp;var fx=Gp.exports;/** + * @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 px=S,gt=fx;function V(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),dc=Object.prototype.hasOwnProperty,mx=/^[: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]*$/,zu={},$u={};function hx(e){return dc.call($u,e)?!0:dc.call(zu,e)?!1:mx.test(e)?$u[e]=!0:(zu[e]=!0,!1)}function vx(e,t,n,s){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return s?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function gx(e,t,n,s){if(t===null||typeof t>"u"||vx(e,t,n,s))return!0;if(s)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 Ze(e,t,n,s,o,i,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=s,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var We={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){We[e]=new Ze(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];We[t]=new Ze(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){We[e]=new Ze(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){We[e]=new Ze(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){We[e]=new Ze(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){We[e]=new Ze(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){We[e]=new Ze(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){We[e]=new Ze(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){We[e]=new Ze(e,5,!1,e.toLowerCase(),null,!1,!1)});var _d=/[\-:]([a-z])/g;function Td(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 v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(_d,Td);We[t]=new Ze(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(_d,Td);We[t]=new Ze(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(_d,Td);We[t]=new Ze(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){We[e]=new Ze(e,1,!1,e.toLowerCase(),null,!1,!1)});We.xlinkHref=new Ze("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){We[e]=new Ze(e,1,!1,e.toLowerCase(),null,!0,!0)});function Od(e,t,n,s){var o=We.hasOwnProperty(t)?We[t]:null;(o!==null?o.type!==0:s||!(2l||o[a]!==i[l]){var d=` +`+o[a].replace(" at new "," at ");return e.displayName&&d.includes("")&&(d=d.replace("",e.displayName)),d}while(1<=a&&0<=l);break}}}finally{bl=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Rs(e):""}function xx(e){switch(e.tag){case 5:return Rs(e.type);case 16:return Rs("Lazy");case 13:return Rs("Suspense");case 19:return Rs("SuspenseList");case 0:case 2:case 15:return e=wl(e.type,!1),e;case 11:return e=wl(e.type.render,!1),e;case 1:return e=wl(e.type,!0),e;default:return""}}function mc(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 Rr:return"Fragment";case Ar:return"Portal";case uc:return"Profiler";case Ad:return"StrictMode";case fc:return"Suspense";case pc:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Zp:return(e.displayName||"Context")+".Consumer";case Jp:return(e._context.displayName||"Context")+".Provider";case Rd:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Id:return t=e.displayName||null,t!==null?t:mc(e.type)||"Memo";case Nn:t=e._payload,e=e._init;try{return mc(e(t))}catch{}}return null}function yx(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 mc(t);case 8:return t===Ad?"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 Wn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function tm(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function jx(e){var t=tm(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),s=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(a){s=""+a,i.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return s},setValue:function(a){s=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Vo(e){e._valueTracker||(e._valueTracker=jx(e))}function nm(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),s="";return e&&(s=tm(e)?e.checked?"true":"false":e.value),e=s,e!==n?(t.setValue(e),!0):!1}function Mi(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function hc(e,t){var n=t.checked;return ke({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Uu(e,t){var n=t.defaultValue==null?"":t.defaultValue,s=t.checked!=null?t.checked:t.defaultChecked;n=Wn(t.value!=null?t.value:n),e._wrapperState={initialChecked:s,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function rm(e,t){t=t.checked,t!=null&&Od(e,"checked",t,!1)}function vc(e,t){rm(e,t);var n=Wn(t.value),s=t.type;if(n!=null)s==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(s==="submit"||s==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?gc(e,t.type,n):t.hasOwnProperty("defaultValue")&&gc(e,t.type,Wn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function qu(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var s=t.type;if(!(s!=="submit"&&s!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function gc(e,t,n){(t!=="number"||Mi(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Is=Array.isArray;function Qr(e,t,n,s){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=Ho.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function to(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var $s={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Nx=["Webkit","ms","Moz","O"];Object.keys($s).forEach(function(e){Nx.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),$s[t]=$s[e]})});function am(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||$s.hasOwnProperty(e)&&$s[e]?(""+t).trim():t+"px"}function lm(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var s=n.indexOf("--")===0,o=am(n,t[n],s);n==="float"&&(n="cssFloat"),s?e.setProperty(n,o):e[n]=o}}var Cx=ke({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function jc(e,t){if(t){if(Cx[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(V(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(V(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(V(61))}if(t.style!=null&&typeof t.style!="object")throw Error(V(62))}}function Nc(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Cc=null;function Fd(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var bc=null,Xr=null,Jr=null;function Ku(e){if(e=_o(e)){if(typeof bc!="function")throw Error(V(280));var t=e.stateNode;t&&(t=_a(t),bc(e.stateNode,e.type,t))}}function cm(e){Xr?Jr?Jr.push(e):Jr=[e]:Xr=e}function dm(){if(Xr){var e=Xr,t=Jr;if(Jr=Xr=null,Ku(e),t)for(e=0;e>>=0,e===0?32:31-(Rx(e)/Ix|0)|0}var Ko=64,Yo=4194304;function Fs(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Ui(e,t){var n=e.pendingLanes;if(n===0)return 0;var s=0,o=e.suspendedLanes,i=e.pingedLanes,a=n&268435455;if(a!==0){var l=a&~o;l!==0?s=Fs(l):(i&=a,i!==0&&(s=Fs(i)))}else a=n&~o,a!==0?s=Fs(a):i!==0&&(s=Fs(i));if(s===0)return 0;if(t!==0&&t!==s&&!(t&o)&&(o=s&-s,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(s&4&&(s|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=s;0n;n++)t.push(e);return t}function Eo(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-It(t),e[t]=n}function Bx(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var s=e.eventTimes;for(e=e.expirationTimes;0=Us),nf=" ",rf=!1;function Tm(e,t){switch(e){case"keyup":return fy.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Om(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ir=!1;function my(e,t){switch(e){case"compositionend":return Om(t);case"keypress":return t.which!==32?null:(rf=!0,nf);case"textInput":return e=t.data,e===nf&&rf?null:e;default:return null}}function hy(e,t){if(Ir)return e==="compositionend"||!Ud&&Tm(e,t)?(e=Pm(),hi=zd=_n=null,Ir=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=s}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=lf(n)}}function Fm(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Fm(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Dm(){for(var e=window,t=Mi();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Mi(e.document)}return t}function qd(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function wy(e){var t=Dm(),n=e.focusedElem,s=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Fm(n.ownerDocument.documentElement,n)){if(s!==null&&qd(n)){if(t=s.start,e=s.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(s.start,o);s=s.end===void 0?i:Math.min(s.end,o),!e.extend&&i>s&&(o=s,s=i,i=o),o=cf(n,i);var a=cf(n,s);o&&a&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>s?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Fr=null,_c=null,Vs=null,Tc=!1;function df(e,t,n){var s=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Tc||Fr==null||Fr!==Mi(s)||(s=Fr,"selectionStart"in s&&qd(s)?s={start:s.selectionStart,end:s.selectionEnd}:(s=(s.ownerDocument&&s.ownerDocument.defaultView||window).getSelection(),s={anchorNode:s.anchorNode,anchorOffset:s.anchorOffset,focusNode:s.focusNode,focusOffset:s.focusOffset}),Vs&&ao(Vs,s)||(Vs=s,s=Hi(_c,"onSelect"),0Br||(e.current=Dc[Br],Dc[Br]=null,Br--)}function xe(e,t){Br++,Dc[Br]=e.current,e.current=t}var Un={},He=Hn(Un),ot=Hn(!1),gr=Un;function rs(e,t){var n=e.type.contextTypes;if(!n)return Un;var s=e.stateNode;if(s&&s.__reactInternalMemoizedUnmaskedChildContext===t)return s.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return s&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function it(e){return e=e.childContextTypes,e!=null}function Yi(){Ne(ot),Ne(He)}function gf(e,t,n){if(He.current!==Un)throw Error(V(168));xe(He,t),xe(ot,n)}function Vm(e,t,n){var s=e.stateNode;if(t=t.childContextTypes,typeof s.getChildContext!="function")return n;s=s.getChildContext();for(var o in s)if(!(o in t))throw Error(V(108,yx(e)||"Unknown",o));return ke({},n,s)}function Gi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Un,gr=He.current,xe(He,e),xe(ot,ot.current),!0}function xf(e,t,n){var s=e.stateNode;if(!s)throw Error(V(169));n?(e=Vm(e,t,gr),s.__reactInternalMemoizedMergedChildContext=e,Ne(ot),Ne(He),xe(He,e)):Ne(ot),xe(ot,n)}var rn=null,Ta=!1,Bl=!1;function Hm(e){rn===null?rn=[e]:rn.push(e)}function Dy(e){Ta=!0,Hm(e)}function Kn(){if(!Bl&&rn!==null){Bl=!0;var e=0,t=ve;try{var n=rn;for(ve=1;e>=a,o-=a,sn=1<<32-It(t)+o|n<_?(L=O,O=null):L=O.sibling;var z=g(m,O,h[_],y);if(z===null){O===null&&(O=L);break}e&&O&&z.alternate===null&&t(m,O),v=i(z,v,_),T===null?E=z:T.sibling=z,T=z,O=L}if(_===h.length)return n(m,O),Ce&&tr(m,_),E;if(O===null){for(;__?(L=O,O=null):L=O.sibling;var H=g(m,O,z.value,y);if(H===null){O===null&&(O=L);break}e&&O&&H.alternate===null&&t(m,O),v=i(H,v,_),T===null?E=H:T.sibling=H,T=H,O=L}if(z.done)return n(m,O),Ce&&tr(m,_),E;if(O===null){for(;!z.done;_++,z=h.next())z=p(m,z.value,y),z!==null&&(v=i(z,v,_),T===null?E=z:T.sibling=z,T=z);return Ce&&tr(m,_),E}for(O=s(m,O);!z.done;_++,z=h.next())z=N(O,m,_,z.value,y),z!==null&&(e&&z.alternate!==null&&O.delete(z.key===null?_:z.key),v=i(z,v,_),T===null?E=z:T.sibling=z,T=z);return e&&O.forEach(function(te){return t(m,te)}),Ce&&tr(m,_),E}function b(m,v,h,y){if(typeof h=="object"&&h!==null&&h.type===Rr&&h.key===null&&(h=h.props.children),typeof h=="object"&&h!==null){switch(h.$$typeof){case qo:e:{for(var E=h.key,T=v;T!==null;){if(T.key===E){if(E=h.type,E===Rr){if(T.tag===7){n(m,T.sibling),v=o(T,h.props.children),v.return=m,m=v;break e}}else if(T.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===Nn&&Nf(E)===T.type){n(m,T.sibling),v=o(T,h.props),v.ref=_s(m,T,h),v.return=m,m=v;break e}n(m,T);break}else t(m,T);T=T.sibling}h.type===Rr?(v=fr(h.props.children,m.mode,y,h.key),v.return=m,m=v):(y=bi(h.type,h.key,h.props,null,m.mode,y),y.ref=_s(m,v,h),y.return=m,m=y)}return a(m);case Ar:e:{for(T=h.key;v!==null;){if(v.key===T)if(v.tag===4&&v.stateNode.containerInfo===h.containerInfo&&v.stateNode.implementation===h.implementation){n(m,v.sibling),v=o(v,h.children||[]),v.return=m,m=v;break e}else{n(m,v);break}else t(m,v);v=v.sibling}v=Hl(h,m.mode,y),v.return=m,m=v}return a(m);case Nn:return T=h._init,b(m,v,T(h._payload),y)}if(Is(h))return x(m,v,h,y);if(ws(h))return C(m,v,h,y);ti(m,h)}return typeof h=="string"&&h!==""||typeof h=="number"?(h=""+h,v!==null&&v.tag===6?(n(m,v.sibling),v=o(v,h),v.return=m,m=v):(n(m,v),v=Vl(h,m.mode,y),v.return=m,m=v),a(m)):n(m,v)}return b}var os=Qm(!0),Xm=Qm(!1),Ji=Hn(null),Zi=null,$r=null,Yd=null;function Gd(){Yd=$r=Zi=null}function Qd(e){var t=Ji.current;Ne(Ji),e._currentValue=t}function Mc(e,t,n){for(;e!==null;){var s=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,s!==null&&(s.childLanes|=t)):s!==null&&(s.childLanes&t)!==t&&(s.childLanes|=t),e===n)break;e=e.return}}function es(e,t){Zi=e,Yd=$r=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(st=!0),e.firstContext=null)}function Et(e){var t=e._currentValue;if(Yd!==e)if(e={context:e,memoizedValue:t,next:null},$r===null){if(Zi===null)throw Error(V(308));$r=e,Zi.dependencies={lanes:0,firstContext:e}}else $r=$r.next=e;return t}var lr=null;function Xd(e){lr===null?lr=[e]:lr.push(e)}function Jm(e,t,n,s){var o=t.interleaved;return o===null?(n.next=n,Xd(t)):(n.next=o.next,o.next=n),t.interleaved=n,dn(e,s)}function dn(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Cn=!1;function Jd(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Zm(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function an(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Ln(e,t,n){var s=e.updateQueue;if(s===null)return null;if(s=s.shared,pe&2){var o=s.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),s.pending=t,dn(e,n)}return o=s.interleaved,o===null?(t.next=t,Xd(s)):(t.next=o.next,o.next=t),s.interleaved=t,dn(e,n)}function gi(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var s=t.lanes;s&=e.pendingLanes,n|=s,t.lanes=n,Ld(e,n)}}function Cf(e,t){var n=e.updateQueue,s=e.alternate;if(s!==null&&(s=s.updateQueue,n===s)){var o=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=a:i=i.next=a,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:s.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:s.shared,effects:s.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function ea(e,t,n,s){var o=e.updateQueue;Cn=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,l=o.shared.pending;if(l!==null){o.shared.pending=null;var d=l,c=d.next;d.next=null,a===null?i=c:a.next=c,a=d;var u=e.alternate;u!==null&&(u=u.updateQueue,l=u.lastBaseUpdate,l!==a&&(l===null?u.firstBaseUpdate=c:l.next=c,u.lastBaseUpdate=d))}if(i!==null){var p=o.baseState;a=0,u=c=d=null,l=i;do{var g=l.lane,N=l.eventTime;if((s&g)===g){u!==null&&(u=u.next={eventTime:N,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var x=e,C=l;switch(g=t,N=n,C.tag){case 1:if(x=C.payload,typeof x=="function"){p=x.call(N,p,g);break e}p=x;break e;case 3:x.flags=x.flags&-65537|128;case 0:if(x=C.payload,g=typeof x=="function"?x.call(N,p,g):x,g==null)break e;p=ke({},p,g);break e;case 2:Cn=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,g=o.effects,g===null?o.effects=[l]:g.push(l))}else N={eventTime:N,lane:g,tag:l.tag,payload:l.payload,callback:l.callback,next:null},u===null?(c=u=N,d=p):u=u.next=N,a|=g;if(l=l.next,l===null){if(l=o.shared.pending,l===null)break;g=l,l=g.next,g.next=null,o.lastBaseUpdate=g,o.shared.pending=null}}while(!0);if(u===null&&(d=p),o.baseState=d,o.firstBaseUpdate=c,o.lastBaseUpdate=u,t=o.shared.interleaved,t!==null){o=t;do a|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);jr|=a,e.lanes=a,e.memoizedState=p}}function bf(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var s=zl.transition;zl.transition={};try{e(!1),t()}finally{ve=n,zl.transition=s}}function vh(){return Pt().memoizedState}function zy(e,t,n){var s=Mn(e);if(n={lane:s,action:n,hasEagerState:!1,eagerState:null,next:null},gh(e))xh(t,n);else if(n=Jm(e,t,n,s),n!==null){var o=Xe();Ft(n,e,s,o),yh(n,t,s)}}function $y(e,t,n){var s=Mn(e),o={lane:s,action:n,hasEagerState:!1,eagerState:null,next:null};if(gh(e))xh(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var a=t.lastRenderedState,l=i(a,n);if(o.hasEagerState=!0,o.eagerState=l,Bt(l,a)){var d=t.interleaved;d===null?(o.next=o,Xd(t)):(o.next=d.next,d.next=o),t.interleaved=o;return}}catch{}finally{}n=Jm(e,t,o,s),n!==null&&(o=Xe(),Ft(n,e,s,o),yh(n,t,s))}}function gh(e){var t=e.alternate;return e===Se||t!==null&&t===Se}function xh(e,t){Hs=na=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function yh(e,t,n){if(n&4194240){var s=t.lanes;s&=e.pendingLanes,n|=s,t.lanes=n,Ld(e,n)}}var ra={readContext:Et,useCallback:Ue,useContext:Ue,useEffect:Ue,useImperativeHandle:Ue,useInsertionEffect:Ue,useLayoutEffect:Ue,useMemo:Ue,useReducer:Ue,useRef:Ue,useState:Ue,useDebugValue:Ue,useDeferredValue:Ue,useTransition:Ue,useMutableSource:Ue,useSyncExternalStore:Ue,useId:Ue,unstable_isNewReconciler:!1},Wy={readContext:Et,useCallback:function(e,t){return Ht().memoizedState=[e,t===void 0?null:t],e},useContext:Et,useEffect:Sf,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,yi(4194308,4,uh.bind(null,t,e),n)},useLayoutEffect:function(e,t){return yi(4194308,4,e,t)},useInsertionEffect:function(e,t){return yi(4,2,e,t)},useMemo:function(e,t){var n=Ht();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var s=Ht();return t=n!==void 0?n(t):t,s.memoizedState=s.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},s.queue=e,e=e.dispatch=zy.bind(null,Se,e),[s.memoizedState,e]},useRef:function(e){var t=Ht();return e={current:e},t.memoizedState=e},useState:wf,useDebugValue:iu,useDeferredValue:function(e){return Ht().memoizedState=e},useTransition:function(){var e=wf(!1),t=e[0];return e=My.bind(null,e[1]),Ht().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var s=Se,o=Ht();if(Ce){if(n===void 0)throw Error(V(407));n=n()}else{if(n=t(),De===null)throw Error(V(349));yr&30||rh(s,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,Sf(oh.bind(null,s,i,e),[e]),s.flags|=2048,vo(9,sh.bind(null,s,i,n,t),void 0,null),n},useId:function(){var e=Ht(),t=De.identifierPrefix;if(Ce){var n=on,s=sn;n=(s&~(1<<32-It(s)-1)).toString(32)+n,t=":"+t+"R"+n,n=mo++,0<\/script>",e=e.removeChild(e.firstChild)):typeof s.is=="string"?e=a.createElement(n,{is:s.is}):(e=a.createElement(n),n==="select"&&(a=e,s.multiple?a.multiple=!0:s.size&&(a.size=s.size))):e=a.createElementNS(e,n),e[Yt]=t,e[uo]=s,_h(e,t,!1,!1),t.stateNode=e;e:{switch(a=Nc(n,s),n){case"dialog":je("cancel",e),je("close",e),o=s;break;case"iframe":case"object":case"embed":je("load",e),o=s;break;case"video":case"audio":for(o=0;ols&&(t.flags|=128,s=!0,Ts(i,!1),t.lanes=4194304)}else{if(!s)if(e=ta(a),e!==null){if(t.flags|=128,s=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Ts(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!Ce)return qe(t),null}else 2*Te()-i.renderingStartTime>ls&&n!==1073741824&&(t.flags|=128,s=!0,Ts(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(n=i.last,n!==null?n.sibling=a:t.child=a,i.last=a)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Te(),t.sibling=null,n=we.current,xe(we,s?n&1|2:n&1),t):(qe(t),null);case 22:case 23:return fu(),s=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==s&&(t.flags|=8192),s&&t.mode&1?dt&1073741824&&(qe(t),t.subtreeFlags&6&&(t.flags|=8192)):qe(t),null;case 24:return null;case 25:return null}throw Error(V(156,t.tag))}function Qy(e,t){switch(Hd(t),t.tag){case 1:return it(t.type)&&Yi(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return is(),Ne(ot),Ne(He),tu(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return eu(t),null;case 13:if(Ne(we),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(V(340));ss()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ne(we),null;case 4:return is(),null;case 10:return Qd(t.type._context),null;case 22:case 23:return fu(),null;case 24:return null;default:return null}}var ri=!1,Ve=!1,Xy=typeof WeakSet=="function"?WeakSet:Set,J=null;function Wr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(s){Ee(e,t,s)}else n.current=null}function Yc(e,t,n){try{n()}catch(s){Ee(e,t,s)}}var Df=!1;function Jy(e,t){if(Oc=qi,e=Dm(),qd(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var s=n.getSelection&&n.getSelection();if(s&&s.rangeCount!==0){n=s.anchorNode;var o=s.anchorOffset,i=s.focusNode;s=s.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var a=0,l=-1,d=-1,c=0,u=0,p=e,g=null;t:for(;;){for(var N;p!==n||o!==0&&p.nodeType!==3||(l=a+o),p!==i||s!==0&&p.nodeType!==3||(d=a+s),p.nodeType===3&&(a+=p.nodeValue.length),(N=p.firstChild)!==null;)g=p,p=N;for(;;){if(p===e)break t;if(g===n&&++c===o&&(l=a),g===i&&++u===s&&(d=a),(N=p.nextSibling)!==null)break;p=g,g=p.parentNode}p=N}n=l===-1||d===-1?null:{start:l,end:d}}else n=null}n=n||{start:0,end:0}}else n=null;for(Ac={focusedElem:e,selectionRange:n},qi=!1,J=t;J!==null;)if(t=J,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,J=e;else for(;J!==null;){t=J;try{var x=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(x!==null){var C=x.memoizedProps,b=x.memoizedState,m=t.stateNode,v=m.getSnapshotBeforeUpdate(t.elementType===t.type?C:Tt(t.type,C),b);m.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var h=t.stateNode.containerInfo;h.nodeType===1?h.textContent="":h.nodeType===9&&h.documentElement&&h.removeChild(h.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(V(163))}}catch(y){Ee(t,t.return,y)}if(e=t.sibling,e!==null){e.return=t.return,J=e;break}J=t.return}return x=Df,Df=!1,x}function Ks(e,t,n){var s=t.updateQueue;if(s=s!==null?s.lastEffect:null,s!==null){var o=s=s.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&Yc(t,n,i)}o=o.next}while(o!==s)}}function Ra(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var s=n.create;n.destroy=s()}n=n.next}while(n!==t)}}function Gc(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Ah(e){var t=e.alternate;t!==null&&(e.alternate=null,Ah(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Yt],delete t[uo],delete t[Fc],delete t[Iy],delete t[Fy])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Rh(e){return e.tag===5||e.tag===3||e.tag===4}function Lf(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Rh(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Qc(e,t,n){var s=e.tag;if(s===5||s===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Ki));else if(s!==4&&(e=e.child,e!==null))for(Qc(e,t,n),e=e.sibling;e!==null;)Qc(e,t,n),e=e.sibling}function Xc(e,t,n){var s=e.tag;if(s===5||s===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(s!==4&&(e=e.child,e!==null))for(Xc(e,t,n),e=e.sibling;e!==null;)Xc(e,t,n),e=e.sibling}var ze=null,Ot=!1;function yn(e,t,n){for(n=n.child;n!==null;)Ih(e,t,n),n=n.sibling}function Ih(e,t,n){if(Qt&&typeof Qt.onCommitFiberUnmount=="function")try{Qt.onCommitFiberUnmount(Sa,n)}catch{}switch(n.tag){case 5:Ve||Wr(n,t);case 6:var s=ze,o=Ot;ze=null,yn(e,t,n),ze=s,Ot=o,ze!==null&&(Ot?(e=ze,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ze.removeChild(n.stateNode));break;case 18:ze!==null&&(Ot?(e=ze,n=n.stateNode,e.nodeType===8?Ll(e.parentNode,n):e.nodeType===1&&Ll(e,n),oo(e)):Ll(ze,n.stateNode));break;case 4:s=ze,o=Ot,ze=n.stateNode.containerInfo,Ot=!0,yn(e,t,n),ze=s,Ot=o;break;case 0:case 11:case 14:case 15:if(!Ve&&(s=n.updateQueue,s!==null&&(s=s.lastEffect,s!==null))){o=s=s.next;do{var i=o,a=i.destroy;i=i.tag,a!==void 0&&(i&2||i&4)&&Yc(n,t,a),o=o.next}while(o!==s)}yn(e,t,n);break;case 1:if(!Ve&&(Wr(n,t),s=n.stateNode,typeof s.componentWillUnmount=="function"))try{s.props=n.memoizedProps,s.state=n.memoizedState,s.componentWillUnmount()}catch(l){Ee(n,t,l)}yn(e,t,n);break;case 21:yn(e,t,n);break;case 22:n.mode&1?(Ve=(s=Ve)||n.memoizedState!==null,yn(e,t,n),Ve=s):yn(e,t,n);break;default:yn(e,t,n)}}function Bf(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Xy),t.forEach(function(s){var o=aj.bind(null,e,s);n.has(s)||(n.add(s),s.then(o,o))})}}function _t(e,t){var n=t.deletions;if(n!==null)for(var s=0;so&&(o=a),s&=~i}if(s=o,s=Te()-s,s=(120>s?120:480>s?480:1080>s?1080:1920>s?1920:3e3>s?3e3:4320>s?4320:1960*ej(s/1960))-s,10e?16:e,Tn===null)var s=!1;else{if(e=Tn,Tn=null,ia=0,pe&6)throw Error(V(331));var o=pe;for(pe|=4,J=e.current;J!==null;){var i=J,a=i.child;if(J.flags&16){var l=i.deletions;if(l!==null){for(var d=0;dTe()-du?ur(e,0):cu|=n),at(e,t)}function Wh(e,t){t===0&&(e.mode&1?(t=Yo,Yo<<=1,!(Yo&130023424)&&(Yo=4194304)):t=1);var n=Xe();e=dn(e,t),e!==null&&(Eo(e,t,n),at(e,n))}function ij(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Wh(e,n)}function aj(e,t){var n=0;switch(e.tag){case 13:var s=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:s=e.stateNode;break;default:throw Error(V(314))}s!==null&&s.delete(t),Wh(e,n)}var Uh;Uh=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||ot.current)st=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return st=!1,Yy(e,t,n);st=!!(e.flags&131072)}else st=!1,Ce&&t.flags&1048576&&Km(t,Xi,t.index);switch(t.lanes=0,t.tag){case 2:var s=t.type;ji(e,t),e=t.pendingProps;var o=rs(t,He.current);es(t,n),o=ru(null,t,s,e,o,n);var i=su();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,it(s)?(i=!0,Gi(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Jd(t),o.updater=Aa,t.stateNode=o,o._reactInternals=t,$c(t,s,e,n),t=qc(null,t,s,!0,i,n)):(t.tag=0,Ce&&i&&Vd(t),Ge(null,t,o,n),t=t.child),t;case 16:s=t.elementType;e:{switch(ji(e,t),e=t.pendingProps,o=s._init,s=o(s._payload),t.type=s,o=t.tag=cj(s),e=Tt(s,e),o){case 0:t=Uc(null,t,s,e,n);break e;case 1:t=Rf(null,t,s,e,n);break e;case 11:t=Of(null,t,s,e,n);break e;case 14:t=Af(null,t,s,Tt(s.type,e),n);break e}throw Error(V(306,s,""))}return t;case 0:return s=t.type,o=t.pendingProps,o=t.elementType===s?o:Tt(s,o),Uc(e,t,s,o,n);case 1:return s=t.type,o=t.pendingProps,o=t.elementType===s?o:Tt(s,o),Rf(e,t,s,o,n);case 3:e:{if(kh(t),e===null)throw Error(V(387));s=t.pendingProps,i=t.memoizedState,o=i.element,Zm(e,t),ea(t,s,null,n);var a=t.memoizedState;if(s=a.element,i.isDehydrated)if(i={element:s,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=as(Error(V(423)),t),t=If(e,t,s,n,o);break e}else if(s!==o){o=as(Error(V(424)),t),t=If(e,t,s,n,o);break e}else for(ut=Dn(t.stateNode.containerInfo.firstChild),ht=t,Ce=!0,At=null,n=Xm(t,null,s,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(ss(),s===o){t=un(e,t,n);break e}Ge(e,t,s,n)}t=t.child}return t;case 5:return eh(t),e===null&&Bc(t),s=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,a=o.children,Rc(s,o)?a=null:i!==null&&Rc(s,i)&&(t.flags|=32),Sh(e,t),Ge(e,t,a,n),t.child;case 6:return e===null&&Bc(t),null;case 13:return Eh(e,t,n);case 4:return Zd(t,t.stateNode.containerInfo),s=t.pendingProps,e===null?t.child=os(t,null,s,n):Ge(e,t,s,n),t.child;case 11:return s=t.type,o=t.pendingProps,o=t.elementType===s?o:Tt(s,o),Of(e,t,s,o,n);case 7:return Ge(e,t,t.pendingProps,n),t.child;case 8:return Ge(e,t,t.pendingProps.children,n),t.child;case 12:return Ge(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(s=t.type._context,o=t.pendingProps,i=t.memoizedProps,a=o.value,xe(Ji,s._currentValue),s._currentValue=a,i!==null)if(Bt(i.value,a)){if(i.children===o.children&&!ot.current){t=un(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var l=i.dependencies;if(l!==null){a=i.child;for(var d=l.firstContext;d!==null;){if(d.context===s){if(i.tag===1){d=an(-1,n&-n),d.tag=2;var c=i.updateQueue;if(c!==null){c=c.shared;var u=c.pending;u===null?d.next=d:(d.next=u.next,u.next=d),c.pending=d}}i.lanes|=n,d=i.alternate,d!==null&&(d.lanes|=n),Mc(i.return,n,t),l.lanes|=n;break}d=d.next}}else if(i.tag===10)a=i.type===t.type?null:i.child;else if(i.tag===18){if(a=i.return,a===null)throw Error(V(341));a.lanes|=n,l=a.alternate,l!==null&&(l.lanes|=n),Mc(a,n,t),a=i.sibling}else a=i.child;if(a!==null)a.return=i;else for(a=i;a!==null;){if(a===t){a=null;break}if(i=a.sibling,i!==null){i.return=a.return,a=i;break}a=a.return}i=a}Ge(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,s=t.pendingProps.children,es(t,n),o=Et(o),s=s(o),t.flags|=1,Ge(e,t,s,n),t.child;case 14:return s=t.type,o=Tt(s,t.pendingProps),o=Tt(s.type,o),Af(e,t,s,o,n);case 15:return bh(e,t,t.type,t.pendingProps,n);case 17:return s=t.type,o=t.pendingProps,o=t.elementType===s?o:Tt(s,o),ji(e,t),t.tag=1,it(s)?(e=!0,Gi(t)):e=!1,es(t,n),jh(t,s,o),$c(t,s,o,n),qc(null,t,s,!0,e,n);case 19:return Ph(e,t,n);case 22:return wh(e,t,n)}throw Error(V(156,t.tag))};function qh(e,t){return gm(e,t)}function lj(e,t,n,s){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=s,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function St(e,t,n,s){return new lj(e,t,n,s)}function mu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function cj(e){if(typeof e=="function")return mu(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Rd)return 11;if(e===Id)return 14}return 2}function zn(e,t){var n=e.alternate;return n===null?(n=St(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function bi(e,t,n,s,o,i){var a=2;if(s=e,typeof e=="function")mu(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case Rr:return fr(n.children,o,i,t);case Ad:a=8,o|=8;break;case uc:return e=St(12,n,t,o|2),e.elementType=uc,e.lanes=i,e;case fc:return e=St(13,n,t,o),e.elementType=fc,e.lanes=i,e;case pc:return e=St(19,n,t,o),e.elementType=pc,e.lanes=i,e;case em:return Fa(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Jp:a=10;break e;case Zp:a=9;break e;case Rd:a=11;break e;case Id:a=14;break e;case Nn:a=16,s=null;break e}throw Error(V(130,e==null?e:typeof e,""))}return t=St(a,n,t,o),t.elementType=e,t.type=s,t.lanes=i,t}function fr(e,t,n,s){return e=St(7,e,s,t),e.lanes=n,e}function Fa(e,t,n,s){return e=St(22,e,s,t),e.elementType=em,e.lanes=n,e.stateNode={isHidden:!1},e}function Vl(e,t,n){return e=St(6,e,null,t),e.lanes=n,e}function Hl(e,t,n){return t=St(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function dj(e,t,n,s,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=kl(0),this.expirationTimes=kl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=kl(0),this.identifierPrefix=s,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function hu(e,t,n,s,o,i,a,l,d){return e=new dj(e,t,n,l,d),t===1?(t=1,i===!0&&(t|=8)):t=0,i=St(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:s,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Jd(i),e}function uj(e,t,n){var s=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Yh)}catch(e){console.error(e)}}Yh(),Yp.exports=jt;var Gh=Yp.exports;const qr=So(Gh);var Qh,Hf=Gh;Qh=Hf.createRoot,Hf.hydrateRoot;var Xh={exports:{}},Jh={};/** + * @license React + * use-sync-external-store-with-selector.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 Oo=S;function vj(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var gj=typeof Object.is=="function"?Object.is:vj,xj=Oo.useSyncExternalStore,yj=Oo.useRef,jj=Oo.useEffect,Nj=Oo.useMemo,Cj=Oo.useDebugValue;Jh.useSyncExternalStoreWithSelector=function(e,t,n,s,o){var i=yj(null);if(i.current===null){var a={hasValue:!1,value:null};i.current=a}else a=i.current;i=Nj(function(){function d(N){if(!c){if(c=!0,u=N,N=s(N),o!==void 0&&a.hasValue){var x=a.value;if(o(x,N))return p=x}return p=N}if(x=p,gj(u,N))return x;var C=s(N);return o!==void 0&&o(x,C)?x:(u=N,p=C)}var c=!1,u,p,g=n===void 0?null:n;return[function(){return d(t())},g===null?void 0:function(){return d(g())}]},[t,n,s,o]);var l=xj(e,i[0],i[1]);return jj(function(){a.hasValue=!0,a.value=l},[l]),Cj(l),l};Xh.exports=Jh;var bj=Xh.exports,ft="default"in cc?I:cc,Kf=Symbol.for("react-redux-context"),Yf=typeof globalThis<"u"?globalThis:{};function wj(){if(!ft.createContext)return{};const e=Yf[Kf]??(Yf[Kf]=new Map);let t=e.get(ft.createContext);return t||(t=ft.createContext(null),e.set(ft.createContext,t)),t}var qn=wj(),Sj=()=>{throw new Error("uSES not initialized!")};function yu(e=qn){return function(){return ft.useContext(e)}}var Zh=yu(),ev=Sj,kj=e=>{ev=e},Ej=(e,t)=>e===t;function Pj(e=qn){const t=e===qn?Zh:yu(e),n=(s,o={})=>{const{equalityFn:i=Ej,devModeChecks:a={}}=typeof o=="function"?{equalityFn:o}:o,{store:l,subscription:d,getServerState:c,stabilityCheck:u,identityFunctionCheck:p}=t();ft.useRef(!0);const g=ft.useCallback({[s.name](x){return s(x)}}[s.name],[s,u,a.stabilityCheck]),N=ev(d.addNestedSub,l.getState,c||l.getState,g,i);return ft.useDebugValue(N),N};return Object.assign(n,{withTypes:()=>n}),n}var _e=Pj();function _j(e){e()}function Tj(){let e=null,t=null;return{clear(){e=null,t=null},notify(){_j(()=>{let n=e;for(;n;)n.callback(),n=n.next})},get(){const n=[];let s=e;for(;s;)n.push(s),s=s.next;return n},subscribe(n){let s=!0;const o=t={callback:n,next:null,prev:t};return o.prev?o.prev.next=o:e=o,function(){!s||e===null||(s=!1,o.next?o.next.prev=o.prev:t=o.prev,o.prev?o.prev.next=o.next:e=o.next)}}}}var Gf={notify(){},get:()=>[]};function Oj(e,t){let n,s=Gf,o=0,i=!1;function a(C){u();const b=s.subscribe(C);let m=!1;return()=>{m||(m=!0,b(),p())}}function l(){s.notify()}function d(){x.onStateChange&&x.onStateChange()}function c(){return i}function u(){o++,n||(n=e.subscribe(d),s=Tj())}function p(){o--,n&&o===0&&(n(),n=void 0,s.clear(),s=Gf)}function g(){i||(i=!0,u())}function N(){i&&(i=!1,p())}const x={addNestedSub:a,notifyNestedSubs:l,handleChangeWrapper:d,isSubscribed:c,trySubscribe:g,tryUnsubscribe:N,getListeners:()=>s};return x}var Aj=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Rj=typeof navigator<"u"&&navigator.product==="ReactNative",Ij=Aj||Rj?ft.useLayoutEffect:ft.useEffect;function Fj({store:e,context:t,children:n,serverState:s,stabilityCheck:o="once",identityFunctionCheck:i="once"}){const a=ft.useMemo(()=>{const c=Oj(e);return{store:e,subscription:c,getServerState:s?()=>s:void 0,stabilityCheck:o,identityFunctionCheck:i}},[e,s,o,i]),l=ft.useMemo(()=>e.getState(),[e]);Ij(()=>{const{subscription:c}=a;return c.onStateChange=c.notifyNestedSubs,c.trySubscribe(),l!==e.getState()&&c.notifyNestedSubs(),()=>{c.tryUnsubscribe(),c.onStateChange=void 0}},[a,l]);const d=t||qn;return ft.createElement(d.Provider,{value:a},n)}var Dj=Fj;function tv(e=qn){const t=e===qn?Zh:yu(e),n=()=>{const{store:s}=t();return s};return Object.assign(n,{withTypes:()=>n}),n}var Lj=tv();function Bj(e=qn){const t=e===qn?Lj:tv(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var Ke=Bj();kj(bj.useSyncExternalStoreWithSelector);function Me(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var Mj=typeof Symbol=="function"&&Symbol.observable||"@@observable",Qf=Mj,Kl=()=>Math.random().toString(36).substring(7).split("").join("."),zj={INIT:`@@redux/INIT${Kl()}`,REPLACE:`@@redux/REPLACE${Kl()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Kl()}`},ca=zj;function ju(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function nv(e,t,n){if(typeof e!="function")throw new Error(Me(2));if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(Me(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(Me(1));return n(nv)(e,t)}let s=e,o=t,i=new Map,a=i,l=0,d=!1;function c(){a===i&&(a=new Map,i.forEach((b,m)=>{a.set(m,b)}))}function u(){if(d)throw new Error(Me(3));return o}function p(b){if(typeof b!="function")throw new Error(Me(4));if(d)throw new Error(Me(5));let m=!0;c();const v=l++;return a.set(v,b),function(){if(m){if(d)throw new Error(Me(6));m=!1,c(),a.delete(v),i=null}}}function g(b){if(!ju(b))throw new Error(Me(7));if(typeof b.type>"u")throw new Error(Me(8));if(typeof b.type!="string")throw new Error(Me(17));if(d)throw new Error(Me(9));try{d=!0,o=s(o,b)}finally{d=!1}return(i=a).forEach(v=>{v()}),b}function N(b){if(typeof b!="function")throw new Error(Me(10));s=b,g({type:ca.REPLACE})}function x(){const b=p;return{subscribe(m){if(typeof m!="object"||m===null)throw new Error(Me(11));function v(){const y=m;y.next&&y.next(u())}return v(),{unsubscribe:b(v)}},[Qf](){return this}}}return g({type:ca.INIT}),{dispatch:g,subscribe:p,getState:u,replaceReducer:N,[Qf]:x}}function $j(e){Object.keys(e).forEach(t=>{const n=e[t];if(typeof n(void 0,{type:ca.INIT})>"u")throw new Error(Me(12));if(typeof n(void 0,{type:ca.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Me(13))})}function Wj(e){const t=Object.keys(e),n={};for(let i=0;i"u")throw l&&l.type,new Error(Me(14));c[p]=x,d=d||x!==N}return d=d||s.length!==Object.keys(a).length,d?c:a}}function da(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...s)=>t(n(...s)))}function Uj(...e){return t=>(n,s)=>{const o=t(n,s);let i=()=>{throw new Error(Me(15))};const a={getState:o.getState,dispatch:(d,...c)=>i(d,...c)},l=e.map(d=>d(a));return i=da(...l)(o.dispatch),{...o,dispatch:i}}}function qj(e){return ju(e)&&"type"in e&&typeof e.type=="string"}var rv=Symbol.for("immer-nothing"),Xf=Symbol.for("immer-draftable"),xt=Symbol.for("immer-state");function Rt(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var cs=Object.getPrototypeOf;function Cr(e){return!!e&&!!e[xt]}function fn(e){var t;return e?sv(e)||Array.isArray(e)||!!e[Xf]||!!((t=e.constructor)!=null&&t[Xf])||$a(e)||Wa(e):!1}var Vj=Object.prototype.constructor.toString();function sv(e){if(!e||typeof e!="object")return!1;const t=cs(e);if(t===null)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object?!0:typeof n=="function"&&Function.toString.call(n)===Vj}function ua(e,t){za(e)===0?Reflect.ownKeys(e).forEach(n=>{t(n,e[n],e)}):e.forEach((n,s)=>t(s,n,e))}function za(e){const t=e[xt];return t?t.type_:Array.isArray(e)?1:$a(e)?2:Wa(e)?3:0}function nd(e,t){return za(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function ov(e,t,n){const s=za(e);s===2?e.set(t,n):s===3?e.add(n):e[t]=n}function Hj(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function $a(e){return e instanceof Map}function Wa(e){return e instanceof Set}function rr(e){return e.copy_||e.base_}function rd(e,t){if($a(e))return new Map(e);if(Wa(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const n=sv(e);if(t===!0||t==="class_only"&&!n){const s=Object.getOwnPropertyDescriptors(e);delete s[xt];let o=Reflect.ownKeys(s);for(let i=0;i1&&(e.set=e.add=e.clear=e.delete=Kj),Object.freeze(e),t&&Object.entries(e).forEach(([n,s])=>Nu(s,!0))),e}function Kj(){Rt(2)}function Ua(e){return Object.isFrozen(e)}var Yj={};function br(e){const t=Yj[e];return t||Rt(0,e),t}var xo;function iv(){return xo}function Gj(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function Jf(e,t){t&&(br("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function sd(e){od(e),e.drafts_.forEach(Qj),e.drafts_=null}function od(e){e===xo&&(xo=e.parent_)}function Zf(e){return xo=Gj(xo,e)}function Qj(e){const t=e[xt];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function ep(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[xt].modified_&&(sd(t),Rt(4)),fn(e)&&(e=fa(t,e),t.parent_||pa(t,e)),t.patches_&&br("Patches").generateReplacementPatches_(n[xt].base_,e,t.patches_,t.inversePatches_)):e=fa(t,n,[]),sd(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==rv?e:void 0}function fa(e,t,n){if(Ua(t))return t;const s=t[xt];if(!s)return ua(t,(o,i)=>tp(e,s,t,o,i,n)),t;if(s.scope_!==e)return t;if(!s.modified_)return pa(e,s.base_,!0),s.base_;if(!s.finalized_){s.finalized_=!0,s.scope_.unfinalizedDrafts_--;const o=s.copy_;let i=o,a=!1;s.type_===3&&(i=new Set(o),o.clear(),a=!0),ua(i,(l,d)=>tp(e,s,o,l,d,n,a)),pa(e,o,!1),n&&e.patches_&&br("Patches").generatePatches_(s,n,e.patches_,e.inversePatches_)}return s.copy_}function tp(e,t,n,s,o,i,a){if(Cr(o)){const l=i&&t&&t.type_!==3&&!nd(t.assigned_,s)?i.concat(s):void 0,d=fa(e,o,l);if(ov(n,s,d),Cr(d))e.canAutoFreeze_=!1;else return}else a&&n.add(o);if(fn(o)&&!Ua(o)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;fa(e,o),(!t||!t.scope_.parent_)&&typeof s!="symbol"&&Object.prototype.propertyIsEnumerable.call(n,s)&&pa(e,o)}}function pa(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Nu(t,n)}function Xj(e,t){const n=Array.isArray(e),s={type_:n?1:0,scope_:t?t.scope_:iv(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let o=s,i=Cu;n&&(o=[s],i=yo);const{revoke:a,proxy:l}=Proxy.revocable(o,i);return s.draft_=l,s.revoke_=a,l}var Cu={get(e,t){if(t===xt)return e;const n=rr(e);if(!nd(n,t))return Jj(e,n,t);const s=n[t];return e.finalized_||!fn(s)?s:s===Yl(e.base_,t)?(Gl(e),e.copy_[t]=ad(s,e)):s},has(e,t){return t in rr(e)},ownKeys(e){return Reflect.ownKeys(rr(e))},set(e,t,n){const s=av(rr(e),t);if(s!=null&&s.set)return s.set.call(e.draft_,n),!0;if(!e.modified_){const o=Yl(rr(e),t),i=o==null?void 0:o[xt];if(i&&i.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(Hj(n,o)&&(n!==void 0||nd(e.base_,t)))return!0;Gl(e),id(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty(e,t){return Yl(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,Gl(e),id(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=rr(e),s=Reflect.getOwnPropertyDescriptor(n,t);return s&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:s.enumerable,value:n[t]}},defineProperty(){Rt(11)},getPrototypeOf(e){return cs(e.base_)},setPrototypeOf(){Rt(12)}},yo={};ua(Cu,(e,t)=>{yo[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});yo.deleteProperty=function(e,t){return yo.set.call(this,e,t,void 0)};yo.set=function(e,t,n){return Cu.set.call(this,e[0],t,n,e[0])};function Yl(e,t){const n=e[xt];return(n?rr(n):e)[t]}function Jj(e,t,n){var o;const s=av(t,n);return s?"value"in s?s.value:(o=s.get)==null?void 0:o.call(e.draft_):void 0}function av(e,t){if(!(t in e))return;let n=cs(e);for(;n;){const s=Object.getOwnPropertyDescriptor(n,t);if(s)return s;n=cs(n)}}function id(e){e.modified_||(e.modified_=!0,e.parent_&&id(e.parent_))}function Gl(e){e.copy_||(e.copy_=rd(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var Zj=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,n,s)=>{if(typeof t=="function"&&typeof n!="function"){const i=n;n=t;const a=this;return function(d=i,...c){return a.produce(d,u=>n.call(this,u,...c))}}typeof n!="function"&&Rt(6),s!==void 0&&typeof s!="function"&&Rt(7);let o;if(fn(t)){const i=Zf(this),a=ad(t,void 0);let l=!0;try{o=n(a),l=!1}finally{l?sd(i):od(i)}return Jf(i,s),ep(o,i)}else if(!t||typeof t!="object"){if(o=n(t),o===void 0&&(o=t),o===rv&&(o=void 0),this.autoFreeze_&&Nu(o,!0),s){const i=[],a=[];br("Patches").generateReplacementPatches_(t,o,i,a),s(i,a)}return o}else Rt(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(a,...l)=>this.produceWithPatches(a,d=>t(d,...l));let s,o;return[this.produce(t,n,(a,l)=>{s=a,o=l}),s,o]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){fn(e)||Rt(8),Cr(e)&&(e=e1(e));const t=Zf(this),n=ad(e,void 0);return n[xt].isManual_=!0,od(t),n}finishDraft(e,t){const n=e&&e[xt];(!n||!n.isManual_)&&Rt(9);const{scope_:s}=n;return Jf(s,t),ep(void 0,s)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const o=t[n];if(o.path.length===0&&o.op==="replace"){e=o.value;break}}n>-1&&(t=t.slice(n+1));const s=br("Patches").applyPatches_;return Cr(e)?s(e,t):this.produce(e,o=>s(o,t))}};function ad(e,t){const n=$a(e)?br("MapSet").proxyMap_(e,t):Wa(e)?br("MapSet").proxySet_(e,t):Xj(e,t);return(t?t.scope_:iv()).drafts_.push(n),n}function e1(e){return Cr(e)||Rt(10,e),lv(e)}function lv(e){if(!fn(e)||Ua(e))return e;const t=e[xt];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=rd(e,t.scope_.immer_.useStrictShallowCopy_)}else n=rd(e,!0);return ua(n,(s,o)=>{ov(n,s,lv(o))}),t&&(t.finalized_=!1),n}var yt=new Zj,cv=yt.produce;yt.produceWithPatches.bind(yt);yt.setAutoFreeze.bind(yt);yt.setUseStrictShallowCopy.bind(yt);yt.applyPatches.bind(yt);yt.createDraft.bind(yt);yt.finishDraft.bind(yt);function dv(e){return({dispatch:n,getState:s})=>o=>i=>typeof i=="function"?i(n,s,e):o(i)}var t1=dv(),n1=dv,r1=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?da:da.apply(null,arguments)},s1=e=>e&&typeof e.match=="function";function Qs(e,t){function n(...s){if(t){let o=t(...s);if(!o)throw new Error(Dt(0));return{type:e,payload:o.payload,..."meta"in o&&{meta:o.meta},..."error"in o&&{error:o.error}}}return{type:e,payload:s[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=s=>qj(s)&&s.type===e,n}var uv=class Ls extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,Ls.prototype)}static get[Symbol.species](){return Ls}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new Ls(...t[0].concat(this)):new Ls(...t.concat(this))}};function np(e){return fn(e)?cv(e,()=>{}):e}function rp(e,t,n){if(e.has(t)){let o=e.get(t);return n.update&&(o=n.update(o,t,e),e.set(t,o)),o}if(!n.insert)throw new Error(Dt(10));const s=n.insert(t,e);return e.set(t,s),s}function o1(e){return typeof e=="boolean"}var i1=()=>function(t){const{thunk:n=!0,immutableCheck:s=!0,serializableCheck:o=!0,actionCreatorCheck:i=!0}=t??{};let a=new uv;return n&&(o1(n)?a.push(t1):a.push(n1(n.extraArgument))),a},a1="RTK_autoBatch",fv=e=>t=>{setTimeout(t,e)},l1=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:fv(10),c1=(e={type:"raf"})=>t=>(...n)=>{const s=t(...n);let o=!0,i=!1,a=!1;const l=new Set,d=e.type==="tick"?queueMicrotask:e.type==="raf"?l1:e.type==="callback"?e.queueNotification:fv(e.timeout),c=()=>{a=!1,i&&(i=!1,l.forEach(u=>u()))};return Object.assign({},s,{subscribe(u){const p=()=>o&&u(),g=s.subscribe(p);return l.add(u),()=>{g(),l.delete(u)}},dispatch(u){var p;try{return o=!((p=u==null?void 0:u.meta)!=null&&p[a1]),i=!o,i&&(a||(a=!0,d(c))),s.dispatch(u)}finally{o=!0}}})},d1=e=>function(n){const{autoBatch:s=!0}=n??{};let o=new uv(e);return s&&o.push(c1(typeof s=="object"?s:void 0)),o};function u1(e){const t=i1(),{reducer:n=void 0,middleware:s,devTools:o=!0,preloadedState:i=void 0,enhancers:a=void 0}=e||{};let l;if(typeof n=="function")l=n;else if(ju(n))l=Wj(n);else throw new Error(Dt(1));let d;typeof s=="function"?d=s(t):d=t();let c=da;o&&(c=r1({trace:!1,...typeof o=="object"&&o}));const u=Uj(...d),p=d1(u);let g=typeof a=="function"?a(p):p();const N=c(...g);return nv(l,i,N)}function pv(e){const t={},n=[];let s;const o={addCase(i,a){const l=typeof i=="string"?i:i.type;if(!l)throw new Error(Dt(28));if(l in t)throw new Error(Dt(29));return t[l]=a,o},addMatcher(i,a){return n.push({matcher:i,reducer:a}),o},addDefaultCase(i){return s=i,o}};return e(o),[t,n,s]}function f1(e){return typeof e=="function"}function p1(e,t){let[n,s,o]=pv(t),i;if(f1(e))i=()=>np(e());else{const l=np(e);i=()=>l}function a(l=i(),d){let c=[n[d.type],...s.filter(({matcher:u})=>u(d)).map(({reducer:u})=>u)];return c.filter(u=>!!u).length===0&&(c=[o]),c.reduce((u,p)=>{if(p)if(Cr(u)){const N=p(u,d);return N===void 0?u:N}else{if(fn(u))return cv(u,g=>p(g,d));{const g=p(u,d);if(g===void 0){if(u===null)return u;throw new Error(Dt(9))}return g}}return u},l)}return a.getInitialState=i,a}var m1=(e,t)=>s1(e)?e.match(t):e(t);function h1(...e){return t=>e.some(n=>m1(n,t))}var v1="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",g1=(e=21)=>{let t="",n=e;for(;n--;)t+=v1[Math.random()*64|0];return t},x1=["name","message","stack","code"],Ql=class{constructor(e,t){jl(this,"_type");this.payload=e,this.meta=t}},sp=class{constructor(e,t){jl(this,"_type");this.payload=e,this.meta=t}},y1=e=>{if(typeof e=="object"&&e!==null){const t={};for(const n of x1)typeof e[n]=="string"&&(t[n]=e[n]);return t}return{message:String(e)}},et=(()=>{function e(t,n,s){const o=Qs(t+"/fulfilled",(d,c,u,p)=>({payload:d,meta:{...p||{},arg:u,requestId:c,requestStatus:"fulfilled"}})),i=Qs(t+"/pending",(d,c,u)=>({payload:void 0,meta:{...u||{},arg:c,requestId:d,requestStatus:"pending"}})),a=Qs(t+"/rejected",(d,c,u,p,g)=>({payload:p,error:(s&&s.serializeError||y1)(d||"Rejected"),meta:{...g||{},arg:u,requestId:c,rejectedWithValue:!!p,requestStatus:"rejected",aborted:(d==null?void 0:d.name)==="AbortError",condition:(d==null?void 0:d.name)==="ConditionError"}}));function l(d){return(c,u,p)=>{const g=s!=null&&s.idGenerator?s.idGenerator(d):g1(),N=new AbortController;let x,C;function b(v){C=v,N.abort()}const m=async function(){var y,E;let v;try{let T=(y=s==null?void 0:s.condition)==null?void 0:y.call(s,d,{getState:u,extra:p});if(N1(T)&&(T=await T),T===!1||N.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const O=new Promise((_,L)=>{x=()=>{L({name:"AbortError",message:C||"Aborted"})},N.signal.addEventListener("abort",x)});c(i(g,d,(E=s==null?void 0:s.getPendingMeta)==null?void 0:E.call(s,{requestId:g,arg:d},{getState:u,extra:p}))),v=await Promise.race([O,Promise.resolve(n(d,{dispatch:c,getState:u,extra:p,requestId:g,signal:N.signal,abort:b,rejectWithValue:(_,L)=>new Ql(_,L),fulfillWithValue:(_,L)=>new sp(_,L)})).then(_=>{if(_ instanceof Ql)throw _;return _ instanceof sp?o(_.payload,g,d,_.meta):o(_,g,d)})])}catch(T){v=T instanceof Ql?a(null,g,d,T.payload,T.meta):a(T,g,d)}finally{x&&N.signal.removeEventListener("abort",x)}return s&&!s.dispatchConditionRejection&&a.match(v)&&v.meta.condition||c(v),v}();return Object.assign(m,{abort:b,requestId:g,arg:d,unwrap(){return m.then(j1)}})}}return Object.assign(l,{pending:i,rejected:a,fulfilled:o,settled:h1(a,o),typePrefix:t})}return e.withTypes=()=>e,e})();function j1(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function N1(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var C1=Symbol.for("rtk-slice-createasyncthunk");function b1(e,t){return`${e}/${t}`}function w1({creators:e}={}){var n;const t=(n=e==null?void 0:e.asyncThunk)==null?void 0:n[C1];return function(o){const{name:i,reducerPath:a=i}=o;if(!i)throw new Error(Dt(11));typeof process<"u";const l=(typeof o.reducers=="function"?o.reducers(k1()):o.reducers)||{},d=Object.keys(l),c={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},u={addCase(h,y){const E=typeof h=="string"?h:h.type;if(!E)throw new Error(Dt(12));if(E in c.sliceCaseReducersByType)throw new Error(Dt(13));return c.sliceCaseReducersByType[E]=y,u},addMatcher(h,y){return c.sliceMatchers.push({matcher:h,reducer:y}),u},exposeAction(h,y){return c.actionCreators[h]=y,u},exposeCaseReducer(h,y){return c.sliceCaseReducersByName[h]=y,u}};d.forEach(h=>{const y=l[h],E={reducerName:h,type:b1(i,h),createNotation:typeof o.reducers=="function"};P1(y)?T1(E,y,u,t):E1(E,y,u)});function p(){const[h={},y=[],E=void 0]=typeof o.extraReducers=="function"?pv(o.extraReducers):[o.extraReducers],T={...h,...c.sliceCaseReducersByType};return p1(o.initialState,O=>{for(let _ in T)O.addCase(_,T[_]);for(let _ of c.sliceMatchers)O.addMatcher(_.matcher,_.reducer);for(let _ of y)O.addMatcher(_.matcher,_.reducer);E&&O.addDefaultCase(E)})}const g=h=>h,N=new Map;let x;function C(h,y){return x||(x=p()),x(h,y)}function b(){return x||(x=p()),x.getInitialState()}function m(h,y=!1){function E(O){let _=O[h];return typeof _>"u"&&y&&(_=b()),_}function T(O=g){const _=rp(N,y,{insert:()=>new WeakMap});return rp(_,O,{insert:()=>{const L={};for(const[z,H]of Object.entries(o.selectors??{}))L[z]=S1(H,O,b,y);return L}})}return{reducerPath:h,getSelectors:T,get selectors(){return T(E)},selectSlice:E}}const v={name:i,reducer:C,actions:c.actionCreators,caseReducers:c.sliceCaseReducersByName,getInitialState:b,...m(a),injectInto(h,{reducerPath:y,...E}={}){const T=y??a;return h.inject({reducerPath:T,reducer:C},E),{...v,...m(T,!0)}}};return v}}function S1(e,t,n,s){function o(i,...a){let l=t(i);return typeof l>"u"&&s&&(l=n()),e(l,...a)}return o.unwrapped=e,o}var Ao=w1();function k1(){function e(t,n){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...n}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...n){return t(...n)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,n){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:n}},asyncThunk:e}}function E1({type:e,reducerName:t,createNotation:n},s,o){let i,a;if("reducer"in s){if(n&&!_1(s))throw new Error(Dt(17));i=s.reducer,a=s.prepare}else i=s;o.addCase(e,i).exposeCaseReducer(t,i).exposeAction(t,a?Qs(e,a):Qs(e))}function P1(e){return e._reducerDefinitionType==="asyncThunk"}function _1(e){return e._reducerDefinitionType==="reducerWithPrepare"}function T1({type:e,reducerName:t},n,s,o){if(!o)throw new Error(Dt(18));const{payloadCreator:i,fulfilled:a,pending:l,rejected:d,settled:c,options:u}=n,p=o(e,i,u);s.exposeAction(t,p),a&&s.addCase(p.fulfilled,a),l&&s.addCase(p.pending,l),d&&s.addCase(p.rejected,d),c&&s.addMatcher(p.settled,c),s.exposeCaseReducer(t,{fulfilled:a||ii,pending:l||ii,rejected:d||ii,settled:c||ii})}function ii(){}function Dt(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}function mv(e,t){return function(){return e.apply(t,arguments)}}const{toString:O1}=Object.prototype,{getPrototypeOf:bu}=Object,qa=(e=>t=>{const n=O1.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Mt=e=>(e=e.toLowerCase(),t=>qa(t)===e),Va=e=>t=>typeof t===e,{isArray:ms}=Array,jo=Va("undefined");function A1(e){return e!==null&&!jo(e)&&e.constructor!==null&&!jo(e.constructor)&&vt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const hv=Mt("ArrayBuffer");function R1(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&hv(e.buffer),t}const I1=Va("string"),vt=Va("function"),vv=Va("number"),Ha=e=>e!==null&&typeof e=="object",F1=e=>e===!0||e===!1,wi=e=>{if(qa(e)!=="object")return!1;const t=bu(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},D1=Mt("Date"),L1=Mt("File"),B1=Mt("Blob"),M1=Mt("FileList"),z1=e=>Ha(e)&&vt(e.pipe),$1=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||vt(e.append)&&((t=qa(e))==="formdata"||t==="object"&&vt(e.toString)&&e.toString()==="[object FormData]"))},W1=Mt("URLSearchParams"),[U1,q1,V1,H1]=["ReadableStream","Request","Response","Headers"].map(Mt),K1=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ro(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let s,o;if(typeof e!="object"&&(e=[e]),ms(e))for(s=0,o=e.length;s0;)if(o=n[s],t===o.toLowerCase())return o;return null}const dr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,xv=e=>!jo(e)&&e!==dr;function ld(){const{caseless:e}=xv(this)&&this||{},t={},n=(s,o)=>{const i=e&&gv(t,o)||o;wi(t[i])&&wi(s)?t[i]=ld(t[i],s):wi(s)?t[i]=ld({},s):ms(s)?t[i]=s.slice():t[i]=s};for(let s=0,o=arguments.length;s(Ro(t,(o,i)=>{n&&vt(o)?e[i]=mv(o,n):e[i]=o},{allOwnKeys:s}),e),G1=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Q1=(e,t,n,s)=>{e.prototype=Object.create(t.prototype,s),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},X1=(e,t,n,s)=>{let o,i,a;const l={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],(!s||s(a,e,t))&&!l[a]&&(t[a]=e[a],l[a]=!0);e=n!==!1&&bu(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},J1=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const s=e.indexOf(t,n);return s!==-1&&s===n},Z1=e=>{if(!e)return null;if(ms(e))return e;let t=e.length;if(!vv(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},e0=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&bu(Uint8Array)),t0=(e,t)=>{const s=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=s.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},n0=(e,t)=>{let n;const s=[];for(;(n=e.exec(t))!==null;)s.push(n);return s},r0=Mt("HTMLFormElement"),s0=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,s,o){return s.toUpperCase()+o}),op=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),o0=Mt("RegExp"),yv=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),s={};Ro(n,(o,i)=>{let a;(a=t(o,i,e))!==!1&&(s[i]=a||o)}),Object.defineProperties(e,s)},i0=e=>{yv(e,(t,n)=>{if(vt(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const s=e[n];if(vt(s)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},a0=(e,t)=>{const n={},s=o=>{o.forEach(i=>{n[i]=!0})};return ms(e)?s(e):s(String(e).split(t)),n},l0=()=>{},c0=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,Xl="abcdefghijklmnopqrstuvwxyz",ip="0123456789",jv={DIGIT:ip,ALPHA:Xl,ALPHA_DIGIT:Xl+Xl.toUpperCase()+ip},d0=(e=16,t=jv.ALPHA_DIGIT)=>{let n="";const{length:s}=t;for(;e--;)n+=t[Math.random()*s|0];return n};function u0(e){return!!(e&&vt(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const f0=e=>{const t=new Array(10),n=(s,o)=>{if(Ha(s)){if(t.indexOf(s)>=0)return;if(!("toJSON"in s)){t[o]=s;const i=ms(s)?[]:{};return Ro(s,(a,l)=>{const d=n(a,o+1);!jo(d)&&(i[l]=d)}),t[o]=void 0,i}}return s};return n(e,0)},p0=Mt("AsyncFunction"),m0=e=>e&&(Ha(e)||vt(e))&&vt(e.then)&&vt(e.catch),Nv=((e,t)=>e?setImmediate:t?((n,s)=>(dr.addEventListener("message",({source:o,data:i})=>{o===dr&&i===n&&s.length&&s.shift()()},!1),o=>{s.push(o),dr.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",vt(dr.postMessage)),h0=typeof queueMicrotask<"u"?queueMicrotask.bind(dr):typeof process<"u"&&process.nextTick||Nv,$={isArray:ms,isArrayBuffer:hv,isBuffer:A1,isFormData:$1,isArrayBufferView:R1,isString:I1,isNumber:vv,isBoolean:F1,isObject:Ha,isPlainObject:wi,isReadableStream:U1,isRequest:q1,isResponse:V1,isHeaders:H1,isUndefined:jo,isDate:D1,isFile:L1,isBlob:B1,isRegExp:o0,isFunction:vt,isStream:z1,isURLSearchParams:W1,isTypedArray:e0,isFileList:M1,forEach:Ro,merge:ld,extend:Y1,trim:K1,stripBOM:G1,inherits:Q1,toFlatObject:X1,kindOf:qa,kindOfTest:Mt,endsWith:J1,toArray:Z1,forEachEntry:t0,matchAll:n0,isHTMLForm:r0,hasOwnProperty:op,hasOwnProp:op,reduceDescriptors:yv,freezeMethods:i0,toObjectSet:a0,toCamelCase:s0,noop:l0,toFiniteNumber:c0,findKey:gv,global:dr,isContextDefined:xv,ALPHABET:jv,generateString:d0,isSpecCompliantForm:u0,toJSONObject:f0,isAsyncFn:p0,isThenable:m0,setImmediate:Nv,asap:h0};function ie(e,t,n,s,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),s&&(this.request=s),o&&(this.response=o,this.status=o.status?o.status:null)}$.inherits(ie,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:$.toJSONObject(this.config),code:this.code,status:this.status}}});const Cv=ie.prototype,bv={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{bv[e]={value:e}});Object.defineProperties(ie,bv);Object.defineProperty(Cv,"isAxiosError",{value:!0});ie.from=(e,t,n,s,o,i)=>{const a=Object.create(Cv);return $.toFlatObject(e,a,function(d){return d!==Error.prototype},l=>l!=="isAxiosError"),ie.call(a,e.message,t,n,s,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};const v0=null;function cd(e){return $.isPlainObject(e)||$.isArray(e)}function wv(e){return $.endsWith(e,"[]")?e.slice(0,-2):e}function ap(e,t,n){return e?e.concat(t).map(function(o,i){return o=wv(o),!n&&i?"["+o+"]":o}).join(n?".":""):t}function g0(e){return $.isArray(e)&&!e.some(cd)}const x0=$.toFlatObject($,{},null,function(t){return/^is[A-Z]/.test(t)});function Ka(e,t,n){if(!$.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=$.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(C,b){return!$.isUndefined(b[C])});const s=n.metaTokens,o=n.visitor||u,i=n.dots,a=n.indexes,d=(n.Blob||typeof Blob<"u"&&Blob)&&$.isSpecCompliantForm(t);if(!$.isFunction(o))throw new TypeError("visitor must be a function");function c(x){if(x===null)return"";if($.isDate(x))return x.toISOString();if(!d&&$.isBlob(x))throw new ie("Blob is not supported. Use a Buffer instead.");return $.isArrayBuffer(x)||$.isTypedArray(x)?d&&typeof Blob=="function"?new Blob([x]):Buffer.from(x):x}function u(x,C,b){let m=x;if(x&&!b&&typeof x=="object"){if($.endsWith(C,"{}"))C=s?C:C.slice(0,-2),x=JSON.stringify(x);else if($.isArray(x)&&g0(x)||($.isFileList(x)||$.endsWith(C,"[]"))&&(m=$.toArray(x)))return C=wv(C),m.forEach(function(h,y){!($.isUndefined(h)||h===null)&&t.append(a===!0?ap([C],y,i):a===null?C:C+"[]",c(h))}),!1}return cd(x)?!0:(t.append(ap(b,C,i),c(x)),!1)}const p=[],g=Object.assign(x0,{defaultVisitor:u,convertValue:c,isVisitable:cd});function N(x,C){if(!$.isUndefined(x)){if(p.indexOf(x)!==-1)throw Error("Circular reference detected in "+C.join("."));p.push(x),$.forEach(x,function(m,v){(!($.isUndefined(m)||m===null)&&o.call(t,m,$.isString(v)?v.trim():v,C,g))===!0&&N(m,C?C.concat(v):[v])}),p.pop()}}if(!$.isObject(e))throw new TypeError("data must be an object");return N(e),t}function lp(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(s){return t[s]})}function wu(e,t){this._pairs=[],e&&Ka(e,this,t)}const Sv=wu.prototype;Sv.append=function(t,n){this._pairs.push([t,n])};Sv.toString=function(t){const n=t?function(s){return t.call(this,s,lp)}:lp;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function y0(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function kv(e,t,n){if(!t)return e;const s=n&&n.encode||y0,o=n&&n.serialize;let i;if(o?i=o(t,n):i=$.isURLSearchParams(t)?t.toString():new wu(t,n).toString(s),i){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class cp{constructor(){this.handlers=[]}use(t,n,s){return this.handlers.push({fulfilled:t,rejected:n,synchronous:s?s.synchronous:!1,runWhen:s?s.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){$.forEach(this.handlers,function(s){s!==null&&t(s)})}}const Ev={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},j0=typeof URLSearchParams<"u"?URLSearchParams:wu,N0=typeof FormData<"u"?FormData:null,C0=typeof Blob<"u"?Blob:null,b0={isBrowser:!0,classes:{URLSearchParams:j0,FormData:N0,Blob:C0},protocols:["http","https","file","blob","url","data"]},Su=typeof window<"u"&&typeof document<"u",dd=typeof navigator=="object"&&navigator||void 0,w0=Su&&(!dd||["ReactNative","NativeScript","NS"].indexOf(dd.product)<0),S0=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",k0=Su&&window.location.href||"http://localhost",E0=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Su,hasStandardBrowserEnv:w0,hasStandardBrowserWebWorkerEnv:S0,navigator:dd,origin:k0},Symbol.toStringTag,{value:"Module"})),lt={...E0,...b0};function P0(e,t){return Ka(e,new lt.classes.URLSearchParams,Object.assign({visitor:function(n,s,o,i){return lt.isNode&&$.isBuffer(n)?(this.append(s,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function _0(e){return $.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function T0(e){const t={},n=Object.keys(e);let s;const o=n.length;let i;for(s=0;s=n.length;return a=!a&&$.isArray(o)?o.length:a,d?($.hasOwnProp(o,a)?o[a]=[o[a],s]:o[a]=s,!l):((!o[a]||!$.isObject(o[a]))&&(o[a]=[]),t(n,s,o[a],i)&&$.isArray(o[a])&&(o[a]=T0(o[a])),!l)}if($.isFormData(e)&&$.isFunction(e.entries)){const n={};return $.forEachEntry(e,(s,o)=>{t(_0(s),o,n,0)}),n}return null}function O0(e,t,n){if($.isString(e))try{return(t||JSON.parse)(e),$.trim(e)}catch(s){if(s.name!=="SyntaxError")throw s}return(n||JSON.stringify)(e)}const Io={transitional:Ev,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const s=n.getContentType()||"",o=s.indexOf("application/json")>-1,i=$.isObject(t);if(i&&$.isHTMLForm(t)&&(t=new FormData(t)),$.isFormData(t))return o?JSON.stringify(Pv(t)):t;if($.isArrayBuffer(t)||$.isBuffer(t)||$.isStream(t)||$.isFile(t)||$.isBlob(t)||$.isReadableStream(t))return t;if($.isArrayBufferView(t))return t.buffer;if($.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(i){if(s.indexOf("application/x-www-form-urlencoded")>-1)return P0(t,this.formSerializer).toString();if((l=$.isFileList(t))||s.indexOf("multipart/form-data")>-1){const d=this.env&&this.env.FormData;return Ka(l?{"files[]":t}:t,d&&new d,this.formSerializer)}}return i||o?(n.setContentType("application/json",!1),O0(t)):t}],transformResponse:[function(t){const n=this.transitional||Io.transitional,s=n&&n.forcedJSONParsing,o=this.responseType==="json";if($.isResponse(t)||$.isReadableStream(t))return t;if(t&&$.isString(t)&&(s&&!this.responseType||o)){const a=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(l){if(a)throw l.name==="SyntaxError"?ie.from(l,ie.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:lt.classes.FormData,Blob:lt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};$.forEach(["delete","get","head","post","put","patch"],e=>{Io.headers[e]={}});const A0=$.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),R0=e=>{const t={};let n,s,o;return e&&e.split(` +`).forEach(function(a){o=a.indexOf(":"),n=a.substring(0,o).trim().toLowerCase(),s=a.substring(o+1).trim(),!(!n||t[n]&&A0[n])&&(n==="set-cookie"?t[n]?t[n].push(s):t[n]=[s]:t[n]=t[n]?t[n]+", "+s:s)}),t},dp=Symbol("internals");function As(e){return e&&String(e).trim().toLowerCase()}function Si(e){return e===!1||e==null?e:$.isArray(e)?e.map(Si):String(e)}function I0(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let s;for(;s=n.exec(e);)t[s[1]]=s[2];return t}const F0=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Jl(e,t,n,s,o){if($.isFunction(s))return s.call(this,t,n);if(o&&(t=n),!!$.isString(t)){if($.isString(s))return t.indexOf(s)!==-1;if($.isRegExp(s))return s.test(t)}}function D0(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,s)=>n.toUpperCase()+s)}function L0(e,t){const n=$.toCamelCase(" "+t);["get","set","has"].forEach(s=>{Object.defineProperty(e,s+n,{value:function(o,i,a){return this[s].call(this,t,o,i,a)},configurable:!0})})}class ct{constructor(t){t&&this.set(t)}set(t,n,s){const o=this;function i(l,d,c){const u=As(d);if(!u)throw new Error("header name must be a non-empty string");const p=$.findKey(o,u);(!p||o[p]===void 0||c===!0||c===void 0&&o[p]!==!1)&&(o[p||d]=Si(l))}const a=(l,d)=>$.forEach(l,(c,u)=>i(c,u,d));if($.isPlainObject(t)||t instanceof this.constructor)a(t,n);else if($.isString(t)&&(t=t.trim())&&!F0(t))a(R0(t),n);else if($.isHeaders(t))for(const[l,d]of t.entries())i(d,l,s);else t!=null&&i(n,t,s);return this}get(t,n){if(t=As(t),t){const s=$.findKey(this,t);if(s){const o=this[s];if(!n)return o;if(n===!0)return I0(o);if($.isFunction(n))return n.call(this,o,s);if($.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=As(t),t){const s=$.findKey(this,t);return!!(s&&this[s]!==void 0&&(!n||Jl(this,this[s],s,n)))}return!1}delete(t,n){const s=this;let o=!1;function i(a){if(a=As(a),a){const l=$.findKey(s,a);l&&(!n||Jl(s,s[l],l,n))&&(delete s[l],o=!0)}}return $.isArray(t)?t.forEach(i):i(t),o}clear(t){const n=Object.keys(this);let s=n.length,o=!1;for(;s--;){const i=n[s];(!t||Jl(this,this[i],i,t,!0))&&(delete this[i],o=!0)}return o}normalize(t){const n=this,s={};return $.forEach(this,(o,i)=>{const a=$.findKey(s,i);if(a){n[a]=Si(o),delete n[i];return}const l=t?D0(i):String(i).trim();l!==i&&delete n[i],n[l]=Si(o),s[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return $.forEach(this,(s,o)=>{s!=null&&s!==!1&&(n[o]=t&&$.isArray(s)?s.join(", "):s)}),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 s=new this(t);return n.forEach(o=>s.set(o)),s}static accessor(t){const s=(this[dp]=this[dp]={accessors:{}}).accessors,o=this.prototype;function i(a){const l=As(a);s[l]||(L0(o,a),s[l]=!0)}return $.isArray(t)?t.forEach(i):i(t),this}}ct.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);$.reduceDescriptors(ct.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(s){this[n]=s}}});$.freezeMethods(ct);function Zl(e,t){const n=this||Io,s=t||n,o=ct.from(s.headers);let i=s.data;return $.forEach(e,function(l){i=l.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function _v(e){return!!(e&&e.__CANCEL__)}function hs(e,t,n){ie.call(this,e??"canceled",ie.ERR_CANCELED,t,n),this.name="CanceledError"}$.inherits(hs,ie,{__CANCEL__:!0});function Tv(e,t,n){const s=n.config.validateStatus;!n.status||!s||s(n.status)?e(n):t(new ie("Request failed with status code "+n.status,[ie.ERR_BAD_REQUEST,ie.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function B0(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function M0(e,t){e=e||10;const n=new Array(e),s=new Array(e);let o=0,i=0,a;return t=t!==void 0?t:1e3,function(d){const c=Date.now(),u=s[i];a||(a=c),n[o]=d,s[o]=c;let p=i,g=0;for(;p!==o;)g+=n[p++],p=p%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),c-a{n=u,o=null,i&&(clearTimeout(i),i=null),e.apply(null,c)};return[(...c)=>{const u=Date.now(),p=u-n;p>=s?a(c,u):(o=c,i||(i=setTimeout(()=>{i=null,a(o)},s-p)))},()=>o&&a(o)]}const ma=(e,t,n=3)=>{let s=0;const o=M0(50,250);return z0(i=>{const a=i.loaded,l=i.lengthComputable?i.total:void 0,d=a-s,c=o(d),u=a<=l;s=a;const p={loaded:a,total:l,progress:l?a/l:void 0,bytes:d,rate:c||void 0,estimated:c&&l&&u?(l-a)/c:void 0,event:i,lengthComputable:l!=null,[t?"download":"upload"]:!0};e(p)},n)},up=(e,t)=>{const n=e!=null;return[s=>t[0]({lengthComputable:n,total:e,loaded:s}),t[1]]},fp=e=>(...t)=>$.asap(()=>e(...t)),$0=lt.hasStandardBrowserEnv?function(){const t=lt.navigator&&/(msie|trident)/i.test(lt.navigator.userAgent),n=document.createElement("a");let s;function o(i){let a=i;return t&&(n.setAttribute("href",a),a=n.href),n.setAttribute("href",a),{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 s=o(window.location.href),function(a){const l=$.isString(a)?o(a):a;return l.protocol===s.protocol&&l.host===s.host}}():function(){return function(){return!0}}(),W0=lt.hasStandardBrowserEnv?{write(e,t,n,s,o,i){const a=[e+"="+encodeURIComponent(t)];$.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),$.isString(s)&&a.push("path="+s),$.isString(o)&&a.push("domain="+o),i===!0&&a.push("secure"),document.cookie=a.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 U0(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function q0(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Ov(e,t){return e&&!U0(t)?q0(e,t):t}const pp=e=>e instanceof ct?{...e}:e;function wr(e,t){t=t||{};const n={};function s(c,u,p){return $.isPlainObject(c)&&$.isPlainObject(u)?$.merge.call({caseless:p},c,u):$.isPlainObject(u)?$.merge({},u):$.isArray(u)?u.slice():u}function o(c,u,p){if($.isUndefined(u)){if(!$.isUndefined(c))return s(void 0,c,p)}else return s(c,u,p)}function i(c,u){if(!$.isUndefined(u))return s(void 0,u)}function a(c,u){if($.isUndefined(u)){if(!$.isUndefined(c))return s(void 0,c)}else return s(void 0,u)}function l(c,u,p){if(p in t)return s(c,u);if(p in e)return s(void 0,c)}const d={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:l,headers:(c,u)=>o(pp(c),pp(u),!0)};return $.forEach(Object.keys(Object.assign({},e,t)),function(u){const p=d[u]||o,g=p(e[u],t[u],u);$.isUndefined(g)&&p!==l||(n[u]=g)}),n}const Av=e=>{const t=wr({},e);let{data:n,withXSRFToken:s,xsrfHeaderName:o,xsrfCookieName:i,headers:a,auth:l}=t;t.headers=a=ct.from(a),t.url=kv(Ov(t.baseURL,t.url),e.params,e.paramsSerializer),l&&a.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):"")));let d;if($.isFormData(n)){if(lt.hasStandardBrowserEnv||lt.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if((d=a.getContentType())!==!1){const[c,...u]=d?d.split(";").map(p=>p.trim()).filter(Boolean):[];a.setContentType([c||"multipart/form-data",...u].join("; "))}}if(lt.hasStandardBrowserEnv&&(s&&$.isFunction(s)&&(s=s(t)),s||s!==!1&&$0(t.url))){const c=o&&i&&W0.read(i);c&&a.set(o,c)}return t},V0=typeof XMLHttpRequest<"u",H0=V0&&function(e){return new Promise(function(n,s){const o=Av(e);let i=o.data;const a=ct.from(o.headers).normalize();let{responseType:l,onUploadProgress:d,onDownloadProgress:c}=o,u,p,g,N,x;function C(){N&&N(),x&&x(),o.cancelToken&&o.cancelToken.unsubscribe(u),o.signal&&o.signal.removeEventListener("abort",u)}let b=new XMLHttpRequest;b.open(o.method.toUpperCase(),o.url,!0),b.timeout=o.timeout;function m(){if(!b)return;const h=ct.from("getAllResponseHeaders"in b&&b.getAllResponseHeaders()),E={data:!l||l==="text"||l==="json"?b.responseText:b.response,status:b.status,statusText:b.statusText,headers:h,config:e,request:b};Tv(function(O){n(O),C()},function(O){s(O),C()},E),b=null}"onloadend"in b?b.onloadend=m:b.onreadystatechange=function(){!b||b.readyState!==4||b.status===0&&!(b.responseURL&&b.responseURL.indexOf("file:")===0)||setTimeout(m)},b.onabort=function(){b&&(s(new ie("Request aborted",ie.ECONNABORTED,e,b)),b=null)},b.onerror=function(){s(new ie("Network Error",ie.ERR_NETWORK,e,b)),b=null},b.ontimeout=function(){let y=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const E=o.transitional||Ev;o.timeoutErrorMessage&&(y=o.timeoutErrorMessage),s(new ie(y,E.clarifyTimeoutError?ie.ETIMEDOUT:ie.ECONNABORTED,e,b)),b=null},i===void 0&&a.setContentType(null),"setRequestHeader"in b&&$.forEach(a.toJSON(),function(y,E){b.setRequestHeader(E,y)}),$.isUndefined(o.withCredentials)||(b.withCredentials=!!o.withCredentials),l&&l!=="json"&&(b.responseType=o.responseType),c&&([g,x]=ma(c,!0),b.addEventListener("progress",g)),d&&b.upload&&([p,N]=ma(d),b.upload.addEventListener("progress",p),b.upload.addEventListener("loadend",N)),(o.cancelToken||o.signal)&&(u=h=>{b&&(s(!h||h.type?new hs(null,e,b):h),b.abort(),b=null)},o.cancelToken&&o.cancelToken.subscribe(u),o.signal&&(o.signal.aborted?u():o.signal.addEventListener("abort",u)));const v=B0(o.url);if(v&<.protocols.indexOf(v)===-1){s(new ie("Unsupported protocol "+v+":",ie.ERR_BAD_REQUEST,e));return}b.send(i||null)})},K0=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let s=new AbortController,o;const i=function(c){if(!o){o=!0,l();const u=c instanceof Error?c:this.reason;s.abort(u instanceof ie?u:new hs(u instanceof Error?u.message:u))}};let a=t&&setTimeout(()=>{a=null,i(new ie(`timeout ${t} of ms exceeded`,ie.ETIMEDOUT))},t);const l=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(c=>{c.unsubscribe?c.unsubscribe(i):c.removeEventListener("abort",i)}),e=null)};e.forEach(c=>c.addEventListener("abort",i));const{signal:d}=s;return d.unsubscribe=()=>$.asap(l),d}},Y0=function*(e,t){let n=e.byteLength;if(!t||n{const o=G0(e,t);let i=0,a,l=d=>{a||(a=!0,s&&s(d))};return new ReadableStream({async pull(d){try{const{done:c,value:u}=await o.next();if(c){l(),d.close();return}let p=u.byteLength;if(n){let g=i+=p;n(g)}d.enqueue(new Uint8Array(u))}catch(c){throw l(c),c}},cancel(d){return l(d),o.return()}},{highWaterMark:2})},Ya=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Rv=Ya&&typeof ReadableStream=="function",X0=Ya&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Iv=(e,...t)=>{try{return!!e(...t)}catch{return!1}},J0=Rv&&Iv(()=>{let e=!1;const t=new Request(lt.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),hp=64*1024,ud=Rv&&Iv(()=>$.isReadableStream(new Response("").body)),ha={stream:ud&&(e=>e.body)};Ya&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!ha[t]&&(ha[t]=$.isFunction(e[t])?n=>n[t]():(n,s)=>{throw new ie(`Response type '${t}' is not supported`,ie.ERR_NOT_SUPPORT,s)})})})(new Response);const Z0=async e=>{if(e==null)return 0;if($.isBlob(e))return e.size;if($.isSpecCompliantForm(e))return(await new Request(lt.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if($.isArrayBufferView(e)||$.isArrayBuffer(e))return e.byteLength;if($.isURLSearchParams(e)&&(e=e+""),$.isString(e))return(await X0(e)).byteLength},eN=async(e,t)=>{const n=$.toFiniteNumber(e.getContentLength());return n??Z0(t)},tN=Ya&&(async e=>{let{url:t,method:n,data:s,signal:o,cancelToken:i,timeout:a,onDownloadProgress:l,onUploadProgress:d,responseType:c,headers:u,withCredentials:p="same-origin",fetchOptions:g}=Av(e);c=c?(c+"").toLowerCase():"text";let N=K0([o,i&&i.toAbortSignal()],a),x;const C=N&&N.unsubscribe&&(()=>{N.unsubscribe()});let b;try{if(d&&J0&&n!=="get"&&n!=="head"&&(b=await eN(u,s))!==0){let E=new Request(t,{method:"POST",body:s,duplex:"half"}),T;if($.isFormData(s)&&(T=E.headers.get("content-type"))&&u.setContentType(T),E.body){const[O,_]=up(b,ma(fp(d)));s=mp(E.body,hp,O,_)}}$.isString(p)||(p=p?"include":"omit");const m="credentials"in Request.prototype;x=new Request(t,{...g,signal:N,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:s,duplex:"half",credentials:m?p:void 0});let v=await fetch(x);const h=ud&&(c==="stream"||c==="response");if(ud&&(l||h&&C)){const E={};["status","statusText","headers"].forEach(L=>{E[L]=v[L]});const T=$.toFiniteNumber(v.headers.get("content-length")),[O,_]=l&&up(T,ma(fp(l),!0))||[];v=new Response(mp(v.body,hp,O,()=>{_&&_(),C&&C()}),E)}c=c||"text";let y=await ha[$.findKey(ha,c)||"text"](v,e);return!h&&C&&C(),await new Promise((E,T)=>{Tv(E,T,{data:y,headers:ct.from(v.headers),status:v.status,statusText:v.statusText,config:e,request:x})})}catch(m){throw C&&C(),m&&m.name==="TypeError"&&/fetch/i.test(m.message)?Object.assign(new ie("Network Error",ie.ERR_NETWORK,e,x),{cause:m.cause||m}):ie.from(m,m&&m.code,e,x)}}),fd={http:v0,xhr:H0,fetch:tN};$.forEach(fd,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const vp=e=>`- ${e}`,nN=e=>$.isFunction(e)||e===null||e===!1,Fv={getAdapter:e=>{e=$.isArray(e)?e:[e];const{length:t}=e;let n,s;const o={};for(let i=0;i`adapter ${l} `+(d===!1?"is not supported by the environment":"is not available in the build"));let a=t?i.length>1?`since : +`+i.map(vp).join(` +`):" "+vp(i[0]):"as no adapter specified";throw new ie("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return s},adapters:fd};function ec(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new hs(null,e)}function gp(e){return ec(e),e.headers=ct.from(e.headers),e.data=Zl.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Fv.getAdapter(e.adapter||Io.adapter)(e).then(function(s){return ec(e),s.data=Zl.call(e,e.transformResponse,s),s.headers=ct.from(s.headers),s},function(s){return _v(s)||(ec(e),s&&s.response&&(s.response.data=Zl.call(e,e.transformResponse,s.response),s.response.headers=ct.from(s.response.headers))),Promise.reject(s)})}const Dv="1.7.7",ku={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{ku[e]=function(s){return typeof s===e||"a"+(t<1?"n ":" ")+e}});const xp={};ku.transitional=function(t,n,s){function o(i,a){return"[Axios v"+Dv+"] Transitional option '"+i+"'"+a+(s?". "+s:"")}return(i,a,l)=>{if(t===!1)throw new ie(o(a," has been removed"+(n?" in "+n:"")),ie.ERR_DEPRECATED);return n&&!xp[a]&&(xp[a]=!0,console.warn(o(a," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,a,l):!0}};function rN(e,t,n){if(typeof e!="object")throw new ie("options must be an object",ie.ERR_BAD_OPTION_VALUE);const s=Object.keys(e);let o=s.length;for(;o-- >0;){const i=s[o],a=t[i];if(a){const l=e[i],d=l===void 0||a(l,i,e);if(d!==!0)throw new ie("option "+i+" must be "+d,ie.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new ie("Unknown option "+i,ie.ERR_BAD_OPTION)}}const pd={assertOptions:rN,validators:ku},jn=pd.validators;class pr{constructor(t){this.defaults=t,this.interceptors={request:new cp,response:new cp}}async request(t,n){try{return await this._request(t,n)}catch(s){if(s instanceof Error){let o;Error.captureStackTrace?Error.captureStackTrace(o={}):o=new Error;const i=o.stack?o.stack.replace(/^.+\n/,""):"";try{s.stack?i&&!String(s.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(s.stack+=` +`+i):s.stack=i}catch{}}throw s}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=wr(this.defaults,n);const{transitional:s,paramsSerializer:o,headers:i}=n;s!==void 0&&pd.assertOptions(s,{silentJSONParsing:jn.transitional(jn.boolean),forcedJSONParsing:jn.transitional(jn.boolean),clarifyTimeoutError:jn.transitional(jn.boolean)},!1),o!=null&&($.isFunction(o)?n.paramsSerializer={serialize:o}:pd.assertOptions(o,{encode:jn.function,serialize:jn.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=i&&$.merge(i.common,i[n.method]);i&&$.forEach(["delete","get","head","post","put","patch","common"],x=>{delete i[x]}),n.headers=ct.concat(a,i);const l=[];let d=!0;this.interceptors.request.forEach(function(C){typeof C.runWhen=="function"&&C.runWhen(n)===!1||(d=d&&C.synchronous,l.unshift(C.fulfilled,C.rejected))});const c=[];this.interceptors.response.forEach(function(C){c.push(C.fulfilled,C.rejected)});let u,p=0,g;if(!d){const x=[gp.bind(this),void 0];for(x.unshift.apply(x,l),x.push.apply(x,c),g=x.length,u=Promise.resolve(n);p{if(!s._listeners)return;let i=s._listeners.length;for(;i-- >0;)s._listeners[i](o);s._listeners=null}),this.promise.then=o=>{let i;const a=new Promise(l=>{s.subscribe(l),i=l}).then(o);return a.cancel=function(){s.unsubscribe(i)},a},t(function(i,a,l){s.reason||(s.reason=new hs(i,a,l),n(s.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)}toAbortSignal(){const t=new AbortController,n=s=>{t.abort(s)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new Eu(function(o){t=o}),cancel:t}}}function sN(e){return function(n){return e.apply(null,n)}}function oN(e){return $.isObject(e)&&e.isAxiosError===!0}const md={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(md).forEach(([e,t])=>{md[t]=e});function Lv(e){const t=new pr(e),n=mv(pr.prototype.request,t);return $.extend(n,pr.prototype,t,{allOwnKeys:!0}),$.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return Lv(wr(e,o))},n}const me=Lv(Io);me.Axios=pr;me.CanceledError=hs;me.CancelToken=Eu;me.isCancel=_v;me.VERSION=Dv;me.toFormData=Ka;me.AxiosError=ie;me.Cancel=me.CanceledError;me.all=function(t){return Promise.all(t)};me.spread=sN;me.isAxiosError=oN;me.mergeConfig=wr;me.AxiosHeaders=ct;me.formToJSON=e=>Pv($.isHTMLForm(e)?new FormData(e):e);me.getAdapter=Fv.getAdapter;me.HttpStatusCode=md;me.default=me;const iN="http://67.225.129.127:3002",Jt=me.create({baseURL:iN});Jt.interceptors.request.use(e=>(localStorage.getItem("profile")&&(e.headers.Authorization=`Bearer ${JSON.parse(localStorage.getItem("profile")).token}`),e));const aN=e=>Jt.post("/users/signup",e),lN=e=>Jt.post("/users/signin",e),cN=(e,t,n)=>Jt.get(`/users/${e}/verify/${t}`,n),dN=e=>Jt.post("/properties",e),uN=(e,t,n)=>Jt.get(`/properties/user/${e}?page=${t}&limit=${n}`,e),fN=e=>Jt.get(`/properties/${e}`,e),pN=(e,t)=>Jt.put(`/properties/${e}`,t),mN=e=>Jt.get(`/users/${e}`),hN=e=>Jt.patch("/users/invest",e),vN="http://67.225.129.127:3002",ki=et("auth/login",async({formValue:e,navigate:t},{rejectWithValue:n})=>{try{const s=await lN(e);return t("/dashboard"),s.data}catch(s){return n(s.response.data)}}),Ei=et("auth/register",async({formValue:e,navigate:t,toast:n},{rejectWithValue:s})=>{try{const o=await aN(e);return console.log("response",o),n.success("Register Successfully"),t("/registrationsuccess"),o.data}catch(o){return s(o.response.data)}}),Pi=et("auth/updateUser",async({formData:e,toast:t,navigate:n},{rejectWithValue:s})=>{try{const o=await me.put(`${vN}/users/update`,e);return t.success("Updated Successfully"),n("/login"),o.data}catch(o){return s(o.response.data)}}),_i=et("auth/WillingToInvest",async({formData:e,toast:t},{rejectWithValue:n})=>{try{const s=await hN(e);return t.success("Investment amount updated successfully!"),s.data}catch(s){return t.error(s.response.data.message),n(s.response.data)}}),Bv=Ao({name:"auth",initialState:{user:null,error:"",loading:!1,isLoading:!1},reducers:{setUser:(e,t)=>{e.user=t.payload},setLogout:e=>{localStorage.clear(),e.user=null},setUserDetails:(e,t)=>{e.user=t.payload},updateUser:(e,t)=>{const n=t.payload;e.user={...e.user,...n}}},extraReducers:e=>{e.addCase(ki.pending,t=>{t.loading=!0}).addCase(ki.fulfilled,(t,n)=>{t.loading=!1,localStorage.setItem("profile",JSON.stringify({...n.payload})),t.user=n.payload}).addCase(ki.rejected,(t,n)=>{t.loading=!1,t.error=n.payload.message}).addCase(Ei.pending,t=>{t.loading=!0}).addCase(Ei.fulfilled,(t,n)=>{t.loading=!1,localStorage.setItem("profile",JSON.stringify({...n.payload})),t.user=n.payload}).addCase(Ei.rejected,(t,n)=>{t.loading=!1,t.error=n.payload.message}).addCase(Pi.pending,t=>{t.isLoading=!0}).addCase(Pi.fulfilled,(t,n)=>{t.isLoading=!1,t.user=n.payload}).addCase(Pi.rejected,(t,n)=>{t.isLoading=!1,t.error=n.payload}).addCase(_i.pending,t=>{t.loading=!0}).addCase(_i.fulfilled,(t,n)=>{t.loading=!1,t.user={...t.user,result:n.payload}}).addCase(_i.rejected,(t,n)=>{t.loading=!1,t.error=n.payload})}}),{setUser:pS,setLogout:gN,setUserDetails:mS}=Bv.actions,xN=Bv.reducer,Ti=et("user/showUser",async(e,{rejectWithValue:t})=>{try{return(await mN(e)).data}catch(n){return t(n.response.data)}}),Oi=et("user/verifyEmail",async({id:e,token:t,data:n},{rejectWithValue:s})=>{try{return(await cN(e,t,n)).data.message}catch(o){return s(o.response.data)}}),yN=Ao({name:"user",initialState:{users:[],error:"",loading:!1,verified:!1,user:{}},reducers:{},extraReducers:e=>{e.addCase(Ti.pending,t=>{t.loading=!0,t.error=null}).addCase(Ti.fulfilled,(t,n)=>{t.loading=!1,t.user=n.payload}).addCase(Ti.rejected,(t,n)=>{t.loading=!1,t.error=n.payload}).addCase(Oi.pending,t=>{t.loading=!0,t.error=null}).addCase(Oi.fulfilled,(t,n)=>{t.loading=!1,t.verified=n.payload==="Email verified successfully"}).addCase(Oi.rejected,(t,n)=>{t.loading=!1,t.error=n.error.message})}}),jN=yN.reducer,Ai=et("property/submitProperty",async(e,{rejectWithValue:t})=>{try{return(await dN(e)).data}catch(n){return t(n.response.data)}}),Xs=et("property/fetchUserProperties",async({userId:e,page:t,limit:n},{rejectWithValue:s})=>{try{return(await uN(e,t,n)).data}catch(o){return s(o.response.data)}}),Js=et("property/fetchPropertyById",async(e,{rejectWithValue:t})=>{try{return(await fN(e)).data}catch(n){return t(n.response.data)}}),Ri=et("property/updateProperty",async({id:e,propertyData:t},{rejectWithValue:n})=>{try{return(await pN(e,t)).data}catch(s){return n(s.response.data)}}),Ii=et("property/addFundDetails",async({id:e,fundDetails:t,toast:n},{rejectWithValue:s})=>{try{const o=await me.put(`http://67.225.129.127:3002/properties/${e}/fund-details`,t);return n.success("Submitted Successfully"),o.data}catch(o){return s(o.response.data)}}),Fi=et("property/deleteFundDetail",async({id:e,fundDetailId:t,token:n},{rejectWithValue:s})=>{try{return(await me.delete(`http://67.225.129.127:3002/properties/${e}/fund-details/${t}`,{headers:{Authorization:`Bearer ${n}`}})).data}catch(o){return s(o.response.data)}}),mr=et("properties/getProperties",async({page:e,limit:t,keyword:n=""})=>(await me.get(`http://67.225.129.127:3002/properties?page=${e}&limit=${t}&keyword=${n}`)).data),NN=Ao({name:"property",initialState:{property:{},status:"idle",error:null,userProperties:[],selectedProperty:null,totalPages:0,currentPage:1,loading:!1,properties:[],fundDetails:[]},reducers:{},extraReducers:e=>{e.addCase(Ai.pending,t=>{t.status="loading"}).addCase(Ai.fulfilled,(t,n)=>{t.status="succeeded",t.property=n.payload}).addCase(Ai.rejected,(t,n)=>{t.status="failed",t.error=n.payload}).addCase(Xs.pending,t=>{t.loading=!0}).addCase(Xs.fulfilled,(t,{payload:n})=>{t.loading=!1,t.userProperties=n.properties,t.totalPages=n.totalPages,t.currentPage=n.currentPage}).addCase(Xs.rejected,(t,{payload:n})=>{t.loading=!1,t.error=n}).addCase(Js.pending,t=>{t.status="loading"}).addCase(Js.fulfilled,(t,n)=>{t.status="succeeded",t.selectedProperty=n.payload}).addCase(Js.rejected,(t,n)=>{t.status="failed",t.error=n.payload}).addCase(Ri.pending,t=>{t.status="loading"}).addCase(Ri.fulfilled,(t,n)=>{t.status="succeeded",t.selectedProperty=n.payload}).addCase(Ri.rejected,(t,n)=>{t.status="failed",t.error=n.payload}).addCase(mr.pending,t=>{t.loading=!0}).addCase(mr.fulfilled,(t,n)=>{t.loading=!1,t.properties=n.payload.data,t.totalPages=n.payload.totalPages,t.currentPage=n.payload.currentPage}).addCase(mr.rejected,(t,n)=>{t.loading=!1,t.error=n.error.message}).addCase(Ii.pending,t=>{t.loading=!0}).addCase(Ii.fulfilled,(t,n)=>{t.loading=!1,t.property=n.payload.property}).addCase(Ii.rejected,(t,n)=>{t.loading=!1,t.error=n.payload}).addCase(Fi.pending,t=>{t.loading=!0}).addCase(Fi.fulfilled,(t,n)=>{t.loading=!1,t.fundDetails=t.fundDetails.filter(s=>s._id!==n.meta.arg.id)}).addCase(Fi.rejected,(t,n)=>{t.loading=!1,t.error=n.payload})}}),CN=NN.reducer,tc=et("fundDetails/fetchFundDetails",async(e,{rejectWithValue:t})=>{try{return(await me.get(`http://67.225.129.127:3002/properties/${e}/fund-details`)).data.fundDetails}catch(n){return t(n.response.data)}}),bN=Ao({name:"fundDetails",initialState:{fundDetails:[],loading:!1,error:null},reducers:{},extraReducers:e=>{e.addCase(tc.pending,t=>{t.loading=!0}).addCase(tc.fulfilled,(t,n)=>{t.loading=!1,t.fundDetails=n.payload}).addCase(tc.rejected,(t,n)=>{t.loading=!1,t.error=n.payload})}}),wN=bN.reducer,SN="http://67.225.129.127:3002",Di=et("admin/fetchAdminUser",async()=>(await me.get(`${SN}/admin/username`)).data),kN=Ao({name:"admin",initialState:{user:null,loading:!1,error:null},reducers:{},extraReducers:e=>{e.addCase(Di.pending,t=>{t.loading=!0,t.error=null}).addCase(Di.fulfilled,(t,n)=>{t.loading=!1,t.user=n.payload}).addCase(Di.rejected,(t,n)=>{t.loading=!1,t.error=n.error.message})}}),EN=kN.reducer,PN=u1({reducer:{auth:xN,user:jN,property:CN,fundDetails:wN,admin:EN}});/** + * @remix-run/router v1.19.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 No(){return No=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function Mv(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function TN(){return Math.random().toString(36).substr(2,8)}function jp(e,t){return{usr:e.state,key:e.key,idx:t}}function hd(e,t,n,s){return n===void 0&&(n=null),No({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?vs(t):t,{state:n,key:t&&t.key||s||TN()})}function va(e){let{pathname:t="/",search:n="",hash:s=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),s&&s!=="#"&&(t+=s.charAt(0)==="#"?s:"#"+s),t}function vs(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let s=e.indexOf("?");s>=0&&(t.search=e.substr(s),e=e.substr(0,s)),e&&(t.pathname=e)}return t}function ON(e,t,n,s){s===void 0&&(s={});let{window:o=document.defaultView,v5Compat:i=!1}=s,a=o.history,l=On.Pop,d=null,c=u();c==null&&(c=0,a.replaceState(No({},a.state,{idx:c}),""));function u(){return(a.state||{idx:null}).idx}function p(){l=On.Pop;let b=u(),m=b==null?null:b-c;c=b,d&&d({action:l,location:C.location,delta:m})}function g(b,m){l=On.Push;let v=hd(C.location,b,m);c=u()+1;let h=jp(v,c),y=C.createHref(v);try{a.pushState(h,"",y)}catch(E){if(E instanceof DOMException&&E.name==="DataCloneError")throw E;o.location.assign(y)}i&&d&&d({action:l,location:C.location,delta:1})}function N(b,m){l=On.Replace;let v=hd(C.location,b,m);c=u();let h=jp(v,c),y=C.createHref(v);a.replaceState(h,"",y),i&&d&&d({action:l,location:C.location,delta:0})}function x(b){let m=o.location.origin!=="null"?o.location.origin:o.location.href,v=typeof b=="string"?b:va(b);return v=v.replace(/ $/,"%20"),Pe(m,"No window.location.(origin|href) available to create URL for href: "+v),new URL(v,m)}let C={get action(){return l},get location(){return e(o,a)},listen(b){if(d)throw new Error("A history only accepts one active listener");return o.addEventListener(yp,p),d=b,()=>{o.removeEventListener(yp,p),d=null}},createHref(b){return t(o,b)},createURL:x,encodeLocation(b){let m=x(b);return{pathname:m.pathname,search:m.search,hash:m.hash}},push:g,replace:N,go(b){return a.go(b)}};return C}var Np;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Np||(Np={}));function AN(e,t,n){return n===void 0&&(n="/"),RN(e,t,n,!1)}function RN(e,t,n,s){let o=typeof t=="string"?vs(t):t,i=ds(o.pathname||"/",n);if(i==null)return null;let a=zv(e);IN(a);let l=null;for(let d=0;l==null&&d{let d={relativePath:l===void 0?i.path||"":l,caseSensitive:i.caseSensitive===!0,childrenIndex:a,route:i};d.relativePath.startsWith("/")&&(Pe(d.relativePath.startsWith(s),'Absolute route path "'+d.relativePath+'" nested under path '+('"'+s+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),d.relativePath=d.relativePath.slice(s.length));let c=$n([s,d.relativePath]),u=n.concat(d);i.children&&i.children.length>0&&(Pe(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),zv(i.children,t,u,c)),!(i.path==null&&!i.index)&&t.push({path:c,score:$N(c,i.index),routesMeta:u})};return e.forEach((i,a)=>{var l;if(i.path===""||!((l=i.path)!=null&&l.includes("?")))o(i,a);else for(let d of $v(i.path))o(i,a,d)}),t}function $v(e){let t=e.split("/");if(t.length===0)return[];let[n,...s]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(s.length===0)return o?[i,""]:[i];let a=$v(s.join("/")),l=[];return l.push(...a.map(d=>d===""?i:[i,d].join("/"))),o&&l.push(...a),l.map(d=>e.startsWith("/")&&d===""?"/":d)}function IN(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:WN(t.routesMeta.map(s=>s.childrenIndex),n.routesMeta.map(s=>s.childrenIndex)))}const FN=/^:[\w-]+$/,DN=3,LN=2,BN=1,MN=10,zN=-2,Cp=e=>e==="*";function $N(e,t){let n=e.split("/"),s=n.length;return n.some(Cp)&&(s+=zN),t&&(s+=LN),n.filter(o=>!Cp(o)).reduce((o,i)=>o+(FN.test(i)?DN:i===""?BN:MN),s)}function WN(e,t){return e.length===t.length&&e.slice(0,-1).every((s,o)=>s===t[o])?e[e.length-1]-t[t.length-1]:0}function UN(e,t,n){let{routesMeta:s}=e,o={},i="/",a=[];for(let l=0;l{let{paramName:g,isOptional:N}=u;if(g==="*"){let C=l[p]||"";a=i.slice(0,i.length-C.length).replace(/(.)\/+$/,"$1")}const x=l[p];return N&&!x?c[g]=void 0:c[g]=(x||"").replace(/%2F/g,"/"),c},{}),pathname:i,pathnameBase:a,pattern:e}}function qN(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Mv(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let s=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,l,d)=>(s.push({paramName:l,isOptional:d!=null}),d?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(s.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),s]}function VN(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Mv(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function ds(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,s=e.charAt(n);return s&&s!=="/"?null:e.slice(n)||"/"}function HN(e,t){t===void 0&&(t="/");let{pathname:n,search:s="",hash:o=""}=typeof e=="string"?vs(e):e;return{pathname:n?n.startsWith("/")?n:KN(n,t):t,search:QN(s),hash:XN(o)}}function KN(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function nc(e,t,n,s){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(s)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function YN(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Wv(e,t){let n=YN(e);return t?n.map((s,o)=>o===n.length-1?s.pathname:s.pathnameBase):n.map(s=>s.pathnameBase)}function Uv(e,t,n,s){s===void 0&&(s=!1);let o;typeof e=="string"?o=vs(e):(o=No({},e),Pe(!o.pathname||!o.pathname.includes("?"),nc("?","pathname","search",o)),Pe(!o.pathname||!o.pathname.includes("#"),nc("#","pathname","hash",o)),Pe(!o.search||!o.search.includes("#"),nc("#","search","hash",o)));let i=e===""||o.pathname==="",a=i?"/":o.pathname,l;if(a==null)l=n;else{let p=t.length-1;if(!s&&a.startsWith("..")){let g=a.split("/");for(;g[0]==="..";)g.shift(),p-=1;o.pathname=g.join("/")}l=p>=0?t[p]:"/"}let d=HN(o,l),c=a&&a!=="/"&&a.endsWith("/"),u=(i||a===".")&&n.endsWith("/");return!d.pathname.endsWith("/")&&(c||u)&&(d.pathname+="/"),d}const $n=e=>e.join("/").replace(/\/\/+/g,"/"),GN=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),QN=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,XN=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function JN(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const qv=["post","put","patch","delete"];new Set(qv);const ZN=["get",...qv];new Set(ZN);/** + * React Router v6.26.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 Co(){return Co=Object.assign?Object.assign.bind():function(e){for(var t=1;t{l.current=!0}),S.useCallback(function(c,u){if(u===void 0&&(u={}),!l.current)return;if(typeof c=="number"){s.go(c);return}let p=Uv(c,JSON.parse(a),i,u.relative==="path");e==null&&t!=="/"&&(p.pathname=p.pathname==="/"?t:$n([t,p.pathname])),(u.replace?s.replace:s.push)(p,u.state,u)},[t,s,a,i,e])}function gs(){let{matches:e}=S.useContext(Gn),t=e[e.length-1];return t?t.params:{}}function Xa(e,t){let{relative:n}=t===void 0?{}:t,{future:s}=S.useContext(Yn),{matches:o}=S.useContext(Gn),{pathname:i}=Do(),a=JSON.stringify(Wv(o,s.v7_relativeSplatPath));return S.useMemo(()=>Uv(e,JSON.parse(a),i,n==="path"),[e,a,i,n])}function nC(e,t){return rC(e,t)}function rC(e,t,n,s){Fo()||Pe(!1);let{navigator:o}=S.useContext(Yn),{matches:i}=S.useContext(Gn),a=i[i.length-1],l=a?a.params:{};a&&a.pathname;let d=a?a.pathnameBase:"/";a&&a.route;let c=Do(),u;if(t){var p;let b=typeof t=="string"?vs(t):t;d==="/"||(p=b.pathname)!=null&&p.startsWith(d)||Pe(!1),u=b}else u=c;let g=u.pathname||"/",N=g;if(d!=="/"){let b=d.replace(/^\//,"").split("/");N="/"+g.replace(/^\//,"").split("/").slice(b.length).join("/")}let x=AN(e,{pathname:N}),C=lC(x&&x.map(b=>Object.assign({},b,{params:Object.assign({},l,b.params),pathname:$n([d,o.encodeLocation?o.encodeLocation(b.pathname).pathname:b.pathname]),pathnameBase:b.pathnameBase==="/"?d:$n([d,o.encodeLocation?o.encodeLocation(b.pathnameBase).pathname:b.pathnameBase])})),i,n,s);return t&&C?S.createElement(Qa.Provider,{value:{location:Co({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:On.Pop}},C):C}function sC(){let e=fC(),t=JN(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return S.createElement(S.Fragment,null,S.createElement("h2",null,"Unexpected Application Error!"),S.createElement("h3",{style:{fontStyle:"italic"}},t),n?S.createElement("pre",{style:o},n):null,null)}const oC=S.createElement(sC,null);class iC extends S.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,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?S.createElement(Gn.Provider,{value:this.props.routeContext},S.createElement(Hv.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function aC(e){let{routeContext:t,match:n,children:s}=e,o=S.useContext(Ga);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),S.createElement(Gn.Provider,{value:t},s)}function lC(e,t,n,s){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),s===void 0&&(s=null),e==null){var i;if(!n)return null;if(n.errors)e=n.matches;else if((i=s)!=null&&i.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let a=e,l=(o=n)==null?void 0:o.errors;if(l!=null){let u=a.findIndex(p=>p.route.id&&(l==null?void 0:l[p.route.id])!==void 0);u>=0||Pe(!1),a=a.slice(0,Math.min(a.length,u+1))}let d=!1,c=-1;if(n&&s&&s.v7_partialHydration)for(let u=0;u=0?a=a.slice(0,c+1):a=[a[0]];break}}}return a.reduceRight((u,p,g)=>{let N,x=!1,C=null,b=null;n&&(N=l&&p.route.id?l[p.route.id]:void 0,C=p.route.errorElement||oC,d&&(c<0&&g===0?(x=!0,b=null):c===g&&(x=!0,b=p.route.hydrateFallbackElement||null)));let m=t.concat(a.slice(0,g+1)),v=()=>{let h;return N?h=C:x?h=b:p.route.Component?h=S.createElement(p.route.Component,null):p.route.element?h=p.route.element:h=u,S.createElement(aC,{match:p,routeContext:{outlet:u,matches:m,isDataRoute:n!=null},children:h})};return n&&(p.route.ErrorBoundary||p.route.errorElement||g===0)?S.createElement(iC,{location:n.location,revalidation:n.revalidation,component:C,error:N,children:v(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):v()},null)}var Yv=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Yv||{}),xa=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(xa||{});function cC(e){let t=S.useContext(Ga);return t||Pe(!1),t}function dC(e){let t=S.useContext(Vv);return t||Pe(!1),t}function uC(e){let t=S.useContext(Gn);return t||Pe(!1),t}function Gv(e){let t=uC(),n=t.matches[t.matches.length-1];return n.route.id||Pe(!1),n.route.id}function fC(){var e;let t=S.useContext(Hv),n=dC(xa.UseRouteError),s=Gv(xa.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[s]}function pC(){let{router:e}=cC(Yv.UseNavigateStable),t=Gv(xa.UseNavigateStable),n=S.useRef(!1);return Kv(()=>{n.current=!0}),S.useCallback(function(o,i){i===void 0&&(i={}),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,Co({fromRouteId:t},i)))},[e,t])}function be(e){Pe(!1)}function mC(e){let{basename:t="/",children:n=null,location:s,navigationType:o=On.Pop,navigator:i,static:a=!1,future:l}=e;Fo()&&Pe(!1);let d=t.replace(/^\/*/,"/"),c=S.useMemo(()=>({basename:d,navigator:i,static:a,future:Co({v7_relativeSplatPath:!1},l)}),[d,l,i,a]);typeof s=="string"&&(s=vs(s));let{pathname:u="/",search:p="",hash:g="",state:N=null,key:x="default"}=s,C=S.useMemo(()=>{let b=ds(u,d);return b==null?null:{location:{pathname:b,search:p,hash:g,state:N,key:x},navigationType:o}},[d,u,p,g,N,x,o]);return C==null?null:S.createElement(Yn.Provider,{value:c},S.createElement(Qa.Provider,{children:n,value:C}))}function hC(e){let{children:t,location:n}=e;return nC(vd(t),n)}new Promise(()=>{});function vd(e,t){t===void 0&&(t=[]);let n=[];return S.Children.forEach(e,(s,o)=>{if(!S.isValidElement(s))return;let i=[...t,o];if(s.type===S.Fragment){n.push.apply(n,vd(s.props.children,i));return}s.type!==be&&Pe(!1),!s.props.index||!s.props.children||Pe(!1);let a={id:s.props.id||i.join("-"),caseSensitive:s.props.caseSensitive,element:s.props.element,Component:s.props.Component,index:s.props.index,path:s.props.path,loader:s.props.loader,action:s.props.action,errorElement:s.props.errorElement,ErrorBoundary:s.props.ErrorBoundary,hasErrorBoundary:s.props.ErrorBoundary!=null||s.props.errorElement!=null,shouldRevalidate:s.props.shouldRevalidate,handle:s.props.handle,lazy:s.props.lazy};s.props.children&&(a.children=vd(s.props.children,i)),n.push(a)}),n}/** + * React Router DOM v6.26.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 ya(){return ya=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[o]=e[o]);return n}function vC(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function gC(e,t){return e.button===0&&(!t||t==="_self")&&!vC(e)}const xC=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],yC=["aria-current","caseSensitive","className","end","style","to","unstable_viewTransition","children"],jC="6";try{window.__reactRouterVersion=jC}catch{}const NC=S.createContext({isTransitioning:!1}),CC="startTransition",bp=cc[CC];function bC(e){let{basename:t,children:n,future:s,window:o}=e,i=S.useRef();i.current==null&&(i.current=_N({window:o,v5Compat:!0}));let a=i.current,[l,d]=S.useState({action:a.action,location:a.location}),{v7_startTransition:c}=s||{},u=S.useCallback(p=>{c&&bp?bp(()=>d(p)):d(p)},[d,c]);return S.useLayoutEffect(()=>a.listen(u),[a,u]),S.createElement(mC,{basename:t,children:n,location:l.location,navigationType:l.action,navigator:a,future:s})}const wC=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",SC=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,kC=S.forwardRef(function(t,n){let{onClick:s,relative:o,reloadDocument:i,replace:a,state:l,target:d,to:c,preventScrollReset:u,unstable_viewTransition:p}=t,g=Qv(t,xC),{basename:N}=S.useContext(Yn),x,C=!1;if(typeof c=="string"&&SC.test(c)&&(x=c,wC))try{let h=new URL(window.location.href),y=c.startsWith("//")?new URL(h.protocol+c):new URL(c),E=ds(y.pathname,N);y.origin===h.origin&&E!=null?c=E+y.search+y.hash:C=!0}catch{}let b=eC(c,{relative:o}),m=PC(c,{replace:a,state:l,target:d,preventScrollReset:u,relative:o,unstable_viewTransition:p});function v(h){s&&s(h),h.defaultPrevented||m(h)}return S.createElement("a",ya({},g,{href:x||b,onClick:C||i?s:v,ref:n,target:d}))}),ae=S.forwardRef(function(t,n){let{"aria-current":s="page",caseSensitive:o=!1,className:i="",end:a=!1,style:l,to:d,unstable_viewTransition:c,children:u}=t,p=Qv(t,yC),g=Xa(d,{relative:p.relative}),N=Do(),x=S.useContext(Vv),{navigator:C,basename:b}=S.useContext(Yn),m=x!=null&&_C(g)&&c===!0,v=C.encodeLocation?C.encodeLocation(g).pathname:g.pathname,h=N.pathname,y=x&&x.navigation&&x.navigation.location?x.navigation.location.pathname:null;o||(h=h.toLowerCase(),y=y?y.toLowerCase():null,v=v.toLowerCase()),y&&b&&(y=ds(y,b)||y);const E=v!=="/"&&v.endsWith("/")?v.length-1:v.length;let T=h===v||!a&&h.startsWith(v)&&h.charAt(E)==="/",O=y!=null&&(y===v||!a&&y.startsWith(v)&&y.charAt(v.length)==="/"),_={isActive:T,isPending:O,isTransitioning:m},L=T?s:void 0,z;typeof i=="function"?z=i(_):z=[i,T?"active":null,O?"pending":null,m?"transitioning":null].filter(Boolean).join(" ");let H=typeof l=="function"?l(_):l;return S.createElement(kC,ya({},p,{"aria-current":L,className:z,ref:n,style:H,to:d,unstable_viewTransition:c}),typeof u=="function"?u(_):u)});var gd;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(gd||(gd={}));var wp;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(wp||(wp={}));function EC(e){let t=S.useContext(Ga);return t||Pe(!1),t}function PC(e,t){let{target:n,replace:s,state:o,preventScrollReset:i,relative:a,unstable_viewTransition:l}=t===void 0?{}:t,d=hn(),c=Do(),u=Xa(e,{relative:a});return S.useCallback(p=>{if(gC(p,n)){p.preventDefault();let g=s!==void 0?s:va(c)===va(u);d(e,{replace:g,state:o,preventScrollReset:i,relative:a,unstable_viewTransition:l})}},[c,d,u,s,o,n,e,i,a,l])}function _C(e,t){t===void 0&&(t={});let n=S.useContext(NC);n==null&&Pe(!1);let{basename:s}=EC(gd.useViewTransitionState),o=Xa(e,{relative:t.relative});if(!n.isTransitioning)return!1;let i=ds(n.currentLocation.pathname,s)||n.currentLocation.pathname,a=ds(n.nextLocation.pathname,s)||n.nextLocation.pathname;return ga(o.pathname,a)!=null||ga(o.pathname,i)!=null}function Xv(e){var t,n,s="";if(typeof e=="string"||typeof e=="number")s+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;ttypeof e=="number"&&!isNaN(e),hr=e=>typeof e=="string",pt=e=>typeof e=="function",Li=e=>hr(e)||pt(e)?e:null,xd=e=>S.isValidElement(e)||hr(e)||pt(e)||bo(e);function TC(e,t,n){n===void 0&&(n=300);const{scrollHeight:s,style:o}=e;requestAnimationFrame(()=>{o.minHeight="initial",o.height=s+"px",o.transition=`all ${n}ms`,requestAnimationFrame(()=>{o.height="0",o.padding="0",o.margin="0",setTimeout(t,n)})})}function Ja(e){let{enter:t,exit:n,appendPosition:s=!1,collapse:o=!0,collapseDuration:i=300}=e;return function(a){let{children:l,position:d,preventExitTransition:c,done:u,nodeRef:p,isIn:g,playToast:N}=a;const x=s?`${t}--${d}`:t,C=s?`${n}--${d}`:n,b=S.useRef(0);return S.useLayoutEffect(()=>{const m=p.current,v=x.split(" "),h=y=>{y.target===p.current&&(N(),m.removeEventListener("animationend",h),m.removeEventListener("animationcancel",h),b.current===0&&y.type!=="animationcancel"&&m.classList.remove(...v))};m.classList.add(...v),m.addEventListener("animationend",h),m.addEventListener("animationcancel",h)},[]),S.useEffect(()=>{const m=p.current,v=()=>{m.removeEventListener("animationend",v),o?TC(m,u,i):u()};g||(c?v():(b.current=1,m.className+=` ${C}`,m.addEventListener("animationend",v)))},[g]),I.createElement(I.Fragment,null,l)}}function Sp(e,t){return e!=null?{content:e.content,containerId:e.props.containerId,id:e.props.toastId,theme:e.props.theme,type:e.props.type,data:e.props.data||{},isLoading:e.props.isLoading,icon:e.props.icon,status:t}:{}}const Qe=new Map;let wo=[];const yd=new Set,OC=e=>yd.forEach(t=>t(e)),Jv=()=>Qe.size>0;function Zv(e,t){var n;if(t)return!((n=Qe.get(t))==null||!n.isToastActive(e));let s=!1;return Qe.forEach(o=>{o.isToastActive(e)&&(s=!0)}),s}function eg(e,t){xd(e)&&(Jv()||wo.push({content:e,options:t}),Qe.forEach(n=>{n.buildToast(e,t)}))}function kp(e,t){Qe.forEach(n=>{t!=null&&t!=null&&t.containerId?(t==null?void 0:t.containerId)===n.id&&n.toggle(e,t==null?void 0:t.id):n.toggle(e,t==null?void 0:t.id)})}function AC(e){const{subscribe:t,getSnapshot:n,setProps:s}=S.useRef(function(i){const a=i.containerId||1;return{subscribe(l){const d=function(u,p,g){let N=1,x=0,C=[],b=[],m=[],v=p;const h=new Map,y=new Set,E=()=>{m=Array.from(h.values()),y.forEach(_=>_())},T=_=>{b=_==null?[]:b.filter(L=>L!==_),E()},O=_=>{const{toastId:L,onOpen:z,updateId:H,children:te}=_.props,Q=H==null;_.staleId&&h.delete(_.staleId),h.set(L,_),b=[...b,_.props.toastId].filter(Z=>Z!==_.staleId),E(),g(Sp(_,Q?"added":"updated")),Q&&pt(z)&&z(S.isValidElement(te)&&te.props)};return{id:u,props:v,observe:_=>(y.add(_),()=>y.delete(_)),toggle:(_,L)=>{h.forEach(z=>{L!=null&&L!==z.props.toastId||pt(z.toggle)&&z.toggle(_)})},removeToast:T,toasts:h,clearQueue:()=>{x-=C.length,C=[]},buildToast:(_,L)=>{if((W=>{let{containerId:K,toastId:Y,updateId:ee}=W;const re=K?K!==u:u!==1,ne=h.has(Y)&&ee==null;return re||ne})(L))return;const{toastId:z,updateId:H,data:te,staleId:Q,delay:Z}=L,D=()=>{T(z)},U=H==null;U&&x++;const G={...v,style:v.toastStyle,key:N++,...Object.fromEntries(Object.entries(L).filter(W=>{let[K,Y]=W;return Y!=null})),toastId:z,updateId:H,data:te,closeToast:D,isIn:!1,className:Li(L.className||v.toastClassName),bodyClassName:Li(L.bodyClassName||v.bodyClassName),progressClassName:Li(L.progressClassName||v.progressClassName),autoClose:!L.isLoading&&(A=L.autoClose,R=v.autoClose,A===!1||bo(A)&&A>0?A:R),deleteToast(){const W=h.get(z),{onClose:K,children:Y}=W.props;pt(K)&&K(S.isValidElement(Y)&&Y.props),g(Sp(W,"removed")),h.delete(z),x--,x<0&&(x=0),C.length>0?O(C.shift()):E()}};var A,R;G.closeButton=v.closeButton,L.closeButton===!1||xd(L.closeButton)?G.closeButton=L.closeButton:L.closeButton===!0&&(G.closeButton=!xd(v.closeButton)||v.closeButton);let M=_;S.isValidElement(_)&&!hr(_.type)?M=S.cloneElement(_,{closeToast:D,toastProps:G,data:te}):pt(_)&&(M=_({closeToast:D,toastProps:G,data:te}));const B={content:M,props:G,staleId:Q};v.limit&&v.limit>0&&x>v.limit&&U?C.push(B):bo(Z)?setTimeout(()=>{O(B)},Z):O(B)},setProps(_){v=_},setToggle:(_,L)=>{h.get(_).toggle=L},isToastActive:_=>b.some(L=>L===_),getSnapshot:()=>v.newestOnTop?m.reverse():m}}(a,i,OC);Qe.set(a,d);const c=d.observe(l);return wo.forEach(u=>eg(u.content,u.options)),wo=[],()=>{c(),Qe.delete(a)}},setProps(l){var d;(d=Qe.get(a))==null||d.setProps(l)},getSnapshot(){var l;return(l=Qe.get(a))==null?void 0:l.getSnapshot()}}}(e)).current;s(e);const o=S.useSyncExternalStore(t,n,n);return{getToastToRender:function(i){if(!o)return[];const a=new Map;return o.forEach(l=>{const{position:d}=l.props;a.has(d)||a.set(d,[]),a.get(d).push(l)}),Array.from(a,l=>i(l[0],l[1]))},isToastActive:Zv,count:o==null?void 0:o.length}}function RC(e){const[t,n]=S.useState(!1),[s,o]=S.useState(!1),i=S.useRef(null),a=S.useRef({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:l,pauseOnHover:d,closeToast:c,onClick:u,closeOnClick:p}=e;var g,N;function x(){n(!0)}function C(){n(!1)}function b(h){const y=i.current;a.canDrag&&y&&(a.didMove=!0,t&&C(),a.delta=e.draggableDirection==="x"?h.clientX-a.start:h.clientY-a.start,a.start!==h.clientX&&(a.canCloseOnClick=!1),y.style.transform=`translate3d(${e.draggableDirection==="x"?`${a.delta}px, var(--y)`:`0, calc(${a.delta}px + var(--y))`},0)`,y.style.opacity=""+(1-Math.abs(a.delta/a.removalDistance)))}function m(){document.removeEventListener("pointermove",b),document.removeEventListener("pointerup",m);const h=i.current;if(a.canDrag&&a.didMove&&h){if(a.canDrag=!1,Math.abs(a.delta)>a.removalDistance)return o(!0),e.closeToast(),void e.collapseAll();h.style.transition="transform 0.2s, opacity 0.2s",h.style.removeProperty("transform"),h.style.removeProperty("opacity")}}(N=Qe.get((g={id:e.toastId,containerId:e.containerId,fn:n}).containerId||1))==null||N.setToggle(g.id,g.fn),S.useEffect(()=>{if(e.pauseOnFocusLoss)return document.hasFocus()||C(),window.addEventListener("focus",x),window.addEventListener("blur",C),()=>{window.removeEventListener("focus",x),window.removeEventListener("blur",C)}},[e.pauseOnFocusLoss]);const v={onPointerDown:function(h){if(e.draggable===!0||e.draggable===h.pointerType){a.didMove=!1,document.addEventListener("pointermove",b),document.addEventListener("pointerup",m);const y=i.current;a.canCloseOnClick=!0,a.canDrag=!0,y.style.transition="none",e.draggableDirection==="x"?(a.start=h.clientX,a.removalDistance=y.offsetWidth*(e.draggablePercent/100)):(a.start=h.clientY,a.removalDistance=y.offsetHeight*(e.draggablePercent===80?1.5*e.draggablePercent:e.draggablePercent)/100)}},onPointerUp:function(h){const{top:y,bottom:E,left:T,right:O}=i.current.getBoundingClientRect();h.nativeEvent.type!=="touchend"&&e.pauseOnHover&&h.clientX>=T&&h.clientX<=O&&h.clientY>=y&&h.clientY<=E?C():x()}};return l&&d&&(v.onMouseEnter=C,e.stacked||(v.onMouseLeave=x)),p&&(v.onClick=h=>{u&&u(h),a.canCloseOnClick&&c()}),{playToast:x,pauseToast:C,isRunning:t,preventExitTransition:s,toastRef:i,eventHandlers:v}}function IC(e){let{delay:t,isRunning:n,closeToast:s,type:o="default",hide:i,className:a,style:l,controlledProgress:d,progress:c,rtl:u,isIn:p,theme:g}=e;const N=i||d&&c===0,x={...l,animationDuration:`${t}ms`,animationPlayState:n?"running":"paused"};d&&(x.transform=`scaleX(${c})`);const C=An("Toastify__progress-bar",d?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${g}`,`Toastify__progress-bar--${o}`,{"Toastify__progress-bar--rtl":u}),b=pt(a)?a({rtl:u,type:o,defaultClassName:C}):An(C,a),m={[d&&c>=1?"onTransitionEnd":"onAnimationEnd"]:d&&c<1?null:()=>{p&&s()}};return I.createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":N},I.createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${g} Toastify__progress-bar--${o}`}),I.createElement("div",{role:"progressbar","aria-hidden":N?"true":"false","aria-label":"notification timer",className:b,style:x,...m}))}let FC=1;const tg=()=>""+FC++;function DC(e){return e&&(hr(e.toastId)||bo(e.toastId))?e.toastId:tg()}function Zs(e,t){return eg(e,t),t.toastId}function ja(e,t){return{...t,type:t&&t.type||e,toastId:DC(t)}}function ai(e){return(t,n)=>Zs(t,ja(e,n))}function oe(e,t){return Zs(e,ja("default",t))}oe.loading=(e,t)=>Zs(e,ja("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),oe.promise=function(e,t,n){let s,{pending:o,error:i,success:a}=t;o&&(s=hr(o)?oe.loading(o,n):oe.loading(o.render,{...n,...o}));const l={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},d=(u,p,g)=>{if(p==null)return void oe.dismiss(s);const N={type:u,...l,...n,data:g},x=hr(p)?{render:p}:p;return s?oe.update(s,{...N,...x}):oe(x.render,{...N,...x}),g},c=pt(e)?e():e;return c.then(u=>d("success",a,u)).catch(u=>d("error",i,u)),c},oe.success=ai("success"),oe.info=ai("info"),oe.error=ai("error"),oe.warning=ai("warning"),oe.warn=oe.warning,oe.dark=(e,t)=>Zs(e,ja("default",{theme:"dark",...t})),oe.dismiss=function(e){(function(t){var n;if(Jv()){if(t==null||hr(n=t)||bo(n))Qe.forEach(s=>{s.removeToast(t)});else if(t&&("containerId"in t||"id"in t)){const s=Qe.get(t.containerId);s?s.removeToast(t.id):Qe.forEach(o=>{o.removeToast(t.id)})}}else wo=wo.filter(s=>t!=null&&s.options.toastId!==t)})(e)},oe.clearWaitingQueue=function(e){e===void 0&&(e={}),Qe.forEach(t=>{!t.props.limit||e.containerId&&t.id!==e.containerId||t.clearQueue()})},oe.isActive=Zv,oe.update=function(e,t){t===void 0&&(t={});const n=((s,o)=>{var i;let{containerId:a}=o;return(i=Qe.get(a||1))==null?void 0:i.toasts.get(s)})(e,t);if(n){const{props:s,content:o}=n,i={delay:100,...s,...t,toastId:t.toastId||e,updateId:tg()};i.toastId!==e&&(i.staleId=e);const a=i.render||o;delete i.render,Zs(a,i)}},oe.done=e=>{oe.update(e,{progress:1})},oe.onChange=function(e){return yd.add(e),()=>{yd.delete(e)}},oe.play=e=>kp(!0,e),oe.pause=e=>kp(!1,e);const LC=typeof window<"u"?S.useLayoutEffect:S.useEffect,li=e=>{let{theme:t,type:n,isLoading:s,...o}=e;return I.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:t==="colored"?"currentColor":`var(--toastify-icon-color-${n})`,...o})},rc={info:function(e){return I.createElement(li,{...e},I.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(e){return I.createElement(li,{...e},I.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(e){return I.createElement(li,{...e},I.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(e){return I.createElement(li,{...e},I.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return I.createElement("div",{className:"Toastify__spinner"})}},BC=e=>{const{isRunning:t,preventExitTransition:n,toastRef:s,eventHandlers:o,playToast:i}=RC(e),{closeButton:a,children:l,autoClose:d,onClick:c,type:u,hideProgressBar:p,closeToast:g,transition:N,position:x,className:C,style:b,bodyClassName:m,bodyStyle:v,progressClassName:h,progressStyle:y,updateId:E,role:T,progress:O,rtl:_,toastId:L,deleteToast:z,isIn:H,isLoading:te,closeOnClick:Q,theme:Z}=e,D=An("Toastify__toast",`Toastify__toast-theme--${Z}`,`Toastify__toast--${u}`,{"Toastify__toast--rtl":_},{"Toastify__toast--close-on-click":Q}),U=pt(C)?C({rtl:_,position:x,type:u,defaultClassName:D}):An(D,C),G=function(B){let{theme:W,type:K,isLoading:Y,icon:ee}=B,re=null;const ne={theme:W,type:K};return ee===!1||(pt(ee)?re=ee({...ne,isLoading:Y}):S.isValidElement(ee)?re=S.cloneElement(ee,ne):Y?re=rc.spinner():(se=>se in rc)(K)&&(re=rc[K](ne))),re}(e),A=!!O||!d,R={closeToast:g,type:u,theme:Z};let M=null;return a===!1||(M=pt(a)?a(R):S.isValidElement(a)?S.cloneElement(a,R):function(B){let{closeToast:W,theme:K,ariaLabel:Y="close"}=B;return I.createElement("button",{className:`Toastify__close-button Toastify__close-button--${K}`,type:"button",onClick:ee=>{ee.stopPropagation(),W(ee)},"aria-label":Y},I.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},I.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}(R)),I.createElement(N,{isIn:H,done:z,position:x,preventExitTransition:n,nodeRef:s,playToast:i},I.createElement("div",{id:L,onClick:c,"data-in":H,className:U,...o,style:b,ref:s},I.createElement("div",{...H&&{role:T},className:pt(m)?m({type:u}):An("Toastify__toast-body",m),style:v},G!=null&&I.createElement("div",{className:An("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!te})},G),I.createElement("div",null,l)),M,I.createElement(IC,{...E&&!A?{key:`pb-${E}`}:{},rtl:_,theme:Z,delay:d,isRunning:t,isIn:H,closeToast:g,hide:p,type:u,style:y,className:h,controlledProgress:A,progress:O||0})))},Za=function(e,t){return t===void 0&&(t=!1),{enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:t}},MC=Ja(Za("bounce",!0));Ja(Za("slide",!0));Ja(Za("zoom"));Ja(Za("flip"));const zC={position:"top-right",transition:MC,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};function $C(e){let t={...zC,...e};const n=e.stacked,[s,o]=S.useState(!0),i=S.useRef(null),{getToastToRender:a,isToastActive:l,count:d}=AC(t),{className:c,style:u,rtl:p,containerId:g}=t;function N(C){const b=An("Toastify__toast-container",`Toastify__toast-container--${C}`,{"Toastify__toast-container--rtl":p});return pt(c)?c({position:C,rtl:p,defaultClassName:b}):An(b,Li(c))}function x(){n&&(o(!0),oe.play())}return LC(()=>{if(n){var C;const b=i.current.querySelectorAll('[data-in="true"]'),m=12,v=(C=t.position)==null?void 0:C.includes("top");let h=0,y=0;Array.from(b).reverse().forEach((E,T)=>{const O=E;O.classList.add("Toastify__toast--stacked"),T>0&&(O.dataset.collapsed=`${s}`),O.dataset.pos||(O.dataset.pos=v?"top":"bot");const _=h*(s?.2:1)+(s?0:m*T);O.style.setProperty("--y",`${v?_:-1*_}px`),O.style.setProperty("--g",`${m}`),O.style.setProperty("--s",""+(1-(s?y:0))),h+=O.offsetHeight,y+=.025})}},[s,d,n]),I.createElement("div",{ref:i,className:"Toastify",id:g,onMouseEnter:()=>{n&&(o(!1),oe.pause())},onMouseLeave:x},a((C,b)=>{const m=b.length?{...u}:{...u,pointerEvents:"none"};return I.createElement("div",{className:N(C),style:m,key:`container-${C}`},b.map(v=>{let{content:h,props:y}=v;return I.createElement(BC,{...y,stacked:n,collapseAll:x,isIn:l(y.toastId,y.containerId),style:y.style,key:`toast-${y.key}`},h)}))}))}const tt=()=>{const e=new Date().getFullYear();return r.jsx(r.Fragment,{children:r.jsxs("div",{children:[r.jsx("div",{className:"footer_section layout_padding",children:r.jsxs("div",{className:"container",children:[r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-md-12"})}),r.jsx("div",{className:"footer_section_2",children:r.jsxs("div",{className:"row",children:[r.jsxs("div",{className:"col-md-4",children:[r.jsx("h2",{className:"useful_text",children:"QUICK LINKS"}),r.jsx("div",{className:"footer_menu",children:r.jsxs("ul",{children:[r.jsx("li",{children:r.jsx(ae,{to:"/",className:"link-primary text-decoration-none",children:"Home"})}),r.jsx("li",{children:r.jsx(ae,{to:"/about",className:"link-primary text-decoration-none",children:"About"})}),r.jsx("li",{children:r.jsx(ae,{to:"/services",className:"link-primary text-decoration-none",children:"Services"})}),r.jsx("li",{children:r.jsx(ae,{to:"/contact",className:"link-primary text-decoration-none",children:"Contact Us"})})]})})]}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("h2",{className:"useful_text",children:"Work Portfolio"}),r.jsx("p",{className:"lorem_text",children:"It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem"})]}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("h2",{className:"useful_text",children:"SIGN UP TO OUR NEWSLETTER"}),r.jsxs("div",{className:"form-group",children:[r.jsx("textarea",{className:"update_mail",placeholder:"Enter Your Email",rows:5,id:"comment",name:"Enter Your Email",defaultValue:""}),r.jsx("div",{className:"subscribe_bt",children:r.jsx("a",{href:"#",children:"Subscribe"})})]})]})]})}),r.jsx("div",{className:"social_icon",children:r.jsxs("ul",{children:[r.jsx("li",{children:r.jsx("a",{href:"#",children:r.jsx("i",{className:"fa fa-facebook","aria-hidden":"true"})})}),r.jsx("li",{children:r.jsx("a",{href:"#",children:r.jsx("i",{className:"fa fa-twitter","aria-hidden":"true"})})}),r.jsx("li",{children:r.jsx("a",{href:"#",children:r.jsx("i",{className:"fa fa-linkedin","aria-hidden":"true"})})}),r.jsx("li",{children:r.jsx("a",{href:"#",children:r.jsx("i",{className:"fa fa-instagram","aria-hidden":"true"})})})]})})]})}),r.jsx("div",{className:"copyright_section",children:r.jsx("div",{className:"container",children:r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-sm-12",children:r.jsxs("p",{className:"copyright_text",children:[e," All Rights Reserved."]})})})})})]})})},WC="/assets/logo-Cb1x1exd.png",Le=()=>{var o;const{user:e}=_e(i=>({...i.auth})),t=Ke(),n=hn(),s=()=>{t(gN()),n("/")};return r.jsx("div",{className:"navbar navbar-expand-lg w-100",style:{backgroundColor:"#000000",position:"fixed",top:0,left:0,right:0,zIndex:1e3},children:r.jsxs("div",{className:"container-fluid d-flex align-items-center justify-content-between",children:[r.jsxs("div",{className:"d-flex align-items-center",children:[r.jsx("img",{src:WC,alt:"logo",width:"75",height:"75",className:"img-fluid"}),r.jsx("p",{style:{display:"inline-block",fontStyle:"italic",fontSize:"14px",color:"white",margin:"0 0 0 10px"}})]}),r.jsxs("div",{className:"collapse navbar-collapse",id:"navbarSupportedContent",children:[r.jsxs("ul",{className:"navbar-nav ml-auto",children:[r.jsx("li",{className:"nav-item active",children:r.jsx(ae,{to:"/",className:"nav-link",style:{color:"#fda417",fontSize:"20px",fontWeight:"normal"},children:"Home"})}),r.jsx("li",{className:"nav-item",children:r.jsx(ae,{to:"/services",className:"nav-link",style:{fontSize:"20px",fontWeight:"normal"},children:"Services"})}),r.jsx("li",{className:"nav-item",children:r.jsx(ae,{to:"/searchmyproperties",className:"nav-link",style:{color:"#fda417",fontSize:"20px",fontWeight:"normal"},children:"Search Database"})}),r.jsx("li",{className:"nav-item",children:r.jsx(ae,{to:"/about",className:"nav-link",style:{fontSize:"20px",fontWeight:"normal"},children:"About"})}),r.jsx("li",{className:"nav-item",children:r.jsx(ae,{to:"/searchproperties",className:"nav-link",style:{color:"#fda417",fontSize:"20px",fontWeight:"normal"},children:"Search Properties"})}),r.jsx("li",{className:"nav-item",children:r.jsx(ae,{to:"/contact",className:"nav-link",style:{fontSize:"20px",fontWeight:"normal"},children:"Contact"})})]}),r.jsx("div",{className:"navbar-right",children:(o=e==null?void 0:e.result)!=null&&o._id?r.jsxs(r.Fragment,{children:[r.jsx(ae,{to:"/dashboard",style:{fontWeight:"bold",color:"#fda417",marginRight:"20px"},children:"Dashboard"}),r.jsx("span",{onClick:s,style:{fontWeight:"bold",color:"#fda417",cursor:"pointer"},className:"nav-link logout-link",children:"Logout"})]}):r.jsxs(r.Fragment,{children:[r.jsx(ae,{to:"/register",className:"nav-link",style:{fontWeight:"bold",color:"#fda417",marginRight:"20px"},children:"Register"}),r.jsx(ae,{to:"/login",className:"nav-link",style:{fontWeight:"bold",color:"#fda417"},children:"Login"})]})})]})]})})},UC=()=>r.jsxs(r.Fragment,{children:[r.jsx(Le,{}),r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{}),r.jsxs("div",{children:[r.jsx("div",{className:"header_section",children:r.jsx("div",{className:"banner_section layout_padding",children:r.jsxs("div",{id:"my_slider",className:"carousel slide","data-ride":"carousel",children:[r.jsxs("div",{className:"carousel-inner",children:[r.jsx("div",{className:"carousel-item active",children:r.jsx("div",{className:"container",children:r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-sm-12",children:r.jsxs("div",{className:"banner_taital_main",children:[r.jsx("h1",{className:"banner_taital",children:"Reinventing real estate investment"}),r.jsxs("p",{className:"banner_text",children:["Owners/operators, and real estate investment firms to excel in what they do best: finding new opportunities"," "]}),r.jsxs("div",{className:"btn_main",children:[r.jsx("div",{className:"started_text active",children:r.jsx("a",{href:"#",children:"Contact US"})}),r.jsx("div",{className:"started_text",children:r.jsx("a",{href:"#",children:"About Us"})})]})]})})})})}),r.jsx("div",{className:"carousel-item",children:r.jsx("div",{className:"container",children:r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-sm-12",children:r.jsxs("div",{className:"banner_taital_main",children:[r.jsx("h1",{className:"banner_taital",children:"streamline investment management"}),r.jsxs("p",{className:"banner_text",children:["Best possible experience to our customers and their investors."," "]}),r.jsxs("div",{className:"btn_main",children:[r.jsx("div",{className:"started_text active",children:r.jsx("a",{href:"#",children:"Contact US"})}),r.jsx("div",{className:"started_text",children:r.jsx("a",{href:"#",children:"About Us"})})]})]})})})})}),r.jsx("div",{className:"carousel-item",children:r.jsx("div",{className:"container",children:r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-sm-12",children:r.jsxs("div",{className:"banner_taital_main",children:[r.jsx("h1",{className:"banner_taital",children:"Increase your efficiency and security"}),r.jsxs("p",{className:"banner_text",children:["All-in-one real estate investment management platform with 100% security tools"," "]}),r.jsxs("div",{className:"btn_main",children:[r.jsx("div",{className:"started_text active",children:r.jsx("a",{href:"#",children:"Contact US"})}),r.jsx("div",{className:"started_text",children:r.jsx("a",{href:"#",children:"About Us"})})]})]})})})})})]}),r.jsx("a",{className:"carousel-control-prev",href:"#my_slider",role:"button","data-slide":"prev",children:r.jsx("i",{className:"fa fa-angle-left"})}),r.jsx("a",{className:"carousel-control-next",href:"#my_slider",role:"button","data-slide":"next",children:r.jsx("i",{className:"fa fa-angle-right"})})]})})}),r.jsx("div",{className:"services_section layout_padding",children:r.jsxs("div",{className:"container-fluid",children:[r.jsx("div",{className:"row",children:r.jsxs("div",{className:"col-sm-12",children:[r.jsx("h1",{className:"services_taital",children:"Our Services"}),r.jsx("p",{className:"services_text_1",children:"your documents, always and immediately within reach"})]})}),r.jsx("div",{className:"services_section_2",children:r.jsxs("div",{className:"row",children:[r.jsx("div",{className:"col-lg-3 col-sm-6",children:r.jsxs("div",{className:"box_main active",children:[r.jsx("div",{className:"service_img",children:r.jsx("img",{src:"images/icon-1.png"})}),r.jsx("h4",{className:"development_text",children:"Dedication Services"}),r.jsx("p",{className:"services_text",children:"Real estate investing even on a very small scale remains a tried and true means of building and individual cash flow and wealth"}),r.jsx("div",{className:"readmore_bt",children:r.jsx("a",{href:"#",children:"Read More"})})]})}),r.jsx("div",{className:"col-lg-3 col-sm-6",children:r.jsxs("div",{className:"box_main",children:[r.jsx("div",{className:"service_img",children:r.jsx("img",{src:"images/icon-2.png"})}),r.jsx("h4",{className:"development_text",children:"Building work Reports"}),r.jsx("p",{className:"services_text",children:"Deliver all the reports your investors need. Eliminate manual work and human errors with automatic distribution and allocation"}),r.jsx("div",{className:"readmore_bt",children:r.jsx("a",{href:"#",children:"Read More"})})]})}),r.jsx("div",{className:"col-lg-3 col-sm-6",children:r.jsxs("div",{className:"box_main",children:[r.jsx("div",{className:"service_img",children:r.jsx("img",{src:"images/icon-3.png"})}),r.jsx("h4",{className:"development_text",children:"Reporting continuously"}),r.jsx("p",{className:"services_text",children:"Streamlining investor interactions, gaining complete visibility into your data, and using smart filters to create automatic workflows"}),r.jsx("div",{className:"readmore_bt",children:r.jsx("a",{href:"#",children:"Read More"})})]})}),r.jsx("div",{className:"col-lg-3 col-sm-6",children:r.jsxs("div",{className:"box_main",children:[r.jsx("div",{className:"service_img",children:r.jsx("img",{src:"images/icon-4.png"})}),r.jsx("h4",{className:"development_text",children:"Manage your investment "}),r.jsx("p",{className:"services_text",children:"We offer a comprehensive set of tools and services to fully facilitate all your real estate investment management needs"}),r.jsx("div",{className:"readmore_bt",children:r.jsx("a",{href:"#",children:"Read More"})})]})})]})})]})})]}),r.jsx(tt,{})]}),qC=()=>r.jsxs(r.Fragment,{children:[r.jsx(Le,{}),r.jsxs("div",{className:"about_section layout_padding",children:[r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{}),r.jsx("div",{className:"container",children:r.jsxs("div",{className:"row",children:[r.jsxs("div",{className:"col-md-6",children:[r.jsx("h1",{className:"about_taital",children:"About Us"}),r.jsxs("p",{className:"about_text",children:["There are many variations of passages of Lorem Ipsum available, but the majority have suffered alteration in some form, by injected humour, or randomised words which don't look even slightly believable. If you are going to use a passage of Lorem Ipsum, you need to be sure there isn't anything embarrassing hidden in the middle of text. All"," "]}),r.jsx("div",{className:"read_bt_1",children:r.jsx("a",{href:"#",children:"Read More"})})]}),r.jsx("div",{className:"col-md-6",children:r.jsx("div",{className:"about_img",children:r.jsx("div",{className:"video_bt",children:r.jsx("div",{className:"play_icon",children:r.jsx("img",{src:"images/play-icon.png"})})})})})]})}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{})]}),r.jsx(tt,{})]}),VC=()=>r.jsxs(r.Fragment,{children:[r.jsx(Le,{}),r.jsxs("div",{className:"contact_section layout_padding",children:[r.jsx("div",{className:"container",children:r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-md-12",children:r.jsx("h1",{className:"contact_taital",children:"Contact Us"})})})}),r.jsx("div",{className:"container-fluid",children:r.jsx("div",{className:"contact_section_2",children:r.jsxs("div",{className:"row",children:[r.jsx("div",{className:"col-md-6",children:r.jsx("form",{action:!0,children:r.jsxs("div",{className:"mail_section_1",children:[r.jsx("input",{type:"text",className:"mail_text",placeholder:"Name",name:"Name"}),r.jsx("input",{type:"text",className:"mail_text",placeholder:"Phone Number",name:"Phone Number"}),r.jsx("input",{type:"text",className:"mail_text",placeholder:"Email",name:"Email"}),r.jsx("textarea",{className:"massage-bt",placeholder:"Massage",rows:5,id:"comment",name:"Massage",defaultValue:""}),r.jsx("div",{className:"send_bt",children:r.jsx("a",{href:"#",children:"SEND"})})]})})}),r.jsx("div",{className:"col-md-6 padding_left_15",children:r.jsx("div",{className:"contact_img",children:r.jsx("img",{src:"images/contact-img.png"})})})]})})})]}),r.jsx(tt,{})]});var nn=function(){return nn=Object.assign||function(e){for(var t,n=1,s=arguments.length;n{const[e,t]=S.useState(vb),[n,s]=S.useState(!1),{loading:o,error:i}=_e(E=>({...E.auth})),{title:a,email:l,password:d,firstName:c,middleName:u,lastName:p,confirmPassword:g,termsconditions:N,userType:x}=e,C=Ke(),b=hn();S.useEffect(()=>{i&&oe.error(i)},[i]),S.useEffect(()=>{s(a!=="None"&&l&&d&&c&&u&&p&&g&&N&&x!=="")},[a,l,d,c,u,p,g,N,x]);const m=E=>{if(E.preventDefault(),d!==g)return oe.error("Password should match");n?C(Ei({formValue:e,navigate:b,toast:oe})):oe.error("Please fill in all fields and select all checkboxes")},v=E=>E.charAt(0).toUpperCase()+E.slice(1),h=E=>{const{name:T,value:O,type:_,checked:L}=E.target;t(_==="checkbox"?z=>({...z,[T]:L}):z=>({...z,[T]:T==="email"||T==="password"||T==="confirmPassword"?O:v(O)}))},y=E=>{t(T=>({...T,userType:E.target.value}))};return r.jsxs(r.Fragment,{children:[r.jsx(Le,{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("section",{className:"card",style:{minHeight:"100vh",backgroundColor:"#FFFFFF"},children:r.jsx("div",{className:"container-fluid px-0",children:r.jsxs("div",{className:"row gy-4 align-items-center justify-content-center",children:[r.jsx("div",{className:"col-12 col-md-0 col-xl-20 text-center text-md-start"}),r.jsx("div",{className:"col-12 col-md-6 col-xl-5",children:r.jsx("div",{className:"card border-0 rounded-4 shadow-lg",style:{width:"100%"},children:r.jsxs("div",{className:"card-body p-3 p-md-4 p-xl-5",children:[r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-12",children:r.jsxs("div",{className:"mb-4",children:[r.jsx("h2",{className:"h3",children:"Registration"}),r.jsx("h3",{style:{color:"red"},children:'All fields are mandatory to enable "Sign up"'}),r.jsx("hr",{})]})})}),r.jsx("form",{onSubmit:m,children:r.jsxs("div",{className:"row gy-3 overflow-hidden",children:[r.jsx("div",{className:"col-12",children:r.jsxs("div",{className:"form-floating mb-3",children:[r.jsxs("label",{className:"form-label",children:["Please select the role. ",r.jsx("br",{}),r.jsx("br",{})]}),r.jsxs("div",{className:"form-check form-check-inline",children:[r.jsx("input",{className:"form-check-input",type:"radio",name:"userType",value:"Lender",checked:x==="Lender",onChange:y,required:!0}),r.jsx("label",{className:"form-check-label",children:"Lender"})]}),r.jsxs("div",{className:"form-check form-check-inline",children:[r.jsx("input",{className:"form-check-input",type:"radio",name:"userType",value:"Borrower",checked:x==="Borrower",onChange:y,required:!0}),r.jsxs("label",{className:"form-check-label",children:["Borrower"," "]}),r.jsx("br",{}),r.jsx("br",{})]})]})}),r.jsxs("div",{className:"col-12",children:[r.jsxs("select",{className:"form-floating mb-3 form-control","aria-label":"Default select example",name:"title",value:a,onChange:h,children:[r.jsx("option",{value:"None",children:"Please Select Title"}),r.jsx("option",{value:"Dr",children:"Dr"}),r.jsx("option",{value:"Prof",children:"Prof"}),r.jsx("option",{value:"Mr",children:"Mr"}),r.jsx("option",{value:"Miss",children:"Miss"})]}),r.jsx("br",{})]}),r.jsx("div",{className:"col-12",children:r.jsxs("div",{className:"form-floating mb-3",children:[r.jsx("input",{type:"text",className:"form-control",value:c,name:"firstName",onChange:h,placeholder:"First Name",required:"required"}),r.jsx("label",{htmlFor:"firstName",className:"form-label",children:"First Name"})]})}),r.jsx("div",{className:"col-12",children:r.jsxs("div",{className:"form-floating mb-3",children:[r.jsx("input",{type:"text",className:"form-control",value:u,name:"middleName",onChange:h,placeholder:"Middle Name",required:"required"}),r.jsx("label",{htmlFor:"middleName",className:"form-label",children:"Middle Name"})]})}),r.jsx("div",{className:"col-12",children:r.jsxs("div",{className:"form-floating mb-3",children:[r.jsx("input",{type:"text",className:"form-control",value:p,name:"lastName",onChange:h,placeholder:"Last Name",required:"required"}),r.jsx("label",{htmlFor:"lastName",className:"form-label",children:"Last Name"})]})}),r.jsx("div",{className:"col-12",children:r.jsxs("div",{className:"form-floating mb-3",children:[r.jsx("input",{type:"email",className:"form-control",value:l,name:"email",onChange:h,placeholder:"name@example.com",required:"required"}),r.jsx("label",{htmlFor:"email",className:"form-label",children:"Email"})]})}),r.jsx("div",{className:"col-12",children:r.jsxs("div",{className:"form-floating mb-3",children:[r.jsx("input",{type:"password",className:"form-control",value:d,name:"password",onChange:h,placeholder:"Password",required:"required"}),r.jsx("label",{htmlFor:"password",className:"form-label",children:"Password"})]})}),r.jsx("div",{className:"col-12",children:r.jsxs("div",{className:"form-floating mb-3",children:[r.jsx("input",{type:"password",className:"form-control",value:g,name:"confirmPassword",onChange:h,placeholder:"confirmPassword",required:"required"}),r.jsx("label",{htmlFor:"password",className:"form-label",children:"Retype Password"})]})}),r.jsx("div",{className:"col-12",children:r.jsxs("div",{className:"form-check",children:[r.jsx("input",{className:"form-check-input",type:"checkbox",id:"termsconditions",value:N,name:"termsconditions",checked:N,onChange:h,required:!0}),r.jsxs("label",{className:"form-check-label text-secondary",htmlFor:"iAgree",children:["I agree to the"," ",r.jsx("a",{href:"#!",className:"link-primary text-decoration-none",children:"terms and conditions"})]})]})}),r.jsx("div",{className:"col-12",children:r.jsx("div",{className:"d-grid",children:r.jsxs("button",{className:"btn btn-primary btn-lg",type:"submit",style:{backgroundColor:"#fda417",border:"#fda417"},disabled:!n||o,children:[o&&r.jsx(ng.Bars,{}),"Sign up"]})})})]})}),r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-12",children:r.jsx("div",{className:"d-flex gap-2 gap-md-4 flex-column flex-md-row justify-content-md-end mt-4",children:r.jsxs("p",{className:"m-0 text-secondary text-center",children:["Already have an account?"," ",r.jsx("a",{href:"#!",className:"link-primary text-decoration-none",children:"Sign in"})]})})})}),r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-12"})})]})})})]})})}),r.jsx(tt,{})]})},xb={email:"",password:""},yb=()=>{const[e,t]=S.useState(xb),{loading:n,error:s}=_e(u=>({...u.auth})),{email:o,password:i}=e,a=Ke(),l=hn();S.useEffect(()=>{s&&oe.error(s)},[s]);const d=u=>{u.preventDefault(),o&&i&&a(ki({formValue:e,navigate:l,toast:oe}))},c=u=>{let{name:p,value:g}=u.target;t({...e,[p]:g})};return r.jsxs(r.Fragment,{children:[r.jsx(Le,{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("section",{className:"py-19 py-md-5 py-xl-8",style:{minHeight:"100vh",backgroundColor:"#FFFFFF"},children:r.jsx("div",{className:"container-fluid px-0",children:r.jsxs("div",{className:"row gy-4 align-items-center justify-content-center",children:[r.jsx("div",{className:"col-12 col-md-6 col-xl-20 text-center text-md-start",children:r.jsx("div",{className:"text-bg-primary",children:r.jsxs("div",{className:"px-4",children:[r.jsx("hr",{className:"border-primary-subtle mb-4"}),r.jsx("p",{className:"lead mb-5",children:"A beautiful, easy-to-use, and secure Investor Portal that gives your investors everything they may need"}),r.jsx("div",{className:"text-endx",children:r.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:48,height:48,fill:"currentColor",className:"bi bi-grip-horizontal",viewBox:"0 0 16 16",children:r.jsx("path",{d:"M2 8a1 1 0 1 1 0 2 1 1 0 0 1 0-2zm0-3a1 1 0 1 1 0 2 1 1 0 0 1 0-2zm3 3a1 1 0 1 1 0 2 1 1 0 0 1 0-2zm0-3a1 1 0 1 1 0 2 1 1 0 0 1 0-2zm3 3a1 1 0 1 1 0 2 1 1 0 0 1 0-2zm0-3a1 1 0 1 1 0 2 1 1 0 0 1 0-2zm3 3a1 1 0 1 1 0 2 1 1 0 0 1 0-2zm0-3a1 1 0 1 1 0 2 1 1 0 0 1 0-2zm3 3a1 1 0 1 1 0 2 1 1 0 0 1 0-2zm0-3a1 1 0 1 1 0 2 1 1 0 0 1 0-2z"})})})]})})}),r.jsx("div",{className:"col-12 col-md-6 col-xl-5",children:r.jsx("div",{className:"card border-0 rounded-4 shadow-lg",style:{width:"100%"},children:r.jsxs("div",{className:"card-body p-3 p-md-4 p-xl-5",children:[r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-12",children:r.jsx("div",{className:"mb-4",children:r.jsx("h2",{className:"h3",children:"Please Login"})})})}),r.jsx("form",{method:"POST",children:r.jsxs("div",{className:"row gy-3 overflow-hidden",children:[r.jsx("div",{className:"col-12"}),r.jsx("div",{className:"col-12"}),r.jsx("div",{className:"col-12",children:r.jsxs("div",{className:"form-floating mb-3",children:[r.jsx("input",{type:"email",className:"form-control",id:"email",placeholder:"name@example.com",value:o,name:"email",onChange:c,required:!0}),r.jsx("label",{htmlFor:"email",className:"form-label",children:"Email"})]})}),r.jsx("div",{className:"col-12",children:r.jsxs("div",{className:"form-floating mb-3",children:[r.jsx("input",{type:"password",className:"form-control",id:"password",placeholder:"Password",value:i,name:"password",onChange:c,required:!0}),r.jsx("label",{htmlFor:"password",className:"form-label",children:"Password"})]})}),r.jsx("div",{className:"col-12",children:r.jsxs("div",{className:"form-check",children:[r.jsx("input",{className:"form-check-input",type:"checkbox",name:"iAgree",id:"iAgree",required:!0}),r.jsxs("label",{className:"form-check-label text-secondary",htmlFor:"iAgree",children:["Remember me"," "]})]})}),r.jsx("div",{className:"col-12",children:r.jsx("div",{className:"d-grid",children:r.jsxs("button",{className:"btn btn-primary btn-lg",type:"submit",name:"signin",value:"Sign in",onClick:d,style:{backgroundColor:"#fda417",border:"#fda417"},children:[n&&r.jsx(ng.Bars,{}),"Sign In"]})})})]})}),r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-12",children:r.jsx("div",{className:"d-flex gap-2 gap-md-4 flex-column flex-md-row justify-content-md-end mt-4",children:r.jsxs("p",{className:"m-0 text-secondary text-center",children:["Don't have an account?"," ",r.jsx(ae,{to:"/register",className:"link-primary text-decoration-none",children:"Register"}),r.jsx(ae,{to:"/forgotpassword",className:"nav-link",children:"Forgot Password"})]})})})}),r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-12"})})]})})})]})})}),r.jsx(tt,{})]})},Bs="/assets/samplepic-BM_cnzgz.jpg";var rg={exports:{}};(function(e,t){(function(n,s){e.exports=s()})(qg,function(){return function(n){function s(i){if(o[i])return o[i].exports;var a=o[i]={exports:{},id:i,loaded:!1};return n[i].call(a.exports,a,a.exports,s),a.loaded=!0,a.exports}var o={};return s.m=n,s.c=o,s.p="",s(0)}([function(n,s,o){function i(N){return N&&N.__esModule?N:{default:N}}function a(N,x){if(!(N instanceof x))throw new TypeError("Cannot call a class as a function")}function l(N,x){if(!N)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!x||typeof x!="object"&&typeof x!="function"?N:x}function d(N,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof x);N.prototype=Object.create(x&&x.prototype,{constructor:{value:N,enumerable:!1,writable:!0,configurable:!0}}),x&&(Object.setPrototypeOf?Object.setPrototypeOf(N,x):N.__proto__=x)}Object.defineProperty(s,"__esModule",{value:!0});var c=function(){function N(x,C){for(var b=0;b1)for(var E=1;E1?u-1:0),g=1;g2?p-2:0),N=2;N1){for(var Z=Array(Q),D=0;D"u"||_.$$typeof!==m)){var G=typeof y=="function"?y.displayName||y.name||"Unknown":y;L&&d(_,G),z&&c(_,G)}return h(y,L,z,H,te,N.current,_)},h.createFactory=function(y){var E=h.createElement.bind(null,y);return E.type=y,E},h.cloneAndReplaceKey=function(y,E){var T=h(y.type,E,y.ref,y._self,y._source,y._owner,y.props);return T},h.cloneElement=function(y,E,T){var O,_=g({},y.props),L=y.key,z=y.ref,H=y._self,te=y._source,Q=y._owner;if(E!=null){a(E)&&(z=E.ref,Q=N.current),l(E)&&(L=""+E.key);var Z;y.type&&y.type.defaultProps&&(Z=y.type.defaultProps);for(O in E)b.call(E,O)&&!v.hasOwnProperty(O)&&(E[O]===void 0&&Z!==void 0?_[O]=Z[O]:_[O]=E[O])}var D=arguments.length-2;if(D===1)_.children=T;else if(D>1){for(var U=Array(D),G=0;G1?c-1:0),p=1;p2?u-2:0),g=2;g.")}return O}function c(T,O){if(T._store&&!T._store.validated&&T.key==null){T._store.validated=!0;var _=y.uniqueKey||(y.uniqueKey={}),L=d(O);if(!_[L]){_[L]=!0;var z="";T&&T._owner&&T._owner!==g.current&&(z=" It was passed a child from "+T._owner.getName()+"."),i.env.NODE_ENV!=="production"&&v(!1,'Each child in an array or iterator should have a unique "key" prop.%s%s See https://fb.me/react-warning-keys for more information.%s',L,z,N.getCurrentStackAddendum(T))}}}function u(T,O){if(typeof T=="object"){if(Array.isArray(T))for(var _=0;_1?Y-1:0),re=1;re"u"||B===null)return""+B;var W=Q(B);if(W==="object"){if(B instanceof Date)return"date";if(B instanceof RegExp)return"regexp"}return W}function D(B){var W=Z(B);switch(W){case"array":case"object":return"an "+W;case"boolean":case"date":case"regexp":return"a "+W;default:return W}}function U(B){return B.constructor&&B.constructor.name?B.constructor.name:R}var G=typeof Symbol=="function"&&Symbol.iterator,A="@@iterator",R="<>",M={array:m("array"),bool:m("boolean"),func:m("function"),number:m("number"),object:m("object"),string:m("string"),symbol:m("symbol"),any:v(),arrayOf:h,element:y(),instanceOf:E,node:L(),objectOf:O,oneOf:T,oneOfType:_,shape:z};return C.prototype=Error.prototype,M.checkPropTypes=u,M.PropTypes=M,M}}).call(s,o(1))},function(n,s){function o(l){var d=/[=:]/g,c={"=":"=0",":":"=2"},u=(""+l).replace(d,function(p){return c[p]});return"$"+u}function i(l){var d=/(=0|=2)/g,c={"=0":"=","=2":":"},u=l[0]==="."&&l[1]==="$"?l.substring(2):l.substring(1);return(""+u).replace(d,function(p){return c[p]})}var a={escape:o,unescape:i};n.exports=a},function(n,s,o){(function(i){var a=o(5),l=o(2),d=function(m){var v=this;if(v.instancePool.length){var h=v.instancePool.pop();return v.call(h,m),h}return new v(m)},c=function(m,v){var h=this;if(h.instancePool.length){var y=h.instancePool.pop();return h.call(y,m,v),y}return new h(m,v)},u=function(m,v,h){var y=this;if(y.instancePool.length){var E=y.instancePool.pop();return y.call(E,m,v,h),E}return new y(m,v,h)},p=function(m,v,h,y){var E=this;if(E.instancePool.length){var T=E.instancePool.pop();return E.call(T,m,v,h,y),T}return new E(m,v,h,y)},g=function(m){var v=this;m instanceof v||(i.env.NODE_ENV!=="production"?l(!1,"Trying to release an instance into a pool of a different type."):a("25")),m.destructor(),v.instancePool.length{const[e,t]=S.useState("propertydetails"),n=()=>{e==="propertydetails"&&t("Images"),e==="Images"&&t("Accounting"),e==="Accounting"&&t("IAB"),e==="IAB"&&t("IAB")},s=()=>{e==="Images"&&t("propertydetails"),e==="Accounting"&&t("Images"),e==="IAB"&&t("Accounting")},o=Ke(),{status:i,error:a}=_e(f=>f.property),{user:l}=_e(f=>({...f.auth})),d=[1,2,3,4,5,6,7,8,9,10],[c,u]=S.useState({propertyTaxInfo:[{propertytaxowned:"0",ownedyear:"0",taxassessed:"0",taxyear:"0"}],images:[{title:"",file:""}],googleMapLink:"",renovationRisk:null,purchaseCost:"0",costPaidAtoB:[{title:"Closing Fees - Settlement Fee",price:"0"},{title:"Closing Fees - Owner's Title Insurance",price:"0"},{title:"Courier Fees",price:"0"},{title:"Wire Fee",price:"0"},{title:"E recording Fee",price:"0"},{title:"Recording Fee",price:"0"},{title:"Property Tax",price:"0"}],credits:[{title:"Credits",price:"0"}],cashAdjustments:[{title:"Cash Adjustments",price:"0"}],incidentalCost:[{title:"Accounting Fees",price:"0"},{title:"Bank Charges",price:"0"},{title:"Legal Fees",price:"0"},{title:"Property Taxes",price:"0"},{title:"Travel Expenses",price:"0"}],carryCosts:[{title:"Electricity",price:"0"},{title:"Water and Sewer",price:"0"},{title:"Natural Gas",price:"0"},{title:"Trash and Recycling",price:"0"},{title:"Internet and Cable",price:"0"},{title:"Heating Oil/Propane",price:"0"},{title:"HOA fees",price:"0"},{title:"Dump fees",price:"0"},{title:"Insurance",price:"0"},{title:"Interest on Loans",price:"0"},{title:"Loan Payment",price:"0"},{title:"Property Taxes",price:"0"},{title:"Security",price:"0"},{title:"Real Estates fees",price:"0"}],renovationCost:[{title:"Demolition: Removing existing structures or finishes",price:"0"},{title:"Framing: Making structural changes or additions",price:"0"},{title:"Plumbing: Installing or modifying plumbing systems",price:"0"},{title:"Electrical: Updating wiring and fixtures",price:"0"},{title:"HVAC: Installing or upgrading heating and cooling systems",price:"0"},{title:"Insulation: Adding or replacing insulation",price:"0"},{title:"Drywall: Hanging and finishing drywall",price:"0"},{title:"Interior Finishes: Painting, flooring, cabinetry, and fixtures",price:"0"},{title:"Exterior Work: Addressing siding, roofing, or landscaping, if applicable",price:"0"},{title:"Final Inspections: Ensuring everything meets codes",price:"0"},{title:"Punch List: Completing any remaining task",price:"0"}],sellingPriceBtoC:"0",costPaidOutofClosing:[{title:"Buyers Agent Commission",price:"0"},{title:"Sellers Agent Commission",price:"0"},{title:"Home Warranty",price:"0"},{title:"Document Preparation",price:"0"},{title:"Excise Tax",price:"0"},{title:"Legal Fees",price:"0"},{title:"Wire Fees/courier Fees",price:"0"},{title:"County Taxes",price:"0"},{title:"HOA Fee",price:"0"},{title:"Payoff of 1st Mortgage",price:"0"},{title:"Payoff of 2nd Mortgage",price:"0"},{title:"Payoff 3rd Mortgage",price:"0"}],adjustments:[{title:"adjustments",price:"0"}],incomestatement:[{title:"income statement",price:"0"},{title:"income statement",price:"0"}],fundspriortoclosing:"0",shorttermrental:"0",OtherIncome:"0",InsuranceClaim:"0",LongTermRental:"0",FinancingCostClosingCost:"0",IAB:[{title:"IAB Title",URL:"Please enter URL"}]}),[p,g]=S.useState(!1),N=(f,j)=>{console.log("File received:",f);const w=[...c.images];w[j].file=f.base64,u({...c,images:w})},x=()=>{u({...c,images:[...c.images,{title:"",file:""}]})},C=f=>{const j=c.images.filter((w,F)=>F!==f);u({...c,images:j})},b=(f,j)=>{const w=[...c.images];w[f].title=j.target.value,u({...c,images:w})},m=(f,j,w)=>{const{name:F,value:q}=f.target;if(w==="propertyTaxInfo"){const X=[...c.propertyTaxInfo];X[j][F]=q,u({...c,propertyTaxInfo:X})}else u({...c,[F]:q})},v=()=>{u({...c,propertyTaxInfo:[...c.propertyTaxInfo,{propertytaxowned:"",ownedyear:"",taxassessed:"",taxyear:""}]})},h=f=>{const j=c.propertyTaxInfo.filter((w,F)=>F!==f);u({...c,propertyTaxInfo:j})},y=()=>{u(f=>({...f,costPaidAtoB:[...f.costPaidAtoB,{title:"",price:""}]}))},E=f=>{const j=c.costPaidAtoB.filter((w,F)=>F!==f);u(w=>({...w,costPaidAtoB:j}))},T=(f,j,w)=>{const F=[...c.costPaidAtoB];F[f][j]=w,u(q=>({...q,costPaidAtoB:F}))},O=(f,j)=>{let w=f.target.value;if(w=w.replace(/^\$/,"").trim(),/^\d*\.?\d*$/.test(w)||w===""){const q=c.costPaidAtoB.map((X,ce)=>ce===j?{...X,price:w,isInvalid:!1}:X);u({...c,costPaidAtoB:q})}else{const q=c.costPaidAtoB.map((X,ce)=>ce===j?{...X,isInvalid:!0}:X);u({...c,costPaidAtoB:q})}},_=()=>{const f=c.costPaidAtoB.reduce((w,F)=>{const q=parseFloat(F.price)||0;return w+q},0),j=parseFloat(c.purchaseCost)||0;return f+j},L=()=>{u(f=>({...f,credits:[...f.credits,{title:"",price:""}]}))},z=f=>{const j=c.credits.filter((w,F)=>F!==f);u(w=>({...w,credits:j}))},H=(f,j,w)=>{const F=[...c.credits];F[f][j]=w,u(q=>({...q,credits:F}))},te=(f,j)=>{const w=f.target.value;if(/^\d*\.?\d*$/.test(w)||w===""){const q=c.credits.map((X,ce)=>ce===j?{...X,price:w,isInvalid:!1}:X);u({...c,credits:q})}else{const q=c.credits.map((X,ce)=>ce===j?{...X,isInvalid:!0}:X);u({...c,credits:q})}},Q=()=>c.credits.reduce((f,j)=>{const w=parseFloat(j.price);return f+(isNaN(w)?0:w)},0),Z=()=>{const f=c.costPaidAtoB.reduce((F,q)=>{const X=parseFloat(q.price)||0;return F+X},0),j=c.credits.reduce((F,q)=>{const X=parseFloat(q.price)||0;return F+X},0),w=parseFloat(c.purchaseCost)||0;return f+j+w},D=()=>{u(f=>({...f,cashAdjustments:[...f.cashAdjustments,{title:"",price:""}]}))},U=f=>{const j=c.cashAdjustments.filter((w,F)=>F!==f);u(w=>({...w,cashAdjustments:j}))},G=(f,j,w)=>{const F=[...c.cashAdjustments];F[f][j]=w,u(q=>({...q,cashAdjustments:F}))},A=(f,j)=>{const w=f.target.value;if(/^\d*\.?\d*$/.test(w)||w===""){const q=c.cashAdjustments.map((X,ce)=>ce===j?{...X,price:w,isInvalid:!1}:X);u({...c,cashAdjustments:q})}else{const q=c.cashAdjustments.map((X,ce)=>ce===j?{...X,isInvalid:!0}:X);u({...c,cashAdjustments:q})}},R=()=>c.cashAdjustments.reduce((f,j)=>{const w=parseFloat(j.price);return f+(isNaN(w)?0:w)},0),M=()=>{const f=R(),j=Q(),w=_();return f+j+w},B=()=>{u(f=>({...f,incidentalCost:[...f.incidentalCost,{title:"",price:""}]}))},W=f=>{const j=c.incidentalCost.filter((w,F)=>F!==f);u(w=>({...w,incidentalCost:j}))},K=(f,j,w)=>{const F=[...c.incidentalCost];F[f][j]=w,u(q=>({...q,incidentalCost:F}))},Y=(f,j)=>{const w=f.target.value;if(/^\d*\.?\d*$/.test(w)||w===""){const q=c.incidentalCost.map((X,ce)=>ce===j?{...X,price:w,isInvalid:!1}:X);u({...c,incidentalCost:q})}else{const q=c.incidentalCost.map((X,ce)=>ce===j?{...X,isInvalid:!0}:X);u({...c,incidentalCost:q})}},ee=()=>c.incidentalCost.reduce((f,j)=>{const w=parseFloat(j.price);return f+(isNaN(w)?0:w)},0),re=()=>{u(f=>({...f,carryCosts:[...f.carryCosts,{title:"",price:""}]}))},ne=f=>{const j=c.carryCosts.filter((w,F)=>F!==f);u(w=>({...w,carryCosts:j}))},se=(f,j,w)=>{const F=[...c.carryCosts];F[f][j]=w,u(q=>({...q,carryCosts:F}))},le=(f,j)=>{const w=f.target.value;if(/^\d*\.?\d*$/.test(w)||w===""){const q=c.carryCosts.map((X,ce)=>ce===j?{...X,price:w,isInvalid:!1}:X);u({...c,carryCosts:q})}else{const q=c.carryCosts.map((X,ce)=>ce===j?{...X,isInvalid:!0}:X);u({...c,carryCosts:q})}},de=()=>c.carryCosts.reduce((f,j)=>{const w=parseFloat(j.price);return f+(isNaN(w)?0:w)},0),ge=()=>{u(f=>({...f,renovationCost:[...f.renovationCost,{title:"",price:""}]}))},Be=f=>{const j=c.renovationCost.filter((w,F)=>F!==f);u(w=>({...w,renovationCost:j}))},Ct=(f,j,w)=>{const F=[...c.renovationCost];F[f][j]=w,u(q=>({...q,renovationCost:F}))},zt=(f,j)=>{const w=f.target.value;if(/^\d*\.?\d*$/.test(w)||w===""){const q=c.renovationCost.map((X,ce)=>ce===j?{...X,price:w,isInvalid:!1}:X);u({...c,renovationCost:q})}else{const q=c.renovationCost.map((X,ce)=>ce===j?{...X,isInvalid:!0}:X);u({...c,renovationCost:q})}},he=()=>c.renovationCost.reduce((f,j)=>{const w=parseFloat(j.price);return f+(isNaN(w)?0:w)},0),$t=()=>{const f=ee(),j=de(),w=he();return f+j+w},Ye=()=>{const f=$t(),j=M();return f+j},Qn=()=>{u(f=>({...f,costPaidOutofClosing:[...f.costPaidOutofClosing,{title:"",price:""}]}))},Zt=f=>{const j=c.costPaidOutofClosing.filter((w,F)=>F!==f);u(w=>({...w,costPaidOutofClosing:j}))},ys=(f,j,w)=>{const F=[...c.costPaidOutofClosing];F[f][j]=w,u(q=>({...q,costPaidOutofClosing:F}))},js=(f,j)=>{const w=f.target.value;if(/^\d*\.?\d*$/.test(w)||w===""){const q=c.costPaidOutofClosing.map((X,ce)=>ce===j?{...X,price:w,isInvalid:!1}:X);u({...c,costPaidOutofClosing:q})}else{const q=c.costPaidOutofClosing.map((X,ce)=>ce===j?{...X,isInvalid:!0}:X);u({...c,costPaidOutofClosing:q})}},Xn=()=>c.costPaidOutofClosing.reduce((f,j)=>{const w=parseFloat(j.price);return f+(isNaN(w)?0:w)},0),Wt=()=>{const f=c.sellingPriceBtoC,j=Xn();return f-j},gn=()=>{u(f=>({...f,adjustments:[...f.adjustments,{title:"",price:""}]}))},Ut=f=>{const j=c.adjustments.filter((w,F)=>F!==f);u(w=>({...w,adjustments:j}))},fe=(f,j,w)=>{const F=[...c.adjustments];F[f][j]=w,u(q=>({...q,adjustments:F}))},qt=(f,j)=>{const w=f.target.value;if(/^\d*\.?\d*$/.test(w)||w===""){const q=c.adjustments.map((X,ce)=>ce===j?{...X,price:w,isInvalid:!1}:X);u({...c,adjustments:q})}else{const q=c.adjustments.map((X,ce)=>ce===j?{...X,isInvalid:!0}:X);u({...c,adjustments:q})}},xn=()=>c.adjustments.reduce((f,j)=>{const w=parseFloat(j.price);return f+(isNaN(w)?0:w)},0),Bo=()=>{const f=Wt(),j=xn();return f+j},Ns=()=>{u(f=>({...f,incomestatement:[...f.incomestatement,{title:"",price:""}]}))},Mo=f=>{const j=c.incomestatement.filter((w,F)=>F!==f);u(w=>({...w,incomestatement:j}))},rl=(f,j,w)=>{const F=[...c.incomestatement];F[f][j]=w,u(q=>({...q,incomestatement:F}))},sl=(f,j)=>{const w=f.target.value;if(/^\d*\.?\d*$/.test(w)||w===""){const q=c.incomestatement.map((X,ce)=>ce===j?{...X,price:w,isInvalid:!1}:X);u({...c,incomestatement:q})}else{const q=c.incomestatement.map((X,ce)=>ce===j?{...X,isInvalid:!0}:X);u({...c,incomestatement:q})}},Cs=()=>c.incomestatement.reduce((f,j)=>{const w=parseFloat(j.price);return f+(isNaN(w)?0:w)},0),Jn=()=>{const f=Cs(),j=Wt();return f+j},Zn=()=>{const f=isNaN(parseFloat(Jn()))?0:parseFloat(Jn()),j=isNaN(parseFloat(c.shorttermrental))?0:parseFloat(c.shorttermrental),w=isNaN(parseFloat(c.OtherIncome))?0:parseFloat(c.OtherIncome),F=isNaN(parseFloat(c.InsuranceClaim))?0:parseFloat(c.InsuranceClaim),q=isNaN(parseFloat(c.LongTermRental))?0:parseFloat(c.LongTermRental),X=isNaN(parseFloat(Ye()))?0:parseFloat(Ye());return f+j+w+F+q-X},en=()=>{const f=Zn(),j=c.FinancingCostClosingCost;return f-j},Er=()=>en(),bs=()=>{var f,j,w,F,q,X;if(c.address&&c.city&&c.state&&c.county&&c.zip&&c.parcel&&c.subdivision&&c.legal&&c.costpersqft&&c.propertyType&&c.lotacres&&c.yearBuild&&c.totallivingsqft&&c.beds&&c.baths&&c.stories&&c.garage&&c.garagesqft&&c.poolspa&&c.fireplaces&&c.ac&&c.heating&&c.buildingstyle&&c.sitevacant&&c.extwall&&c.roofing&&c.totalSqft&&c.renovationRisk&&c.closeDateAtoB&&c.closeDateBtoC&&c.purchaseCost&&c.sellingPriceBtoC&&c.fundspriortoclosing&&c.shorttermrental&&c.OtherIncome&&c.InsuranceClaim&&c.LongTermRental&&c.FinancingCostClosingCost){const ce=Er(),Wo=_(),ll=Z(),cl=R(),dl=ee(),ul=Q(),fl=M(),pl=de(),ml=he(),hl=$t(),vl=Ye(),gl=Xn(),xl=xn(),Ig=Bo(),Fg=Wt(),Dg=Wt(),Lg=Cs(),Bg=Jn(),Mg=Zn(),zg=en(),yl={...c,userfirstname:(f=l==null?void 0:l.result)==null?void 0:f.firstName,usermiddlename:(j=l==null?void 0:l.result)==null?void 0:j.middleName,userlastname:(w=l==null?void 0:l.result)==null?void 0:w.lastName,usertitle:(F=l==null?void 0:l.result)==null?void 0:F.title,useremail:(q=l==null?void 0:l.result)==null?void 0:q.email,userId:(X=l==null?void 0:l.result)==null?void 0:X.userId,totalPurchaseCosts:Wo,totalcredits:ul,totalPurchaseCostsaftercredits:ll,totalcashAdjustments:cl,totalcashrequiredonsettlement:fl,totalincidentalCost:dl,totalcarryCosts:pl,totalrenovationCost:ml,totalRenovationsandHoldingCost:hl,totalCoststoBuyAtoB:vl,totalcostPaidOutofClosing:gl,totaladjustments:xl,fundsavailablefordistribution:Ig,grossproceedsperHUD:Fg,totalCosttoSellBtoC:Dg,totalincomestatement:Lg,netBtoCsalevalue:Bg,netprofitbeforefinancingcosts:Mg,NetProfit:zg,rateofreturn:ce};Array.isArray(c.propertyTaxInfo)&&c.propertyTaxInfo.length>0?yl.propertyTaxInfo=c.propertyTaxInfo:yl.propertyTaxInfo=[],o(Ai(yl)),g(!0)}else oe.error("Please fill all fields before submitting",{position:"top-right",autoClose:3e3})};S.useEffect(()=>{p&&(i==="succeeded"?(oe.success("Property submitted successfully!",{position:"top-right",autoClose:3e3}),g(!1)):i==="failed"&&(oe.error(`Failed to submit: ${a}`,{position:"top-right",autoClose:3e3}),g(!1)))},[i,a,p]);const[ol,zo]=S.useState("0 days"),$o=(f,j)=>{if(f&&j){const w=new Date(f),F=new Date(j),q=Math.abs(F-w),X=Math.ceil(q/(1e3*60*60*24));zo(`${X} days`)}else zo("0 days")},il=()=>{u(f=>({...f,IAB:[...f.IAB,{title:"",URL:""}]}))},al=f=>{const j=c.IAB.filter((w,F)=>F!==f);u(w=>({...w,IAB:j}))},k=(f,j,w)=>{const F=[...c.IAB];F[f][j]=w,u(q=>({...q,IAB:F}))},P=(f,j,w)=>{const F=[...c.IAB];F[f][j]=w,u(q=>({...q,IAB:F}))};return r.jsx(r.Fragment,{children:r.jsxs("div",{className:"container tabs-wrap",children:[r.jsx(Le,{}),r.jsxs("ul",{className:"nav nav-tabs",role:"tablist",children:[r.jsx("li",{role:"presentation",className:e==="propertydetails"?"active tab":"tab",children:r.jsx("a",{onClick:()=>t("propertydetails"),role:"tab",children:"Property Details"})}),r.jsx("li",{role:"presentation",className:e==="Images"?"active tab":"tab",children:r.jsx("a",{onClick:()=>t("Images"),role:"tab",children:"Images, Maps"})}),r.jsx("li",{role:"presentation",className:e==="Accounting"?"active tab":"tab",children:r.jsx("a",{onClick:()=>t("Accounting"),role:"tab",children:"Accounting"})}),r.jsx("li",{role:"presentation",className:e==="IAB"?"active tab":"tab",children:r.jsx("a",{onClick:()=>t("IAB"),role:"tab",children:"IAB"})})]}),r.jsxs("div",{className:"tab-content",children:[e==="propertydetails"&&r.jsxs("div",{role:"tabpanel",className:"card tab-pane active",children:[r.jsxs("form",{children:[r.jsx("h3",{style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:"Property Location"}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Property Address",r.jsx("input",{type:"text",className:"form-control",name:"address",value:c.address,onChange:m,required:!0})]})}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["City",r.jsx("input",{type:"text",className:"form-control",name:"city",value:c.city,onChange:m,required:!0})]})}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["State",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"state",value:c.state,onChange:m,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"Alaska",children:"Alaska"}),r.jsx("option",{value:"Alabama",children:"Alabama"}),r.jsx("option",{value:"Arkansas",children:"Arkansas"}),r.jsx("option",{value:"Arizona",children:"Arizona"}),r.jsx("option",{value:"California",children:"California"}),r.jsx("option",{value:"Colorado",children:"Colorado"}),r.jsx("option",{value:"Connecticut",children:"Connecticut"}),r.jsx("option",{value:"District Of Columbia",children:"District Of Columbia"}),r.jsx("option",{value:"Delaware",children:"Delaware"}),r.jsx("option",{value:"Florida",children:"Florida"}),r.jsx("option",{value:"Georgia",children:"Georgia"}),r.jsx("option",{value:"Hawaii",children:"Hawaii"}),r.jsx("option",{value:"Iowa",children:"Iowa"}),r.jsx("option",{value:"Idaho",children:"Idaho"}),r.jsx("option",{value:"Illinois",children:"Illinois"}),r.jsx("option",{value:"Indiana",children:"Indiana"}),r.jsx("option",{value:"Kansas",children:"Kansas"}),r.jsx("option",{value:"Kentucky",children:"Kentucky"}),r.jsx("option",{value:"Louisiana",children:"Louisiana"}),r.jsx("option",{value:"Massachusetts",children:"Massachusetts"}),r.jsx("option",{value:"Maryland",children:"Maryland"}),r.jsx("option",{value:"Michigan",children:"Michigan"}),r.jsx("option",{value:"Minnesota",children:"Minnesota"}),r.jsx("option",{value:"Missouri",children:"Missouri"}),r.jsx("option",{value:"Mississippi",children:"Mississippi"}),r.jsx("option",{value:"Montana",children:"Montana"}),r.jsx("option",{value:"North Carolina",children:"North Carolina"}),r.jsx("option",{value:"North Dakota",children:"North Dakota"}),r.jsx("option",{value:"Nebraska",children:"Nebraska"}),r.jsx("option",{value:"New Hampshire",children:"New Hampshire"}),r.jsx("option",{value:"New Jersey",children:"New Jersey"}),r.jsx("option",{value:"New Mexico",children:"New Mexico"}),r.jsx("option",{value:"Nevada",children:"Nevada"}),r.jsx("option",{value:"New York",children:"New York"}),r.jsx("option",{value:"Ohio",children:"Ohio"}),r.jsx("option",{value:"Oklahoma",children:"Oklahoma"}),r.jsx("option",{value:"Oregon",children:"Oregon"}),r.jsx("option",{value:"Pennsylvania",children:"Pennsylvania"}),r.jsx("option",{value:"Rhode Island",children:"Rhode Island"}),r.jsx("option",{value:"South Carolina",children:"South Carolina"}),r.jsx("option",{value:"South Dakota",children:"South Dakota"}),r.jsx("option",{value:"Tennessee",children:"Tennessee"}),r.jsx("option",{value:"Texas",children:"Texas"}),r.jsx("option",{value:"Texas",children:"Travis"}),r.jsx("option",{value:"Utah",children:"Utah"}),r.jsx("option",{value:"Virginia",children:"Virginia"}),r.jsx("option",{value:"Vermont",children:"Vermont"}),r.jsx("option",{value:"Washington",children:"Washington"}),r.jsx("option",{value:"Wisconsin",children:"Wisconsin"}),r.jsx("option",{value:"West Virginia",children:"West Virginia"}),r.jsx("option",{value:"Wyoming",children:"Wyoming"})]})]})})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsxs("div",{className:"col-md-4",children:["County",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"county",value:c.county,onChange:m,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"Abbeville",children:"Abbeville"}),r.jsx("option",{value:"Aiken",children:"Aiken"}),r.jsx("option",{value:"Allendale",children:"Allendale"}),r.jsx("option",{value:"Anderson",children:"Anderson"}),r.jsx("option",{value:"Bamberg",children:"Bamberg"}),r.jsx("option",{value:"Barnwell",children:"Barnwell"}),r.jsx("option",{value:"Beaufort",children:"Beaufort"}),r.jsx("option",{value:"Berkeley",children:"Berkeley"}),r.jsx("option",{value:"Calhoun",children:"Calhoun"}),r.jsx("option",{value:"Charleston",children:"Charleston"}),r.jsx("option",{value:"Cherokee",children:"Cherokee"}),r.jsx("option",{value:"Chester",children:"Chester"}),r.jsx("option",{value:"Chesterfield",children:"Chesterfield"}),r.jsx("option",{value:"Clarendon",children:"Clarendon"}),r.jsx("option",{value:"Colleton",children:"Colleton"}),r.jsx("option",{value:"Darlington",children:"Darlington"}),r.jsx("option",{value:"Dillon",children:"Dillon"}),r.jsx("option",{value:"Dorchester",children:"Dorchester"}),r.jsx("option",{value:"Edgefield",children:"Edgefield"}),r.jsx("option",{value:"Fairfield",children:"Fairfield"}),r.jsx("option",{value:"Florence",children:"Florence"}),r.jsx("option",{value:"Georgetown",children:"Georgetown"}),r.jsx("option",{value:"Greenville",children:"Greenville"}),r.jsx("option",{value:"Greenwood",children:"Greenwood"}),r.jsx("option",{value:"Hampton",children:"Hampton"}),r.jsx("option",{value:"Horry",children:"Horry"}),r.jsx("option",{value:"Jasper",children:"Jasper"}),r.jsx("option",{value:"Kershaw",children:"Kershaw"}),r.jsx("option",{value:"Lancaster",children:"Lancaster"}),r.jsx("option",{value:"Laurens",children:"Laurens"}),r.jsx("option",{value:"Lee",children:"Lee"}),r.jsx("option",{value:"Lexington",children:"Lexington"}),r.jsx("option",{value:"Marion",children:"Marion"}),r.jsx("option",{value:"Marlboro",children:"Marlboro"}),r.jsx("option",{value:"McCormick",children:"McCormick"}),r.jsx("option",{value:"Newberry",children:"Newberry"}),r.jsx("option",{value:"Oconee",children:"Oconee"}),r.jsx("option",{value:"Orangeburg",children:"Orangeburg"}),r.jsx("option",{value:"Pickens",children:"Pickens"}),r.jsx("option",{value:"Richland",children:"Richland"}),r.jsx("option",{value:"Saluda",children:"Saluda"}),r.jsx("option",{value:"Spartanburg",children:"Spartanburg"}),r.jsx("option",{value:"Sumter",children:"Sumter"}),r.jsx("option",{value:"Union",children:"Union"}),r.jsx("option",{value:"Williamsburg",children:"Williamsburg"}),r.jsx("option",{value:"York",children:"York"})]})]}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Zip",r.jsx("input",{type:"text",className:"form-control",name:"zip",value:c.zip,onChange:m,required:!0})]})}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Parcel",r.jsx("input",{type:"text",className:"form-control",name:"parcel",value:c.parcel,onChange:m,required:!0})]})})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Sub division",r.jsx("input",{type:"text",className:"form-control",name:"subdivision",value:c.subdivision,onChange:m,required:!0})]})}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Legal Description",r.jsx("textarea",{type:"text",className:"form-control",name:"legal",value:c.legal,onChange:m,required:!0})]})}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Cost per SQFT",r.jsx("input",{type:"text",className:"form-control",name:"costpersqft",value:c.costpersqft,onChange:m,required:!0})]})})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsxs("div",{className:"col-md-4",children:["Property Type",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"propertyType",value:c.propertyType,onChange:m,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"Residential",children:"Residential"}),r.jsx("option",{value:"Land",children:"Land"}),r.jsx("option",{value:"Commercial",children:"Commercial"}),r.jsx("option",{value:"Industrial",children:"Industrial"}),r.jsx("option",{value:"Water",children:"Water"})]})]}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Lot Acres/Sqft",r.jsx("input",{type:"text",className:"form-control",name:"lotacres",value:c.lotacres,onChange:m,required:!0})]})}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Year Build",r.jsx("input",{type:"text",className:"form-control",name:"yearBuild",value:c.yearBuild,onChange:m,required:!0})]})})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Total Living SQFT",r.jsx("input",{type:"text",className:"form-control",name:"totallivingsqft",value:c.totallivingsqft,onChange:m,required:!0})]})}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Beds",r.jsx("input",{type:"text",className:"form-control",name:"beds",value:c.beds,onChange:m,required:!0})]})}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Baths",r.jsx("input",{type:"text",className:"form-control",name:"baths",value:c.baths,onChange:m,required:!0})]})})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsxs("div",{className:"col-md-4",children:["Stories",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"stories",value:c.stories,onChange:m,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"0",children:"0"}),r.jsx("option",{value:"1",children:"1"}),r.jsx("option",{value:"2",children:"2"}),r.jsx("option",{value:"3",children:"3"}),r.jsx("option",{value:"4",children:"4"}),r.jsx("option",{value:"5",children:"5"}),r.jsx("option",{value:"6",children:"6"}),r.jsx("option",{value:"7",children:"7"}),r.jsx("option",{value:"8",children:"8"}),r.jsx("option",{value:"9",children:"9"}),r.jsx("option",{value:"10",children:"10"})]})]}),r.jsxs("div",{className:"col-md-4",children:["Garage",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"garage",value:c.garage,onChange:m,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"0",children:"0"}),r.jsx("option",{value:"1",children:"1"}),r.jsx("option",{value:"2",children:"2"}),r.jsx("option",{value:"3",children:"3"}),r.jsx("option",{value:"4",children:"4"}),r.jsx("option",{value:"5",children:"5"})]})]}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Garage SQFT",r.jsx("input",{type:"text",className:"form-control",name:"garagesqft",value:c.garagesqft,onChange:m,required:!0})]})})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsxs("div",{className:"col-md-4",children:["Pool/SPA",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"poolspa",value:c.poolspa,onChange:m,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"N/A",children:"N/A"}),r.jsx("option",{value:"Yes- Pool Only",children:"Yes- Pool Only"}),r.jsx("option",{value:"Yes- SPA only",children:"Yes- SPA only"}),r.jsx("option",{value:"Yes - Both Pool and SPA",children:"Yes - Both Pool and SPA"}),r.jsx("option",{value:"4",children:"None"})]})]}),r.jsxs("div",{className:"col-md-4",children:["Fire places",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"fireplaces",value:c.fireplaces,onChange:m,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"N/A",children:"N/A"}),r.jsx("option",{value:"yes",children:"Yes"}),r.jsx("option",{value:"no",children:"No"})]})]}),r.jsxs("div",{className:"col-md-4",children:["A/C",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"ac",value:c.ac,onChange:m,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"N/A",children:"N/A"}),r.jsx("option",{value:"Central",children:"Central"}),r.jsx("option",{value:"Heat Pump",children:"Heat Pump"}),r.jsx("option",{value:"Warm Air",children:"Warm Air"}),r.jsx("option",{value:"Forced Air",children:"Forced Air"}),r.jsx("option",{value:"Gas",children:"Gas"})]})]})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsxs("div",{className:"col-md-4",children:["Heating",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"heating",value:c.heating,onChange:m,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"N/A",children:"N/A"}),r.jsx("option",{value:"Central",children:"Central"}),r.jsx("option",{value:"Heat Pump",children:"Heat Pump"}),r.jsx("option",{value:"Warm Air",children:"Warm Air"}),r.jsx("option",{value:"Forced Air",children:"Forced Air"}),r.jsx("option",{value:"Gas",children:"Gas"})]})]}),r.jsxs("div",{className:"col-md-4",children:["Building Style",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"buildingstyle",value:c.buildingstyle,onChange:m,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"One Story",children:"One Story"}),r.jsx("option",{value:"Craftsman",children:"Craftsman"}),r.jsx("option",{value:"Log/Cabin",children:"Log/Cabin"}),r.jsx("option",{value:"Split-Level",children:"Split-Level"}),r.jsx("option",{value:"Split-Foyer",children:"Split-Foyer"}),r.jsx("option",{value:"Stick Built",children:"Stick Built"}),r.jsx("option",{value:"Single wide",children:"Single wide"}),r.jsx("option",{value:"Double wide",children:"Double wide"}),r.jsx("option",{value:"Duplex",children:"Duplex"}),r.jsx("option",{value:"Triplex",children:"Triplex"}),r.jsx("option",{value:"Quadruplex",children:"Quadruplex"}),r.jsx("option",{value:"Two Story",children:"Two Story"}),r.jsx("option",{value:"Victorian",children:"Victorian"}),r.jsx("option",{value:"Tudor",children:"Tudor"}),r.jsx("option",{value:"Modern",children:"Modern"}),r.jsx("option",{value:"Art Deco",children:"Art Deco"}),r.jsx("option",{value:"Bungalow",children:"Bungalow"}),r.jsx("option",{value:"Mansion",children:"Mansion"}),r.jsx("option",{value:"Farmhouse",children:"Farmhouse"}),r.jsx("option",{value:"Conventional",children:"Conventional"}),r.jsx("option",{value:"Ranch",children:"Ranch"}),r.jsx("option",{value:"Ranch with Basement",children:"Ranch with Basement"}),r.jsx("option",{value:"Cape Cod",children:"Cape Cod"}),r.jsx("option",{value:"Contemporary",children:"Contemporary"}),r.jsx("option",{value:"Colonial",children:"Colonial"}),r.jsx("option",{value:"Mediterranean",children:"Mediterranean"})]})]}),r.jsxs("div",{className:"col-md-4",children:["Site Vacant",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"sitevacant",value:c.sitevacant,onChange:m,required:!0,children:[r.jsx("option",{value:"",children:"Please select"}),r.jsx("option",{value:"Yes",children:"Yes"}),r.jsx("option",{value:"No",children:"No"})]})]})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsxs("div",{className:"col-md-4",children:["Ext Wall",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"extwall",value:c.extwall,onChange:m,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"N/A",children:"N/A"}),r.jsx("option",{value:"Brick",children:"Brick"}),r.jsx("option",{value:"Brick/Vinyl Siding",children:"Brick/Vinyl Siding"}),r.jsx("option",{value:"Wood/Vinyl Siding",children:"Wood/Vinyl Siding"}),r.jsx("option",{value:"Brick/Wood Siding",children:"Brick/Wood Siding"}),r.jsx("option",{value:"Stone",children:"Stone"}),r.jsx("option",{value:"Masonry",children:"Masonry"}),r.jsx("option",{value:"Metal",children:"Metal"}),r.jsx("option",{value:"Fiberboard",children:"Fiberboard"}),r.jsx("option",{value:"Asphalt Siding",children:"Asphalt Siding"}),r.jsx("option",{value:"Concrete Block",children:"Concrete Block"}),r.jsx("option",{value:"Gable",children:"Gable"}),r.jsx("option",{value:"Brick Veneer",children:"Brick Veneer"}),r.jsx("option",{value:"Frame",children:"Frame"}),r.jsx("option",{value:"Siding",children:"Siding"}),r.jsx("option",{value:"Cement/Wood Fiber Siding",children:"Cement/Wood Fiber Siding"}),r.jsx("option",{value:"Fiber/Cement Siding",children:"Fiber/Cement Siding"}),r.jsx("option",{value:"Wood Siding",children:"Wood Siding"}),r.jsx("option",{value:"Vinyl Siding",children:"Vinyl Siding"}),r.jsx("option",{value:"Aluminium Siding",children:"Aluminium Siding"}),r.jsx("option",{value:"Wood/Vinyl Siding",children:"Alum/Vinyl Siding"})]})]}),r.jsxs("div",{className:"col-md-4",children:["Roofing",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"roofing",value:c.roofing,onChange:m,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"N/A",children:"N/A"}),r.jsx("option",{value:"Asphalt Shingle",children:"Asphalt Shingle"}),r.jsx("option",{value:"Green Roofs",children:"Green Roofs"}),r.jsx("option",{value:"Built-up Roofing",children:"Built-up Roofing"}),r.jsx("option",{value:"Composition Shingle",children:"Composition Shingle"}),r.jsx("option",{value:"Composition Shingle Heavy",children:"Composition Shingle Heavy"}),r.jsx("option",{value:"Solar tiles",children:"Solar tiles"}),r.jsx("option",{value:"Metal",children:"Metal"}),r.jsx("option",{value:"Stone-coated steel",children:"Stone-coated steel"}),r.jsx("option",{value:"Slate",children:"Slate"}),r.jsx("option",{value:"Rubber Slate",children:"Rubber Slate"}),r.jsx("option",{value:"Clay and Concrete tiles",children:"Clay and Concrete tiles"})]})]}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Total SQFT",r.jsx("input",{type:"text",className:"form-control",name:"totalSqft",value:c.totalSqft,onChange:m,required:!0})]})})]}),r.jsxs("h3",{style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:[r.jsx("br",{}),"Property Tax Information"]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),c.propertyTaxInfo.map((f,j)=>r.jsxs("div",{className:"row gy-4",children:[r.jsx("div",{className:"col-md-3",children:r.jsxs("div",{className:"form-floating mb-3",children:["Property Tax Owned",r.jsx("input",{type:"text",className:"form-control",name:"propertytaxowned",value:f.propertytaxowned,onChange:w=>m(w,j,"propertyTaxInfo"),required:!0})]})}),r.jsx("div",{className:"col-md-2",children:r.jsxs("div",{className:"form-floating mb-2",children:["Owned Year",r.jsx("input",{type:"text",className:"form-control",name:"ownedyear",value:f.ownedyear,onChange:w=>m(w,j,"propertyTaxInfo"),required:!0})]})}),r.jsx("div",{className:"col-md-2",children:r.jsxs("div",{className:"form-floating mb-2",children:["Tax Assessed",r.jsx("input",{type:"text",className:"form-control",name:"taxassessed",value:f.taxassessed,onChange:w=>m(w,j,"propertyTaxInfo"),required:!0})]})}),r.jsx("div",{className:"col-md-2",children:r.jsxs("div",{className:"form-floating mb-2",children:["Tax Year",r.jsx("input",{type:"text",className:"form-control",name:"taxyear",value:f.taxyear,onChange:w=>m(w,j,"propertyTaxInfo"),required:!0})]})}),r.jsx("div",{className:"col-md-3",children:r.jsxs("div",{className:"form-floating mb-2",children:[r.jsx("br",{}),r.jsx("button",{className:"btn btn-danger",onClick:()=>h(j),style:{height:"25px",width:"35px"},children:"X"})]})})]},j)),r.jsx("button",{className:"btn btn-secondary",onClick:v,children:"+ Add Another Property Tax Info"})]}),r.jsx("button",{className:"btn btn-primary continue",onClick:n,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Continue"})]}),e==="Images"&&r.jsxs("div",{role:"tabpanel",className:"card tab-pane active",children:[r.jsxs("h3",{style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:["Upload Images"," "]}),r.jsxs("form",{children:[c.images.map((f,j)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:f.title,placeholder:"Image Title",onChange:w=>b(j,w)})}),r.jsxs("div",{className:"col-md-4 d-flex align-items-center",children:[r.jsx(Pu,{multiple:!1,onDone:w=>N(w,j)}),r.jsx("button",{type:"button",className:"btn btn-danger",onClick:()=>C(j),style:{marginLeft:"5px"},children:"Delete"})]}),f.file&&r.jsxs(r.Fragment,{children:[r.jsx("p",{children:"Base64 Data:"})," ",r.jsxs("pre",{children:[f.file.slice(0,100),"..."]})," ",r.jsx("div",{className:"col-md-12",children:r.jsx("img",{src:f.file,alt:"uploaded",style:{width:"150px",height:"150px",objectFit:"cover"}})})]})]},j)),r.jsx("button",{type:"button",className:"btn btn-primary",onClick:x,style:{backgroundColor:"#fda417",border:"#fda417"},children:"+ Add Image"}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"mb-3",children:[r.jsx("label",{htmlFor:"googleMapLink",className:"form-label",children:r.jsxs("h3",{style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:["Google Maps Link"," "]})}),r.jsx("input",{type:"text",className:"form-control",name:"googleMapLink",value:c.googleMapLink,onChange:m,placeholder:"Enter Google Maps link"})]}),c.googleMapLink&&r.jsx("iframe",{title:"Google Map",width:"100%",height:"300",src:`https://www.google.com/maps/embed/v1/view?key=YOUR_API_KEY¢er=${c.googleMapLink}&zoom=10`,frameBorder:"0",allowFullScreen:!0})]}),r.jsx("button",{className:"btn btn-primary back",onClick:s,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Go Back"})," ",r.jsx("button",{className:"btn btn-primary continue",onClick:n,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Continue"})]}),e==="Accounting"&&r.jsxs("div",{className:"card",style:{color:"#fda417",border:"1px solid #fda417",padding:"10px",borderRadius:"8px"},children:[r.jsx("br",{}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Close Date A to B",required:!0,disabled:!0})}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"date",className:"form-control",name:"closeDateAtoB",value:c.closeDateAtoB,onChange:f=>{const j=f.target.value;u({...c,closeDateAtoB:j}),$o(j,c.closeDateBtoC)},placeholder:"Close Date A to B",style:{textAlign:"right"},required:!0})}),r.jsx("div",{children:r.jsxs("p",{children:[r.jsxs("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:["[M-D-Y]"," "]}),":"," ",r.jsx("span",{style:{color:"#000000",fontSize:"14px",fontWeight:"normal"},children:new Date(c.closeDateAtoB).toLocaleDateString("en-US",{month:"numeric",day:"numeric",year:"numeric"})})]})})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Close Date B to C",required:!0,disabled:!0})}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"date",className:"form-control",name:"closeDateBtoC",value:c.closeDateBtoC,onChange:f=>{const j=f.target.value;u({...c,closeDateBtoC:j}),$o(c.closeDateAtoB,j)},placeholder:"Close Date B to C",style:{textAlign:"right"},required:!0})}),r.jsx("div",{children:r.jsxs("p",{children:[r.jsxs("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:["[M-D-Y] :"," "]}),r.jsx("span",{style:{color:"#000000",fontSize:"14px",fontWeight:"normal"},children:new Date(c.closeDateBtoC).toLocaleDateString("en-US",{month:"numeric",day:"numeric",year:"numeric"})})]})})]}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Renovation Risk"}),r.jsx("div",{className:"col-md-7",children:d.map(f=>r.jsxs("div",{className:"form-check form-check-inline",children:[r.jsx("input",{className:"form-check-input",type:"radio",name:"renovationRisk",id:`renovationRisk${f}`,value:f,checked:c.renovationRisk===f,onChange:j=>{const w=parseInt(j.target.value,10);u({...c,renovationRisk:w})}}),r.jsx("label",{className:"form-check-label",htmlFor:`renovationRisk${f}`,children:f})]},f))})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Rate of Return"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"rateofreturn",value:`$ ${Er().toFixed(2)}`,readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Turn Time"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:ol,readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("br",{}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Purchase Price"}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${c.isPurchaseCostInvalid?"is-invalid":""}`,value:`$ ${c.purchaseCost}`,name:"purchaseCost",onChange:f=>{let j=f.target.value.replace(/[^\d.]/g,"");const w=/^\d*\.?\d*$/.test(j);u({...c,purchaseCost:j,isPurchaseCostInvalid:!w})},onKeyPress:f=>{const j=f.charCode;(j<48||j>57)&&j!==46&&(f.preventDefault(),u({...c,isPurchaseCostInvalid:!0}))},placeholder:"Enter Purchase Cost",style:{textAlign:"right"},required:!0}),c.isPurchaseCostInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Costs paid out of Closing Hud A to B:"}),c.costPaidAtoB.map((f,j)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:f.title,onChange:w=>T(j,"title",w.target.value),placeholder:"Title",required:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${f.isInvalid?"is-invalid":""}`,value:`$ ${f.price}`,onChange:w=>O(w,j),placeholder:"Price",style:{textAlign:"right"},required:!0}),f.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),r.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:r.jsx("button",{className:"btn btn-danger",onClick:()=>E(j),style:{marginLeft:"5px"},children:"x"})})]},j)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{onClick:y,className:"btn btn-primary back",style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Extra Cost"]})}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Purchase Cost"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalPurchaseCosts",value:`$ ${_().toFixed(2)}`,readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Credits received on settlement:"}),c.credits.map((f,j)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:f.title,onChange:w=>H(j,"title",w.target.value),placeholder:"credits",required:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${f.isInvalid?"is-invalid":""}`,value:f.price,onChange:w=>te(w,j),placeholder:"Price",style:{textAlign:"right"},required:!0}),f.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),r.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:r.jsx("button",{className:"btn btn-danger",onClick:()=>z(j),style:{marginLeft:"5px"},children:"x"})})]},j)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:L,style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add credits"]})}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total credits received on settlement"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalcredits",value:Q(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Purchase Cost after Credits Received"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalPurchaseCostsaftercredits",value:Z(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Cash Adjustments:"}),c.cashAdjustments.map((f,j)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:f.title,onChange:w=>G(j,"title",w.target.value),placeholder:"Title",required:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${f.isInvalid?"is-invalid":""}`,value:f.price,onChange:w=>A(w,j),placeholder:"Price",style:{textAlign:"right"},required:!0}),f.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),r.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:r.jsx("button",{className:"btn btn-danger",onClick:()=>U(j),style:{marginLeft:"5px"},children:"x"})})]},j)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:D,style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Cash Adjustments"]})}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Cash Adjustments on Settlement"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalcashAdjustments",value:R(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Cash Required on Settlement"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalcashrequiredonsettlement",value:M(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Incidental Cost:"}),c.incidentalCost.map((f,j)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:f.title,onChange:w=>K(j,"title",w.target.value),placeholder:"Title",required:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${f.isInvalid?"is-invalid":""}`,value:f.price,onChange:w=>Y(w,j),placeholder:"Price",style:{textAlign:"right"},required:!0}),f.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),r.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:r.jsx("button",{className:"btn btn-danger",onClick:()=>W(j),style:{marginLeft:"5px"},children:"x"})})]},j)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:B,style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Incidental Cost"]})}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Incidental Cost"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalincidentalCost",value:ee(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Carry Costs:"}),c.carryCosts.map((f,j)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:f.title,onChange:w=>se(j,"title",w.target.value),placeholder:"Title",required:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${f.isInvalid?"is-invalid":""}`,value:f.price,onChange:w=>le(w,j),placeholder:"Price",style:{textAlign:"right"},required:!0}),f.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),r.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:r.jsx("button",{className:"btn btn-danger",onClick:()=>ne(j),style:{marginLeft:"5px"},children:"x"})})]},j)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:re,style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Carry Cost"]})}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Carry Cost"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalcarryCosts",value:de(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Reno/Construction"}),c.renovationCost.map((f,j)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:f.title,onChange:w=>Ct(j,"title",w.target.value),placeholder:"Title",required:!0,style:{fontSize:"10px"}})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${f.isInvalid?"is-invalid":""}`,value:f.price,onChange:w=>zt(w,j),placeholder:"Price",style:{textAlign:"right"},required:!0}),f.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),r.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:r.jsx("button",{className:"btn btn-danger",onClick:()=>Be(j),style:{marginLeft:"5px"},children:"x"})})]},j)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:ge,style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Reno/Construction"]})}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Renovation Cost"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalrenovationCost",value:he(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Renovations & Holding Cost"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalRenovationsandHoldingCost",value:$t(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Costs to Buy A to B"}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:"form-control",name:"totalCoststoBuyAtoB",value:Ye(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0}),c.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Selling Price B to C"}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${c.isPurchaseCostInvalid?"is-invalid":""}`,name:"sellingPriceBtoC",value:c.sellingPriceBtoC,onChange:f=>{const j=f.target.value,w=/^\d*\.?\d*$/.test(j);u({...c,sellingPriceBtoC:j,isPurchaseCostInvalid:!w})},onKeyPress:f=>{const j=f.charCode;(j<48||j>57)&&j!==46&&(f.preventDefault(),u({...c,isPurchaseCostInvalid:!0}))},placeholder:"Enter Purchase Cost",style:{textAlign:"right"},required:!0}),c.isPurchaseCostInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Less:Costs paid out of closing Hud B to C:"}),c.costPaidOutofClosing.map((f,j)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:f.title,onChange:w=>ys(j,"title",w.target.value),placeholder:"Title",required:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${f.isInvalid?"is-invalid":""}`,value:f.price,onChange:w=>js(w,j),placeholder:"Price",style:{textAlign:"right"},required:!0}),f.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),r.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:r.jsx("button",{className:"btn btn-danger",onClick:()=>Zt(j),style:{marginLeft:"5px"},children:"x"})})]},j)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:Qn,style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Cost Paid Out of Closing"]})}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total cost paid out of closing"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalcostPaidOutofClosing",value:Xn(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Cost to Sell B to C"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalCosttoSellBtoC",value:Wt(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Gross Proceeds per HUD"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"grossproceedsperHUD",value:Wt(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Adjustments:"}),c.adjustments.map((f,j)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:f.title,onChange:w=>fe(j,"title",w.target.value),placeholder:"Title",required:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${f.isInvalid?"is-invalid":""}`,value:f.price,onChange:w=>qt(w,j),placeholder:"Price",style:{textAlign:"right"},required:!0}),f.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),r.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:r.jsx("button",{className:"btn btn-danger",onClick:()=>Ut(j),style:{marginLeft:"5px"},children:"x"})})]},j)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:gn,style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Adjustments"]})}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Adjustments"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totaladjustments",value:xn(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Funds Available for distribution"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"fundsavailablefordistribution",value:Bo(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Income Statement Adjustments:"}),c.incomestatement.map((f,j)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:f.title,onChange:w=>rl(j,"title",w.target.value),placeholder:"Title",required:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${f.isInvalid?"is-invalid":""}`,value:f.price,onChange:w=>sl(w,j),placeholder:"Price",style:{textAlign:"right"},required:!0}),f.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),r.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:r.jsx("button",{className:"btn btn-danger",onClick:()=>Mo(j),style:{marginLeft:"5px"},children:"x"})})]},j)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:Ns,style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Income Statement"]})}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Income Statement Adjustment"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalincomestatement",value:Cs(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Net B to C Sale Value"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"netBtoCsalevalue",value:Jn(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Net Profit Computation"}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Total Costs to Buy A to B",required:!0,disabled:!0})}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalCoststoBuyAtoBagain",value:Ye(),style:{textAlign:"right"},required:!0})})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Funds Prior to Closing",required:!0,disabled:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${c.isfundspriortoclosingInvalid?"is-invalid":""}`,value:c.fundspriortoclosing,name:"fundspriortoclosing",onChange:f=>{const j=f.target.value,w=/^\d*\.?\d*$/.test(j);u({...c,fundspriortoclosing:j,isfundspriortoclosingInvalid:!w})},onKeyPress:f=>{const j=f.charCode;(j<48||j>57)&&j!==46&&(f.preventDefault(),u({...c,isfundspriortoclosingInvalid:!0}))},style:{textAlign:"right"},required:!0}),c.isfundspriortoclosingInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Net B to C Sale Value",required:!0,disabled:!0})}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"netBtoCsalevalue",value:Jn(),style:{textAlign:"right"},required:!0})})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Short Term Rental",required:!0,disabled:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${c.isPurchaseCostInvalid?"is-invalid":""}`,value:c.shorttermrental,name:"shorttermrental",onChange:f=>{const j=f.target.value,w=/^\d*\.?\d*$/.test(j);u({...c,shorttermrental:j,isPurchaseCostInvalid:!w})},onKeyPress:f=>{const j=f.charCode;(j<48||j>57)&&j!==46&&(f.preventDefault(),u({...c,isPurchaseCostInvalid:!0}))},style:{textAlign:"right"},required:!0}),c.isPurchaseCostInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Other Income",required:!0,disabled:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${c.isPurchaseCostInvalid?"is-invalid":""}`,value:c.OtherIncome,name:"OtherIncome",onChange:f=>{const j=f.target.value,w=/^\d*\.?\d*$/.test(j);u({...c,OtherIncome:j,isPurchaseCostInvalid:!w})},onKeyPress:f=>{const j=f.charCode;(j<48||j>57)&&j!==46&&(f.preventDefault(),u({...c,isPurchaseCostInvalid:!0}))},style:{textAlign:"right"},required:!0}),c.isPurchaseCostInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Insurance Claim",required:!0,disabled:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${c.isPurchaseCostInvalid?"is-invalid":""}`,value:c.InsuranceClaim,name:"InsuranceClaim",onChange:f=>{const j=f.target.value,w=/^\d*\.?\d*$/.test(j);u({...c,InsuranceClaim:j,isPurchaseCostInvalid:!w})},onKeyPress:f=>{const j=f.charCode;(j<48||j>57)&&j!==46&&(f.preventDefault(),u({...c,isPurchaseCostInvalid:!0}))},style:{textAlign:"right"},required:!0}),c.isPurchaseCostInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Long Term Rental",required:!0,disabled:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${c.isPurchaseCostInvalid?"is-invalid":""}`,value:c.LongTermRental,name:"LongTermRental",onChange:f=>{const j=f.target.value,w=/^\d*\.?\d*$/.test(j);u({...c,LongTermRental:j,isPurchaseCostInvalid:!w})},onKeyPress:f=>{const j=f.charCode;(j<48||j>57)&&j!==46&&(f.preventDefault(),u({...c,isPurchaseCostInvalid:!0}))},style:{textAlign:"right"},required:!0}),c.isPurchaseCostInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Net Profit Before Financing Costs"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"netprofitbeforefinancingcosts",value:Zn(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Financing Cost/Other Closing Costs"}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${c.isFinancingCostClosingCostInvalid?"is-invalid":""}`,value:c.FinancingCostClosingCost,name:"FinancingCostClosingCost",onChange:f=>{const j=f.target.value,w=/^\d*\.?\d*$/.test(j);u({...c,FinancingCostClosingCost:j,isFinancingCostClosingCostInvalid:!w})},onKeyPress:f=>{const j=f.charCode;(j<48||j>57)&&j!==46&&(f.preventDefault(),u({...c,isFinancingCostClosingCostInvalid:!0}))},style:{textAlign:"right"},required:!0}),c.isFinancingCostClosingCostInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Net Profit"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"netprofit",value:en(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("button",{className:"btn btn-primary back",onClick:s,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Go Back"})," ",r.jsx("button",{type:"button",className:"btn btn-primary continue",style:{backgroundColor:"#fda417",border:"#fda417"},onClick:n,children:"Continue"})," "]}),r.jsx("br",{})]}),e==="IAB"&&r.jsxs("div",{role:"tabpanel",className:"card tab-pane active",children:[r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Add IAB Links:"}),c.IAB.map((f,j)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:f.title,onChange:w=>k(j,"title",w.target.value),placeholder:"Title",required:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:"form-control",value:f.URL,onChange:w=>P(j,"URL",w.target.value),placeholder:"URL",style:{textAlign:"right"},required:!0}),f.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid URL."})]}),r.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:r.jsx("button",{className:"btn btn-danger",onClick:()=>al(j),style:{marginLeft:"5px"},children:"x"})})]},j)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:il,style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add IAB URL"]})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("button",{className:"btn btn-primary back",onClick:s,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Go Back"})," ",r.jsx("button",{type:"button",className:"btn btn-primary continue",style:{backgroundColor:"#fda417",border:"#fda417"},onClick:bs,children:"Submit"})," "]})]})]})]})})},mt="/assets/propertydummy-DhVEZ7jN.jpg",Nb=()=>{var d;const e=Ke(),{user:t}=_e(c=>({...c.auth})),{userProperties:n,totalPages:s}=_e(c=>c.property),[o,i]=S.useState(1),a=5;S.useEffect(()=>{e(Xs({userId:t.result.userId,page:o,limit:a}))},[e,(d=t==null?void 0:t.result)==null?void 0:d.userId,o]);const l=c=>{i(c)};return r.jsx(r.Fragment,{children:n.length>0?r.jsxs(r.Fragment,{children:[r.jsx("ul",{children:n.map(c=>r.jsx("li",{children:r.jsx("div",{className:"container",children:r.jsx("div",{className:"col-md-12",children:r.jsxs("div",{className:"row p-2 bg-white border rounded mt-2",children:[r.jsx("div",{className:"col-md-3 mt-1",children:r.jsx("img",{src:c.images[0].file||mt,className:"w-70",alt:"Img",style:{marginTop:"0px",maxWidth:"200px",maxHeight:"200px"}})}),r.jsxs("div",{className:"col-md-6 mt-1",children:[r.jsxs("h5",{children:[" ",r.jsxs(ae,{to:`/property/${c.propertyId}`,target:"_blank",children:[c.address,"....."]})]}),r.jsx("div",{className:"d-flex flex-row"}),r.jsxs("div",{className:"mt-1 mb-1 spec-1",children:[r.jsx("span",{children:"100% cotton"}),r.jsx("span",{className:"dot"}),r.jsx("span",{children:"Light weight"}),r.jsx("span",{className:"dot"}),r.jsxs("span",{children:["Best finish",r.jsx("br",{})]})]}),r.jsxs("div",{className:"mt-1 mb-1 spec-1",children:[r.jsx("span",{children:"Unique design"}),r.jsx("span",{className:"dot"}),r.jsx("span",{children:"For men"}),r.jsx("span",{className:"dot"}),r.jsxs("span",{children:["Casual",r.jsx("br",{})]})]}),r.jsxs("p",{className:"text-justify text-truncate para mb-0",children:["There are many variations of passages of",r.jsx("br",{}),r.jsx("br",{})]})]}),r.jsx("div",{className:"align-items-center align-content-center col-md-3 border-left mt-1",children:r.jsxs("div",{className:"d-flex flex-column mt-4",children:[r.jsx(ae,{to:`/property/${c.propertyId}`,children:r.jsxs("button",{className:"btn btn-outline-primary btn-sm mt-2",type:"button",style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{className:"fa fa-eye",style:{color:"#F74B02"}})," "," ","View Details"]})}),r.jsx(ae,{to:`/editproperty/${c.propertyId}`,children:r.jsxs("button",{className:"btn btn-outline-primary btn-sm mt-2",type:"button",style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{className:"fa fa-edit",style:{color:"#F74B02"}})," "," ","Edit Details .."]})})]})})]})})})},c._id))}),r.jsxs("div",{className:"pagination",children:[r.jsx("button",{onClick:()=>l(o-1),disabled:o===1,children:"Previous"}),Array.from({length:s},(c,u)=>u+1).map(c=>c===o||c===1||c===s||c>=o-1&&c<=o+1?r.jsx("button",{onClick:()=>l(c),disabled:o===c,children:c},c):c===2||c===s-1?r.jsx("span",{children:"..."},c):null),r.jsx("button",{onClick:()=>l(o+1),disabled:o===s,children:"Next"})]})]}):r.jsx("p",{children:"No active properties found."})})},Cb=()=>{var c,u,p,g,N,x,C,b,m,v,h,y;const{user:e,isLoading:t}=_e(E=>E.auth),n=Ke(),s=hn(),[o,i]=S.useState({userId:((c=e==null?void 0:e.result)==null?void 0:c.userId)||"",title:((u=e==null?void 0:e.result)==null?void 0:u.title)||"",firstName:((p=e==null?void 0:e.result)==null?void 0:p.firstName)||"",middleName:((g=e==null?void 0:e.result)==null?void 0:g.middleName)||"",lastName:((N=e==null?void 0:e.result)==null?void 0:N.lastName)||"",email:((x=e==null?void 0:e.result)==null?void 0:x.email)||"",aboutme:((C=e==null?void 0:e.result)==null?void 0:C.aboutme)||"",city:((b=e==null?void 0:e.result)==null?void 0:b.city)||"",state:((m=e==null?void 0:e.result)==null?void 0:m.state)||"",county:((v=e==null?void 0:e.result)==null?void 0:v.county)||"",zip:((h=e==null?void 0:e.result)==null?void 0:h.zip)||"",profileImage:((y=e==null?void 0:e.result)==null?void 0:y.profileImage)||""});S.useEffect(()=>{e&&i({userId:e.result.userId,title:e.result.title,firstName:e.result.firstName,middleName:e.result.middleName,lastName:e.result.lastName,email:e.result.email,aboutme:e.result.aboutme,city:e.result.city,state:e.result.state,county:e.result.county,zip:e.result.zip,profileImage:e.result.profileImage})},[e]);const a=E=>{i({...o,[E.target.name]:E.target.value})},l=()=>{i({...o,profileImage:""})},d=E=>{E.preventDefault(),n(Pi({formData:o,toast:oe,navigate:s}))};return r.jsx(r.Fragment,{children:r.jsxs("form",{onSubmit:d,children:[r.jsxs("div",{className:"col-4",children:["Title",r.jsxs("select",{className:"form-floating mb-3 form-control","aria-label":"Default select example",name:"title",value:o.title,onChange:a,children:[r.jsx("option",{value:"None",children:"Please Select Title"}),r.jsx("option",{value:"Dr",children:"Dr"}),r.jsx("option",{value:"Prof",children:"Prof"}),r.jsx("option",{value:"Mr",children:"Mr"}),r.jsx("option",{value:"Miss",children:"Miss"})]})]}),r.jsx("div",{className:"col-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["First Name",r.jsx("input",{type:"text",className:"form-control",placeholder:"First Name",required:"required",name:"firstName",value:o.firstName,onChange:a})]})}),r.jsx("div",{className:"col-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Middle Name",r.jsx("input",{type:"text",className:"form-control",placeholder:"Middle Name",required:"required",name:"middleName",value:o.middleName,onChange:a})]})}),r.jsx("div",{className:"col-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Last Name",r.jsx("input",{type:"text",className:"form-control",placeholder:"Last Name",required:"required",name:"lastName",value:o.lastName,onChange:a})]})}),r.jsx("div",{className:"col-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Email",r.jsx("input",{type:"text",className:"form-control",placeholder:"Email",required:"required",name:"email",value:o.email,onChange:a,disabled:!0})]})}),r.jsx("div",{className:"col-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["About me",r.jsx("textarea",{type:"text",id:"aboutme",name:"aboutme",className:"form-control h-100",value:o.aboutme,onChange:a})]})}),r.jsx("div",{className:"col-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["City",r.jsx("input",{type:"text",className:"form-control",name:"city",placeholder:"city",value:o.city,onChange:a,required:!0})]})}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["State",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"state",value:o.state,onChange:a,required:!0,children:[r.jsx("option",{value:"",children:"Please Select State"}),r.jsx("option",{value:"Alaska",children:"Alaska"}),r.jsx("option",{value:"Alabama",children:"Alabama"}),r.jsx("option",{value:"Arkansas",children:"Arkansas"}),r.jsx("option",{value:"Arizona",children:"Arizona"}),r.jsx("option",{value:"California",children:"California"}),r.jsx("option",{value:"Colorado",children:"Colorado"}),r.jsx("option",{value:"Connecticut",children:"Connecticut"}),r.jsx("option",{value:"District Of Columbia",children:"District Of Columbia"}),r.jsx("option",{value:"Delaware",children:"Delaware"}),r.jsx("option",{value:"Florida",children:"Florida"}),r.jsx("option",{value:"Georgia",children:"Georgia"}),r.jsx("option",{value:"Hawaii",children:"Hawaii"}),r.jsx("option",{value:"Iowa",children:"Iowa"}),r.jsx("option",{value:"Idaho",children:"Idaho"}),r.jsx("option",{value:"Illinois",children:"Illinois"}),r.jsx("option",{value:"Indiana",children:"Indiana"}),r.jsx("option",{value:"Kansas",children:"Kansas"}),r.jsx("option",{value:"Kentucky",children:"Kentucky"}),r.jsx("option",{value:"Louisiana",children:"Louisiana"}),r.jsx("option",{value:"Massachusetts",children:"Massachusetts"}),r.jsx("option",{value:"Maryland",children:"Maryland"}),r.jsx("option",{value:"Michigan",children:"Michigan"}),r.jsx("option",{value:"Minnesota",children:"Minnesota"}),r.jsx("option",{value:"Missouri",children:"Missouri"}),r.jsx("option",{value:"Mississippi",children:"Mississippi"}),r.jsx("option",{value:"Montana",children:"Montana"}),r.jsx("option",{value:"North Carolina",children:"North Carolina"}),r.jsx("option",{value:"North Dakota",children:"North Dakota"}),r.jsx("option",{value:"Nebraska",children:"Nebraska"}),r.jsx("option",{value:"New Hampshire",children:"New Hampshire"}),r.jsx("option",{value:"New Jersey",children:"New Jersey"}),r.jsx("option",{value:"New Mexico",children:"New Mexico"}),r.jsx("option",{value:"Nevada",children:"Nevada"}),r.jsx("option",{value:"New York",children:"New York"}),r.jsx("option",{value:"Ohio",children:"Ohio"}),r.jsx("option",{value:"Oklahoma",children:"Oklahoma"}),r.jsx("option",{value:"Oregon",children:"Oregon"}),r.jsx("option",{value:"Pennsylvania",children:"Pennsylvania"}),r.jsx("option",{value:"Rhode Island",children:"Rhode Island"}),r.jsx("option",{value:"South Carolina",children:"South Carolina"}),r.jsx("option",{value:"South Dakota",children:"South Dakota"}),r.jsx("option",{value:"Tennessee",children:"Tennessee"}),r.jsx("option",{value:"Texas",children:"Texas"}),r.jsx("option",{value:"Utah",children:"Utah"}),r.jsx("option",{value:"Virginia",children:"Virginia"}),r.jsx("option",{value:"Vermont",children:"Vermont"}),r.jsx("option",{value:"Washington",children:"Washington"}),r.jsx("option",{value:"Wisconsin",children:"Wisconsin"}),r.jsx("option",{value:"West Virginia",children:"West Virginia"}),r.jsx("option",{value:"Wyoming",children:"Wyoming"})]})]})}),r.jsxs("div",{className:"col-md-4",children:["County",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"county",value:o.county,onChange:a,required:!0,children:[r.jsx("option",{value:"",children:"Please Select County"}),r.jsx("option",{value:"Abbeville",children:"Abbeville"}),r.jsx("option",{value:"Aiken",children:"Aiken"}),r.jsx("option",{value:"Allendale",children:"Allendale"}),r.jsx("option",{value:"Anderson",children:"Anderson"}),r.jsx("option",{value:"Bamberg",children:"Bamberg"}),r.jsx("option",{value:"Barnwell",children:"Barnwell"}),r.jsx("option",{value:"Beaufort",children:"Beaufort"}),r.jsx("option",{value:"Berkeley",children:"Berkeley"}),r.jsx("option",{value:"Calhoun",children:"Calhoun"}),r.jsx("option",{value:"Charleston",children:"Charleston"}),r.jsx("option",{value:"Cherokee",children:"Cherokee"}),r.jsx("option",{value:"Chester",children:"Chester"}),r.jsx("option",{value:"Chesterfield",children:"Chesterfield"}),r.jsx("option",{value:"Clarendon",children:"Clarendon"}),r.jsx("option",{value:"Colleton",children:"Colleton"}),r.jsx("option",{value:"Darlington",children:"Darlington"}),r.jsx("option",{value:"Dillon",children:"Dillon"}),r.jsx("option",{value:"Dorchester",children:"Dorchester"}),r.jsx("option",{value:"Edgefield",children:"Edgefield"}),r.jsx("option",{value:"Fairfield",children:"Fairfield"}),r.jsx("option",{value:"Florence",children:"Florence"}),r.jsx("option",{value:"Georgetown",children:"Georgetown"}),r.jsx("option",{value:"Greenville",children:"Greenville"}),r.jsx("option",{value:"Greenwood",children:"Greenwood"}),r.jsx("option",{value:"Hampton",children:"Hampton"}),r.jsx("option",{value:"Horry",children:"Horry"}),r.jsx("option",{value:"Jasper",children:"Jasper"}),r.jsx("option",{value:"Kershaw",children:"Kershaw"}),r.jsx("option",{value:"Lancaster",children:"Lancaster"}),r.jsx("option",{value:"Laurens",children:"Laurens"}),r.jsx("option",{value:"Lee",children:"Lee"}),r.jsx("option",{value:"Lexington",children:"Lexington"}),r.jsx("option",{value:"Marion",children:"Marion"}),r.jsx("option",{value:"Marlboro",children:"Marlboro"}),r.jsx("option",{value:"McCormick",children:"McCormick"}),r.jsx("option",{value:"Newberry",children:"Newberry"}),r.jsx("option",{value:"Oconee",children:"Oconee"}),r.jsx("option",{value:"Orangeburg",children:"Orangeburg"}),r.jsx("option",{value:"Pickens",children:"Pickens"}),r.jsx("option",{value:"Richland",children:"Richland"}),r.jsx("option",{value:"Saluda",children:"Saluda"}),r.jsx("option",{value:"Spartanburg",children:"Spartanburg"}),r.jsx("option",{value:"Sumter",children:"Sumter"}),r.jsx("option",{value:"Union",children:"Union"}),r.jsx("option",{value:"Williamsburg",children:"Williamsburg"}),r.jsx("option",{value:"York",children:"York"})]})]}),r.jsx("div",{className:"col-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Zip",r.jsx("input",{type:"text",className:"form-control",name:"zip",placeholder:"zip",value:o.zip,onChange:a,required:!0})]})}),r.jsxs("div",{className:"col-4",children:[r.jsx("label",{children:"Profile Image"}),r.jsx("div",{className:"mb-3",children:r.jsx(Pu,{type:"file",multiple:!1,onDone:({base64:E})=>i({...o,profileImage:E})})})]}),o.profileImage&&r.jsxs("div",{className:"col-4 mb-3",children:[r.jsx("img",{src:o.profileImage,alt:"Profile Preview",style:{width:"150px",height:"150px",borderRadius:"50%"}}),r.jsx("button",{type:"button",className:"btn btn-danger mt-2",onClick:l,children:"Delete Image"})]}),r.jsx("div",{className:"col-12",children:r.jsx("div",{className:"d-grid",children:r.jsx("button",{className:"btn btn-primary btn-lg",type:"submit",style:{backgroundColor:"#fda417",border:"#fda417"},disabled:t,children:t?"Updating...":"Update"})})})]})})},bb=()=>{var c;const e=Ke(),{user:t}=_e(u=>({...u.auth})),{userProperties:n,totalPages:s}=_e(u=>u.property),[o,i]=S.useState(1),a=5;S.useEffect(()=>{e(Xs({userId:t.result.userId,page:o,limit:a}))},[e,(c=t==null?void 0:t.result)==null?void 0:c.userId,o]);const l=u=>{i(u)},d=n.filter(u=>u.fundDetails&&u.fundDetails.some(p=>p.fundValue!==void 0&&p.fundPercentage!==void 0&&p.userId));return r.jsx(r.Fragment,{children:d.length>0?r.jsxs(r.Fragment,{children:[r.jsx("ul",{children:d.map(u=>r.jsx("li",{children:r.jsx("div",{className:"container",children:r.jsx("div",{className:"col-md-12",children:r.jsxs("div",{className:"row p-2 bg-white border rounded mt-2",children:[r.jsx("div",{className:"col-md-3 mt-1",children:r.jsx("img",{src:u.images[0].file||mt,className:"w-70",alt:"Img",style:{marginTop:"0px",maxWidth:"200px",maxHeight:"200px"}})}),r.jsxs("div",{className:"col-md-6 mt-1",children:[r.jsxs("h5",{children:[" ",r.jsxs(ae,{to:`/property/${u.propertyId}`,children:[u.address,"....."]})]}),r.jsx("div",{className:"d-flex flex-row"}),r.jsxs("div",{className:"mt-1 mb-1 spec-1",children:[r.jsx("span",{children:"100% cotton"}),r.jsx("span",{className:"dot"}),r.jsx("span",{children:"Light weight"}),r.jsx("span",{className:"dot"}),r.jsxs("span",{children:["Best finish",r.jsx("br",{})]})]}),r.jsxs("div",{className:"mt-1 mb-1 spec-1",children:[r.jsx("span",{children:"Unique design"}),r.jsx("span",{className:"dot"}),r.jsx("span",{children:"For men"}),r.jsx("span",{className:"dot"}),r.jsxs("span",{children:["Casual",r.jsx("br",{})]})]}),r.jsxs("p",{className:"text-justify text-truncate para mb-0",children:["There are many variations of passages of",r.jsx("br",{}),r.jsx("br",{})]})]}),r.jsx("div",{className:"align-items-center align-content-center col-md-3 border-left mt-1",children:r.jsxs("div",{className:"d-flex flex-column mt-4",children:[r.jsx(ae,{to:`/property/${u.propertyId}`,children:r.jsxs("button",{className:"btn btn-outline-primary btn-sm mt-2",type:"button",style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{className:"fa fa-eye",style:{color:"#F74B02"}})," "," ","View Details"]})}),r.jsx(ae,{to:`/editproperty/${u.propertyId}`,children:r.jsxs("button",{className:"btn btn-outline-primary btn-sm mt-2",type:"button",style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{className:"fa fa-edit",style:{color:"#F74B02"}})," "," ","Edit Details .."]})})]})})]})})})},u._id))}),r.jsxs("div",{className:"pagination",children:[r.jsx("button",{onClick:()=>l(o-1),disabled:o===1,children:"Previous"}),Array.from({length:s},(u,p)=>p+1).map(u=>u===o||u===1||u===s||u>=o-1&&u<=o+1?r.jsx("button",{onClick:()=>l(u),disabled:o===u,children:u},u):u===2||u===s-1?r.jsx("span",{children:"..."},u):null),r.jsx("button",{onClick:()=>l(o+1),disabled:o===s,children:"Next"})]})]}):r.jsx("p",{children:"No active properties found."})})},wb=()=>{var c;const e=Ke(),{user:t}=_e(u=>({...u.auth})),{properties:n,totalPages:s}=_e(u=>u.property),[o,i]=S.useState(1),a=5;S.useEffect(()=>{e(mr({page:o,limit:a}))},[e,(c=t==null?void 0:t.result)==null?void 0:c.userId,o]);const l=u=>{i(u)},d=n.filter(u=>u.fundDetails&&u.fundDetails.some(p=>p.fundValue!==void 0&&p.fundPercentage!==void 0&&p.userId===t.result._id));return r.jsx(r.Fragment,{children:d.length>0?r.jsxs(r.Fragment,{children:[r.jsx("ul",{children:d.map(u=>r.jsx("li",{children:r.jsx("div",{className:"container",children:r.jsx("div",{className:"col-md-12",children:r.jsxs("div",{className:"row p-2 bg-white border rounded mt-2",children:[r.jsx("div",{className:"col-md-3 mt-1",children:r.jsx("img",{src:u.images[0].file||mt,className:"w-70",alt:"Img",style:{marginTop:"0px",maxWidth:"200px",maxHeight:"200px"}})}),r.jsxs("div",{className:"col-md-6 mt-1",children:[r.jsxs("h5",{children:[" ",r.jsxs(ae,{to:`/property/${u.propertyId}`,target:"_blank",children:[u.address,"....."]})]}),r.jsx("div",{className:"d-flex flex-row"}),r.jsxs("div",{className:"mt-1 mb-1 spec-1",children:[r.jsx("span",{children:"100% cotton"}),r.jsx("span",{className:"dot"}),r.jsx("span",{children:"Light weight"}),r.jsx("span",{className:"dot"}),r.jsxs("span",{children:["Best finish",r.jsx("br",{})]})]}),r.jsxs("div",{className:"mt-1 mb-1 spec-1",children:[r.jsx("span",{children:"Unique design"}),r.jsx("span",{className:"dot"}),r.jsx("span",{children:"For men"}),r.jsx("span",{className:"dot"}),r.jsxs("span",{children:["Casual",r.jsx("br",{})]})]}),r.jsxs("p",{className:"text-justify text-truncate para mb-0",children:["There are many variations of passages of",r.jsx("br",{}),r.jsx("br",{})]})]}),r.jsx("div",{className:"align-items-center align-content-center col-md-3 border-left mt-1",children:r.jsxs("div",{className:"d-flex flex-column mt-4",children:[r.jsx(ae,{to:`/property/${u.propertyId}`,children:r.jsxs("button",{className:"btn btn-outline-primary btn-sm mt-2",type:"button",style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{className:"fa fa-eye",style:{color:"#F74B02"}})," "," ","View Details"]})}),r.jsx(ae,{to:`/editproperty/${u.propertyId}`,children:r.jsxs("button",{className:"btn btn-outline-primary btn-sm mt-2",type:"button",style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{className:"fa fa-edit",style:{color:"#F74B02"}})," "," ","Edit Details .."]})})]})})]})})})},u._id))}),r.jsxs("div",{className:"pagination",children:[r.jsx("button",{onClick:()=>l(o-1),disabled:o===1,children:"Previous"}),Array.from({length:s},(u,p)=>p+1).map(u=>u===o||u===1||u===s||u>=o-1&&u<=o+1?r.jsx("button",{onClick:()=>l(u),disabled:o===u,children:u},u):u===2||u===s-1?r.jsx("span",{children:"..."},u):null),r.jsx("button",{onClick:()=>l(o+1),disabled:o===s,children:"Next"})]})]}):r.jsx("p",{children:"No active properties found."})})},Sb=()=>{var a,l;const{user:e}=_e(d=>({...d.auth}));console.log("user",e);const t=Ke(),[n,s]=S.useState({userId:((a=e==null?void 0:e.result)==null?void 0:a.userId)||"",fundAmount:((l=e==null?void 0:e.result)==null?void 0:l.fundAmount)||""});S.useEffect(()=>{var d,c;e&&s({userId:(d=e==null?void 0:e.result)==null?void 0:d.userId,fundAmount:(c=e==null?void 0:e.result)==null?void 0:c.fundAmount})},[e]);const o=d=>{s({...n,[d.target.name]:d.target.value})},i=d=>{if(d.preventDefault(),n.fundAmount<=0)return oe.error("Please enter a valid funding amount greater than 0");t(_i({formData:n,toast:oe}))};return r.jsx(r.Fragment,{children:r.jsxs("form",{onSubmit:i,children:[r.jsx("div",{className:"col-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Willing to Invest",r.jsx("input",{type:"text",className:"form-control",placeholder:"Enter Fund Amount",name:"fundAmount",value:n.fundAmount,onChange:o})]})}),r.jsx("div",{className:"col-12",children:r.jsx("div",{className:"d-grid",children:r.jsx("button",{className:"btn btn-primary btn-lg",type:"submit",style:{backgroundColor:"#fda417",border:"#fda417"},children:"submit"})})})]})})},kb=()=>{const[e,t]=S.useState("dashboard"),{user:n}=_e(o=>o.auth),s=()=>{switch(e){case"Userdetails":return r.jsx(Cb,{});case"FundToInvest":return r.jsx(Sb,{});case"addProperty":return r.jsx(sg,{});case"activeProperties":return r.jsxs("div",{children:[r.jsx("h3",{children:"Active Properties"}),r.jsx(Nb,{})]});case"Fundings Received":return r.jsxs("div",{children:[r.jsx("h3",{children:"Fundings Received"}),r.jsx(bb,{})]});case"Offers Submitted":return r.jsxs("div",{children:[r.jsx("h3",{children:"Offers Submitted"}),r.jsx(wb,{})]});case"closedProperties":return r.jsx("p",{children:"These are your closed properties."});default:return r.jsx(r.Fragment,{})}};return r.jsxs(r.Fragment,{children:[r.jsx(Le,{}),r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{}),r.jsxs("div",{className:"d-flex",style:{margin:"0",padding:"0"},children:[r.jsx("div",{className:"col-md-3 p-1",style:{paddingRight:"2px",margin:"0"},children:r.jsxs("div",{className:"card card1 p-5",children:[r.jsx("img",{className:"img-fluid",src:n.result.profileImage||Bs,alt:"ProfileImage",style:{maxWidth:"250px",maxHeight:"250px"}}),r.jsx("hr",{className:"hline"}),r.jsxs("div",{className:"d-flex flex-column align-items-center",children:[r.jsxs("button",{className:`btn ${e==="dashboard"?"active":""}`,onClick:()=>t("dashboard"),children:[r.jsx("i",{className:"fa fa-dashboard",style:{color:"#F74B02"}}),r.jsx("span",{children:"Dashboard"})]}),r.jsxs("button",{className:`btn mt-3 ${e==="Userdetails"?"active":""}`,onClick:()=>t("Userdetails"),children:[r.jsx("span",{className:"fa fa-home",style:{color:"#F74B02"}}),r.jsx("span",{children:"User Profile"})]}),r.jsxs("button",{className:`btn mt-3 ${e==="FundToInvest"?"active":""}`,onClick:()=>t("FundToInvest"),children:[r.jsx("span",{className:"fa fa-home",style:{color:"#F74B02"}}),r.jsx("span",{children:"Fund To Invest"})]}),r.jsxs("button",{className:`btn mt-3 ${e==="addProperty"?"active":""}`,onClick:()=>t("addProperty"),children:[r.jsx("span",{className:"fa fa-home",style:{color:"#F74B02"}}),r.jsx("span",{children:"Add Property"})]}),r.jsxs("button",{className:`btn mt-3 ${e==="activeProperties"?"active":""}`,onClick:()=>t("activeProperties"),children:[r.jsx("span",{className:"fa fa-home",style:{color:"#F74B02"}}),r.jsx("span",{children:"Active Properties"})]}),r.jsxs("button",{className:`btn mt-3 ${e==="Fundings Received"?"active":""}`,onClick:()=>t("Fundings Received"),children:[r.jsx("span",{className:"fa fa-home",style:{color:"#F74B02"}}),r.jsx("span",{children:"Fundings Received"})]}),r.jsxs("button",{className:`btn mt-3 ${e==="Offers Submitted"?"active":""}`,onClick:()=>t("Offers Submitted"),children:[r.jsx("span",{className:"fa fa-home",style:{color:"#F74B02"}}),r.jsx("span",{children:"Offers Submitted"})]}),r.jsxs("button",{className:`btn mt-3 ${e==="closedProperties"?"active":""}`,onClick:()=>t("closedProperties"),children:[r.jsx("span",{className:"fa fa-home",style:{color:"#F74B02"}}),r.jsx("span",{children:"Closed Properties"})]})]})]})}),r.jsx("div",{className:"col-md-9 p-1",style:{paddingLeft:"2px",margin:"0"},children:r.jsxs("div",{className:"card card2 p-2",children:[r.jsxs("span",{children:[r.jsx("br",{}),"Welcome to"," ",r.jsx("span",{style:{color:"#067ADC"},children:r.jsxs(ae,{to:`/profile/${n.result.userId}`,className:"link-primary text-decoration-none",children:[n.result.title,". ",n.result.firstName," ",n.result.middleName," ",n.result.lastName]})}),r.jsx("span",{style:{color:"#067ADC"},children:r.jsx(ae,{to:"/addproperty",className:"link-primary text-decoration-none",children:"add"})})]}),e==="dashboard"&&r.jsxs(r.Fragment,{children:[r.jsx("br",{}),r.jsxs("div",{className:"banner_taital",children:[r.jsxs("h1",{style:{color:"#fda417",fontSize:"30px",padding:"10px",fontWeight:"normal"},className:"services_taital",children:["Now you are accessing the world's only portal which has Streamlined the",r.jsx("h1",{style:{fontSize:"30px",padding:"10px",fontWeight:"normal"},children:" investor-borrower interactions, "})]}),r.jsxs("h1",{className:"services_taital",style:{color:"#fda417",fontSize:"30px",padding:"10px",fontWeight:"normal"},children:["gaining complete visibility into your data, and using smart filters to",r.jsxs("h1",{className:"services_taital",style:{fontSize:"30px",padding:"10px",fontWeight:"normal"},children:["create automatic workflows"," "]})]}),r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{}),r.jsx("br",{})]})]}),r.jsx("br",{}),s()]})})]}),r.jsx(tt,{})]})};var og={exports:{}},Eb="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",Pb=Eb,_b=Pb;function ig(){}function ag(){}ag.resetWarningCache=ig;var Tb=function(){function e(s,o,i,a,l,d){if(d!==_b){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:ag,resetWarningCache:ig};return n.PropTypes=n,n};og.exports=Tb();var Ob=og.exports;const Lt=So(Ob),Ab=()=>{const[e,t]=S.useState(3),n=hn();return S.useEffect(()=>{const s=setInterval(()=>{t(o=>--o)},1e3);return e===0&&n("/login"),()=>clearInterval(s)},[e,n]),r.jsx("div",{style:{marginTop:"100px"},children:r.jsxs("h5",{children:["Redirecting you in ",e," seconds"]})})},Ms=({children:e})=>{const{user:t}=_e(n=>({...n.auth}));return t?e:r.jsx(Ab,{})};Ms.propTypes={children:Lt.node.isRequired};const Rb=()=>{const e=Ke(),{id:t,token:n}=gs();return S.useEffect(()=>{e(Oi({id:t,token:n}))},[e,t,n]),r.jsxs(r.Fragment,{children:[r.jsx(Le,{}),r.jsxs("div",{className:"contact_section layout_padding",children:[r.jsx("div",{className:"container",children:r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-md-12",children:r.jsx("h1",{className:"contact_taital",children:"Contact Us"})})})}),r.jsx("div",{className:"container-fluid",children:r.jsx("div",{className:"contact_section_2",children:r.jsxs("div",{className:"row",children:[r.jsxs("div",{className:"col-md-6",children:[r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("h1",{className:"card-title text-center",children:r.jsxs(ae,{to:"/login",className:"glightbox play-btn mb-4",children:[" ","Email verified successfully !!! Please",r.jsx("span",{style:{color:"#F74B02"},children:" login "})," "," ","to access ..."]})})]}),r.jsx("div",{className:"col-md-6 padding_left_15",children:r.jsx("div",{className:"contact_img"})})]})})})]}),r.jsx(tt,{})]})},Ib=()=>{const[e,t]=S.useState(""),[n,s]=S.useState(""),o="http://67.225.129.127:3002",i=async()=>{try{const a=await me.post(`${o}/users/forgotpassword`,{email:e});s(a.data.message)}catch(a){console.error("Forgot Password Error:",a),s(a.response.data.message)}};return r.jsxs(r.Fragment,{children:[r.jsx(Le,{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsxs("section",{className:"card",style:{minHeight:"100vh",backgroundColor:"#FFFFFF"},children:[r.jsx("div",{className:"container-fluid px-0",children:r.jsxs("div",{className:"row gy-4 align-items-center justify-content-center",children:[r.jsx("div",{className:"col-12 col-md-0 col-xl-20 text-center text-md-start"}),r.jsx("div",{className:"col-12 col-md-6 col-xl-5",children:r.jsx("div",{className:"card border-0 rounded-4 shadow-lg",style:{width:"100%"},children:r.jsxs("div",{className:"card-body p-3 p-md-4 p-xl-5",children:[r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-12",children:r.jsxs("div",{className:"mb-4",children:[r.jsx("h2",{className:"h3",children:"Forgot Password"}),r.jsx("hr",{})]})})}),r.jsxs("div",{className:"row gy-3 overflow-hidden",children:[r.jsx("div",{className:"col-12",children:r.jsxs("div",{className:"form-floating mb-3",children:[r.jsx("input",{type:"email",className:"form-control",value:e,onChange:a=>t(a.target.value),placeholder:"name@example.com",required:"required"}),r.jsx("label",{htmlFor:"email",className:"form-label",children:"Enter your email address to receive a password reset link"})]})}),r.jsxs("div",{className:"col-12",children:[r.jsx("div",{className:"d-grid",children:r.jsx("button",{className:"btn btn-primary btn-lg",type:"submit",style:{backgroundColor:"#fda417",border:"#fda417"},onClick:i,children:"Reset Password"})}),r.jsx("p",{style:{color:"#067ADC"},className:"card-title text-center",children:n})]})]}),r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-12",children:r.jsx("div",{className:"d-flex gap-2 gap-md-4 flex-column flex-md-row justify-content-md-end mt-4",children:r.jsxs("p",{className:"m-0 text-secondary text-center",children:["Already have an account?"," ",r.jsx(ae,{to:"/login",className:"link-primary text-decoration-none",children:"Sign In"})]})})})}),r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-12"})})]})})})]})}),r.jsx(tt,{})]})]})},Fb=()=>{const{userId:e,token:t}=gs(),[n,s]=S.useState(""),[o,i]=S.useState(""),[a,l]=S.useState(""),d="http://67.225.129.127:3002",c=async()=>{try{if(!n||n.trim()===""){l("Password not entered"),oe.error("Password not entered");return}const u=await me.post(`${d}/users/resetpassword/${e}/${t}`,{userId:e,token:t,password:n});if(n!==o){l("Passwords do not match."),oe.error("Passwords do not match.");return}else l("Password reset successfull"),oe.success(u.data.message)}catch(u){console.error("Reset Password Error:",u)}};return S.useEffect(()=>{oe.dismiss()},[]),r.jsxs(r.Fragment,{children:[r.jsx(Le,{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("section",{className:"card mb-0 vh-100",children:r.jsx("div",{className:"container py-10 h-100",children:r.jsx("div",{className:"row d-flex align-items-center justify-content-center h-100",children:r.jsxs("div",{className:"col-md-10 col-lg-5 col-xl-5 offset-xl-1 card mb-10",children:[r.jsx("br",{}),r.jsxs("h2",{children:["Reset Password",r.jsx("hr",{}),r.jsx("p",{className:"card-title text-center",style:{color:"#F74B02"},children:"Enter your new password:"})]}),r.jsx("input",{className:"form-control vh-10",type:"password",value:n,onChange:u=>s(u.target.value),placeholder:"Enter your new password",style:{display:"flex",gap:"35px"}}),r.jsx("br",{}),r.jsx("input",{className:"form-control",type:"password",value:o,onChange:u=>i(u.target.value),placeholder:"Confirm your new password"}),r.jsx("br",{}),r.jsx("button",{className:"btn btn-primary btn-lg",type:"submit",name:"signin",value:"Sign in",onClick:c,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Reset Password"}),r.jsx("p",{style:{color:"#067ADC"},className:"card-title text-center",children:a})]})})})}),r.jsx(tt,{})]})},Db=()=>r.jsxs(r.Fragment,{children:[r.jsx(Le,{}),r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{}),r.jsxs("div",{className:"col-md-18",children:[r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsxs("h1",{className:"card-title text-center",children:[" ","Thank you for joining the world's most trusted realtor investment and borrowers portal."]}),r.jsxs("h2",{children:["We reqest you to kindly ",r.jsx("span",{style:{fontSize:"2rem",color:"#fda417"},children:"check your email inbox "})," and click on the ",r.jsx("span",{style:{fontSize:"2rem",color:"#fda417"},children:"verification link "}),"to access the dashboard."]})]}),r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{}),r.jsx(tt,{})]});var lg={exports:{}};/*! + 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="",a=0;a{i.target===e&&(o(),t(i))},n+s)}function rw(e){e.offsetHeight}const _p=e=>!e||typeof e=="function"?e:t=>{e.current=t};function sw(e,t){const n=_p(e),s=_p(t);return o=>{n&&n(o),s&&s(o)}}function Lo(e,t){return S.useMemo(()=>sw(e,t),[e,t])}function ow(e){return e&&"setState"in e?qr.findDOMNode(e):e??null}const iw=I.forwardRef(({onEnter:e,onEntering:t,onEntered:n,onExit:s,onExiting:o,onExited:i,addEndListener:a,children:l,childRef:d,...c},u)=>{const p=S.useRef(null),g=Lo(p,d),N=T=>{g(ow(T))},x=T=>O=>{T&&p.current&&T(p.current,O)},C=S.useCallback(x(e),[e]),b=S.useCallback(x(t),[t]),m=S.useCallback(x(n),[n]),v=S.useCallback(x(s),[s]),h=S.useCallback(x(o),[o]),y=S.useCallback(x(i),[i]),E=S.useCallback(x(a),[a]);return r.jsx(vn,{ref:u,...c,onEnter:C,onEntered:m,onEntering:b,onExit:v,onExited:y,onExiting:h,addEndListener:E,nodeRef:p,children:typeof l=="function"?(T,O)=>l(T,{...O,ref:N}):I.cloneElement(l,{ref:N})})});function aw(e){const t=S.useRef(e);return S.useEffect(()=>{t.current=e},[e]),t}function Gt(e){const t=aw(e);return S.useCallback(function(...n){return t.current&&t.current(...n)},[t])}const lw=e=>S.forwardRef((t,n)=>r.jsx("div",{...t,ref:n,className:ye(t.className,e)}));function cw(){return S.useState(null)}function dw(){const e=S.useRef(!0),t=S.useRef(()=>e.current);return S.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),t.current}function uw(e){const t=S.useRef(null);return S.useEffect(()=>{t.current=e}),t.current}const fw=typeof global<"u"&&global.navigator&&global.navigator.product==="ReactNative",pw=typeof document<"u",Tp=pw||fw?S.useLayoutEffect:S.useEffect,mw=["as","disabled"];function hw(e,t){if(e==null)return{};var n={};for(var s in e)if({}.hasOwnProperty.call(e,s)){if(t.indexOf(s)>=0)continue;n[s]=e[s]}return n}function vw(e){return!e||e.trim()==="#"}function fg({tagName:e,disabled:t,href:n,target:s,rel:o,role:i,onClick:a,tabIndex:l=0,type:d}){e||(n!=null||s!=null||o!=null?e="a":e="button");const c={tagName:e};if(e==="button")return[{type:d||"button",disabled:t},c];const u=g=>{if((t||e==="a"&&vw(n))&&g.preventDefault(),t){g.stopPropagation();return}a==null||a(g)},p=g=>{g.key===" "&&(g.preventDefault(),u(g))};return e==="a"&&(n||(n="#"),t&&(n=void 0)),[{role:i??"button",disabled:void 0,tabIndex:t?void 0:l,href:n,target:e==="a"?s:void 0,"aria-disabled":t||void 0,rel:e==="a"?o:void 0,onClick:u,onKeyDown:p},c]}const gw=S.forwardRef((e,t)=>{let{as:n,disabled:s}=e,o=hw(e,mw);const[i,{tagName:a}]=fg(Object.assign({tagName:n,disabled:s},o));return r.jsx(a,Object.assign({},o,i,{ref:t}))});gw.displayName="Button";function xw(e){return e.code==="Escape"||e.keyCode===27}function pg(){const e=S.version.split(".");return{major:+e[0],minor:+e[1],patch:+e[2]}}const yw={[kn]:"show",[ir]:"show"},_u=S.forwardRef(({className:e,children:t,transitionClasses:n={},onEnter:s,...o},i)=>{const a={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1,...o},l=S.useCallback((u,p)=>{rw(u),s==null||s(u,p)},[s]),{major:d}=pg(),c=d>=19?t.props.ref:t.ref;return r.jsx(iw,{ref:i,addEndListener:nw,...a,onEnter:l,childRef:c,children:(u,p)=>S.cloneElement(t,{...p,className:ye("fade",e,t.props.className,yw[u],n[u])})})});_u.displayName="Fade";const jw={"aria-label":Lt.string,onClick:Lt.func,variant:Lt.oneOf(["white"])},Tu=S.forwardRef(({className:e,variant:t,"aria-label":n="Close",...s},o)=>r.jsx("button",{ref:o,type:"button",className:ye("btn-close",t&&`btn-close-${t}`,e),"aria-label":n,...s}));Tu.displayName="CloseButton";Tu.propTypes=jw;const mg=S.forwardRef(({as:e,bsPrefix:t,variant:n="primary",size:s,active:o=!1,disabled:i=!1,className:a,...l},d)=>{const c=Ie(t,"btn"),[u,{tagName:p}]=fg({tagName:e,disabled:i,...l}),g=p;return r.jsx(g,{...u,...l,ref:d,disabled:i,className:ye(a,c,o&&"active",n&&`${c}-${n}`,s&&`${c}-${s}`,l.href&&i&&"disabled")})});mg.displayName="Button";function Nw(e){const t=S.useRef(e);return t.current=e,t}function hg(e){const t=Nw(e);S.useEffect(()=>()=>t.current(),[])}function Cw(e,t){return S.Children.toArray(e).some(n=>S.isValidElement(n)&&n.type===t)}function bw({as:e,bsPrefix:t,className:n,...s}){t=Ie(t,"col");const o=Wb(),i=Ub(),a=[],l=[];return o.forEach(d=>{const c=s[d];delete s[d];let u,p,g;typeof c=="object"&&c!=null?{span:u,offset:p,order:g}=c:u=c;const N=d!==i?`-${d}`:"";u&&a.push(u===!0?`${t}${N}`:`${t}${N}-${u}`),g!=null&&l.push(`order${N}-${g}`),p!=null&&l.push(`offset${N}-${p}`)}),[{...s,className:ye(n,...a,...l)},{as:e,bsPrefix:t,spans:a}]}const vg=S.forwardRef((e,t)=>{const[{className:n,...s},{as:o="div",bsPrefix:i,spans:a}]=bw(e);return r.jsx(o,{...s,ref:t,className:ye(n,!a.length&&i)})});vg.displayName="Col";var ww=Function.prototype.bind.call(Function.prototype.call,[].slice);function Tr(e,t){return ww(e.querySelectorAll(t))}function Op(e,t){if(e.contains)return e.contains(t);if(e.compareDocumentPosition)return e===t||!!(e.compareDocumentPosition(t)&16)}const Sw="data-rr-ui-";function kw(e){return`${Sw}${e}`}const gg=S.createContext(xs?window:void 0);gg.Provider;function Ou(){return S.useContext(gg)}const Ew={type:Lt.string,tooltip:Lt.bool,as:Lt.elementType},nl=S.forwardRef(({as:e="div",className:t,type:n="valid",tooltip:s=!1,...o},i)=>r.jsx(e,{...o,ref:i,className:ye(t,`${n}-${s?"tooltip":"feedback"}`)}));nl.displayName="Feedback";nl.propTypes=Ew;const pn=S.createContext({}),Au=S.forwardRef(({id:e,bsPrefix:t,className:n,type:s="checkbox",isValid:o=!1,isInvalid:i=!1,as:a="input",...l},d)=>{const{controlId:c}=S.useContext(pn);return t=Ie(t,"form-check-input"),r.jsx(a,{...l,ref:d,type:s,id:e||c,className:ye(n,t,o&&"is-valid",i&&"is-invalid")})});Au.displayName="FormCheckInput";const Ca=S.forwardRef(({bsPrefix:e,className:t,htmlFor:n,...s},o)=>{const{controlId:i}=S.useContext(pn);return e=Ie(e,"form-check-label"),r.jsx("label",{...s,ref:o,htmlFor:n||i,className:ye(t,e)})});Ca.displayName="FormCheckLabel";const xg=S.forwardRef(({id:e,bsPrefix:t,bsSwitchPrefix:n,inline:s=!1,reverse:o=!1,disabled:i=!1,isValid:a=!1,isInvalid:l=!1,feedbackTooltip:d=!1,feedback:c,feedbackType:u,className:p,style:g,title:N="",type:x="checkbox",label:C,children:b,as:m="input",...v},h)=>{t=Ie(t,"form-check"),n=Ie(n,"form-switch");const{controlId:y}=S.useContext(pn),E=S.useMemo(()=>({controlId:e||y}),[y,e]),T=!b&&C!=null&&C!==!1||Cw(b,Ca),O=r.jsx(Au,{...v,type:x==="switch"?"checkbox":x,ref:h,isValid:a,isInvalid:l,disabled:i,as:m});return r.jsx(pn.Provider,{value:E,children:r.jsx("div",{style:g,className:ye(p,T&&t,s&&`${t}-inline`,o&&`${t}-reverse`,x==="switch"&&n),children:b||r.jsxs(r.Fragment,{children:[O,T&&r.jsx(Ca,{title:N,children:C}),c&&r.jsx(nl,{type:u,tooltip:d,children:c})]})})})});xg.displayName="FormCheck";const ba=Object.assign(xg,{Input:Au,Label:Ca}),yg=S.forwardRef(({bsPrefix:e,type:t,size:n,htmlSize:s,id:o,className:i,isValid:a=!1,isInvalid:l=!1,plaintext:d,readOnly:c,as:u="input",...p},g)=>{const{controlId:N}=S.useContext(pn);return e=Ie(e,"form-control"),r.jsx(u,{...p,type:t,size:s,ref:g,readOnly:c,id:o||N,className:ye(i,d?`${e}-plaintext`:e,n&&`${e}-${n}`,t==="color"&&`${e}-color`,a&&"is-valid",l&&"is-invalid")})});yg.displayName="FormControl";const Pw=Object.assign(yg,{Feedback:nl}),jg=S.forwardRef(({className:e,bsPrefix:t,as:n="div",...s},o)=>(t=Ie(t,"form-floating"),r.jsx(n,{ref:o,className:ye(e,t),...s})));jg.displayName="FormFloating";const Ru=S.forwardRef(({controlId:e,as:t="div",...n},s)=>{const o=S.useMemo(()=>({controlId:e}),[e]);return r.jsx(pn.Provider,{value:o,children:r.jsx(t,{...n,ref:s})})});Ru.displayName="FormGroup";const Ng=S.forwardRef(({as:e="label",bsPrefix:t,column:n=!1,visuallyHidden:s=!1,className:o,htmlFor:i,...a},l)=>{const{controlId:d}=S.useContext(pn);t=Ie(t,"form-label");let c="col-form-label";typeof n=="string"&&(c=`${c} ${c}-${n}`);const u=ye(o,t,s&&"visually-hidden",n&&c);return i=i||d,n?r.jsx(vg,{ref:l,as:"label",className:u,htmlFor:i,...a}):r.jsx(e,{ref:l,className:u,htmlFor:i,...a})});Ng.displayName="FormLabel";const Cg=S.forwardRef(({bsPrefix:e,className:t,id:n,...s},o)=>{const{controlId:i}=S.useContext(pn);return e=Ie(e,"form-range"),r.jsx("input",{...s,type:"range",ref:o,className:ye(t,e),id:n||i})});Cg.displayName="FormRange";const bg=S.forwardRef(({bsPrefix:e,size:t,htmlSize:n,className:s,isValid:o=!1,isInvalid:i=!1,id:a,...l},d)=>{const{controlId:c}=S.useContext(pn);return e=Ie(e,"form-select"),r.jsx("select",{...l,size:n,ref:d,className:ye(s,e,t&&`${e}-${t}`,o&&"is-valid",i&&"is-invalid"),id:a||c})});bg.displayName="FormSelect";const wg=S.forwardRef(({bsPrefix:e,className:t,as:n="small",muted:s,...o},i)=>(e=Ie(e,"form-text"),r.jsx(n,{...o,ref:i,className:ye(t,e,s&&"text-muted")})));wg.displayName="FormText";const Sg=S.forwardRef((e,t)=>r.jsx(ba,{...e,ref:t,type:"switch"}));Sg.displayName="Switch";const _w=Object.assign(Sg,{Input:ba.Input,Label:ba.Label}),kg=S.forwardRef(({bsPrefix:e,className:t,children:n,controlId:s,label:o,...i},a)=>(e=Ie(e,"form-floating"),r.jsxs(Ru,{ref:a,className:ye(t,e),controlId:s,...i,children:[n,r.jsx("label",{htmlFor:s,children:o})]})));kg.displayName="FloatingLabel";const Tw={_ref:Lt.any,validated:Lt.bool,as:Lt.elementType},Iu=S.forwardRef(({className:e,validated:t,as:n="form",...s},o)=>r.jsx(n,{...s,ref:o,className:ye(e,t&&"was-validated")}));Iu.displayName="Form";Iu.propTypes=Tw;const er=Object.assign(Iu,{Group:Ru,Control:Pw,Floating:jg,Check:ba,Switch:_w,Label:Ng,Text:wg,Range:Cg,Select:bg,FloatingLabel:kg});var di;function Ap(e){if((!di&&di!==0||e)&&xs){var t=document.createElement("div");t.style.position="absolute",t.style.top="-9999px",t.style.width="50px",t.style.height="50px",t.style.overflow="scroll",document.body.appendChild(t),di=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return di}function oc(e){e===void 0&&(e=tl());try{var t=e.activeElement;return!t||!t.nodeName?null:t}catch{return e.body}}function Ow(e=document){const t=e.defaultView;return Math.abs(t.innerWidth-e.documentElement.clientWidth)}const Rp=kw("modal-open");class Fu{constructor({ownerDocument:t,handleContainerOverflow:n=!0,isRTL:s=!1}={}){this.handleContainerOverflow=n,this.isRTL=s,this.modals=[],this.ownerDocument=t}getScrollbarWidth(){return Ow(this.ownerDocument)}getElement(){return(this.ownerDocument||document).body}setModalAttributes(t){}removeModalAttributes(t){}setContainerStyle(t){const n={overflow:"hidden"},s=this.isRTL?"paddingLeft":"paddingRight",o=this.getElement();t.style={overflow:o.style.overflow,[s]:o.style[s]},t.scrollBarWidth&&(n[s]=`${parseInt(vr(o,s)||"0",10)+t.scrollBarWidth}px`),o.setAttribute(Rp,""),vr(o,n)}reset(){[...this.modals].forEach(t=>this.remove(t))}removeContainerStyle(t){const n=this.getElement();n.removeAttribute(Rp),Object.assign(n.style,t.style)}add(t){let n=this.modals.indexOf(t);return n!==-1||(n=this.modals.length,this.modals.push(t),this.setModalAttributes(t),n!==0)||(this.state={scrollBarWidth:this.getScrollbarWidth(),style:{}},this.handleContainerOverflow&&this.setContainerStyle(this.state)),n}remove(t){const n=this.modals.indexOf(t);n!==-1&&(this.modals.splice(n,1),!this.modals.length&&this.handleContainerOverflow&&this.removeContainerStyle(this.state),this.removeModalAttributes(t))}isTopModal(t){return!!this.modals.length&&this.modals[this.modals.length-1]===t}}const ic=(e,t)=>xs?e==null?(t||tl()).body:(typeof e=="function"&&(e=e()),e&&"current"in e&&(e=e.current),e&&("nodeType"in e||e.getBoundingClientRect)?e:null):null;function Aw(e,t){const n=Ou(),[s,o]=S.useState(()=>ic(e,n==null?void 0:n.document));if(!s){const i=ic(e);i&&o(i)}return S.useEffect(()=>{},[t,s]),S.useEffect(()=>{const i=ic(e);i!==s&&o(i)},[e,s]),s}function Rw({children:e,in:t,onExited:n,mountOnEnter:s,unmountOnExit:o}){const i=S.useRef(null),a=S.useRef(t),l=Gt(n);S.useEffect(()=>{t?a.current=!0:l(i.current)},[t,l]);const d=Lo(i,e.ref),c=S.cloneElement(e,{ref:d});return t?c:o||!a.current&&s?null:c}const Iw=["onEnter","onEntering","onEntered","onExit","onExiting","onExited","addEndListener","children"];function Fw(e,t){if(e==null)return{};var n={};for(var s in e)if({}.hasOwnProperty.call(e,s)){if(t.indexOf(s)>=0)continue;n[s]=e[s]}return n}function Dw(e){let{onEnter:t,onEntering:n,onEntered:s,onExit:o,onExiting:i,onExited:a,addEndListener:l,children:d}=e,c=Fw(e,Iw);const{major:u}=pg(),p=u>=19?d.props.ref:d.ref,g=S.useRef(null),N=Lo(g,typeof d=="function"?null:p),x=T=>O=>{T&&g.current&&T(g.current,O)},C=S.useCallback(x(t),[t]),b=S.useCallback(x(n),[n]),m=S.useCallback(x(s),[s]),v=S.useCallback(x(o),[o]),h=S.useCallback(x(i),[i]),y=S.useCallback(x(a),[a]),E=S.useCallback(x(l),[l]);return Object.assign({},c,{nodeRef:g},t&&{onEnter:C},n&&{onEntering:b},s&&{onEntered:m},o&&{onExit:v},i&&{onExiting:h},a&&{onExited:y},l&&{addEndListener:E},{children:typeof d=="function"?(T,O)=>d(T,Object.assign({},O,{ref:N})):S.cloneElement(d,{ref:N})})}const Lw=["component"];function Bw(e,t){if(e==null)return{};var n={};for(var s in e)if({}.hasOwnProperty.call(e,s)){if(t.indexOf(s)>=0)continue;n[s]=e[s]}return n}const Mw=S.forwardRef((e,t)=>{let{component:n}=e,s=Bw(e,Lw);const o=Dw(s);return r.jsx(n,Object.assign({ref:t},o))});function zw({in:e,onTransition:t}){const n=S.useRef(null),s=S.useRef(!0),o=Gt(t);return Tp(()=>{if(!n.current)return;let i=!1;return o({in:e,element:n.current,initial:s.current,isStale:()=>i}),()=>{i=!0}},[e,o]),Tp(()=>(s.current=!1,()=>{s.current=!0}),[]),n}function $w({children:e,in:t,onExited:n,onEntered:s,transition:o}){const[i,a]=S.useState(!t);t&&i&&a(!1);const l=zw({in:!!t,onTransition:c=>{const u=()=>{c.isStale()||(c.in?s==null||s(c.element,c.initial):(a(!0),n==null||n(c.element)))};Promise.resolve(o(c)).then(u,p=>{throw c.in||a(!0),p})}}),d=Lo(l,e.ref);return i&&!t?null:S.cloneElement(e,{ref:d})}function Ip(e,t,n){return e?r.jsx(Mw,Object.assign({},n,{component:e})):t?r.jsx($w,Object.assign({},n,{transition:t})):r.jsx(Rw,Object.assign({},n))}const Ww=["show","role","className","style","children","backdrop","keyboard","onBackdropClick","onEscapeKeyDown","transition","runTransition","backdropTransition","runBackdropTransition","autoFocus","enforceFocus","restoreFocus","restoreFocusOptions","renderDialog","renderBackdrop","manager","container","onShow","onHide","onExit","onExited","onExiting","onEnter","onEntering","onEntered"];function Uw(e,t){if(e==null)return{};var n={};for(var s in e)if({}.hasOwnProperty.call(e,s)){if(t.indexOf(s)>=0)continue;n[s]=e[s]}return n}let ac;function qw(e){return ac||(ac=new Fu({ownerDocument:e==null?void 0:e.document})),ac}function Vw(e){const t=Ou(),n=e||qw(t),s=S.useRef({dialog:null,backdrop:null});return Object.assign(s.current,{add:()=>n.add(s.current),remove:()=>n.remove(s.current),isTopModal:()=>n.isTopModal(s.current),setDialogRef:S.useCallback(o=>{s.current.dialog=o},[]),setBackdropRef:S.useCallback(o=>{s.current.backdrop=o},[])})}const Eg=S.forwardRef((e,t)=>{let{show:n=!1,role:s="dialog",className:o,style:i,children:a,backdrop:l=!0,keyboard:d=!0,onBackdropClick:c,onEscapeKeyDown:u,transition:p,runTransition:g,backdropTransition:N,runBackdropTransition:x,autoFocus:C=!0,enforceFocus:b=!0,restoreFocus:m=!0,restoreFocusOptions:v,renderDialog:h,renderBackdrop:y=he=>r.jsx("div",Object.assign({},he)),manager:E,container:T,onShow:O,onHide:_=()=>{},onExit:L,onExited:z,onExiting:H,onEnter:te,onEntering:Q,onEntered:Z}=e,D=Uw(e,Ww);const U=Ou(),G=Aw(T),A=Vw(E),R=dw(),M=uw(n),[B,W]=S.useState(!n),K=S.useRef(null);S.useImperativeHandle(t,()=>A,[A]),xs&&!M&&n&&(K.current=oc(U==null?void 0:U.document)),n&&B&&W(!1);const Y=Gt(()=>{if(A.add(),de.current=Na(document,"keydown",se),le.current=Na(document,"focus",()=>setTimeout(re),!0),O&&O(),C){var he,$t;const Ye=oc((he=($t=A.dialog)==null?void 0:$t.ownerDocument)!=null?he:U==null?void 0:U.document);A.dialog&&Ye&&!Op(A.dialog,Ye)&&(K.current=Ye,A.dialog.focus())}}),ee=Gt(()=>{if(A.remove(),de.current==null||de.current(),le.current==null||le.current(),m){var he;(he=K.current)==null||he.focus==null||he.focus(v),K.current=null}});S.useEffect(()=>{!n||!G||Y()},[n,G,Y]),S.useEffect(()=>{B&&ee()},[B,ee]),hg(()=>{ee()});const re=Gt(()=>{if(!b||!R()||!A.isTopModal())return;const he=oc(U==null?void 0:U.document);A.dialog&&he&&!Op(A.dialog,he)&&A.dialog.focus()}),ne=Gt(he=>{he.target===he.currentTarget&&(c==null||c(he),l===!0&&_())}),se=Gt(he=>{d&&xw(he)&&A.isTopModal()&&(u==null||u(he),he.defaultPrevented||_())}),le=S.useRef(),de=S.useRef(),ge=(...he)=>{W(!0),z==null||z(...he)};if(!G)return null;const Be=Object.assign({role:s,ref:A.setDialogRef,"aria-modal":s==="dialog"?!0:void 0},D,{style:i,className:o,tabIndex:-1});let Ct=h?h(Be):r.jsx("div",Object.assign({},Be,{children:S.cloneElement(a,{role:"document"})}));Ct=Ip(p,g,{unmountOnExit:!0,mountOnEnter:!0,appear:!0,in:!!n,onExit:L,onExiting:H,onExited:ge,onEnter:te,onEntering:Q,onEntered:Z,children:Ct});let zt=null;return l&&(zt=y({ref:A.setBackdropRef,onClick:ne}),zt=Ip(N,x,{in:!!n,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:zt})),r.jsx(r.Fragment,{children:qr.createPortal(r.jsxs(r.Fragment,{children:[zt,Ct]}),G)})});Eg.displayName="Modal";const Hw=Object.assign(Eg,{Manager:Fu});function Kw(e,t){return e.classList?e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function Yw(e,t){e.classList?e.classList.add(t):Kw(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function Fp(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function Gw(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=Fp(e.className,t):e.setAttribute("class",Fp(e.className&&e.className.baseVal||"",t))}const Or={FIXED_CONTENT:".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",STICKY_CONTENT:".sticky-top",NAVBAR_TOGGLER:".navbar-toggler"};class Qw extends Fu{adjustAndStore(t,n,s){const o=n.style[t];n.dataset[t]=o,vr(n,{[t]:`${parseFloat(vr(n,t))+s}px`})}restore(t,n){const s=n.dataset[t];s!==void 0&&(delete n.dataset[t],vr(n,{[t]:s}))}setContainerStyle(t){super.setContainerStyle(t);const n=this.getElement();if(Yw(n,"modal-open"),!t.scrollBarWidth)return;const s=this.isRTL?"paddingLeft":"paddingRight",o=this.isRTL?"marginLeft":"marginRight";Tr(n,Or.FIXED_CONTENT).forEach(i=>this.adjustAndStore(s,i,t.scrollBarWidth)),Tr(n,Or.STICKY_CONTENT).forEach(i=>this.adjustAndStore(o,i,-t.scrollBarWidth)),Tr(n,Or.NAVBAR_TOGGLER).forEach(i=>this.adjustAndStore(o,i,t.scrollBarWidth))}removeContainerStyle(t){super.removeContainerStyle(t);const n=this.getElement();Gw(n,"modal-open");const s=this.isRTL?"paddingLeft":"paddingRight",o=this.isRTL?"marginLeft":"marginRight";Tr(n,Or.FIXED_CONTENT).forEach(i=>this.restore(s,i)),Tr(n,Or.STICKY_CONTENT).forEach(i=>this.restore(o,i)),Tr(n,Or.NAVBAR_TOGGLER).forEach(i=>this.restore(o,i))}}let lc;function Xw(e){return lc||(lc=new Qw(e)),lc}const Pg=S.forwardRef(({className:e,bsPrefix:t,as:n="div",...s},o)=>(t=Ie(t,"modal-body"),r.jsx(n,{ref:o,className:ye(e,t),...s})));Pg.displayName="ModalBody";const _g=S.createContext({onHide(){}}),Du=S.forwardRef(({bsPrefix:e,className:t,contentClassName:n,centered:s,size:o,fullscreen:i,children:a,scrollable:l,...d},c)=>{e=Ie(e,"modal");const u=`${e}-dialog`,p=typeof i=="string"?`${e}-fullscreen-${i}`:`${e}-fullscreen`;return r.jsx("div",{...d,ref:c,className:ye(u,t,o&&`${e}-${o}`,s&&`${u}-centered`,l&&`${u}-scrollable`,i&&p),children:r.jsx("div",{className:ye(`${e}-content`,n),children:a})})});Du.displayName="ModalDialog";const Tg=S.forwardRef(({className:e,bsPrefix:t,as:n="div",...s},o)=>(t=Ie(t,"modal-footer"),r.jsx(n,{ref:o,className:ye(e,t),...s})));Tg.displayName="ModalFooter";const Jw=S.forwardRef(({closeLabel:e="Close",closeVariant:t,closeButton:n=!1,onHide:s,children:o,...i},a)=>{const l=S.useContext(_g),d=Gt(()=>{l==null||l.onHide(),s==null||s()});return r.jsxs("div",{ref:a,...i,children:[o,n&&r.jsx(Tu,{"aria-label":e,variant:t,onClick:d})]})}),Og=S.forwardRef(({bsPrefix:e,className:t,closeLabel:n="Close",closeButton:s=!1,...o},i)=>(e=Ie(e,"modal-header"),r.jsx(Jw,{ref:i,...o,className:ye(t,e),closeLabel:n,closeButton:s})));Og.displayName="ModalHeader";const Zw=lw("h4"),Ag=S.forwardRef(({className:e,bsPrefix:t,as:n=Zw,...s},o)=>(t=Ie(t,"modal-title"),r.jsx(n,{ref:o,className:ye(e,t),...s})));Ag.displayName="ModalTitle";function eS(e){return r.jsx(_u,{...e,timeout:null})}function tS(e){return r.jsx(_u,{...e,timeout:null})}const Rg=S.forwardRef(({bsPrefix:e,className:t,style:n,dialogClassName:s,contentClassName:o,children:i,dialogAs:a=Du,"data-bs-theme":l,"aria-labelledby":d,"aria-describedby":c,"aria-label":u,show:p=!1,animation:g=!0,backdrop:N=!0,keyboard:x=!0,onEscapeKeyDown:C,onShow:b,onHide:m,container:v,autoFocus:h=!0,enforceFocus:y=!0,restoreFocus:E=!0,restoreFocusOptions:T,onEntered:O,onExit:_,onExiting:L,onEnter:z,onEntering:H,onExited:te,backdropClassName:Q,manager:Z,...D},U)=>{const[G,A]=S.useState({}),[R,M]=S.useState(!1),B=S.useRef(!1),W=S.useRef(!1),K=S.useRef(null),[Y,ee]=cw(),re=Lo(U,ee),ne=Gt(m),se=qb();e=Ie(e,"modal");const le=S.useMemo(()=>({onHide:ne}),[ne]);function de(){return Z||Xw({isRTL:se})}function ge(fe){if(!xs)return;const qt=de().getScrollbarWidth()>0,xn=fe.scrollHeight>tl(fe).documentElement.clientHeight;A({paddingRight:qt&&!xn?Ap():void 0,paddingLeft:!qt&&xn?Ap():void 0})}const Be=Gt(()=>{Y&&ge(Y.dialog)});hg(()=>{wd(window,"resize",Be),K.current==null||K.current()});const Ct=()=>{B.current=!0},zt=fe=>{B.current&&Y&&fe.target===Y.dialog&&(W.current=!0),B.current=!1},he=()=>{M(!0),K.current=ug(Y.dialog,()=>{M(!1)})},$t=fe=>{fe.target===fe.currentTarget&&he()},Ye=fe=>{if(N==="static"){$t(fe);return}if(W.current||fe.target!==fe.currentTarget){W.current=!1;return}m==null||m()},Qn=fe=>{x?C==null||C(fe):(fe.preventDefault(),N==="static"&&he())},Zt=(fe,qt)=>{fe&&ge(fe),z==null||z(fe,qt)},ys=fe=>{K.current==null||K.current(),_==null||_(fe)},js=(fe,qt)=>{H==null||H(fe,qt),dg(window,"resize",Be)},Xn=fe=>{fe&&(fe.style.display=""),te==null||te(fe),wd(window,"resize",Be)},Wt=S.useCallback(fe=>r.jsx("div",{...fe,className:ye(`${e}-backdrop`,Q,!g&&"show")}),[g,Q,e]),gn={...n,...G};gn.display="block";const Ut=fe=>r.jsx("div",{role:"dialog",...fe,style:gn,className:ye(t,e,R&&`${e}-static`,!g&&"show"),onClick:N?Ye:void 0,onMouseUp:zt,"data-bs-theme":l,"aria-label":u,"aria-labelledby":d,"aria-describedby":c,children:r.jsx(a,{...D,onMouseDown:Ct,className:s,contentClassName:o,children:i})});return r.jsx(_g.Provider,{value:le,children:r.jsx(Hw,{show:p,ref:re,backdrop:N,container:v,keyboard:!0,autoFocus:h,enforceFocus:y,restoreFocus:E,restoreFocusOptions:T,onEscapeKeyDown:Qn,onShow:b,onHide:m,onEnter:Zt,onEntering:js,onEntered:O,onExit:ys,onExiting:L,onExited:Xn,manager:de(),transition:g?eS:void 0,backdropTransition:g?tS:void 0,renderBackdrop:Wt,renderDialog:Ut})})});Rg.displayName="Modal";const ui=Object.assign(Rg,{Body:Pg,Header:Og,Title:Ag,Footer:Tg,Dialog:Du,TRANSITION_DURATION:300,BACKDROP_TRANSITION_DURATION:150}),nS=()=>{var T;const{id:e}=gs(),t=Ke(),{selectedProperty:n,status:s,error:o}=_e(O=>O.property),{user:i}=_e(O=>({...O.auth})),[a,l]=S.useState("propertydetails"),[d,c]=S.useState(!0),[u,p]=S.useState(!1),[g,N]=S.useState({fundValue:"0",fundPercentage:"0"});if(S.useEffect(()=>{e&&t(Js(e))},[e,t]),S.useEffect(()=>{s==="succeeded"&&c(!1)},[s]),s==="failed")return r.jsxs("p",{children:["Error loading property: ",o]});const x=((T=i==null?void 0:i.result)==null?void 0:T.userId)===(n==null?void 0:n.userId),C=!!i,b=()=>{p(!0)},m=()=>{p(!1)},v=O=>{const{name:_,value:L}=O.target;N({...g,[_]:L})},h=O=>{if(O.preventDefault(),g.fundValue<=0)return oe.error("Please enter a valid funding amount greater than 0");if(g.fundValue>((n==null?void 0:n.totalCoststoBuyAtoB)||0))return oe.error(`Funding amount cannot exceed ${(n==null?void 0:n.totalCoststoBuyAtoB)||"N/A"}`);if(g.fundPercentage<=0||g.fundPercentage>100)return oe.error("Please enter a valid interest percentage (0-100)");const _={fundValue:Number(g.fundValue),fundPercentage:Number(g.fundPercentage),userId:i.result._id};t(Ii({id:e,fundDetails:_,toast:oe})),m()},y=O=>{const _=JSON.parse(localStorage.getItem("profile")).token;t(Fi({id:e,fundDetailId:O,token:_}))},E=O=>{window.confirm("Are you sure you want to delete this?")&&y(O)};return r.jsxs(r.Fragment,{children:[r.jsx(Le,{}),r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{}),r.jsx("br",{}),r.jsxs("div",{children:[r.jsxs("ul",{className:"nav nav-tabs",role:"tablist",style:{borderRadius:"12px 12px 0 0"},children:[r.jsx("li",{role:"presentation",className:a==="propertydetails"?"active tab":"tab",children:r.jsx("a",{onClick:()=>l("propertydetails"),role:"tab",children:"Property Details"})}),r.jsx("li",{role:"presentation",className:a==="Funding Details"?"active tab":"tab",children:r.jsx("a",{onClick:()=>l("Funding Details"),role:"tab",children:"Funding Details"})}),r.jsx("li",{role:"presentation",className:a==="Accounting"?"active tab":"tab",children:r.jsx("a",{onClick:()=>l("Accounting"),role:"tab",children:"Accounting"})})]}),r.jsxs("div",{children:[a==="propertydetails"&&r.jsx("div",{role:"tabpanel",className:"card container tab-pane active col-12",children:r.jsx("div",{className:"container col-12",children:d?r.jsx("div",{className:"loader",children:"Loading..."}):n?r.jsx("div",{className:"py-3 py-md-5 bg-light",children:r.jsxs("div",{className:"card-header bg-white",children:[r.jsxs("div",{className:"row",children:[r.jsxs("div",{className:"col-md-5 mt-3",children:[r.jsx("div",{children:n.images&&n.images[0]?r.jsx("img",{src:n.images[0].file||mt,alt:"Property Thumbnail",style:{marginTop:"0px",maxWidth:"400px",maxHeight:"400px"}}):r.jsx("img",{src:mt,alt:"Default Property Thumbnail",style:{marginTop:"0px",maxWidth:"400px",maxHeight:"400px"}})}),r.jsx("br",{}),r.jsxs("div",{className:"label-stock border",children:[r.jsxs("p",{style:{color:"#fda417",fontSize:"30px",padding:"10px",fontWeight:"normal"},children:["Funding Required:"," ",r.jsxs("span",{style:{color:"#000000",fontSize:"25px"},children:[r.jsx("span",{className:"fa fa-dollar",style:{color:"#F74B02"}})," ",(n==null?void 0:n.totalCoststoBuyAtoB)||"N/A"]})]}),r.jsxs("p",{style:{color:"#fda417",fontSize:"30px",padding:"10px",fontWeight:"normal"},children:["Net profit:"," ",r.jsxs("span",{style:{color:"#000000",fontSize:"25px"},children:[r.jsx("span",{className:"fa fa-dollar",style:{color:"#F74B02"}})," ",(n==null?void 0:n.NetProfit)||"N/A"]})]})]}),r.jsx("br",{}),r.jsxs("button",{className:"btn btn-primary back",style:{backgroundColor:"#fda417",border:"#fda417"},disabled:x||!C,onClick:x||!C?null:b,children:[r.jsx("span",{style:{fontSize:"25px",fontWeight:"normal"},children:"Willing to Invest/Fund"})," "]}),x&&r.jsx("span",{style:{color:"red",marginTop:"10px"},children:"You cannot invest in your own property."}),!C&&r.jsx("span",{style:{color:"red",marginTop:"10px"},children:"Please login to invest."})]}),r.jsx("div",{className:"col-md-7 mt-3",children:r.jsxs("div",{className:"product-view",children:[r.jsxs("h4",{className:"product-name",style:{color:"#fda417",fontSize:"25px"},children:[n.address,r.jsx("label",{className:"label-stock bg-success",children:"Verified Property"})]}),r.jsx("hr",{}),r.jsxs("span",{className:"product-path",children:[r.jsxs("span",{style:{color:"#fda417",fontSize:"15px"},children:["City:"," "]})," ",n.city," "," /"," "," "," ",r.jsxs("span",{style:{color:"#fda417",fontSize:"15px"},children:["County:"," "]})," ",n.county," "," ","/"," "," ",r.jsxs("span",{style:{color:"#fda417",fontSize:"15px"},children:["State:"," "]})," ",n.state," "," ","/ "," "," ",r.jsxs("span",{style:{color:"#fda417",fontSize:"15px"},children:["Zipcode:"," "]})," ",n.zip," "]}),r.jsx("br",{})," ",r.jsx("br",{}),r.jsxs("div",{children:[r.jsxs("span",{className:"selling-price",style:{color:"#fda417",fontSize:"15px"},children:["Total Living Square Foot:"," "]}),n.totallivingsqft,r.jsx("p",{}),r.jsxs("span",{className:"selling-price",style:{color:"#fda417",fontSize:"15px"},children:["Cost per Square Foot:"," "]}),"$",n.costpersqft,"/sqft",r.jsx("p",{}),r.jsxs("span",{className:"selling-price",style:{color:"#fda417",fontSize:"15px"},children:["Year Built:"," "]}),n.yearBuild]}),r.jsxs("div",{className:"mt-3 card bg-white label-stock border",children:[r.jsx("h5",{className:"mb-0",style:{color:"#fda417",fontSize:"15px"},children:"Legal Description"}),r.jsx("span",{children:n.legal?n.legal:"No data available"})]})]})})]}),r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-md-12 mt-3",children:r.jsxs("div",{className:"card",children:[r.jsx("div",{className:"card-header bg-white",children:r.jsx("h4",{className:"product-name",style:{color:"#fda417",fontSize:"25px"},children:"Description"})}),r.jsx("div",{className:"card-body",children:r.jsx("p",{children:"Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum."})})]})})})]})}):r.jsx("p",{children:"No property found."})})}),a==="Funding Details"&&r.jsx("div",{children:a==="Funding Details"&&r.jsx("div",{className:"tab-pane active",children:r.jsx("div",{children:n.fundDetails.length===0?r.jsx("p",{children:"No fund details available."}):r.jsx("ul",{style:{listStyleType:"none",padding:0},children:n.fundDetails.map((O,_)=>{var L,z;return r.jsx("li",{className:"d-flex align-items-center",children:r.jsxs("div",{className:"d-flex align-items-center",children:[r.jsxs("span",{children:["Total Fund Value: $ ",O.fundValue,", Interest Percentage: ",O.fundPercentage,"%"]}),r.jsx("br",{})," ",r.jsx("br",{}),((L=i==null?void 0:i.result)==null?void 0:L.userId)&&((z=i==null?void 0:i.result)==null?void 0:z._id)===O.userId&&r.jsx("button",{className:"btn btn-danger ms-2",onClick:()=>E(O._id),style:{padding:"2px 10px",marginLeft:"8px"},children:"x"})]})},_)})})})})}),a==="Accounting"&&r.jsx("div",{})]})]}),r.jsx(tt,{}),r.jsxs(ui,{show:u,onHide:m,children:[r.jsx(ui.Header,{closeButton:!0,children:r.jsx(ui.Title,{children:"Investment/Funding Details"})}),r.jsx(ui.Body,{children:r.jsxs(er,{onSubmit:h,children:[r.jsxs(er.Group,{children:[r.jsx(er.Label,{children:"Total Fund Value"}),r.jsx(er.Control,{type:"number",id:"fundValue",name:"fundValue",value:g.fundValue,onChange:v})]}),r.jsx("br",{}),r.jsxs(er.Group,{children:[r.jsx(er.Label,{children:"Interest Percentage"}),r.jsx(er.Control,{type:"number",id:"fundPercentage",name:"fundPercentage",value:g.fundPercentage,onChange:v})]}),r.jsx(mg,{variant:"primary",type:"submit",children:"Submit"})]})})]})]})},rS=()=>{const[e,t]=S.useState([]),[n,s]=S.useState(0),[o,i]=S.useState(0),[a]=S.useState(10),[l,d]=S.useState(""),[c,u]=S.useState(!1),[p,g]=S.useState(!1),N=async()=>{u(!0),g(!1);try{const m=await me.get("http://67.225.129.127:3002/mysql/searchmysql",{params:{limit:a,offset:o*a,search:l},headers:{"Cache-Control":"no-cache"}});t(m.data.data),s(m.data.totalRecords),l.trim()&&g(!0)}catch(m){console.log("Error fetching data:",m)}finally{u(!1)}},x=m=>{d(m.target.value),m.target.value.trim()===""&&(i(0),t([]),s(0),g(!1),N())},C=m=>{m.key==="Enter"&&(m.preventDefault(),N())};S.useEffect(()=>{N()},[l,o]);const b=Math.ceil(n/a);return r.jsxs(r.Fragment,{children:[r.jsx(Le,{}),r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{}),r.jsxs("div",{className:"container col-12",children:[r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-lg-12 card-margin col-12",children:r.jsx("div",{className:"card search-form col-12",children:r.jsx("div",{className:"card-body p-0",children:r.jsx("form",{id:"search-form",children:r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-12",children:r.jsx("div",{className:"row no-gutters",children:r.jsx("div",{className:"col-lg-8 col-md-6 col-sm-12 p-0",children:r.jsx("input",{type:"text",placeholder:"Enter the keyword and hit ENTER button...",className:"form-control",id:"search",name:"search",value:l,onChange:x,onKeyDown:C})})})})})})})})})}),r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-12",children:r.jsx("div",{className:"card card-margin",children:r.jsxs("div",{className:"card-body",children:[p&&e.length>0&&r.jsxs("div",{children:["Showing search results for the keyword"," ",r.jsx("span",{style:{color:"#fda417",fontSize:"25px"},children:l})]}),r.jsx("div",{className:"table-responsive",children:r.jsxs("table",{className:"table widget-26",children:[r.jsx("thead",{style:{color:"#fda417",fontSize:"15px"},children:r.jsxs("tr",{children:[r.jsx("th",{children:"Details"}),r.jsx("th",{children:"Total Living Square Foot"}),r.jsx("th",{children:"Year Built"}),r.jsx("th",{children:"Cost per Square Foot"})]})}),r.jsx("tbody",{children:e.length>0?e.map((m,v)=>r.jsxs("tr",{children:[r.jsx("td",{children:r.jsxs("div",{className:"widget-26-job-title",children:[r.jsx(ae,{to:`/properties/${m.house_id}`,className:"link-primary text-decoration-none",target:"_blank",children:m.address}),r.jsxs("p",{className:"m-0",children:[r.jsxs("span",{className:"employer-name",children:[r.jsx("i",{className:"fa fa-map-marker",style:{color:"#F74B02"}}),m.city,", ",m.county,",",m.state]}),r.jsxs("p",{className:"text-muted m-0",children:["House Id: ",m.house_id]})]})]})}),r.jsx("td",{children:r.jsx("div",{className:"widget-26-job-info",children:r.jsx("p",{className:"m-0",children:m.total_living_sqft})})}),r.jsx("td",{children:r.jsx("div",{className:"widget-26-job-info",children:r.jsx("p",{className:"m-0",children:m.year_built})})}),r.jsx("td",{children:r.jsxs("div",{className:"widget-26-job-salary",children:["$ ",m.cost_per_sqft,"/sqft"]})})]},v)):r.jsx("tr",{children:r.jsx("td",{colSpan:"4",children:"No results found"})})})]})}),r.jsxs("div",{children:[r.jsx("button",{onClick:()=>i(o-1),disabled:o===0||c,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Previous"}),r.jsxs("span",{children:[" ","Page ",o+1," of ",b," "]}),r.jsx("button",{onClick:()=>i(o+1),disabled:o+1>=b||c,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Next"})]})]})})})})]}),r.jsx(tt,{})]})},sS=()=>r.jsxs(r.Fragment,{children:[r.jsx(Le,{}),r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{}),r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{}),"This page will show the list of services offered by the company",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{}),r.jsx(tt,{})]}),oS=()=>{const{house_id:e}=gs();console.log("house_id",e);const[t,n]=S.useState(null),[s,o]=S.useState(!0);return S.useEffect(()=>{(async()=>{try{const a=await me.get(`http://67.225.129.127:3002/mysql/properties/${e}`);n(a.data)}catch(a){console.log("Error fetching property details:",a)}finally{o(!1)}})()},[e]),r.jsxs(r.Fragment,{children:[r.jsx(Le,{}),r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{}),r.jsx("div",{className:"container col-12",children:s?r.jsx("div",{className:"loader",children:"Loading..."}):t?r.jsx("div",{className:"py-3 py-md-5 bg-light",children:r.jsxs("div",{className:"card-header bg-white",children:[r.jsxs("div",{className:"row",children:[r.jsx("div",{className:"col-md-5 mt-3",children:r.jsx("div",{className:"bg-white border",children:r.jsx("img",{src:mt,className:"w-70",alt:"Img",style:{marginTop:"0px",maxWidth:"450px",maxHeight:"450px"}})})}),r.jsx("div",{className:"col-md-7 mt-3",children:r.jsxs("div",{className:"product-view",children:[r.jsxs("h4",{className:"product-name",style:{color:"#fda417",fontSize:"25px"},children:[t.address,r.jsx("label",{className:"label-stock bg-success",children:"Verified Property"})]}),r.jsx("hr",{}),r.jsxs("p",{className:"product-path",children:[r.jsxs("span",{style:{color:"#fda417",fontSize:"15px"},children:["city:"," "]})," ",t.city," /",r.jsxs("span",{style:{color:"#fda417",fontSize:"15px"},children:["County:"," "]})," ",t.county," /",r.jsxs("span",{style:{color:"#fda417",fontSize:"15px"},children:["State:"," "]})," ",t.state," /",r.jsx("span",{style:{color:"#fda417",fontSize:"15px"},children:"Zipcode:"})," ",t.zip]}),r.jsxs("div",{children:[r.jsxs("span",{className:"selling-price",style:{color:"#fda417",fontSize:"15px"},children:["Total Living Square Foot:"," "]}),t.total_living_sqft,r.jsx("p",{}),r.jsxs("span",{className:"",style:{color:"#fda417",fontSize:"15px"},children:["Cost per Square Foot:"," "]}),"$",t.cost_per_sqft,"/sqft",r.jsx("p",{}),r.jsxs("span",{className:"",style:{color:"#fda417",fontSize:"15px"},children:["Year Built:"," "]}),t.year_built]}),r.jsxs("div",{className:"mt-3 card bg-white",children:[r.jsx("h5",{className:"mb-0",style:{color:"#fda417",fontSize:"15px"},children:"Legal Summary report"}),r.jsx("span",{children:t.legal_summary_report?t.legal_summary_report:"No data available"})]})]})})]}),r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-md-12 mt-3",children:r.jsxs("div",{className:"card",children:[r.jsx("div",{className:"card-header bg-white",children:r.jsx("h4",{className:"product-name",style:{color:"#fda417",fontSize:"25px"},children:"Description"})}),r.jsx("div",{className:"card-body",children:r.jsx("p",{children:"Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum."})})]})})})]})}):r.jsx("p",{children:"No property details found."})}),r.jsx(tt,{})]})},Dp=()=>{const{id:e}=gs(),t=Ke(),[n,s]=S.useState("propertydetails"),o=()=>{n==="propertydetails"&&s("Images"),n==="Images"&&s("Accounting"),n==="Accounting"&&s("IAB"),n==="IAB"&&s("IAB")},i=()=>{n==="Images"&&s("propertydetails"),n==="Accounting"&&s("Images"),n==="IAB"&&s("Accounting")},{selectedProperty:a}=_e(k=>k.property),[l,d]=S.useState({address:"",city:"",state:"",zip:"",propertyTaxInfo:[{propertytaxowned:"0",ownedyear:"0",taxassessed:"0",taxyear:"0"}],images:[{title:"",file:""}],googleMapLink:"",purchaseCost:"0",costPaidAtoB:[{title:"Closing Fees - Settlement Fee",price:"0"},{title:"Closing Fees - Owner's Title Insurance",price:"0"},{title:"Courier Fees",price:"0"},{title:"Wire Fee",price:"0"},{title:"E recording Fee",price:"0"},{title:"Recording Fee",price:"0"},{title:"Property Tax",price:"0"}],renovationRisk:null,turnTime:"",credits:[{title:"Credits",price:"0"}],cashAdjustments:[{title:"Cash Adjustments",price:"0"}],incidentalCost:[{title:"Accounting Fees",price:"0"},{title:"Bank Charges",price:"0"},{title:"Legal Fees",price:"0"},{title:"Property Taxes",price:"0"},{title:"Travel Expenses",price:"0"}],carryCosts:[{title:"Electricity",price:"0"},{title:"Water and Sewer",price:"0"},{title:"Natural Gas",price:"0"},{title:"Trash and Recycling",price:"0"},{title:"Internet and Cable",price:"0"},{title:"Heating Oil/Propane",price:"0"},{title:"HOA fees",price:"0"},{title:"Dump fees",price:"0"},{title:"Insurance",price:"0"},{title:"Interest on Loans",price:"0"},{title:"Loan Payment",price:"0"},{title:"Property Taxes",price:"0"},{title:"Security",price:"0"},{title:"Real Estates fees",price:"0"}],renovationCost:[{title:"Demolition: Removing existing structures or finishes",price:"0"},{title:"Framing: Making structural changes or additions",price:"0"},{title:"Plumbing: Installing or modifying plumbing systems",price:"0"},{title:"Electrical: Updating wiring and fixtures",price:"0"},{title:"HVAC: Installing or upgrading heating and cooling systems",price:"0"},{title:"Insulation: Adding or replacing insulation",price:"0"},{title:"Drywall: Hanging and finishing drywall",price:"0"},{title:"Interior Finishes: Painting, flooring, cabinetry, and fixtures",price:"0"},{title:"Exterior Work: Addressing siding, roofing, or landscaping, if applicable",price:"0"},{title:"Final Inspections: Ensuring everything meets codes",price:"0"},{title:"Punch List: Completing any remaining task",price:"0"}],sellingPriceBtoC:"0",costPaidOutofClosing:[{title:"Buyers Agent Commission",price:"0"},{title:"Sellers Agent Commission",price:"0"},{title:"Home Warranty",price:"0"},{title:"Document Preparation",price:"0"},{title:"Excise Tax",price:"0"},{title:"Legal Fees",price:"0"},{title:"Wire Fees/courier Fees",price:"0"},{title:"County Taxes",price:"0"},{title:"HOA Fee",price:"0"},{title:"Payoff of 1st Mortgage",price:"0"},{title:"Payoff of 2nd Mortgage",price:"0"},{title:"Payoff 3rd Mortgage",price:"0"}],adjustments:[{title:"adjustments",price:"0"}],incomestatement:[{title:"income statement",price:"0"},{title:"income statement",price:"0"}],fundspriortoclosing:"0",shorttermrental:"0",OtherIncome:"0",InsuranceClaim:"0",LongTermRental:"0",FinancingCostClosingCost:"0",IAB:[{title:"IAB Title",URL:"Please enter URL"}]}),c=[1,2,3,4,5,6,7,8,9,10];S.useEffect(()=>{t(Js(e))},[t,e]),S.useEffect(()=>{a&&d({address:a.address||"",city:a.city||"",state:a.state||"",zip:a.zip||"",parcel:a.parcel||"",subdivision:a.subdivision||"",legal:a.legal||"",costpersqft:a.costpersqft||"",propertyType:a.propertyType||"",lotacres:a.lotacres||"",yearBuild:a.yearBuild||"",totallivingsqft:a.totallivingsqft||"",beds:a.beds||"",baths:a.baths||"",stories:a.stories||"",garage:a.garage||"",garagesqft:a.garagesqft||"",poolspa:a.poolspa||"",fireplaces:a.fireplaces||"",ac:a.ac||"",heating:a.heating||"",buildingstyle:a.buildingstyle||"",sitevacant:a.sitevacant||"",extwall:a.extwall||"",roofing:a.roofing||"",totalSqft:a.totalSqft||"",renovationRisk:a.renovationRisk,closeDateAtoB:a.closeDateAtoB,closeDateBtoC:a.closeDateBtoC,purchaseCost:a.purchaseCost,costPaidAtoB:a.costPaidAtoB,totalPurchaseCosts:a.totalPurchaseCosts,credits:a.credits,totalPurchaseCostsaftercredits:a.totalPurchaseCostsaftercredits,cashAdjustments:a.cashAdjustments,totalcashrequiredonsettlement:a.totalcashrequiredonsettlement,incidentalCost:a.incidentalCost,carryCosts:a.carryCosts,renovationCost:a.renovationCost,sellingPriceBtoC:a.sellingPriceBtoC,costPaidOutofClosing:a.costPaidOutofClosing,totalCosttoSellBtoC:a.totalCosttoSellBtoC,grossproceedsperHUD:a.grossproceedsperHUD,adjustments:a.adjustments,fundsavailablefordistribution:a.fundsavailablefordistribution,incomestatement:a.incomestatement,fundspriortoclosing:a.fundspriortoclosing,shorttermrental:a.shorttermrental,OtherIncome:a.OtherIncome,InsuranceClaim:a.InsuranceClaim,LongTermRental:a.LongTermRental,netprofitbeforefinancingcosts:a.netprofitbeforefinancingcosts,FinancingCostClosingCost:a.FinancingCostClosingCost,propertyTaxInfo:a.propertyTaxInfo||[{propertytaxowned:"0",ownedyear:"0",taxassessed:"0",taxyear:"0"}],images:a.images||[{title:"",file:""}],googleMapLink:a.googleMapLink,rateofreturn:a.rateofreturn,IAB:a.IAB})},[a]);const u=k=>{d({...l,[k.target.name]:k.target.value})},p=(k,P)=>{const{name:f,value:j}=k.target,w=[...l.propertyTaxInfo],F={...w[P]};F[f]=j,w[P]=F,d({...l,propertyTaxInfo:w})},g=k=>{k.preventDefault();const P=z(),f=D(),j=U(),w=B(),F=W(),q=ne(),X=Be(),ce=Ye(),Wo=Qn(),ll=Zt(),cl=gn(),dl=Ut(),ul=Ut(),fl=Ns(),pl=Mo(),ml=Zn(),hl=en(),vl=Er(),gl=bs(),xl={...l,totalPurchaseCosts:P.toFixed(2),totalcredits:f.toFixed(2),totalPurchaseCostsaftercredits:j.toFixed(2),totalcashAdjustments:w.toFixed(2),totalcashrequiredonsettlement:F.toFixed(2),totalincidentalCost:q.toFixed(2),totalcarryCosts:X.toFixed(2),totalrenovationCost:ce.toFixed(2),totalRenovationsandHoldingCost:Wo.toFixed(2),totalCoststoBuyAtoB:ll.toFixed(2),totalcostPaidOutofClosing:cl.toFixed(2),totalCosttoSellBtoC:dl.toFixed(2),grossproceedsperHUD:ul.toFixed(2),totaladjustments:fl.toFixed(2),fundsavailablefordistribution:pl.toFixed(2),totalincomestatement:ml.toFixed(2),netBtoCsalevalue:hl.toFixed(2),netprofitbeforefinancingcosts:vl.toFixed(2),netprofit:gl.toFixed(2)};t(Ri({id:e,propertyData:xl}))},N=()=>{d({...l,propertyTaxInfo:[...l.propertyTaxInfo,{propertytaxowned:"",ownedyear:"",taxassessed:"",taxyear:""}]})},x=k=>{const P=l.propertyTaxInfo.filter((f,j)=>j!==k);d({...l,propertyTaxInfo:P})},C=(k,P)=>{const f=[...l.images];f[P]={...f[P],file:k.base64},d({...l,images:f})},b=()=>{d({...l,images:[...l.images,{title:"",file:""}]})},m=k=>{const P=l.images.filter((f,j)=>j!==k);d({...l,images:P})},v=(k,P)=>{const f=[...l.images];f[k]={...f[k],title:P.target.value},d({...l,images:f})};S.useEffect(()=>{E(l.closeDateAtoB,l.closeDateBtoC)},[l.closeDateAtoB,l.closeDateBtoC]);const[h,y]=S.useState("0 days"),E=(k,P)=>{if(k&&P){const f=new Date(k),j=new Date(P),w=Math.abs(j-f),F=Math.ceil(w/(1e3*60*60*24));y(`${F} days`)}else y("0 days")},T=()=>{d(k=>({...k,costPaidAtoB:[...k.costPaidAtoB,{title:"",price:""}]}))},O=k=>{const P=l.costPaidAtoB.filter((f,j)=>j!==k);d(f=>({...f,costPaidAtoB:P}))},_=(k,P,f)=>{const j=[...l.costPaidAtoB];j[k][P]=f,d(w=>({...w,costPaidAtoB:j}))},L=(k,P)=>{let f=k.target.value;if(f=f.replace(/^\$/,"").trim(),/^\d*\.?\d*$/.test(f)||f===""){const w=l.costPaidAtoB.map((F,q)=>q===P?{...F,price:f,isInvalid:!1}:F);d({...l,costPaidAtoB:w})}else{const w=l.costPaidAtoB.map((F,q)=>q===P?{...F,isInvalid:!0}:F);d({...l,costPaidAtoB:w})}},z=()=>{const k=l.costPaidAtoB.reduce((f,j)=>{const w=parseFloat(j.price)||0;return f+w},0),P=parseFloat(l.purchaseCost)||0;return k+P},H=()=>{d(k=>({...k,credits:[...k.credits,{title:"",price:""}]}))},te=k=>{const P=l.credits.filter((f,j)=>j!==k);d(f=>({...f,credits:P}))},Q=(k,P,f)=>{const j=[...l.credits];j[k][P]=f,d(w=>({...w,credits:j}))},Z=(k,P)=>{const f=k.target.value;if(/^\d*\.?\d*$/.test(f)||f===""){const w=l.credits.map((F,q)=>q===P?{...F,price:f,isInvalid:!1}:F);d({...l,credits:w})}else{const w=l.credits.map((F,q)=>q===P?{...F,isInvalid:!0}:F);d({...l,credits:w})}},D=()=>l.credits.reduce((k,P)=>{const f=parseFloat(P.price);return k+(isNaN(f)?0:f)},0),U=()=>{const k=l.costPaidAtoB.reduce((j,w)=>{const F=parseFloat(w.price)||0;return j+F},0),P=l.credits.reduce((j,w)=>{const F=parseFloat(w.price)||0;return j+F},0),f=parseFloat(l.purchaseCost)||0;return k+P+f},G=()=>{d(k=>({...k,cashAdjustments:[...k.cashAdjustments,{title:"",price:""}]}))},A=k=>{const P=l.cashAdjustments.filter((f,j)=>j!==k);d(f=>({...f,cashAdjustments:P}))},R=(k,P,f)=>{const j=[...l.cashAdjustments];j[k][P]=f,d(w=>({...w,cashAdjustments:j}))},M=(k,P)=>{const f=k.target.value;if(/^\d*\.?\d*$/.test(f)||f===""){const w=l.cashAdjustments.map((F,q)=>q===P?{...F,price:f,isInvalid:!1}:F);d({...l,cashAdjustments:w})}else{const w=l.cashAdjustments.map((F,q)=>q===P?{...F,isInvalid:!0}:F);d({...l,cashAdjustments:w})}},B=()=>l.cashAdjustments.reduce((k,P)=>{const f=parseFloat(P.price);return k+(isNaN(f)?0:f)},0),W=()=>{const k=B(),P=D(),f=z();return k+P+f},K=()=>{d(k=>({...k,incidentalCost:[...k.incidentalCost,{title:"",price:""}]}))},Y=k=>{const P=l.incidentalCost.filter((f,j)=>j!==k);d(f=>({...f,incidentalCost:P}))},ee=(k,P,f)=>{const j=[...l.incidentalCost];j[k][P]=f,d(w=>({...w,incidentalCost:j}))},re=(k,P)=>{const f=k.target.value;if(/^\d*\.?\d*$/.test(f)||f===""){const w=l.incidentalCost.map((F,q)=>q===P?{...F,price:f,isInvalid:!1}:F);d({...l,incidentalCost:w})}else{const w=l.incidentalCost.map((F,q)=>q===P?{...F,isInvalid:!0}:F);d({...l,incidentalCost:w})}},ne=()=>l.incidentalCost.reduce((k,P)=>{const f=parseFloat(P.price);return k+(isNaN(f)?0:f)},0),se=()=>{d(k=>({...k,carryCosts:[...k.carryCosts,{title:"",price:""}]}))},le=k=>{const P=l.carryCosts.filter((f,j)=>j!==k);d(f=>({...f,carryCosts:P}))},de=(k,P,f)=>{const j=[...l.carryCosts];j[k][P]=f,d(w=>({...w,carryCosts:j}))},ge=(k,P)=>{const f=k.target.value;if(/^\d*\.?\d*$/.test(f)||f===""){const w=l.carryCosts.map((F,q)=>q===P?{...F,price:f,isInvalid:!1}:F);d({...l,carryCosts:w})}else{const w=l.carryCosts.map((F,q)=>q===P?{...F,isInvalid:!0}:F);d({...l,carryCosts:w})}},Be=()=>l.carryCosts.reduce((k,P)=>{const f=parseFloat(P.price);return k+(isNaN(f)?0:f)},0),Ct=()=>{d(k=>({...k,renovationCost:[...k.renovationCost,{title:"",price:""}]}))},zt=k=>{const P=l.renovationCost.filter((f,j)=>j!==k);d(f=>({...f,renovationCost:P}))},he=(k,P,f)=>{const j=[...l.renovationCost];j[k][P]=f,d(w=>({...w,renovationCost:j}))},$t=(k,P)=>{const f=k.target.value;if(/^\d*\.?\d*$/.test(f)||f===""){const w=l.renovationCost.map((F,q)=>q===P?{...F,price:f,isInvalid:!1}:F);d({...l,renovationCost:w})}else{const w=l.renovationCost.map((F,q)=>q===P?{...F,isInvalid:!0}:F);d({...l,renovationCost:w})}},Ye=()=>l.renovationCost.reduce((k,P)=>{const f=parseFloat(P.price);return k+(isNaN(f)?0:f)},0),Qn=()=>{const k=ne(),P=Be(),f=Ye();return k+P+f},Zt=()=>{const k=Qn(),P=W();return k+P},ys=()=>{d(k=>({...k,costPaidOutofClosing:[...k.costPaidOutofClosing,{title:"",price:""}]}))},js=k=>{const P=l.costPaidOutofClosing.filter((f,j)=>j!==k);d(f=>({...f,costPaidOutofClosing:P}))},Xn=(k,P,f)=>{const j=[...l.costPaidOutofClosing];j[k][P]=f,d(w=>({...w,costPaidOutofClosing:j}))},Wt=(k,P)=>{const f=k.target.value;if(/^\d*\.?\d*$/.test(f)||f===""){const w=l.costPaidOutofClosing.map((F,q)=>q===P?{...F,price:f,isInvalid:!1}:F);d({...l,costPaidOutofClosing:w})}else{const w=l.costPaidOutofClosing.map((F,q)=>q===P?{...F,isInvalid:!0}:F);d({...l,costPaidOutofClosing:w})}},gn=()=>l.costPaidOutofClosing.reduce((k,P)=>{const f=parseFloat(P.price);return k+(isNaN(f)?0:f)},0),Ut=()=>{const k=l.sellingPriceBtoC,P=gn();return k-P},fe=()=>{d(k=>({...k,adjustments:[...k.adjustments,{title:"",price:""}]}))},qt=k=>{const P=l.adjustments.filter((f,j)=>j!==k);d(f=>({...f,adjustments:P}))},xn=(k,P,f)=>{const j=[...l.adjustments];j[k][P]=f,d(w=>({...w,adjustments:j}))},Bo=(k,P)=>{const f=k.target.value;if(/^\d*\.?\d*$/.test(f)||f===""){const w=l.adjustments.map((F,q)=>q===P?{...F,price:f,isInvalid:!1}:F);d({...l,adjustments:w})}else{const w=l.adjustments.map((F,q)=>q===P?{...F,isInvalid:!0}:F);d({...l,adjustments:w})}},Ns=()=>l.adjustments.reduce((k,P)=>{const f=parseFloat(P.price);return k+(isNaN(f)?0:f)},0),Mo=()=>{const k=Ut(),P=Ns();return k+P},rl=()=>{d(k=>({...k,incomestatement:[...k.incomestatement,{title:"",price:""}]}))},sl=k=>{const P=l.incomestatement.filter((f,j)=>j!==k);d(f=>({...f,incomestatement:P}))},Cs=(k,P,f)=>{const j=[...l.incomestatement];j[k][P]=f,d(w=>({...w,incomestatement:j}))},Jn=(k,P)=>{const f=k.target.value;if(/^\d*\.?\d*$/.test(f)||f===""){const w=l.incomestatement.map((F,q)=>q===P?{...F,price:f,isInvalid:!1}:F);d({...l,incomestatement:w})}else{const w=l.incomestatement.map((F,q)=>q===P?{...F,isInvalid:!0}:F);d({...l,incomestatement:w})}},Zn=()=>l.incomestatement.reduce((k,P)=>{const f=parseFloat(P.price);return k+(isNaN(f)?0:f)},0),en=()=>{const k=Zn(),P=Ut();return k+P},Er=()=>{const k=isNaN(parseFloat(en()))?0:parseFloat(en()),P=isNaN(parseFloat(l.shorttermrental))?0:parseFloat(l.shorttermrental),f=isNaN(parseFloat(l.OtherIncome))?0:parseFloat(l.OtherIncome),j=isNaN(parseFloat(l.InsuranceClaim))?0:parseFloat(l.InsuranceClaim),w=isNaN(parseFloat(l.LongTermRental))?0:parseFloat(l.LongTermRental),F=isNaN(parseFloat(Zt()))?0:parseFloat(Zt());return k+P+f+j+w-F},bs=()=>{const k=Er(),P=l.FinancingCostClosingCost;return k-P},ol=()=>bs(),zo=()=>{d(k=>({...k,IAB:[...k.IAB,{title:"",URL:""}]}))},$o=k=>{const P=l.IAB.filter((f,j)=>j!==k);d(f=>({...f,IAB:P}))},il=(k,P,f)=>{const j=[...l.IAB];j[k][P]=f,d(w=>({...w,IAB:j}))},al=(k,P,f)=>{const j=[...l.IAB];j[k][P]=f,d(w=>({...w,IAB:j}))};return r.jsxs(r.Fragment,{children:[r.jsx(Le,{}),r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{}),r.jsx("div",{className:"card d-flex justify-content-center align-items-center col-12",style:{padding:"35px",paddingLeft:"250px"},children:r.jsxs("div",{className:"justify-content-center",children:[r.jsxs("ul",{className:"nav nav-tabs",role:"tablist",children:[r.jsx("li",{role:"presentation",className:n==="propertydetails"?"active tab":"tab",children:r.jsx("a",{onClick:()=>s("propertydetails"),role:"tab",children:"Property Details"})}),r.jsx("li",{role:"presentation",className:n==="Images"?"active tab":"tab",children:r.jsx("a",{onClick:()=>s("Images"),role:"tab",children:"Images, Maps"})}),r.jsx("li",{role:"presentation",className:n==="Accounting"?"active tab":"tab",children:r.jsx("a",{onClick:()=>s("Accounting"),role:"tab",children:"Accounting"})}),r.jsx("li",{role:"presentation",className:n==="IAB"?"active tab":"tab",children:r.jsx("a",{onClick:()=>s("IAB"),role:"tab",children:"IAB"})})]}),r.jsxs("div",{className:"tab-content",children:[n==="propertydetails"&&r.jsxs("div",{role:"tabpanel",className:"card tab-pane active",children:[r.jsxs("form",{children:[r.jsx("h3",{style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:"Property Location"}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Property Address",r.jsx("input",{type:"text",className:"form-control",name:"address",value:l.address,onChange:u,required:!0})]})}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["City",r.jsx("input",{type:"text",className:"form-control",name:"city",value:l.city,onChange:u,required:!0})]})}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["State",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"state",value:l.state,onChange:u,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"Alaska",children:"Alaska"}),r.jsx("option",{value:"Alabama",children:"Alabama"}),r.jsx("option",{value:"Arkansas",children:"Arkansas"}),r.jsx("option",{value:"Arizona",children:"Arizona"}),r.jsx("option",{value:"California",children:"California"}),r.jsx("option",{value:"Colorado",children:"Colorado"}),r.jsx("option",{value:"Connecticut",children:"Connecticut"}),r.jsx("option",{value:"District Of Columbia",children:"District Of Columbia"}),r.jsx("option",{value:"Delaware",children:"Delaware"}),r.jsx("option",{value:"Florida",children:"Florida"}),r.jsx("option",{value:"Georgia",children:"Georgia"}),r.jsx("option",{value:"Hawaii",children:"Hawaii"}),r.jsx("option",{value:"Iowa",children:"Iowa"}),r.jsx("option",{value:"Idaho",children:"Idaho"}),r.jsx("option",{value:"Illinois",children:"Illinois"}),r.jsx("option",{value:"Indiana",children:"Indiana"}),r.jsx("option",{value:"Kansas",children:"Kansas"}),r.jsx("option",{value:"Kentucky",children:"Kentucky"}),r.jsx("option",{value:"Louisiana",children:"Louisiana"}),r.jsx("option",{value:"Massachusetts",children:"Massachusetts"}),r.jsx("option",{value:"Maryland",children:"Maryland"}),r.jsx("option",{value:"Michigan",children:"Michigan"}),r.jsx("option",{value:"Minnesota",children:"Minnesota"}),r.jsx("option",{value:"Missouri",children:"Missouri"}),r.jsx("option",{value:"Mississippi",children:"Mississippi"}),r.jsx("option",{value:"Montana",children:"Montana"}),r.jsx("option",{value:"North Carolina",children:"North Carolina"}),r.jsx("option",{value:"North Dakota",children:"North Dakota"}),r.jsx("option",{value:"Nebraska",children:"Nebraska"}),r.jsx("option",{value:"New Hampshire",children:"New Hampshire"}),r.jsx("option",{value:"New Jersey",children:"New Jersey"}),r.jsx("option",{value:"New Mexico",children:"New Mexico"}),r.jsx("option",{value:"Nevada",children:"Nevada"}),r.jsx("option",{value:"New York",children:"New York"}),r.jsx("option",{value:"Ohio",children:"Ohio"}),r.jsx("option",{value:"Oklahoma",children:"Oklahoma"}),r.jsx("option",{value:"Oregon",children:"Oregon"}),r.jsx("option",{value:"Pennsylvania",children:"Pennsylvania"}),r.jsx("option",{value:"Rhode Island",children:"Rhode Island"}),r.jsx("option",{value:"South Carolina",children:"South Carolina"}),r.jsx("option",{value:"South Dakota",children:"South Dakota"}),r.jsx("option",{value:"Tennessee",children:"Tennessee"}),r.jsx("option",{value:"Texas",children:"Texas"}),r.jsx("option",{value:"Texas",children:"Travis"}),r.jsx("option",{value:"Utah",children:"Utah"}),r.jsx("option",{value:"Virginia",children:"Virginia"}),r.jsx("option",{value:"Vermont",children:"Vermont"}),r.jsx("option",{value:"Washington",children:"Washington"}),r.jsx("option",{value:"Wisconsin",children:"Wisconsin"}),r.jsx("option",{value:"West Virginia",children:"West Virginia"}),r.jsx("option",{value:"Wyoming",children:"Wyoming"})]})]})})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsxs("div",{className:"col-md-4",children:["County",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"county",value:l.county,onChange:u,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"Abbeville",children:"Abbeville"}),r.jsx("option",{value:"Aiken",children:"Aiken"}),r.jsx("option",{value:"Allendale",children:"Allendale"}),r.jsx("option",{value:"Anderson",children:"Anderson"}),r.jsx("option",{value:"Bamberg",children:"Bamberg"}),r.jsx("option",{value:"Barnwell",children:"Barnwell"}),r.jsx("option",{value:"Beaufort",children:"Beaufort"}),r.jsx("option",{value:"Berkeley",children:"Berkeley"}),r.jsx("option",{value:"Calhoun",children:"Calhoun"}),r.jsx("option",{value:"Charleston",children:"Charleston"}),r.jsx("option",{value:"Cherokee",children:"Cherokee"}),r.jsx("option",{value:"Chester",children:"Chester"}),r.jsx("option",{value:"Chesterfield",children:"Chesterfield"}),r.jsx("option",{value:"Clarendon",children:"Clarendon"}),r.jsx("option",{value:"Colleton",children:"Colleton"}),r.jsx("option",{value:"Darlington",children:"Darlington"}),r.jsx("option",{value:"Dillon",children:"Dillon"}),r.jsx("option",{value:"Dorchester",children:"Dorchester"}),r.jsx("option",{value:"Edgefield",children:"Edgefield"}),r.jsx("option",{value:"Fairfield",children:"Fairfield"}),r.jsx("option",{value:"Florence",children:"Florence"}),r.jsx("option",{value:"Georgetown",children:"Georgetown"}),r.jsx("option",{value:"Greenville",children:"Greenville"}),r.jsx("option",{value:"Greenwood",children:"Greenwood"}),r.jsx("option",{value:"Hampton",children:"Hampton"}),r.jsx("option",{value:"Horry",children:"Horry"}),r.jsx("option",{value:"Jasper",children:"Jasper"}),r.jsx("option",{value:"Kershaw",children:"Kershaw"}),r.jsx("option",{value:"Lancaster",children:"Lancaster"}),r.jsx("option",{value:"Laurens",children:"Laurens"}),r.jsx("option",{value:"Lee",children:"Lee"}),r.jsx("option",{value:"Lexington",children:"Lexington"}),r.jsx("option",{value:"Marion",children:"Marion"}),r.jsx("option",{value:"Marlboro",children:"Marlboro"}),r.jsx("option",{value:"McCormick",children:"McCormick"}),r.jsx("option",{value:"Newberry",children:"Newberry"}),r.jsx("option",{value:"Oconee",children:"Oconee"}),r.jsx("option",{value:"Orangeburg",children:"Orangeburg"}),r.jsx("option",{value:"Pickens",children:"Pickens"}),r.jsx("option",{value:"Richland",children:"Richland"}),r.jsx("option",{value:"Saluda",children:"Saluda"}),r.jsx("option",{value:"Spartanburg",children:"Spartanburg"}),r.jsx("option",{value:"Sumter",children:"Sumter"}),r.jsx("option",{value:"Union",children:"Union"}),r.jsx("option",{value:"Williamsburg",children:"Williamsburg"}),r.jsx("option",{value:"York",children:"York"})]})]}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Zip",r.jsx("input",{type:"text",className:"form-control",name:"zip",value:l.zip,onChange:u,required:!0})]})}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Parcel",r.jsx("input",{type:"text",className:"form-control",name:"parcel",value:l.parcel,onChange:u,required:!0})]})})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Sub division",r.jsx("input",{type:"text",className:"form-control",name:"subdivision",value:l.subdivision,onChange:u,required:!0})]})}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Legal Description",r.jsx("textarea",{type:"text",className:"form-control",name:"legal",value:l.legal,onChange:u,required:!0})]})}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Cost per SQFT",r.jsx("input",{type:"text",className:"form-control",name:"costpersqft",value:l.costpersqft,onChange:u,required:!0})]})})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsxs("div",{className:"col-md-4",children:["Property Type",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"propertyType",value:l.propertyType,onChange:u,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"Residential",children:"Residential"}),r.jsx("option",{value:"Land",children:"Land"}),r.jsx("option",{value:"Commercial",children:"Commercial"}),r.jsx("option",{value:"Industrial",children:"Industrial"}),r.jsx("option",{value:"Water",children:"Water"})]})]}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Lot Acres/Sqft",r.jsx("input",{type:"text",className:"form-control",name:"lotacres",value:l.lotacres,onChange:u,required:!0})]})}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Year Build",r.jsx("input",{type:"text",className:"form-control",name:"yearBuild",value:l.yearBuild,onChange:u,required:!0})]})})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Total Living SQFT",r.jsx("input",{type:"text",className:"form-control",name:"totallivingsqft",value:l.totallivingsqft,onChange:u,required:!0})]})}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Beds",r.jsx("input",{type:"text",className:"form-control",name:"beds",value:l.beds,onChange:u,required:!0})]})}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Baths",r.jsx("input",{type:"text",className:"form-control",name:"baths",value:l.baths,onChange:u,required:!0})]})})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsxs("div",{className:"col-md-4",children:["Stories",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"stories",value:l.stories,onChange:u,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"0",children:"0"}),r.jsx("option",{value:"1",children:"1"}),r.jsx("option",{value:"2",children:"2"}),r.jsx("option",{value:"3",children:"3"}),r.jsx("option",{value:"4",children:"4"}),r.jsx("option",{value:"5",children:"5"}),r.jsx("option",{value:"6",children:"6"}),r.jsx("option",{value:"7",children:"7"}),r.jsx("option",{value:"8",children:"8"}),r.jsx("option",{value:"9",children:"9"}),r.jsx("option",{value:"10",children:"10"})]})]}),r.jsxs("div",{className:"col-md-4",children:["Garage",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"garage",value:l.garage,onChange:u,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"0",children:"0"}),r.jsx("option",{value:"1",children:"1"}),r.jsx("option",{value:"2",children:"2"}),r.jsx("option",{value:"3",children:"3"}),r.jsx("option",{value:"4",children:"4"}),r.jsx("option",{value:"5",children:"5"})]})]}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Garage SQFT",r.jsx("input",{type:"text",className:"form-control",name:"garagesqft",value:l.garagesqft,onChange:u,required:!0})]})})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsxs("div",{className:"col-md-4",children:["Pool/SPA",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"poolspa",value:l.poolspa,onChange:u,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"N/A",children:"N/A"}),r.jsx("option",{value:"Yes- Pool Only",children:"Yes- Pool Only"}),r.jsx("option",{value:"Yes- SPA only",children:"Yes- SPA only"}),r.jsx("option",{value:"Yes - Both Pool and SPA",children:"Yes - Both Pool and SPA"}),r.jsx("option",{value:"4",children:"None"})]})]}),r.jsxs("div",{className:"col-md-4",children:["Fire places",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"fireplaces",value:l.fireplaces,onChange:u,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"N/A",children:"N/A"}),r.jsx("option",{value:"yes",children:"Yes"}),r.jsx("option",{value:"no",children:"No"})]})]}),r.jsxs("div",{className:"col-md-4",children:["A/C",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"ac",value:l.ac,onChange:u,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"N/A",children:"N/A"}),r.jsx("option",{value:"Central",children:"Central"}),r.jsx("option",{value:"Heat Pump",children:"Heat Pump"}),r.jsx("option",{value:"Warm Air",children:"Warm Air"}),r.jsx("option",{value:"Forced Air",children:"Forced Air"}),r.jsx("option",{value:"Gas",children:"Gas"})]})]})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsxs("div",{className:"col-md-4",children:["Heating",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"heating",value:l.heating,onChange:u,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"N/A",children:"N/A"}),r.jsx("option",{value:"Central",children:"Central"}),r.jsx("option",{value:"Heat Pump",children:"Heat Pump"}),r.jsx("option",{value:"Warm Air",children:"Warm Air"}),r.jsx("option",{value:"Forced Air",children:"Forced Air"}),r.jsx("option",{value:"Gas",children:"Gas"})]})]}),r.jsxs("div",{className:"col-md-4",children:["Building Style",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"buildingstyle",value:l.buildingstyle,onChange:u,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"One Story",children:"One Story"}),r.jsx("option",{value:"Craftsman",children:"Craftsman"}),r.jsx("option",{value:"Log/Cabin",children:"Log/Cabin"}),r.jsx("option",{value:"Split-Level",children:"Split-Level"}),r.jsx("option",{value:"Split-Foyer",children:"Split-Foyer"}),r.jsx("option",{value:"Stick Built",children:"Stick Built"}),r.jsx("option",{value:"Single wide",children:"Single wide"}),r.jsx("option",{value:"Double wide",children:"Double wide"}),r.jsx("option",{value:"Duplex",children:"Duplex"}),r.jsx("option",{value:"Triplex",children:"Triplex"}),r.jsx("option",{value:"Quadruplex",children:"Quadruplex"}),r.jsx("option",{value:"Two Story",children:"Two Story"}),r.jsx("option",{value:"Victorian",children:"Victorian"}),r.jsx("option",{value:"Tudor",children:"Tudor"}),r.jsx("option",{value:"Modern",children:"Modern"}),r.jsx("option",{value:"Art Deco",children:"Art Deco"}),r.jsx("option",{value:"Bungalow",children:"Bungalow"}),r.jsx("option",{value:"Mansion",children:"Mansion"}),r.jsx("option",{value:"Farmhouse",children:"Farmhouse"}),r.jsx("option",{value:"Conventional",children:"Conventional"}),r.jsx("option",{value:"Ranch",children:"Ranch"}),r.jsx("option",{value:"Ranch with Basement",children:"Ranch with Basement"}),r.jsx("option",{value:"Cape Cod",children:"Cape Cod"}),r.jsx("option",{value:"Contemporary",children:"Contemporary"}),r.jsx("option",{value:"Colonial",children:"Colonial"}),r.jsx("option",{value:"Mediterranean",children:"Mediterranean"})]})]}),r.jsxs("div",{className:"col-md-4",children:["Site Vacant",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"sitevacant",value:l.sitevacant,onChange:u,required:!0,children:[r.jsx("option",{value:"",children:"Please select"}),r.jsx("option",{value:"Yes",children:"Yes"}),r.jsx("option",{value:"No",children:"No"})]})]})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsxs("div",{className:"col-md-4",children:["Ext Wall",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"extwall",value:l.extwall,onChange:u,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"N/A",children:"N/A"}),r.jsx("option",{value:"Brick",children:"Brick"}),r.jsx("option",{value:"Brick/Vinyl Siding",children:"Brick/Vinyl Siding"}),r.jsx("option",{value:"Wood/Vinyl Siding",children:"Wood/Vinyl Siding"}),r.jsx("option",{value:"Brick/Wood Siding",children:"Brick/Wood Siding"}),r.jsx("option",{value:"Stone",children:"Stone"}),r.jsx("option",{value:"Masonry",children:"Masonry"}),r.jsx("option",{value:"Metal",children:"Metal"}),r.jsx("option",{value:"Fiberboard",children:"Fiberboard"}),r.jsx("option",{value:"Asphalt Siding",children:"Asphalt Siding"}),r.jsx("option",{value:"Concrete Block",children:"Concrete Block"}),r.jsx("option",{value:"Gable",children:"Gable"}),r.jsx("option",{value:"Brick Veneer",children:"Brick Veneer"}),r.jsx("option",{value:"Frame",children:"Frame"}),r.jsx("option",{value:"Siding",children:"Siding"}),r.jsx("option",{value:"Cement/Wood Fiber Siding",children:"Cement/Wood Fiber Siding"}),r.jsx("option",{value:"Fiber/Cement Siding",children:"Fiber/Cement Siding"}),r.jsx("option",{value:"Wood Siding",children:"Wood Siding"}),r.jsx("option",{value:"Vinyl Siding",children:"Vinyl Siding"}),r.jsx("option",{value:"Aluminium Siding",children:"Aluminium Siding"}),r.jsx("option",{value:"Wood/Vinyl Siding",children:"Alum/Vinyl Siding"})]})]}),r.jsxs("div",{className:"col-md-4",children:["Roofing",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"roofing",value:l.roofing,onChange:u,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"N/A",children:"N/A"}),r.jsx("option",{value:"Asphalt Shingle",children:"Asphalt Shingle"}),r.jsx("option",{value:"Green Roofs",children:"Green Roofs"}),r.jsx("option",{value:"Built-up Roofing",children:"Built-up Roofing"}),r.jsx("option",{value:"Composition Shingle",children:"Composition Shingle"}),r.jsx("option",{value:"Composition Shingle Heavy",children:"Composition Shingle Heavy"}),r.jsx("option",{value:"Solar tiles",children:"Solar tiles"}),r.jsx("option",{value:"Metal",children:"Metal"}),r.jsx("option",{value:"Stone-coated steel",children:"Stone-coated steel"}),r.jsx("option",{value:"Slate",children:"Slate"}),r.jsx("option",{value:"Rubber Slate",children:"Rubber Slate"}),r.jsx("option",{value:"Clay and Concrete tiles",children:"Clay and Concrete tiles"})]})]}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Total SQFT",r.jsx("input",{type:"text",className:"form-control",name:"totalSqft",value:l.totalSqft,onChange:u,required:!0})]})})]}),r.jsxs("h3",{style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:[r.jsx("br",{}),"Property Tax Information"]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),l.propertyTaxInfo&&l.propertyTaxInfo.map((k,P)=>r.jsxs("div",{className:"row gy-4",children:[r.jsx("div",{className:"col-md-3",children:r.jsxs("div",{className:"form-floating mb-3",children:["Property Tax Owned",r.jsx("input",{type:"text",className:"form-control",name:"propertytaxowned",value:k.propertytaxowned,onChange:f=>p(f,P),required:!0})]})}),r.jsx("div",{className:"col-md-2",children:r.jsxs("div",{className:"form-floating mb-2",children:["Owned Year",r.jsx("input",{type:"text",className:"form-control",name:"ownedyear",value:k.ownedyear,onChange:f=>p(f,P),required:!0})]})}),r.jsx("div",{className:"col-md-2",children:r.jsxs("div",{className:"form-floating mb-2",children:["Tax Assessed",r.jsx("input",{type:"text",className:"form-control",name:"taxassessed",value:k.taxassessed,onChange:f=>p(f,P),required:!0})]})}),r.jsx("div",{className:"col-md-2",children:r.jsxs("div",{className:"form-floating mb-2",children:["Tax Year",r.jsx("input",{type:"text",className:"form-control",name:"taxyear",value:k.taxyear,onChange:f=>p(f,P),required:!0})]})}),r.jsx("div",{className:"col-md-3",children:r.jsxs("div",{className:"form-floating mb-2",children:[r.jsx("br",{}),r.jsx("button",{className:"btn btn-danger",onClick:()=>x(P),style:{height:"25px",width:"35px"},children:"X"})]})})]},P)),r.jsx("button",{className:"btn btn-secondary",onClick:N,children:"+ Add Another Property Tax Info"})]}),r.jsx("button",{className:"btn btn-primary continue",onClick:o,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Continue"})]}),n==="Images"&&r.jsxs("div",{role:"tabpanel",className:"card tab-pane active",children:[r.jsxs("h3",{style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:["Upload Images"," "]}),r.jsxs("form",{children:[r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),l.images.map((k,P)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:k.title,placeholder:"Image Title",onChange:f=>v(P,f)})}),r.jsxs("div",{className:"col-md-4 d-flex align-items-center",children:[r.jsx(Pu,{multiple:!1,onDone:f=>C(f,P)}),r.jsx("button",{type:"button",className:"btn btn-danger",onClick:()=>m(P),style:{marginLeft:"5px"},children:"Delete"})]}),k.file&&r.jsx("div",{className:"col-md-12",children:r.jsx("img",{src:k.file,alt:"uploaded",style:{width:"150px",height:"150px"}})})]},P)),r.jsx("button",{type:"button",className:"btn btn-primary",onClick:b,style:{backgroundColor:"#fda417",border:"#fda417"},children:"+ Add Image"}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"mb-3",children:[r.jsx("label",{htmlFor:"googleMapLink",className:"form-label",children:r.jsxs("h3",{style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:["Google Maps Link"," "]})}),r.jsx("input",{type:"text",className:"form-control",name:"googleMapLink",value:l.googleMapLink,onChange:u,placeholder:"Enter Google Maps link"})]}),l.googleMapLink&&r.jsx("iframe",{title:"Google Map",width:"100%",height:"300",src:`https://www.google.com/maps/embed/v1/view?key=YOUR_API_KEY¢er=${l.googleMapLink}&zoom=10`,frameBorder:"0",allowFullScreen:!0})]}),r.jsx("button",{className:"btn btn-primary back",onClick:i,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Go Back"})," ",r.jsx("button",{className:"btn btn-primary continue",onClick:o,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Continue"})]}),n==="Accounting"&&r.jsxs("div",{className:"card",style:{color:"#fda417",border:"1px solid #fda417",padding:"10px",borderRadius:"8px"},children:[r.jsx("br",{}),r.jsxs("div",{className:"row gy-3 col-16",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Close Date A to B",required:!0,disabled:!0})}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"date",className:"form-control",name:"closeDateAtoB",value:l.closeDateAtoB,onChange:k=>{const P=k.target.value;d({...l,closeDateAtoB:P}),E(P,l.closeDateBtoC)},placeholder:"Close Date A to B",style:{textAlign:"right"},required:!0})}),r.jsx("div",{children:r.jsxs("p",{children:[r.jsxs("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:["[M-D-Y]"," "]}),":"," ",r.jsx("span",{style:{color:"#000000",fontSize:"14px",fontWeight:"normal"},children:new Date(l.closeDateAtoB).toLocaleDateString("en-US",{month:"numeric",day:"numeric",year:"numeric"})})]})})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Close Date B to C",required:!0,disabled:!0})}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"date",className:"form-control",name:"closeDateBtoC",value:l.closeDateBtoC,onChange:k=>{const P=k.target.value;d({...l,closeDateBtoC:P}),E(l.closeDateAtoB,P)},placeholder:"Close Date B to C",style:{textAlign:"right"},required:!0})}),r.jsx("div",{children:r.jsxs("p",{children:[r.jsxs("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:["[M-D-Y] :"," "]}),r.jsx("span",{style:{color:"#000000",fontSize:"14px",fontWeight:"normal"},children:new Date(l.closeDateBtoC).toLocaleDateString("en-US",{month:"numeric",day:"numeric",year:"numeric"})})]})})]}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Renovation Risk"}),r.jsx("div",{className:"col-md-7",children:c.map(k=>r.jsxs("div",{className:"form-check form-check-inline",children:[r.jsx("input",{className:"form-check-input",type:"radio",name:"renovationRisk",id:`renovationRisk${k}`,value:k,checked:l.renovationRisk===k,onChange:P=>{const f=parseInt(P.target.value,10);d({...l,renovationRisk:f})}}),r.jsx("label",{className:"form-check-label",htmlFor:`renovationRisk${k}`,children:k})]},k))})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Rate of Return"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"rateofreturn",value:`$ ${ol().toFixed(2)}`,readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Turn Time"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:h,readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Purchase Price"}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${l.isPurchaseCostInvalid?"is-invalid":""}`,value:`$ ${l.purchaseCost}`,name:"purchaseCost",onChange:k=>{let P=k.target.value.replace(/[^\d.]/g,"");const f=/^\d*\.?\d*$/.test(P);d({...l,purchaseCost:P,isPurchaseCostInvalid:!f})},onKeyPress:k=>{const P=k.charCode;(P<48||P>57)&&P!==46&&(k.preventDefault(),d({...l,isPurchaseCostInvalid:!0}))},placeholder:"Enter Purchase Cost",style:{textAlign:"right"},required:!0}),l.isPurchaseCostInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Costs paid out of Closing Hud A to B:"}),l.costPaidAtoB.map((k,P)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:k.title,onChange:f=>_(P,"title",f.target.value),placeholder:"Title",required:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${k.isInvalid?"is-invalid":""}`,value:`$ ${k.price}`,onChange:f=>L(f,P),placeholder:"Price",style:{textAlign:"right"},required:!0}),k.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),r.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:r.jsx("button",{className:"btn btn-danger",onClick:()=>O(P),style:{marginLeft:"5px"},children:"x"})})]},P)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{onClick:T,className:"btn btn-primary back",style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Extra Cost"]})}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Purchase Cost"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalPurchaseCosts",value:`$ ${z().toFixed(2)}`,readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Credits received on settlement:"}),l.credits.map((k,P)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:k.title,onChange:f=>Q(P,"title",f.target.value),placeholder:"credits",required:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${k.isInvalid?"is-invalid":""}`,value:k.price,onChange:f=>Z(f,P),placeholder:"Price",style:{textAlign:"right"},required:!0}),k.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),r.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:r.jsx("button",{className:"btn btn-danger",onClick:()=>te(P),style:{marginLeft:"5px"},children:"x"})})]},P)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:H,style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add credits"]})}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total credits received on settlement"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalcredits",value:D(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Purchase Cost after Credits Received"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalPurchaseCostsaftercredits",value:U(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Cash Adjustments:"}),l.cashAdjustments.map((k,P)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:k.title,onChange:f=>R(P,"title",f.target.value),placeholder:"Title",required:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${k.isInvalid?"is-invalid":""}`,value:k.price,onChange:f=>M(f,P),placeholder:"Price",style:{textAlign:"right"},required:!0}),k.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),r.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:r.jsx("button",{className:"btn btn-danger",onClick:()=>A(P),style:{marginLeft:"5px"},children:"x"})})]},P)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:G,style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Cash Adjustments"]})}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Cash Adjustments on Settlement"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalcashAdjustments",value:B(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Cash Required on Settlement"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalcashrequiredonsettlement",value:W(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Incidental Cost:"}),l.incidentalCost.map((k,P)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:k.title,onChange:f=>ee(P,"title",f.target.value),placeholder:"Title",required:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${k.isInvalid?"is-invalid":""}`,value:k.price,onChange:f=>re(f,P),placeholder:"Price",style:{textAlign:"right"},required:!0}),k.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),r.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:r.jsx("button",{className:"btn btn-danger",onClick:()=>Y(P),style:{marginLeft:"5px"},children:"x"})})]},P)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:K,style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Incidental Cost"]})}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Incidental Cost"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalincidentalCost",value:ne(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Carry Costs:"}),l.carryCosts.map((k,P)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:k.title,onChange:f=>de(P,"title",f.target.value),placeholder:"Title",required:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${k.isInvalid?"is-invalid":""}`,value:k.price,onChange:f=>ge(f,P),placeholder:"Price",style:{textAlign:"right"},required:!0}),k.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),r.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:r.jsx("button",{className:"btn btn-danger",onClick:()=>le(P),style:{marginLeft:"5px"},children:"x"})})]},P)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:se,style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Carry Cost"]})}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Carry Cost"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalcarryCosts",value:Be(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Reno/Construction"}),l.renovationCost.map((k,P)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:k.title,onChange:f=>he(P,"title",f.target.value),placeholder:"Title",required:!0,style:{fontSize:"10px"}})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${k.isInvalid?"is-invalid":""}`,value:k.price,onChange:f=>$t(f,P),placeholder:"Price",style:{textAlign:"right"},required:!0}),k.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),r.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:r.jsx("button",{className:"btn btn-danger",onClick:()=>zt(P),style:{marginLeft:"5px"},children:"x"})})]},P)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:Ct,style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Reno/Construction"]})}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Renovation Cost"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalrenovationCost",value:Ye(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Renovations & Holding Cost"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalRenovationsandHoldingCost",value:Qn(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Costs to Buy A to B"}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:"form-control",name:"totalCoststoBuyAtoB",value:Zt(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0}),l.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Selling Price B to C"}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${l.isPurchaseCostInvalid?"is-invalid":""}`,name:"sellingPriceBtoC",value:l.sellingPriceBtoC,onChange:k=>{const P=k.target.value,f=/^\d*\.?\d*$/.test(P);d({...l,sellingPriceBtoC:P,isPurchaseCostInvalid:!f})},onKeyPress:k=>{const P=k.charCode;(P<48||P>57)&&P!==46&&(k.preventDefault(),d({...l,isPurchaseCostInvalid:!0}))},placeholder:"Enter Purchase Cost",style:{textAlign:"right"},required:!0}),l.isPurchaseCostInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Less:Costs paid out of closing Hud B to C:"}),l.costPaidOutofClosing.map((k,P)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:k.title,onChange:f=>Xn(P,"title",f.target.value),placeholder:"Title",required:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${k.isInvalid?"is-invalid":""}`,value:k.price,onChange:f=>Wt(f,P),placeholder:"Price",style:{textAlign:"right"},required:!0}),k.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),r.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:r.jsx("button",{className:"btn btn-danger",onClick:()=>js(P),style:{marginLeft:"5px"},children:"x"})})]},P)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:ys,style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Cost Paid Out of Closing"]})}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total cost paid out of closing"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalcostPaidOutofClosing",value:gn(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Cost to Sell B to C"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalCosttoSellBtoC",value:Ut(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Gross Proceeds per HUD"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"grossproceedsperHUD",value:Ut(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Adjustments:"}),l.adjustments.map((k,P)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:k.title,onChange:f=>xn(P,"title",f.target.value),placeholder:"Title",required:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${k.isInvalid?"is-invalid":""}`,value:k.price,onChange:f=>Bo(f,P),placeholder:"Price",style:{textAlign:"right"},required:!0}),k.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),r.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:r.jsx("button",{className:"btn btn-danger",onClick:()=>qt(P),style:{marginLeft:"5px"},children:"x"})})]},P)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:fe,style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Adjustments"]})}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Adjustments"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totaladjustments",value:Ns(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Funds Available for distribution"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"fundsavailablefordistribution",value:Mo(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Income Statement Adjustments:"}),l.incomestatement.map((k,P)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:k.title,onChange:f=>Cs(P,"title",f.target.value),placeholder:"Title",required:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${k.isInvalid?"is-invalid":""}`,value:k.price,onChange:f=>Jn(f,P),placeholder:"Price",style:{textAlign:"right"},required:!0}),k.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),r.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:r.jsx("button",{className:"btn btn-danger",onClick:()=>sl(P),style:{marginLeft:"5px"},children:"x"})})]},P)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:rl,style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Income Statement"]})}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Income Statement Adjustment"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalincomestatement",value:Zn(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Net B to C Sale Value"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"netBtoCsalevalue",value:en(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Net Profit Computation"}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Total Costs to Buy A to B",required:!0,disabled:!0})}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalCoststoBuyAtoBagain",value:Zt(),style:{textAlign:"right"},required:!0})})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Funds Prior to Closing",required:!0,disabled:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${l.isfundspriortoclosingInvalid?"is-invalid":""}`,value:l.fundspriortoclosing,name:"fundspriortoclosing",onChange:k=>{const P=k.target.value,f=/^\d*\.?\d*$/.test(P);d({...l,fundspriortoclosing:P,isfundspriortoclosingInvalid:!f})},onKeyPress:k=>{const P=k.charCode;(P<48||P>57)&&P!==46&&(k.preventDefault(),d({...l,isfundspriortoclosingInvalid:!0}))},style:{textAlign:"right"},required:!0}),l.isfundspriortoclosingInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Net B to C Sale Value",required:!0,disabled:!0})}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"netBtoCsalevalue",value:en(),style:{textAlign:"right"},required:!0})})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Short Term Rental",required:!0,disabled:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${l.isPurchaseCostInvalid?"is-invalid":""}`,value:l.shorttermrental,name:"shorttermrental",onChange:k=>{const P=k.target.value,f=/^\d*\.?\d*$/.test(P);d({...l,shorttermrental:P,isPurchaseCostInvalid:!f})},onKeyPress:k=>{const P=k.charCode;(P<48||P>57)&&P!==46&&(k.preventDefault(),d({...l,isPurchaseCostInvalid:!0}))},style:{textAlign:"right"},required:!0}),l.isPurchaseCostInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Other Income",required:!0,disabled:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${l.isPurchaseCostInvalid?"is-invalid":""}`,value:l.OtherIncome,name:"OtherIncome",onChange:k=>{const P=k.target.value,f=/^\d*\.?\d*$/.test(P);d({...l,OtherIncome:P,isPurchaseCostInvalid:!f})},onKeyPress:k=>{const P=k.charCode;(P<48||P>57)&&P!==46&&(k.preventDefault(),d({...l,isPurchaseCostInvalid:!0}))},style:{textAlign:"right"},required:!0}),l.isPurchaseCostInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Insurance Claim",required:!0,disabled:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${l.isPurchaseCostInvalid?"is-invalid":""}`,value:l.InsuranceClaim,name:"InsuranceClaim",onChange:k=>{const P=k.target.value,f=/^\d*\.?\d*$/.test(P);d({...l,InsuranceClaim:P,isPurchaseCostInvalid:!f})},onKeyPress:k=>{const P=k.charCode;(P<48||P>57)&&P!==46&&(k.preventDefault(),d({...l,isPurchaseCostInvalid:!0}))},style:{textAlign:"right"},required:!0}),l.isPurchaseCostInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Long Term Rental",required:!0,disabled:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${l.isPurchaseCostInvalid?"is-invalid":""}`,value:l.LongTermRental,name:"LongTermRental",onChange:k=>{const P=k.target.value,f=/^\d*\.?\d*$/.test(P);d({...l,LongTermRental:P,isPurchaseCostInvalid:!f})},onKeyPress:k=>{const P=k.charCode;(P<48||P>57)&&P!==46&&(k.preventDefault(),d({...l,isPurchaseCostInvalid:!0}))},style:{textAlign:"right"},required:!0}),l.isPurchaseCostInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Net Profit Before Financing Costs"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"netprofitbeforefinancingcosts",value:Er(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Financing Cost/Other Closing Costs"}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${l.isFinancingCostClosingCostInvalid?"is-invalid":""}`,value:l.FinancingCostClosingCost,name:"FinancingCostClosingCost",onChange:k=>{const P=k.target.value,f=/^\d*\.?\d*$/.test(P);d({...l,FinancingCostClosingCost:P,isFinancingCostClosingCostInvalid:!f})},onKeyPress:k=>{const P=k.charCode;(P<48||P>57)&&P!==46&&(k.preventDefault(),d({...l,isFinancingCostClosingCostInvalid:!0}))},style:{textAlign:"right"},required:!0}),l.isFinancingCostClosingCostInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Net Profit"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"netprofit",value:bs(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsxs("div",{className:"col-md-6",children:[r.jsx("button",{className:"btn btn-primary back",onClick:i,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Go Back"})," ",r.jsx("button",{type:"button",className:"btn btn-primary continue",style:{backgroundColor:"#fda417",border:"#fda417"},onClick:o,children:"Continue"})," "]})]}),n==="IAB"&&r.jsxs("div",{role:"tabpanel",className:"card tab-pane active",children:[r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Add IAB Links:"}),l.IAB.map((k,P)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:k.title,onChange:f=>il(P,"title",f.target.value),placeholder:"Title",required:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:"form-control",value:k.URL,onChange:f=>al(P,"URL",f.target.value),placeholder:"URL",style:{textAlign:"right"},required:!0}),k.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid URL."})]}),r.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:r.jsx("button",{className:"btn btn-danger",onClick:()=>$o(P),style:{marginLeft:"5px"},children:"x"})})]},P)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:zo,style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add IAB URL"]})}),r.jsxs("div",{className:"col-md-6",children:[r.jsx("button",{className:"btn btn-primary back",onClick:i,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Go Back"})," ",r.jsx("button",{type:"button",className:"btn btn-primary continue",style:{backgroundColor:"#fda417",border:"#fda417"},onClick:g,children:"Submit"})," "]})]})]})]})})]})},iS=()=>{const e=Ke(),{properties:t,loading:n,totalPages:s,currentPage:o}=_e(C=>C.property),[i,a]=S.useState(""),[l,d]=S.useState([]),[c,u]=S.useState(1),p=10;S.useEffect(()=>{e(mr({page:c,limit:p,keyword:i}))},[e,c,i]),S.useEffect(()=>{i.trim()?d(t.filter(C=>C.address.toLowerCase().includes(i.toLowerCase()))):d(t)},[i,t]);const g=C=>{a(C.target.value)},N=C=>{C.preventDefault()},x=C=>{u(C),e(mr({page:C,limit:p,keyword:i}))};return r.jsxs(r.Fragment,{children:[r.jsx(Le,{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsxs("div",{className:"container col-12",children:[r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-lg-12 card-margin col-12",children:r.jsx("div",{className:"card search-form col-12",children:r.jsx("div",{className:"card-body p-0",children:r.jsx("form",{id:"search-form",onSubmit:N,children:r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-12",children:r.jsx("div",{className:"row no-gutters",children:r.jsx("div",{className:"col-lg-8 col-md-6 col-sm-12 p-0",children:r.jsx("input",{type:"text",value:i,onChange:g,placeholder:"Enter the keyword and hit ENTER button...",className:"form-control"})})})})})})})})})}),r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-12",children:r.jsx("div",{className:"card card-margin",children:r.jsx("div",{className:"card-body",children:n?r.jsx("div",{children:"Loading..."}):r.jsx("div",{className:"table-responsive",children:r.jsxs("table",{className:"table widget-26",children:[r.jsx("thead",{style:{color:"#fda417",fontSize:"15px"},children:r.jsxs("tr",{children:[r.jsx("th",{children:"Image"}),r.jsx("th",{children:"Details"}),r.jsx("th",{children:"Total Living Square Foot"}),r.jsx("th",{children:"Year Built"}),r.jsx("th",{children:"Cost per Square Foot"})]})}),r.jsx("tbody",{children:l.length>0?l.map(C=>r.jsxs("tr",{children:[r.jsx("td",{children:C.images&&C.images[0]?r.jsx("img",{src:C.images[0].file||mt,alt:"Property Thumbnail",style:{width:"100px",height:"auto"}}):r.jsx("img",{src:mt,alt:"Default Property Thumbnail",style:{width:"100px",height:"auto"}})}),r.jsx("td",{children:r.jsxs("div",{className:"widget-26-job-title",children:[r.jsx(ae,{to:`/property/${C.propertyId}`,className:"link-primary text-decoration-none",children:C.address}),r.jsxs("p",{className:"m-0",children:[r.jsxs("span",{className:"employer-name",children:[r.jsx("i",{className:"fa fa-map-marker",style:{color:"#F74B02"}}),C.city,", ",C.county,","," ",C.state]}),r.jsxs("p",{className:"text-muted m-0",children:["House Id: ",C.propertyId]})]})]})}),r.jsx("td",{children:C.totallivingsqft}),r.jsx("td",{children:C.yearBuild}),r.jsx("td",{children:C.costpersqft})]},C.id)):r.jsx("tr",{children:r.jsx("td",{colSpan:"5",children:"No properties found."})})})]})})})})})}),r.jsx("nav",{"aria-label":"Page navigation",children:r.jsxs("ul",{className:"pagination justify-content-center",children:[r.jsx("li",{className:`page-item ${o===1?"disabled":""}`,children:r.jsx("button",{className:"page-link",onClick:()=>x(o-1),children:"Previous"})}),Array.from({length:s},(C,b)=>r.jsx("li",{className:`page-item ${o===b+1?"active":""}`,children:r.jsx("button",{className:"page-link",onClick:()=>x(b+1),children:b+1})},b+1)),r.jsx("li",{className:`page-item ${o===s?"disabled":""}`,children:r.jsx("button",{className:"page-link",onClick:()=>x(o+1),children:"Next"})})]})})]}),r.jsx(tt,{})]})},aS=()=>{const{userId:e}=gs(),t=Ke(),{user:n,loading:s}=_e(o=>o.user);return S.useEffect(()=>{e&&t(Ti(e))},[e,t]),s?r.jsx("div",{children:"Loading..."}):r.jsxs(r.Fragment,{children:[r.jsx(Le,{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("div",{className:"main-body",children:r.jsxs("div",{className:"row gutters-sm",children:[r.jsx("div",{className:"col-md-4 mb-3",children:r.jsx("div",{className:"card",children:r.jsxs("div",{className:"card-body",children:[r.jsxs("div",{className:"d-flex flex-column align-items-center text-center",children:[r.jsx("img",{className:"img-fluid",src:n.profileImage||Bs,alt:"ProfileImage",style:{marginTop:"0px",maxWidth:"300px",maxHeight:"300px"}}),r.jsxs("h4",{children:[n.title,". ",n.firstName," ",n.middleName," ",n.lastName]}),r.jsxs("span",{className:"text-muted font-size-sm",children:[r.jsx("i",{className:"fa fa-map-marker",style:{color:"#F74B02",fontSize:"20px"}})," ",n.city,", ",n.state,", ",n.county,", ",n.zip]})]}),r.jsx("br",{})]})})}),r.jsx("div",{className:"col-md-4 mb-3",children:r.jsx("div",{className:"card",children:r.jsxs("div",{className:"card-body",children:[r.jsxs("h1",{className:"d-flex align-items-center mb-3",style:{color:"#fda417",fontSize:"26px"},children:[r.jsx("i",{className:"material-icons text-info mr-2",style:{color:"#fda417",fontSize:"26px"},children:"Recent"}),"Project investments"]}),r.jsx("hr",{}),r.jsx("img",{src:mt,alt:"Admin",className:"rounded-circle",style:{marginRight:"10px",maxWidth:"50px",maxHeight:"50px"}}),r.jsx("small",{children:"Web Design project in California"}),r.jsx("div",{className:"progress",style:{width:"100%",marginTop:"10px"},children:r.jsx("div",{className:"progress-bar",role:"progressbar",style:{width:"25%"},"aria-valuenow":25,"aria-valuemin":0,"aria-valuemax":100,children:"25% completed"})}),r.jsx("hr",{}),r.jsx("img",{src:mt,alt:"Admin",className:"rounded-circle",style:{marginRight:"10px",maxWidth:"50px",maxHeight:"50px"}}),r.jsx("small",{children:"Web Design project in California"}),r.jsx("div",{className:"progress",style:{width:"100%",marginTop:"10px"},children:r.jsx("div",{className:"progress-bar",role:"progressbar",style:{width:"75%"},"aria-valuenow":75,"aria-valuemin":0,"aria-valuemax":100,children:"75% completed"})})]})})}),r.jsx("div",{className:"col-md-4 mb-3",children:r.jsx("div",{className:"card",children:r.jsxs("div",{className:"card-body",children:[r.jsxs("h1",{className:"d-flex align-items-center mb-3",style:{color:"#fda417",fontSize:"26px"},children:[r.jsx("i",{className:"material-icons text-info mr-2",children:"Projects"}),"Seeking investments"]}),r.jsx("hr",{}),r.jsx("img",{src:mt,alt:"Admin",className:"rounded-circle",style:{marginRight:"10px",maxWidth:"50px",maxHeight:"50px"}}),r.jsx("small",{children:"Web Design project in California"}),r.jsx("br",{})," ",r.jsx("br",{}),r.jsx("hr",{}),r.jsx("img",{src:mt,alt:"Admin",className:"rounded-circle",style:{marginRight:"10px",maxWidth:"50px",maxHeight:"50px"}}),r.jsx("small",{children:"Web Design project in California"}),r.jsx("br",{})," ",r.jsx("br",{})]})})}),r.jsx("div",{className:"col-md-4",children:r.jsx("div",{className:"card mb-3",children:r.jsxs("div",{className:"card-body",children:[r.jsxs("h1",{className:"d-flex align-items-center mb-3",style:{color:"#fda417",fontSize:"26px"},children:[r.jsx("i",{className:"material-icons text-info mr-2",style:{color:"#fda417",fontSize:"26px"},children:"About"}),"me :"]})," ",r.jsx("hr",{}),n.aboutme]})})}),r.jsx("div",{className:"col-md-4 mb-3",children:r.jsx("div",{className:"card",children:r.jsxs("div",{className:"card-body",children:[r.jsxs("h1",{className:"d-flex align-items-center mb-3",style:{color:"#fda417",fontSize:"26px"},children:[r.jsx("i",{className:"material-icons text-info mr-2",style:{color:"#fda417",fontSize:"26px"},children:"Willing to"}),"invest:"]}),r.jsx("hr",{}),r.jsxs("h2",{className:"d-flex flex-column align-items-center text-center",style:{color:"#fda417",border:"#fda417",fontSize:"60px",fontWeight:"normal"},children:["$ ",n.fundAmount]}),r.jsx("hr",{}),r.jsxs("div",{className:"card-body",children:[r.jsxs("div",{className:"row",children:[r.jsx("div",{className:"col-sm-3",children:r.jsx("span",{className:"mb-0",children:"Email"})}),n.email,r.jsx("div",{className:"col-sm-9 text-secondary"})]}),r.jsx("hr",{}),r.jsxs("div",{className:"row",children:[r.jsx("div",{className:"col-sm-3",children:r.jsx("span",{className:"mb-0",children:"Phone"})}),"67656584687",r.jsx("div",{className:"col-sm-9 text-secondary"})]})]})]})})}),r.jsx("div",{className:"col-md-4 mb-3",children:r.jsx("div",{className:"card",children:r.jsxs("div",{className:"card-body",children:[r.jsxs("h1",{className:"d-flex align-items-center mb-3",style:{color:"#fda417",fontSize:"26px"},children:[r.jsx("i",{className:"material-icons text-info mr-2",children:"Suggested"}),"Borrowers"]}),r.jsxs("ul",{className:"list-group list-group-flush",children:[r.jsx("li",{className:"list-group-item d-flex justify-content-between align-items-center flex-wrap",children:r.jsxs("h6",{className:"mb-0",children:[r.jsx("img",{src:Bs,style:{marginTop:"0px",maxWidth:"50px",maxHeight:"50px"}}),"Ravichandu"]})}),r.jsx("li",{className:"list-group-item d-flex justify-content-between align-items-center flex-wrap",children:r.jsxs("h6",{className:"mb-0",children:[r.jsx("img",{src:Bs,style:{marginTop:"0px",maxWidth:"50px",maxHeight:"50px"}}),"Ravichandu"]})}),r.jsx("li",{className:"list-group-item d-flex justify-content-between align-items-center flex-wrap",children:r.jsxs("h6",{className:"mb-0",children:[r.jsx("img",{src:Bs,style:{marginTop:"0px",maxWidth:"50px",maxHeight:"50px"}}),"Ravichandu"]})})]})]})})})]})})]})};function lS(){const e="http://67.225.129.127:3002",[t,n]=S.useState(""),[s,o]=S.useState(""),i=hn(),a=async l=>{l.preventDefault();try{const{data:d}=await me.post(`${e}/admin/login`,{username:t,password:s});localStorage.setItem("token",d.token),i("/AdminPLogin/dashboard")}catch(d){alert("Invalid login credentials",d)}};return r.jsx(r.Fragment,{children:r.jsx("section",{className:"d-flex justify-content-center align-items-center col-12",style:{minHeight:"100vh",backgroundColor:"#FFFFFF",width:"100%",paddingLeft:"500px"},children:r.jsx("div",{className:"col-md-6 col-lg-4",children:r.jsx("div",{className:"container-fluid px-0",children:r.jsx("div",{className:"row gy-4 align-items-center justify-content-center",children:r.jsxs("div",{className:"col-12 text-center",children:[r.jsx("input",{autoComplete:"off",type:"text",value:t,onChange:l=>n(l.target.value)}),r.jsx("br",{})," ",r.jsx("br",{}),r.jsx("input",{autoComplete:"off",type:"password",value:s,onChange:l=>o(l.target.value)}),r.jsx("div",{className:"mb-3",children:r.jsx("button",{onClick:a,className:"btn btn-dark w-70",children:"Login"})})]})})})})})})}function Bi({children:e}){const t=hn(),n=localStorage.getItem("token");return S.useEffect(()=>{n||t("/AdminPLogin")},[n,t]),n?e:null}Bi.propTypes={children:Lt.node.isRequired};const cS=()=>{const e=hn(),t=Ke(),{properties:n,totalPages:s}=_e(N=>N.property),[o,i]=S.useState(1),a=5,l="",[d,c]=S.useState("dashboard");S.useEffect(()=>{t(mr({page:o,limit:a,keyword:l}))},[t,o,l]);const u=N=>{i(N)},p=()=>{switch(d){case"activeUsers":return r.jsx("div",{children:"Active Users Content"});case"inactiveUsers":return r.jsx("div",{children:"Inactive Users Content"});case"addProperty":return r.jsx("div",{children:"Add Property Content"});case"userProperties":return r.jsx("div",{className:"container-fluid",style:{padding:"35px",paddingLeft:"120px"},children:n.length>0?r.jsxs(r.Fragment,{children:[r.jsx("ul",{children:n.map(N=>r.jsx("li",{children:r.jsx("div",{className:"container",children:r.jsx("div",{className:"col-md-12",children:r.jsxs("div",{className:"row p-2 bg-white border rounded mt-2",children:[r.jsx("div",{className:"col-md-3 mt-1",children:r.jsx("img",{src:N.images[0].file||mt,className:"w-70",alt:"Img",style:{marginTop:"0px",maxWidth:"200px",maxHeight:"200px"}})}),r.jsxs("div",{className:"col-md-6 mt-1",children:[r.jsx("h5",{children:r.jsxs(ae,{to:`/property/${N.propertyId}`,target:"_blank",children:[N.address,"....."]})}),r.jsx("p",{className:"text-justify text-truncate para mb-0",children:"There are many variations of passages of"})]}),r.jsx("div",{className:"align-items-center align-content-center col-md-3 border-left mt-1",children:r.jsxs("div",{className:"d-flex flex-column mt-4",children:[r.jsx(ae,{to:`/property/${N.propertyId}`,children:r.jsxs("button",{className:"btn btn-outline-primary btn-sm mt-2",type:"button",style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{className:"fa fa-eye",style:{color:"#F74B02"}})," ","View Details"]})}),r.jsxs("button",{className:"btn btn-outline-primary btn-sm mt-2",type:"button",style:{backgroundColor:"#fda417",border:"#fda417"},onClick:()=>c("editDetails"),children:[r.jsx("span",{className:"fa fa-edit",style:{color:"#F74B02"}})," ","Edit Details"]})]})})]})})})},N._id))}),r.jsxs("div",{className:"pagination",children:[r.jsx("button",{onClick:()=>u(o-1),disabled:o===1,children:"Previous"}),Array.from({length:s},(N,x)=>x+1).map(N=>N===o||N===1||N===s||N>=o-1&&N<=o+1?r.jsx("button",{onClick:()=>u(N),disabled:o===N,children:N},N):N===2||N===s-1?r.jsx("span",{children:"..."},N):null),r.jsx("button",{onClick:()=>u(o+1),disabled:o===s,children:"Next"})]})]}):r.jsx("p",{children:"No active properties found."})});case"adminProperties":return r.jsx("div",{children:"Admin Properties Content"});case"newPage":return r.jsxs("div",{style:{padding:"20px"},children:[r.jsx("h3",{children:"New Page"}),r.jsx("p",{children:"This is some dummy text. You can replace it with your content later."})]});case"editDetails":return r.jsxs("div",{style:{padding:"20px"},children:[r.jsx("h3",{children:"Edit Property Details"}),r.jsx("p",{children:"You can add your edit details here."})]});default:return r.jsx("div",{children:r.jsx(ae,{to:"/AdminPLogin/admininfo",children:"Welcome to the Dashboard"})})}},g=()=>{localStorage.removeItem("token"),e("/AdminPLogin")};return r.jsxs("div",{id:"wrapper",children:[r.jsxs("ul",{className:"navbar-nav bg-gradient-primary sidebar sidebar-dark accordion",id:"accordionSidebar",children:[r.jsxs("span",{className:"sidebar-brand d-flex align-items-center justify-content-center",children:[r.jsx("div",{className:"sidebar-brand-icon rotate-n-15",children:r.jsx("i",{className:"fas fa-laugh-wink"})}),r.jsxs("div",{className:"sidebar-brand-text mx-3",children:["Admin ",r.jsx("sup",{children:"EL"})]})]}),r.jsx("hr",{className:"sidebar-divider my-0"}),r.jsx("li",{className:"nav-item active",children:r.jsxs(ae,{to:"#",onClick:()=>c("dashboard"),className:"nav-link link-primary text-decoration-none",children:[r.jsx("i",{className:"fas fa-fw fa-tachometer-alt"}),r.jsx("span",{children:"Dashboard"})]})}),r.jsx("hr",{className:"sidebar-divider"}),r.jsx("div",{className:"sidebar-heading",children:"Interface"}),r.jsxs("li",{className:"nav-item",children:[r.jsxs("a",{className:"nav-link collapsed",href:"#","data-toggle":"collapse","data-target":"#collapseTwo","aria-expanded":"true","aria-controls":"collapseTwo",children:[r.jsx("i",{className:"fas fa-fw fa-cog"}),r.jsx("span",{children:"Users"})]}),r.jsx("div",{id:"collapseTwo",className:"collapse","aria-labelledby":"headingTwo","data-parent":"#accordionSidebar",children:r.jsxs("div",{className:"bg-white py-2 collapse-inner rounded",children:[r.jsx("h6",{className:"collapse-header",children:"Registered Users:"}),r.jsx(ae,{to:"#",onClick:()=>c("activeUsers"),className:"collapse-item link-primary text-decoration-none",children:"Active Users"}),r.jsx(ae,{to:"#",onClick:()=>c("inactiveUsers"),className:"collapse-item link-primary text-decoration-none",children:"Inactive Users"})]})})]}),r.jsxs("li",{className:"nav-item",children:[r.jsxs("a",{className:"nav-link collapsed",href:"#","data-toggle":"collapse","data-target":"#collapseUtilities","aria-expanded":"true","aria-controls":"collapseUtilities",children:[r.jsx("i",{className:"fas fa-fw fa-wrench"}),r.jsx("span",{children:"Properties"})]}),r.jsx("div",{id:"collapseUtilities",className:"collapse","aria-labelledby":"headingUtilities","data-parent":"#accordionSidebar",children:r.jsxs("div",{className:"bg-white py-2 collapse-inner rounded",children:[r.jsx("h6",{className:"collapse-header",children:"Details:"}),r.jsx(ae,{to:"#",onClick:()=>c("addProperty"),className:"collapse-item link-primary text-decoration-none",children:"Add Property"}),r.jsx(ae,{to:"#",onClick:()=>c("userProperties"),className:"collapse-item link-primary text-decoration-none",children:"User Properties"}),r.jsx(ae,{to:"#",onClick:()=>c("adminProperties"),className:"collapse-item link-primary text-decoration-none",children:"Admin Properties"}),r.jsx(ae,{to:"#",onClick:()=>c("newPage"),className:"collapse-item link-primary text-decoration-none",children:"New Page"})]})})]}),r.jsx("li",{className:"nav-item",children:r.jsxs(ae,{to:"#",onClick:g,className:"nav-link link-primary text-decoration-none",children:[r.jsx("i",{className:"fas fa-fw fa-sign-out-alt"}),r.jsx("span",{children:"Logout"})]})})]}),r.jsx("div",{id:"content-wrapper",className:"d-flex flex-column",children:r.jsx("div",{id:"content",children:r.jsx("div",{className:"container-fluid",children:p()})})})]})},dS=()=>{const e=Ke(),{user:t,loading:n,error:s}=_e(o=>o.admin);return console.log("user",t),S.useEffect(()=>{e(Di())},[e]),n?r.jsx("p",{children:"Loading..."}):s?r.jsxs("p",{children:["Error: ",s]}):r.jsxs("div",{children:[r.jsx("h2",{children:"Admin Details"}),t?r.jsx("div",{children:r.jsxs("p",{children:[r.jsx("strong",{children:"Username:"})," ",t.username]})}):r.jsx("p",{children:"No user details found. Thank you"})]})},uS=()=>r.jsxs(bC,{children:[r.jsx($C,{}),r.jsxs(hC,{children:[r.jsx(be,{path:"/",element:r.jsx(UC,{})}),r.jsx(be,{path:"/about",element:r.jsx(qC,{})}),r.jsx(be,{path:"/services",element:r.jsx(sS,{})}),r.jsx(be,{path:"/contact",element:r.jsx(VC,{})}),r.jsx(be,{path:"/register",element:r.jsx(gb,{})}),r.jsx(be,{path:"/registrationsuccess",element:r.jsx(Ms,{children:r.jsx(Db,{})})}),r.jsx(be,{path:"/login",element:r.jsx(yb,{})}),r.jsx(be,{path:"/dashboard",element:r.jsx(Ms,{children:r.jsx(kb,{})})}),r.jsx(be,{path:"/users/:id/verify/:token",element:r.jsx(Rb,{})}),r.jsx(be,{path:"/forgotpassword",element:r.jsx(Ib,{})}),r.jsx(be,{path:"/users/resetpassword/:userId/:token",element:r.jsx(Fb,{})}),r.jsx(be,{path:"/addproperty",element:r.jsx(Ms,{children:r.jsx(sg,{})})}),r.jsx(be,{path:"/property/:id",element:r.jsx(nS,{})}),r.jsx(be,{path:"/properties/:house_id",element:r.jsx(oS,{})}),r.jsx(be,{path:"/searchmyproperties",element:r.jsx(rS,{})}),r.jsx(be,{path:"/searchproperties",element:r.jsx(iS,{})}),r.jsx(be,{path:"/editproperty/:id",element:r.jsx(Ms,{children:r.jsx(Dp,{})})}),r.jsx(be,{path:"/profile/:userId",element:r.jsx(aS,{})}),r.jsx(be,{path:"/AdminPLogin",element:r.jsx(lS,{})}),r.jsx(be,{path:"/AdminPLogin/dashboard",element:r.jsx(Bi,{children:r.jsx(cS,{})})}),r.jsx(be,{path:"/AdminPLogin/admininfo",element:r.jsx(Bi,{children:r.jsx(dS,{})})}),r.jsx(be,{path:"/admineditproperty/:id",element:r.jsx(Bi,{children:r.jsx(Dp,{})})})]})]});Qh(document.getElementById("root")).render(r.jsx(S.StrictMode,{children:r.jsx(Dj,{store:PN,children:r.jsx(uS,{})})})); diff --git a/ef-ui/dist/index.html b/ef-ui/dist/index.html index 24606cf..0b07883 100644 --- a/ef-ui/dist/index.html +++ b/ef-ui/dist/index.html @@ -54,7 +54,7 @@ - + diff --git a/ef-ui/dist/vendor/fontawesome-free/package-lock.json b/ef-ui/dist/vendor/fontawesome-free/package-lock.json new file mode 100644 index 0000000..7712dce --- /dev/null +++ b/ef-ui/dist/vendor/fontawesome-free/package-lock.json @@ -0,0 +1,24 @@ +{ + "name": "@fortawesome/fontawesome-free", + "version": "5.15.3", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "@fortawesome/fontawesome-free", + "version": "5.15.3", + "hasInstallScript": true, + "license": "(CC-BY-4.0 AND OFL-1.1 AND MIT)", + "dependencies": { + "@fortawesome/fontawesome-free": "file:" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/@fortawesome/fontawesome-free": { + "resolved": "", + "link": true + } + } +} diff --git a/ef-ui/dist/vendor/fontawesome-free/package.json b/ef-ui/dist/vendor/fontawesome-free/package.json index dca23a7..236a856 100644 --- a/ef-ui/dist/vendor/fontawesome-free/package.json +++ b/ef-ui/dist/vendor/fontawesome-free/package.json @@ -46,7 +46,9 @@ "engines": { "node": ">=6" }, - "dependencies": {}, + "dependencies": { + "@fortawesome/fontawesome-free": "file:" + }, "version": "5.15.3", "name": "@fortawesome/fontawesome-free", "main": "js/fontawesome.js", @@ -55,4 +57,4 @@ "scripts": { "postinstall": "node attribution.js" } -} \ No newline at end of file +} diff --git a/ef-ui/public/vendor/fontawesome-free/package-lock.json b/ef-ui/public/vendor/fontawesome-free/package-lock.json new file mode 100644 index 0000000..7712dce --- /dev/null +++ b/ef-ui/public/vendor/fontawesome-free/package-lock.json @@ -0,0 +1,24 @@ +{ + "name": "@fortawesome/fontawesome-free", + "version": "5.15.3", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "@fortawesome/fontawesome-free", + "version": "5.15.3", + "hasInstallScript": true, + "license": "(CC-BY-4.0 AND OFL-1.1 AND MIT)", + "dependencies": { + "@fortawesome/fontawesome-free": "file:" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/@fortawesome/fontawesome-free": { + "resolved": "", + "link": true + } + } +} diff --git a/ef-ui/public/vendor/fontawesome-free/package.json b/ef-ui/public/vendor/fontawesome-free/package.json index dca23a7..236a856 100644 --- a/ef-ui/public/vendor/fontawesome-free/package.json +++ b/ef-ui/public/vendor/fontawesome-free/package.json @@ -46,7 +46,9 @@ "engines": { "node": ">=6" }, - "dependencies": {}, + "dependencies": { + "@fortawesome/fontawesome-free": "file:" + }, "version": "5.15.3", "name": "@fortawesome/fontawesome-free", "main": "js/fontawesome.js", @@ -55,4 +57,4 @@ "scripts": { "postinstall": "node attribution.js" } -} \ No newline at end of file +} diff --git a/ef-ui/src/components/Addproperty.jsx b/ef-ui/src/components/Addproperty.jsx index 789bb33..c5506cd 100644 --- a/ef-ui/src/components/Addproperty.jsx +++ b/ef-ui/src/components/Addproperty.jsx @@ -12,11 +12,14 @@ const Addproperty = () => { const handleContinue = () => { if (activeTab === "propertydetails") setActiveTab("Images"); if (activeTab === "Images") setActiveTab("Accounting"); + if (activeTab === "Accounting") setActiveTab("IAB"); + if (activeTab === "IAB") setActiveTab("IAB"); }; const handleBack = () => { if (activeTab === "Images") setActiveTab("propertydetails"); if (activeTab === "Accounting") setActiveTab("Images"); + if (activeTab === "IAB") setActiveTab("Accounting"); }; const dispatch = useDispatch(); @@ -124,6 +127,9 @@ const Addproperty = () => { InsuranceClaim: "0", LongTermRental: "0", FinancingCostClosingCost: "0", + IAB: [{ title: "IAB Title", URL: "Please enter URL" }], + + }); const [submitted, setSubmitted] = useState(false); @@ -1006,6 +1012,46 @@ const Addproperty = () => { } }; + + + + + const addIAB = () => { + setFormData((prevData) => ({ + ...prevData, + IAB: [...prevData.IAB, { title: "", URL: "" }], + })); + }; + + const deleteIAB = (index) => { + const updatedIAB = formData.IAB.filter( + (_, i) => i !== index + ); + setFormData((prevData) => ({ + ...prevData, + IAB: updatedIAB, + })); + }; + + // Function to handle changes to incidentalCost title and price + const handleIABTitle = (index, field, value) => { + const updatedIAB = [...formData.IAB]; + updatedIAB[index][field] = value; + setFormData((prevData) => ({ + ...prevData, + IAB: updatedIAB, + })); + }; + + const handleIABChange = (index, field, value) => { + const updatedIAB = [...formData.IAB]; + updatedIAB[index][field] = value; + setFormData((prevData) => ({ + ...prevData, + IAB: updatedIAB, + })); + }; + return ( <>
@@ -1037,6 +1083,14 @@ const Addproperty = () => { Accounting +
  • + setActiveTab("IAB")} role="tab"> + IAB + +
  • @@ -4028,15 +4082,125 @@ const Addproperty = () => { type="button" className="btn btn-primary continue" style={{ backgroundColor: "#fda417", border: "#fda417" }} - onClick={handleSubmit} + onClick={handleContinue} > - Submit + Continue {" "}

    )} + + + + {activeTab === "IAB" && ( +
    + + + + Add IAB Links: + + + {formData.IAB.map((title, index) => ( +
    +
    + + handleIABTitle(index, "title", e.target.value) + } + placeholder="Title" + required + /> +
    +
    + + handleIABChange(index, "URL", e.target.value) + } + placeholder="URL" + style={{ textAlign: "right" }} + required + /> + {title.isInvalid && ( +
    + Please enter a valid URL. +
    + )} +
    + + +
    + +
    +
    + ))} + +
    + +
    + +
    + {" "} + {" "} +
    + + + + + +
    + )} + + + + + ); diff --git a/ef-ui/src/components/Dashboard.jsx b/ef-ui/src/components/Dashboard.jsx index ba9ba27..a15d38c 100644 --- a/ef-ui/src/components/Dashboard.jsx +++ b/ef-ui/src/components/Dashboard.jsx @@ -58,7 +58,7 @@ const Dashboard = () => { return ( <> -




    +


    {/* Left sidebar */}
    diff --git a/ef-ui/src/components/EditProperty.jsx b/ef-ui/src/components/EditProperty.jsx index 2870dc0..bbc0def 100644 --- a/ef-ui/src/components/EditProperty.jsx +++ b/ef-ui/src/components/EditProperty.jsx @@ -14,11 +14,14 @@ const EditProperty = () => { const handleContinue = () => { if (activeTab === "propertydetails") setActiveTab("Images"); if (activeTab === "Images") setActiveTab("Accounting"); + if (activeTab === "Accounting") setActiveTab("IAB"); + if (activeTab === "IAB") setActiveTab("IAB"); }; const handleBack = () => { if (activeTab === "Images") setActiveTab("propertydetails"); if (activeTab === "Accounting") setActiveTab("Images"); + if (activeTab === "IAB") setActiveTab("Accounting"); }; const { selectedProperty } = useSelector((state) => state.property); @@ -128,6 +131,7 @@ const EditProperty = () => { InsuranceClaim: "0", LongTermRental: "0", FinancingCostClosingCost: "0", + IAB: [{ title: "IAB Title", URL: "Please enter URL" }], }); const renovationRiskOptions = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]; // Array of options @@ -207,6 +211,7 @@ const EditProperty = () => { images: selectedProperty.images || [{ title: "", file: "" }], googleMapLink: selectedProperty.googleMapLink, rateofreturn: selectedProperty.rateofreturn, + IAB:selectedProperty.IAB, }); } }, [selectedProperty]); @@ -1038,11 +1043,49 @@ const EditProperty = () => { return rateofreturn; }; + + + const addIAB = () => { + setFormData((prevData) => ({ + ...prevData, + IAB: [...prevData.IAB, { title: "", URL: "" }], + })); + }; + + const deleteIAB = (index) => { + const updatedIAB = formData.IAB.filter( + (_, i) => i !== index + ); + setFormData((prevData) => ({ + ...prevData, + IAB: updatedIAB, + })); + }; + + // Function to handle changes to incidentalCost title and price + const handleIABTitle = (index, field, value) => { + const updatedIAB = [...formData.IAB]; + updatedIAB[index][field] = value; + setFormData((prevData) => ({ + ...prevData, + IAB: updatedIAB, + })); + }; + + const handleIABChange = (index, field, value) => { + const updatedIAB = [...formData.IAB]; + updatedIAB[index][field] = value; + setFormData((prevData) => ({ + ...prevData, + IAB: updatedIAB, + })); + }; + return ( <> -





    -
    +



    +
    @@ -4087,8 +4140,119 @@ const EditProperty = () => {
    -
    -
    + + + +
    + {" "} + {" "} +
    + + + + + + + +
    + )} + + + + + {activeTab === "IAB" && ( +
    + + + + Add IAB Links: + + + {formData.IAB.map((title, index) => ( +
    +
    + + handleIABTitle(index, "title", e.target.value) + } + placeholder="Title" + required + /> +
    +
    + + handleIABChange(index, "URL", e.target.value) + } + placeholder="URL" + style={{ textAlign: "right" }} + required + /> + {title.isInvalid && ( +
    + Please enter a valid URL. +
    + )} +
    + + +
    + +
    +
    + ))} + +
    + +
    + + +
    {" "}
    -
    -
    - )} + + + + + + +
    + + + )} + +
    + +
    + +
    ); diff --git a/ef-ui/src/components/ProfileView.jsx b/ef-ui/src/components/ProfileView.jsx index ca8cff2..74b111c 100644 --- a/ef-ui/src/components/ProfileView.jsx +++ b/ef-ui/src/components/ProfileView.jsx @@ -31,8 +31,7 @@ const ProfileView = () => {


    -
    - +
    {/* /Breadcrumb */}
    diff --git a/ef-ui/src/components/admin/Dashboard.jsx b/ef-ui/src/components/admin/Dashboard.jsx index daa3704..5bfca97 100644 --- a/ef-ui/src/components/admin/Dashboard.jsx +++ b/ef-ui/src/components/admin/Dashboard.jsx @@ -1,20 +1,26 @@ -import { useState } from "react"; +import { useState, useEffect } from "react"; import { NavLink } from "react-router-dom"; import { useNavigate } from "react-router-dom"; - -import UserProperties from "./UserProperties"; +import { useSelector, useDispatch } from "react-redux"; +import { getProperties } from "../../redux/features/propertySlice"; +import propertydummy from "../../img/propertydummy.jpg"; const AdminDashboard = () => { - const navigate = useNavigate(); - - - - - // State to track selected tab + const dispatch = useDispatch(); + const { properties, totalPages } = useSelector((state) => state.property); + const [page, setPage] = useState(1); + const limit = 5; // Number of properties per page + const keyword = ""; const [selectedTab, setSelectedTab] = useState("dashboard"); + useEffect(() => { + dispatch(getProperties({ page, limit, keyword })); + }, [dispatch, page, keyword]); + const handlePageChange = (newPage) => { + setPage(newPage); + }; const renderContent = () => { switch (selectedTab) { @@ -25,131 +31,140 @@ const AdminDashboard = () => { case "addProperty": return
    Add Property Content
    ; case "userProperties": - return
    - -
    ; + return ( +
    + {properties.length > 0 ? ( + <> +
      + {properties.map((property) => ( +
    • +
      +
      +
      +
      + Img +
      +
      +
      + + {property.address} + {"....."} + +
      +

      + There are many variations of passages of +

      +
      +
      +
      + + + + +
      +
      +
      +
      +
      +
    • + ))} +
    +
    + + {Array.from({ length: totalPages }, (_, index) => index + 1).map( + (pageNumber) => + pageNumber === page || + pageNumber === 1 || + pageNumber === totalPages || + (pageNumber >= page - 1 && pageNumber <= page + 1) ? ( + + ) : pageNumber === 2 || pageNumber === totalPages - 1 ? ( + ... + ) : null + )} + +
    + + ) : ( +

    No active properties found.

    + )} +
    + ); case "adminProperties": return
    Admin Properties Content
    ; + case "newPage": // New page with dummy content + return ( +
    +

    New Page

    +

    This is some dummy text. You can replace it with your content later.

    +
    + ); + case "editDetails": // New case for the Edit Details page + return ( +
    +

    Edit Property Details

    +

    You can add your edit details here.

    +
    + ); default: return (
    - - - - -Welcome to the Dashboard - - - - - -
    - {/* Content Row */} -
    - {/* Earnings (Monthly) Card Example */} -
    -
    -
    -
    -
    -
    - Total Users -
    -
    - 40,000,000 -
    -
    -
    - -
    -
    -
    -
    -
    - {/* Earnings (Monthly) Card Example */} -
    -
    -
    -
    -
    -
    - Total payments -
    -
    - $215,000 -
    -
    -
    - -
    -
    -
    -
    -
    - {/* Earnings (Monthly) Card Example */} -
    -
    -
    -
    -
    -
    - Total Properties -
    -
    -
    -
    - 50,000 -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    - -
    -
    -
    -
    -
    - {/* Pending Requests Card Example */} -
    -
    -
    -
    -
    -
    - Pending Inquires -
    -
    - 18 -
    -
    -
    - -
    -
    -
    -
    -
    -
    - {/* Content Row */} -
    {/* Area Chart */}
    - {/* Content Row */} -
    + Welcome to the Dashboard
    ); } @@ -161,174 +176,135 @@ Welcome to the Dashboard }; return ( - <> -
    - {/* Page Wrapper */} -
    - {/* Sidebar */} -
      - {/* Sidebar - Brand */} - -
      - -
      -
      - Admin EL -
      -
      -
      - -
    • - setSelectedTab("dashboard")} - className="nav-link link-primary text-decoration-none" - > - - Dashboard - -
    • - -
      -
      Interface
      - -
    • - - - Users - -
      -
      -
      Registered Users:
      - - setSelectedTab("activeUsers")} - className="collapse-item link-primary text-decoration-none" - > - Active Users - - - setSelectedTab("inactiveUsers")} - className="collapse-item link-primary text-decoration-none" - > - Inactive Users - -
      -
      -
    • - -
    • - - - Properties - -
      -
      -
      Details:
      - - setSelectedTab("addProperty")} - className="collapse-item link-primary text-decoration-none" - > - Add Property - - setSelectedTab("userProperties")} - className="collapse-item link-primary text-decoration-none" - > - User Properties - - setSelectedTab("adminProperties")} - className="collapse-item link-primary text-decoration-none" - > - Admin Properties - -
      -
      -
    • -
      -
      Addons
      - -
    • - setSelectedTab("admin")} - className="nav-link link-primary text-decoration-none" - > - - Admin - -
    • - -
      - -
    • - { - e.preventDefault(); // Prevent the default link behavior - handleLogout(); - }} - className="nav-link link-primary text-decoration-none" - > - - Logout - -
    • -
    - {/* End of Sidebar */} - - {/* Content Wrapper */} -
    - {/* Main Content */} -
    {renderContent()}
    +
    +
      + +
      +
      - {/* End of Content Wrapper */} +
      + Admin EL +
      +
      +
      +
    • + setSelectedTab("dashboard")} + className="nav-link link-primary text-decoration-none" + > + + Dashboard + +
    • +
      +
      Interface
      +
    • + + + Users + +
      +
      +
      Registered Users:
      + setSelectedTab("activeUsers")} + className="collapse-item link-primary text-decoration-none" + > + Active Users + + setSelectedTab("inactiveUsers")} + className="collapse-item link-primary text-decoration-none" + > + Inactive Users + +
      +
      +
    • +
    • + + + Properties + +
      +
      +
      Details:
      + setSelectedTab("addProperty")} + className="collapse-item link-primary text-decoration-none" + > + Add Property + + setSelectedTab("userProperties")} + className="collapse-item link-primary text-decoration-none" + > + User Properties + + setSelectedTab("adminProperties")} + className="collapse-item link-primary text-decoration-none" + > + Admin Properties + + setSelectedTab("newPage")} + className="collapse-item link-primary text-decoration-none" + > + New Page + +
      +
      +
    • +
    • + + + Logout + +
    • +
    +
    +
    +
    {renderContent()}
    - {/* End of Page Wrapper */}
    - +
    ); }; diff --git a/ef-ui/src/components/admin/UserProperties.jsx b/ef-ui/src/components/admin/UserProperties.jsx index 3cd89de..81a45b5 100644 --- a/ef-ui/src/components/admin/UserProperties.jsx +++ b/ef-ui/src/components/admin/UserProperties.jsx @@ -109,7 +109,9 @@ const UserProperties = () => { - +