From 51f1b4afbdbd59ddd714b37a32e23763d719f62e Mon Sep 17 00:00:00 2001 From: omkieit Date: Mon, 21 Oct 2024 19:51:48 +0530 Subject: [PATCH] done --- ef-api/controllers/fundDetails.js | 37 +++ ef-api/index.js | 2 + ef-api/models/fundDetails.js | 29 +++ ef-api/models/property copy.js | 74 ------ ef-api/routes/fundDetails.js | 10 + ef-ui/dist/assets/index-7mv97drX.js | 85 ------ ef-ui/dist/assets/index-B2o9sH6t.js | 89 +++++++ ef-ui/dist/index.html | 2 +- ef-ui/package-lock.json | 215 +++++++++++++++- ef-ui/package.json | 1 + ef-ui/src/components/PropertyView.jsx | 257 ++++++++++++++----- ef-ui/src/components/SearchProperties.jsx | 1 - ef-ui/src/components/UserProperties.jsx | 1 - ef-ui/src/redux/api.js | 1 + ef-ui/src/redux/features/fundDetailsSlice.js | 65 +++++ ef-ui/src/redux/store.js | 3 +- 16 files changed, 650 insertions(+), 222 deletions(-) create mode 100644 ef-api/controllers/fundDetails.js create mode 100644 ef-api/models/fundDetails.js delete mode 100644 ef-api/models/property copy.js create mode 100644 ef-api/routes/fundDetails.js delete mode 100644 ef-ui/dist/assets/index-7mv97drX.js create mode 100644 ef-ui/dist/assets/index-B2o9sH6t.js create mode 100644 ef-ui/src/redux/features/fundDetailsSlice.js diff --git a/ef-api/controllers/fundDetails.js b/ef-api/controllers/fundDetails.js new file mode 100644 index 0000000..1b117cc --- /dev/null +++ b/ef-api/controllers/fundDetails.js @@ -0,0 +1,37 @@ + +import FundDetailsModal from "../models/fundDetails.js" + + +export const submitFundDetails = async (req, res) => { + + const { propertyOwnerId, investorId, investmentAmount, ownershipPercentage, propertyId } = req.body; + + const newFundDetail = new FundDetailsModal({ + propertyOwnerId, + investorId, + investmentAmount, + ownershipPercentage, + propertyId + }); + console.log("newFundDetail", newFundDetail) + + try { + const savedFundDetail = await newFundDetail.save(); + res.status(201).json(savedFundDetail); + } catch (error) { + res.status(500).json({ message: error.message }); + } +}; + +export const getFundDetailsById = async (req, res) => { + const { id } = req.params; + try { + const fundDetails = await FundDetailsModal.findOne({ propertyId: id }); + if (!fundDetails) { + return res.status(404).json({ message: "Fund details not found" }); + } + res.status(200).json(fundDetails); + } catch (error) { + res.status(500).json({ message: error.message }); + } + }; \ No newline at end of file diff --git a/ef-api/index.js b/ef-api/index.js index 0a31344..87a7c4f 100644 --- a/ef-api/index.js +++ b/ef-api/index.js @@ -7,6 +7,7 @@ import session from "express-session"; import userRouter from "./routes/user.js"; import propertyRouter from "./routes/property.js"; import mysqlRouter from "./routes/mysqlproperty.js"; +import fundDetailsRouter from "./routes/fundDetails.js"; import dotenv from "dotenv"; const app = express(); @@ -34,6 +35,7 @@ app.use( app.use("/users", userRouter); app.use("/properties", propertyRouter); app.use("/mysql", mysqlRouter); // Use MySQL routes +app.use("/fundDetails", fundDetailsRouter); diff --git a/ef-api/models/fundDetails.js b/ef-api/models/fundDetails.js new file mode 100644 index 0000000..aa105e2 --- /dev/null +++ b/ef-api/models/fundDetails.js @@ -0,0 +1,29 @@ + +import mongoose from "mongoose"; + +const fundDetailsSchema = new mongoose.Schema({ + propertyOwnerId: { + type: String, + required: true, + }, + investorId: { + type: String, + required: true, + }, + investmentAmount: { + type: Number, + required: true, + }, + ownershipPercentage: { + type: Number, + required: true, + }, + propertyId:{ + type: String, + required: true, + }, +}, { timestamps: true }); + +const FundDetailsModal = mongoose.model("FundDetails", fundDetailsSchema); +export default FundDetailsModal; + diff --git a/ef-api/models/property copy.js b/ef-api/models/property copy.js deleted file mode 100644 index 3e259dd..0000000 --- a/ef-api/models/property copy.js +++ /dev/null @@ -1,74 +0,0 @@ -import mongoose from "mongoose"; - -// Schema for property tax information -const propertyTaxInfoSchema = mongoose.Schema({ - propertytaxowned: { type: String }, - ownedyear: { type: String }, - taxassessed: { type: String }, - taxyear: { type: String }, -}); - -// Schema for images -const imageSchema = mongoose.Schema({ - title: { type: String }, // Title of the image - file: { type: String }, // Uploaded image URL -}); - -const propertySchema = mongoose.Schema({ - address: { type: String, required: true }, - city: { type: String, required: true }, - state: { type: String, required: true }, - county: { type: String, required: true }, - zip: { type: String, required: true }, - parcel: { type: String, required: true }, - subdivision: { type: String, required: true }, - legal: { type: String, required: true }, - costpersqft: { type: String, required: true }, - propertyType: { type: String, required: true }, - lotacres: { type: String, required: true }, - yearBuild: { type: String, required: true }, - totallivingsqft: { type: String, required: true }, - beds: { type: String, required: true }, - baths: { type: String, required: true }, - stories: { type: String, required: true }, - garage: { type: String, required: true }, - garagesqft: { type: String, required: true }, - poolspa: { type: String, required: true }, - fireplaces: { type: String, required: true }, - ac: { type: String, required: true }, - heating: { type: String, required: true }, - buildingstyle: { type: String, required: true }, - sitevacant: { type: String, required: true }, - extwall: { type: String, required: true }, - roofing: { type: String, required: true }, - totalSqft: { type: String, required: true }, - - // Remove individual property tax fields and replace with array - propertyTaxInfo: [propertyTaxInfoSchema], // Array of tax info objects - images: [imageSchema], - googleMapLink: { type: String }, - userfirstname: String, - usermiddlename: String, - userlastname: String, - usertitle: String, - creator: String, - useremail: String, - propertyId: String, - userId: String, - createdAt: { - type: Date, - default: new Date(), - }, - publishedAt: { - type: Date, - default: new Date(), - }, - currentYear: { - type: Number, - default: new Date().getFullYear(), - }, -}); - -const PropertyModal = mongoose.model("property", propertySchema); - -export default PropertyModal; diff --git a/ef-api/routes/fundDetails.js b/ef-api/routes/fundDetails.js new file mode 100644 index 0000000..fb5cbf6 --- /dev/null +++ b/ef-api/routes/fundDetails.js @@ -0,0 +1,10 @@ +import express from 'express'; +const router = express.Router(); +import { submitFundDetails, getFundDetailsById } from '../controllers/fundDetails.js'; + + + +router.post('/', submitFundDetails); +router.get("/:id", getFundDetailsById); + +export default router; diff --git a/ef-ui/dist/assets/index-7mv97drX.js b/ef-ui/dist/assets/index-7mv97drX.js deleted file mode 100644 index 4f178c1..0000000 --- a/ef-ui/dist/assets/index-7mv97drX.js +++ /dev/null @@ -1,85 +0,0 @@ -var nv=Object.defineProperty;var rv=(e,t,n)=>t in e?nv(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Fa=(e,t,n)=>rv(e,typeof t!="symbol"?t+"":t,n);function ov(e,t){for(var n=0;no[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"]'))o(i);new MutationObserver(i=>{for(const s of i)if(s.type==="childList")for(const a of s.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&o(a)}).observe(document,{childList:!0,subtree:!0});function n(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerPolicy&&(s.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?s.credentials="include":i.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function o(i){if(i.ep)return;i.ep=!0;const s=n(i);fetch(i.href,s)}})();var iv=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Oc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var kf={exports:{}},zs={},Ef={exports:{}},le={};/** - * @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 ei=Symbol.for("react.element"),sv=Symbol.for("react.portal"),av=Symbol.for("react.fragment"),lv=Symbol.for("react.strict_mode"),cv=Symbol.for("react.profiler"),uv=Symbol.for("react.provider"),dv=Symbol.for("react.context"),fv=Symbol.for("react.forward_ref"),pv=Symbol.for("react.suspense"),mv=Symbol.for("react.memo"),hv=Symbol.for("react.lazy"),Fu=Symbol.iterator;function vv(e){return e===null||typeof e!="object"?null:(e=Fu&&e[Fu]||e["@@iterator"],typeof e=="function"?e:null)}var Pf={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_f=Object.assign,Of={};function Br(e,t,n){this.props=e,this.context=t,this.refs=Of,this.updater=n||Pf}Br.prototype.isReactComponent={};Br.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")};Br.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Tf(){}Tf.prototype=Br.prototype;function Tc(e,t,n){this.props=e,this.context=t,this.refs=Of,this.updater=n||Pf}var Ac=Tc.prototype=new Tf;Ac.constructor=Tc;_f(Ac,Br.prototype);Ac.isPureReactComponent=!0;var Lu=Array.isArray,Af=Object.prototype.hasOwnProperty,Ic={current:null},If={key:!0,ref:!0,__self:!0,__source:!0};function Rf(e,t,n){var o,i={},s=null,a=null;if(t!=null)for(o in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(s=""+t.key),t)Af.call(t,o)&&!If.hasOwnProperty(o)&&(i[o]=t[o]);var l=arguments.length-2;if(l===1)i.children=n;else if(1>>1,$=A[B];if(0>>1;Bi(ee,L))re<$&&0>i(ne,ee)?(A[B]=ne,A[re]=L,B=re):(A[B]=ee,A[G]=L,B=G);else if(re<$&&0>i(ne,L))A[B]=ne,A[re]=L,B=re;else break e}}return T}function i(A,T){var L=A.sortIndex-T.sortIndex;return L!==0?L:A.id-T.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var a=Date,l=a.now();e.unstable_now=function(){return a.now()-l}}var u=[],c=[],d=1,p=null,x=3,b=!1,g=!1,N=!1,C=typeof setTimeout=="function"?setTimeout:null,h=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 m(A){for(var T=n(c);T!==null;){if(T.callback===null)o(c);else if(T.startTime<=A)o(c),T.sortIndex=T.expirationTime,t(u,T);else break;T=n(c)}}function y(A){if(N=!1,m(A),!g)if(n(u)!==null)g=!0,U(E);else{var T=n(c);T!==null&&Q(y,T.startTime-A)}}function E(A,T){g=!1,N&&(N=!1,h(P),P=-1),b=!0;var L=x;try{for(m(T),p=n(u);p!==null&&(!(p.expirationTime>T)||A&&!H());){var B=p.callback;if(typeof B=="function"){p.callback=null,x=p.priorityLevel;var $=B(p.expirationTime<=T);T=e.unstable_now(),typeof $=="function"?p.callback=$:p===n(u)&&o(u),m(T)}else o(u);p=n(u)}if(p!==null)var K=!0;else{var G=n(c);G!==null&&Q(y,G.startTime-T),K=!1}return K}finally{p=null,x=L,b=!1}}var _=!1,O=null,P=-1,M=5,W=-1;function H(){return!(e.unstable_now()-WA||125B?(A.sortIndex=L,t(c,A),n(u)===null&&A===n(c)&&(N?(h(P),P=-1):N=!0,Q(y,L-B))):(A.sortIndex=$,t(u,A),g||b||(g=!0,U(E))),A},e.unstable_shouldYield=H,e.unstable_wrapCallback=function(A){var T=x;return function(){var L=x;x=T;try{return A.apply(this,arguments)}finally{x=L}}}})(Bf);Mf.exports=Bf;var Ev=Mf.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 Pv=R,lt=Ev;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"),jl=Object.prototype.hasOwnProperty,_v=/^[: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]*$/,Bu={},zu={};function Ov(e){return jl.call(zu,e)?!0:jl.call(Bu,e)?!1:_v.test(e)?zu[e]=!0:(Bu[e]=!0,!1)}function Tv(e,t,n,o){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return o?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Av(e,t,n,o){if(t===null||typeof t>"u"||Tv(e,t,n,o))return!0;if(o)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 Ve(e,t,n,o,i,s,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=o,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=s,this.removeEmptyString=a}var Fe={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Fe[e]=new Ve(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Fe[t]=new Ve(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Fe[e]=new Ve(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Fe[e]=new Ve(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){Fe[e]=new Ve(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Fe[e]=new Ve(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Fe[e]=new Ve(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Fe[e]=new Ve(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Fe[e]=new Ve(e,5,!1,e.toLowerCase(),null,!1,!1)});var Dc=/[\-:]([a-z])/g;function Fc(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(Dc,Fc);Fe[t]=new Ve(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(Dc,Fc);Fe[t]=new Ve(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(Dc,Fc);Fe[t]=new Ve(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Fe[e]=new Ve(e,1,!1,e.toLowerCase(),null,!1,!1)});Fe.xlinkHref=new Ve("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Fe[e]=new Ve(e,1,!1,e.toLowerCase(),null,!0,!0)});function Lc(e,t,n,o){var i=Fe.hasOwnProperty(t)?Fe[t]:null;(i!==null?i.type!==0:o||!(2l||i[a]!==s[l]){var u=` -`+i[a].replace(" at new "," at ");return e.displayName&&u.includes("")&&(u=u.replace("",e.displayName)),u}while(1<=a&&0<=l);break}}}finally{Ba=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?fo(e):""}function Iv(e){switch(e.tag){case 5:return fo(e.type);case 16:return fo("Lazy");case 13:return fo("Suspense");case 19:return fo("SuspenseList");case 0:case 2:case 15:return e=za(e.type,!1),e;case 11:return e=za(e.type.render,!1),e;case 1:return e=za(e.type,!0),e;default:return""}}function wl(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 lr:return"Fragment";case ar:return"Portal";case Nl:return"Profiler";case Mc:return"StrictMode";case Cl:return"Suspense";case bl:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case $f:return(e.displayName||"Context")+".Consumer";case Wf:return(e._context.displayName||"Context")+".Provider";case Bc:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case zc:return t=e.displayName||null,t!==null?t:wl(e.type)||"Memo";case on:t=e._payload,e=e._init;try{return wl(e(t))}catch{}}return null}function Rv(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 wl(t);case 8:return t===Mc?"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 Sn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function qf(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Dv(e){var t=qf(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),o=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,s=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(a){o=""+a,s.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return o},setValue:function(a){o=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function hi(e){e._valueTracker||(e._valueTracker=Dv(e))}function Vf(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),o="";return e&&(o=qf(e)?e.checked?"true":"false":e.value),e=o,e!==n?(t.setValue(e),!0):!1}function os(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 Sl(e,t){var n=t.checked;return Ce({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function $u(e,t){var n=t.defaultValue==null?"":t.defaultValue,o=t.checked!=null?t.checked:t.defaultChecked;n=Sn(t.value!=null?t.value:n),e._wrapperState={initialChecked:o,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Hf(e,t){t=t.checked,t!=null&&Lc(e,"checked",t,!1)}function kl(e,t){Hf(e,t);var n=Sn(t.value),o=t.type;if(n!=null)o==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(o==="submit"||o==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?El(e,t.type,n):t.hasOwnProperty("defaultValue")&&El(e,t.type,Sn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Uu(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var o=t.type;if(!(o!=="submit"&&o!=="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 El(e,t,n){(t!=="number"||os(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var po=Array.isArray;function wr(e,t,n,o){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=vi.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 go={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},Fv=["Webkit","ms","Moz","O"];Object.keys(go).forEach(function(e){Fv.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),go[t]=go[e]})});function Qf(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||go.hasOwnProperty(e)&&go[e]?(""+t).trim():t+"px"}function Jf(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var o=n.indexOf("--")===0,i=Qf(n,t[n],o);n==="float"&&(n="cssFloat"),o?e.setProperty(n,i):e[n]=i}}var Lv=Ce({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 Ol(e,t){if(t){if(Lv[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 Tl(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 Al=null;function Wc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Il=null,Sr=null,kr=null;function Hu(e){if(e=ri(e)){if(typeof Il!="function")throw Error(V(280));var t=e.stateNode;t&&(t=Vs(t),Il(e.stateNode,e.type,t))}}function Xf(e){Sr?kr?kr.push(e):kr=[e]:Sr=e}function Zf(){if(Sr){var e=Sr,t=kr;if(kr=Sr=null,Hu(e),t)for(e=0;e>>=0,e===0?32:31-(Kv(e)/Gv|0)|0}var gi=64,xi=4194304;function mo(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 ls(e,t){var n=e.pendingLanes;if(n===0)return 0;var o=0,i=e.suspendedLanes,s=e.pingedLanes,a=n&268435455;if(a!==0){var l=a&~i;l!==0?o=mo(l):(s&=a,s!==0&&(o=mo(s)))}else a=n&~i,a!==0?o=mo(a):s!==0&&(o=mo(s));if(o===0)return 0;if(t!==0&&t!==o&&!(t&i)&&(i=o&-o,s=t&-t,i>=s||i===16&&(s&4194240)!==0))return t;if(o&4&&(o|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=o;0n;n++)t.push(e);return t}function ti(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-wt(t),e[t]=n}function Zv(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 o=e.eventTimes;for(e=e.expirationTimes;0=yo),td=" ",nd=!1;function yp(e,t){switch(e){case"keyup":return Eg.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function jp(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var cr=!1;function _g(e,t){switch(e){case"compositionend":return jp(t);case"keypress":return t.which!==32?null:(nd=!0,td);case"textInput":return e=t.data,e===td&&nd?null:e;default:return null}}function Og(e,t){if(cr)return e==="compositionend"||!Gc&&yp(e,t)?(e=gp(),Fi=Hc=fn=null,cr=!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=o}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=sd(n)}}function wp(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?wp(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Sp(){for(var e=window,t=os();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=os(e.document)}return t}function Qc(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 Bg(e){var t=Sp(),n=e.focusedElem,o=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&wp(n.ownerDocument.documentElement,n)){if(o!==null&&Qc(n)){if(t=o.start,e=o.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,s=Math.min(o.start,i);o=o.end===void 0?s:Math.min(o.end,i),!e.extend&&s>o&&(i=o,o=s,s=i),i=ad(n,s);var a=ad(n,o);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(),s>o?(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,ur=null,Bl=null,No=null,zl=!1;function ld(e,t,n){var o=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;zl||ur==null||ur!==os(o)||(o=ur,"selectionStart"in o&&Qc(o)?o={start:o.selectionStart,end:o.selectionEnd}:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection(),o={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}),No&&Lo(No,o)||(No=o,o=ds(Bl,"onSelect"),0pr||(e.current=Hl[pr],Hl[pr]=null,pr--)}function pe(e,t){pr++,Hl[pr]=e.current,e.current=t}var kn={},ze=_n(kn),Qe=_n(!1),Kn=kn;function Tr(e,t){var n=e.type.contextTypes;if(!n)return kn;var o=e.stateNode;if(o&&o.__reactInternalMemoizedUnmaskedChildContext===t)return o.__reactInternalMemoizedMaskedChildContext;var i={},s;for(s in n)i[s]=t[s];return o&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Je(e){return e=e.childContextTypes,e!=null}function ps(){ve(Qe),ve(ze)}function hd(e,t,n){if(ze.current!==kn)throw Error(V(168));pe(ze,t),pe(Qe,n)}function Rp(e,t,n){var o=e.stateNode;if(t=t.childContextTypes,typeof o.getChildContext!="function")return n;o=o.getChildContext();for(var i in o)if(!(i in t))throw Error(V(108,Rv(e)||"Unknown",i));return Ce({},n,o)}function ms(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||kn,Kn=ze.current,pe(ze,e),pe(Qe,Qe.current),!0}function vd(e,t,n){var o=e.stateNode;if(!o)throw Error(V(169));n?(e=Rp(e,t,Kn),o.__reactInternalMemoizedMergedChildContext=e,ve(Qe),ve(ze),pe(ze,e)):ve(Qe),pe(Qe,n)}var Ut=null,Hs=!1,el=!1;function Dp(e){Ut===null?Ut=[e]:Ut.push(e)}function Jg(e){Hs=!0,Dp(e)}function On(){if(!el&&Ut!==null){el=!0;var e=0,t=fe;try{var n=Ut;for(fe=1;e>=a,i-=a,qt=1<<32-wt(t)+i|n<P?(M=O,O=null):M=O.sibling;var W=x(h,O,m[P],y);if(W===null){O===null&&(O=M);break}e&&O&&W.alternate===null&&t(h,O),v=s(W,v,P),_===null?E=W:_.sibling=W,_=W,O=M}if(P===m.length)return n(h,O),xe&&Fn(h,P),E;if(O===null){for(;PP?(M=O,O=null):M=O.sibling;var H=x(h,O,W.value,y);if(H===null){O===null&&(O=M);break}e&&O&&H.alternate===null&&t(h,O),v=s(H,v,P),_===null?E=H:_.sibling=H,_=H,O=M}if(W.done)return n(h,O),xe&&Fn(h,P),E;if(O===null){for(;!W.done;P++,W=m.next())W=p(h,W.value,y),W!==null&&(v=s(W,v,P),_===null?E=W:_.sibling=W,_=W);return xe&&Fn(h,P),E}for(O=o(h,O);!W.done;P++,W=m.next())W=b(O,h,P,W.value,y),W!==null&&(e&&W.alternate!==null&&O.delete(W.key===null?P:W.key),v=s(W,v,P),_===null?E=W:_.sibling=W,_=W);return e&&O.forEach(function(te){return t(h,te)}),xe&&Fn(h,P),E}function C(h,v,m,y){if(typeof m=="object"&&m!==null&&m.type===lr&&m.key===null&&(m=m.props.children),typeof m=="object"&&m!==null){switch(m.$$typeof){case mi:e:{for(var E=m.key,_=v;_!==null;){if(_.key===E){if(E=m.type,E===lr){if(_.tag===7){n(h,_.sibling),v=i(_,m.props.children),v.return=h,h=v;break e}}else if(_.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===on&&yd(E)===_.type){n(h,_.sibling),v=i(_,m.props),v.ref=ao(h,_,m),v.return=h,h=v;break e}n(h,_);break}else t(h,_);_=_.sibling}m.type===lr?(v=Vn(m.props.children,h.mode,y,m.key),v.return=h,h=v):(y=qi(m.type,m.key,m.props,null,h.mode,y),y.ref=ao(h,v,m),y.return=h,h=y)}return a(h);case ar:e:{for(_=m.key;v!==null;){if(v.key===_)if(v.tag===4&&v.stateNode.containerInfo===m.containerInfo&&v.stateNode.implementation===m.implementation){n(h,v.sibling),v=i(v,m.children||[]),v.return=h,h=v;break e}else{n(h,v);break}else t(h,v);v=v.sibling}v=ll(m,h.mode,y),v.return=h,h=v}return a(h);case on:return _=m._init,C(h,v,_(m._payload),y)}if(po(m))return g(h,v,m,y);if(no(m))return N(h,v,m,y);Si(h,m)}return typeof m=="string"&&m!==""||typeof m=="number"?(m=""+m,v!==null&&v.tag===6?(n(h,v.sibling),v=i(v,m),v.return=h,h=v):(n(h,v),v=al(m,h.mode,y),v.return=h,h=v),a(h)):n(h,v)}return C}var Ir=Bp(!0),zp=Bp(!1),gs=_n(null),xs=null,vr=null,eu=null;function tu(){eu=vr=xs=null}function nu(e){var t=gs.current;ve(gs),e._currentValue=t}function Gl(e,t,n){for(;e!==null;){var o=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,o!==null&&(o.childLanes|=t)):o!==null&&(o.childLanes&t)!==t&&(o.childLanes|=t),e===n)break;e=e.return}}function Pr(e,t){xs=e,eu=vr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Ge=!0),e.firstContext=null)}function gt(e){var t=e._currentValue;if(eu!==e)if(e={context:e,memoizedValue:t,next:null},vr===null){if(xs===null)throw Error(V(308));vr=e,xs.dependencies={lanes:0,firstContext:e}}else vr=vr.next=e;return t}var Wn=null;function ru(e){Wn===null?Wn=[e]:Wn.push(e)}function Wp(e,t,n,o){var i=t.interleaved;return i===null?(n.next=n,ru(t)):(n.next=i.next,i.next=n),t.interleaved=n,Gt(e,o)}function Gt(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 sn=!1;function ou(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function $p(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 Ht(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function jn(e,t,n){var o=e.updateQueue;if(o===null)return null;if(o=o.shared,ue&2){var i=o.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),o.pending=t,Gt(e,n)}return i=o.interleaved,i===null?(t.next=t,ru(o)):(t.next=i.next,i.next=t),o.interleaved=t,Gt(e,n)}function Mi(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var o=t.lanes;o&=e.pendingLanes,n|=o,t.lanes=n,Uc(e,n)}}function jd(e,t){var n=e.updateQueue,o=e.alternate;if(o!==null&&(o=o.updateQueue,n===o)){var i=null,s=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};s===null?i=s=a:s=s.next=a,n=n.next}while(n!==null);s===null?i=s=t:s=s.next=t}else i=s=t;n={baseState:o.baseState,firstBaseUpdate:i,lastBaseUpdate:s,shared:o.shared,effects:o.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function ys(e,t,n,o){var i=e.updateQueue;sn=!1;var s=i.firstBaseUpdate,a=i.lastBaseUpdate,l=i.shared.pending;if(l!==null){i.shared.pending=null;var u=l,c=u.next;u.next=null,a===null?s=c:a.next=c,a=u;var d=e.alternate;d!==null&&(d=d.updateQueue,l=d.lastBaseUpdate,l!==a&&(l===null?d.firstBaseUpdate=c:l.next=c,d.lastBaseUpdate=u))}if(s!==null){var p=i.baseState;a=0,d=c=u=null,l=s;do{var x=l.lane,b=l.eventTime;if((o&x)===x){d!==null&&(d=d.next={eventTime:b,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var g=e,N=l;switch(x=t,b=n,N.tag){case 1:if(g=N.payload,typeof g=="function"){p=g.call(b,p,x);break e}p=g;break e;case 3:g.flags=g.flags&-65537|128;case 0:if(g=N.payload,x=typeof g=="function"?g.call(b,p,x):g,x==null)break e;p=Ce({},p,x);break e;case 2:sn=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,x=i.effects,x===null?i.effects=[l]:x.push(l))}else b={eventTime:b,lane:x,tag:l.tag,payload:l.payload,callback:l.callback,next:null},d===null?(c=d=b,u=p):d=d.next=b,a|=x;if(l=l.next,l===null){if(l=i.shared.pending,l===null)break;x=l,l=x.next,x.next=null,i.lastBaseUpdate=x,i.shared.pending=null}}while(!0);if(d===null&&(u=p),i.baseState=u,i.firstBaseUpdate=c,i.lastBaseUpdate=d,t=i.shared.interleaved,t!==null){i=t;do a|=i.lane,i=i.next;while(i!==t)}else s===null&&(i.shared.lanes=0);Jn|=a,e.lanes=a,e.memoizedState=p}}function Nd(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var o=nl.transition;nl.transition={};try{e(!1),t()}finally{fe=n,nl.transition=o}}function im(){return xt().memoizedState}function tx(e,t,n){var o=Cn(e);if(n={lane:o,action:n,hasEagerState:!1,eagerState:null,next:null},sm(e))am(t,n);else if(n=Wp(e,t,n,o),n!==null){var i=Ue();St(n,e,o,i),lm(n,t,o)}}function nx(e,t,n){var o=Cn(e),i={lane:o,action:n,hasEagerState:!1,eagerState:null,next:null};if(sm(e))am(t,i);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var a=t.lastRenderedState,l=s(a,n);if(i.hasEagerState=!0,i.eagerState=l,Et(l,a)){var u=t.interleaved;u===null?(i.next=i,ru(t)):(i.next=u.next,u.next=i),t.interleaved=i;return}}catch{}finally{}n=Wp(e,t,i,o),n!==null&&(i=Ue(),St(n,e,o,i),lm(n,t,o))}}function sm(e){var t=e.alternate;return e===Ne||t!==null&&t===Ne}function am(e,t){Co=Ns=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function lm(e,t,n){if(n&4194240){var o=t.lanes;o&=e.pendingLanes,n|=o,t.lanes=n,Uc(e,n)}}var Cs={readContext:gt,useCallback:Le,useContext:Le,useEffect:Le,useImperativeHandle:Le,useInsertionEffect:Le,useLayoutEffect:Le,useMemo:Le,useReducer:Le,useRef:Le,useState:Le,useDebugValue:Le,useDeferredValue:Le,useTransition:Le,useMutableSource:Le,useSyncExternalStore:Le,useId:Le,unstable_isNewReconciler:!1},rx={readContext:gt,useCallback:function(e,t){return At().memoizedState=[e,t===void 0?null:t],e},useContext:gt,useEffect:bd,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,zi(4194308,4,em.bind(null,t,e),n)},useLayoutEffect:function(e,t){return zi(4194308,4,e,t)},useInsertionEffect:function(e,t){return zi(4,2,e,t)},useMemo:function(e,t){var n=At();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var o=At();return t=n!==void 0?n(t):t,o.memoizedState=o.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},o.queue=e,e=e.dispatch=tx.bind(null,Ne,e),[o.memoizedState,e]},useRef:function(e){var t=At();return e={current:e},t.memoizedState=e},useState:Cd,useDebugValue:fu,useDeferredValue:function(e){return At().memoizedState=e},useTransition:function(){var e=Cd(!1),t=e[0];return e=ex.bind(null,e[1]),At().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var o=Ne,i=At();if(xe){if(n===void 0)throw Error(V(407));n=n()}else{if(n=t(),Te===null)throw Error(V(349));Qn&30||Hp(o,t,n)}i.memoizedState=n;var s={value:n,getSnapshot:t};return i.queue=s,bd(Kp.bind(null,o,s,e),[e]),o.flags|=2048,Vo(9,Yp.bind(null,o,s,n,t),void 0,null),n},useId:function(){var e=At(),t=Te.identifierPrefix;if(xe){var n=Vt,o=qt;n=(o&~(1<<32-wt(o)-1)).toString(32)+n,t=":"+t+"R"+n,n=Uo++,0<\/script>",e=e.removeChild(e.firstChild)):typeof o.is=="string"?e=a.createElement(n,{is:o.is}):(e=a.createElement(n),n==="select"&&(a=e,o.multiple?a.multiple=!0:o.size&&(a.size=o.size))):e=a.createElementNS(e,n),e[Rt]=t,e[zo]=o,xm(e,t,!1,!1),t.stateNode=e;e:{switch(a=Tl(n,o),n){case"dialog":he("cancel",e),he("close",e),i=o;break;case"iframe":case"object":case"embed":he("load",e),i=o;break;case"video":case"audio":for(i=0;iFr&&(t.flags|=128,o=!0,lo(s,!1),t.lanes=4194304)}else{if(!o)if(e=js(a),e!==null){if(t.flags|=128,o=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),lo(s,!0),s.tail===null&&s.tailMode==="hidden"&&!a.alternate&&!xe)return Me(t),null}else 2*Se()-s.renderingStartTime>Fr&&n!==1073741824&&(t.flags|=128,o=!0,lo(s,!1),t.lanes=4194304);s.isBackwards?(a.sibling=t.child,t.child=a):(n=s.last,n!==null?n.sibling=a:t.child=a,s.last=a)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=Se(),t.sibling=null,n=je.current,pe(je,o?n&1|2:n&1),t):(Me(t),null);case 22:case 23:return xu(),o=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==o&&(t.flags|=8192),o&&t.mode&1?nt&1073741824&&(Me(t),t.subtreeFlags&6&&(t.flags|=8192)):Me(t),null;case 24:return null;case 25:return null}throw Error(V(156,t.tag))}function dx(e,t){switch(Xc(t),t.tag){case 1:return Je(t.type)&&ps(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Rr(),ve(Qe),ve(ze),au(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return su(t),null;case 13:if(ve(je),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(V(340));Ar()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ve(je),null;case 4:return Rr(),null;case 10:return nu(t.type._context),null;case 22:case 23:return xu(),null;case 24:return null;default:return null}}var Ei=!1,Be=!1,fx=typeof WeakSet=="function"?WeakSet:Set,J=null;function gr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(o){be(e,t,o)}else n.current=null}function oc(e,t,n){try{n()}catch(o){be(e,t,o)}}var Rd=!1;function px(e,t){if(Wl=cs,e=Sp(),Qc(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var o=n.getSelection&&n.getSelection();if(o&&o.rangeCount!==0){n=o.anchorNode;var i=o.anchorOffset,s=o.focusNode;o=o.focusOffset;try{n.nodeType,s.nodeType}catch{n=null;break e}var a=0,l=-1,u=-1,c=0,d=0,p=e,x=null;t:for(;;){for(var b;p!==n||i!==0&&p.nodeType!==3||(l=a+i),p!==s||o!==0&&p.nodeType!==3||(u=a+o),p.nodeType===3&&(a+=p.nodeValue.length),(b=p.firstChild)!==null;)x=p,p=b;for(;;){if(p===e)break t;if(x===n&&++c===i&&(l=a),x===s&&++d===o&&(u=a),(b=p.nextSibling)!==null)break;p=x,x=p.parentNode}p=b}n=l===-1||u===-1?null:{start:l,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for($l={focusedElem:e,selectionRange:n},cs=!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 g=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var N=g.memoizedProps,C=g.memoizedState,h=t.stateNode,v=h.getSnapshotBeforeUpdate(t.elementType===t.type?N:jt(t.type,N),C);h.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var m=t.stateNode.containerInfo;m.nodeType===1?m.textContent="":m.nodeType===9&&m.documentElement&&m.removeChild(m.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(V(163))}}catch(y){be(t,t.return,y)}if(e=t.sibling,e!==null){e.return=t.return,J=e;break}J=t.return}return g=Rd,Rd=!1,g}function bo(e,t,n){var o=t.updateQueue;if(o=o!==null?o.lastEffect:null,o!==null){var i=o=o.next;do{if((i.tag&e)===e){var s=i.destroy;i.destroy=void 0,s!==void 0&&oc(t,n,s)}i=i.next}while(i!==o)}}function Gs(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 o=n.create;n.destroy=o()}n=n.next}while(n!==t)}}function ic(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 Nm(e){var t=e.alternate;t!==null&&(e.alternate=null,Nm(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Rt],delete t[zo],delete t[Vl],delete t[Gg],delete t[Qg])),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 Cm(e){return e.tag===5||e.tag===3||e.tag===4}function Dd(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Cm(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 sc(e,t,n){var o=e.tag;if(o===5||o===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=fs));else if(o!==4&&(e=e.child,e!==null))for(sc(e,t,n),e=e.sibling;e!==null;)sc(e,t,n),e=e.sibling}function ac(e,t,n){var o=e.tag;if(o===5||o===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(o!==4&&(e=e.child,e!==null))for(ac(e,t,n),e=e.sibling;e!==null;)ac(e,t,n),e=e.sibling}var Re=null,Nt=!1;function nn(e,t,n){for(n=n.child;n!==null;)bm(e,t,n),n=n.sibling}function bm(e,t,n){if(Ft&&typeof Ft.onCommitFiberUnmount=="function")try{Ft.onCommitFiberUnmount(Ws,n)}catch{}switch(n.tag){case 5:Be||gr(n,t);case 6:var o=Re,i=Nt;Re=null,nn(e,t,n),Re=o,Nt=i,Re!==null&&(Nt?(e=Re,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Re.removeChild(n.stateNode));break;case 18:Re!==null&&(Nt?(e=Re,n=n.stateNode,e.nodeType===8?Za(e.parentNode,n):e.nodeType===1&&Za(e,n),Do(e)):Za(Re,n.stateNode));break;case 4:o=Re,i=Nt,Re=n.stateNode.containerInfo,Nt=!0,nn(e,t,n),Re=o,Nt=i;break;case 0:case 11:case 14:case 15:if(!Be&&(o=n.updateQueue,o!==null&&(o=o.lastEffect,o!==null))){i=o=o.next;do{var s=i,a=s.destroy;s=s.tag,a!==void 0&&(s&2||s&4)&&oc(n,t,a),i=i.next}while(i!==o)}nn(e,t,n);break;case 1:if(!Be&&(gr(n,t),o=n.stateNode,typeof o.componentWillUnmount=="function"))try{o.props=n.memoizedProps,o.state=n.memoizedState,o.componentWillUnmount()}catch(l){be(n,t,l)}nn(e,t,n);break;case 21:nn(e,t,n);break;case 22:n.mode&1?(Be=(o=Be)||n.memoizedState!==null,nn(e,t,n),Be=o):nn(e,t,n);break;default:nn(e,t,n)}}function Fd(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new fx),t.forEach(function(o){var i=Cx.bind(null,e,o);n.has(o)||(n.add(o),o.then(i,i))})}}function yt(e,t){var n=t.deletions;if(n!==null)for(var o=0;oi&&(i=a),o&=~s}if(o=i,o=Se()-o,o=(120>o?120:480>o?480:1080>o?1080:1920>o?1920:3e3>o?3e3:4320>o?4320:1960*hx(o/1960))-o,10e?16:e,pn===null)var o=!1;else{if(e=pn,pn=null,Ss=0,ue&6)throw Error(V(331));var i=ue;for(ue|=4,J=e.current;J!==null;){var s=J,a=s.child;if(J.flags&16){var l=s.deletions;if(l!==null){for(var u=0;uSe()-vu?qn(e,0):hu|=n),Xe(e,t)}function Tm(e,t){t===0&&(e.mode&1?(t=xi,xi<<=1,!(xi&130023424)&&(xi=4194304)):t=1);var n=Ue();e=Gt(e,t),e!==null&&(ti(e,t,n),Xe(e,n))}function Nx(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Tm(e,n)}function Cx(e,t){var n=0;switch(e.tag){case 13:var o=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:o=e.stateNode;break;default:throw Error(V(314))}o!==null&&o.delete(t),Tm(e,n)}var Am;Am=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Qe.current)Ge=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Ge=!1,cx(e,t,n);Ge=!!(e.flags&131072)}else Ge=!1,xe&&t.flags&1048576&&Fp(t,vs,t.index);switch(t.lanes=0,t.tag){case 2:var o=t.type;Wi(e,t),e=t.pendingProps;var i=Tr(t,ze.current);Pr(t,n),i=cu(null,t,o,e,i,n);var s=uu();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,Je(o)?(s=!0,ms(t)):s=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,ou(t),i.updater=Ks,t.stateNode=i,i._reactInternals=t,Jl(t,o,e,n),t=ec(null,t,o,!0,s,n)):(t.tag=0,xe&&s&&Jc(t),We(null,t,i,n),t=t.child),t;case 16:o=t.elementType;e:{switch(Wi(e,t),e=t.pendingProps,i=o._init,o=i(o._payload),t.type=o,i=t.tag=wx(o),e=jt(o,e),i){case 0:t=Zl(null,t,o,e,n);break e;case 1:t=Td(null,t,o,e,n);break e;case 11:t=_d(null,t,o,e,n);break e;case 14:t=Od(null,t,o,jt(o.type,e),n);break e}throw Error(V(306,o,""))}return t;case 0:return o=t.type,i=t.pendingProps,i=t.elementType===o?i:jt(o,i),Zl(e,t,o,i,n);case 1:return o=t.type,i=t.pendingProps,i=t.elementType===o?i:jt(o,i),Td(e,t,o,i,n);case 3:e:{if(hm(t),e===null)throw Error(V(387));o=t.pendingProps,s=t.memoizedState,i=s.element,$p(e,t),ys(t,o,null,n);var a=t.memoizedState;if(o=a.element,s.isDehydrated)if(s={element:o,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){i=Dr(Error(V(423)),t),t=Ad(e,t,o,n,i);break e}else if(o!==i){i=Dr(Error(V(424)),t),t=Ad(e,t,o,n,i);break e}else for(rt=yn(t.stateNode.containerInfo.firstChild),st=t,xe=!0,Ct=null,n=zp(t,null,o,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Ar(),o===i){t=Qt(e,t,n);break e}We(e,t,o,n)}t=t.child}return t;case 5:return Up(t),e===null&&Kl(t),o=t.type,i=t.pendingProps,s=e!==null?e.memoizedProps:null,a=i.children,Ul(o,i)?a=null:s!==null&&Ul(o,s)&&(t.flags|=32),mm(e,t),We(e,t,a,n),t.child;case 6:return e===null&&Kl(t),null;case 13:return vm(e,t,n);case 4:return iu(t,t.stateNode.containerInfo),o=t.pendingProps,e===null?t.child=Ir(t,null,o,n):We(e,t,o,n),t.child;case 11:return o=t.type,i=t.pendingProps,i=t.elementType===o?i:jt(o,i),_d(e,t,o,i,n);case 7:return We(e,t,t.pendingProps,n),t.child;case 8:return We(e,t,t.pendingProps.children,n),t.child;case 12:return We(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(o=t.type._context,i=t.pendingProps,s=t.memoizedProps,a=i.value,pe(gs,o._currentValue),o._currentValue=a,s!==null)if(Et(s.value,a)){if(s.children===i.children&&!Qe.current){t=Qt(e,t,n);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var l=s.dependencies;if(l!==null){a=s.child;for(var u=l.firstContext;u!==null;){if(u.context===o){if(s.tag===1){u=Ht(-1,n&-n),u.tag=2;var c=s.updateQueue;if(c!==null){c=c.shared;var d=c.pending;d===null?u.next=u:(u.next=d.next,d.next=u),c.pending=u}}s.lanes|=n,u=s.alternate,u!==null&&(u.lanes|=n),Gl(s.return,n,t),l.lanes|=n;break}u=u.next}}else if(s.tag===10)a=s.type===t.type?null:s.child;else if(s.tag===18){if(a=s.return,a===null)throw Error(V(341));a.lanes|=n,l=a.alternate,l!==null&&(l.lanes|=n),Gl(a,n,t),a=s.sibling}else a=s.child;if(a!==null)a.return=s;else for(a=s;a!==null;){if(a===t){a=null;break}if(s=a.sibling,s!==null){s.return=a.return,a=s;break}a=a.return}s=a}We(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,o=t.pendingProps.children,Pr(t,n),i=gt(i),o=o(i),t.flags|=1,We(e,t,o,n),t.child;case 14:return o=t.type,i=jt(o,t.pendingProps),i=jt(o.type,i),Od(e,t,o,i,n);case 15:return fm(e,t,t.type,t.pendingProps,n);case 17:return o=t.type,i=t.pendingProps,i=t.elementType===o?i:jt(o,i),Wi(e,t),t.tag=1,Je(o)?(e=!0,ms(t)):e=!1,Pr(t,n),cm(t,o,i),Jl(t,o,i,n),ec(null,t,o,!0,e,n);case 19:return gm(e,t,n);case 22:return pm(e,t,n)}throw Error(V(156,t.tag))};function Im(e,t){return sp(e,t)}function bx(e,t,n,o){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=o,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ht(e,t,n,o){return new bx(e,t,n,o)}function ju(e){return e=e.prototype,!(!e||!e.isReactComponent)}function wx(e){if(typeof e=="function")return ju(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Bc)return 11;if(e===zc)return 14}return 2}function bn(e,t){var n=e.alternate;return n===null?(n=ht(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 qi(e,t,n,o,i,s){var a=2;if(o=e,typeof e=="function")ju(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case lr:return Vn(n.children,i,s,t);case Mc:a=8,i|=8;break;case Nl:return e=ht(12,n,t,i|2),e.elementType=Nl,e.lanes=s,e;case Cl:return e=ht(13,n,t,i),e.elementType=Cl,e.lanes=s,e;case bl:return e=ht(19,n,t,i),e.elementType=bl,e.lanes=s,e;case Uf:return Js(n,i,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Wf:a=10;break e;case $f:a=9;break e;case Bc:a=11;break e;case zc:a=14;break e;case on:a=16,o=null;break e}throw Error(V(130,e==null?e:typeof e,""))}return t=ht(a,n,t,i),t.elementType=e,t.type=o,t.lanes=s,t}function Vn(e,t,n,o){return e=ht(7,e,o,t),e.lanes=n,e}function Js(e,t,n,o){return e=ht(22,e,o,t),e.elementType=Uf,e.lanes=n,e.stateNode={isHidden:!1},e}function al(e,t,n){return e=ht(6,e,null,t),e.lanes=n,e}function ll(e,t,n){return t=ht(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Sx(e,t,n,o,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=$a(0),this.expirationTimes=$a(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=$a(0),this.identifierPrefix=o,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Nu(e,t,n,o,i,s,a,l,u){return e=new Sx(e,t,n,l,u),t===1?(t=1,s===!0&&(t|=8)):t=0,s=ht(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:o,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},ou(s),e}function kx(e,t,n){var o=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Lm)}catch(e){console.error(e)}}Lm(),Lf.exports=dt;var Tx=Lf.exports,Mm,qd=Tx;Mm=qd.createRoot,qd.hydrateRoot;var Bm={exports:{}},zm={};/** - * @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 ii=R;function Ax(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ix=typeof Object.is=="function"?Object.is:Ax,Rx=ii.useSyncExternalStore,Dx=ii.useRef,Fx=ii.useEffect,Lx=ii.useMemo,Mx=ii.useDebugValue;zm.useSyncExternalStoreWithSelector=function(e,t,n,o,i){var s=Dx(null);if(s.current===null){var a={hasValue:!1,value:null};s.current=a}else a=s.current;s=Lx(function(){function u(b){if(!c){if(c=!0,d=b,b=o(b),i!==void 0&&a.hasValue){var g=a.value;if(i(g,b))return p=g}return p=b}if(g=p,Ix(d,b))return g;var N=o(b);return i!==void 0&&i(g,N)?g:(d=b,p=N)}var c=!1,d,p,x=n===void 0?null:n;return[function(){return u(t())},x===null?void 0:function(){return u(x())}]},[t,n,o,i]);var l=Rx(e,s[0],s[1]);return Fx(function(){a.hasValue=!0,a.value=l},[l]),Mx(l),l};Bm.exports=zm;var Bx=Bm.exports,ot="default"in yl?I:yl,Vd=Symbol.for("react-redux-context"),Hd=typeof globalThis<"u"?globalThis:{};function zx(){if(!ot.createContext)return{};const e=Hd[Vd]??(Hd[Vd]=new Map);let t=e.get(ot.createContext);return t||(t=ot.createContext(null),e.set(ot.createContext,t)),t}var En=zx(),Wx=()=>{throw new Error("uSES not initialized!")};function Su(e=En){return function(){return ot.useContext(e)}}var Wm=Su(),$m=Wx,$x=e=>{$m=e},Ux=(e,t)=>e===t;function qx(e=En){const t=e===En?Wm:Su(e),n=(o,i={})=>{const{equalityFn:s=Ux,devModeChecks:a={}}=typeof i=="function"?{equalityFn:i}:i,{store:l,subscription:u,getServerState:c,stabilityCheck:d,identityFunctionCheck:p}=t();ot.useRef(!0);const x=ot.useCallback({[o.name](g){return o(g)}}[o.name],[o,d,a.stabilityCheck]),b=$m(u.addNestedSub,l.getState,c||l.getState,x,s);return ot.useDebugValue(b),b};return Object.assign(n,{withTypes:()=>n}),n}var tt=qx();function Vx(e){e()}function Hx(){let e=null,t=null;return{clear(){e=null,t=null},notify(){Vx(()=>{let n=e;for(;n;)n.callback(),n=n.next})},get(){const n=[];let o=e;for(;o;)n.push(o),o=o.next;return n},subscribe(n){let o=!0;const i=t={callback:n,next:null,prev:t};return i.prev?i.prev.next=i:e=i,function(){!o||e===null||(o=!1,i.next?i.next.prev=i.prev:t=i.prev,i.prev?i.prev.next=i.next:e=i.next)}}}}var Yd={notify(){},get:()=>[]};function Yx(e,t){let n,o=Yd,i=0,s=!1;function a(N){d();const C=o.subscribe(N);let h=!1;return()=>{h||(h=!0,C(),p())}}function l(){o.notify()}function u(){g.onStateChange&&g.onStateChange()}function c(){return s}function d(){i++,n||(n=e.subscribe(u),o=Hx())}function p(){i--,n&&i===0&&(n(),n=void 0,o.clear(),o=Yd)}function x(){s||(s=!0,d())}function b(){s&&(s=!1,p())}const g={addNestedSub:a,notifyNestedSubs:l,handleChangeWrapper:u,isSubscribed:c,trySubscribe:x,tryUnsubscribe:b,getListeners:()=>o};return g}var Kx=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Gx=typeof navigator<"u"&&navigator.product==="ReactNative",Qx=Kx||Gx?ot.useLayoutEffect:ot.useEffect;function Jx({store:e,context:t,children:n,serverState:o,stabilityCheck:i="once",identityFunctionCheck:s="once"}){const a=ot.useMemo(()=>{const c=Yx(e);return{store:e,subscription:c,getServerState:o?()=>o:void 0,stabilityCheck:i,identityFunctionCheck:s}},[e,o,i,s]),l=ot.useMemo(()=>e.getState(),[e]);Qx(()=>{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 u=t||En;return ot.createElement(u.Provider,{value:a},n)}var Xx=Jx;function Um(e=En){const t=e===En?Wm:Su(e),n=()=>{const{store:o}=t();return o};return Object.assign(n,{withTypes:()=>n}),n}var Zx=Um();function ey(e=En){const t=e===En?Zx:Um(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var Pt=ey();$x(Bx.useSyncExternalStoreWithSelector);function Ie(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 ty=typeof Symbol=="function"&&Symbol.observable||"@@observable",Kd=ty,cl=()=>Math.random().toString(36).substring(7).split("").join("."),ny={INIT:`@@redux/INIT${cl()}`,REPLACE:`@@redux/REPLACE${cl()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${cl()}`},Ps=ny;function ku(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 qm(e,t,n){if(typeof e!="function")throw new Error(Ie(2));if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(Ie(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(Ie(1));return n(qm)(e,t)}let o=e,i=t,s=new Map,a=s,l=0,u=!1;function c(){a===s&&(a=new Map,s.forEach((C,h)=>{a.set(h,C)}))}function d(){if(u)throw new Error(Ie(3));return i}function p(C){if(typeof C!="function")throw new Error(Ie(4));if(u)throw new Error(Ie(5));let h=!0;c();const v=l++;return a.set(v,C),function(){if(h){if(u)throw new Error(Ie(6));h=!1,c(),a.delete(v),s=null}}}function x(C){if(!ku(C))throw new Error(Ie(7));if(typeof C.type>"u")throw new Error(Ie(8));if(typeof C.type!="string")throw new Error(Ie(17));if(u)throw new Error(Ie(9));try{u=!0,i=o(i,C)}finally{u=!1}return(s=a).forEach(v=>{v()}),C}function b(C){if(typeof C!="function")throw new Error(Ie(10));o=C,x({type:Ps.REPLACE})}function g(){const C=p;return{subscribe(h){if(typeof h!="object"||h===null)throw new Error(Ie(11));function v(){const y=h;y.next&&y.next(d())}return v(),{unsubscribe:C(v)}},[Kd](){return this}}}return x({type:Ps.INIT}),{dispatch:x,subscribe:p,getState:d,replaceReducer:b,[Kd]:g}}function ry(e){Object.keys(e).forEach(t=>{const n=e[t];if(typeof n(void 0,{type:Ps.INIT})>"u")throw new Error(Ie(12));if(typeof n(void 0,{type:Ps.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Ie(13))})}function oy(e){const t=Object.keys(e),n={};for(let s=0;s"u")throw l&&l.type,new Error(Ie(14));c[p]=g,u=u||g!==b}return u=u||o.length!==Object.keys(a).length,u?c:a}}function _s(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...o)=>t(n(...o)))}function iy(...e){return t=>(n,o)=>{const i=t(n,o);let s=()=>{throw new Error(Ie(15))};const a={getState:i.getState,dispatch:(u,...c)=>s(u,...c)},l=e.map(u=>u(a));return s=_s(...l)(i.dispatch),{...i,dispatch:s}}}function sy(e){return ku(e)&&"type"in e&&typeof e.type=="string"}var Vm=Symbol.for("immer-nothing"),Gd=Symbol.for("immer-draftable"),ct=Symbol.for("immer-state");function bt(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Lr=Object.getPrototypeOf;function Zn(e){return!!e&&!!e[ct]}function Jt(e){var t;return e?Hm(e)||Array.isArray(e)||!!e[Gd]||!!((t=e.constructor)!=null&&t[Gd])||ra(e)||oa(e):!1}var ay=Object.prototype.constructor.toString();function Hm(e){if(!e||typeof e!="object")return!1;const t=Lr(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)===ay}function Os(e,t){na(e)===0?Reflect.ownKeys(e).forEach(n=>{t(n,e[n],e)}):e.forEach((n,o)=>t(o,n,e))}function na(e){const t=e[ct];return t?t.type_:Array.isArray(e)?1:ra(e)?2:oa(e)?3:0}function fc(e,t){return na(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Ym(e,t,n){const o=na(e);o===2?e.set(t,n):o===3?e.add(n):e[t]=n}function ly(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function ra(e){return e instanceof Map}function oa(e){return e instanceof Set}function Mn(e){return e.copy_||e.base_}function pc(e,t){if(ra(e))return new Map(e);if(oa(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const n=Hm(e);if(t===!0||t==="class_only"&&!n){const o=Object.getOwnPropertyDescriptors(e);delete o[ct];let i=Reflect.ownKeys(o);for(let s=0;s1&&(e.set=e.add=e.clear=e.delete=cy),Object.freeze(e),t&&Object.entries(e).forEach(([n,o])=>Eu(o,!0))),e}function cy(){bt(2)}function ia(e){return Object.isFrozen(e)}var uy={};function er(e){const t=uy[e];return t||bt(0,e),t}var Yo;function Km(){return Yo}function dy(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function Qd(e,t){t&&(er("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function mc(e){hc(e),e.drafts_.forEach(fy),e.drafts_=null}function hc(e){e===Yo&&(Yo=e.parent_)}function Jd(e){return Yo=dy(Yo,e)}function fy(e){const t=e[ct];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function Xd(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[ct].modified_&&(mc(t),bt(4)),Jt(e)&&(e=Ts(t,e),t.parent_||As(t,e)),t.patches_&&er("Patches").generateReplacementPatches_(n[ct].base_,e,t.patches_,t.inversePatches_)):e=Ts(t,n,[]),mc(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==Vm?e:void 0}function Ts(e,t,n){if(ia(t))return t;const o=t[ct];if(!o)return Os(t,(i,s)=>Zd(e,o,t,i,s,n)),t;if(o.scope_!==e)return t;if(!o.modified_)return As(e,o.base_,!0),o.base_;if(!o.finalized_){o.finalized_=!0,o.scope_.unfinalizedDrafts_--;const i=o.copy_;let s=i,a=!1;o.type_===3&&(s=new Set(i),i.clear(),a=!0),Os(s,(l,u)=>Zd(e,o,i,l,u,n,a)),As(e,i,!1),n&&e.patches_&&er("Patches").generatePatches_(o,n,e.patches_,e.inversePatches_)}return o.copy_}function Zd(e,t,n,o,i,s,a){if(Zn(i)){const l=s&&t&&t.type_!==3&&!fc(t.assigned_,o)?s.concat(o):void 0,u=Ts(e,i,l);if(Ym(n,o,u),Zn(u))e.canAutoFreeze_=!1;else return}else a&&n.add(i);if(Jt(i)&&!ia(i)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;Ts(e,i),(!t||!t.scope_.parent_)&&typeof o!="symbol"&&Object.prototype.propertyIsEnumerable.call(n,o)&&As(e,i)}}function As(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Eu(t,n)}function py(e,t){const n=Array.isArray(e),o={type_:n?1:0,scope_:t?t.scope_:Km(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=o,s=Pu;n&&(i=[o],s=Ko);const{revoke:a,proxy:l}=Proxy.revocable(i,s);return o.draft_=l,o.revoke_=a,l}var Pu={get(e,t){if(t===ct)return e;const n=Mn(e);if(!fc(n,t))return my(e,n,t);const o=n[t];return e.finalized_||!Jt(o)?o:o===ul(e.base_,t)?(dl(e),e.copy_[t]=gc(o,e)):o},has(e,t){return t in Mn(e)},ownKeys(e){return Reflect.ownKeys(Mn(e))},set(e,t,n){const o=Gm(Mn(e),t);if(o!=null&&o.set)return o.set.call(e.draft_,n),!0;if(!e.modified_){const i=ul(Mn(e),t),s=i==null?void 0:i[ct];if(s&&s.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(ly(n,i)&&(n!==void 0||fc(e.base_,t)))return!0;dl(e),vc(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 ul(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,dl(e),vc(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=Mn(e),o=Reflect.getOwnPropertyDescriptor(n,t);return o&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:o.enumerable,value:n[t]}},defineProperty(){bt(11)},getPrototypeOf(e){return Lr(e.base_)},setPrototypeOf(){bt(12)}},Ko={};Os(Pu,(e,t)=>{Ko[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});Ko.deleteProperty=function(e,t){return Ko.set.call(this,e,t,void 0)};Ko.set=function(e,t,n){return Pu.set.call(this,e[0],t,n,e[0])};function ul(e,t){const n=e[ct];return(n?Mn(n):e)[t]}function my(e,t,n){var i;const o=Gm(t,n);return o?"value"in o?o.value:(i=o.get)==null?void 0:i.call(e.draft_):void 0}function Gm(e,t){if(!(t in e))return;let n=Lr(e);for(;n;){const o=Object.getOwnPropertyDescriptor(n,t);if(o)return o;n=Lr(n)}}function vc(e){e.modified_||(e.modified_=!0,e.parent_&&vc(e.parent_))}function dl(e){e.copy_||(e.copy_=pc(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var hy=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,n,o)=>{if(typeof t=="function"&&typeof n!="function"){const s=n;n=t;const a=this;return function(u=s,...c){return a.produce(u,d=>n.call(this,d,...c))}}typeof n!="function"&&bt(6),o!==void 0&&typeof o!="function"&&bt(7);let i;if(Jt(t)){const s=Jd(this),a=gc(t,void 0);let l=!0;try{i=n(a),l=!1}finally{l?mc(s):hc(s)}return Qd(s,o),Xd(i,s)}else if(!t||typeof t!="object"){if(i=n(t),i===void 0&&(i=t),i===Vm&&(i=void 0),this.autoFreeze_&&Eu(i,!0),o){const s=[],a=[];er("Patches").generateReplacementPatches_(t,i,s,a),o(s,a)}return i}else bt(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(a,...l)=>this.produceWithPatches(a,u=>t(u,...l));let o,i;return[this.produce(t,n,(a,l)=>{o=a,i=l}),o,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){Jt(e)||bt(8),Zn(e)&&(e=vy(e));const t=Jd(this),n=gc(e,void 0);return n[ct].isManual_=!0,hc(t),n}finishDraft(e,t){const n=e&&e[ct];(!n||!n.isManual_)&&bt(9);const{scope_:o}=n;return Qd(o,t),Xd(void 0,o)}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 o=er("Patches").applyPatches_;return Zn(e)?o(e,t):this.produce(e,i=>o(i,t))}};function gc(e,t){const n=ra(e)?er("MapSet").proxyMap_(e,t):oa(e)?er("MapSet").proxySet_(e,t):py(e,t);return(t?t.scope_:Km()).drafts_.push(n),n}function vy(e){return Zn(e)||bt(10,e),Qm(e)}function Qm(e){if(!Jt(e)||ia(e))return e;const t=e[ct];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=pc(e,t.scope_.immer_.useStrictShallowCopy_)}else n=pc(e,!0);return Os(n,(o,i)=>{Ym(n,o,Qm(i))}),t&&(t.finalized_=!1),n}var ut=new hy,Jm=ut.produce;ut.produceWithPatches.bind(ut);ut.setAutoFreeze.bind(ut);ut.setUseStrictShallowCopy.bind(ut);ut.applyPatches.bind(ut);ut.createDraft.bind(ut);ut.finishDraft.bind(ut);function Xm(e){return({dispatch:n,getState:o})=>i=>s=>typeof s=="function"?s(n,o,e):i(s)}var gy=Xm(),xy=Xm,yy=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?_s:_s.apply(null,arguments)},jy=e=>e&&typeof e.match=="function";function ko(e,t){function n(...o){if(t){let i=t(...o);if(!i)throw new Error(kt(0));return{type:e,payload:i.payload,..."meta"in i&&{meta:i.meta},..."error"in i&&{error:i.error}}}return{type:e,payload:o[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=o=>sy(o)&&o.type===e,n}var Zm=class vo extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,vo.prototype)}static get[Symbol.species](){return vo}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new vo(...t[0].concat(this)):new vo(...t.concat(this))}};function ef(e){return Jt(e)?Jm(e,()=>{}):e}function tf(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(kt(10));const o=n.insert(t,e);return e.set(t,o),o}function Ny(e){return typeof e=="boolean"}var Cy=()=>function(t){const{thunk:n=!0,immutableCheck:o=!0,serializableCheck:i=!0,actionCreatorCheck:s=!0}=t??{};let a=new Zm;return n&&(Ny(n)?a.push(gy):a.push(xy(n.extraArgument))),a},by="RTK_autoBatch",eh=e=>t=>{setTimeout(t,e)},wy=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:eh(10),Sy=(e={type:"raf"})=>t=>(...n)=>{const o=t(...n);let i=!0,s=!1,a=!1;const l=new Set,u=e.type==="tick"?queueMicrotask:e.type==="raf"?wy:e.type==="callback"?e.queueNotification:eh(e.timeout),c=()=>{a=!1,s&&(s=!1,l.forEach(d=>d()))};return Object.assign({},o,{subscribe(d){const p=()=>i&&d(),x=o.subscribe(p);return l.add(d),()=>{x(),l.delete(d)}},dispatch(d){var p;try{return i=!((p=d==null?void 0:d.meta)!=null&&p[by]),s=!i,s&&(a||(a=!0,u(c))),o.dispatch(d)}finally{i=!0}}})},ky=e=>function(n){const{autoBatch:o=!0}=n??{};let i=new Zm(e);return o&&i.push(Sy(typeof o=="object"?o:void 0)),i};function Ey(e){const t=Cy(),{reducer:n=void 0,middleware:o,devTools:i=!0,preloadedState:s=void 0,enhancers:a=void 0}=e||{};let l;if(typeof n=="function")l=n;else if(ku(n))l=oy(n);else throw new Error(kt(1));let u;typeof o=="function"?u=o(t):u=t();let c=_s;i&&(c=yy({trace:!1,...typeof i=="object"&&i}));const d=iy(...u),p=ky(d);let x=typeof a=="function"?a(p):p();const b=c(...x);return qm(l,s,b)}function th(e){const t={},n=[];let o;const i={addCase(s,a){const l=typeof s=="string"?s:s.type;if(!l)throw new Error(kt(28));if(l in t)throw new Error(kt(29));return t[l]=a,i},addMatcher(s,a){return n.push({matcher:s,reducer:a}),i},addDefaultCase(s){return o=s,i}};return e(i),[t,n,o]}function Py(e){return typeof e=="function"}function _y(e,t){let[n,o,i]=th(t),s;if(Py(e))s=()=>ef(e());else{const l=ef(e);s=()=>l}function a(l=s(),u){let c=[n[u.type],...o.filter(({matcher:d})=>d(u)).map(({reducer:d})=>d)];return c.filter(d=>!!d).length===0&&(c=[i]),c.reduce((d,p)=>{if(p)if(Zn(d)){const b=p(d,u);return b===void 0?d:b}else{if(Jt(d))return Jm(d,x=>p(x,u));{const x=p(d,u);if(x===void 0){if(d===null)return d;throw new Error(kt(9))}return x}}return d},l)}return a.getInitialState=s,a}var Oy=(e,t)=>jy(e)?e.match(t):e(t);function Ty(...e){return t=>e.some(n=>Oy(n,t))}var Ay="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Iy=(e=21)=>{let t="",n=e;for(;n--;)t+=Ay[Math.random()*64|0];return t},Ry=["name","message","stack","code"],fl=class{constructor(e,t){Fa(this,"_type");this.payload=e,this.meta=t}},nf=class{constructor(e,t){Fa(this,"_type");this.payload=e,this.meta=t}},Dy=e=>{if(typeof e=="object"&&e!==null){const t={};for(const n of Ry)typeof e[n]=="string"&&(t[n]=e[n]);return t}return{message:String(e)}},Mt=(()=>{function e(t,n,o){const i=ko(t+"/fulfilled",(u,c,d,p)=>({payload:u,meta:{...p||{},arg:d,requestId:c,requestStatus:"fulfilled"}})),s=ko(t+"/pending",(u,c,d)=>({payload:void 0,meta:{...d||{},arg:c,requestId:u,requestStatus:"pending"}})),a=ko(t+"/rejected",(u,c,d,p,x)=>({payload:p,error:(o&&o.serializeError||Dy)(u||"Rejected"),meta:{...x||{},arg:d,requestId:c,rejectedWithValue:!!p,requestStatus:"rejected",aborted:(u==null?void 0:u.name)==="AbortError",condition:(u==null?void 0:u.name)==="ConditionError"}}));function l(u){return(c,d,p)=>{const x=o!=null&&o.idGenerator?o.idGenerator(u):Iy(),b=new AbortController;let g,N;function C(v){N=v,b.abort()}const h=async function(){var y,E;let v;try{let _=(y=o==null?void 0:o.condition)==null?void 0:y.call(o,u,{getState:d,extra:p});if(Ly(_)&&(_=await _),_===!1||b.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const O=new Promise((P,M)=>{g=()=>{M({name:"AbortError",message:N||"Aborted"})},b.signal.addEventListener("abort",g)});c(s(x,u,(E=o==null?void 0:o.getPendingMeta)==null?void 0:E.call(o,{requestId:x,arg:u},{getState:d,extra:p}))),v=await Promise.race([O,Promise.resolve(n(u,{dispatch:c,getState:d,extra:p,requestId:x,signal:b.signal,abort:C,rejectWithValue:(P,M)=>new fl(P,M),fulfillWithValue:(P,M)=>new nf(P,M)})).then(P=>{if(P instanceof fl)throw P;return P instanceof nf?i(P.payload,x,u,P.meta):i(P,x,u)})])}catch(_){v=_ instanceof fl?a(null,x,u,_.payload,_.meta):a(_,x,u)}finally{g&&b.signal.removeEventListener("abort",g)}return o&&!o.dispatchConditionRejection&&a.match(v)&&v.meta.condition||c(v),v}();return Object.assign(h,{abort:C,requestId:x,arg:u,unwrap(){return h.then(Fy)}})}}return Object.assign(l,{pending:s,rejected:a,fulfilled:i,settled:Ty(a,i),typePrefix:t})}return e.withTypes=()=>e,e})();function Fy(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function Ly(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var My=Symbol.for("rtk-slice-createasyncthunk");function By(e,t){return`${e}/${t}`}function zy({creators:e}={}){var n;const t=(n=e==null?void 0:e.asyncThunk)==null?void 0:n[My];return function(i){const{name:s,reducerPath:a=s}=i;if(!s)throw new Error(kt(11));typeof process<"u";const l=(typeof i.reducers=="function"?i.reducers($y()):i.reducers)||{},u=Object.keys(l),c={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},d={addCase(m,y){const E=typeof m=="string"?m:m.type;if(!E)throw new Error(kt(12));if(E in c.sliceCaseReducersByType)throw new Error(kt(13));return c.sliceCaseReducersByType[E]=y,d},addMatcher(m,y){return c.sliceMatchers.push({matcher:m,reducer:y}),d},exposeAction(m,y){return c.actionCreators[m]=y,d},exposeCaseReducer(m,y){return c.sliceCaseReducersByName[m]=y,d}};u.forEach(m=>{const y=l[m],E={reducerName:m,type:By(s,m),createNotation:typeof i.reducers=="function"};qy(y)?Hy(E,y,d,t):Uy(E,y,d)});function p(){const[m={},y=[],E=void 0]=typeof i.extraReducers=="function"?th(i.extraReducers):[i.extraReducers],_={...m,...c.sliceCaseReducersByType};return _y(i.initialState,O=>{for(let P in _)O.addCase(P,_[P]);for(let P of c.sliceMatchers)O.addMatcher(P.matcher,P.reducer);for(let P of y)O.addMatcher(P.matcher,P.reducer);E&&O.addDefaultCase(E)})}const x=m=>m,b=new Map;let g;function N(m,y){return g||(g=p()),g(m,y)}function C(){return g||(g=p()),g.getInitialState()}function h(m,y=!1){function E(O){let P=O[m];return typeof P>"u"&&y&&(P=C()),P}function _(O=x){const P=tf(b,y,{insert:()=>new WeakMap});return tf(P,O,{insert:()=>{const M={};for(const[W,H]of Object.entries(i.selectors??{}))M[W]=Wy(H,O,C,y);return M}})}return{reducerPath:m,getSelectors:_,get selectors(){return _(E)},selectSlice:E}}const v={name:s,reducer:N,actions:c.actionCreators,caseReducers:c.sliceCaseReducersByName,getInitialState:C,...h(a),injectInto(m,{reducerPath:y,...E}={}){const _=y??a;return m.inject({reducerPath:_,reducer:N},E),{...v,...h(_,!0)}}};return v}}function Wy(e,t,n,o){function i(s,...a){let l=t(s);return typeof l>"u"&&o&&(l=n()),e(l,...a)}return i.unwrapped=e,i}var _u=zy();function $y(){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 Uy({type:e,reducerName:t,createNotation:n},o,i){let s,a;if("reducer"in o){if(n&&!Vy(o))throw new Error(kt(17));s=o.reducer,a=o.prepare}else s=o;i.addCase(e,s).exposeCaseReducer(t,s).exposeAction(t,a?ko(e,a):ko(e))}function qy(e){return e._reducerDefinitionType==="asyncThunk"}function Vy(e){return e._reducerDefinitionType==="reducerWithPrepare"}function Hy({type:e,reducerName:t},n,o,i){if(!i)throw new Error(kt(18));const{payloadCreator:s,fulfilled:a,pending:l,rejected:u,settled:c,options:d}=n,p=i(e,s,d);o.exposeAction(t,p),a&&o.addCase(p.fulfilled,a),l&&o.addCase(p.pending,l),u&&o.addCase(p.rejected,u),c&&o.addMatcher(p.settled,c),o.exposeCaseReducer(t,{fulfilled:a||Oi,pending:l||Oi,rejected:u||Oi,settled:c||Oi})}function Oi(){}function kt(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 nh(e,t){return function(){return e.apply(t,arguments)}}const{toString:Yy}=Object.prototype,{getPrototypeOf:Ou}=Object,sa=(e=>t=>{const n=Yy.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),_t=e=>(e=e.toLowerCase(),t=>sa(t)===e),aa=e=>t=>typeof t===e,{isArray:$r}=Array,Go=aa("undefined");function Ky(e){return e!==null&&!Go(e)&&e.constructor!==null&&!Go(e.constructor)&&at(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const rh=_t("ArrayBuffer");function Gy(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&rh(e.buffer),t}const Qy=aa("string"),at=aa("function"),oh=aa("number"),la=e=>e!==null&&typeof e=="object",Jy=e=>e===!0||e===!1,Vi=e=>{if(sa(e)!=="object")return!1;const t=Ou(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Xy=_t("Date"),Zy=_t("File"),ej=_t("Blob"),tj=_t("FileList"),nj=e=>la(e)&&at(e.pipe),rj=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||at(e.append)&&((t=sa(e))==="formdata"||t==="object"&&at(e.toString)&&e.toString()==="[object FormData]"))},oj=_t("URLSearchParams"),[ij,sj,aj,lj]=["ReadableStream","Request","Response","Headers"].map(_t),cj=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function si(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let o,i;if(typeof e!="object"&&(e=[e]),$r(e))for(o=0,i=e.length;o0;)if(i=n[o],t===i.toLowerCase())return i;return null}const Un=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,sh=e=>!Go(e)&&e!==Un;function xc(){const{caseless:e}=sh(this)&&this||{},t={},n=(o,i)=>{const s=e&&ih(t,i)||i;Vi(t[s])&&Vi(o)?t[s]=xc(t[s],o):Vi(o)?t[s]=xc({},o):$r(o)?t[s]=o.slice():t[s]=o};for(let o=0,i=arguments.length;o(si(t,(i,s)=>{n&&at(i)?e[s]=nh(i,n):e[s]=i},{allOwnKeys:o}),e),dj=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),fj=(e,t,n,o)=>{e.prototype=Object.create(t.prototype,o),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},pj=(e,t,n,o)=>{let i,s,a;const l={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),s=i.length;s-- >0;)a=i[s],(!o||o(a,e,t))&&!l[a]&&(t[a]=e[a],l[a]=!0);e=n!==!1&&Ou(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},mj=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const o=e.indexOf(t,n);return o!==-1&&o===n},hj=e=>{if(!e)return null;if($r(e))return e;let t=e.length;if(!oh(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},vj=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Ou(Uint8Array)),gj=(e,t)=>{const o=(e&&e[Symbol.iterator]).call(e);let i;for(;(i=o.next())&&!i.done;){const s=i.value;t.call(e,s[0],s[1])}},xj=(e,t)=>{let n;const o=[];for(;(n=e.exec(t))!==null;)o.push(n);return o},yj=_t("HTMLFormElement"),jj=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,o,i){return o.toUpperCase()+i}),rf=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Nj=_t("RegExp"),ah=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),o={};si(n,(i,s)=>{let a;(a=t(i,s,e))!==!1&&(o[s]=a||i)}),Object.defineProperties(e,o)},Cj=e=>{ah(e,(t,n)=>{if(at(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const o=e[n];if(at(o)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},bj=(e,t)=>{const n={},o=i=>{i.forEach(s=>{n[s]=!0})};return $r(e)?o(e):o(String(e).split(t)),n},wj=()=>{},Sj=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,pl="abcdefghijklmnopqrstuvwxyz",of="0123456789",lh={DIGIT:of,ALPHA:pl,ALPHA_DIGIT:pl+pl.toUpperCase()+of},kj=(e=16,t=lh.ALPHA_DIGIT)=>{let n="";const{length:o}=t;for(;e--;)n+=t[Math.random()*o|0];return n};function Ej(e){return!!(e&&at(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Pj=e=>{const t=new Array(10),n=(o,i)=>{if(la(o)){if(t.indexOf(o)>=0)return;if(!("toJSON"in o)){t[i]=o;const s=$r(o)?[]:{};return si(o,(a,l)=>{const u=n(a,i+1);!Go(u)&&(s[l]=u)}),t[i]=void 0,s}}return o};return n(e,0)},_j=_t("AsyncFunction"),Oj=e=>e&&(la(e)||at(e))&&at(e.then)&&at(e.catch),ch=((e,t)=>e?setImmediate:t?((n,o)=>(Un.addEventListener("message",({source:i,data:s})=>{i===Un&&s===n&&o.length&&o.shift()()},!1),i=>{o.push(i),Un.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",at(Un.postMessage)),Tj=typeof queueMicrotask<"u"?queueMicrotask.bind(Un):typeof process<"u"&&process.nextTick||ch,z={isArray:$r,isArrayBuffer:rh,isBuffer:Ky,isFormData:rj,isArrayBufferView:Gy,isString:Qy,isNumber:oh,isBoolean:Jy,isObject:la,isPlainObject:Vi,isReadableStream:ij,isRequest:sj,isResponse:aj,isHeaders:lj,isUndefined:Go,isDate:Xy,isFile:Zy,isBlob:ej,isRegExp:Nj,isFunction:at,isStream:nj,isURLSearchParams:oj,isTypedArray:vj,isFileList:tj,forEach:si,merge:xc,extend:uj,trim:cj,stripBOM:dj,inherits:fj,toFlatObject:pj,kindOf:sa,kindOfTest:_t,endsWith:mj,toArray:hj,forEachEntry:gj,matchAll:xj,isHTMLForm:yj,hasOwnProperty:rf,hasOwnProp:rf,reduceDescriptors:ah,freezeMethods:Cj,toObjectSet:bj,toCamelCase:jj,noop:wj,toFiniteNumber:Sj,findKey:ih,global:Un,isContextDefined:sh,ALPHABET:lh,generateString:kj,isSpecCompliantForm:Ej,toJSONObject:Pj,isAsyncFn:_j,isThenable:Oj,setImmediate:ch,asap:Tj};function oe(e,t,n,o,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),o&&(this.request=o),i&&(this.response=i,this.status=i.status?i.status:null)}z.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:z.toJSONObject(this.config),code:this.code,status:this.status}}});const uh=oe.prototype,dh={};["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=>{dh[e]={value:e}});Object.defineProperties(oe,dh);Object.defineProperty(uh,"isAxiosError",{value:!0});oe.from=(e,t,n,o,i,s)=>{const a=Object.create(uh);return z.toFlatObject(e,a,function(u){return u!==Error.prototype},l=>l!=="isAxiosError"),oe.call(a,e.message,t,n,o,i),a.cause=e,a.name=e.name,s&&Object.assign(a,s),a};const Aj=null;function yc(e){return z.isPlainObject(e)||z.isArray(e)}function fh(e){return z.endsWith(e,"[]")?e.slice(0,-2):e}function sf(e,t,n){return e?e.concat(t).map(function(i,s){return i=fh(i),!n&&s?"["+i+"]":i}).join(n?".":""):t}function Ij(e){return z.isArray(e)&&!e.some(yc)}const Rj=z.toFlatObject(z,{},null,function(t){return/^is[A-Z]/.test(t)});function ca(e,t,n){if(!z.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=z.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(N,C){return!z.isUndefined(C[N])});const o=n.metaTokens,i=n.visitor||d,s=n.dots,a=n.indexes,u=(n.Blob||typeof Blob<"u"&&Blob)&&z.isSpecCompliantForm(t);if(!z.isFunction(i))throw new TypeError("visitor must be a function");function c(g){if(g===null)return"";if(z.isDate(g))return g.toISOString();if(!u&&z.isBlob(g))throw new oe("Blob is not supported. Use a Buffer instead.");return z.isArrayBuffer(g)||z.isTypedArray(g)?u&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function d(g,N,C){let h=g;if(g&&!C&&typeof g=="object"){if(z.endsWith(N,"{}"))N=o?N:N.slice(0,-2),g=JSON.stringify(g);else if(z.isArray(g)&&Ij(g)||(z.isFileList(g)||z.endsWith(N,"[]"))&&(h=z.toArray(g)))return N=fh(N),h.forEach(function(m,y){!(z.isUndefined(m)||m===null)&&t.append(a===!0?sf([N],y,s):a===null?N:N+"[]",c(m))}),!1}return yc(g)?!0:(t.append(sf(C,N,s),c(g)),!1)}const p=[],x=Object.assign(Rj,{defaultVisitor:d,convertValue:c,isVisitable:yc});function b(g,N){if(!z.isUndefined(g)){if(p.indexOf(g)!==-1)throw Error("Circular reference detected in "+N.join("."));p.push(g),z.forEach(g,function(h,v){(!(z.isUndefined(h)||h===null)&&i.call(t,h,z.isString(v)?v.trim():v,N,x))===!0&&b(h,N?N.concat(v):[v])}),p.pop()}}if(!z.isObject(e))throw new TypeError("data must be an object");return b(e),t}function af(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(o){return t[o]})}function Tu(e,t){this._pairs=[],e&&ca(e,this,t)}const ph=Tu.prototype;ph.append=function(t,n){this._pairs.push([t,n])};ph.toString=function(t){const n=t?function(o){return t.call(this,o,af)}:af;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function Dj(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function mh(e,t,n){if(!t)return e;const o=n&&n.encode||Dj,i=n&&n.serialize;let s;if(i?s=i(t,n):s=z.isURLSearchParams(t)?t.toString():new Tu(t,n).toString(o),s){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}class lf{constructor(){this.handlers=[]}use(t,n,o){return this.handlers.push({fulfilled:t,rejected:n,synchronous:o?o.synchronous:!1,runWhen:o?o.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){z.forEach(this.handlers,function(o){o!==null&&t(o)})}}const hh={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Fj=typeof URLSearchParams<"u"?URLSearchParams:Tu,Lj=typeof FormData<"u"?FormData:null,Mj=typeof Blob<"u"?Blob:null,Bj={isBrowser:!0,classes:{URLSearchParams:Fj,FormData:Lj,Blob:Mj},protocols:["http","https","file","blob","url","data"]},Au=typeof window<"u"&&typeof document<"u",jc=typeof navigator=="object"&&navigator||void 0,zj=Au&&(!jc||["ReactNative","NativeScript","NS"].indexOf(jc.product)<0),Wj=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",$j=Au&&window.location.href||"http://localhost",Uj=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Au,hasStandardBrowserEnv:zj,hasStandardBrowserWebWorkerEnv:Wj,navigator:jc,origin:$j},Symbol.toStringTag,{value:"Module"})),Ze={...Uj,...Bj};function qj(e,t){return ca(e,new Ze.classes.URLSearchParams,Object.assign({visitor:function(n,o,i,s){return Ze.isNode&&z.isBuffer(n)?(this.append(o,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},t))}function Vj(e){return z.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Hj(e){const t={},n=Object.keys(e);let o;const i=n.length;let s;for(o=0;o=n.length;return a=!a&&z.isArray(i)?i.length:a,u?(z.hasOwnProp(i,a)?i[a]=[i[a],o]:i[a]=o,!l):((!i[a]||!z.isObject(i[a]))&&(i[a]=[]),t(n,o,i[a],s)&&z.isArray(i[a])&&(i[a]=Hj(i[a])),!l)}if(z.isFormData(e)&&z.isFunction(e.entries)){const n={};return z.forEachEntry(e,(o,i)=>{t(Vj(o),i,n,0)}),n}return null}function Yj(e,t,n){if(z.isString(e))try{return(t||JSON.parse)(e),z.trim(e)}catch(o){if(o.name!=="SyntaxError")throw o}return(n||JSON.stringify)(e)}const ai={transitional:hh,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const o=n.getContentType()||"",i=o.indexOf("application/json")>-1,s=z.isObject(t);if(s&&z.isHTMLForm(t)&&(t=new FormData(t)),z.isFormData(t))return i?JSON.stringify(vh(t)):t;if(z.isArrayBuffer(t)||z.isBuffer(t)||z.isStream(t)||z.isFile(t)||z.isBlob(t)||z.isReadableStream(t))return t;if(z.isArrayBufferView(t))return t.buffer;if(z.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(s){if(o.indexOf("application/x-www-form-urlencoded")>-1)return qj(t,this.formSerializer).toString();if((l=z.isFileList(t))||o.indexOf("multipart/form-data")>-1){const u=this.env&&this.env.FormData;return ca(l?{"files[]":t}:t,u&&new u,this.formSerializer)}}return s||i?(n.setContentType("application/json",!1),Yj(t)):t}],transformResponse:[function(t){const n=this.transitional||ai.transitional,o=n&&n.forcedJSONParsing,i=this.responseType==="json";if(z.isResponse(t)||z.isReadableStream(t))return t;if(t&&z.isString(t)&&(o&&!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:Ze.classes.FormData,Blob:Ze.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};z.forEach(["delete","get","head","post","put","patch"],e=>{ai.headers[e]={}});const Kj=z.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"]),Gj=e=>{const t={};let n,o,i;return e&&e.split(` -`).forEach(function(a){i=a.indexOf(":"),n=a.substring(0,i).trim().toLowerCase(),o=a.substring(i+1).trim(),!(!n||t[n]&&Kj[n])&&(n==="set-cookie"?t[n]?t[n].push(o):t[n]=[o]:t[n]=t[n]?t[n]+", "+o:o)}),t},cf=Symbol("internals");function uo(e){return e&&String(e).trim().toLowerCase()}function Hi(e){return e===!1||e==null?e:z.isArray(e)?e.map(Hi):String(e)}function Qj(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let o;for(;o=n.exec(e);)t[o[1]]=o[2];return t}const Jj=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function ml(e,t,n,o,i){if(z.isFunction(o))return o.call(this,t,n);if(i&&(t=n),!!z.isString(t)){if(z.isString(o))return t.indexOf(o)!==-1;if(z.isRegExp(o))return o.test(t)}}function Xj(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,o)=>n.toUpperCase()+o)}function Zj(e,t){const n=z.toCamelCase(" "+t);["get","set","has"].forEach(o=>{Object.defineProperty(e,o+n,{value:function(i,s,a){return this[o].call(this,t,i,s,a)},configurable:!0})})}class et{constructor(t){t&&this.set(t)}set(t,n,o){const i=this;function s(l,u,c){const d=uo(u);if(!d)throw new Error("header name must be a non-empty string");const p=z.findKey(i,d);(!p||i[p]===void 0||c===!0||c===void 0&&i[p]!==!1)&&(i[p||u]=Hi(l))}const a=(l,u)=>z.forEach(l,(c,d)=>s(c,d,u));if(z.isPlainObject(t)||t instanceof this.constructor)a(t,n);else if(z.isString(t)&&(t=t.trim())&&!Jj(t))a(Gj(t),n);else if(z.isHeaders(t))for(const[l,u]of t.entries())s(u,l,o);else t!=null&&s(n,t,o);return this}get(t,n){if(t=uo(t),t){const o=z.findKey(this,t);if(o){const i=this[o];if(!n)return i;if(n===!0)return Qj(i);if(z.isFunction(n))return n.call(this,i,o);if(z.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=uo(t),t){const o=z.findKey(this,t);return!!(o&&this[o]!==void 0&&(!n||ml(this,this[o],o,n)))}return!1}delete(t,n){const o=this;let i=!1;function s(a){if(a=uo(a),a){const l=z.findKey(o,a);l&&(!n||ml(o,o[l],l,n))&&(delete o[l],i=!0)}}return z.isArray(t)?t.forEach(s):s(t),i}clear(t){const n=Object.keys(this);let o=n.length,i=!1;for(;o--;){const s=n[o];(!t||ml(this,this[s],s,t,!0))&&(delete this[s],i=!0)}return i}normalize(t){const n=this,o={};return z.forEach(this,(i,s)=>{const a=z.findKey(o,s);if(a){n[a]=Hi(i),delete n[s];return}const l=t?Xj(s):String(s).trim();l!==s&&delete n[s],n[l]=Hi(i),o[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return z.forEach(this,(o,i)=>{o!=null&&o!==!1&&(n[i]=t&&z.isArray(o)?o.join(", "):o)}),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 o=new this(t);return n.forEach(i=>o.set(i)),o}static accessor(t){const o=(this[cf]=this[cf]={accessors:{}}).accessors,i=this.prototype;function s(a){const l=uo(a);o[l]||(Zj(i,a),o[l]=!0)}return z.isArray(t)?t.forEach(s):s(t),this}}et.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);z.reduceDescriptors(et.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(o){this[n]=o}}});z.freezeMethods(et);function hl(e,t){const n=this||ai,o=t||n,i=et.from(o.headers);let s=o.data;return z.forEach(e,function(l){s=l.call(n,s,i.normalize(),t?t.status:void 0)}),i.normalize(),s}function gh(e){return!!(e&&e.__CANCEL__)}function Ur(e,t,n){oe.call(this,e??"canceled",oe.ERR_CANCELED,t,n),this.name="CanceledError"}z.inherits(Ur,oe,{__CANCEL__:!0});function xh(e,t,n){const o=n.config.validateStatus;!n.status||!o||o(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 e1(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function t1(e,t){e=e||10;const n=new Array(e),o=new Array(e);let i=0,s=0,a;return t=t!==void 0?t:1e3,function(u){const c=Date.now(),d=o[s];a||(a=c),n[i]=u,o[i]=c;let p=s,x=0;for(;p!==i;)x+=n[p++],p=p%e;if(i=(i+1)%e,i===s&&(s=(s+1)%e),c-a{n=d,i=null,s&&(clearTimeout(s),s=null),e.apply(null,c)};return[(...c)=>{const d=Date.now(),p=d-n;p>=o?a(c,d):(i=c,s||(s=setTimeout(()=>{s=null,a(i)},o-p)))},()=>i&&a(i)]}const Is=(e,t,n=3)=>{let o=0;const i=t1(50,250);return n1(s=>{const a=s.loaded,l=s.lengthComputable?s.total:void 0,u=a-o,c=i(u),d=a<=l;o=a;const p={loaded:a,total:l,progress:l?a/l:void 0,bytes:u,rate:c||void 0,estimated:c&&l&&d?(l-a)/c:void 0,event:s,lengthComputable:l!=null,[t?"download":"upload"]:!0};e(p)},n)},uf=(e,t)=>{const n=e!=null;return[o=>t[0]({lengthComputable:n,total:e,loaded:o}),t[1]]},df=e=>(...t)=>z.asap(()=>e(...t)),r1=Ze.hasStandardBrowserEnv?function(){const t=Ze.navigator&&/(msie|trident)/i.test(Ze.navigator.userAgent),n=document.createElement("a");let o;function i(s){let a=s;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 o=i(window.location.href),function(a){const l=z.isString(a)?i(a):a;return l.protocol===o.protocol&&l.host===o.host}}():function(){return function(){return!0}}(),o1=Ze.hasStandardBrowserEnv?{write(e,t,n,o,i,s){const a=[e+"="+encodeURIComponent(t)];z.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),z.isString(o)&&a.push("path="+o),z.isString(i)&&a.push("domain="+i),s===!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 i1(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function s1(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function yh(e,t){return e&&!i1(t)?s1(e,t):t}const ff=e=>e instanceof et?{...e}:e;function tr(e,t){t=t||{};const n={};function o(c,d,p){return z.isPlainObject(c)&&z.isPlainObject(d)?z.merge.call({caseless:p},c,d):z.isPlainObject(d)?z.merge({},d):z.isArray(d)?d.slice():d}function i(c,d,p){if(z.isUndefined(d)){if(!z.isUndefined(c))return o(void 0,c,p)}else return o(c,d,p)}function s(c,d){if(!z.isUndefined(d))return o(void 0,d)}function a(c,d){if(z.isUndefined(d)){if(!z.isUndefined(c))return o(void 0,c)}else return o(void 0,d)}function l(c,d,p){if(p in t)return o(c,d);if(p in e)return o(void 0,c)}const u={url:s,method:s,data:s,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,d)=>i(ff(c),ff(d),!0)};return z.forEach(Object.keys(Object.assign({},e,t)),function(d){const p=u[d]||i,x=p(e[d],t[d],d);z.isUndefined(x)&&p!==l||(n[d]=x)}),n}const jh=e=>{const t=tr({},e);let{data:n,withXSRFToken:o,xsrfHeaderName:i,xsrfCookieName:s,headers:a,auth:l}=t;t.headers=a=et.from(a),t.url=mh(yh(t.baseURL,t.url),e.params,e.paramsSerializer),l&&a.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):"")));let u;if(z.isFormData(n)){if(Ze.hasStandardBrowserEnv||Ze.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if((u=a.getContentType())!==!1){const[c,...d]=u?u.split(";").map(p=>p.trim()).filter(Boolean):[];a.setContentType([c||"multipart/form-data",...d].join("; "))}}if(Ze.hasStandardBrowserEnv&&(o&&z.isFunction(o)&&(o=o(t)),o||o!==!1&&r1(t.url))){const c=i&&s&&o1.read(s);c&&a.set(i,c)}return t},a1=typeof XMLHttpRequest<"u",l1=a1&&function(e){return new Promise(function(n,o){const i=jh(e);let s=i.data;const a=et.from(i.headers).normalize();let{responseType:l,onUploadProgress:u,onDownloadProgress:c}=i,d,p,x,b,g;function N(){b&&b(),g&&g(),i.cancelToken&&i.cancelToken.unsubscribe(d),i.signal&&i.signal.removeEventListener("abort",d)}let C=new XMLHttpRequest;C.open(i.method.toUpperCase(),i.url,!0),C.timeout=i.timeout;function h(){if(!C)return;const m=et.from("getAllResponseHeaders"in C&&C.getAllResponseHeaders()),E={data:!l||l==="text"||l==="json"?C.responseText:C.response,status:C.status,statusText:C.statusText,headers:m,config:e,request:C};xh(function(O){n(O),N()},function(O){o(O),N()},E),C=null}"onloadend"in C?C.onloadend=h:C.onreadystatechange=function(){!C||C.readyState!==4||C.status===0&&!(C.responseURL&&C.responseURL.indexOf("file:")===0)||setTimeout(h)},C.onabort=function(){C&&(o(new oe("Request aborted",oe.ECONNABORTED,e,C)),C=null)},C.onerror=function(){o(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 E=i.transitional||hh;i.timeoutErrorMessage&&(y=i.timeoutErrorMessage),o(new oe(y,E.clarifyTimeoutError?oe.ETIMEDOUT:oe.ECONNABORTED,e,C)),C=null},s===void 0&&a.setContentType(null),"setRequestHeader"in C&&z.forEach(a.toJSON(),function(y,E){C.setRequestHeader(E,y)}),z.isUndefined(i.withCredentials)||(C.withCredentials=!!i.withCredentials),l&&l!=="json"&&(C.responseType=i.responseType),c&&([x,g]=Is(c,!0),C.addEventListener("progress",x)),u&&C.upload&&([p,b]=Is(u),C.upload.addEventListener("progress",p),C.upload.addEventListener("loadend",b)),(i.cancelToken||i.signal)&&(d=m=>{C&&(o(!m||m.type?new Ur(null,e,C):m),C.abort(),C=null)},i.cancelToken&&i.cancelToken.subscribe(d),i.signal&&(i.signal.aborted?d():i.signal.addEventListener("abort",d)));const v=e1(i.url);if(v&&Ze.protocols.indexOf(v)===-1){o(new oe("Unsupported protocol "+v+":",oe.ERR_BAD_REQUEST,e));return}C.send(s||null)})},c1=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let o=new AbortController,i;const s=function(c){if(!i){i=!0,l();const d=c instanceof Error?c:this.reason;o.abort(d instanceof oe?d:new Ur(d instanceof Error?d.message:d))}};let a=t&&setTimeout(()=>{a=null,s(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(s):c.removeEventListener("abort",s)}),e=null)};e.forEach(c=>c.addEventListener("abort",s));const{signal:u}=o;return u.unsubscribe=()=>z.asap(l),u}},u1=function*(e,t){let n=e.byteLength;if(!t||n{const i=d1(e,t);let s=0,a,l=u=>{a||(a=!0,o&&o(u))};return new ReadableStream({async pull(u){try{const{done:c,value:d}=await i.next();if(c){l(),u.close();return}let p=d.byteLength;if(n){let x=s+=p;n(x)}u.enqueue(new Uint8Array(d))}catch(c){throw l(c),c}},cancel(u){return l(u),i.return()}},{highWaterMark:2})},ua=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Nh=ua&&typeof ReadableStream=="function",p1=ua&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Ch=(e,...t)=>{try{return!!e(...t)}catch{return!1}},m1=Nh&&Ch(()=>{let e=!1;const t=new Request(Ze.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),mf=64*1024,Nc=Nh&&Ch(()=>z.isReadableStream(new Response("").body)),Rs={stream:Nc&&(e=>e.body)};ua&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Rs[t]&&(Rs[t]=z.isFunction(e[t])?n=>n[t]():(n,o)=>{throw new oe(`Response type '${t}' is not supported`,oe.ERR_NOT_SUPPORT,o)})})})(new Response);const h1=async e=>{if(e==null)return 0;if(z.isBlob(e))return e.size;if(z.isSpecCompliantForm(e))return(await new Request(Ze.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(z.isArrayBufferView(e)||z.isArrayBuffer(e))return e.byteLength;if(z.isURLSearchParams(e)&&(e=e+""),z.isString(e))return(await p1(e)).byteLength},v1=async(e,t)=>{const n=z.toFiniteNumber(e.getContentLength());return n??h1(t)},g1=ua&&(async e=>{let{url:t,method:n,data:o,signal:i,cancelToken:s,timeout:a,onDownloadProgress:l,onUploadProgress:u,responseType:c,headers:d,withCredentials:p="same-origin",fetchOptions:x}=jh(e);c=c?(c+"").toLowerCase():"text";let b=c1([i,s&&s.toAbortSignal()],a),g;const N=b&&b.unsubscribe&&(()=>{b.unsubscribe()});let C;try{if(u&&m1&&n!=="get"&&n!=="head"&&(C=await v1(d,o))!==0){let E=new Request(t,{method:"POST",body:o,duplex:"half"}),_;if(z.isFormData(o)&&(_=E.headers.get("content-type"))&&d.setContentType(_),E.body){const[O,P]=uf(C,Is(df(u)));o=pf(E.body,mf,O,P)}}z.isString(p)||(p=p?"include":"omit");const h="credentials"in Request.prototype;g=new Request(t,{...x,signal:b,method:n.toUpperCase(),headers:d.normalize().toJSON(),body:o,duplex:"half",credentials:h?p:void 0});let v=await fetch(g);const m=Nc&&(c==="stream"||c==="response");if(Nc&&(l||m&&N)){const E={};["status","statusText","headers"].forEach(M=>{E[M]=v[M]});const _=z.toFiniteNumber(v.headers.get("content-length")),[O,P]=l&&uf(_,Is(df(l),!0))||[];v=new Response(pf(v.body,mf,O,()=>{P&&P(),N&&N()}),E)}c=c||"text";let y=await Rs[z.findKey(Rs,c)||"text"](v,e);return!m&&N&&N(),await new Promise((E,_)=>{xh(E,_,{data:y,headers:et.from(v.headers),status:v.status,statusText:v.statusText,config:e,request:g})})}catch(h){throw N&&N(),h&&h.name==="TypeError"&&/fetch/i.test(h.message)?Object.assign(new oe("Network Error",oe.ERR_NETWORK,e,g),{cause:h.cause||h}):oe.from(h,h&&h.code,e,g)}}),Cc={http:Aj,xhr:l1,fetch:g1};z.forEach(Cc,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const hf=e=>`- ${e}`,x1=e=>z.isFunction(e)||e===null||e===!1,bh={getAdapter:e=>{e=z.isArray(e)?e:[e];const{length:t}=e;let n,o;const i={};for(let s=0;s`adapter ${l} `+(u===!1?"is not supported by the environment":"is not available in the build"));let a=t?s.length>1?`since : -`+s.map(hf).join(` -`):" "+hf(s[0]):"as no adapter specified";throw new oe("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return o},adapters:Cc};function vl(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ur(null,e)}function vf(e){return vl(e),e.headers=et.from(e.headers),e.data=hl.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),bh.getAdapter(e.adapter||ai.adapter)(e).then(function(o){return vl(e),o.data=hl.call(e,e.transformResponse,o),o.headers=et.from(o.headers),o},function(o){return gh(o)||(vl(e),o&&o.response&&(o.response.data=hl.call(e,e.transformResponse,o.response),o.response.headers=et.from(o.response.headers))),Promise.reject(o)})}const wh="1.7.7",Iu={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Iu[e]=function(o){return typeof o===e||"a"+(t<1?"n ":" ")+e}});const gf={};Iu.transitional=function(t,n,o){function i(s,a){return"[Axios v"+wh+"] Transitional option '"+s+"'"+a+(o?". "+o:"")}return(s,a,l)=>{if(t===!1)throw new oe(i(a," has been removed"+(n?" in "+n:"")),oe.ERR_DEPRECATED);return n&&!gf[a]&&(gf[a]=!0,console.warn(i(a," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(s,a,l):!0}};function y1(e,t,n){if(typeof e!="object")throw new oe("options must be an object",oe.ERR_BAD_OPTION_VALUE);const o=Object.keys(e);let i=o.length;for(;i-- >0;){const s=o[i],a=t[s];if(a){const l=e[s],u=l===void 0||a(l,s,e);if(u!==!0)throw new oe("option "+s+" must be "+u,oe.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new oe("Unknown option "+s,oe.ERR_BAD_OPTION)}}const bc={assertOptions:y1,validators:Iu},rn=bc.validators;class Hn{constructor(t){this.defaults=t,this.interceptors={request:new lf,response:new lf}}async request(t,n){try{return await this._request(t,n)}catch(o){if(o instanceof Error){let i;Error.captureStackTrace?Error.captureStackTrace(i={}):i=new Error;const s=i.stack?i.stack.replace(/^.+\n/,""):"";try{o.stack?s&&!String(o.stack).endsWith(s.replace(/^.+\n.+\n/,""))&&(o.stack+=` -`+s):o.stack=s}catch{}}throw o}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=tr(this.defaults,n);const{transitional:o,paramsSerializer:i,headers:s}=n;o!==void 0&&bc.assertOptions(o,{silentJSONParsing:rn.transitional(rn.boolean),forcedJSONParsing:rn.transitional(rn.boolean),clarifyTimeoutError:rn.transitional(rn.boolean)},!1),i!=null&&(z.isFunction(i)?n.paramsSerializer={serialize:i}:bc.assertOptions(i,{encode:rn.function,serialize:rn.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=s&&z.merge(s.common,s[n.method]);s&&z.forEach(["delete","get","head","post","put","patch","common"],g=>{delete s[g]}),n.headers=et.concat(a,s);const l=[];let u=!0;this.interceptors.request.forEach(function(N){typeof N.runWhen=="function"&&N.runWhen(n)===!1||(u=u&&N.synchronous,l.unshift(N.fulfilled,N.rejected))});const c=[];this.interceptors.response.forEach(function(N){c.push(N.fulfilled,N.rejected)});let d,p=0,x;if(!u){const g=[vf.bind(this),void 0];for(g.unshift.apply(g,l),g.push.apply(g,c),x=g.length,d=Promise.resolve(n);p{if(!o._listeners)return;let s=o._listeners.length;for(;s-- >0;)o._listeners[s](i);o._listeners=null}),this.promise.then=i=>{let s;const a=new Promise(l=>{o.subscribe(l),s=l}).then(i);return a.cancel=function(){o.unsubscribe(s)},a},t(function(s,a,l){o.reason||(o.reason=new Ur(s,a,l),n(o.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=o=>{t.abort(o)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new Ru(function(i){t=i}),cancel:t}}}function j1(e){return function(n){return e.apply(null,n)}}function N1(e){return z.isObject(e)&&e.isAxiosError===!0}const wc={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(wc).forEach(([e,t])=>{wc[t]=e});function Sh(e){const t=new Hn(e),n=nh(Hn.prototype.request,t);return z.extend(n,Hn.prototype,t,{allOwnKeys:!0}),z.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return Sh(tr(e,i))},n}const me=Sh(ai);me.Axios=Hn;me.CanceledError=Ur;me.CancelToken=Ru;me.isCancel=gh;me.VERSION=wh;me.toFormData=ca;me.AxiosError=oe;me.Cancel=me.CanceledError;me.all=function(t){return Promise.all(t)};me.spread=j1;me.isAxiosError=N1;me.mergeConfig=tr;me.AxiosHeaders=et;me.formToJSON=e=>vh(z.isHTMLForm(e)?new FormData(e):e);me.getAdapter=bh.getAdapter;me.HttpStatusCode=wc;me.default=me;const C1="http://67.225.129.127:3002",Zt=me.create({baseURL:C1});Zt.interceptors.request.use(e=>(localStorage.getItem("profile")&&(e.headers.Authorization=`Bearer ${JSON.parse(localStorage.getItem("profile")).token}`),e));const b1=e=>Zt.post("/users/signup",e),w1=e=>Zt.post("/users/signin",e),S1=(e,t,n)=>Zt.get(`/users/${e}/verify/${t}`,n),k1=e=>Zt.post("/properties",e),E1=(e,t,n)=>Zt.get(`/properties/user/${e}?page=${t}&limit=${n}`,e),P1=e=>Zt.get(`/properties/${e}`,e),_1=(e,t)=>Zt.put(`/properties/${e}`,t),O1=e=>Zt.get(`/users/${e}`),Yi=Mt("auth/login",async({formValue:e,navigate:t},{rejectWithValue:n})=>{try{const o=await w1(e);return t("/dashboard"),o.data}catch(o){return n(o.response.data)}}),Ki=Mt("auth/register",async({formValue:e,navigate:t,toast:n},{rejectWithValue:o})=>{try{const i=await b1(e);return n.success("Register Successfully"),t("/registrationsuccess"),i.data}catch(i){return o(i.response.data)}}),Gi=Mt("auth/updateUser",async(e,{rejectWithValue:t})=>{try{return(await me.put("http://localhost:3002/users/update",e)).data}catch(n){return t(n.response.data)}}),kh=_u({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(Yi.pending,t=>{t.loading=!0}).addCase(Yi.fulfilled,(t,n)=>{t.loading=!1,localStorage.setItem("profile",JSON.stringify({...n.payload})),t.user=n.payload}).addCase(Yi.rejected,(t,n)=>{t.loading=!1,t.error=n.payload.message}).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(Gi.pending,t=>{t.isLoading=!0}).addCase(Gi.fulfilled,(t,n)=>{t.isLoading=!1,t.user=n.payload}).addCase(Gi.rejected,(t,n)=>{t.isLoading=!1,t.error=n.payload})}}),{setUser:eC,setLogout:T1,setUserDetails:tC}=kh.actions,A1=kh.reducer,Qi=Mt("user/showUser",async(e,{rejectWithValue:t})=>{try{return(await O1(e)).data}catch(n){return t(n.response.data)}}),Ji=Mt("user/verifyEmail",async({id:e,token:t,data:n},{rejectWithValue:o})=>{try{return(await S1(e,t,n)).data.message}catch(i){return o(i.response.data)}}),I1=_u({name:"user",initialState:{users:[],error:"",loading:!1,verified:!1,user:{}},reducers:{},extraReducers:e=>{e.addCase(Qi.pending,t=>{t.loading=!0,t.error=null}).addCase(Qi.fulfilled,(t,n)=>{t.loading=!1,t.user=n.payload}).addCase(Qi.rejected,(t,n)=>{t.loading=!1,t.error=n.payload}).addCase(Ji.pending,t=>{t.loading=!0,t.error=null}).addCase(Ji.fulfilled,(t,n)=>{t.loading=!1,t.verified=n.payload==="Email verified successfully"}).addCase(Ji.rejected,(t,n)=>{t.loading=!1,t.error=n.error.message})}}),R1=I1.reducer,Xi=Mt("property/submitProperty",async(e,{rejectWithValue:t})=>{try{return(await k1(e)).data}catch(n){return t(n.response.data)}}),Zi=Mt("property/fetchUserProperties",async({userId:e,page:t,limit:n},{rejectWithValue:o})=>{try{return(await E1(e,t,n)).data}catch(i){return o(i.response.data)}}),Eo=Mt("property/fetchPropertyById",async(e,{rejectWithValue:t})=>{try{return(await P1(e)).data}catch(n){return t(n.response.data)}}),es=Mt("property/updateProperty",async({id:e,propertyData:t},{rejectWithValue:n})=>{try{return(await _1(e,t)).data}catch(o){return n(o.response.data)}}),Po=Mt("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),D1=_u({name:"property",initialState:{property:{},status:"idle",error:null,userProperties:[],selectedProperty:null,totalPages:0,currentPage:1,loading:!1,properties:[]},reducers:{},extraReducers:e=>{e.addCase(Xi.pending,t=>{t.status="loading"}).addCase(Xi.fulfilled,(t,n)=>{t.status="succeeded",t.property=n.payload}).addCase(Xi.rejected,(t,n)=>{t.status="failed",t.error=n.payload}).addCase(Zi.pending,t=>{t.loading=!0}).addCase(Zi.fulfilled,(t,{payload:n})=>{t.loading=!1,t.userProperties=n.properties,t.totalPages=n.totalPages,t.currentPage=n.currentPage}).addCase(Zi.rejected,(t,{payload:n})=>{t.loading=!1,t.error=n}).addCase(Eo.pending,t=>{t.status="loading"}).addCase(Eo.fulfilled,(t,n)=>{t.status="succeeded",t.selectedProperty=n.payload}).addCase(Eo.rejected,(t,n)=>{t.status="failed",t.error=n.payload}).addCase(es.pending,t=>{t.status="loading"}).addCase(es.fulfilled,(t,n)=>{t.status="succeeded",t.selectedProperty=n.payload}).addCase(es.rejected,(t,n)=>{t.status="failed",t.error=n.payload}).addCase(Po.pending,t=>{t.loading=!0}).addCase(Po.fulfilled,(t,n)=>{t.loading=!1,t.properties=n.payload.data,t.totalPages=n.payload.totalPages,t.currentPage=n.payload.currentPage}).addCase(Po.rejected,(t,n)=>{t.loading=!1,t.error=n.error.message})}}),F1=D1.reducer,L1=Ey({reducer:{auth:A1,user:R1,property:F1}});/** - * @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 Qo(){return Qo=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function Eh(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function B1(){return Math.random().toString(36).substr(2,8)}function yf(e,t){return{usr:e.state,key:e.key,idx:t}}function Sc(e,t,n,o){return n===void 0&&(n=null),Qo({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?qr(t):t,{state:n,key:t&&t.key||o||B1()})}function Ds(e){let{pathname:t="/",search:n="",hash:o=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),o&&o!=="#"&&(t+=o.charAt(0)==="#"?o:"#"+o),t}function qr(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let o=e.indexOf("?");o>=0&&(t.search=e.substr(o),e=e.substr(0,o)),e&&(t.pathname=e)}return t}function z1(e,t,n,o){o===void 0&&(o={});let{window:i=document.defaultView,v5Compat:s=!1}=o,a=i.history,l=mn.Pop,u=null,c=d();c==null&&(c=0,a.replaceState(Qo({},a.state,{idx:c}),""));function d(){return(a.state||{idx:null}).idx}function p(){l=mn.Pop;let C=d(),h=C==null?null:C-c;c=C,u&&u({action:l,location:N.location,delta:h})}function x(C,h){l=mn.Push;let v=Sc(N.location,C,h);c=d()+1;let m=yf(v,c),y=N.createHref(v);try{a.pushState(m,"",y)}catch(E){if(E instanceof DOMException&&E.name==="DataCloneError")throw E;i.location.assign(y)}s&&u&&u({action:l,location:N.location,delta:1})}function b(C,h){l=mn.Replace;let v=Sc(N.location,C,h);c=d();let m=yf(v,c),y=N.createHref(v);a.replaceState(m,"",y),s&&u&&u({action:l,location:N.location,delta:0})}function g(C){let h=i.location.origin!=="null"?i.location.origin:i.location.href,v=typeof C=="string"?C:Ds(C);return v=v.replace(/ $/,"%20"),we(h,"No window.location.(origin|href) available to create URL for href: "+v),new URL(v,h)}let N={get action(){return l},get location(){return e(i,a)},listen(C){if(u)throw new Error("A history only accepts one active listener");return i.addEventListener(xf,p),u=C,()=>{i.removeEventListener(xf,p),u=null}},createHref(C){return t(i,C)},createURL:g,encodeLocation(C){let h=g(C);return{pathname:h.pathname,search:h.search,hash:h.hash}},push:x,replace:b,go(C){return a.go(C)}};return N}var jf;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(jf||(jf={}));function W1(e,t,n){return n===void 0&&(n="/"),$1(e,t,n,!1)}function $1(e,t,n,o){let i=typeof t=="string"?qr(t):t,s=Mr(i.pathname||"/",n);if(s==null)return null;let a=Ph(e);U1(a);let l=null;for(let u=0;l==null&&u{let u={relativePath:l===void 0?s.path||"":l,caseSensitive:s.caseSensitive===!0,childrenIndex:a,route:s};u.relativePath.startsWith("/")&&(we(u.relativePath.startsWith(o),'Absolute route path "'+u.relativePath+'" nested under path '+('"'+o+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),u.relativePath=u.relativePath.slice(o.length));let c=wn([o,u.relativePath]),d=n.concat(u);s.children&&s.children.length>0&&(we(s.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),Ph(s.children,t,d,c)),!(s.path==null&&!s.index)&&t.push({path:c,score:Q1(c,s.index),routesMeta:d})};return e.forEach((s,a)=>{var l;if(s.path===""||!((l=s.path)!=null&&l.includes("?")))i(s,a);else for(let u of _h(s.path))i(s,a,u)}),t}function _h(e){let t=e.split("/");if(t.length===0)return[];let[n,...o]=t,i=n.endsWith("?"),s=n.replace(/\?$/,"");if(o.length===0)return i?[s,""]:[s];let a=_h(o.join("/")),l=[];return l.push(...a.map(u=>u===""?s:[s,u].join("/"))),i&&l.push(...a),l.map(u=>e.startsWith("/")&&u===""?"/":u)}function U1(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:J1(t.routesMeta.map(o=>o.childrenIndex),n.routesMeta.map(o=>o.childrenIndex)))}const q1=/^:[\w-]+$/,V1=3,H1=2,Y1=1,K1=10,G1=-2,Nf=e=>e==="*";function Q1(e,t){let n=e.split("/"),o=n.length;return n.some(Nf)&&(o+=G1),t&&(o+=H1),n.filter(i=>!Nf(i)).reduce((i,s)=>i+(q1.test(s)?V1:s===""?Y1:K1),o)}function J1(e,t){return e.length===t.length&&e.slice(0,-1).every((o,i)=>o===t[i])?e[e.length-1]-t[t.length-1]:0}function X1(e,t,n){let{routesMeta:o}=e,i={},s="/",a=[];for(let l=0;l{let{paramName:x,isOptional:b}=d;if(x==="*"){let N=l[p]||"";a=s.slice(0,s.length-N.length).replace(/(.)\/+$/,"$1")}const g=l[p];return b&&!g?c[x]=void 0:c[x]=(g||"").replace(/%2F/g,"/"),c},{}),pathname:s,pathnameBase:a,pattern:e}}function Z1(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Eh(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 o=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,l,u)=>(o.push({paramName:l,isOptional:u!=null}),u?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(o.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),o]}function e0(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Eh(!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 Mr(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,o=e.charAt(n);return o&&o!=="/"?null:e.slice(n)||"/"}function t0(e,t){t===void 0&&(t="/");let{pathname:n,search:o="",hash:i=""}=typeof e=="string"?qr(e):e;return{pathname:n?n.startsWith("/")?n:n0(n,t):t,search:i0(o),hash:s0(i)}}function n0(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 gl(e,t,n,o){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(o)+"]. 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 r0(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Oh(e,t){let n=r0(e);return t?n.map((o,i)=>i===n.length-1?o.pathname:o.pathnameBase):n.map(o=>o.pathnameBase)}function Th(e,t,n,o){o===void 0&&(o=!1);let i;typeof e=="string"?i=qr(e):(i=Qo({},e),we(!i.pathname||!i.pathname.includes("?"),gl("?","pathname","search",i)),we(!i.pathname||!i.pathname.includes("#"),gl("#","pathname","hash",i)),we(!i.search||!i.search.includes("#"),gl("#","search","hash",i)));let s=e===""||i.pathname==="",a=s?"/":i.pathname,l;if(a==null)l=n;else{let p=t.length-1;if(!o&&a.startsWith("..")){let x=a.split("/");for(;x[0]==="..";)x.shift(),p-=1;i.pathname=x.join("/")}l=p>=0?t[p]:"/"}let u=t0(i,l),c=a&&a!=="/"&&a.endsWith("/"),d=(s||a===".")&&n.endsWith("/");return!u.pathname.endsWith("/")&&(c||d)&&(u.pathname+="/"),u}const wn=e=>e.join("/").replace(/\/\/+/g,"/"),o0=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),i0=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,s0=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function a0(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Ah=["post","put","patch","delete"];new Set(Ah);const l0=["get",...Ah];new Set(l0);/** - * 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 Jo(){return Jo=Object.assign?Object.assign.bind():function(e){for(var t=1;t{l.current=!0}),R.useCallback(function(c,d){if(d===void 0&&(d={}),!l.current)return;if(typeof c=="number"){o.go(c);return}let p=Th(c,JSON.parse(a),s,d.relative==="path");e==null&&t!=="/"&&(p.pathname=p.pathname==="/"?t:wn([t,p.pathname])),(d.replace?o.replace:o.push)(p,d.state,d)},[t,o,a,s,e])}function Hr(){let{matches:e}=R.useContext(An),t=e[e.length-1];return t?t.params:{}}function pa(e,t){let{relative:n}=t===void 0?{}:t,{future:o}=R.useContext(Tn),{matches:i}=R.useContext(An),{pathname:s}=ci(),a=JSON.stringify(Oh(i,o.v7_relativeSplatPath));return R.useMemo(()=>Th(e,JSON.parse(a),s,n==="path"),[e,a,s,n])}function d0(e,t){return f0(e,t)}function f0(e,t,n,o){li()||we(!1);let{navigator:i}=R.useContext(Tn),{matches:s}=R.useContext(An),a=s[s.length-1],l=a?a.params:{};a&&a.pathname;let u=a?a.pathnameBase:"/";a&&a.route;let c=ci(),d;if(t){var p;let C=typeof t=="string"?qr(t):t;u==="/"||(p=C.pathname)!=null&&p.startsWith(u)||we(!1),d=C}else d=c;let x=d.pathname||"/",b=x;if(u!=="/"){let C=u.replace(/^\//,"").split("/");b="/"+x.replace(/^\//,"").split("/").slice(C.length).join("/")}let g=W1(e,{pathname:b}),N=g0(g&&g.map(C=>Object.assign({},C,{params:Object.assign({},l,C.params),pathname:wn([u,i.encodeLocation?i.encodeLocation(C.pathname).pathname:C.pathname]),pathnameBase:C.pathnameBase==="/"?u:wn([u,i.encodeLocation?i.encodeLocation(C.pathnameBase).pathname:C.pathnameBase])})),s,n,o);return t&&N?R.createElement(fa.Provider,{value:{location:Jo({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:mn.Pop}},N):N}function p0(){let e=N0(),t=a0(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 R.createElement(R.Fragment,null,R.createElement("h2",null,"Unexpected Application Error!"),R.createElement("h3",{style:{fontStyle:"italic"}},t),n?R.createElement("pre",{style:i},n):null,null)}const m0=R.createElement(p0,null);class h0 extends R.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?R.createElement(An.Provider,{value:this.props.routeContext},R.createElement(Rh.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function v0(e){let{routeContext:t,match:n,children:o}=e,i=R.useContext(da);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),R.createElement(An.Provider,{value:t},o)}function g0(e,t,n,o){var i;if(t===void 0&&(t=[]),n===void 0&&(n=null),o===void 0&&(o=null),e==null){var s;if(!n)return null;if(n.errors)e=n.matches;else if((s=o)!=null&&s.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 d=a.findIndex(p=>p.route.id&&(l==null?void 0:l[p.route.id])!==void 0);d>=0||we(!1),a=a.slice(0,Math.min(a.length,d+1))}let u=!1,c=-1;if(n&&o&&o.v7_partialHydration)for(let d=0;d=0?a=a.slice(0,c+1):a=[a[0]];break}}}return a.reduceRight((d,p,x)=>{let b,g=!1,N=null,C=null;n&&(b=l&&p.route.id?l[p.route.id]:void 0,N=p.route.errorElement||m0,u&&(c<0&&x===0?(g=!0,C=null):c===x&&(g=!0,C=p.route.hydrateFallbackElement||null)));let h=t.concat(a.slice(0,x+1)),v=()=>{let m;return b?m=N:g?m=C:p.route.Component?m=R.createElement(p.route.Component,null):p.route.element?m=p.route.element:m=d,R.createElement(v0,{match:p,routeContext:{outlet:d,matches:h,isDataRoute:n!=null},children:m})};return n&&(p.route.ErrorBoundary||p.route.errorElement||x===0)?R.createElement(h0,{location:n.location,revalidation:n.revalidation,component:N,error:b,children:v(),routeContext:{outlet:null,matches:h,isDataRoute:!0}}):v()},null)}var Fh=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Fh||{}),Ls=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}(Ls||{});function x0(e){let t=R.useContext(da);return t||we(!1),t}function y0(e){let t=R.useContext(Ih);return t||we(!1),t}function j0(e){let t=R.useContext(An);return t||we(!1),t}function Lh(e){let t=j0(),n=t.matches[t.matches.length-1];return n.route.id||we(!1),n.route.id}function N0(){var e;let t=R.useContext(Rh),n=y0(Ls.UseRouteError),o=Lh(Ls.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[o]}function C0(){let{router:e}=x0(Fh.UseNavigateStable),t=Lh(Ls.UseNavigateStable),n=R.useRef(!1);return Dh(()=>{n.current=!0}),R.useCallback(function(i,s){s===void 0&&(s={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,Jo({fromRouteId:t},s)))},[e,t])}function _e(e){we(!1)}function b0(e){let{basename:t="/",children:n=null,location:o,navigationType:i=mn.Pop,navigator:s,static:a=!1,future:l}=e;li()&&we(!1);let u=t.replace(/^\/*/,"/"),c=R.useMemo(()=>({basename:u,navigator:s,static:a,future:Jo({v7_relativeSplatPath:!1},l)}),[u,l,s,a]);typeof o=="string"&&(o=qr(o));let{pathname:d="/",search:p="",hash:x="",state:b=null,key:g="default"}=o,N=R.useMemo(()=>{let C=Mr(d,u);return C==null?null:{location:{pathname:C,search:p,hash:x,state:b,key:g},navigationType:i}},[u,d,p,x,b,g,i]);return N==null?null:R.createElement(Tn.Provider,{value:c},R.createElement(fa.Provider,{children:n,value:N}))}function w0(e){let{children:t,location:n}=e;return d0(kc(t),n)}new Promise(()=>{});function kc(e,t){t===void 0&&(t=[]);let n=[];return R.Children.forEach(e,(o,i)=>{if(!R.isValidElement(o))return;let s=[...t,i];if(o.type===R.Fragment){n.push.apply(n,kc(o.props.children,s));return}o.type!==_e&&we(!1),!o.props.index||!o.props.children||we(!1);let a={id:o.props.id||s.join("-"),caseSensitive:o.props.caseSensitive,element:o.props.element,Component:o.props.Component,index:o.props.index,path:o.props.path,loader:o.props.loader,action:o.props.action,errorElement:o.props.errorElement,ErrorBoundary:o.props.ErrorBoundary,hasErrorBoundary:o.props.ErrorBoundary!=null||o.props.errorElement!=null,shouldRevalidate:o.props.shouldRevalidate,handle:o.props.handle,lazy:o.props.lazy};o.props.children&&(a.children=kc(o.props.children,s)),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 Ms(){return Ms=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[i]=e[i]);return n}function S0(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function k0(e,t){return e.button===0&&(!t||t==="_self")&&!S0(e)}const E0=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],P0=["aria-current","caseSensitive","className","end","style","to","unstable_viewTransition","children"],_0="6";try{window.__reactRouterVersion=_0}catch{}const O0=R.createContext({isTransitioning:!1}),T0="startTransition",Cf=yl[T0];function A0(e){let{basename:t,children:n,future:o,window:i}=e,s=R.useRef();s.current==null&&(s.current=M1({window:i,v5Compat:!0}));let a=s.current,[l,u]=R.useState({action:a.action,location:a.location}),{v7_startTransition:c}=o||{},d=R.useCallback(p=>{c&&Cf?Cf(()=>u(p)):u(p)},[u,c]);return R.useLayoutEffect(()=>a.listen(d),[a,d]),R.createElement(b0,{basename:t,children:n,location:l.location,navigationType:l.action,navigator:a,future:o})}const I0=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",R0=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,D0=R.forwardRef(function(t,n){let{onClick:o,relative:i,reloadDocument:s,replace:a,state:l,target:u,to:c,preventScrollReset:d,unstable_viewTransition:p}=t,x=Mh(t,E0),{basename:b}=R.useContext(Tn),g,N=!1;if(typeof c=="string"&&R0.test(c)&&(g=c,I0))try{let m=new URL(window.location.href),y=c.startsWith("//")?new URL(m.protocol+c):new URL(c),E=Mr(y.pathname,b);y.origin===m.origin&&E!=null?c=E+y.search+y.hash:N=!0}catch{}let C=c0(c,{relative:i}),h=L0(c,{replace:a,state:l,target:u,preventScrollReset:d,relative:i,unstable_viewTransition:p});function v(m){o&&o(m),m.defaultPrevented||h(m)}return R.createElement("a",Ms({},x,{href:g||C,onClick:N||s?o:v,ref:n,target:u}))}),ge=R.forwardRef(function(t,n){let{"aria-current":o="page",caseSensitive:i=!1,className:s="",end:a=!1,style:l,to:u,unstable_viewTransition:c,children:d}=t,p=Mh(t,P0),x=pa(u,{relative:p.relative}),b=ci(),g=R.useContext(Ih),{navigator:N,basename:C}=R.useContext(Tn),h=g!=null&&M0(x)&&c===!0,v=N.encodeLocation?N.encodeLocation(x).pathname:x.pathname,m=b.pathname,y=g&&g.navigation&&g.navigation.location?g.navigation.location.pathname:null;i||(m=m.toLowerCase(),y=y?y.toLowerCase():null,v=v.toLowerCase()),y&&C&&(y=Mr(y,C)||y);const E=v!=="/"&&v.endsWith("/")?v.length-1:v.length;let _=m===v||!a&&m.startsWith(v)&&m.charAt(E)==="/",O=y!=null&&(y===v||!a&&y.startsWith(v)&&y.charAt(v.length)==="/"),P={isActive:_,isPending:O,isTransitioning:h},M=_?o:void 0,W;typeof s=="function"?W=s(P):W=[s,_?"active":null,O?"pending":null,h?"transitioning":null].filter(Boolean).join(" ");let H=typeof l=="function"?l(P):l;return R.createElement(D0,Ms({},p,{"aria-current":M,className:W,ref:n,style:H,to:u,unstable_viewTransition:c}),typeof d=="function"?d(P):d)});var Ec;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Ec||(Ec={}));var bf;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(bf||(bf={}));function F0(e){let t=R.useContext(da);return t||we(!1),t}function L0(e,t){let{target:n,replace:o,state:i,preventScrollReset:s,relative:a,unstable_viewTransition:l}=t===void 0?{}:t,u=Vr(),c=ci(),d=pa(e,{relative:a});return R.useCallback(p=>{if(k0(p,n)){p.preventDefault();let x=o!==void 0?o:Ds(c)===Ds(d);u(e,{replace:x,state:i,preventScrollReset:s,relative:a,unstable_viewTransition:l})}},[c,u,d,o,i,n,e,s,a,l])}function M0(e,t){t===void 0&&(t={});let n=R.useContext(O0);n==null&&we(!1);let{basename:o}=F0(Ec.useViewTransitionState),i=pa(e,{relative:t.relative});if(!n.isTransitioning)return!1;let s=Mr(n.currentLocation.pathname,o)||n.currentLocation.pathname,a=Mr(n.nextLocation.pathname,o)||n.nextLocation.pathname;return Fs(i.pathname,a)!=null||Fs(i.pathname,s)!=null}function Bh(e){var t,n,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;ttypeof e=="number"&&!isNaN(e),Yn=e=>typeof e=="string",it=e=>typeof e=="function",ts=e=>Yn(e)||it(e)?e:null,Pc=e=>R.isValidElement(e)||Yn(e)||it(e)||Xo(e);function B0(e,t,n){n===void 0&&(n=300);const{scrollHeight:o,style:i}=e;requestAnimationFrame(()=>{i.minHeight="initial",i.height=o+"px",i.transition=`all ${n}ms`,requestAnimationFrame(()=>{i.height="0",i.padding="0",i.margin="0",setTimeout(t,n)})})}function ma(e){let{enter:t,exit:n,appendPosition:o=!1,collapse:i=!0,collapseDuration:s=300}=e;return function(a){let{children:l,position:u,preventExitTransition:c,done:d,nodeRef:p,isIn:x,playToast:b}=a;const g=o?`${t}--${u}`:t,N=o?`${n}--${u}`:n,C=R.useRef(0);return R.useLayoutEffect(()=>{const h=p.current,v=g.split(" "),m=y=>{y.target===p.current&&(b(),h.removeEventListener("animationend",m),h.removeEventListener("animationcancel",m),C.current===0&&y.type!=="animationcancel"&&h.classList.remove(...v))};h.classList.add(...v),h.addEventListener("animationend",m),h.addEventListener("animationcancel",m)},[]),R.useEffect(()=>{const h=p.current,v=()=>{h.removeEventListener("animationend",v),i?B0(h,d,s):d()};x||(c?v():(C.current=1,h.className+=` ${N}`,h.addEventListener("animationend",v)))},[x]),I.createElement(I.Fragment,null,l)}}function wf(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 $e=new Map;let Zo=[];const _c=new Set,z0=e=>_c.forEach(t=>t(e)),zh=()=>$e.size>0;function Wh(e,t){var n;if(t)return!((n=$e.get(t))==null||!n.isToastActive(e));let o=!1;return $e.forEach(i=>{i.isToastActive(e)&&(o=!0)}),o}function $h(e,t){Pc(e)&&(zh()||Zo.push({content:e,options:t}),$e.forEach(n=>{n.buildToast(e,t)}))}function Sf(e,t){$e.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 W0(e){const{subscribe:t,getSnapshot:n,setProps:o}=R.useRef(function(s){const a=s.containerId||1;return{subscribe(l){const u=function(d,p,x){let b=1,g=0,N=[],C=[],h=[],v=p;const m=new Map,y=new Set,E=()=>{h=Array.from(m.values()),y.forEach(P=>P())},_=P=>{C=P==null?[]:C.filter(M=>M!==P),E()},O=P=>{const{toastId:M,onOpen:W,updateId:H,children:te}=P.props,X=H==null;P.staleId&&m.delete(P.staleId),m.set(M,P),C=[...C,P.props.toastId].filter(Z=>Z!==P.staleId),E(),x(wf(P,X?"added":"updated")),X&&it(W)&&W(R.isValidElement(te)&&te.props)};return{id:d,props:v,observe:P=>(y.add(P),()=>y.delete(P)),toggle:(P,M)=>{m.forEach(W=>{M!=null&&M!==W.props.toastId||it(W.toggle)&&W.toggle(P)})},removeToast:_,toasts:m,clearQueue:()=>{g-=N.length,N=[]},buildToast:(P,M)=>{if(($=>{let{containerId:K,toastId:G,updateId:ee}=$;const re=K?K!==d:d!==1,ne=m.has(G)&&ee==null;return re||ne})(M))return;const{toastId:W,updateId:H,data:te,staleId:X,delay:Z}=M,F=()=>{_(W)},U=H==null;U&&g++;const Q={...v,style:v.toastStyle,key:b++,...Object.fromEntries(Object.entries(M).filter($=>{let[K,G]=$;return G!=null})),toastId:W,updateId:H,data:te,closeToast:F,isIn:!1,className:ts(M.className||v.toastClassName),bodyClassName:ts(M.bodyClassName||v.bodyClassName),progressClassName:ts(M.progressClassName||v.progressClassName),autoClose:!M.isLoading&&(A=M.autoClose,T=v.autoClose,A===!1||Xo(A)&&A>0?A:T),deleteToast(){const $=m.get(W),{onClose:K,children:G}=$.props;it(K)&&K(R.isValidElement(G)&&G.props),x(wf($,"removed")),m.delete(W),g--,g<0&&(g=0),N.length>0?O(N.shift()):E()}};var A,T;Q.closeButton=v.closeButton,M.closeButton===!1||Pc(M.closeButton)?Q.closeButton=M.closeButton:M.closeButton===!0&&(Q.closeButton=!Pc(v.closeButton)||v.closeButton);let L=P;R.isValidElement(P)&&!Yn(P.type)?L=R.cloneElement(P,{closeToast:F,toastProps:Q,data:te}):it(P)&&(L=P({closeToast:F,toastProps:Q,data:te}));const B={content:L,props:Q,staleId:X};v.limit&&v.limit>0&&g>v.limit&&U?N.push(B):Xo(Z)?setTimeout(()=>{O(B)},Z):O(B)},setProps(P){v=P},setToggle:(P,M)=>{m.get(P).toggle=M},isToastActive:P=>C.some(M=>M===P),getSnapshot:()=>v.newestOnTop?h.reverse():h}}(a,s,z0);$e.set(a,u);const c=u.observe(l);return Zo.forEach(d=>$h(d.content,d.options)),Zo=[],()=>{c(),$e.delete(a)}},setProps(l){var u;(u=$e.get(a))==null||u.setProps(l)},getSnapshot(){var l;return(l=$e.get(a))==null?void 0:l.getSnapshot()}}}(e)).current;o(e);const i=R.useSyncExternalStore(t,n,n);return{getToastToRender:function(s){if(!i)return[];const a=new Map;return i.forEach(l=>{const{position:u}=l.props;a.has(u)||a.set(u,[]),a.get(u).push(l)}),Array.from(a,l=>s(l[0],l[1]))},isToastActive:Wh,count:i==null?void 0:i.length}}function $0(e){const[t,n]=R.useState(!1),[o,i]=R.useState(!1),s=R.useRef(null),a=R.useRef({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:l,pauseOnHover:u,closeToast:c,onClick:d,closeOnClick:p}=e;var x,b;function g(){n(!0)}function N(){n(!1)}function C(m){const y=s.current;a.canDrag&&y&&(a.didMove=!0,t&&N(),a.delta=e.draggableDirection==="x"?m.clientX-a.start:m.clientY-a.start,a.start!==m.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 h(){document.removeEventListener("pointermove",C),document.removeEventListener("pointerup",h);const m=s.current;if(a.canDrag&&a.didMove&&m){if(a.canDrag=!1,Math.abs(a.delta)>a.removalDistance)return i(!0),e.closeToast(),void e.collapseAll();m.style.transition="transform 0.2s, opacity 0.2s",m.style.removeProperty("transform"),m.style.removeProperty("opacity")}}(b=$e.get((x={id:e.toastId,containerId:e.containerId,fn:n}).containerId||1))==null||b.setToggle(x.id,x.fn),R.useEffect(()=>{if(e.pauseOnFocusLoss)return document.hasFocus()||N(),window.addEventListener("focus",g),window.addEventListener("blur",N),()=>{window.removeEventListener("focus",g),window.removeEventListener("blur",N)}},[e.pauseOnFocusLoss]);const v={onPointerDown:function(m){if(e.draggable===!0||e.draggable===m.pointerType){a.didMove=!1,document.addEventListener("pointermove",C),document.addEventListener("pointerup",h);const y=s.current;a.canCloseOnClick=!0,a.canDrag=!0,y.style.transition="none",e.draggableDirection==="x"?(a.start=m.clientX,a.removalDistance=y.offsetWidth*(e.draggablePercent/100)):(a.start=m.clientY,a.removalDistance=y.offsetHeight*(e.draggablePercent===80?1.5*e.draggablePercent:e.draggablePercent)/100)}},onPointerUp:function(m){const{top:y,bottom:E,left:_,right:O}=s.current.getBoundingClientRect();m.nativeEvent.type!=="touchend"&&e.pauseOnHover&&m.clientX>=_&&m.clientX<=O&&m.clientY>=y&&m.clientY<=E?N():g()}};return l&&u&&(v.onMouseEnter=N,e.stacked||(v.onMouseLeave=g)),p&&(v.onClick=m=>{d&&d(m),a.canCloseOnClick&&c()}),{playToast:g,pauseToast:N,isRunning:t,preventExitTransition:o,toastRef:s,eventHandlers:v}}function U0(e){let{delay:t,isRunning:n,closeToast:o,type:i="default",hide:s,className:a,style:l,controlledProgress:u,progress:c,rtl:d,isIn:p,theme:x}=e;const b=s||u&&c===0,g={...l,animationDuration:`${t}ms`,animationPlayState:n?"running":"paused"};u&&(g.transform=`scaleX(${c})`);const N=hn("Toastify__progress-bar",u?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${x}`,`Toastify__progress-bar--${i}`,{"Toastify__progress-bar--rtl":d}),C=it(a)?a({rtl:d,type:i,defaultClassName:N}):hn(N,a),h={[u&&c>=1?"onTransitionEnd":"onAnimationEnd"]:u&&c<1?null:()=>{p&&o()}};return I.createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":b},I.createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${x} Toastify__progress-bar--${i}`}),I.createElement("div",{role:"progressbar","aria-hidden":b?"true":"false","aria-label":"notification timer",className:C,style:g,...h}))}let q0=1;const Uh=()=>""+q0++;function V0(e){return e&&(Yn(e.toastId)||Xo(e.toastId))?e.toastId:Uh()}function _o(e,t){return $h(e,t),t.toastId}function Bs(e,t){return{...t,type:t&&t.type||e,toastId:V0(t)}}function Ti(e){return(t,n)=>_o(t,Bs(e,n))}function ae(e,t){return _o(e,Bs("default",t))}ae.loading=(e,t)=>_o(e,Bs("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),ae.promise=function(e,t,n){let o,{pending:i,error:s,success:a}=t;i&&(o=Yn(i)?ae.loading(i,n):ae.loading(i.render,{...n,...i}));const l={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},u=(d,p,x)=>{if(p==null)return void ae.dismiss(o);const b={type:d,...l,...n,data:x},g=Yn(p)?{render:p}:p;return o?ae.update(o,{...b,...g}):ae(g.render,{...b,...g}),x},c=it(e)?e():e;return c.then(d=>u("success",a,d)).catch(d=>u("error",s,d)),c},ae.success=Ti("success"),ae.info=Ti("info"),ae.error=Ti("error"),ae.warning=Ti("warning"),ae.warn=ae.warning,ae.dark=(e,t)=>_o(e,Bs("default",{theme:"dark",...t})),ae.dismiss=function(e){(function(t){var n;if(zh()){if(t==null||Yn(n=t)||Xo(n))$e.forEach(o=>{o.removeToast(t)});else if(t&&("containerId"in t||"id"in t)){const o=$e.get(t.containerId);o?o.removeToast(t.id):$e.forEach(i=>{i.removeToast(t.id)})}}else Zo=Zo.filter(o=>t!=null&&o.options.toastId!==t)})(e)},ae.clearWaitingQueue=function(e){e===void 0&&(e={}),$e.forEach(t=>{!t.props.limit||e.containerId&&t.id!==e.containerId||t.clearQueue()})},ae.isActive=Wh,ae.update=function(e,t){t===void 0&&(t={});const n=((o,i)=>{var s;let{containerId:a}=i;return(s=$e.get(a||1))==null?void 0:s.toasts.get(o)})(e,t);if(n){const{props:o,content:i}=n,s={delay:100,...o,...t,toastId:t.toastId||e,updateId:Uh()};s.toastId!==e&&(s.staleId=e);const a=s.render||i;delete s.render,_o(a,s)}},ae.done=e=>{ae.update(e,{progress:1})},ae.onChange=function(e){return _c.add(e),()=>{_c.delete(e)}},ae.play=e=>Sf(!0,e),ae.pause=e=>Sf(!1,e);const H0=typeof window<"u"?R.useLayoutEffect:R.useEffect,Ai=e=>{let{theme:t,type:n,isLoading:o,...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})},xl={info:function(e){return I.createElement(Ai,{...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(Ai,{...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(Ai,{...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(Ai,{...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"})}},Y0=e=>{const{isRunning:t,preventExitTransition:n,toastRef:o,eventHandlers:i,playToast:s}=$0(e),{closeButton:a,children:l,autoClose:u,onClick:c,type:d,hideProgressBar:p,closeToast:x,transition:b,position:g,className:N,style:C,bodyClassName:h,bodyStyle:v,progressClassName:m,progressStyle:y,updateId:E,role:_,progress:O,rtl:P,toastId:M,deleteToast:W,isIn:H,isLoading:te,closeOnClick:X,theme:Z}=e,F=hn("Toastify__toast",`Toastify__toast-theme--${Z}`,`Toastify__toast--${d}`,{"Toastify__toast--rtl":P},{"Toastify__toast--close-on-click":X}),U=it(N)?N({rtl:P,position:g,type:d,defaultClassName:F}):hn(F,N),Q=function(B){let{theme:$,type:K,isLoading:G,icon:ee}=B,re=null;const ne={theme:$,type:K};return ee===!1||(it(ee)?re=ee({...ne,isLoading:G}):R.isValidElement(ee)?re=R.cloneElement(ee,ne):G?re=xl.spinner():(ie=>ie in xl)(K)&&(re=xl[K](ne))),re}(e),A=!!O||!u,T={closeToast:x,type:d,theme:Z};let L=null;return a===!1||(L=it(a)?a(T):R.isValidElement(a)?R.cloneElement(a,T):function(B){let{closeToast:$,theme:K,ariaLabel:G="close"}=B;return I.createElement("button",{className:`Toastify__close-button Toastify__close-button--${K}`,type:"button",onClick:ee=>{ee.stopPropagation(),$(ee)},"aria-label":G},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"})))}(T)),I.createElement(b,{isIn:H,done:W,position:g,preventExitTransition:n,nodeRef:o,playToast:s},I.createElement("div",{id:M,onClick:c,"data-in":H,className:U,...i,style:C,ref:o},I.createElement("div",{...H&&{role:_},className:it(h)?h({type:d}):hn("Toastify__toast-body",h),style:v},Q!=null&&I.createElement("div",{className:hn("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!te})},Q),I.createElement("div",null,l)),L,I.createElement(U0,{...E&&!A?{key:`pb-${E}`}:{},rtl:P,theme:Z,delay:u,isRunning:t,isIn:H,closeToast:x,hide:p,type:d,style:y,className:m,controlledProgress:A,progress:O||0})))},ha=function(e,t){return t===void 0&&(t=!1),{enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:t}},K0=ma(ha("bounce",!0));ma(ha("slide",!0));ma(ha("zoom"));ma(ha("flip"));const G0={position:"top-right",transition:K0,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};function Q0(e){let t={...G0,...e};const n=e.stacked,[o,i]=R.useState(!0),s=R.useRef(null),{getToastToRender:a,isToastActive:l,count:u}=W0(t),{className:c,style:d,rtl:p,containerId:x}=t;function b(N){const C=hn("Toastify__toast-container",`Toastify__toast-container--${N}`,{"Toastify__toast-container--rtl":p});return it(c)?c({position:N,rtl:p,defaultClassName:C}):hn(C,ts(c))}function g(){n&&(i(!0),ae.play())}return H0(()=>{if(n){var N;const C=s.current.querySelectorAll('[data-in="true"]'),h=12,v=(N=t.position)==null?void 0:N.includes("top");let m=0,y=0;Array.from(C).reverse().forEach((E,_)=>{const O=E;O.classList.add("Toastify__toast--stacked"),_>0&&(O.dataset.collapsed=`${o}`),O.dataset.pos||(O.dataset.pos=v?"top":"bot");const P=m*(o?.2:1)+(o?0:h*_);O.style.setProperty("--y",`${v?P:-1*P}px`),O.style.setProperty("--g",`${h}`),O.style.setProperty("--s",""+(1-(o?y:0))),m+=O.offsetHeight,y+=.025})}},[o,u,n]),I.createElement("div",{ref:s,className:"Toastify",id:x,onMouseEnter:()=>{n&&(i(!1),ae.pause())},onMouseLeave:g},a((N,C)=>{const h=C.length?{...d}:{...d,pointerEvents:"none"};return I.createElement("div",{className:b(N),style:h,key:`container-${N}`},C.map(v=>{let{content:m,props:y}=v;return I.createElement(Y0,{...y,stacked:n,collapseAll:g,isIn:l(y.toastId,y.containerId),style:y.style,key:`toast-${y.key}`},m)}))}))}const He=()=>{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(ge,{to:"/",className:"link-primary text-decoration-none",children:"Home"})}),r.jsx("li",{children:r.jsx(ge,{to:"/about",className:"link-primary text-decoration-none",children:"About"})}),r.jsx("li",{children:r.jsx(ge,{to:"/services",className:"link-primary text-decoration-none",children:"Services"})}),r.jsx("li",{children:r.jsx(ge,{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."]})})})})})]})})},J0="/assets/logo-Cb1x1exd.png",Ae=()=>{var i,s;const{user:e}=tt(a=>({...a.auth})),t=Pt(),n=Vr(),o=()=>{t(T1()),n("/")};return r.jsx(r.Fragment,{children: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:J0,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(ge,{to:"/",className:"nav-link",style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:"Home"})}),r.jsx("li",{className:"nav-item",children:r.jsx(ge,{to:"/services",className:"nav-link",style:{fontSize:"20px",fontWeight:"normal"},children:"Services"})}),r.jsx("li",{className:"nav-item",children:r.jsx(ge,{to:"/searchmyproperties",className:"nav-link",style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:"Search Database"})}),r.jsx("li",{className:"nav-item",children:r.jsx(ge,{to:"/about",className:"nav-link",style:{fontSize:"20px",fontWeight:"normal"},children:"About"})}),r.jsx("li",{className:"nav-item",children:r.jsx(ge,{to:"/searchproperties",className:"nav-link",style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:"Search properties"})}),r.jsx("li",{className:"nav-item",children:r.jsx(ge,{to:"/contact",className:"nav-link",style:{fontSize:"20px",fontWeight:"normal"},children:"Contact"})})]}),(i=e==null?void 0:e.result)!=null&&i._id?r.jsx(ge,{to:"/dashboard",style:{fontWeight:"bold"},children:"Dashboard"}):r.jsx(ge,{to:"/register",className:"nav-link",style:{fontWeight:"bold"},children:"Register"}),(s=e==null?void 0:e.result)!=null&&s._id?r.jsx(ge,{to:"/login",children:r.jsx("p",{className:"header-text",onClick:o,style:{fontWeight:"bold"},children:"Logout"})}):r.jsx(ge,{to:"/login",className:"nav-link",style:{fontWeight:"bold"},children:"Login"})]})]})})})},X0=()=>r.jsxs(r.Fragment,{children:[r.jsx(Ae,{}),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(He,{})]}),Z0=()=>r.jsxs(r.Fragment,{children:[r.jsx(Ae,{}),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(He,{})]}),eN=()=>r.jsxs(r.Fragment,{children:[r.jsx(Ae,{}),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(He,{})]});var $t=function(){return $t=Object.assign||function(e){for(var t,n=1,o=arguments.length;n{const[e,t]=R.useState(SN),[n,o]=R.useState(!1),{loading:i,error:s}=tt(E=>({...E.auth})),{title:a,email:l,password:u,firstName:c,middleName:d,lastName:p,confirmPassword:x,termsconditions:b,userType:g}=e,N=Pt(),C=Vr();R.useEffect(()=>{s&&ae.error(s)},[s]),R.useEffect(()=>{o(a!=="None"&&l&&u&&c&&d&&p&&x&&b&&g!=="")},[a,l,u,c,d,p,x,b,g]);const h=E=>{if(E.preventDefault(),u!==x)return ae.error("Password should match");n?N(Ki({formValue:e,navigate:C,toast:ae})):ae.error("Please fill in all fields and select all checkboxes")},v=E=>E.charAt(0).toUpperCase()+E.slice(1),m=E=>{const{name:_,value:O,type:P,checked:M}=E.target;t(P==="checkbox"?W=>({...W,[_]:M}):W=>({...W,[_]:_==="email"||_==="password"||_==="confirmPassword"?O:v(O)}))},y=E=>{t(_=>({..._,userType:E.target.value}))};return r.jsxs(r.Fragment,{children:[r.jsx(Ae,{}),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:h,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:g==="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:g==="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:m,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:m,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:d,name:"middleName",onChange:m,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:m,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:m,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:u,name:"password",onChange:m,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:x,name:"confirmPassword",onChange:m,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:m,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(qh.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(He,{})]})},EN={email:"",password:""},PN=()=>{const[e,t]=R.useState(EN),{loading:n,error:o}=tt(d=>({...d.auth})),{email:i,password:s}=e,a=Pt(),l=Vr();R.useEffect(()=>{o&&ae.error(o)},[o]);const u=d=>{d.preventDefault(),i&&s&&a(Yi({formValue:e,navigate:l,toast:ae}))},c=d=>{let{name:p,value:x}=d.target;t({...e,[p]:x})};return r.jsxs(r.Fragment,{children:[r.jsx(Ae,{}),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:s,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:u,style:{backgroundColor:"#fda417",border:"#fda417"},children:[n&&r.jsx(qh.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(ge,{to:"/register",className:"link-primary text-decoration-none",children:"Register"}),r.jsx(ge,{to:"/forgotpassword",className:"nav-link",children:"Forgot Password"})]})})})}),r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-12"})})]})})})]})})}),r.jsx(He,{})]})},ns="/assets/samplepic-BM_cnzgz.jpg";var Vh={exports:{}};(function(e,t){(function(n,o){e.exports=o()})(iv,function(){return function(n){function o(s){if(i[s])return i[s].exports;var a=i[s]={exports:{},id:s,loaded:!1};return n[s].call(a.exports,a,a.exports,o),a.loaded=!0,a.exports}var i={};return o.m=n,o.c=i,o.p="",o(0)}([function(n,o,i){function s(b){return b&&b.__esModule?b:{default:b}}function a(b,g){if(!(b instanceof g))throw new TypeError("Cannot call a class as a function")}function l(b,g){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!g||typeof g!="object"&&typeof g!="function"?b:g}function u(b,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);b.prototype=Object.create(g&&g.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(b,g):b.__proto__=g)}Object.defineProperty(o,"__esModule",{value:!0});var c=function(){function b(g,N){for(var C=0;C1)for(var E=1;E1?d-1:0),x=1;x2?p-2:0),b=2;b1){for(var Z=Array(X),F=0;F"u"||P.$$typeof!==h)){var Q=typeof y=="function"?y.displayName||y.name||"Unknown":y;M&&u(P,Q),W&&c(P,Q)}return m(y,M,W,H,te,b.current,P)},m.createFactory=function(y){var E=m.createElement.bind(null,y);return E.type=y,E},m.cloneAndReplaceKey=function(y,E){var _=m(y.type,E,y.ref,y._self,y._source,y._owner,y.props);return _},m.cloneElement=function(y,E,_){var O,P=x({},y.props),M=y.key,W=y.ref,H=y._self,te=y._source,X=y._owner;if(E!=null){a(E)&&(W=E.ref,X=b.current),l(E)&&(M=""+E.key);var Z;y.type&&y.type.defaultProps&&(Z=y.type.defaultProps);for(O in E)C.call(E,O)&&!v.hasOwnProperty(O)&&(E[O]===void 0&&Z!==void 0?P[O]=Z[O]:P[O]=E[O])}var F=arguments.length-2;if(F===1)P.children=_;else if(F>1){for(var U=Array(F),Q=0;Q1?c-1:0),p=1;p2?d-2:0),x=2;x.")}return O}function c(_,O){if(_._store&&!_._store.validated&&_.key==null){_._store.validated=!0;var P=y.uniqueKey||(y.uniqueKey={}),M=u(O);if(!P[M]){P[M]=!0;var W="";_&&_._owner&&_._owner!==x.current&&(W=" It was passed a child from "+_._owner.getName()+"."),s.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',M,W,b.getCurrentStackAddendum(_))}}}function d(_,O){if(typeof _=="object"){if(Array.isArray(_))for(var P=0;P<_.length;P++){var M=_[P];g.isValidElement(M)&&c(M,O)}else if(g.isValidElement(_))_._store&&(_._store.validated=!0);else if(_){var W=h(_);if(W&&W!==_.entries)for(var H,te=W.call(_);!(H=te.next()).done;)g.isValidElement(H.value)&&c(H.value,O)}}}function p(_){var O=_.type;if(typeof O=="function"){var P=O.displayName||O.name;O.propTypes&&N(O.propTypes,_.props,"prop",P,_,null),typeof O.getDefaultProps=="function"&&(s.env.NODE_ENV!=="production"&&v(O.getDefaultProps.isReactClassApproved,"getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead."))}}var x=i(7),b=i(10),g=i(4),N=i(32),C=i(8),h=i(18),v=i(3),m=i(11),y={},E={createElement:function(_,O,P){var M=typeof _=="string"||typeof _=="function";if(!M&&typeof _!="function"&&typeof _!="string"){var W="";(_===void 0||typeof _=="object"&&_!==null&&Object.keys(_).length===0)&&(W+=" You likely forgot to export your component from the file it's defined in.");var H=l(O);W+=H||a(),W+=b.getCurrentStackAddendum();var te=O!=null&&O.__source!==void 0?O.__source:null;b.pushNonStandardWarningStack(!0,te),s.env.NODE_ENV!=="production"&&v(!1,"React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",_==null?_:typeof _,W),b.popNonStandardWarningStack()}var X=g.createElement.apply(this,arguments);if(X==null)return X;if(M)for(var Z=2;Z1?G-1:0),re=1;re"u"||B===null)return""+B;var $=X(B);if($==="object"){if(B instanceof Date)return"date";if(B instanceof RegExp)return"regexp"}return $}function F(B){var $=Z(B);switch($){case"array":case"object":return"an "+$;case"boolean":case"date":case"regexp":return"a "+$;default:return $}}function U(B){return B.constructor&&B.constructor.name?B.constructor.name:T}var Q=typeof Symbol=="function"&&Symbol.iterator,A="@@iterator",T="<>",L={array:h("array"),bool:h("boolean"),func:h("function"),number:h("number"),object:h("object"),string:h("string"),symbol:h("symbol"),any:v(),arrayOf:m,element:y(),instanceOf:E,node:M(),objectOf:O,oneOf:_,oneOfType:P,shape:W};return N.prototype=Error.prototype,L.checkPropTypes=d,L.PropTypes=L,L}}).call(o,i(1))},function(n,o){function i(l){var u=/[=:]/g,c={"=":"=0",":":"=2"},d=(""+l).replace(u,function(p){return c[p]});return"$"+d}function s(l){var u=/(=0|=2)/g,c={"=0":"=","=2":":"},d=l[0]==="."&&l[1]==="$"?l.substring(2):l.substring(1);return(""+d).replace(u,function(p){return c[p]})}var a={escape:i,unescape:s};n.exports=a},function(n,o,i){(function(s){var a=i(5),l=i(2),u=function(h){var v=this;if(v.instancePool.length){var m=v.instancePool.pop();return v.call(m,h),m}return new v(h)},c=function(h,v){var m=this;if(m.instancePool.length){var y=m.instancePool.pop();return m.call(y,h,v),y}return new m(h,v)},d=function(h,v,m){var y=this;if(y.instancePool.length){var E=y.instancePool.pop();return y.call(E,h,v,m),E}return new y(h,v,m)},p=function(h,v,m,y){var E=this;if(E.instancePool.length){var _=E.instancePool.pop();return E.call(_,h,v,m,y),_}return new E(h,v,m,y)},x=function(h){var v=this;h instanceof v||(s.env.NODE_ENV!=="production"?l(!1,"Trying to release an instance into a pool of a different type."):a("25")),h.destructor(),v.instancePool.length{const[e,t]=R.useState("propertydetails"),n=()=>{e==="propertydetails"&&t("Images"),e==="Images"&&t("Accounting")},o=()=>{e==="Images"&&t("propertydetails"),e==="Accounting"&&t("Images")},i=Pt(),{status:s,error:a}=tt(f=>f.property),{user:l}=tt(f=>({...f.auth})),u=[1,2,3,4,5,6,7,8,9,10],[c,d]=R.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"}),[p,x]=R.useState(!1),b=(f,j)=>{console.log("File received:",f);const w=[...c.images];w[j].file=f.base64,d({...c,images:w})},g=()=>{d({...c,images:[...c.images,{title:"",file:""}]})},N=f=>{const j=c.images.filter((w,D)=>D!==f);d({...c,images:j})},C=(f,j)=>{const w=[...c.images];w[f].title=j.target.value,d({...c,images:w})},h=(f,j,w)=>{const{name:D,value:q}=f.target;if(w==="propertyTaxInfo"){const Y=[...c.propertyTaxInfo];Y[j][D]=q,d({...c,propertyTaxInfo:Y})}else d({...c,[D]:q})},v=()=>{d({...c,propertyTaxInfo:[...c.propertyTaxInfo,{propertytaxowned:"",ownedyear:"",taxassessed:"",taxyear:""}]})},m=f=>{const j=c.propertyTaxInfo.filter((w,D)=>D!==f);d({...c,propertyTaxInfo:j})},y=()=>{d(f=>({...f,costPaidAtoB:[...f.costPaidAtoB,{title:"",price:""}]}))},E=f=>{const j=c.costPaidAtoB.filter((w,D)=>D!==f);d(w=>({...w,costPaidAtoB:j}))},_=(f,j,w)=>{const D=[...c.costPaidAtoB];D[f][j]=w,d(q=>({...q,costPaidAtoB:D}))},O=(f,j)=>{let w=f.target.value;if(w=w.replace(/^\$/,"").trim(),/^\d*\.?\d*$/.test(w)||w===""){const q=c.costPaidAtoB.map((Y,se)=>se===j?{...Y,price:w,isInvalid:!1}:Y);d({...c,costPaidAtoB:q})}else{const q=c.costPaidAtoB.map((Y,se)=>se===j?{...Y,isInvalid:!0}:Y);d({...c,costPaidAtoB:q})}},P=()=>{const f=c.costPaidAtoB.reduce((w,D)=>{const q=parseFloat(D.price)||0;return w+q},0),j=parseFloat(c.purchaseCost)||0;return f+j},M=()=>{d(f=>({...f,credits:[...f.credits,{title:"",price:""}]}))},W=f=>{const j=c.credits.filter((w,D)=>D!==f);d(w=>({...w,credits:j}))},H=(f,j,w)=>{const D=[...c.credits];D[f][j]=w,d(q=>({...q,credits:D}))},te=(f,j)=>{const w=f.target.value;if(/^\d*\.?\d*$/.test(w)||w===""){const q=c.credits.map((Y,se)=>se===j?{...Y,price:w,isInvalid:!1}:Y);d({...c,credits:q})}else{const q=c.credits.map((Y,se)=>se===j?{...Y,isInvalid:!0}:Y);d({...c,credits:q})}},X=()=>c.credits.reduce((f,j)=>{const w=parseFloat(j.price);return f+(isNaN(w)?0:w)},0),Z=()=>{const f=c.costPaidAtoB.reduce((D,q)=>{const Y=parseFloat(q.price)||0;return D+Y},0),j=c.credits.reduce((D,q)=>{const Y=parseFloat(q.price)||0;return D+Y},0),w=parseFloat(c.purchaseCost)||0;return f+j+w},F=()=>{d(f=>({...f,cashAdjustments:[...f.cashAdjustments,{title:"",price:""}]}))},U=f=>{const j=c.cashAdjustments.filter((w,D)=>D!==f);d(w=>({...w,cashAdjustments:j}))},Q=(f,j,w)=>{const D=[...c.cashAdjustments];D[f][j]=w,d(q=>({...q,cashAdjustments:D}))},A=(f,j)=>{const w=f.target.value;if(/^\d*\.?\d*$/.test(w)||w===""){const q=c.cashAdjustments.map((Y,se)=>se===j?{...Y,price:w,isInvalid:!1}:Y);d({...c,cashAdjustments:q})}else{const q=c.cashAdjustments.map((Y,se)=>se===j?{...Y,isInvalid:!0}:Y);d({...c,cashAdjustments:q})}},T=()=>c.cashAdjustments.reduce((f,j)=>{const w=parseFloat(j.price);return f+(isNaN(w)?0:w)},0),L=()=>{const f=T(),j=X(),w=P();return f+j+w},B=()=>{d(f=>({...f,incidentalCost:[...f.incidentalCost,{title:"",price:""}]}))},$=f=>{const j=c.incidentalCost.filter((w,D)=>D!==f);d(w=>({...w,incidentalCost:j}))},K=(f,j,w)=>{const D=[...c.incidentalCost];D[f][j]=w,d(q=>({...q,incidentalCost:D}))},G=(f,j)=>{const w=f.target.value;if(/^\d*\.?\d*$/.test(w)||w===""){const q=c.incidentalCost.map((Y,se)=>se===j?{...Y,price:w,isInvalid:!1}:Y);d({...c,incidentalCost:q})}else{const q=c.incidentalCost.map((Y,se)=>se===j?{...Y,isInvalid:!0}:Y);d({...c,incidentalCost:q})}},ee=()=>c.incidentalCost.reduce((f,j)=>{const w=parseFloat(j.price);return f+(isNaN(w)?0:w)},0),re=()=>{d(f=>({...f,carryCosts:[...f.carryCosts,{title:"",price:""}]}))},ne=f=>{const j=c.carryCosts.filter((w,D)=>D!==f);d(w=>({...w,carryCosts:j}))},ie=(f,j,w)=>{const D=[...c.carryCosts];D[f][j]=w,d(q=>({...q,carryCosts:D}))},ce=(f,j)=>{const w=f.target.value;if(/^\d*\.?\d*$/.test(w)||w===""){const q=c.carryCosts.map((Y,se)=>se===j?{...Y,price:w,isInvalid:!1}:Y);d({...c,carryCosts:q})}else{const q=c.carryCosts.map((Y,se)=>se===j?{...Y,isInvalid:!0}:Y);d({...c,carryCosts:q})}},de=()=>c.carryCosts.reduce((f,j)=>{const w=parseFloat(j.price);return f+(isNaN(w)?0:w)},0),ye=()=>{d(f=>({...f,renovationCost:[...f.renovationCost,{title:"",price:""}]}))},Ot=f=>{const j=c.renovationCost.filter((w,D)=>D!==f);d(w=>({...w,renovationCost:j}))},or=(f,j,w)=>{const D=[...c.renovationCost];D[f][j]=w,d(q=>({...q,renovationCost:D}))},va=(f,j)=>{const w=f.target.value;if(/^\d*\.?\d*$/.test(w)||w===""){const q=c.renovationCost.map((Y,se)=>se===j?{...Y,price:w,isInvalid:!1}:Y);d({...c,renovationCost:q})}else{const q=c.renovationCost.map((Y,se)=>se===j?{...Y,isInvalid:!0}:Y);d({...c,renovationCost:q})}},Yr=()=>c.renovationCost.reduce((f,j)=>{const w=parseFloat(j.price);return f+(isNaN(w)?0:w)},0),Kr=()=>{const f=ee(),j=de(),w=Yr();return f+j+w},Bt=()=>{const f=Kr(),j=L();return f+j},Gr=()=>{d(f=>({...f,costPaidOutofClosing:[...f.costPaidOutofClosing,{title:"",price:""}]}))},In=f=>{const j=c.costPaidOutofClosing.filter((w,D)=>D!==f);d(w=>({...w,costPaidOutofClosing:j}))},ga=(f,j,w)=>{const D=[...c.costPaidOutofClosing];D[f][j]=w,d(q=>({...q,costPaidOutofClosing:D}))},xa=(f,j)=>{const w=f.target.value;if(/^\d*\.?\d*$/.test(w)||w===""){const q=c.costPaidOutofClosing.map((Y,se)=>se===j?{...Y,price:w,isInvalid:!1}:Y);d({...c,costPaidOutofClosing:q})}else{const q=c.costPaidOutofClosing.map((Y,se)=>se===j?{...Y,isInvalid:!0}:Y);d({...c,costPaidOutofClosing:q})}},Qr=()=>c.costPaidOutofClosing.reduce((f,j)=>{const w=parseFloat(j.price);return f+(isNaN(w)?0:w)},0),en=()=>{const f=c.sellingPriceBtoC,j=Qr();return f-j},Jr=()=>{d(f=>({...f,adjustments:[...f.adjustments,{title:"",price:""}]}))},tn=f=>{const j=c.adjustments.filter((w,D)=>D!==f);d(w=>({...w,adjustments:j}))},ya=(f,j,w)=>{const D=[...c.adjustments];D[f][j]=w,d(q=>({...q,adjustments:D}))},ja=(f,j)=>{const w=f.target.value;if(/^\d*\.?\d*$/.test(w)||w===""){const q=c.adjustments.map((Y,se)=>se===j?{...Y,price:w,isInvalid:!1}:Y);d({...c,adjustments:q})}else{const q=c.adjustments.map((Y,se)=>se===j?{...Y,isInvalid:!0}:Y);d({...c,adjustments:q})}},Xr=()=>c.adjustments.reduce((f,j)=>{const w=parseFloat(j.price);return f+(isNaN(w)?0:w)},0),ui=()=>{const f=en(),j=Xr();return f+j},Zr=()=>{d(f=>({...f,incomestatement:[...f.incomestatement,{title:"",price:""}]}))},di=f=>{const j=c.incomestatement.filter((w,D)=>D!==f);d(w=>({...w,incomestatement:j}))},Na=(f,j,w)=>{const D=[...c.incomestatement];D[f][j]=w,d(q=>({...q,incomestatement:D}))},Ca=(f,j)=>{const w=f.target.value;if(/^\d*\.?\d*$/.test(w)||w===""){const q=c.incomestatement.map((Y,se)=>se===j?{...Y,price:w,isInvalid:!1}:Y);d({...c,incomestatement:q})}else{const q=c.incomestatement.map((Y,se)=>se===j?{...Y,isInvalid:!0}:Y);d({...c,incomestatement:q})}},eo=()=>c.incomestatement.reduce((f,j)=>{const w=parseFloat(j.price);return f+(isNaN(w)?0:w)},0),Rn=()=>{const f=eo(),j=en();return f+j},Dn=()=>{const f=isNaN(parseFloat(Rn()))?0:parseFloat(Rn()),j=isNaN(parseFloat(c.shorttermrental))?0:parseFloat(c.shorttermrental),w=isNaN(parseFloat(c.OtherIncome))?0:parseFloat(c.OtherIncome),D=isNaN(parseFloat(c.InsuranceClaim))?0:parseFloat(c.InsuranceClaim),q=isNaN(parseFloat(c.LongTermRental))?0:parseFloat(c.LongTermRental),Y=isNaN(parseFloat(Bt()))?0:parseFloat(Bt());return f+j+w+D+q-Y},zt=()=>{const f=Dn(),j=c.FinancingCostClosingCost;return f-j},ir=()=>zt(),to=()=>{var f,j,w,D,q,Y;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 se=ir(),fi=P(),wa=Z(),Sa=T(),ka=ee(),Ea=X(),Pa=L(),_a=de(),Oa=Yr(),Ta=Kr(),Aa=Bt(),Ia=Qr(),Ra=Xr(),Gh=ui(),Qh=en(),Jh=en(),Xh=eo(),Zh=Rn(),ev=Dn(),tv=zt(),Da={...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:(D=l==null?void 0:l.result)==null?void 0:D.title,useremail:(q=l==null?void 0:l.result)==null?void 0:q.email,userId:(Y=l==null?void 0:l.result)==null?void 0:Y.userId,totalPurchaseCosts:fi,totalcredits:Ea,totalPurchaseCostsaftercredits:wa,totalcashAdjustments:Sa,totalcashrequiredonsettlement:Pa,totalincidentalCost:ka,totalcarryCosts:_a,totalrenovationCost:Oa,totalRenovationsandHoldingCost:Ta,totalCoststoBuyAtoB:Aa,totalcostPaidOutofClosing:Ia,totaladjustments:Ra,fundsavailablefordistribution:Gh,grossproceedsperHUD:Qh,totalCosttoSellBtoC:Jh,totalincomestatement:Xh,netBtoCsalevalue:Zh,netprofitbeforefinancingcosts:ev,NetProfit:tv,rateofreturn:se};Array.isArray(c.propertyTaxInfo)&&c.propertyTaxInfo.length>0?Da.propertyTaxInfo=c.propertyTaxInfo:Da.propertyTaxInfo=[],i(Xi(Da)),x(!0)}else ae.error("Please fill all fields before submitting",{position:"top-right",autoClose:3e3})};R.useEffect(()=>{p&&(s==="succeeded"?(ae.success("Property submitted successfully!",{position:"top-right",autoClose:3e3}),x(!1)):s==="failed"&&(ae.error(`Failed to submit: ${a}`,{position:"top-right",autoClose:3e3}),x(!1)))},[s,a,p]);const[ba,S]=R.useState("0 days"),k=(f,j)=>{if(f&&j){const w=new Date(f),D=new Date(j),q=Math.abs(D-w),Y=Math.ceil(q/(1e3*60*60*24));S(`${Y} days`)}else S("0 days")};return r.jsx(r.Fragment,{children:r.jsxs("div",{className:"container tabs-wrap",children:[r.jsx(Ae,{}),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:h,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:h,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:h,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:h,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:h,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:h,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:h,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:h,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:h,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:h,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:h,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:h,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:h,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:h,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:h,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:h,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:h,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:h,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:h,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:h,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:h,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:h,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:h,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:h,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:h,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:h,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:h,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=>h(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=>h(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=>h(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=>h(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:()=>m(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=>C(j,w)})}),r.jsxs("div",{className:"col-md-4 d-flex align-items-center",children:[r.jsx(Du,{multiple:!1,onDone:w=>b(w,j)}),r.jsx("button",{type:"button",className:"btn btn-danger",onClick:()=>N(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:g,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:h,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:o,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;d({...c,closeDateAtoB:j}),k(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;d({...c,closeDateBtoC:j}),k(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:u.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);d({...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:`$ ${ir().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:ba,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);d({...c,purchaseCost:j,isPurchaseCostInvalid:!w})},onKeyPress:f=>{const j=f.charCode;(j<48||j>57)&&j!==46&&(f.preventDefault(),d({...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=>_(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:`$ ${P().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:()=>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:M,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:X(),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=>Q(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: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: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 Cash Required on Settlement"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalcashrequiredonsettlement",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.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=>G(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:()=>$(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=>ie(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=>ce(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=>or(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=>va(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:()=>Ot(j),style:{marginLeft:"5px"},children:"x"})})]},j)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:ye,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:Yr(),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:Kr(),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:Bt(),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);d({...c,sellingPriceBtoC:j,isPurchaseCostInvalid:!w})},onKeyPress:f=>{const j=f.charCode;(j<48||j>57)&&j!==46&&(f.preventDefault(),d({...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=>ga(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=>xa(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:()=>In(j),style:{marginLeft:"5px"},children:"x"})})]},j)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:Gr,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:Qr(),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: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.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: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:"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=>ya(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=>ja(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:()=>tn(j),style:{marginLeft:"5px"},children:"x"})})]},j)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:Jr,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:Xr(),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:ui(),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=>Na(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=>Ca(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:()=>di(j),style:{marginLeft:"5px"},children:"x"})})]},j)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:Zr,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:eo(),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:Rn(),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:Bt(),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);d({...c,fundspriortoclosing:j,isfundspriortoclosingInvalid:!w})},onKeyPress:f=>{const j=f.charCode;(j<48||j>57)&&j!==46&&(f.preventDefault(),d({...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:Rn(),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);d({...c,shorttermrental:j,isPurchaseCostInvalid:!w})},onKeyPress:f=>{const j=f.charCode;(j<48||j>57)&&j!==46&&(f.preventDefault(),d({...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);d({...c,OtherIncome:j,isPurchaseCostInvalid:!w})},onKeyPress:f=>{const j=f.charCode;(j<48||j>57)&&j!==46&&(f.preventDefault(),d({...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);d({...c,InsuranceClaim:j,isPurchaseCostInvalid:!w})},onKeyPress:f=>{const j=f.charCode;(j<48||j>57)&&j!==46&&(f.preventDefault(),d({...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);d({...c,LongTermRental:j,isPurchaseCostInvalid:!w})},onKeyPress:f=>{const j=f.charCode;(j<48||j>57)&&j!==46&&(f.preventDefault(),d({...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:Dn(),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);d({...c,FinancingCostClosingCost:j,isFinancingCostClosingCostInvalid:!w})},onKeyPress:f=>{const j=f.charCode;(j<48||j>57)&&j!==46&&(f.preventDefault(),d({...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:zt(),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: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:to,children:"Submit"})," "]}),r.jsx("br",{})]})]})]})})},Dt="/assets/propertydummy-DhVEZ7jN.jpg",TN=()=>{var u;const e=Pt(),{user:t}=tt(c=>({...c.auth})),{userProperties:n,totalPages:o}=tt(c=>c.property),[i,s]=R.useState(1),a=5;R.useEffect(()=>{e(Zi({userId:t.result.userId,page:i,limit:a}))},[e,(u=t==null?void 0:t.result)==null?void 0:u.userId,i]);const l=c=>{s(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||Dt,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(ge,{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(ge,{to:`/property/${c.propertyId}`,target:"_blank",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(ge,{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:o},(c,d)=>d+1).map(c=>c===i||c===1||c===o||c>=i-1&&c<=i+1?r.jsx("button",{onClick:()=>l(c),disabled:i===c,children:c},c):c===2||c===o-1?r.jsx("span",{children:"..."},c):null),r.jsx("button",{onClick:()=>l(i+1),disabled:i===o,children:"Next"})]})]}):r.jsx("p",{children:"No active properties found."})})},AN=()=>{var d,p,x,b,g,N,C,h,v,m,y,E;const{user:e,isLoading:t,error:n}=tt(_=>_.auth),o=Pt(),i=Vr(),[s,a]=R.useState({userId:((d=e==null?void 0:e.result)==null?void 0:d.userId)||"",title:((p=e==null?void 0:e.result)==null?void 0:p.title)||"",firstName:((x=e==null?void 0:e.result)==null?void 0:x.firstName)||"",middleName:((b=e==null?void 0:e.result)==null?void 0:b.middleName)||"",lastName:((g=e==null?void 0:e.result)==null?void 0:g.lastName)||"",email:((N=e==null?void 0:e.result)==null?void 0:N.email)||"",aboutme:((C=e==null?void 0:e.result)==null?void 0:C.aboutme)||"",city:((h=e==null?void 0:e.result)==null?void 0:h.city)||"",state:((v=e==null?void 0:e.result)==null?void 0:v.state)||"",county:((m=e==null?void 0:e.result)==null?void 0:m.county)||"",zip:((y=e==null?void 0:e.result)==null?void 0:y.zip)||"",profileImage:((E=e==null?void 0:e.result)==null?void 0:E.profileImage)||""});R.useEffect(()=>{e&&a({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 l=_=>{a({...s,[_.target.name]:_.target.value})},u=()=>{a({...s,profileImage:""})},c=_=>{_.preventDefault(),o(Gi(s)),i("/login")};return r.jsx(r.Fragment,{children:r.jsxs("form",{onSubmit:c,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:s.title,onChange:l,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:s.firstName,onChange:l})]})}),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:s.middleName,onChange:l})]})}),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:s.lastName,onChange:l})]})}),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:s.email,onChange:l,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:s.aboutme,onChange:l})]})}),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:s.city,onChange:l,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:s.state,onChange:l,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:s.county,onChange:l,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:s.zip,onChange:l,required:!0})]})}),r.jsxs("div",{className:"col-4",children:[r.jsx("label",{children:"Profile Image"}),r.jsx("div",{className:"mb-3",children:r.jsx(Du,{type:"file",multiple:!1,onDone:({base64:_})=>a({...s,profileImage:_})})})]}),s.profileImage&&r.jsxs("div",{className:"col-4 mb-3",children:[r.jsx("img",{src:s.profileImage,alt:"Profile Preview",style:{width:"150px",height:"150px",borderRadius:"50%"}}),r.jsx("button",{type:"button",className:"btn btn-danger mt-2",onClick:u,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"})})}),n&&r.jsx("p",{children:n})]})})},IN=()=>{const[e,t]=R.useState("dashboard"),{user:n}=tt(i=>i.auth),o=()=>{switch(e){case"Userdetails":return r.jsx(AN,{});case"addProperty":return r.jsx(ON,{});case"activeProperties":return r.jsxs("div",{children:[r.jsx("h3",{children:"Active Properties"}),r.jsx(TN,{})]});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(Ae,{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsxs("div",{className:"d-flex flex-row",children:[r.jsx("div",{className:"col-md-3",children:r.jsxs("div",{className:"card card1 p-5",children:[r.jsx("img",{className:"img-fluid",src:n.result.profileImage||ns,alt:"ProfileImage",style:{marginTop:"0px",maxWidth:"200px",maxHeight:"200px"}}),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==="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==="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",children:r.jsxs("div",{className:"card card2 p-1",children:[r.jsx("br",{}),r.jsxs("span",{children:["Welcome to"," ",r.jsx("span",{style:{color:"#067ADC"},children:r.jsxs(ge,{to:`/profile/${n.result.userId}`,className:"link-primary text-decoration-none",target:"_blank",children:[n.result.title,". ",n.result.firstName," ",n.result.middleName," ",n.result.lastName]})})]}),r.jsx("br",{}),o()]})})]}),r.jsx(He,{})]})};var Hh={exports:{}},RN="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",DN=RN,FN=DN;function Yh(){}function Kh(){}Kh.resetWarningCache=Yh;var LN=function(){function e(o,i,s,a,l,u){if(u!==FN){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:Kh,resetWarningCache:Yh};return n.PropTypes=n,n};Hh.exports=LN();var MN=Hh.exports;const BN=Oc(MN),zN=()=>{const[e,t]=R.useState(3),n=Vr();return R.useEffect(()=>{const o=setInterval(()=>{t(i=>--i)},1e3);return e===0&&n("/login"),()=>clearInterval(o)},[e,n]),r.jsx("div",{style:{marginTop:"100px"},children:r.jsxs("h5",{children:["Redirecting you in ",e," seconds"]})})},rs=({children:e})=>{const{user:t}=tt(n=>({...n.auth}));return t?e:r.jsx(zN,{})};rs.propTypes={children:BN.node.isRequired};const WN=()=>{const e=Pt(),{id:t,token:n}=Hr();return R.useEffect(()=>{e(Ji({id:t,token:n}))},[e,t,n]),r.jsxs(r.Fragment,{children:[r.jsx(Ae,{}),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(ge,{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(He,{})]})},$N=()=>{const[e,t]=R.useState(""),[n,o]=R.useState(""),i="http://67.225.129.127:3002",s=async()=>{try{const a=await me.post(`${i}/users/forgotpassword`,{email:e});o(a.data.message)}catch(a){console.error("Forgot Password Error:",a),o(a.response.data.message)}};return r.jsxs(r.Fragment,{children:[r.jsx(Ae,{}),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:s,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(ge,{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(He,{})]})]})},UN=()=>{const{userId:e,token:t}=Hr(),[n,o]=R.useState(""),[i,s]=R.useState(""),[a,l]=R.useState(""),u="http://67.225.129.127:3002",c=async()=>{try{if(!n||n.trim()===""){l("Password not entered"),ae.error("Password not entered");return}const d=await me.post(`${u}/users/resetpassword/${e}/${t}`,{userId:e,token:t,password:n});if(n!==i){l("Passwords do not match."),ae.error("Passwords do not match.");return}else l("Password reset successfull"),ae.success(d.data.message)}catch(d){console.error("Reset Password Error:",d)}};return R.useEffect(()=>{ae.dismiss()},[]),r.jsxs(r.Fragment,{children:[r.jsx(Ae,{}),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:d=>o(d.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:d=>s(d.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(He,{})]})},qN=()=>r.jsxs(r.Fragment,{children:[r.jsx(Ae,{}),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(He,{})]}),VN=()=>{const{id:e}=Hr(),t=Pt(),{selectedProperty:n,status:o,error:i}=tt(l=>l.property),[s,a]=R.useState(!0);return R.useEffect(()=>{e&&(t(Eo(e)),a(!1))},[e,t]),o==="loading"?r.jsx("p",{children:"Loading property details..."}):o==="failed"?r.jsxs("p",{children:["Error loading property: ",i]}):r.jsxs(r.Fragment,{children:[r.jsx(Ae,{}),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..."}):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.jsx("div",{className:"col-md-5 mt-3",children:r.jsx("div",{className:"bg-white border",children:n.images&&n.images[0]?r.jsx("img",{src:n.images[0].file||Dt,alt:"Property Thumbnail",style:{marginTop:"0px",maxWidth:"500px",maxHeight:"500px"}}):r.jsx("img",{src:Dt,alt:"Default Property Thumbnail",style:{marginTop:"0px",maxWidth:"500px",maxHeight:"500px"}})})}),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("p",{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.jsx("span",{style:{color:"#fda417",fontSize:"15px"},children:"Zipcode:"})," ",n.zip]}),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:"",style:{color:"#fda417",fontSize:"15px"},children:["Cost per Square Foot:"," "]}),"$",n.costpersqft,"/sqft",r.jsx("p",{}),r.jsxs("span",{className:"",style:{color:"#fda417",fontSize:"15px"},children:["Year Built:"," "]}),n.yearBuild]}),r.jsxs("div",{className:"mt-3 card bg-white",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 details found."})}),r.jsx(He,{})]})},HN=()=>{const[e,t]=R.useState([]),[n,o]=R.useState(0),[i,s]=R.useState(0),[a]=R.useState(10),[l,u]=R.useState(""),[c,d]=R.useState(!1),[p,x]=R.useState(!1),b=async()=>{d(!0),x(!1);try{const h=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(h.data.data),o(h.data.totalRecords),l.trim()&&x(!0)}catch(h){console.log("Error fetching data:",h)}finally{d(!1)}},g=h=>{u(h.target.value),h.target.value.trim()===""&&(s(0),t([]),o(0),x(!1),b())},N=h=>{h.key==="Enter"&&(h.preventDefault(),b())};R.useEffect(()=>{b()},[l,i]);const C=Math.ceil(n/a);return r.jsxs(r.Fragment,{children:[r.jsx(Ae,{}),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:g,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:[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((h,v)=>r.jsxs("tr",{children:[r.jsx("td",{children:r.jsxs("div",{className:"widget-26-job-title",children:[r.jsx(ge,{to:`/properties/${h.house_id}`,className:"link-primary text-decoration-none",target:"_blank",children:h.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"}}),h.city,", ",h.county,",",h.state]}),r.jsxs("p",{className:"text-muted m-0",children:["House Id: ",h.house_id]})]})]})}),r.jsx("td",{children:r.jsx("div",{className:"widget-26-job-info",children:r.jsx("p",{className:"m-0",children:h.total_living_sqft})})}),r.jsx("td",{children:r.jsx("div",{className:"widget-26-job-info",children:r.jsx("p",{className:"m-0",children:h.year_built})})}),r.jsx("td",{children:r.jsxs("div",{className:"widget-26-job-salary",children:["$ ",h.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:()=>s(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:()=>s(i+1),disabled:i+1>=C||c,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Next"})]})]})})})})]}),r.jsx(He,{})]})},YN=()=>r.jsxs(r.Fragment,{children:[r.jsx(Ae,{}),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(He,{})]}),KN=()=>{const{house_id:e}=Hr();console.log("house_id",e);const[t,n]=R.useState(null),[o,i]=R.useState(!0);return R.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(Ae,{}),r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{}),r.jsx("div",{className:"container col-12",children:o?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:Dt,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(He,{})]})},GN=()=>{const{id:e}=Hr(),t=Pt(),[n,o]=R.useState("propertydetails"),i=()=>{n==="propertydetails"&&o("Images"),n==="Images"&&o("Accounting")},s=()=>{n==="Images"&&o("propertydetails"),n==="Accounting"&&o("Images")},{selectedProperty:a}=tt(S=>S.property),[l,u]=R.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];R.useEffect(()=>{t(Eo(e))},[t,e]),R.useEffect(()=>{a&&u({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 d=S=>{u({...l,[S.target.name]:S.target.value})},p=(S,k)=>{const{name:f,value:j}=S.target,w=[...l.propertyTaxInfo],D={...w[k]};D[f]=j,w[k]=D,u({...l,propertyTaxInfo:w})},x=S=>{S.preventDefault();const k=W(),f=F(),j=U(),w=B(),D=$(),q=ne(),Y=Ot(),se=Bt(),fi=Gr(),wa=In(),Sa=Jr(),ka=tn(),Ea=tn(),Pa=Zr(),_a=di(),Oa=Dn(),Ta=zt(),Aa=ir(),Ia=to(),Ra={...l,totalPurchaseCosts:k.toFixed(2),totalcredits:f.toFixed(2),totalPurchaseCostsaftercredits:j.toFixed(2),totalcashAdjustments:w.toFixed(2),totalcashrequiredonsettlement:D.toFixed(2),totalincidentalCost:q.toFixed(2),totalcarryCosts:Y.toFixed(2),totalrenovationCost:se.toFixed(2),totalRenovationsandHoldingCost:fi.toFixed(2),totalCoststoBuyAtoB:wa.toFixed(2),totalcostPaidOutofClosing:Sa.toFixed(2),totalCosttoSellBtoC:ka.toFixed(2),grossproceedsperHUD:Ea.toFixed(2),totaladjustments:Pa.toFixed(2),fundsavailablefordistribution:_a.toFixed(2),totalincomestatement:Oa.toFixed(2),netBtoCsalevalue:Ta.toFixed(2),netprofitbeforefinancingcosts:Aa.toFixed(2),netprofit:Ia.toFixed(2)};t(es({id:e,propertyData:Ra}))},b=()=>{u({...l,propertyTaxInfo:[...l.propertyTaxInfo,{propertytaxowned:"",ownedyear:"",taxassessed:"",taxyear:""}]})},g=S=>{const k=l.propertyTaxInfo.filter((f,j)=>j!==S);u({...l,propertyTaxInfo:k})},N=(S,k)=>{const f=[...l.images];f[k]={...f[k],file:S.base64},u({...l,images:f})},C=()=>{u({...l,images:[...l.images,{title:"",file:""}]})},h=S=>{const k=l.images.filter((f,j)=>j!==S);u({...l,images:k})},v=(S,k)=>{const f=[...l.images];f[S]={...f[S],title:k.target.value},u({...l,images:f})};R.useEffect(()=>{E(l.closeDateAtoB,l.closeDateBtoC)},[l.closeDateAtoB,l.closeDateBtoC]);const[m,y]=R.useState("0 days"),E=(S,k)=>{if(S&&k){const f=new Date(S),j=new Date(k),w=Math.abs(j-f),D=Math.ceil(w/(1e3*60*60*24));y(`${D} days`)}else y("0 days")},_=()=>{u(S=>({...S,costPaidAtoB:[...S.costPaidAtoB,{title:"",price:""}]}))},O=S=>{const k=l.costPaidAtoB.filter((f,j)=>j!==S);u(f=>({...f,costPaidAtoB:k}))},P=(S,k,f)=>{const j=[...l.costPaidAtoB];j[S][k]=f,u(w=>({...w,costPaidAtoB:j}))},M=(S,k)=>{let f=S.target.value;if(f=f.replace(/^\$/,"").trim(),/^\d*\.?\d*$/.test(f)||f===""){const w=l.costPaidAtoB.map((D,q)=>q===k?{...D,price:f,isInvalid:!1}:D);u({...l,costPaidAtoB:w})}else{const w=l.costPaidAtoB.map((D,q)=>q===k?{...D,isInvalid:!0}:D);u({...l,costPaidAtoB:w})}},W=()=>{const S=l.costPaidAtoB.reduce((f,j)=>{const w=parseFloat(j.price)||0;return f+w},0),k=parseFloat(l.purchaseCost)||0;return S+k},H=()=>{u(S=>({...S,credits:[...S.credits,{title:"",price:""}]}))},te=S=>{const k=l.credits.filter((f,j)=>j!==S);u(f=>({...f,credits:k}))},X=(S,k,f)=>{const j=[...l.credits];j[S][k]=f,u(w=>({...w,credits:j}))},Z=(S,k)=>{const f=S.target.value;if(/^\d*\.?\d*$/.test(f)||f===""){const w=l.credits.map((D,q)=>q===k?{...D,price:f,isInvalid:!1}:D);u({...l,credits:w})}else{const w=l.credits.map((D,q)=>q===k?{...D,isInvalid:!0}:D);u({...l,credits:w})}},F=()=>l.credits.reduce((S,k)=>{const f=parseFloat(k.price);return S+(isNaN(f)?0:f)},0),U=()=>{const S=l.costPaidAtoB.reduce((j,w)=>{const D=parseFloat(w.price)||0;return j+D},0),k=l.credits.reduce((j,w)=>{const D=parseFloat(w.price)||0;return j+D},0),f=parseFloat(l.purchaseCost)||0;return S+k+f},Q=()=>{u(S=>({...S,cashAdjustments:[...S.cashAdjustments,{title:"",price:""}]}))},A=S=>{const k=l.cashAdjustments.filter((f,j)=>j!==S);u(f=>({...f,cashAdjustments:k}))},T=(S,k,f)=>{const j=[...l.cashAdjustments];j[S][k]=f,u(w=>({...w,cashAdjustments:j}))},L=(S,k)=>{const f=S.target.value;if(/^\d*\.?\d*$/.test(f)||f===""){const w=l.cashAdjustments.map((D,q)=>q===k?{...D,price:f,isInvalid:!1}:D);u({...l,cashAdjustments:w})}else{const w=l.cashAdjustments.map((D,q)=>q===k?{...D,isInvalid:!0}:D);u({...l,cashAdjustments:w})}},B=()=>l.cashAdjustments.reduce((S,k)=>{const f=parseFloat(k.price);return S+(isNaN(f)?0:f)},0),$=()=>{const S=B(),k=F(),f=W();return S+k+f},K=()=>{u(S=>({...S,incidentalCost:[...S.incidentalCost,{title:"",price:""}]}))},G=S=>{const k=l.incidentalCost.filter((f,j)=>j!==S);u(f=>({...f,incidentalCost:k}))},ee=(S,k,f)=>{const j=[...l.incidentalCost];j[S][k]=f,u(w=>({...w,incidentalCost:j}))},re=(S,k)=>{const f=S.target.value;if(/^\d*\.?\d*$/.test(f)||f===""){const w=l.incidentalCost.map((D,q)=>q===k?{...D,price:f,isInvalid:!1}:D);u({...l,incidentalCost:w})}else{const w=l.incidentalCost.map((D,q)=>q===k?{...D,isInvalid:!0}:D);u({...l,incidentalCost:w})}},ne=()=>l.incidentalCost.reduce((S,k)=>{const f=parseFloat(k.price);return S+(isNaN(f)?0:f)},0),ie=()=>{u(S=>({...S,carryCosts:[...S.carryCosts,{title:"",price:""}]}))},ce=S=>{const k=l.carryCosts.filter((f,j)=>j!==S);u(f=>({...f,carryCosts:k}))},de=(S,k,f)=>{const j=[...l.carryCosts];j[S][k]=f,u(w=>({...w,carryCosts:j}))},ye=(S,k)=>{const f=S.target.value;if(/^\d*\.?\d*$/.test(f)||f===""){const w=l.carryCosts.map((D,q)=>q===k?{...D,price:f,isInvalid:!1}:D);u({...l,carryCosts:w})}else{const w=l.carryCosts.map((D,q)=>q===k?{...D,isInvalid:!0}:D);u({...l,carryCosts:w})}},Ot=()=>l.carryCosts.reduce((S,k)=>{const f=parseFloat(k.price);return S+(isNaN(f)?0:f)},0),or=()=>{u(S=>({...S,renovationCost:[...S.renovationCost,{title:"",price:""}]}))},va=S=>{const k=l.renovationCost.filter((f,j)=>j!==S);u(f=>({...f,renovationCost:k}))},Yr=(S,k,f)=>{const j=[...l.renovationCost];j[S][k]=f,u(w=>({...w,renovationCost:j}))},Kr=(S,k)=>{const f=S.target.value;if(/^\d*\.?\d*$/.test(f)||f===""){const w=l.renovationCost.map((D,q)=>q===k?{...D,price:f,isInvalid:!1}:D);u({...l,renovationCost:w})}else{const w=l.renovationCost.map((D,q)=>q===k?{...D,isInvalid:!0}:D);u({...l,renovationCost:w})}},Bt=()=>l.renovationCost.reduce((S,k)=>{const f=parseFloat(k.price);return S+(isNaN(f)?0:f)},0),Gr=()=>{const S=ne(),k=Ot(),f=Bt();return S+k+f},In=()=>{const S=Gr(),k=$();return S+k},ga=()=>{u(S=>({...S,costPaidOutofClosing:[...S.costPaidOutofClosing,{title:"",price:""}]}))},xa=S=>{const k=l.costPaidOutofClosing.filter((f,j)=>j!==S);u(f=>({...f,costPaidOutofClosing:k}))},Qr=(S,k,f)=>{const j=[...l.costPaidOutofClosing];j[S][k]=f,u(w=>({...w,costPaidOutofClosing:j}))},en=(S,k)=>{const f=S.target.value;if(/^\d*\.?\d*$/.test(f)||f===""){const w=l.costPaidOutofClosing.map((D,q)=>q===k?{...D,price:f,isInvalid:!1}:D);u({...l,costPaidOutofClosing:w})}else{const w=l.costPaidOutofClosing.map((D,q)=>q===k?{...D,isInvalid:!0}:D);u({...l,costPaidOutofClosing:w})}},Jr=()=>l.costPaidOutofClosing.reduce((S,k)=>{const f=parseFloat(k.price);return S+(isNaN(f)?0:f)},0),tn=()=>{const S=l.sellingPriceBtoC,k=Jr();return S-k},ya=()=>{u(S=>({...S,adjustments:[...S.adjustments,{title:"",price:""}]}))},ja=S=>{const k=l.adjustments.filter((f,j)=>j!==S);u(f=>({...f,adjustments:k}))},Xr=(S,k,f)=>{const j=[...l.adjustments];j[S][k]=f,u(w=>({...w,adjustments:j}))},ui=(S,k)=>{const f=S.target.value;if(/^\d*\.?\d*$/.test(f)||f===""){const w=l.adjustments.map((D,q)=>q===k?{...D,price:f,isInvalid:!1}:D);u({...l,adjustments:w})}else{const w=l.adjustments.map((D,q)=>q===k?{...D,isInvalid:!0}:D);u({...l,adjustments:w})}},Zr=()=>l.adjustments.reduce((S,k)=>{const f=parseFloat(k.price);return S+(isNaN(f)?0:f)},0),di=()=>{const S=tn(),k=Zr();return S+k},Na=()=>{u(S=>({...S,incomestatement:[...S.incomestatement,{title:"",price:""}]}))},Ca=S=>{const k=l.incomestatement.filter((f,j)=>j!==S);u(f=>({...f,incomestatement:k}))},eo=(S,k,f)=>{const j=[...l.incomestatement];j[S][k]=f,u(w=>({...w,incomestatement:j}))},Rn=(S,k)=>{const f=S.target.value;if(/^\d*\.?\d*$/.test(f)||f===""){const w=l.incomestatement.map((D,q)=>q===k?{...D,price:f,isInvalid:!1}:D);u({...l,incomestatement:w})}else{const w=l.incomestatement.map((D,q)=>q===k?{...D,isInvalid:!0}:D);u({...l,incomestatement:w})}},Dn=()=>l.incomestatement.reduce((S,k)=>{const f=parseFloat(k.price);return S+(isNaN(f)?0:f)},0),zt=()=>{const S=Dn(),k=tn();return S+k},ir=()=>{const S=isNaN(parseFloat(zt()))?0:parseFloat(zt()),k=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),D=isNaN(parseFloat(In()))?0:parseFloat(In());return S+k+f+j+w-D},to=()=>{const S=ir(),k=l.FinancingCostClosingCost;return S-k},ba=()=>to();return r.jsxs(r.Fragment,{children:[r.jsx(Ae,{}),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:()=>o("propertydetails"),role:"tab",children:"Property Details"})}),r.jsx("li",{role:"presentation",className:n==="Images"?"active tab":"tab",children:r.jsx("a",{onClick:()=>o("Images"),role:"tab",children:"Images, Maps"})}),r.jsx("li",{role:"presentation",className:n==="Accounting"?"active tab":"tab",children:r.jsx("a",{onClick:()=>o("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:d,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:d,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:d,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:d,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:d,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:d,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:d,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:d,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:d,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:d,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:d,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:d,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:d,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:d,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:d,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:d,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:d,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:d,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:d,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:d,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:d,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:d,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:d,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:d,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:d,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:d,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:d,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((S,k)=>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:S.propertytaxowned,onChange:f=>p(f,k),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:S.ownedyear,onChange:f=>p(f,k),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:S.taxassessed,onChange:f=>p(f,k),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:S.taxyear,onChange:f=>p(f,k),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:()=>g(k),style:{height:"25px",width:"35px"},children:"X"})]})})]},k)),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((S,k)=>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:S.title,placeholder:"Image Title",onChange:f=>v(k,f)})}),r.jsxs("div",{className:"col-md-4 d-flex align-items-center",children:[r.jsx(Du,{multiple:!1,onDone:f=>N(f,k)}),r.jsx("button",{type:"button",className:"btn btn-danger",onClick:()=>h(k),style:{marginLeft:"5px"},children:"Delete"})]}),S.file&&r.jsx("div",{className:"col-md-12",children:r.jsx("img",{src:S.file,alt:"uploaded",style:{width:"150px",height:"150px"}})})]},k)),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:d,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:s,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:S=>{const k=S.target.value;u({...l,closeDateAtoB:k}),E(k,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:S=>{const k=S.target.value;u({...l,closeDateBtoC:k}),E(l.closeDateAtoB,k)},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(S=>r.jsxs("div",{className:"form-check form-check-inline",children:[r.jsx("input",{className:"form-check-input",type:"radio",name:"renovationRisk",id:`renovationRisk${S}`,value:S,checked:l.renovationRisk===S,onChange:k=>{const f=parseInt(k.target.value,10);u({...l,renovationRisk:f})}}),r.jsx("label",{className:"form-check-label",htmlFor:`renovationRisk${S}`,children:S})]},S))})]}),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:`$ ${ba().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:m,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:S=>{let k=S.target.value.replace(/[^\d.]/g,"");const f=/^\d*\.?\d*$/.test(k);u({...l,purchaseCost:k,isPurchaseCostInvalid:!f})},onKeyPress:S=>{const k=S.charCode;(k<48||k>57)&&k!==46&&(S.preventDefault(),u({...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((S,k)=>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:S.title,onChange:f=>P(k,"title",f.target.value),placeholder:"Title",required:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${S.isInvalid?"is-invalid":""}`,value:`$ ${S.price}`,onChange:f=>M(f,k),placeholder:"Price",style:{textAlign:"right"},required:!0}),S.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(k),style:{marginLeft:"5px"},children:"x"})})]},k)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{onClick:_,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:`$ ${W().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((S,k)=>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:S.title,onChange:f=>X(k,"title",f.target.value),placeholder:"credits",required:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${S.isInvalid?"is-invalid":""}`,value:S.price,onChange:f=>Z(f,k),placeholder:"Price",style:{textAlign:"right"},required:!0}),S.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(k),style:{marginLeft:"5px"},children:"x"})})]},k)),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((S,k)=>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:S.title,onChange:f=>T(k,"title",f.target.value),placeholder:"Title",required:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${S.isInvalid?"is-invalid":""}`,value:S.price,onChange:f=>L(f,k),placeholder:"Price",style:{textAlign:"right"},required:!0}),S.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(k),style:{marginLeft:"5px"},children:"x"})})]},k)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:Q,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:$(),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((S,k)=>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:S.title,onChange:f=>ee(k,"title",f.target.value),placeholder:"Title",required:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${S.isInvalid?"is-invalid":""}`,value:S.price,onChange:f=>re(f,k),placeholder:"Price",style:{textAlign:"right"},required:!0}),S.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:()=>G(k),style:{marginLeft:"5px"},children:"x"})})]},k)),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((S,k)=>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:S.title,onChange:f=>de(k,"title",f.target.value),placeholder:"Title",required:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${S.isInvalid?"is-invalid":""}`,value:S.price,onChange:f=>ye(f,k),placeholder:"Price",style:{textAlign:"right"},required:!0}),S.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:()=>ce(k),style:{marginLeft:"5px"},children:"x"})})]},k)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:ie,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:Ot(),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((S,k)=>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:S.title,onChange:f=>Yr(k,"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 ${S.isInvalid?"is-invalid":""}`,value:S.price,onChange:f=>Kr(f,k),placeholder:"Price",style:{textAlign:"right"},required:!0}),S.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:()=>va(k),style:{marginLeft:"5px"},children:"x"})})]},k)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:or,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:Bt(),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:Gr(),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:In(),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:S=>{const k=S.target.value,f=/^\d*\.?\d*$/.test(k);u({...l,sellingPriceBtoC:k,isPurchaseCostInvalid:!f})},onKeyPress:S=>{const k=S.charCode;(k<48||k>57)&&k!==46&&(S.preventDefault(),u({...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((S,k)=>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:S.title,onChange:f=>Qr(k,"title",f.target.value),placeholder:"Title",required:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${S.isInvalid?"is-invalid":""}`,value:S.price,onChange:f=>en(f,k),placeholder:"Price",style:{textAlign:"right"},required:!0}),S.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:()=>xa(k),style:{marginLeft:"5px"},children:"x"})})]},k)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:ga,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:Jr(),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:tn(),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:tn(),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((S,k)=>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:S.title,onChange:f=>Xr(k,"title",f.target.value),placeholder:"Title",required:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${S.isInvalid?"is-invalid":""}`,value:S.price,onChange:f=>ui(f,k),placeholder:"Price",style:{textAlign:"right"},required:!0}),S.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:()=>ja(k),style:{marginLeft:"5px"},children:"x"})})]},k)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:ya,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:Zr(),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:di(),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((S,k)=>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:S.title,onChange:f=>eo(k,"title",f.target.value),placeholder:"Title",required:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${S.isInvalid?"is-invalid":""}`,value:S.price,onChange:f=>Rn(f,k),placeholder:"Price",style:{textAlign:"right"},required:!0}),S.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:()=>Ca(k),style:{marginLeft:"5px"},children:"x"})})]},k)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:Na,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:Dn(),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:zt(),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:In(),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:S=>{const k=S.target.value,f=/^\d*\.?\d*$/.test(k);u({...l,fundspriortoclosing:k,isfundspriortoclosingInvalid:!f})},onKeyPress:S=>{const k=S.charCode;(k<48||k>57)&&k!==46&&(S.preventDefault(),u({...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: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:"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:S=>{const k=S.target.value,f=/^\d*\.?\d*$/.test(k);u({...l,shorttermrental:k,isPurchaseCostInvalid:!f})},onKeyPress:S=>{const k=S.charCode;(k<48||k>57)&&k!==46&&(S.preventDefault(),u({...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:S=>{const k=S.target.value,f=/^\d*\.?\d*$/.test(k);u({...l,OtherIncome:k,isPurchaseCostInvalid:!f})},onKeyPress:S=>{const k=S.charCode;(k<48||k>57)&&k!==46&&(S.preventDefault(),u({...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:S=>{const k=S.target.value,f=/^\d*\.?\d*$/.test(k);u({...l,InsuranceClaim:k,isPurchaseCostInvalid:!f})},onKeyPress:S=>{const k=S.charCode;(k<48||k>57)&&k!==46&&(S.preventDefault(),u({...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:S=>{const k=S.target.value,f=/^\d*\.?\d*$/.test(k);u({...l,LongTermRental:k,isPurchaseCostInvalid:!f})},onKeyPress:S=>{const k=S.charCode;(k<48||k>57)&&k!==46&&(S.preventDefault(),u({...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:ir(),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:S=>{const k=S.target.value,f=/^\d*\.?\d*$/.test(k);u({...l,FinancingCostClosingCost:k,isFinancingCostClosingCostInvalid:!f})},onKeyPress:S=>{const k=S.charCode;(k<48||k>57)&&k!==46&&(S.preventDefault(),u({...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:to(),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: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:x,children:"Submit"})," "]}),r.jsx("br",{})]})]})]})})]})},QN=()=>{const e=Pt(),{properties:t,loading:n,totalPages:o,currentPage:i}=tt(N=>N.property),[s,a]=R.useState(""),[l,u]=R.useState([]),[c,d]=R.useState(1),p=10;R.useEffect(()=>{e(Po({page:c,limit:p,keyword:s}))},[e,c,s]),R.useEffect(()=>{s.trim()?u(t.filter(N=>N.address.toLowerCase().includes(s.toLowerCase()))):u(t)},[s,t]);const x=N=>{a(N.target.value)},b=N=>{N.preventDefault()},g=N=>{d(N),e(Po({page:N,limit:p,keyword:s}))};return r.jsxs(r.Fragment,{children:[r.jsx(Ae,{}),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:s,onChange:x,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||Dt,alt:"Property Thumbnail",style:{width:"100px",height:"auto"}}):r.jsx("img",{src:Dt,alt:"Default Property Thumbnail",style:{width:"100px",height:"auto"}})}),r.jsx("td",{children:r.jsxs("div",{className:"widget-26-job-title",children:[r.jsx(ge,{to:`/property/${N.propertyId}`,className:"link-primary text-decoration-none",target:"_blank",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:()=>g(i-1),children:"Previous"})}),Array.from({length:o},(N,C)=>r.jsx("li",{className:`page-item ${i===C+1?"active":""}`,children:r.jsx("button",{className:"page-link",onClick:()=>g(C+1),children:C+1})},C+1)),r.jsx("li",{className:`page-item ${i===o?"disabled":""}`,children:r.jsx("button",{className:"page-link",onClick:()=>g(i+1),children:"Next"})})]})})]}),r.jsx(He,{})]})},JN=()=>{const{userId:e}=Hr(),t=Pt(),{user:n,loading:o}=tt(i=>i.user);return console.log("user",n),R.useEffect(()=>{e&&t(Qi(e))},[e,t]),o?r.jsx("div",{children:"Loading..."}):r.jsxs(r.Fragment,{children:[r.jsx(Ae,{}),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",{src:n.profileImage,alt:"Admin",className:"rounded-circle",width:150}),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:Dt,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:Dt,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:Dt,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:Dt,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.jsx("h2",{className:"d-flex flex-column align-items-center text-center",style:{color:"#fda417",border:"#fda417",fontSize:"60px",fontWeight:"normal"},children:"$ 500,000"}),r.jsx("span",{className:"d-flex flex-column align-items-center text-center",children:r.jsx("button",{className:"btn btn-primary btn-lg ",type:"submit",style:{backgroundColor:"#fda417",border:"#fda417"},children:"Request"})}),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:ns,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:ns,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:ns,style:{marginTop:"0px",maxWidth:"50px",maxHeight:"50px"}}),"Ravichandu"]})})]})]})})})]})})]})},XN=()=>r.jsxs(A0,{children:[r.jsx(Q0,{}),r.jsxs(w0,{children:[r.jsx(_e,{path:"/",element:r.jsx(X0,{})}),r.jsx(_e,{path:"/about",element:r.jsx(Z0,{})}),r.jsx(_e,{path:"/services",element:r.jsx(YN,{})}),r.jsx(_e,{path:"/contact",element:r.jsx(eN,{})}),r.jsx(_e,{path:"/register",element:r.jsx(kN,{})}),r.jsx(_e,{path:"/registrationsuccess",element:r.jsx(rs,{children:r.jsx(qN,{})})}),r.jsx(_e,{path:"/login",element:r.jsx(PN,{})}),r.jsx(_e,{path:"/dashboard",element:r.jsx(rs,{children:r.jsx(IN,{})})}),r.jsx(_e,{path:"/users/:id/verify/:token",element:r.jsx(WN,{})}),r.jsx(_e,{path:"/forgotpassword",element:r.jsx($N,{})}),r.jsx(_e,{path:"/users/resetpassword/:userId/:token",element:r.jsx(UN,{})}),r.jsx(_e,{path:"/property/:id",element:r.jsx(VN,{})}),r.jsx(_e,{path:"/properties/:house_id",element:r.jsx(KN,{})}),r.jsx(_e,{path:"/searchmyproperties",element:r.jsx(HN,{})}),r.jsx(_e,{path:"/searchproperties",element:r.jsx(QN,{})}),r.jsx(_e,{path:"/editproperty/:id",element:r.jsx(rs,{children:r.jsx(GN,{})})}),r.jsx(_e,{path:"/profile/:userId",element:r.jsx(JN,{})})]})]});Mm(document.getElementById("root")).render(r.jsx(R.StrictMode,{children:r.jsx(Xx,{store:L1,children:r.jsx(XN,{})})})); diff --git a/ef-ui/dist/assets/index-B2o9sH6t.js b/ef-ui/dist/assets/index-B2o9sH6t.js new file mode 100644 index 0000000..d5334ca --- /dev/null +++ b/ef-ui/dist/assets/index-B2o9sH6t.js @@ -0,0 +1,89 @@ +var Tg=Object.defineProperty;var Rg=(e,t,n)=>t in e?Tg(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var dl=(e,t,n)=>Rg(e,typeof t!="symbol"?t+"":t,n);function Ag(e,t){for(var n=0;no[s]})}}}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 s of document.querySelectorAll('link[rel="modulepreload"]'))o(s);new MutationObserver(s=>{for(const i of s)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&o(a)}).observe(document,{childList:!0,subtree:!0});function n(s){const i={};return s.integrity&&(i.integrity=s.integrity),s.referrerPolicy&&(i.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?i.credentials="include":s.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function o(s){if(s.ep)return;s.ep=!0;const i=n(s);fetch(s.href,i)}})();var Ig=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Cs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var _p={exports:{}},va={},Op={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 bs=Symbol.for("react.element"),Dg=Symbol.for("react.portal"),Fg=Symbol.for("react.fragment"),Mg=Symbol.for("react.strict_mode"),Lg=Symbol.for("react.profiler"),Bg=Symbol.for("react.provider"),zg=Symbol.for("react.context"),$g=Symbol.for("react.forward_ref"),Wg=Symbol.for("react.suspense"),Ug=Symbol.for("react.memo"),qg=Symbol.for("react.lazy"),Od=Symbol.iterator;function Vg(e){return e===null||typeof e!="object"?null:(e=Od&&e[Od]||e["@@iterator"],typeof e=="function"?e:null)}var Tp={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Rp=Object.assign,Ap={};function uo(e,t,n){this.props=e,this.context=t,this.refs=Ap,this.updater=n||Tp}uo.prototype.isReactComponent={};uo.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")};uo.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Ip(){}Ip.prototype=uo.prototype;function xu(e,t,n){this.props=e,this.context=t,this.refs=Ap,this.updater=n||Tp}var yu=xu.prototype=new Ip;yu.constructor=xu;Rp(yu,uo.prototype);yu.isPureReactComponent=!0;var Td=Array.isArray,Dp=Object.prototype.hasOwnProperty,ju={current:null},Fp={key:!0,ref:!0,__self:!0,__source:!0};function Mp(e,t,n){var o,s={},i=null,a=null;if(t!=null)for(o in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(i=""+t.key),t)Dp.call(t,o)&&!Fp.hasOwnProperty(o)&&(s[o]=t[o]);var l=arguments.length-2;if(l===1)s.children=n;else if(1>>1,W=R[F];if(0>>1;Fs(ee,L))res(ne,ee)?(R[F]=ne,R[re]=L,F=re):(R[F]=ee,R[Y]=L,F=Y);else if(res(ne,L))R[F]=ne,R[re]=L,F=re;else break e}}return A}function s(R,A){var L=R.sortIndex-A.sortIndex;return L!==0?L:R.id-A.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 u=[],c=[],d=1,f=null,g=3,b=!1,x=!1,N=!1,C=typeof setTimeout=="function"?setTimeout:null,h=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 m(R){for(var A=n(c);A!==null;){if(A.callback===null)o(c);else if(A.startTime<=R)o(c),A.sortIndex=A.expirationTime,t(u,A);else break;A=n(c)}}function y(R){if(N=!1,m(R),!x)if(n(u)!==null)x=!0,U(E);else{var A=n(c);A!==null&&G(y,A.startTime-R)}}function E(R,A){x=!1,N&&(N=!1,h(O),O=-1),b=!0;var L=g;try{for(m(A),f=n(u);f!==null&&(!(f.expirationTime>A)||R&&!H());){var F=f.callback;if(typeof F=="function"){f.callback=null,g=f.priorityLevel;var W=F(f.expirationTime<=A);A=e.unstable_now(),typeof W=="function"?f.callback=W:f===n(u)&&o(u),m(A)}else o(u);f=n(u)}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=L,b=!1}}var P=!1,T=null,O=-1,B=5,$=-1;function H(){return!(e.unstable_now()-$R||125F?(R.sortIndex=L,t(c,R),n(u)===null&&R===n(c)&&(N?(h(O),O=-1):N=!0,G(y,L-F))):(R.sortIndex=W,t(u,R),x||b||(x=!0,U(E))),R},e.unstable_shouldYield=H,e.unstable_wrapCallback=function(R){var A=g;return function(){var L=g;g=A;try{return R.apply(this,arguments)}finally{g=L}}}})(Wp);$p.exports=Wp;var nx=$p.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 rx=S,mt=nx;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"),tc=Object.prototype.hasOwnProperty,ox=/^[: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]*$/,Ad={},Id={};function sx(e){return tc.call(Id,e)?!0:tc.call(Ad,e)?!1:ox.test(e)?Id[e]=!0:(Ad[e]=!0,!1)}function ix(e,t,n,o){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return o?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function ax(e,t,n,o){if(t===null||typeof t>"u"||ix(e,t,n,o))return!0;if(o)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 Je(e,t,n,o,s,i,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=o,this.attributeNamespace=s,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var $e={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){$e[e]=new Je(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];$e[t]=new Je(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){$e[e]=new Je(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){$e[e]=new Je(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){$e[e]=new Je(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){$e[e]=new Je(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){$e[e]=new Je(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){$e[e]=new Je(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){$e[e]=new Je(e,5,!1,e.toLowerCase(),null,!1,!1)});var Cu=/[\-:]([a-z])/g;function bu(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(Cu,bu);$e[t]=new Je(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(Cu,bu);$e[t]=new Je(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(Cu,bu);$e[t]=new Je(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){$e[e]=new Je(e,1,!1,e.toLowerCase(),null,!1,!1)});$e.xlinkHref=new Je("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){$e[e]=new Je(e,1,!1,e.toLowerCase(),null,!0,!0)});function wu(e,t,n,o){var s=$e.hasOwnProperty(t)?$e[t]:null;(s!==null?s.type!==0:o||!(2l||s[a]!==i[l]){var u=` +`+s[a].replace(" at new "," at ");return e.displayName&&u.includes("")&&(u=u.replace("",e.displayName)),u}while(1<=a&&0<=l);break}}}finally{ml=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Ao(e):""}function lx(e){switch(e.tag){case 5:return Ao(e.type);case 16:return Ao("Lazy");case 13:return Ao("Suspense");case 19:return Ao("SuspenseList");case 0:case 2:case 15:return e=hl(e.type,!1),e;case 11:return e=hl(e.type.render,!1),e;case 1:return e=hl(e.type,!0),e;default:return""}}function sc(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 Tr:return"Portal";case nc:return"Profiler";case Su:return"StrictMode";case rc:return"Suspense";case oc:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Vp:return(e.displayName||"Context")+".Consumer";case qp:return(e._context.displayName||"Context")+".Provider";case Eu:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ku:return t=e.displayName||null,t!==null?t:sc(e.type)||"Memo";case jn:t=e._payload,e=e._init;try{return sc(e(t))}catch{}}return null}function cx(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 sc(t);case 8:return t===Su?"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 $n(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Kp(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function ux(e){var t=Kp(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),o=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var s=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return s.call(this)},set:function(a){o=""+a,i.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return o},setValue:function(a){o=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Bs(e){e._valueTracker||(e._valueTracker=ux(e))}function Yp(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),o="";return e&&(o=Kp(e)?e.checked?"true":"false":e.value),e=o,e!==n?(t.setValue(e),!0):!1}function Ti(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 ic(e,t){var n=t.checked;return Se({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Fd(e,t){var n=t.defaultValue==null?"":t.defaultValue,o=t.checked!=null?t.checked:t.defaultChecked;n=$n(t.value!=null?t.value:n),e._wrapperState={initialChecked:o,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Gp(e,t){t=t.checked,t!=null&&wu(e,"checked",t,!1)}function ac(e,t){Gp(e,t);var n=$n(t.value),o=t.type;if(n!=null)o==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(o==="submit"||o==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?lc(e,t.type,n):t.hasOwnProperty("defaultValue")&&lc(e,t.type,$n(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Md(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var o=t.type;if(!(o!=="submit"&&o!=="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 lc(e,t,n){(t!=="number"||Ti(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Io=Array.isArray;function Gr(e,t,n,o){if(e=e.options,t){t={};for(var s=0;s"+t.valueOf().toString()+"",t=zs.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Zo(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Bo={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},dx=["Webkit","ms","Moz","O"];Object.keys(Bo).forEach(function(e){dx.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Bo[t]=Bo[e]})});function Zp(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Bo.hasOwnProperty(e)&&Bo[e]?(""+t).trim():t+"px"}function em(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var o=n.indexOf("--")===0,s=Zp(n,t[n],o);n==="float"&&(n="cssFloat"),o?e.setProperty(n,s):e[n]=s}}var fx=Se({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 dc(e,t){if(t){if(fx[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 fc(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 pc=null;function Pu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var mc=null,Qr=null,Xr=null;function zd(e){if(e=Es(e)){if(typeof mc!="function")throw Error(V(280));var t=e.stateNode;t&&(t=Na(t),mc(e.stateNode,e.type,t))}}function tm(e){Qr?Xr?Xr.push(e):Xr=[e]:Qr=e}function nm(){if(Qr){var e=Qr,t=Xr;if(Xr=Qr=null,zd(e),t)for(e=0;e>>=0,e===0?32:31-(bx(e)/wx|0)|0}var $s=64,Ws=4194304;function Do(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 Di(e,t){var n=e.pendingLanes;if(n===0)return 0;var o=0,s=e.suspendedLanes,i=e.pingedLanes,a=n&268435455;if(a!==0){var l=a&~s;l!==0?o=Do(l):(i&=a,i!==0&&(o=Do(i)))}else a=n&~s,a!==0?o=Do(a):i!==0&&(o=Do(i));if(o===0)return 0;if(t!==0&&t!==o&&!(t&s)&&(s=o&-o,i=t&-t,s>=i||s===16&&(i&4194240)!==0))return t;if(o&4&&(o|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=o;0n;n++)t.push(e);return t}function ws(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Rt(t),e[t]=n}function Px(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 o=e.eventTimes;for(e=e.expirationTimes;0=$o),Gd=" ",Qd=!1;function Cm(e,t){switch(e){case"keyup":return ny.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function bm(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ar=!1;function oy(e,t){switch(e){case"compositionend":return bm(t);case"keypress":return t.which!==32?null:(Qd=!0,Gd);case"textInput":return e=t.data,e===Gd&&Qd?null:e;default:return null}}function sy(e,t){if(Ar)return e==="compositionend"||!Fu&&Cm(e,t)?(e=jm(),ci=Au=Pn=null,Ar=!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=o}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=ef(n)}}function km(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?km(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Pm(){for(var e=window,t=Ti();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Ti(e.document)}return t}function Mu(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 my(e){var t=Pm(),n=e.focusedElem,o=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&km(n.ownerDocument.documentElement,n)){if(o!==null&&Mu(n)){if(t=o.start,e=o.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 s=n.textContent.length,i=Math.min(o.start,s);o=o.end===void 0?i:Math.min(o.end,s),!e.extend&&i>o&&(s=o,o=i,i=s),s=tf(n,i);var a=tf(n,o);s&&a&&(e.rangeCount!==1||e.anchorNode!==s.node||e.anchorOffset!==s.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(s.node,s.offset),e.removeAllRanges(),i>o?(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,Ir=null,jc=null,Uo=null,Nc=!1;function nf(e,t,n){var o=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Nc||Ir==null||Ir!==Ti(o)||(o=Ir,"selectionStart"in o&&Mu(o)?o={start:o.selectionStart,end:o.selectionEnd}:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection(),o={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}),Uo&&ss(Uo,o)||(Uo=o,o=Li(jc,"onSelect"),0Mr||(e.current=kc[Mr],kc[Mr]=null,Mr--)}function ge(e,t){Mr++,kc[Mr]=e.current,e.current=t}var Wn={},Ve=Vn(Wn),rt=Vn(!1),hr=Wn;function no(e,t){var n=e.type.contextTypes;if(!n)return Wn;var o=e.stateNode;if(o&&o.__reactInternalMemoizedUnmaskedChildContext===t)return o.__reactInternalMemoizedMaskedChildContext;var s={},i;for(i in n)s[i]=t[i];return o&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=s),s}function ot(e){return e=e.childContextTypes,e!=null}function zi(){je(rt),je(Ve)}function uf(e,t,n){if(Ve.current!==Wn)throw Error(V(168));ge(Ve,t),ge(rt,n)}function Mm(e,t,n){var o=e.stateNode;if(t=t.childContextTypes,typeof o.getChildContext!="function")return n;o=o.getChildContext();for(var s in o)if(!(s in t))throw Error(V(108,cx(e)||"Unknown",s));return Se({},n,o)}function $i(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Wn,hr=Ve.current,ge(Ve,e),ge(rt,rt.current),!0}function df(e,t,n){var o=e.stateNode;if(!o)throw Error(V(169));n?(e=Mm(e,t,hr),o.__reactInternalMemoizedMergedChildContext=e,je(rt),je(Ve),ge(Ve,e)):je(rt),ge(rt,n)}var rn=null,Ca=!1,_l=!1;function Lm(e){rn===null?rn=[e]:rn.push(e)}function Ey(e){Ca=!0,Lm(e)}function Hn(){if(!_l&&rn!==null){_l=!0;var e=0,t=me;try{var n=rn;for(me=1;e>=a,s-=a,on=1<<32-Rt(t)+s|n<O?(B=T,T=null):B=T.sibling;var $=g(h,T,m[O],y);if($===null){T===null&&(T=B);break}e&&T&&$.alternate===null&&t(h,T),v=i($,v,O),P===null?E=$:P.sibling=$,P=$,T=B}if(O===m.length)return n(h,T),Ce&&er(h,O),E;if(T===null){for(;OO?(B=T,T=null):B=T.sibling;var H=g(h,T,$.value,y);if(H===null){T===null&&(T=B);break}e&&T&&H.alternate===null&&t(h,T),v=i(H,v,O),P===null?E=H:P.sibling=H,P=H,T=B}if($.done)return n(h,T),Ce&&er(h,O),E;if(T===null){for(;!$.done;O++,$=m.next())$=f(h,$.value,y),$!==null&&(v=i($,v,O),P===null?E=$:P.sibling=$,P=$);return Ce&&er(h,O),E}for(T=o(h,T);!$.done;O++,$=m.next())$=b(T,h,O,$.value,y),$!==null&&(e&&$.alternate!==null&&T.delete($.key===null?O:$.key),v=i($,v,O),P===null?E=$:P.sibling=$,P=$);return e&&T.forEach(function(te){return t(h,te)}),Ce&&er(h,O),E}function C(h,v,m,y){if(typeof m=="object"&&m!==null&&m.type===Rr&&m.key===null&&(m=m.props.children),typeof m=="object"&&m!==null){switch(m.$$typeof){case Ls:e:{for(var E=m.key,P=v;P!==null;){if(P.key===E){if(E=m.type,E===Rr){if(P.tag===7){n(h,P.sibling),v=s(P,m.props.children),v.return=h,h=v;break e}}else if(P.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===jn&&mf(E)===P.type){n(h,P.sibling),v=s(P,m.props),v.ref=_o(h,P,m),v.return=h,h=v;break e}n(h,P);break}else t(h,P);P=P.sibling}m.type===Rr?(v=dr(m.props.children,h.mode,y,m.key),v.return=h,h=v):(y=gi(m.type,m.key,m.props,null,h.mode,y),y.ref=_o(h,v,m),y.return=h,h=y)}return a(h);case Tr:e:{for(P=m.key;v!==null;){if(v.key===P)if(v.tag===4&&v.stateNode.containerInfo===m.containerInfo&&v.stateNode.implementation===m.implementation){n(h,v.sibling),v=s(v,m.children||[]),v.return=h,h=v;break e}else{n(h,v);break}else t(h,v);v=v.sibling}v=Ml(m,h.mode,y),v.return=h,h=v}return a(h);case jn:return P=m._init,C(h,v,P(m._payload),y)}if(Io(m))return x(h,v,m,y);if(wo(m))return N(h,v,m,y);Gs(h,m)}return typeof m=="string"&&m!==""||typeof m=="number"?(m=""+m,v!==null&&v.tag===6?(n(h,v.sibling),v=s(v,m),v.return=h,h=v):(n(h,v),v=Fl(m,h.mode,y),v.return=h,h=v),a(h)):n(h,v)}return C}var oo=Wm(!0),Um=Wm(!1),qi=Vn(null),Vi=null,zr=null,$u=null;function Wu(){$u=zr=Vi=null}function Uu(e){var t=qi.current;je(qi),e._currentValue=t}function Oc(e,t,n){for(;e!==null;){var o=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,o!==null&&(o.childLanes|=t)):o!==null&&(o.childLanes&t)!==t&&(o.childLanes|=t),e===n)break;e=e.return}}function Zr(e,t){Vi=e,$u=zr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(nt=!0),e.firstContext=null)}function wt(e){var t=e._currentValue;if($u!==e)if(e={context:e,memoizedValue:t,next:null},zr===null){if(Vi===null)throw Error(V(308));zr=e,Vi.dependencies={lanes:0,firstContext:e}}else zr=zr.next=e;return t}var ar=null;function qu(e){ar===null?ar=[e]:ar.push(e)}function qm(e,t,n,o){var s=t.interleaved;return s===null?(n.next=n,qu(t)):(n.next=s.next,s.next=n),t.interleaved=n,un(e,o)}function un(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 Nn=!1;function Vu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Vm(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 Fn(e,t,n){var o=e.updateQueue;if(o===null)return null;if(o=o.shared,fe&2){var s=o.pending;return s===null?t.next=t:(t.next=s.next,s.next=t),o.pending=t,un(e,n)}return s=o.interleaved,s===null?(t.next=t,qu(o)):(t.next=s.next,s.next=t),o.interleaved=t,un(e,n)}function di(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var o=t.lanes;o&=e.pendingLanes,n|=o,t.lanes=n,Ou(e,n)}}function hf(e,t){var n=e.updateQueue,o=e.alternate;if(o!==null&&(o=o.updateQueue,n===o)){var s=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?s=i=a:i=i.next=a,n=n.next}while(n!==null);i===null?s=i=t:i=i.next=t}else s=i=t;n={baseState:o.baseState,firstBaseUpdate:s,lastBaseUpdate:i,shared:o.shared,effects:o.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Hi(e,t,n,o){var s=e.updateQueue;Nn=!1;var i=s.firstBaseUpdate,a=s.lastBaseUpdate,l=s.shared.pending;if(l!==null){s.shared.pending=null;var u=l,c=u.next;u.next=null,a===null?i=c:a.next=c,a=u;var d=e.alternate;d!==null&&(d=d.updateQueue,l=d.lastBaseUpdate,l!==a&&(l===null?d.firstBaseUpdate=c:l.next=c,d.lastBaseUpdate=u))}if(i!==null){var f=s.baseState;a=0,d=c=u=null,l=i;do{var g=l.lane,b=l.eventTime;if((o&g)===g){d!==null&&(d=d.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=Se({},f,g);break e;case 2:Nn=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,g=s.effects,g===null?s.effects=[l]:g.push(l))}else b={eventTime:b,lane:g,tag:l.tag,payload:l.payload,callback:l.callback,next:null},d===null?(c=d=b,u=f):d=d.next=b,a|=g;if(l=l.next,l===null){if(l=s.shared.pending,l===null)break;g=l,l=g.next,g.next=null,s.lastBaseUpdate=g,s.shared.pending=null}}while(!0);if(d===null&&(u=f),s.baseState=u,s.firstBaseUpdate=c,s.lastBaseUpdate=d,t=s.shared.interleaved,t!==null){s=t;do a|=s.lane,s=s.next;while(s!==t)}else i===null&&(s.shared.lanes=0);xr|=a,e.lanes=a,e.memoizedState=f}}function vf(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var o=Tl.transition;Tl.transition={};try{e(!1),t()}finally{me=n,Tl.transition=o}}function lh(){return St().memoizedState}function Oy(e,t,n){var o=Ln(e);if(n={lane:o,action:n,hasEagerState:!1,eagerState:null,next:null},ch(e))uh(t,n);else if(n=qm(e,t,n,o),n!==null){var s=Ge();At(n,e,o,s),dh(n,t,o)}}function Ty(e,t,n){var o=Ln(e),s={lane:o,action:n,hasEagerState:!1,eagerState:null,next:null};if(ch(e))uh(t,s);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(s.hasEagerState=!0,s.eagerState=l,Dt(l,a)){var u=t.interleaved;u===null?(s.next=s,qu(t)):(s.next=u.next,u.next=s),t.interleaved=s;return}}catch{}finally{}n=qm(e,t,s,o),n!==null&&(s=Ge(),At(n,e,o,s),dh(n,t,o))}}function ch(e){var t=e.alternate;return e===we||t!==null&&t===we}function uh(e,t){qo=Yi=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function dh(e,t,n){if(n&4194240){var o=t.lanes;o&=e.pendingLanes,n|=o,t.lanes=n,Ou(e,n)}}var Gi={readContext:wt,useCallback:We,useContext:We,useEffect:We,useImperativeHandle:We,useInsertionEffect:We,useLayoutEffect:We,useMemo:We,useReducer:We,useRef:We,useState:We,useDebugValue:We,useDeferredValue:We,useTransition:We,useMutableSource:We,useSyncExternalStore:We,useId:We,unstable_isNewReconciler:!1},Ry={readContext:wt,useCallback:function(e,t){return qt().memoizedState=[e,t===void 0?null:t],e},useContext:wt,useEffect:xf,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,pi(4194308,4,rh.bind(null,t,e),n)},useLayoutEffect:function(e,t){return pi(4194308,4,e,t)},useInsertionEffect:function(e,t){return pi(4,2,e,t)},useMemo:function(e,t){var n=qt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var o=qt();return t=n!==void 0?n(t):t,o.memoizedState=o.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},o.queue=e,e=e.dispatch=Oy.bind(null,we,e),[o.memoizedState,e]},useRef:function(e){var t=qt();return e={current:e},t.memoizedState=e},useState:gf,useDebugValue:Zu,useDeferredValue:function(e){return qt().memoizedState=e},useTransition:function(){var e=gf(!1),t=e[0];return e=_y.bind(null,e[1]),qt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var o=we,s=qt();if(Ce){if(n===void 0)throw Error(V(407));n=n()}else{if(n=t(),De===null)throw Error(V(349));gr&30||Gm(o,t,n)}s.memoizedState=n;var i={value:n,getSnapshot:t};return s.queue=i,xf(Xm.bind(null,o,i,e),[e]),o.flags|=2048,ps(9,Qm.bind(null,o,i,n,t),void 0,null),n},useId:function(){var e=qt(),t=De.identifierPrefix;if(Ce){var n=sn,o=on;n=(o&~(1<<32-Rt(o)-1)).toString(32)+n,t=":"+t+"R"+n,n=ds++,0<\/script>",e=e.removeChild(e.firstChild)):typeof o.is=="string"?e=a.createElement(n,{is:o.is}):(e=a.createElement(n),n==="select"&&(a=e,o.multiple?a.multiple=!0:o.size&&(a.size=o.size))):e=a.createElementNS(e,n),e[Ht]=t,e[ls]=o,Nh(e,t,!1,!1),t.stateNode=e;e:{switch(a=fc(n,o),n){case"dialog":ye("cancel",e),ye("close",e),s=o;break;case"iframe":case"object":case"embed":ye("load",e),s=o;break;case"video":case"audio":for(s=0;sao&&(t.flags|=128,o=!0,Oo(i,!1),t.lanes=4194304)}else{if(!o)if(e=Ki(a),e!==null){if(t.flags|=128,o=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Oo(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!Ce)return Ue(t),null}else 2*Pe()-i.renderingStartTime>ao&&n!==1073741824&&(t.flags|=128,o=!0,Oo(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=Pe(),t.sibling=null,n=be.current,ge(be,o?n&1|2:n&1),t):(Ue(t),null);case 22:case 23:return sd(),o=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==o&&(t.flags|=8192),o&&t.mode&1?lt&1073741824&&(Ue(t),t.subtreeFlags&6&&(t.flags|=8192)):Ue(t),null;case 24:return null;case 25:return null}throw Error(V(156,t.tag))}function zy(e,t){switch(Bu(t),t.tag){case 1:return ot(t.type)&&zi(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return so(),je(rt),je(Ve),Yu(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Ku(t),null;case 13:if(je(be),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(V(340));ro()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return je(be),null;case 4:return so(),null;case 10:return Uu(t.type._context),null;case 22:case 23:return sd(),null;case 24:return null;default:return null}}var Xs=!1,qe=!1,$y=typeof WeakSet=="function"?WeakSet:Set,J=null;function $r(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(o){Ee(e,t,o)}else n.current=null}function Bc(e,t,n){try{n()}catch(o){Ee(e,t,o)}}var _f=!1;function Wy(e,t){if(Cc=Fi,e=Pm(),Mu(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var o=n.getSelection&&n.getSelection();if(o&&o.rangeCount!==0){n=o.anchorNode;var s=o.anchorOffset,i=o.focusNode;o=o.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var a=0,l=-1,u=-1,c=0,d=0,f=e,g=null;t:for(;;){for(var b;f!==n||s!==0&&f.nodeType!==3||(l=a+s),f!==i||o!==0&&f.nodeType!==3||(u=a+o),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===s&&(l=a),g===i&&++d===o&&(u=a),(b=f.nextSibling)!==null)break;f=g,g=f.parentNode}f=b}n=l===-1||u===-1?null:{start:l,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(bc={focusedElem:e,selectionRange:n},Fi=!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,h=t.stateNode,v=h.getSnapshotBeforeUpdate(t.elementType===t.type?N:Pt(t.type,N),C);h.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var m=t.stateNode.containerInfo;m.nodeType===1?m.textContent="":m.nodeType===9&&m.documentElement&&m.removeChild(m.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=_f,_f=!1,x}function Vo(e,t,n){var o=t.updateQueue;if(o=o!==null?o.lastEffect:null,o!==null){var s=o=o.next;do{if((s.tag&e)===e){var i=s.destroy;s.destroy=void 0,i!==void 0&&Bc(t,n,i)}s=s.next}while(s!==o)}}function Sa(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 o=n.create;n.destroy=o()}n=n.next}while(n!==t)}}function zc(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 wh(e){var t=e.alternate;t!==null&&(e.alternate=null,wh(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ht],delete t[ls],delete t[Ec],delete t[wy],delete t[Sy])),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 Sh(e){return e.tag===5||e.tag===3||e.tag===4}function Of(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Sh(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 $c(e,t,n){var o=e.tag;if(o===5||o===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=Bi));else if(o!==4&&(e=e.child,e!==null))for($c(e,t,n),e=e.sibling;e!==null;)$c(e,t,n),e=e.sibling}function Wc(e,t,n){var o=e.tag;if(o===5||o===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(o!==4&&(e=e.child,e!==null))for(Wc(e,t,n),e=e.sibling;e!==null;)Wc(e,t,n),e=e.sibling}var Be=null,_t=!1;function xn(e,t,n){for(n=n.child;n!==null;)Eh(e,t,n),n=n.sibling}function Eh(e,t,n){if(Gt&&typeof Gt.onCommitFiberUnmount=="function")try{Gt.onCommitFiberUnmount(ga,n)}catch{}switch(n.tag){case 5:qe||$r(n,t);case 6:var o=Be,s=_t;Be=null,xn(e,t,n),Be=o,_t=s,Be!==null&&(_t?(e=Be,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Be.removeChild(n.stateNode));break;case 18:Be!==null&&(_t?(e=Be,n=n.stateNode,e.nodeType===8?Pl(e.parentNode,n):e.nodeType===1&&Pl(e,n),rs(e)):Pl(Be,n.stateNode));break;case 4:o=Be,s=_t,Be=n.stateNode.containerInfo,_t=!0,xn(e,t,n),Be=o,_t=s;break;case 0:case 11:case 14:case 15:if(!qe&&(o=n.updateQueue,o!==null&&(o=o.lastEffect,o!==null))){s=o=o.next;do{var i=s,a=i.destroy;i=i.tag,a!==void 0&&(i&2||i&4)&&Bc(n,t,a),s=s.next}while(s!==o)}xn(e,t,n);break;case 1:if(!qe&&($r(n,t),o=n.stateNode,typeof o.componentWillUnmount=="function"))try{o.props=n.memoizedProps,o.state=n.memoizedState,o.componentWillUnmount()}catch(l){Ee(n,t,l)}xn(e,t,n);break;case 21:xn(e,t,n);break;case 22:n.mode&1?(qe=(o=qe)||n.memoizedState!==null,xn(e,t,n),qe=o):xn(e,t,n);break;default:xn(e,t,n)}}function Tf(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new $y),t.forEach(function(o){var s=Xy.bind(null,e,o);n.has(o)||(n.add(o),o.then(s,s))})}}function kt(e,t){var n=t.deletions;if(n!==null)for(var o=0;os&&(s=a),o&=~i}if(o=s,o=Pe()-o,o=(120>o?120:480>o?480:1080>o?1080:1920>o?1920:3e3>o?3e3:4320>o?4320:1960*qy(o/1960))-o,10e?16:e,_n===null)var o=!1;else{if(e=_n,_n=null,Ji=0,fe&6)throw Error(V(331));var s=fe;for(fe|=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 u=0;uPe()-rd?ur(e,0):nd|=n),st(e,t)}function Ih(e,t){t===0&&(e.mode&1?(t=Ws,Ws<<=1,!(Ws&130023424)&&(Ws=4194304)):t=1);var n=Ge();e=un(e,t),e!==null&&(ws(e,t,n),st(e,n))}function Qy(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Ih(e,n)}function Xy(e,t){var n=0;switch(e.tag){case 13:var o=e.stateNode,s=e.memoizedState;s!==null&&(n=s.retryLane);break;case 19:o=e.stateNode;break;default:throw Error(V(314))}o!==null&&o.delete(t),Ih(e,n)}var Dh;Dh=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||rt.current)nt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return nt=!1,Ly(e,t,n);nt=!!(e.flags&131072)}else nt=!1,Ce&&t.flags&1048576&&Bm(t,Ui,t.index);switch(t.lanes=0,t.tag){case 2:var o=t.type;mi(e,t),e=t.pendingProps;var s=no(t,Ve.current);Zr(t,n),s=Qu(null,t,o,e,s,n);var i=Xu();return t.flags|=1,typeof s=="object"&&s!==null&&typeof s.render=="function"&&s.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,ot(o)?(i=!0,$i(t)):i=!1,t.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,Vu(t),s.updater=wa,t.stateNode=s,s._reactInternals=t,Rc(t,o,e,n),t=Dc(null,t,o,!0,i,n)):(t.tag=0,Ce&&i&&Lu(t),Ke(null,t,s,n),t=t.child),t;case 16:o=t.elementType;e:{switch(mi(e,t),e=t.pendingProps,s=o._init,o=s(o._payload),t.type=o,s=t.tag=Zy(o),e=Pt(o,e),s){case 0:t=Ic(null,t,o,e,n);break e;case 1:t=Ef(null,t,o,e,n);break e;case 11:t=wf(null,t,o,e,n);break e;case 14:t=Sf(null,t,o,Pt(o.type,e),n);break e}throw Error(V(306,o,""))}return t;case 0:return o=t.type,s=t.pendingProps,s=t.elementType===o?s:Pt(o,s),Ic(e,t,o,s,n);case 1:return o=t.type,s=t.pendingProps,s=t.elementType===o?s:Pt(o,s),Ef(e,t,o,s,n);case 3:e:{if(xh(t),e===null)throw Error(V(387));o=t.pendingProps,i=t.memoizedState,s=i.element,Vm(e,t),Hi(t,o,null,n);var a=t.memoizedState;if(o=a.element,i.isDehydrated)if(i={element:o,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){s=io(Error(V(423)),t),t=kf(e,t,o,n,s);break e}else if(o!==s){s=io(Error(V(424)),t),t=kf(e,t,o,n,s);break e}else for(ct=Dn(t.stateNode.containerInfo.firstChild),ft=t,Ce=!0,Ot=null,n=Um(t,null,o,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(ro(),o===s){t=dn(e,t,n);break e}Ke(e,t,o,n)}t=t.child}return t;case 5:return Hm(t),e===null&&_c(t),o=t.type,s=t.pendingProps,i=e!==null?e.memoizedProps:null,a=s.children,wc(o,s)?a=null:i!==null&&wc(o,i)&&(t.flags|=32),gh(e,t),Ke(e,t,a,n),t.child;case 6:return e===null&&_c(t),null;case 13:return yh(e,t,n);case 4:return Hu(t,t.stateNode.containerInfo),o=t.pendingProps,e===null?t.child=oo(t,null,o,n):Ke(e,t,o,n),t.child;case 11:return o=t.type,s=t.pendingProps,s=t.elementType===o?s:Pt(o,s),wf(e,t,o,s,n);case 7:return Ke(e,t,t.pendingProps,n),t.child;case 8:return Ke(e,t,t.pendingProps.children,n),t.child;case 12:return Ke(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(o=t.type._context,s=t.pendingProps,i=t.memoizedProps,a=s.value,ge(qi,o._currentValue),o._currentValue=a,i!==null)if(Dt(i.value,a)){if(i.children===s.children&&!rt.current){t=dn(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 u=l.firstContext;u!==null;){if(u.context===o){if(i.tag===1){u=an(-1,n&-n),u.tag=2;var c=i.updateQueue;if(c!==null){c=c.shared;var d=c.pending;d===null?u.next=u:(u.next=d.next,d.next=u),c.pending=u}}i.lanes|=n,u=i.alternate,u!==null&&(u.lanes|=n),Oc(i.return,n,t),l.lanes|=n;break}u=u.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),Oc(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}Ke(e,t,s.children,n),t=t.child}return t;case 9:return s=t.type,o=t.pendingProps.children,Zr(t,n),s=wt(s),o=o(s),t.flags|=1,Ke(e,t,o,n),t.child;case 14:return o=t.type,s=Pt(o,t.pendingProps),s=Pt(o.type,s),Sf(e,t,o,s,n);case 15:return hh(e,t,t.type,t.pendingProps,n);case 17:return o=t.type,s=t.pendingProps,s=t.elementType===o?s:Pt(o,s),mi(e,t),t.tag=1,ot(o)?(e=!0,$i(t)):e=!1,Zr(t,n),fh(t,o,s),Rc(t,o,s,n),Dc(null,t,o,!0,e,n);case 19:return jh(e,t,n);case 22:return vh(e,t,n)}throw Error(V(156,t.tag))};function Fh(e,t){return cm(e,t)}function Jy(e,t,n,o){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=o,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ct(e,t,n,o){return new Jy(e,t,n,o)}function ad(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Zy(e){if(typeof e=="function")return ad(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Eu)return 11;if(e===ku)return 14}return 2}function Bn(e,t){var n=e.alternate;return n===null?(n=Ct(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 gi(e,t,n,o,s,i){var a=2;if(o=e,typeof e=="function")ad(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case Rr:return dr(n.children,s,i,t);case Su:a=8,s|=8;break;case nc:return e=Ct(12,n,t,s|2),e.elementType=nc,e.lanes=i,e;case rc:return e=Ct(13,n,t,s),e.elementType=rc,e.lanes=i,e;case oc:return e=Ct(19,n,t,s),e.elementType=oc,e.lanes=i,e;case Hp:return ka(n,s,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case qp:a=10;break e;case Vp:a=9;break e;case Eu:a=11;break e;case ku:a=14;break e;case jn:a=16,o=null;break e}throw Error(V(130,e==null?e:typeof e,""))}return t=Ct(a,n,t,s),t.elementType=e,t.type=o,t.lanes=i,t}function dr(e,t,n,o){return e=Ct(7,e,o,t),e.lanes=n,e}function ka(e,t,n,o){return e=Ct(22,e,o,t),e.elementType=Hp,e.lanes=n,e.stateNode={isHidden:!1},e}function Fl(e,t,n){return e=Ct(6,e,null,t),e.lanes=n,e}function Ml(e,t,n){return t=Ct(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function ej(e,t,n,o,s){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=gl(0),this.expirationTimes=gl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gl(0),this.identifierPrefix=o,this.onRecoverableError=s,this.mutableSourceEagerHydrationData=null}function ld(e,t,n,o,s,i,a,l,u){return e=new ej(e,t,n,l,u),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Ct(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:o,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Vu(i),e}function tj(e,t,n){var o=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(zh)}catch(e){console.error(e)}}zh(),zp.exports=gt;var $h=zp.exports;const Ur=Cs($h);var Wh,Bf=$h;Wh=Bf.createRoot,Bf.hydrateRoot;var Uh={exports:{}},qh={};/** + * @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 Ps=S;function ij(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var aj=typeof Object.is=="function"?Object.is:ij,lj=Ps.useSyncExternalStore,cj=Ps.useRef,uj=Ps.useEffect,dj=Ps.useMemo,fj=Ps.useDebugValue;qh.useSyncExternalStoreWithSelector=function(e,t,n,o,s){var i=cj(null);if(i.current===null){var a={hasValue:!1,value:null};i.current=a}else a=i.current;i=dj(function(){function u(b){if(!c){if(c=!0,d=b,b=o(b),s!==void 0&&a.hasValue){var x=a.value;if(s(x,b))return f=x}return f=b}if(x=f,aj(d,b))return x;var N=o(b);return s!==void 0&&s(x,N)?x:(d=b,f=N)}var c=!1,d,f,g=n===void 0?null:n;return[function(){return u(t())},g===null?void 0:function(){return u(g())}]},[t,n,o,s]);var l=lj(e,i[0],i[1]);return uj(function(){a.hasValue=!0,a.value=l},[l]),fj(l),l};Uh.exports=qh;var pj=Uh.exports,ut="default"in ec?I:ec,zf=Symbol.for("react-redux-context"),$f=typeof globalThis<"u"?globalThis:{};function mj(){if(!ut.createContext)return{};const e=$f[zf]??($f[zf]=new Map);let t=e.get(ut.createContext);return t||(t=ut.createContext(null),e.set(ut.createContext,t)),t}var Un=mj(),hj=()=>{throw new Error("uSES not initialized!")};function fd(e=Un){return function(){return ut.useContext(e)}}var Vh=fd(),Hh=hj,vj=e=>{Hh=e},gj=(e,t)=>e===t;function xj(e=Un){const t=e===Un?Vh:fd(e),n=(o,s={})=>{const{equalityFn:i=gj,devModeChecks:a={}}=typeof s=="function"?{equalityFn:s}:s,{store:l,subscription:u,getServerState:c,stabilityCheck:d,identityFunctionCheck:f}=t();ut.useRef(!0);const g=ut.useCallback({[o.name](x){return o(x)}}[o.name],[o,d,a.stabilityCheck]),b=Hh(u.addNestedSub,l.getState,c||l.getState,g,i);return ut.useDebugValue(b),b};return Object.assign(n,{withTypes:()=>n}),n}var Qe=xj();function yj(e){e()}function jj(){let e=null,t=null;return{clear(){e=null,t=null},notify(){yj(()=>{let n=e;for(;n;)n.callback(),n=n.next})},get(){const n=[];let o=e;for(;o;)n.push(o),o=o.next;return n},subscribe(n){let o=!0;const s=t={callback:n,next:null,prev:t};return s.prev?s.prev.next=s:e=s,function(){!o||e===null||(o=!1,s.next?s.next.prev=s.prev:t=s.prev,s.prev?s.prev.next=s.next:e=s.next)}}}}var Wf={notify(){},get:()=>[]};function Nj(e,t){let n,o=Wf,s=0,i=!1;function a(N){d();const C=o.subscribe(N);let h=!1;return()=>{h||(h=!0,C(),f())}}function l(){o.notify()}function u(){x.onStateChange&&x.onStateChange()}function c(){return i}function d(){s++,n||(n=e.subscribe(u),o=jj())}function f(){s--,n&&s===0&&(n(),n=void 0,o.clear(),o=Wf)}function g(){i||(i=!0,d())}function b(){i&&(i=!1,f())}const x={addNestedSub:a,notifyNestedSubs:l,handleChangeWrapper:u,isSubscribed:c,trySubscribe:g,tryUnsubscribe:b,getListeners:()=>o};return x}var Cj=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",bj=typeof navigator<"u"&&navigator.product==="ReactNative",wj=Cj||bj?ut.useLayoutEffect:ut.useEffect;function Sj({store:e,context:t,children:n,serverState:o,stabilityCheck:s="once",identityFunctionCheck:i="once"}){const a=ut.useMemo(()=>{const c=Nj(e);return{store:e,subscription:c,getServerState:o?()=>o:void 0,stabilityCheck:s,identityFunctionCheck:i}},[e,o,s,i]),l=ut.useMemo(()=>e.getState(),[e]);wj(()=>{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 u=t||Un;return ut.createElement(u.Provider,{value:a},n)}var Ej=Sj;function Kh(e=Un){const t=e===Un?Vh:fd(e),n=()=>{const{store:o}=t();return o};return Object.assign(n,{withTypes:()=>n}),n}var kj=Kh();function Pj(e=Un){const t=e===Un?kj:Kh(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var Ft=Pj();vj(pj.useSyncExternalStoreWithSelector);function Le(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 _j=typeof Symbol=="function"&&Symbol.observable||"@@observable",Uf=_j,Ll=()=>Math.random().toString(36).substring(7).split("").join("."),Oj={INIT:`@@redux/INIT${Ll()}`,REPLACE:`@@redux/REPLACE${Ll()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Ll()}`},ta=Oj;function pd(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 Yh(e,t,n){if(typeof e!="function")throw new Error(Le(2));if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(Le(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(Le(1));return n(Yh)(e,t)}let o=e,s=t,i=new Map,a=i,l=0,u=!1;function c(){a===i&&(a=new Map,i.forEach((C,h)=>{a.set(h,C)}))}function d(){if(u)throw new Error(Le(3));return s}function f(C){if(typeof C!="function")throw new Error(Le(4));if(u)throw new Error(Le(5));let h=!0;c();const v=l++;return a.set(v,C),function(){if(h){if(u)throw new Error(Le(6));h=!1,c(),a.delete(v),i=null}}}function g(C){if(!pd(C))throw new Error(Le(7));if(typeof C.type>"u")throw new Error(Le(8));if(typeof C.type!="string")throw new Error(Le(17));if(u)throw new Error(Le(9));try{u=!0,s=o(s,C)}finally{u=!1}return(i=a).forEach(v=>{v()}),C}function b(C){if(typeof C!="function")throw new Error(Le(10));o=C,g({type:ta.REPLACE})}function x(){const C=f;return{subscribe(h){if(typeof h!="object"||h===null)throw new Error(Le(11));function v(){const y=h;y.next&&y.next(d())}return v(),{unsubscribe:C(v)}},[Uf](){return this}}}return g({type:ta.INIT}),{dispatch:g,subscribe:f,getState:d,replaceReducer:b,[Uf]:x}}function Tj(e){Object.keys(e).forEach(t=>{const n=e[t];if(typeof n(void 0,{type:ta.INIT})>"u")throw new Error(Le(12));if(typeof n(void 0,{type:ta.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Le(13))})}function Rj(e){const t=Object.keys(e),n={};for(let i=0;i"u")throw l&&l.type,new Error(Le(14));c[f]=x,u=u||x!==b}return u=u||o.length!==Object.keys(a).length,u?c:a}}function na(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...o)=>t(n(...o)))}function Aj(...e){return t=>(n,o)=>{const s=t(n,o);let i=()=>{throw new Error(Le(15))};const a={getState:s.getState,dispatch:(u,...c)=>i(u,...c)},l=e.map(u=>u(a));return i=na(...l)(s.dispatch),{...s,dispatch:i}}}function Ij(e){return pd(e)&&"type"in e&&typeof e.type=="string"}var Gh=Symbol.for("immer-nothing"),qf=Symbol.for("immer-draftable"),ht=Symbol.for("immer-state");function Tt(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var lo=Object.getPrototypeOf;function jr(e){return!!e&&!!e[ht]}function fn(e){var t;return e?Qh(e)||Array.isArray(e)||!!e[qf]||!!((t=e.constructor)!=null&&t[qf])||Aa(e)||Ia(e):!1}var Dj=Object.prototype.constructor.toString();function Qh(e){if(!e||typeof e!="object")return!1;const t=lo(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)===Dj}function ra(e,t){Ra(e)===0?Reflect.ownKeys(e).forEach(n=>{t(n,e[n],e)}):e.forEach((n,o)=>t(o,n,e))}function Ra(e){const t=e[ht];return t?t.type_:Array.isArray(e)?1:Aa(e)?2:Ia(e)?3:0}function Kc(e,t){return Ra(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Xh(e,t,n){const o=Ra(e);o===2?e.set(t,n):o===3?e.add(n):e[t]=n}function Fj(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function Aa(e){return e instanceof Map}function Ia(e){return e instanceof Set}function nr(e){return e.copy_||e.base_}function Yc(e,t){if(Aa(e))return new Map(e);if(Ia(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const n=Qh(e);if(t===!0||t==="class_only"&&!n){const o=Object.getOwnPropertyDescriptors(e);delete o[ht];let s=Reflect.ownKeys(o);for(let i=0;i1&&(e.set=e.add=e.clear=e.delete=Mj),Object.freeze(e),t&&Object.entries(e).forEach(([n,o])=>md(o,!0))),e}function Mj(){Tt(2)}function Da(e){return Object.isFrozen(e)}var Lj={};function Nr(e){const t=Lj[e];return t||Tt(0,e),t}var hs;function Jh(){return hs}function Bj(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function Vf(e,t){t&&(Nr("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Gc(e){Qc(e),e.drafts_.forEach(zj),e.drafts_=null}function Qc(e){e===hs&&(hs=e.parent_)}function Hf(e){return hs=Bj(hs,e)}function zj(e){const t=e[ht];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function Kf(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[ht].modified_&&(Gc(t),Tt(4)),fn(e)&&(e=oa(t,e),t.parent_||sa(t,e)),t.patches_&&Nr("Patches").generateReplacementPatches_(n[ht].base_,e,t.patches_,t.inversePatches_)):e=oa(t,n,[]),Gc(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==Gh?e:void 0}function oa(e,t,n){if(Da(t))return t;const o=t[ht];if(!o)return ra(t,(s,i)=>Yf(e,o,t,s,i,n)),t;if(o.scope_!==e)return t;if(!o.modified_)return sa(e,o.base_,!0),o.base_;if(!o.finalized_){o.finalized_=!0,o.scope_.unfinalizedDrafts_--;const s=o.copy_;let i=s,a=!1;o.type_===3&&(i=new Set(s),s.clear(),a=!0),ra(i,(l,u)=>Yf(e,o,s,l,u,n,a)),sa(e,s,!1),n&&e.patches_&&Nr("Patches").generatePatches_(o,n,e.patches_,e.inversePatches_)}return o.copy_}function Yf(e,t,n,o,s,i,a){if(jr(s)){const l=i&&t&&t.type_!==3&&!Kc(t.assigned_,o)?i.concat(o):void 0,u=oa(e,s,l);if(Xh(n,o,u),jr(u))e.canAutoFreeze_=!1;else return}else a&&n.add(s);if(fn(s)&&!Da(s)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;oa(e,s),(!t||!t.scope_.parent_)&&typeof o!="symbol"&&Object.prototype.propertyIsEnumerable.call(n,o)&&sa(e,s)}}function sa(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&md(t,n)}function $j(e,t){const n=Array.isArray(e),o={type_:n?1:0,scope_:t?t.scope_:Jh(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let s=o,i=hd;n&&(s=[o],i=vs);const{revoke:a,proxy:l}=Proxy.revocable(s,i);return o.draft_=l,o.revoke_=a,l}var hd={get(e,t){if(t===ht)return e;const n=nr(e);if(!Kc(n,t))return Wj(e,n,t);const o=n[t];return e.finalized_||!fn(o)?o:o===Bl(e.base_,t)?(zl(e),e.copy_[t]=Jc(o,e)):o},has(e,t){return t in nr(e)},ownKeys(e){return Reflect.ownKeys(nr(e))},set(e,t,n){const o=Zh(nr(e),t);if(o!=null&&o.set)return o.set.call(e.draft_,n),!0;if(!e.modified_){const s=Bl(nr(e),t),i=s==null?void 0:s[ht];if(i&&i.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(Fj(n,s)&&(n!==void 0||Kc(e.base_,t)))return!0;zl(e),Xc(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 Bl(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,zl(e),Xc(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=nr(e),o=Reflect.getOwnPropertyDescriptor(n,t);return o&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:o.enumerable,value:n[t]}},defineProperty(){Tt(11)},getPrototypeOf(e){return lo(e.base_)},setPrototypeOf(){Tt(12)}},vs={};ra(hd,(e,t)=>{vs[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});vs.deleteProperty=function(e,t){return vs.set.call(this,e,t,void 0)};vs.set=function(e,t,n){return hd.set.call(this,e[0],t,n,e[0])};function Bl(e,t){const n=e[ht];return(n?nr(n):e)[t]}function Wj(e,t,n){var s;const o=Zh(t,n);return o?"value"in o?o.value:(s=o.get)==null?void 0:s.call(e.draft_):void 0}function Zh(e,t){if(!(t in e))return;let n=lo(e);for(;n;){const o=Object.getOwnPropertyDescriptor(n,t);if(o)return o;n=lo(n)}}function Xc(e){e.modified_||(e.modified_=!0,e.parent_&&Xc(e.parent_))}function zl(e){e.copy_||(e.copy_=Yc(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var Uj=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,n,o)=>{if(typeof t=="function"&&typeof n!="function"){const i=n;n=t;const a=this;return function(u=i,...c){return a.produce(u,d=>n.call(this,d,...c))}}typeof n!="function"&&Tt(6),o!==void 0&&typeof o!="function"&&Tt(7);let s;if(fn(t)){const i=Hf(this),a=Jc(t,void 0);let l=!0;try{s=n(a),l=!1}finally{l?Gc(i):Qc(i)}return Vf(i,o),Kf(s,i)}else if(!t||typeof t!="object"){if(s=n(t),s===void 0&&(s=t),s===Gh&&(s=void 0),this.autoFreeze_&&md(s,!0),o){const i=[],a=[];Nr("Patches").generateReplacementPatches_(t,s,i,a),o(i,a)}return s}else Tt(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(a,...l)=>this.produceWithPatches(a,u=>t(u,...l));let o,s;return[this.produce(t,n,(a,l)=>{o=a,s=l}),o,s]},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)||Tt(8),jr(e)&&(e=qj(e));const t=Hf(this),n=Jc(e,void 0);return n[ht].isManual_=!0,Qc(t),n}finishDraft(e,t){const n=e&&e[ht];(!n||!n.isManual_)&&Tt(9);const{scope_:o}=n;return Vf(o,t),Kf(void 0,o)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const s=t[n];if(s.path.length===0&&s.op==="replace"){e=s.value;break}}n>-1&&(t=t.slice(n+1));const o=Nr("Patches").applyPatches_;return jr(e)?o(e,t):this.produce(e,s=>o(s,t))}};function Jc(e,t){const n=Aa(e)?Nr("MapSet").proxyMap_(e,t):Ia(e)?Nr("MapSet").proxySet_(e,t):$j(e,t);return(t?t.scope_:Jh()).drafts_.push(n),n}function qj(e){return jr(e)||Tt(10,e),ev(e)}function ev(e){if(!fn(e)||Da(e))return e;const t=e[ht];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=Yc(e,t.scope_.immer_.useStrictShallowCopy_)}else n=Yc(e,!0);return ra(n,(o,s)=>{Xh(n,o,ev(s))}),t&&(t.finalized_=!1),n}var vt=new Uj,tv=vt.produce;vt.produceWithPatches.bind(vt);vt.setAutoFreeze.bind(vt);vt.setUseStrictShallowCopy.bind(vt);vt.applyPatches.bind(vt);vt.createDraft.bind(vt);vt.finishDraft.bind(vt);function nv(e){return({dispatch:n,getState:o})=>s=>i=>typeof i=="function"?i(n,o,e):s(i)}var Vj=nv(),Hj=nv,Kj=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?na:na.apply(null,arguments)},Yj=e=>e&&typeof e.match=="function";function Yo(e,t){function n(...o){if(t){let s=t(...o);if(!s)throw new Error(It(0));return{type:e,payload:s.payload,..."meta"in s&&{meta:s.meta},..."error"in s&&{error:s.error}}}return{type:e,payload:o[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=o=>Ij(o)&&o.type===e,n}var rv=class Mo extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,Mo.prototype)}static get[Symbol.species](){return Mo}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new Mo(...t[0].concat(this)):new Mo(...t.concat(this))}};function Gf(e){return fn(e)?tv(e,()=>{}):e}function Qf(e,t,n){if(e.has(t)){let s=e.get(t);return n.update&&(s=n.update(s,t,e),e.set(t,s)),s}if(!n.insert)throw new Error(It(10));const o=n.insert(t,e);return e.set(t,o),o}function Gj(e){return typeof e=="boolean"}var Qj=()=>function(t){const{thunk:n=!0,immutableCheck:o=!0,serializableCheck:s=!0,actionCreatorCheck:i=!0}=t??{};let a=new rv;return n&&(Gj(n)?a.push(Vj):a.push(Hj(n.extraArgument))),a},Xj="RTK_autoBatch",ov=e=>t=>{setTimeout(t,e)},Jj=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:ov(10),Zj=(e={type:"raf"})=>t=>(...n)=>{const o=t(...n);let s=!0,i=!1,a=!1;const l=new Set,u=e.type==="tick"?queueMicrotask:e.type==="raf"?Jj:e.type==="callback"?e.queueNotification:ov(e.timeout),c=()=>{a=!1,i&&(i=!1,l.forEach(d=>d()))};return Object.assign({},o,{subscribe(d){const f=()=>s&&d(),g=o.subscribe(f);return l.add(d),()=>{g(),l.delete(d)}},dispatch(d){var f;try{return s=!((f=d==null?void 0:d.meta)!=null&&f[Xj]),i=!s,i&&(a||(a=!0,u(c))),o.dispatch(d)}finally{s=!0}}})},e1=e=>function(n){const{autoBatch:o=!0}=n??{};let s=new rv(e);return o&&s.push(Zj(typeof o=="object"?o:void 0)),s};function t1(e){const t=Qj(),{reducer:n=void 0,middleware:o,devTools:s=!0,preloadedState:i=void 0,enhancers:a=void 0}=e||{};let l;if(typeof n=="function")l=n;else if(pd(n))l=Rj(n);else throw new Error(It(1));let u;typeof o=="function"?u=o(t):u=t();let c=na;s&&(c=Kj({trace:!1,...typeof s=="object"&&s}));const d=Aj(...u),f=e1(d);let g=typeof a=="function"?a(f):f();const b=c(...g);return Yh(l,i,b)}function sv(e){const t={},n=[];let o;const s={addCase(i,a){const l=typeof i=="string"?i:i.type;if(!l)throw new Error(It(28));if(l in t)throw new Error(It(29));return t[l]=a,s},addMatcher(i,a){return n.push({matcher:i,reducer:a}),s},addDefaultCase(i){return o=i,s}};return e(s),[t,n,o]}function n1(e){return typeof e=="function"}function r1(e,t){let[n,o,s]=sv(t),i;if(n1(e))i=()=>Gf(e());else{const l=Gf(e);i=()=>l}function a(l=i(),u){let c=[n[u.type],...o.filter(({matcher:d})=>d(u)).map(({reducer:d})=>d)];return c.filter(d=>!!d).length===0&&(c=[s]),c.reduce((d,f)=>{if(f)if(jr(d)){const b=f(d,u);return b===void 0?d:b}else{if(fn(d))return tv(d,g=>f(g,u));{const g=f(d,u);if(g===void 0){if(d===null)return d;throw new Error(It(9))}return g}}return d},l)}return a.getInitialState=i,a}var o1=(e,t)=>Yj(e)?e.match(t):e(t);function s1(...e){return t=>e.some(n=>o1(n,t))}var i1="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",a1=(e=21)=>{let t="",n=e;for(;n--;)t+=i1[Math.random()*64|0];return t},l1=["name","message","stack","code"],$l=class{constructor(e,t){dl(this,"_type");this.payload=e,this.meta=t}},Xf=class{constructor(e,t){dl(this,"_type");this.payload=e,this.meta=t}},c1=e=>{if(typeof e=="object"&&e!==null){const t={};for(const n of l1)typeof e[n]=="string"&&(t[n]=e[n]);return t}return{message:String(e)}},Et=(()=>{function e(t,n,o){const s=Yo(t+"/fulfilled",(u,c,d,f)=>({payload:u,meta:{...f||{},arg:d,requestId:c,requestStatus:"fulfilled"}})),i=Yo(t+"/pending",(u,c,d)=>({payload:void 0,meta:{...d||{},arg:c,requestId:u,requestStatus:"pending"}})),a=Yo(t+"/rejected",(u,c,d,f,g)=>({payload:f,error:(o&&o.serializeError||c1)(u||"Rejected"),meta:{...g||{},arg:d,requestId:c,rejectedWithValue:!!f,requestStatus:"rejected",aborted:(u==null?void 0:u.name)==="AbortError",condition:(u==null?void 0:u.name)==="ConditionError"}}));function l(u){return(c,d,f)=>{const g=o!=null&&o.idGenerator?o.idGenerator(u):a1(),b=new AbortController;let x,N;function C(v){N=v,b.abort()}const h=async function(){var y,E;let v;try{let P=(y=o==null?void 0:o.condition)==null?void 0:y.call(o,u,{getState:d,extra:f});if(d1(P)&&(P=await P),P===!1||b.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const T=new Promise((O,B)=>{x=()=>{B({name:"AbortError",message:N||"Aborted"})},b.signal.addEventListener("abort",x)});c(i(g,u,(E=o==null?void 0:o.getPendingMeta)==null?void 0:E.call(o,{requestId:g,arg:u},{getState:d,extra:f}))),v=await Promise.race([T,Promise.resolve(n(u,{dispatch:c,getState:d,extra:f,requestId:g,signal:b.signal,abort:C,rejectWithValue:(O,B)=>new $l(O,B),fulfillWithValue:(O,B)=>new Xf(O,B)})).then(O=>{if(O instanceof $l)throw O;return O instanceof Xf?s(O.payload,g,u,O.meta):s(O,g,u)})])}catch(P){v=P instanceof $l?a(null,g,u,P.payload,P.meta):a(P,g,u)}finally{x&&b.signal.removeEventListener("abort",x)}return o&&!o.dispatchConditionRejection&&a.match(v)&&v.meta.condition||c(v),v}();return Object.assign(h,{abort:C,requestId:g,arg:u,unwrap(){return h.then(u1)}})}}return Object.assign(l,{pending:i,rejected:a,fulfilled:s,settled:s1(a,s),typePrefix:t})}return e.withTypes=()=>e,e})();function u1(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function d1(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var f1=Symbol.for("rtk-slice-createasyncthunk");function p1(e,t){return`${e}/${t}`}function m1({creators:e}={}){var n;const t=(n=e==null?void 0:e.asyncThunk)==null?void 0:n[f1];return function(s){const{name:i,reducerPath:a=i}=s;if(!i)throw new Error(It(11));typeof process<"u";const l=(typeof s.reducers=="function"?s.reducers(v1()):s.reducers)||{},u=Object.keys(l),c={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},d={addCase(m,y){const E=typeof m=="string"?m:m.type;if(!E)throw new Error(It(12));if(E in c.sliceCaseReducersByType)throw new Error(It(13));return c.sliceCaseReducersByType[E]=y,d},addMatcher(m,y){return c.sliceMatchers.push({matcher:m,reducer:y}),d},exposeAction(m,y){return c.actionCreators[m]=y,d},exposeCaseReducer(m,y){return c.sliceCaseReducersByName[m]=y,d}};u.forEach(m=>{const y=l[m],E={reducerName:m,type:p1(i,m),createNotation:typeof s.reducers=="function"};x1(y)?j1(E,y,d,t):g1(E,y,d)});function f(){const[m={},y=[],E=void 0]=typeof s.extraReducers=="function"?sv(s.extraReducers):[s.extraReducers],P={...m,...c.sliceCaseReducersByType};return r1(s.initialState,T=>{for(let O in P)T.addCase(O,P[O]);for(let O of c.sliceMatchers)T.addMatcher(O.matcher,O.reducer);for(let O of y)T.addMatcher(O.matcher,O.reducer);E&&T.addDefaultCase(E)})}const g=m=>m,b=new Map;let x;function N(m,y){return x||(x=f()),x(m,y)}function C(){return x||(x=f()),x.getInitialState()}function h(m,y=!1){function E(T){let O=T[m];return typeof O>"u"&&y&&(O=C()),O}function P(T=g){const O=Qf(b,y,{insert:()=>new WeakMap});return Qf(O,T,{insert:()=>{const B={};for(const[$,H]of Object.entries(s.selectors??{}))B[$]=h1(H,T,C,y);return B}})}return{reducerPath:m,getSelectors:P,get selectors(){return P(E)},selectSlice:E}}const v={name:i,reducer:N,actions:c.actionCreators,caseReducers:c.sliceCaseReducersByName,getInitialState:C,...h(a),injectInto(m,{reducerPath:y,...E}={}){const P=y??a;return m.inject({reducerPath:P,reducer:N},E),{...v,...h(P,!0)}}};return v}}function h1(e,t,n,o){function s(i,...a){let l=t(i);return typeof l>"u"&&o&&(l=n()),e(l,...a)}return s.unwrapped=e,s}var Fa=m1();function v1(){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 g1({type:e,reducerName:t,createNotation:n},o,s){let i,a;if("reducer"in o){if(n&&!y1(o))throw new Error(It(17));i=o.reducer,a=o.prepare}else i=o;s.addCase(e,i).exposeCaseReducer(t,i).exposeAction(t,a?Yo(e,a):Yo(e))}function x1(e){return e._reducerDefinitionType==="asyncThunk"}function y1(e){return e._reducerDefinitionType==="reducerWithPrepare"}function j1({type:e,reducerName:t},n,o,s){if(!s)throw new Error(It(18));const{payloadCreator:i,fulfilled:a,pending:l,rejected:u,settled:c,options:d}=n,f=s(e,i,d);o.exposeAction(t,f),a&&o.addCase(f.fulfilled,a),l&&o.addCase(f.pending,l),u&&o.addCase(f.rejected,u),c&&o.addMatcher(f.settled,c),o.exposeCaseReducer(t,{fulfilled:a||ei,pending:l||ei,rejected:u||ei,settled:c||ei})}function ei(){}function It(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 iv(e,t){return function(){return e.apply(t,arguments)}}const{toString:N1}=Object.prototype,{getPrototypeOf:vd}=Object,Ma=(e=>t=>{const n=N1.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Mt=e=>(e=e.toLowerCase(),t=>Ma(t)===e),La=e=>t=>typeof t===e,{isArray:mo}=Array,gs=La("undefined");function C1(e){return e!==null&&!gs(e)&&e.constructor!==null&&!gs(e.constructor)&&pt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const av=Mt("ArrayBuffer");function b1(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&av(e.buffer),t}const w1=La("string"),pt=La("function"),lv=La("number"),Ba=e=>e!==null&&typeof e=="object",S1=e=>e===!0||e===!1,xi=e=>{if(Ma(e)!=="object")return!1;const t=vd(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},E1=Mt("Date"),k1=Mt("File"),P1=Mt("Blob"),_1=Mt("FileList"),O1=e=>Ba(e)&&pt(e.pipe),T1=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||pt(e.append)&&((t=Ma(e))==="formdata"||t==="object"&&pt(e.toString)&&e.toString()==="[object FormData]"))},R1=Mt("URLSearchParams"),[A1,I1,D1,F1]=["ReadableStream","Request","Response","Headers"].map(Mt),M1=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function _s(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let o,s;if(typeof e!="object"&&(e=[e]),mo(e))for(o=0,s=e.length;o0;)if(s=n[o],t===s.toLowerCase())return s;return null}const cr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,uv=e=>!gs(e)&&e!==cr;function Zc(){const{caseless:e}=uv(this)&&this||{},t={},n=(o,s)=>{const i=e&&cv(t,s)||s;xi(t[i])&&xi(o)?t[i]=Zc(t[i],o):xi(o)?t[i]=Zc({},o):mo(o)?t[i]=o.slice():t[i]=o};for(let o=0,s=arguments.length;o(_s(t,(s,i)=>{n&&pt(s)?e[i]=iv(s,n):e[i]=s},{allOwnKeys:o}),e),B1=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),z1=(e,t,n,o)=>{e.prototype=Object.create(t.prototype,o),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},$1=(e,t,n,o)=>{let s,i,a;const l={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),i=s.length;i-- >0;)a=s[i],(!o||o(a,e,t))&&!l[a]&&(t[a]=e[a],l[a]=!0);e=n!==!1&&vd(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},W1=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const o=e.indexOf(t,n);return o!==-1&&o===n},U1=e=>{if(!e)return null;if(mo(e))return e;let t=e.length;if(!lv(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"&&vd(Uint8Array)),V1=(e,t)=>{const o=(e&&e[Symbol.iterator]).call(e);let s;for(;(s=o.next())&&!s.done;){const i=s.value;t.call(e,i[0],i[1])}},H1=(e,t)=>{let n;const o=[];for(;(n=e.exec(t))!==null;)o.push(n);return o},K1=Mt("HTMLFormElement"),Y1=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,o,s){return o.toUpperCase()+s}),Jf=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),G1=Mt("RegExp"),dv=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),o={};_s(n,(s,i)=>{let a;(a=t(s,i,e))!==!1&&(o[i]=a||s)}),Object.defineProperties(e,o)},Q1=e=>{dv(e,(t,n)=>{if(pt(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const o=e[n];if(pt(o)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},X1=(e,t)=>{const n={},o=s=>{s.forEach(i=>{n[i]=!0})};return mo(e)?o(e):o(String(e).split(t)),n},J1=()=>{},Z1=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,Wl="abcdefghijklmnopqrstuvwxyz",Zf="0123456789",fv={DIGIT:Zf,ALPHA:Wl,ALPHA_DIGIT:Wl+Wl.toUpperCase()+Zf},e0=(e=16,t=fv.ALPHA_DIGIT)=>{let n="";const{length:o}=t;for(;e--;)n+=t[Math.random()*o|0];return n};function t0(e){return!!(e&&pt(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const n0=e=>{const t=new Array(10),n=(o,s)=>{if(Ba(o)){if(t.indexOf(o)>=0)return;if(!("toJSON"in o)){t[s]=o;const i=mo(o)?[]:{};return _s(o,(a,l)=>{const u=n(a,s+1);!gs(u)&&(i[l]=u)}),t[s]=void 0,i}}return o};return n(e,0)},r0=Mt("AsyncFunction"),o0=e=>e&&(Ba(e)||pt(e))&&pt(e.then)&&pt(e.catch),pv=((e,t)=>e?setImmediate:t?((n,o)=>(cr.addEventListener("message",({source:s,data:i})=>{s===cr&&i===n&&o.length&&o.shift()()},!1),s=>{o.push(s),cr.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",pt(cr.postMessage)),s0=typeof queueMicrotask<"u"?queueMicrotask.bind(cr):typeof process<"u"&&process.nextTick||pv,z={isArray:mo,isArrayBuffer:av,isBuffer:C1,isFormData:T1,isArrayBufferView:b1,isString:w1,isNumber:lv,isBoolean:S1,isObject:Ba,isPlainObject:xi,isReadableStream:A1,isRequest:I1,isResponse:D1,isHeaders:F1,isUndefined:gs,isDate:E1,isFile:k1,isBlob:P1,isRegExp:G1,isFunction:pt,isStream:O1,isURLSearchParams:R1,isTypedArray:q1,isFileList:_1,forEach:_s,merge:Zc,extend:L1,trim:M1,stripBOM:B1,inherits:z1,toFlatObject:$1,kindOf:Ma,kindOfTest:Mt,endsWith:W1,toArray:U1,forEachEntry:V1,matchAll:H1,isHTMLForm:K1,hasOwnProperty:Jf,hasOwnProp:Jf,reduceDescriptors:dv,freezeMethods:Q1,toObjectSet:X1,toCamelCase:Y1,noop:J1,toFiniteNumber:Z1,findKey:cv,global:cr,isContextDefined:uv,ALPHABET:fv,generateString:e0,isSpecCompliantForm:t0,toJSONObject:n0,isAsyncFn:r0,isThenable:o0,setImmediate:pv,asap:s0};function se(e,t,n,o,s){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),o&&(this.request=o),s&&(this.response=s,this.status=s.status?s.status:null)}z.inherits(se,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:z.toJSONObject(this.config),code:this.code,status:this.status}}});const mv=se.prototype,hv={};["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=>{hv[e]={value:e}});Object.defineProperties(se,hv);Object.defineProperty(mv,"isAxiosError",{value:!0});se.from=(e,t,n,o,s,i)=>{const a=Object.create(mv);return z.toFlatObject(e,a,function(u){return u!==Error.prototype},l=>l!=="isAxiosError"),se.call(a,e.message,t,n,o,s),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};const i0=null;function eu(e){return z.isPlainObject(e)||z.isArray(e)}function vv(e){return z.endsWith(e,"[]")?e.slice(0,-2):e}function ep(e,t,n){return e?e.concat(t).map(function(s,i){return s=vv(s),!n&&i?"["+s+"]":s}).join(n?".":""):t}function a0(e){return z.isArray(e)&&!e.some(eu)}const l0=z.toFlatObject(z,{},null,function(t){return/^is[A-Z]/.test(t)});function za(e,t,n){if(!z.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=z.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(N,C){return!z.isUndefined(C[N])});const o=n.metaTokens,s=n.visitor||d,i=n.dots,a=n.indexes,u=(n.Blob||typeof Blob<"u"&&Blob)&&z.isSpecCompliantForm(t);if(!z.isFunction(s))throw new TypeError("visitor must be a function");function c(x){if(x===null)return"";if(z.isDate(x))return x.toISOString();if(!u&&z.isBlob(x))throw new se("Blob is not supported. Use a Buffer instead.");return z.isArrayBuffer(x)||z.isTypedArray(x)?u&&typeof Blob=="function"?new Blob([x]):Buffer.from(x):x}function d(x,N,C){let h=x;if(x&&!C&&typeof x=="object"){if(z.endsWith(N,"{}"))N=o?N:N.slice(0,-2),x=JSON.stringify(x);else if(z.isArray(x)&&a0(x)||(z.isFileList(x)||z.endsWith(N,"[]"))&&(h=z.toArray(x)))return N=vv(N),h.forEach(function(m,y){!(z.isUndefined(m)||m===null)&&t.append(a===!0?ep([N],y,i):a===null?N:N+"[]",c(m))}),!1}return eu(x)?!0:(t.append(ep(C,N,i),c(x)),!1)}const f=[],g=Object.assign(l0,{defaultVisitor:d,convertValue:c,isVisitable:eu});function b(x,N){if(!z.isUndefined(x)){if(f.indexOf(x)!==-1)throw Error("Circular reference detected in "+N.join("."));f.push(x),z.forEach(x,function(h,v){(!(z.isUndefined(h)||h===null)&&s.call(t,h,z.isString(v)?v.trim():v,N,g))===!0&&b(h,N?N.concat(v):[v])}),f.pop()}}if(!z.isObject(e))throw new TypeError("data must be an object");return b(e),t}function tp(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(o){return t[o]})}function gd(e,t){this._pairs=[],e&&za(e,this,t)}const gv=gd.prototype;gv.append=function(t,n){this._pairs.push([t,n])};gv.toString=function(t){const n=t?function(o){return t.call(this,o,tp)}:tp;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function c0(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function xv(e,t,n){if(!t)return e;const o=n&&n.encode||c0,s=n&&n.serialize;let i;if(s?i=s(t,n):i=z.isURLSearchParams(t)?t.toString():new gd(t,n).toString(o),i){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class np{constructor(){this.handlers=[]}use(t,n,o){return this.handlers.push({fulfilled:t,rejected:n,synchronous:o?o.synchronous:!1,runWhen:o?o.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){z.forEach(this.handlers,function(o){o!==null&&t(o)})}}const yv={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},u0=typeof URLSearchParams<"u"?URLSearchParams:gd,d0=typeof FormData<"u"?FormData:null,f0=typeof Blob<"u"?Blob:null,p0={isBrowser:!0,classes:{URLSearchParams:u0,FormData:d0,Blob:f0},protocols:["http","https","file","blob","url","data"]},xd=typeof window<"u"&&typeof document<"u",tu=typeof navigator=="object"&&navigator||void 0,m0=xd&&(!tu||["ReactNative","NativeScript","NS"].indexOf(tu.product)<0),h0=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",v0=xd&&window.location.href||"http://localhost",g0=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:xd,hasStandardBrowserEnv:m0,hasStandardBrowserWebWorkerEnv:h0,navigator:tu,origin:v0},Symbol.toStringTag,{value:"Module"})),it={...g0,...p0};function x0(e,t){return za(e,new it.classes.URLSearchParams,Object.assign({visitor:function(n,o,s,i){return it.isNode&&z.isBuffer(n)?(this.append(o,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function y0(e){return z.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function j0(e){const t={},n=Object.keys(e);let o;const s=n.length;let i;for(o=0;o=n.length;return a=!a&&z.isArray(s)?s.length:a,u?(z.hasOwnProp(s,a)?s[a]=[s[a],o]:s[a]=o,!l):((!s[a]||!z.isObject(s[a]))&&(s[a]=[]),t(n,o,s[a],i)&&z.isArray(s[a])&&(s[a]=j0(s[a])),!l)}if(z.isFormData(e)&&z.isFunction(e.entries)){const n={};return z.forEachEntry(e,(o,s)=>{t(y0(o),s,n,0)}),n}return null}function N0(e,t,n){if(z.isString(e))try{return(t||JSON.parse)(e),z.trim(e)}catch(o){if(o.name!=="SyntaxError")throw o}return(n||JSON.stringify)(e)}const Os={transitional:yv,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const o=n.getContentType()||"",s=o.indexOf("application/json")>-1,i=z.isObject(t);if(i&&z.isHTMLForm(t)&&(t=new FormData(t)),z.isFormData(t))return s?JSON.stringify(jv(t)):t;if(z.isArrayBuffer(t)||z.isBuffer(t)||z.isStream(t)||z.isFile(t)||z.isBlob(t)||z.isReadableStream(t))return t;if(z.isArrayBufferView(t))return t.buffer;if(z.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(i){if(o.indexOf("application/x-www-form-urlencoded")>-1)return x0(t,this.formSerializer).toString();if((l=z.isFileList(t))||o.indexOf("multipart/form-data")>-1){const u=this.env&&this.env.FormData;return za(l?{"files[]":t}:t,u&&new u,this.formSerializer)}}return i||s?(n.setContentType("application/json",!1),N0(t)):t}],transformResponse:[function(t){const n=this.transitional||Os.transitional,o=n&&n.forcedJSONParsing,s=this.responseType==="json";if(z.isResponse(t)||z.isReadableStream(t))return t;if(t&&z.isString(t)&&(o&&!this.responseType||s)){const a=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(t)}catch(l){if(a)throw l.name==="SyntaxError"?se.from(l,se.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:it.classes.FormData,Blob:it.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};z.forEach(["delete","get","head","post","put","patch"],e=>{Os.headers[e]={}});const C0=z.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"]),b0=e=>{const t={};let n,o,s;return e&&e.split(` +`).forEach(function(a){s=a.indexOf(":"),n=a.substring(0,s).trim().toLowerCase(),o=a.substring(s+1).trim(),!(!n||t[n]&&C0[n])&&(n==="set-cookie"?t[n]?t[n].push(o):t[n]=[o]:t[n]=t[n]?t[n]+", "+o:o)}),t},rp=Symbol("internals");function Ro(e){return e&&String(e).trim().toLowerCase()}function yi(e){return e===!1||e==null?e:z.isArray(e)?e.map(yi):String(e)}function w0(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let o;for(;o=n.exec(e);)t[o[1]]=o[2];return t}const S0=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Ul(e,t,n,o,s){if(z.isFunction(o))return o.call(this,t,n);if(s&&(t=n),!!z.isString(t)){if(z.isString(o))return t.indexOf(o)!==-1;if(z.isRegExp(o))return o.test(t)}}function E0(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,o)=>n.toUpperCase()+o)}function k0(e,t){const n=z.toCamelCase(" "+t);["get","set","has"].forEach(o=>{Object.defineProperty(e,o+n,{value:function(s,i,a){return this[o].call(this,t,s,i,a)},configurable:!0})})}class at{constructor(t){t&&this.set(t)}set(t,n,o){const s=this;function i(l,u,c){const d=Ro(u);if(!d)throw new Error("header name must be a non-empty string");const f=z.findKey(s,d);(!f||s[f]===void 0||c===!0||c===void 0&&s[f]!==!1)&&(s[f||u]=yi(l))}const a=(l,u)=>z.forEach(l,(c,d)=>i(c,d,u));if(z.isPlainObject(t)||t instanceof this.constructor)a(t,n);else if(z.isString(t)&&(t=t.trim())&&!S0(t))a(b0(t),n);else if(z.isHeaders(t))for(const[l,u]of t.entries())i(u,l,o);else t!=null&&i(n,t,o);return this}get(t,n){if(t=Ro(t),t){const o=z.findKey(this,t);if(o){const s=this[o];if(!n)return s;if(n===!0)return w0(s);if(z.isFunction(n))return n.call(this,s,o);if(z.isRegExp(n))return n.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Ro(t),t){const o=z.findKey(this,t);return!!(o&&this[o]!==void 0&&(!n||Ul(this,this[o],o,n)))}return!1}delete(t,n){const o=this;let s=!1;function i(a){if(a=Ro(a),a){const l=z.findKey(o,a);l&&(!n||Ul(o,o[l],l,n))&&(delete o[l],s=!0)}}return z.isArray(t)?t.forEach(i):i(t),s}clear(t){const n=Object.keys(this);let o=n.length,s=!1;for(;o--;){const i=n[o];(!t||Ul(this,this[i],i,t,!0))&&(delete this[i],s=!0)}return s}normalize(t){const n=this,o={};return z.forEach(this,(s,i)=>{const a=z.findKey(o,i);if(a){n[a]=yi(s),delete n[i];return}const l=t?E0(i):String(i).trim();l!==i&&delete n[i],n[l]=yi(s),o[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return z.forEach(this,(o,s)=>{o!=null&&o!==!1&&(n[s]=t&&z.isArray(o)?o.join(", "):o)}),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 o=new this(t);return n.forEach(s=>o.set(s)),o}static accessor(t){const o=(this[rp]=this[rp]={accessors:{}}).accessors,s=this.prototype;function i(a){const l=Ro(a);o[l]||(k0(s,a),o[l]=!0)}return z.isArray(t)?t.forEach(i):i(t),this}}at.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);z.reduceDescriptors(at.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(o){this[n]=o}}});z.freezeMethods(at);function ql(e,t){const n=this||Os,o=t||n,s=at.from(o.headers);let i=o.data;return z.forEach(e,function(l){i=l.call(n,i,s.normalize(),t?t.status:void 0)}),s.normalize(),i}function Nv(e){return!!(e&&e.__CANCEL__)}function ho(e,t,n){se.call(this,e??"canceled",se.ERR_CANCELED,t,n),this.name="CanceledError"}z.inherits(ho,se,{__CANCEL__:!0});function Cv(e,t,n){const o=n.config.validateStatus;!n.status||!o||o(n.status)?e(n):t(new se("Request failed with status code "+n.status,[se.ERR_BAD_REQUEST,se.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function P0(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function _0(e,t){e=e||10;const n=new Array(e),o=new Array(e);let s=0,i=0,a;return t=t!==void 0?t:1e3,function(u){const c=Date.now(),d=o[i];a||(a=c),n[s]=u,o[s]=c;let f=i,g=0;for(;f!==s;)g+=n[f++],f=f%e;if(s=(s+1)%e,s===i&&(i=(i+1)%e),c-a{n=d,s=null,i&&(clearTimeout(i),i=null),e.apply(null,c)};return[(...c)=>{const d=Date.now(),f=d-n;f>=o?a(c,d):(s=c,i||(i=setTimeout(()=>{i=null,a(s)},o-f)))},()=>s&&a(s)]}const ia=(e,t,n=3)=>{let o=0;const s=_0(50,250);return O0(i=>{const a=i.loaded,l=i.lengthComputable?i.total:void 0,u=a-o,c=s(u),d=a<=l;o=a;const f={loaded:a,total:l,progress:l?a/l:void 0,bytes:u,rate:c||void 0,estimated:c&&l&&d?(l-a)/c:void 0,event:i,lengthComputable:l!=null,[t?"download":"upload"]:!0};e(f)},n)},op=(e,t)=>{const n=e!=null;return[o=>t[0]({lengthComputable:n,total:e,loaded:o}),t[1]]},sp=e=>(...t)=>z.asap(()=>e(...t)),T0=it.hasStandardBrowserEnv?function(){const t=it.navigator&&/(msie|trident)/i.test(it.navigator.userAgent),n=document.createElement("a");let o;function s(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 o=s(window.location.href),function(a){const l=z.isString(a)?s(a):a;return l.protocol===o.protocol&&l.host===o.host}}():function(){return function(){return!0}}(),R0=it.hasStandardBrowserEnv?{write(e,t,n,o,s,i){const a=[e+"="+encodeURIComponent(t)];z.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),z.isString(o)&&a.push("path="+o),z.isString(s)&&a.push("domain="+s),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 A0(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function I0(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function bv(e,t){return e&&!A0(t)?I0(e,t):t}const ip=e=>e instanceof at?{...e}:e;function Cr(e,t){t=t||{};const n={};function o(c,d,f){return z.isPlainObject(c)&&z.isPlainObject(d)?z.merge.call({caseless:f},c,d):z.isPlainObject(d)?z.merge({},d):z.isArray(d)?d.slice():d}function s(c,d,f){if(z.isUndefined(d)){if(!z.isUndefined(c))return o(void 0,c,f)}else return o(c,d,f)}function i(c,d){if(!z.isUndefined(d))return o(void 0,d)}function a(c,d){if(z.isUndefined(d)){if(!z.isUndefined(c))return o(void 0,c)}else return o(void 0,d)}function l(c,d,f){if(f in t)return o(c,d);if(f in e)return o(void 0,c)}const u={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,d)=>s(ip(c),ip(d),!0)};return z.forEach(Object.keys(Object.assign({},e,t)),function(d){const f=u[d]||s,g=f(e[d],t[d],d);z.isUndefined(g)&&f!==l||(n[d]=g)}),n}const wv=e=>{const t=Cr({},e);let{data:n,withXSRFToken:o,xsrfHeaderName:s,xsrfCookieName:i,headers:a,auth:l}=t;t.headers=a=at.from(a),t.url=xv(bv(t.baseURL,t.url),e.params,e.paramsSerializer),l&&a.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):"")));let u;if(z.isFormData(n)){if(it.hasStandardBrowserEnv||it.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if((u=a.getContentType())!==!1){const[c,...d]=u?u.split(";").map(f=>f.trim()).filter(Boolean):[];a.setContentType([c||"multipart/form-data",...d].join("; "))}}if(it.hasStandardBrowserEnv&&(o&&z.isFunction(o)&&(o=o(t)),o||o!==!1&&T0(t.url))){const c=s&&i&&R0.read(i);c&&a.set(s,c)}return t},D0=typeof XMLHttpRequest<"u",F0=D0&&function(e){return new Promise(function(n,o){const s=wv(e);let i=s.data;const a=at.from(s.headers).normalize();let{responseType:l,onUploadProgress:u,onDownloadProgress:c}=s,d,f,g,b,x;function N(){b&&b(),x&&x(),s.cancelToken&&s.cancelToken.unsubscribe(d),s.signal&&s.signal.removeEventListener("abort",d)}let C=new XMLHttpRequest;C.open(s.method.toUpperCase(),s.url,!0),C.timeout=s.timeout;function h(){if(!C)return;const m=at.from("getAllResponseHeaders"in C&&C.getAllResponseHeaders()),E={data:!l||l==="text"||l==="json"?C.responseText:C.response,status:C.status,statusText:C.statusText,headers:m,config:e,request:C};Cv(function(T){n(T),N()},function(T){o(T),N()},E),C=null}"onloadend"in C?C.onloadend=h:C.onreadystatechange=function(){!C||C.readyState!==4||C.status===0&&!(C.responseURL&&C.responseURL.indexOf("file:")===0)||setTimeout(h)},C.onabort=function(){C&&(o(new se("Request aborted",se.ECONNABORTED,e,C)),C=null)},C.onerror=function(){o(new se("Network Error",se.ERR_NETWORK,e,C)),C=null},C.ontimeout=function(){let y=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";const E=s.transitional||yv;s.timeoutErrorMessage&&(y=s.timeoutErrorMessage),o(new se(y,E.clarifyTimeoutError?se.ETIMEDOUT:se.ECONNABORTED,e,C)),C=null},i===void 0&&a.setContentType(null),"setRequestHeader"in C&&z.forEach(a.toJSON(),function(y,E){C.setRequestHeader(E,y)}),z.isUndefined(s.withCredentials)||(C.withCredentials=!!s.withCredentials),l&&l!=="json"&&(C.responseType=s.responseType),c&&([g,x]=ia(c,!0),C.addEventListener("progress",g)),u&&C.upload&&([f,b]=ia(u),C.upload.addEventListener("progress",f),C.upload.addEventListener("loadend",b)),(s.cancelToken||s.signal)&&(d=m=>{C&&(o(!m||m.type?new ho(null,e,C):m),C.abort(),C=null)},s.cancelToken&&s.cancelToken.subscribe(d),s.signal&&(s.signal.aborted?d():s.signal.addEventListener("abort",d)));const v=P0(s.url);if(v&&it.protocols.indexOf(v)===-1){o(new se("Unsupported protocol "+v+":",se.ERR_BAD_REQUEST,e));return}C.send(i||null)})},M0=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let o=new AbortController,s;const i=function(c){if(!s){s=!0,l();const d=c instanceof Error?c:this.reason;o.abort(d instanceof se?d:new ho(d instanceof Error?d.message:d))}};let a=t&&setTimeout(()=>{a=null,i(new se(`timeout ${t} of ms exceeded`,se.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:u}=o;return u.unsubscribe=()=>z.asap(l),u}},L0=function*(e,t){let n=e.byteLength;if(!t||n{const s=B0(e,t);let i=0,a,l=u=>{a||(a=!0,o&&o(u))};return new ReadableStream({async pull(u){try{const{done:c,value:d}=await s.next();if(c){l(),u.close();return}let f=d.byteLength;if(n){let g=i+=f;n(g)}u.enqueue(new Uint8Array(d))}catch(c){throw l(c),c}},cancel(u){return l(u),s.return()}},{highWaterMark:2})},$a=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Sv=$a&&typeof ReadableStream=="function",$0=$a&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Ev=(e,...t)=>{try{return!!e(...t)}catch{return!1}},W0=Sv&&Ev(()=>{let e=!1;const t=new Request(it.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),lp=64*1024,nu=Sv&&Ev(()=>z.isReadableStream(new Response("").body)),aa={stream:nu&&(e=>e.body)};$a&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!aa[t]&&(aa[t]=z.isFunction(e[t])?n=>n[t]():(n,o)=>{throw new se(`Response type '${t}' is not supported`,se.ERR_NOT_SUPPORT,o)})})})(new Response);const U0=async e=>{if(e==null)return 0;if(z.isBlob(e))return e.size;if(z.isSpecCompliantForm(e))return(await new Request(it.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(z.isArrayBufferView(e)||z.isArrayBuffer(e))return e.byteLength;if(z.isURLSearchParams(e)&&(e=e+""),z.isString(e))return(await $0(e)).byteLength},q0=async(e,t)=>{const n=z.toFiniteNumber(e.getContentLength());return n??U0(t)},V0=$a&&(async e=>{let{url:t,method:n,data:o,signal:s,cancelToken:i,timeout:a,onDownloadProgress:l,onUploadProgress:u,responseType:c,headers:d,withCredentials:f="same-origin",fetchOptions:g}=wv(e);c=c?(c+"").toLowerCase():"text";let b=M0([s,i&&i.toAbortSignal()],a),x;const N=b&&b.unsubscribe&&(()=>{b.unsubscribe()});let C;try{if(u&&W0&&n!=="get"&&n!=="head"&&(C=await q0(d,o))!==0){let E=new Request(t,{method:"POST",body:o,duplex:"half"}),P;if(z.isFormData(o)&&(P=E.headers.get("content-type"))&&d.setContentType(P),E.body){const[T,O]=op(C,ia(sp(u)));o=ap(E.body,lp,T,O)}}z.isString(f)||(f=f?"include":"omit");const h="credentials"in Request.prototype;x=new Request(t,{...g,signal:b,method:n.toUpperCase(),headers:d.normalize().toJSON(),body:o,duplex:"half",credentials:h?f:void 0});let v=await fetch(x);const m=nu&&(c==="stream"||c==="response");if(nu&&(l||m&&N)){const E={};["status","statusText","headers"].forEach(B=>{E[B]=v[B]});const P=z.toFiniteNumber(v.headers.get("content-length")),[T,O]=l&&op(P,ia(sp(l),!0))||[];v=new Response(ap(v.body,lp,T,()=>{O&&O(),N&&N()}),E)}c=c||"text";let y=await aa[z.findKey(aa,c)||"text"](v,e);return!m&&N&&N(),await new Promise((E,P)=>{Cv(E,P,{data:y,headers:at.from(v.headers),status:v.status,statusText:v.statusText,config:e,request:x})})}catch(h){throw N&&N(),h&&h.name==="TypeError"&&/fetch/i.test(h.message)?Object.assign(new se("Network Error",se.ERR_NETWORK,e,x),{cause:h.cause||h}):se.from(h,h&&h.code,e,x)}}),ru={http:i0,xhr:F0,fetch:V0};z.forEach(ru,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const cp=e=>`- ${e}`,H0=e=>z.isFunction(e)||e===null||e===!1,kv={getAdapter:e=>{e=z.isArray(e)?e:[e];const{length:t}=e;let n,o;const s={};for(let i=0;i`adapter ${l} `+(u===!1?"is not supported by the environment":"is not available in the build"));let a=t?i.length>1?`since : +`+i.map(cp).join(` +`):" "+cp(i[0]):"as no adapter specified";throw new se("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return o},adapters:ru};function Vl(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new ho(null,e)}function up(e){return Vl(e),e.headers=at.from(e.headers),e.data=ql.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),kv.getAdapter(e.adapter||Os.adapter)(e).then(function(o){return Vl(e),o.data=ql.call(e,e.transformResponse,o),o.headers=at.from(o.headers),o},function(o){return Nv(o)||(Vl(e),o&&o.response&&(o.response.data=ql.call(e,e.transformResponse,o.response),o.response.headers=at.from(o.response.headers))),Promise.reject(o)})}const Pv="1.7.7",yd={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{yd[e]=function(o){return typeof o===e||"a"+(t<1?"n ":" ")+e}});const dp={};yd.transitional=function(t,n,o){function s(i,a){return"[Axios v"+Pv+"] Transitional option '"+i+"'"+a+(o?". "+o:"")}return(i,a,l)=>{if(t===!1)throw new se(s(a," has been removed"+(n?" in "+n:"")),se.ERR_DEPRECATED);return n&&!dp[a]&&(dp[a]=!0,console.warn(s(a," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,a,l):!0}};function K0(e,t,n){if(typeof e!="object")throw new se("options must be an object",se.ERR_BAD_OPTION_VALUE);const o=Object.keys(e);let s=o.length;for(;s-- >0;){const i=o[s],a=t[i];if(a){const l=e[i],u=l===void 0||a(l,i,e);if(u!==!0)throw new se("option "+i+" must be "+u,se.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new se("Unknown option "+i,se.ERR_BAD_OPTION)}}const ou={assertOptions:K0,validators:yd},yn=ou.validators;class fr{constructor(t){this.defaults=t,this.interceptors={request:new np,response:new np}}async request(t,n){try{return await this._request(t,n)}catch(o){if(o instanceof Error){let s;Error.captureStackTrace?Error.captureStackTrace(s={}):s=new Error;const i=s.stack?s.stack.replace(/^.+\n/,""):"";try{o.stack?i&&!String(o.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(o.stack+=` +`+i):o.stack=i}catch{}}throw o}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Cr(this.defaults,n);const{transitional:o,paramsSerializer:s,headers:i}=n;o!==void 0&&ou.assertOptions(o,{silentJSONParsing:yn.transitional(yn.boolean),forcedJSONParsing:yn.transitional(yn.boolean),clarifyTimeoutError:yn.transitional(yn.boolean)},!1),s!=null&&(z.isFunction(s)?n.paramsSerializer={serialize:s}:ou.assertOptions(s,{encode:yn.function,serialize:yn.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=i&&z.merge(i.common,i[n.method]);i&&z.forEach(["delete","get","head","post","put","patch","common"],x=>{delete i[x]}),n.headers=at.concat(a,i);const l=[];let u=!0;this.interceptors.request.forEach(function(N){typeof N.runWhen=="function"&&N.runWhen(n)===!1||(u=u&&N.synchronous,l.unshift(N.fulfilled,N.rejected))});const c=[];this.interceptors.response.forEach(function(N){c.push(N.fulfilled,N.rejected)});let d,f=0,g;if(!u){const x=[up.bind(this),void 0];for(x.unshift.apply(x,l),x.push.apply(x,c),g=x.length,d=Promise.resolve(n);f{if(!o._listeners)return;let i=o._listeners.length;for(;i-- >0;)o._listeners[i](s);o._listeners=null}),this.promise.then=s=>{let i;const a=new Promise(l=>{o.subscribe(l),i=l}).then(s);return a.cancel=function(){o.unsubscribe(i)},a},t(function(i,a,l){o.reason||(o.reason=new ho(i,a,l),n(o.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=o=>{t.abort(o)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new jd(function(s){t=s}),cancel:t}}}function Y0(e){return function(n){return e.apply(null,n)}}function G0(e){return z.isObject(e)&&e.isAxiosError===!0}const su={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(su).forEach(([e,t])=>{su[t]=e});function _v(e){const t=new fr(e),n=iv(fr.prototype.request,t);return z.extend(n,fr.prototype,t,{allOwnKeys:!0}),z.extend(n,t,null,{allOwnKeys:!0}),n.create=function(s){return _v(Cr(e,s))},n}const ve=_v(Os);ve.Axios=fr;ve.CanceledError=ho;ve.CancelToken=jd;ve.isCancel=Nv;ve.VERSION=Pv;ve.toFormData=za;ve.AxiosError=se;ve.Cancel=ve.CanceledError;ve.all=function(t){return Promise.all(t)};ve.spread=Y0;ve.isAxiosError=G0;ve.mergeConfig=Cr;ve.AxiosHeaders=at;ve.formToJSON=e=>jv(z.isHTMLForm(e)?new FormData(e):e);ve.getAdapter=kv.getAdapter;ve.HttpStatusCode=su;ve.default=ve;const Q0="http://localhost:3002",Jt=ve.create({baseURL:Q0});Jt.interceptors.request.use(e=>(localStorage.getItem("profile")&&(e.headers.Authorization=`Bearer ${JSON.parse(localStorage.getItem("profile")).token}`),e));const X0=e=>Jt.post("/users/signup",e),J0=e=>Jt.post("/users/signin",e),Z0=(e,t,n)=>Jt.get(`/users/${e}/verify/${t}`,n),eN=e=>Jt.post("/properties",e),tN=(e,t,n)=>Jt.get(`/properties/user/${e}?page=${t}&limit=${n}`,e),nN=e=>Jt.get(`/properties/${e}`,e),rN=(e,t)=>Jt.put(`/properties/${e}`,t),oN=e=>Jt.get(`/users/${e}`),sN=e=>Jt.post("/fundDetails",e),ji=Et("auth/login",async({formValue:e,navigate:t},{rejectWithValue:n})=>{try{const o=await J0(e);return t("/dashboard"),o.data}catch(o){return n(o.response.data)}}),Ni=Et("auth/register",async({formValue:e,navigate:t,toast:n},{rejectWithValue:o})=>{try{const s=await X0(e);return n.success("Register Successfully"),t("/registrationsuccess"),s.data}catch(s){return o(s.response.data)}}),Ci=Et("auth/updateUser",async(e,{rejectWithValue:t})=>{try{return(await ve.put("http://localhost:3002/users/update",e)).data}catch(n){return t(n.response.data)}}),Ov=Fa({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(ji.pending,t=>{t.loading=!0}).addCase(ji.fulfilled,(t,n)=>{t.loading=!1,localStorage.setItem("profile",JSON.stringify({...n.payload})),t.user=n.payload}).addCase(ji.rejected,(t,n)=>{t.loading=!1,t.error=n.payload.message}).addCase(Ni.pending,t=>{t.loading=!0}).addCase(Ni.fulfilled,(t,n)=>{t.loading=!1,localStorage.setItem("profile",JSON.stringify({...n.payload})),t.user=n.payload}).addCase(Ni.rejected,(t,n)=>{t.loading=!1,t.error=n.payload.message}).addCase(Ci.pending,t=>{t.isLoading=!0}).addCase(Ci.fulfilled,(t,n)=>{t.isLoading=!1,t.user=n.payload}).addCase(Ci.rejected,(t,n)=>{t.isLoading=!1,t.error=n.payload})}}),{setUser:Gw,setLogout:iN,setUserDetails:Qw}=Ov.actions,aN=Ov.reducer,bi=Et("user/showUser",async(e,{rejectWithValue:t})=>{try{return(await oN(e)).data}catch(n){return t(n.response.data)}}),wi=Et("user/verifyEmail",async({id:e,token:t,data:n},{rejectWithValue:o})=>{try{return(await Z0(e,t,n)).data.message}catch(s){return o(s.response.data)}}),lN=Fa({name:"user",initialState:{users:[],error:"",loading:!1,verified:!1,user:{}},reducers:{},extraReducers:e=>{e.addCase(bi.pending,t=>{t.loading=!0,t.error=null}).addCase(bi.fulfilled,(t,n)=>{t.loading=!1,t.user=n.payload}).addCase(bi.rejected,(t,n)=>{t.loading=!1,t.error=n.payload}).addCase(wi.pending,t=>{t.loading=!0,t.error=null}).addCase(wi.fulfilled,(t,n)=>{t.loading=!1,t.verified=n.payload==="Email verified successfully"}).addCase(wi.rejected,(t,n)=>{t.loading=!1,t.error=n.error.message})}}),cN=lN.reducer,Si=Et("property/submitProperty",async(e,{rejectWithValue:t})=>{try{return(await eN(e)).data}catch(n){return t(n.response.data)}}),Ei=Et("property/fetchUserProperties",async({userId:e,page:t,limit:n},{rejectWithValue:o})=>{try{return(await tN(e,t,n)).data}catch(s){return o(s.response.data)}}),Go=Et("property/fetchPropertyById",async(e,{rejectWithValue:t})=>{try{return(await nN(e)).data}catch(n){return t(n.response.data)}}),ki=Et("property/updateProperty",async({id:e,propertyData:t},{rejectWithValue:n})=>{try{return(await rN(e,t)).data}catch(o){return n(o.response.data)}}),Qo=Et("properties/getProperties",async({page:e,limit:t,keyword:n=""})=>(await ve.get(`http://localhost:3002/properties?page=${e}&limit=${t}&keyword=${n}`)).data),uN=Fa({name:"property",initialState:{property:{},status:"idle",error:null,userProperties:[],selectedProperty:null,totalPages:0,currentPage:1,loading:!1,properties:[]},reducers:{},extraReducers:e=>{e.addCase(Si.pending,t=>{t.status="loading"}).addCase(Si.fulfilled,(t,n)=>{t.status="succeeded",t.property=n.payload}).addCase(Si.rejected,(t,n)=>{t.status="failed",t.error=n.payload}).addCase(Ei.pending,t=>{t.loading=!0}).addCase(Ei.fulfilled,(t,{payload:n})=>{t.loading=!1,t.userProperties=n.properties,t.totalPages=n.totalPages,t.currentPage=n.currentPage}).addCase(Ei.rejected,(t,{payload:n})=>{t.loading=!1,t.error=n}).addCase(Go.pending,t=>{t.status="loading"}).addCase(Go.fulfilled,(t,n)=>{t.status="succeeded",t.selectedProperty=n.payload}).addCase(Go.rejected,(t,n)=>{t.status="failed",t.error=n.payload}).addCase(ki.pending,t=>{t.status="loading"}).addCase(ki.fulfilled,(t,n)=>{t.status="succeeded",t.selectedProperty=n.payload}).addCase(ki.rejected,(t,n)=>{t.status="failed",t.error=n.payload}).addCase(Qo.pending,t=>{t.loading=!0}).addCase(Qo.fulfilled,(t,n)=>{t.loading=!1,t.properties=n.payload.data,t.totalPages=n.payload.totalPages,t.currentPage=n.payload.currentPage}).addCase(Qo.rejected,(t,n)=>{t.loading=!1,t.error=n.error.message})}}),dN=uN.reducer;function Tv(e){var t,n,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;ttypeof e=="number"&&!isNaN(e),pr=e=>typeof e=="string",dt=e=>typeof e=="function",Pi=e=>pr(e)||dt(e)?e:null,iu=e=>S.isValidElement(e)||pr(e)||dt(e)||xs(e);function fN(e,t,n){n===void 0&&(n=300);const{scrollHeight:o,style:s}=e;requestAnimationFrame(()=>{s.minHeight="initial",s.height=o+"px",s.transition=`all ${n}ms`,requestAnimationFrame(()=>{s.height="0",s.padding="0",s.margin="0",setTimeout(t,n)})})}function Wa(e){let{enter:t,exit:n,appendPosition:o=!1,collapse:s=!0,collapseDuration:i=300}=e;return function(a){let{children:l,position:u,preventExitTransition:c,done:d,nodeRef:f,isIn:g,playToast:b}=a;const x=o?`${t}--${u}`:t,N=o?`${n}--${u}`:n,C=S.useRef(0);return S.useLayoutEffect(()=>{const h=f.current,v=x.split(" "),m=y=>{y.target===f.current&&(b(),h.removeEventListener("animationend",m),h.removeEventListener("animationcancel",m),C.current===0&&y.type!=="animationcancel"&&h.classList.remove(...v))};h.classList.add(...v),h.addEventListener("animationend",m),h.addEventListener("animationcancel",m)},[]),S.useEffect(()=>{const h=f.current,v=()=>{h.removeEventListener("animationend",v),s?fN(h,d,i):d()};g||(c?v():(C.current=1,h.className+=` ${N}`,h.addEventListener("animationend",v)))},[g]),I.createElement(I.Fragment,null,l)}}function fp(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 Ye=new Map;let ys=[];const au=new Set,pN=e=>au.forEach(t=>t(e)),Rv=()=>Ye.size>0;function Av(e,t){var n;if(t)return!((n=Ye.get(t))==null||!n.isToastActive(e));let o=!1;return Ye.forEach(s=>{s.isToastActive(e)&&(o=!0)}),o}function Iv(e,t){iu(e)&&(Rv()||ys.push({content:e,options:t}),Ye.forEach(n=>{n.buildToast(e,t)}))}function pp(e,t){Ye.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 mN(e){const{subscribe:t,getSnapshot:n,setProps:o}=S.useRef(function(i){const a=i.containerId||1;return{subscribe(l){const u=function(d,f,g){let b=1,x=0,N=[],C=[],h=[],v=f;const m=new Map,y=new Set,E=()=>{h=Array.from(m.values()),y.forEach(O=>O())},P=O=>{C=O==null?[]:C.filter(B=>B!==O),E()},T=O=>{const{toastId:B,onOpen:$,updateId:H,children:te}=O.props,Q=H==null;O.staleId&&m.delete(O.staleId),m.set(B,O),C=[...C,O.props.toastId].filter(Z=>Z!==O.staleId),E(),g(fp(O,Q?"added":"updated")),Q&&dt($)&&$(S.isValidElement(te)&&te.props)};return{id:d,props:v,observe:O=>(y.add(O),()=>y.delete(O)),toggle:(O,B)=>{m.forEach($=>{B!=null&&B!==$.props.toastId||dt($.toggle)&&$.toggle(O)})},removeToast:P,toasts:m,clearQueue:()=>{x-=N.length,N=[]},buildToast:(O,B)=>{if((W=>{let{containerId:K,toastId:Y,updateId:ee}=W;const re=K?K!==d:d!==1,ne=m.has(Y)&&ee==null;return re||ne})(B))return;const{toastId:$,updateId:H,data:te,staleId:Q,delay:Z}=B,D=()=>{P($)},U=H==null;U&&x++;const G={...v,style:v.toastStyle,key:b++,...Object.fromEntries(Object.entries(B).filter(W=>{let[K,Y]=W;return Y!=null})),toastId:$,updateId:H,data:te,closeToast:D,isIn:!1,className:Pi(B.className||v.toastClassName),bodyClassName:Pi(B.bodyClassName||v.bodyClassName),progressClassName:Pi(B.progressClassName||v.progressClassName),autoClose:!B.isLoading&&(R=B.autoClose,A=v.autoClose,R===!1||xs(R)&&R>0?R:A),deleteToast(){const W=m.get($),{onClose:K,children:Y}=W.props;dt(K)&&K(S.isValidElement(Y)&&Y.props),g(fp(W,"removed")),m.delete($),x--,x<0&&(x=0),N.length>0?T(N.shift()):E()}};var R,A;G.closeButton=v.closeButton,B.closeButton===!1||iu(B.closeButton)?G.closeButton=B.closeButton:B.closeButton===!0&&(G.closeButton=!iu(v.closeButton)||v.closeButton);let L=O;S.isValidElement(O)&&!pr(O.type)?L=S.cloneElement(O,{closeToast:D,toastProps:G,data:te}):dt(O)&&(L=O({closeToast:D,toastProps:G,data:te}));const F={content:L,props:G,staleId:Q};v.limit&&v.limit>0&&x>v.limit&&U?N.push(F):xs(Z)?setTimeout(()=>{T(F)},Z):T(F)},setProps(O){v=O},setToggle:(O,B)=>{m.get(O).toggle=B},isToastActive:O=>C.some(B=>B===O),getSnapshot:()=>v.newestOnTop?h.reverse():h}}(a,i,pN);Ye.set(a,u);const c=u.observe(l);return ys.forEach(d=>Iv(d.content,d.options)),ys=[],()=>{c(),Ye.delete(a)}},setProps(l){var u;(u=Ye.get(a))==null||u.setProps(l)},getSnapshot(){var l;return(l=Ye.get(a))==null?void 0:l.getSnapshot()}}}(e)).current;o(e);const s=S.useSyncExternalStore(t,n,n);return{getToastToRender:function(i){if(!s)return[];const a=new Map;return s.forEach(l=>{const{position:u}=l.props;a.has(u)||a.set(u,[]),a.get(u).push(l)}),Array.from(a,l=>i(l[0],l[1]))},isToastActive:Av,count:s==null?void 0:s.length}}function hN(e){const[t,n]=S.useState(!1),[o,s]=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:u,closeToast:c,onClick:d,closeOnClick:f}=e;var g,b;function x(){n(!0)}function N(){n(!1)}function C(m){const y=i.current;a.canDrag&&y&&(a.didMove=!0,t&&N(),a.delta=e.draggableDirection==="x"?m.clientX-a.start:m.clientY-a.start,a.start!==m.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 h(){document.removeEventListener("pointermove",C),document.removeEventListener("pointerup",h);const m=i.current;if(a.canDrag&&a.didMove&&m){if(a.canDrag=!1,Math.abs(a.delta)>a.removalDistance)return s(!0),e.closeToast(),void e.collapseAll();m.style.transition="transform 0.2s, opacity 0.2s",m.style.removeProperty("transform"),m.style.removeProperty("opacity")}}(b=Ye.get((g={id:e.toastId,containerId:e.containerId,fn:n}).containerId||1))==null||b.setToggle(g.id,g.fn),S.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(m){if(e.draggable===!0||e.draggable===m.pointerType){a.didMove=!1,document.addEventListener("pointermove",C),document.addEventListener("pointerup",h);const y=i.current;a.canCloseOnClick=!0,a.canDrag=!0,y.style.transition="none",e.draggableDirection==="x"?(a.start=m.clientX,a.removalDistance=y.offsetWidth*(e.draggablePercent/100)):(a.start=m.clientY,a.removalDistance=y.offsetHeight*(e.draggablePercent===80?1.5*e.draggablePercent:e.draggablePercent)/100)}},onPointerUp:function(m){const{top:y,bottom:E,left:P,right:T}=i.current.getBoundingClientRect();m.nativeEvent.type!=="touchend"&&e.pauseOnHover&&m.clientX>=P&&m.clientX<=T&&m.clientY>=y&&m.clientY<=E?N():x()}};return l&&u&&(v.onMouseEnter=N,e.stacked||(v.onMouseLeave=x)),f&&(v.onClick=m=>{d&&d(m),a.canCloseOnClick&&c()}),{playToast:x,pauseToast:N,isRunning:t,preventExitTransition:o,toastRef:i,eventHandlers:v}}function vN(e){let{delay:t,isRunning:n,closeToast:o,type:s="default",hide:i,className:a,style:l,controlledProgress:u,progress:c,rtl:d,isIn:f,theme:g}=e;const b=i||u&&c===0,x={...l,animationDuration:`${t}ms`,animationPlayState:n?"running":"paused"};u&&(x.transform=`scaleX(${c})`);const N=On("Toastify__progress-bar",u?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${g}`,`Toastify__progress-bar--${s}`,{"Toastify__progress-bar--rtl":d}),C=dt(a)?a({rtl:d,type:s,defaultClassName:N}):On(N,a),h={[u&&c>=1?"onTransitionEnd":"onAnimationEnd"]:u&&c<1?null:()=>{f&&o()}};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--${s}`}),I.createElement("div",{role:"progressbar","aria-hidden":b?"true":"false","aria-label":"notification timer",className:C,style:x,...h}))}let gN=1;const Dv=()=>""+gN++;function xN(e){return e&&(pr(e.toastId)||xs(e.toastId))?e.toastId:Dv()}function Xo(e,t){return Iv(e,t),t.toastId}function la(e,t){return{...t,type:t&&t.type||e,toastId:xN(t)}}function ti(e){return(t,n)=>Xo(t,la(e,n))}function le(e,t){return Xo(e,la("default",t))}le.loading=(e,t)=>Xo(e,la("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),le.promise=function(e,t,n){let o,{pending:s,error:i,success:a}=t;s&&(o=pr(s)?le.loading(s,n):le.loading(s.render,{...n,...s}));const l={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},u=(d,f,g)=>{if(f==null)return void le.dismiss(o);const b={type:d,...l,...n,data:g},x=pr(f)?{render:f}:f;return o?le.update(o,{...b,...x}):le(x.render,{...b,...x}),g},c=dt(e)?e():e;return c.then(d=>u("success",a,d)).catch(d=>u("error",i,d)),c},le.success=ti("success"),le.info=ti("info"),le.error=ti("error"),le.warning=ti("warning"),le.warn=le.warning,le.dark=(e,t)=>Xo(e,la("default",{theme:"dark",...t})),le.dismiss=function(e){(function(t){var n;if(Rv()){if(t==null||pr(n=t)||xs(n))Ye.forEach(o=>{o.removeToast(t)});else if(t&&("containerId"in t||"id"in t)){const o=Ye.get(t.containerId);o?o.removeToast(t.id):Ye.forEach(s=>{s.removeToast(t.id)})}}else ys=ys.filter(o=>t!=null&&o.options.toastId!==t)})(e)},le.clearWaitingQueue=function(e){e===void 0&&(e={}),Ye.forEach(t=>{!t.props.limit||e.containerId&&t.id!==e.containerId||t.clearQueue()})},le.isActive=Av,le.update=function(e,t){t===void 0&&(t={});const n=((o,s)=>{var i;let{containerId:a}=s;return(i=Ye.get(a||1))==null?void 0:i.toasts.get(o)})(e,t);if(n){const{props:o,content:s}=n,i={delay:100,...o,...t,toastId:t.toastId||e,updateId:Dv()};i.toastId!==e&&(i.staleId=e);const a=i.render||s;delete i.render,Xo(a,i)}},le.done=e=>{le.update(e,{progress:1})},le.onChange=function(e){return au.add(e),()=>{au.delete(e)}},le.play=e=>pp(!0,e),le.pause=e=>pp(!1,e);const yN=typeof window<"u"?S.useLayoutEffect:S.useEffect,ni=e=>{let{theme:t,type:n,isLoading:o,...s}=e;return I.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:t==="colored"?"currentColor":`var(--toastify-icon-color-${n})`,...s})},Hl={info:function(e){return I.createElement(ni,{...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(ni,{...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(ni,{...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(ni,{...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"})}},jN=e=>{const{isRunning:t,preventExitTransition:n,toastRef:o,eventHandlers:s,playToast:i}=hN(e),{closeButton:a,children:l,autoClose:u,onClick:c,type:d,hideProgressBar:f,closeToast:g,transition:b,position:x,className:N,style:C,bodyClassName:h,bodyStyle:v,progressClassName:m,progressStyle:y,updateId:E,role:P,progress:T,rtl:O,toastId:B,deleteToast:$,isIn:H,isLoading:te,closeOnClick:Q,theme:Z}=e,D=On("Toastify__toast",`Toastify__toast-theme--${Z}`,`Toastify__toast--${d}`,{"Toastify__toast--rtl":O},{"Toastify__toast--close-on-click":Q}),U=dt(N)?N({rtl:O,position:x,type:d,defaultClassName:D}):On(D,N),G=function(F){let{theme:W,type:K,isLoading:Y,icon:ee}=F,re=null;const ne={theme:W,type:K};return ee===!1||(dt(ee)?re=ee({...ne,isLoading:Y}):S.isValidElement(ee)?re=S.cloneElement(ee,ne):Y?re=Hl.spinner():(oe=>oe in Hl)(K)&&(re=Hl[K](ne))),re}(e),R=!!T||!u,A={closeToast:g,type:d,theme:Z};let L=null;return a===!1||(L=dt(a)?a(A):S.isValidElement(a)?S.cloneElement(a,A):function(F){let{closeToast:W,theme:K,ariaLabel:Y="close"}=F;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:$,position:x,preventExitTransition:n,nodeRef:o,playToast:i},I.createElement("div",{id:B,onClick:c,"data-in":H,className:U,...s,style:C,ref:o},I.createElement("div",{...H&&{role:P},className:dt(h)?h({type:d}):On("Toastify__toast-body",h),style:v},G!=null&&I.createElement("div",{className:On("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!te})},G),I.createElement("div",null,l)),L,I.createElement(vN,{...E&&!R?{key:`pb-${E}`}:{},rtl:O,theme:Z,delay:u,isRunning:t,isIn:H,closeToast:g,hide:f,type:d,style:y,className:m,controlledProgress:R,progress:T||0})))},Ua=function(e,t){return t===void 0&&(t=!1),{enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:t}},NN=Wa(Ua("bounce",!0));Wa(Ua("slide",!0));Wa(Ua("zoom"));Wa(Ua("flip"));const CN={position:"top-right",transition:NN,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};function bN(e){let t={...CN,...e};const n=e.stacked,[o,s]=S.useState(!0),i=S.useRef(null),{getToastToRender:a,isToastActive:l,count:u}=mN(t),{className:c,style:d,rtl:f,containerId:g}=t;function b(N){const C=On("Toastify__toast-container",`Toastify__toast-container--${N}`,{"Toastify__toast-container--rtl":f});return dt(c)?c({position:N,rtl:f,defaultClassName:C}):On(C,Pi(c))}function x(){n&&(s(!0),le.play())}return yN(()=>{if(n){var N;const C=i.current.querySelectorAll('[data-in="true"]'),h=12,v=(N=t.position)==null?void 0:N.includes("top");let m=0,y=0;Array.from(C).reverse().forEach((E,P)=>{const T=E;T.classList.add("Toastify__toast--stacked"),P>0&&(T.dataset.collapsed=`${o}`),T.dataset.pos||(T.dataset.pos=v?"top":"bot");const O=m*(o?.2:1)+(o?0:h*P);T.style.setProperty("--y",`${v?O:-1*O}px`),T.style.setProperty("--g",`${h}`),T.style.setProperty("--s",""+(1-(o?y:0))),m+=T.offsetHeight,y+=.025})}},[o,u,n]),I.createElement("div",{ref:i,className:"Toastify",id:g,onMouseEnter:()=>{n&&(s(!1),le.pause())},onMouseLeave:x},a((N,C)=>{const h=C.length?{...d}:{...d,pointerEvents:"none"};return I.createElement("div",{className:b(N),style:h,key:`container-${N}`},C.map(v=>{let{content:m,props:y}=v;return I.createElement(jN,{...y,stacked:n,collapseAll:x,isIn:l(y.toastId,y.containerId),style:y.style,key:`toast-${y.key}`},m)}))}))}const lu=Et("fundDetails/submit",async({fundDetails:e,id:t,navigate:n},{rejectWithValue:o})=>{try{const s=await sN(e,t);return le.success("Details submitted successfully"),n(`/property/${t}`),s.data}catch(s){return le.error("Failed to submit details"),o(s.response.data)}}),Kl=Et("fundDetails/getFundDetailsById",async(e,{rejectWithValue:t})=>{try{return(await ve.get(`http://localhost:3002/fundDetails/${e}`)).data}catch(n){return t(n.response.data)}}),wN=Fa({name:"fundDetails",initialState:{fundDetails:null,status:null,error:null},reducers:{},extraReducers:e=>{e.addCase(Kl.pending,t=>{t.status="loading"}).addCase(Kl.fulfilled,(t,n)=>{t.status="succeeded",t.fundDetails=n.payload}).addCase(Kl.rejected,(t,n)=>{t.status="failed",t.error=n.payload}).addCase(lu.fulfilled,(t,n)=>{t.fundDetails=n.payload}).addCase(lu.rejected,(t,n)=>{t.error=n.payload})}}),SN=wN.reducer,EN=t1({reducer:{auth:aN,user:cN,property:dN,fundDetails:SN}});/** + * @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 js(){return js=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 PN(){return Math.random().toString(36).substr(2,8)}function hp(e,t){return{usr:e.state,key:e.key,idx:t}}function cu(e,t,n,o){return n===void 0&&(n=null),js({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?vo(t):t,{state:n,key:t&&t.key||o||PN()})}function ca(e){let{pathname:t="/",search:n="",hash:o=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),o&&o!=="#"&&(t+=o.charAt(0)==="#"?o:"#"+o),t}function vo(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let o=e.indexOf("?");o>=0&&(t.search=e.substr(o),e=e.substr(0,o)),e&&(t.pathname=e)}return t}function _N(e,t,n,o){o===void 0&&(o={});let{window:s=document.defaultView,v5Compat:i=!1}=o,a=s.history,l=Tn.Pop,u=null,c=d();c==null&&(c=0,a.replaceState(js({},a.state,{idx:c}),""));function d(){return(a.state||{idx:null}).idx}function f(){l=Tn.Pop;let C=d(),h=C==null?null:C-c;c=C,u&&u({action:l,location:N.location,delta:h})}function g(C,h){l=Tn.Push;let v=cu(N.location,C,h);c=d()+1;let m=hp(v,c),y=N.createHref(v);try{a.pushState(m,"",y)}catch(E){if(E instanceof DOMException&&E.name==="DataCloneError")throw E;s.location.assign(y)}i&&u&&u({action:l,location:N.location,delta:1})}function b(C,h){l=Tn.Replace;let v=cu(N.location,C,h);c=d();let m=hp(v,c),y=N.createHref(v);a.replaceState(m,"",y),i&&u&&u({action:l,location:N.location,delta:0})}function x(C){let h=s.location.origin!=="null"?s.location.origin:s.location.href,v=typeof C=="string"?C:ca(C);return v=v.replace(/ $/,"%20"),ke(h,"No window.location.(origin|href) available to create URL for href: "+v),new URL(v,h)}let N={get action(){return l},get location(){return e(s,a)},listen(C){if(u)throw new Error("A history only accepts one active listener");return s.addEventListener(mp,f),u=C,()=>{s.removeEventListener(mp,f),u=null}},createHref(C){return t(s,C)},createURL:x,encodeLocation(C){let h=x(C);return{pathname:h.pathname,search:h.search,hash:h.hash}},push:g,replace:b,go(C){return a.go(C)}};return N}var vp;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(vp||(vp={}));function ON(e,t,n){return n===void 0&&(n="/"),TN(e,t,n,!1)}function TN(e,t,n,o){let s=typeof t=="string"?vo(t):t,i=co(s.pathname||"/",n);if(i==null)return null;let a=Mv(e);RN(a);let l=null;for(let u=0;l==null&&u{let u={relativePath:l===void 0?i.path||"":l,caseSensitive:i.caseSensitive===!0,childrenIndex:a,route:i};u.relativePath.startsWith("/")&&(ke(u.relativePath.startsWith(o),'Absolute route path "'+u.relativePath+'" nested under path '+('"'+o+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),u.relativePath=u.relativePath.slice(o.length));let c=zn([o,u.relativePath]),d=n.concat(u);i.children&&i.children.length>0&&(ke(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),Mv(i.children,t,d,c)),!(i.path==null&&!i.index)&&t.push({path:c,score:BN(c,i.index),routesMeta:d})};return e.forEach((i,a)=>{var l;if(i.path===""||!((l=i.path)!=null&&l.includes("?")))s(i,a);else for(let u of Lv(i.path))s(i,a,u)}),t}function Lv(e){let t=e.split("/");if(t.length===0)return[];let[n,...o]=t,s=n.endsWith("?"),i=n.replace(/\?$/,"");if(o.length===0)return s?[i,""]:[i];let a=Lv(o.join("/")),l=[];return l.push(...a.map(u=>u===""?i:[i,u].join("/"))),s&&l.push(...a),l.map(u=>e.startsWith("/")&&u===""?"/":u)}function RN(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:zN(t.routesMeta.map(o=>o.childrenIndex),n.routesMeta.map(o=>o.childrenIndex)))}const AN=/^:[\w-]+$/,IN=3,DN=2,FN=1,MN=10,LN=-2,gp=e=>e==="*";function BN(e,t){let n=e.split("/"),o=n.length;return n.some(gp)&&(o+=LN),t&&(o+=DN),n.filter(s=>!gp(s)).reduce((s,i)=>s+(AN.test(i)?IN:i===""?FN:MN),o)}function zN(e,t){return e.length===t.length&&e.slice(0,-1).every((o,s)=>o===t[s])?e[e.length-1]-t[t.length-1]:0}function $N(e,t,n){let{routesMeta:o}=e,s={},i="/",a=[];for(let l=0;l{let{paramName:g,isOptional:b}=d;if(g==="*"){let N=l[f]||"";a=i.slice(0,i.length-N.length).replace(/(.)\/+$/,"$1")}const x=l[f];return b&&!x?c[g]=void 0:c[g]=(x||"").replace(/%2F/g,"/"),c},{}),pathname:i,pathnameBase:a,pattern:e}}function WN(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 o=[],s="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,l,u)=>(o.push({paramName:l,isOptional:u!=null}),u?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(o.push({paramName:"*"}),s+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?s+="\\/*$":e!==""&&e!=="/"&&(s+="(?:(?=\\/|$))"),[new RegExp(s,t?void 0:"i"),o]}function UN(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 co(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,o=e.charAt(n);return o&&o!=="/"?null:e.slice(n)||"/"}function qN(e,t){t===void 0&&(t="/");let{pathname:n,search:o="",hash:s=""}=typeof e=="string"?vo(e):e;return{pathname:n?n.startsWith("/")?n:VN(n,t):t,search:YN(o),hash:GN(s)}}function VN(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(s=>{s===".."?n.length>1&&n.pop():s!=="."&&n.push(s)}),n.length>1?n.join("/"):"/"}function Yl(e,t,n,o){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(o)+"]. 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 HN(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Bv(e,t){let n=HN(e);return t?n.map((o,s)=>s===n.length-1?o.pathname:o.pathnameBase):n.map(o=>o.pathnameBase)}function zv(e,t,n,o){o===void 0&&(o=!1);let s;typeof e=="string"?s=vo(e):(s=js({},e),ke(!s.pathname||!s.pathname.includes("?"),Yl("?","pathname","search",s)),ke(!s.pathname||!s.pathname.includes("#"),Yl("#","pathname","hash",s)),ke(!s.search||!s.search.includes("#"),Yl("#","search","hash",s)));let i=e===""||s.pathname==="",a=i?"/":s.pathname,l;if(a==null)l=n;else{let f=t.length-1;if(!o&&a.startsWith("..")){let g=a.split("/");for(;g[0]==="..";)g.shift(),f-=1;s.pathname=g.join("/")}l=f>=0?t[f]:"/"}let u=qN(s,l),c=a&&a!=="/"&&a.endsWith("/"),d=(i||a===".")&&n.endsWith("/");return!u.pathname.endsWith("/")&&(c||d)&&(u.pathname+="/"),u}const zn=e=>e.join("/").replace(/\/\/+/g,"/"),KN=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),YN=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,GN=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function QN(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const $v=["post","put","patch","delete"];new Set($v);const XN=["get",...$v];new Set(XN);/** + * 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 Ns(){return Ns=Object.assign?Object.assign.bind():function(e){for(var t=1;t{l.current=!0}),S.useCallback(function(c,d){if(d===void 0&&(d={}),!l.current)return;if(typeof c=="number"){o.go(c);return}let f=zv(c,JSON.parse(a),i,d.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:zn([t,f.pathname])),(d.replace?o.replace:o.push)(f,d.state,d)},[t,o,a,i,e])}function go(){let{matches:e}=S.useContext(Yn),t=e[e.length-1];return t?t.params:{}}function Ha(e,t){let{relative:n}=t===void 0?{}:t,{future:o}=S.useContext(Kn),{matches:s}=S.useContext(Yn),{pathname:i}=Rs(),a=JSON.stringify(Bv(s,o.v7_relativeSplatPath));return S.useMemo(()=>zv(e,JSON.parse(a),i,n==="path"),[e,a,i,n])}function eC(e,t){return tC(e,t)}function tC(e,t,n,o){Ts()||ke(!1);let{navigator:s}=S.useContext(Kn),{matches:i}=S.useContext(Yn),a=i[i.length-1],l=a?a.params:{};a&&a.pathname;let u=a?a.pathnameBase:"/";a&&a.route;let c=Rs(),d;if(t){var f;let C=typeof t=="string"?vo(t):t;u==="/"||(f=C.pathname)!=null&&f.startsWith(u)||ke(!1),d=C}else d=c;let g=d.pathname||"/",b=g;if(u!=="/"){let C=u.replace(/^\//,"").split("/");b="/"+g.replace(/^\//,"").split("/").slice(C.length).join("/")}let x=ON(e,{pathname:b}),N=iC(x&&x.map(C=>Object.assign({},C,{params:Object.assign({},l,C.params),pathname:zn([u,s.encodeLocation?s.encodeLocation(C.pathname).pathname:C.pathname]),pathnameBase:C.pathnameBase==="/"?u:zn([u,s.encodeLocation?s.encodeLocation(C.pathnameBase).pathname:C.pathnameBase])})),i,n,o);return t&&N?S.createElement(Va.Provider,{value:{location:Ns({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:Tn.Pop}},N):N}function nC(){let e=uC(),t=QN(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,s={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:s},n):null,null)}const rC=S.createElement(nC,null);class oC 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(Yn.Provider,{value:this.props.routeContext},S.createElement(Uv.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function sC(e){let{routeContext:t,match:n,children:o}=e,s=S.useContext(qa);return s&&s.static&&s.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=n.route.id),S.createElement(Yn.Provider,{value:t},o)}function iC(e,t,n,o){var s;if(t===void 0&&(t=[]),n===void 0&&(n=null),o===void 0&&(o=null),e==null){var i;if(!n)return null;if(n.errors)e=n.matches;else if((i=o)!=null&&i.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let a=e,l=(s=n)==null?void 0:s.errors;if(l!=null){let d=a.findIndex(f=>f.route.id&&(l==null?void 0:l[f.route.id])!==void 0);d>=0||ke(!1),a=a.slice(0,Math.min(a.length,d+1))}let u=!1,c=-1;if(n&&o&&o.v7_partialHydration)for(let d=0;d=0?a=a.slice(0,c+1):a=[a[0]];break}}}return a.reduceRight((d,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||rC,u&&(c<0&&g===0?(x=!0,C=null):c===g&&(x=!0,C=f.route.hydrateFallbackElement||null)));let h=t.concat(a.slice(0,g+1)),v=()=>{let m;return b?m=N:x?m=C:f.route.Component?m=S.createElement(f.route.Component,null):f.route.element?m=f.route.element:m=d,S.createElement(sC,{match:f,routeContext:{outlet:d,matches:h,isDataRoute:n!=null},children:m})};return n&&(f.route.ErrorBoundary||f.route.errorElement||g===0)?S.createElement(oC,{location:n.location,revalidation:n.revalidation,component:N,error:b,children:v(),routeContext:{outlet:null,matches:h,isDataRoute:!0}}):v()},null)}var Vv=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Vv||{}),da=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}(da||{});function aC(e){let t=S.useContext(qa);return t||ke(!1),t}function lC(e){let t=S.useContext(Wv);return t||ke(!1),t}function cC(e){let t=S.useContext(Yn);return t||ke(!1),t}function Hv(e){let t=cC(),n=t.matches[t.matches.length-1];return n.route.id||ke(!1),n.route.id}function uC(){var e;let t=S.useContext(Uv),n=lC(da.UseRouteError),o=Hv(da.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[o]}function dC(){let{router:e}=aC(Vv.UseNavigateStable),t=Hv(da.UseNavigateStable),n=S.useRef(!1);return qv(()=>{n.current=!0}),S.useCallback(function(s,i){i===void 0&&(i={}),n.current&&(typeof s=="number"?e.navigate(s):e.navigate(s,Ns({fromRouteId:t},i)))},[e,t])}function Ae(e){ke(!1)}function fC(e){let{basename:t="/",children:n=null,location:o,navigationType:s=Tn.Pop,navigator:i,static:a=!1,future:l}=e;Ts()&&ke(!1);let u=t.replace(/^\/*/,"/"),c=S.useMemo(()=>({basename:u,navigator:i,static:a,future:Ns({v7_relativeSplatPath:!1},l)}),[u,l,i,a]);typeof o=="string"&&(o=vo(o));let{pathname:d="/",search:f="",hash:g="",state:b=null,key:x="default"}=o,N=S.useMemo(()=>{let C=co(d,u);return C==null?null:{location:{pathname:C,search:f,hash:g,state:b,key:x},navigationType:s}},[u,d,f,g,b,x,s]);return N==null?null:S.createElement(Kn.Provider,{value:c},S.createElement(Va.Provider,{children:n,value:N}))}function pC(e){let{children:t,location:n}=e;return eC(uu(t),n)}new Promise(()=>{});function uu(e,t){t===void 0&&(t=[]);let n=[];return S.Children.forEach(e,(o,s)=>{if(!S.isValidElement(o))return;let i=[...t,s];if(o.type===S.Fragment){n.push.apply(n,uu(o.props.children,i));return}o.type!==Ae&&ke(!1),!o.props.index||!o.props.children||ke(!1);let a={id:o.props.id||i.join("-"),caseSensitive:o.props.caseSensitive,element:o.props.element,Component:o.props.Component,index:o.props.index,path:o.props.path,loader:o.props.loader,action:o.props.action,errorElement:o.props.errorElement,ErrorBoundary:o.props.ErrorBoundary,hasErrorBoundary:o.props.ErrorBoundary!=null||o.props.errorElement!=null,shouldRevalidate:o.props.shouldRevalidate,handle:o.props.handle,lazy:o.props.lazy};o.props.children&&(a.children=uu(o.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 fa(){return fa=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[s]=e[s]);return n}function mC(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function hC(e,t){return e.button===0&&(!t||t==="_self")&&!mC(e)}const vC=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],gC=["aria-current","caseSensitive","className","end","style","to","unstable_viewTransition","children"],xC="6";try{window.__reactRouterVersion=xC}catch{}const yC=S.createContext({isTransitioning:!1}),jC="startTransition",xp=ec[jC];function NC(e){let{basename:t,children:n,future:o,window:s}=e,i=S.useRef();i.current==null&&(i.current=kN({window:s,v5Compat:!0}));let a=i.current,[l,u]=S.useState({action:a.action,location:a.location}),{v7_startTransition:c}=o||{},d=S.useCallback(f=>{c&&xp?xp(()=>u(f)):u(f)},[u,c]);return S.useLayoutEffect(()=>a.listen(d),[a,d]),S.createElement(fC,{basename:t,children:n,location:l.location,navigationType:l.action,navigator:a,future:o})}const CC=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",bC=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,wC=S.forwardRef(function(t,n){let{onClick:o,relative:s,reloadDocument:i,replace:a,state:l,target:u,to:c,preventScrollReset:d,unstable_viewTransition:f}=t,g=Kv(t,vC),{basename:b}=S.useContext(Kn),x,N=!1;if(typeof c=="string"&&bC.test(c)&&(x=c,CC))try{let m=new URL(window.location.href),y=c.startsWith("//")?new URL(m.protocol+c):new URL(c),E=co(y.pathname,b);y.origin===m.origin&&E!=null?c=E+y.search+y.hash:N=!0}catch{}let C=JN(c,{relative:s}),h=EC(c,{replace:a,state:l,target:u,preventScrollReset:d,relative:s,unstable_viewTransition:f});function v(m){o&&o(m),m.defaultPrevented||h(m)}return S.createElement("a",fa({},g,{href:x||C,onClick:N||i?o:v,ref:n,target:u}))}),Ne=S.forwardRef(function(t,n){let{"aria-current":o="page",caseSensitive:s=!1,className:i="",end:a=!1,style:l,to:u,unstable_viewTransition:c,children:d}=t,f=Kv(t,gC),g=Ha(u,{relative:f.relative}),b=Rs(),x=S.useContext(Wv),{navigator:N,basename:C}=S.useContext(Kn),h=x!=null&&kC(g)&&c===!0,v=N.encodeLocation?N.encodeLocation(g).pathname:g.pathname,m=b.pathname,y=x&&x.navigation&&x.navigation.location?x.navigation.location.pathname:null;s||(m=m.toLowerCase(),y=y?y.toLowerCase():null,v=v.toLowerCase()),y&&C&&(y=co(y,C)||y);const E=v!=="/"&&v.endsWith("/")?v.length-1:v.length;let P=m===v||!a&&m.startsWith(v)&&m.charAt(E)==="/",T=y!=null&&(y===v||!a&&y.startsWith(v)&&y.charAt(v.length)==="/"),O={isActive:P,isPending:T,isTransitioning:h},B=P?o:void 0,$;typeof i=="function"?$=i(O):$=[i,P?"active":null,T?"pending":null,h?"transitioning":null].filter(Boolean).join(" ");let H=typeof l=="function"?l(O):l;return S.createElement(wC,fa({},f,{"aria-current":B,className:$,ref:n,style:H,to:u,unstable_viewTransition:c}),typeof d=="function"?d(O):d)});var du;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(du||(du={}));var yp;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(yp||(yp={}));function SC(e){let t=S.useContext(qa);return t||ke(!1),t}function EC(e,t){let{target:n,replace:o,state:s,preventScrollReset:i,relative:a,unstable_viewTransition:l}=t===void 0?{}:t,u=Sr(),c=Rs(),d=Ha(e,{relative:a});return S.useCallback(f=>{if(hC(f,n)){f.preventDefault();let g=o!==void 0?o:ca(c)===ca(d);u(e,{replace:g,state:s,preventScrollReset:i,relative:a,unstable_viewTransition:l})}},[c,u,d,o,s,n,e,i,a,l])}function kC(e,t){t===void 0&&(t={});let n=S.useContext(yC);n==null&&ke(!1);let{basename:o}=SC(du.useViewTransitionState),s=Ha(e,{relative:t.relative});if(!n.isTransitioning)return!1;let i=co(n.currentLocation.pathname,o)||n.currentLocation.pathname,a=co(n.nextLocation.pathname,o)||n.nextLocation.pathname;return ua(s.pathname,a)!=null||ua(s.pathname,i)!=null}const Ze=()=>{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(Ne,{to:"/",className:"link-primary text-decoration-none",children:"Home"})}),r.jsx("li",{children:r.jsx(Ne,{to:"/about",className:"link-primary text-decoration-none",children:"About"})}),r.jsx("li",{children:r.jsx(Ne,{to:"/services",className:"link-primary text-decoration-none",children:"Services"})}),r.jsx("li",{children:r.jsx(Ne,{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."]})})})})})]})})},PC="/assets/logo-Cb1x1exd.png",Fe=()=>{var s,i;const{user:e}=Qe(a=>({...a.auth})),t=Ft(),n=Sr(),o=()=>{t(iN()),n("/")};return r.jsx(r.Fragment,{children: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:PC,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(Ne,{to:"/",className:"nav-link",style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:"Home"})}),r.jsx("li",{className:"nav-item",children:r.jsx(Ne,{to:"/services",className:"nav-link",style:{fontSize:"20px",fontWeight:"normal"},children:"Services"})}),r.jsx("li",{className:"nav-item",children:r.jsx(Ne,{to:"/searchmyproperties",className:"nav-link",style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:"Search Database"})}),r.jsx("li",{className:"nav-item",children:r.jsx(Ne,{to:"/about",className:"nav-link",style:{fontSize:"20px",fontWeight:"normal"},children:"About"})}),r.jsx("li",{className:"nav-item",children:r.jsx(Ne,{to:"/searchproperties",className:"nav-link",style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:"Search properties"})}),r.jsx("li",{className:"nav-item",children:r.jsx(Ne,{to:"/contact",className:"nav-link",style:{fontSize:"20px",fontWeight:"normal"},children:"Contact"})})]}),(s=e==null?void 0:e.result)!=null&&s._id?r.jsx(Ne,{to:"/dashboard",style:{fontWeight:"bold"},children:"Dashboard"}):r.jsx(Ne,{to:"/register",className:"nav-link",style:{fontWeight:"bold"},children:"Register"}),(i=e==null?void 0:e.result)!=null&&i._id?r.jsx(Ne,{to:"/login",children:r.jsx("p",{className:"header-text",onClick:o,style:{fontWeight:"bold"},children:"Logout"})}):r.jsx(Ne,{to:"/login",className:"nav-link",style:{fontWeight:"bold"},children:"Login"})]})]})})})},_C=()=>r.jsxs(r.Fragment,{children:[r.jsx(Fe,{}),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(Ze,{})]}),OC=()=>r.jsxs(r.Fragment,{children:[r.jsx(Fe,{}),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(Ze,{})]}),TC=()=>r.jsxs(r.Fragment,{children:[r.jsx(Fe,{}),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(Ze,{})]});var nn=function(){return nn=Object.assign||function(e){for(var t,n=1,o=arguments.length;n{const[e,t]=S.useState(nb),[n,o]=S.useState(!1),{loading:s,error:i}=Qe(E=>({...E.auth})),{title:a,email:l,password:u,firstName:c,middleName:d,lastName:f,confirmPassword:g,termsconditions:b,userType:x}=e,N=Ft(),C=Sr();S.useEffect(()=>{i&&le.error(i)},[i]),S.useEffect(()=>{o(a!=="None"&&l&&u&&c&&d&&f&&g&&b&&x!=="")},[a,l,u,c,d,f,g,b,x]);const h=E=>{if(E.preventDefault(),u!==g)return le.error("Password should match");n?N(Ni({formValue:e,navigate:C,toast:le})):le.error("Please fill in all fields and select all checkboxes")},v=E=>E.charAt(0).toUpperCase()+E.slice(1),m=E=>{const{name:P,value:T,type:O,checked:B}=E.target;t(O==="checkbox"?$=>({...$,[P]:B}):$=>({...$,[P]:P==="email"||P==="password"||P==="confirmPassword"?T:v(T)}))},y=E=>{t(P=>({...P,userType:E.target.value}))};return r.jsxs(r.Fragment,{children:[r.jsx(Fe,{}),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:h,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:m,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:m,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:d,name:"middleName",onChange:m,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:m,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:m,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:u,name:"password",onChange:m,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:m,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:m,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||s,children:[s&&r.jsx(Yv.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(Ze,{})]})},ob={email:"",password:""},sb=()=>{const[e,t]=S.useState(ob),{loading:n,error:o}=Qe(d=>({...d.auth})),{email:s,password:i}=e,a=Ft(),l=Sr();S.useEffect(()=>{o&&le.error(o)},[o]);const u=d=>{d.preventDefault(),s&&i&&a(ji({formValue:e,navigate:l,toast:le}))},c=d=>{let{name:f,value:g}=d.target;t({...e,[f]:g})};return r.jsxs(r.Fragment,{children:[r.jsx(Fe,{}),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:s,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:u,style:{backgroundColor:"#fda417",border:"#fda417"},children:[n&&r.jsx(Yv.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(Ne,{to:"/register",className:"link-primary text-decoration-none",children:"Register"}),r.jsx(Ne,{to:"/forgotpassword",className:"nav-link",children:"Forgot Password"})]})})})}),r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-12"})})]})})})]})})}),r.jsx(Ze,{})]})},_i="/assets/samplepic-BM_cnzgz.jpg";var Gv={exports:{}};(function(e,t){(function(n,o){e.exports=o()})(Ig,function(){return function(n){function o(i){if(s[i])return s[i].exports;var a=s[i]={exports:{},id:i,loaded:!1};return n[i].call(a.exports,a,a.exports,o),a.loaded=!0,a.exports}var s={};return o.m=n,o.c=s,o.p="",o(0)}([function(n,o,s){function i(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 u(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(o,"__esModule",{value:!0});var c=function(){function b(x,N){for(var C=0;C1)for(var E=1;E1?d-1:0),g=1;g2?f-2:0),b=2;b1){for(var Z=Array(Q),D=0;D"u"||O.$$typeof!==h)){var G=typeof y=="function"?y.displayName||y.name||"Unknown":y;B&&u(O,G),$&&c(O,G)}return m(y,B,$,H,te,b.current,O)},m.createFactory=function(y){var E=m.createElement.bind(null,y);return E.type=y,E},m.cloneAndReplaceKey=function(y,E){var P=m(y.type,E,y.ref,y._self,y._source,y._owner,y.props);return P},m.cloneElement=function(y,E,P){var T,O=g({},y.props),B=y.key,$=y.ref,H=y._self,te=y._source,Q=y._owner;if(E!=null){a(E)&&($=E.ref,Q=b.current),l(E)&&(B=""+E.key);var Z;y.type&&y.type.defaultProps&&(Z=y.type.defaultProps);for(T in E)C.call(E,T)&&!v.hasOwnProperty(T)&&(E[T]===void 0&&Z!==void 0?O[T]=Z[T]:O[T]=E[T])}var D=arguments.length-2;if(D===1)O.children=P;else if(D>1){for(var U=Array(D),G=0;G1?c-1:0),f=1;f2?d-2:0),g=2;g.")}return T}function c(P,T){if(P._store&&!P._store.validated&&P.key==null){P._store.validated=!0;var O=y.uniqueKey||(y.uniqueKey={}),B=u(T);if(!O[B]){O[B]=!0;var $="";P&&P._owner&&P._owner!==g.current&&($=" It was passed a child from "+P._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',B,$,b.getCurrentStackAddendum(P))}}}function d(P,T){if(typeof P=="object"){if(Array.isArray(P))for(var O=0;O1?Y-1:0),re=1;re"u"||F===null)return""+F;var W=Q(F);if(W==="object"){if(F instanceof Date)return"date";if(F instanceof RegExp)return"regexp"}return W}function D(F){var W=Z(F);switch(W){case"array":case"object":return"an "+W;case"boolean":case"date":case"regexp":return"a "+W;default:return W}}function U(F){return F.constructor&&F.constructor.name?F.constructor.name:A}var G=typeof Symbol=="function"&&Symbol.iterator,R="@@iterator",A="<>",L={array:h("array"),bool:h("boolean"),func:h("function"),number:h("number"),object:h("object"),string:h("string"),symbol:h("symbol"),any:v(),arrayOf:m,element:y(),instanceOf:E,node:B(),objectOf:T,oneOf:P,oneOfType:O,shape:$};return N.prototype=Error.prototype,L.checkPropTypes=d,L.PropTypes=L,L}}).call(o,s(1))},function(n,o){function s(l){var u=/[=:]/g,c={"=":"=0",":":"=2"},d=(""+l).replace(u,function(f){return c[f]});return"$"+d}function i(l){var u=/(=0|=2)/g,c={"=0":"=","=2":":"},d=l[0]==="."&&l[1]==="$"?l.substring(2):l.substring(1);return(""+d).replace(u,function(f){return c[f]})}var a={escape:s,unescape:i};n.exports=a},function(n,o,s){(function(i){var a=s(5),l=s(2),u=function(h){var v=this;if(v.instancePool.length){var m=v.instancePool.pop();return v.call(m,h),m}return new v(h)},c=function(h,v){var m=this;if(m.instancePool.length){var y=m.instancePool.pop();return m.call(y,h,v),y}return new m(h,v)},d=function(h,v,m){var y=this;if(y.instancePool.length){var E=y.instancePool.pop();return y.call(E,h,v,m),E}return new y(h,v,m)},f=function(h,v,m,y){var E=this;if(E.instancePool.length){var P=E.instancePool.pop();return E.call(P,h,v,m,y),P}return new E(h,v,m,y)},g=function(h){var v=this;h instanceof v||(i.env.NODE_ENV!=="production"?l(!1,"Trying to release an instance into a pool of a different type."):a("25")),h.destructor(),v.instancePool.length{const[e,t]=S.useState("propertydetails"),n=()=>{e==="propertydetails"&&t("Images"),e==="Images"&&t("Accounting")},o=()=>{e==="Images"&&t("propertydetails"),e==="Accounting"&&t("Images")},s=Ft(),{status:i,error:a}=Qe(p=>p.property),{user:l}=Qe(p=>({...p.auth})),u=[1,2,3,4,5,6,7,8,9,10],[c,d]=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"}),[f,g]=S.useState(!1),b=(p,j)=>{console.log("File received:",p);const w=[...c.images];w[j].file=p.base64,d({...c,images:w})},x=()=>{d({...c,images:[...c.images,{title:"",file:""}]})},N=p=>{const j=c.images.filter((w,M)=>M!==p);d({...c,images:j})},C=(p,j)=>{const w=[...c.images];w[p].title=j.target.value,d({...c,images:w})},h=(p,j,w)=>{const{name:M,value:q}=p.target;if(w==="propertyTaxInfo"){const X=[...c.propertyTaxInfo];X[j][M]=q,d({...c,propertyTaxInfo:X})}else d({...c,[M]:q})},v=()=>{d({...c,propertyTaxInfo:[...c.propertyTaxInfo,{propertytaxowned:"",ownedyear:"",taxassessed:"",taxyear:""}]})},m=p=>{const j=c.propertyTaxInfo.filter((w,M)=>M!==p);d({...c,propertyTaxInfo:j})},y=()=>{d(p=>({...p,costPaidAtoB:[...p.costPaidAtoB,{title:"",price:""}]}))},E=p=>{const j=c.costPaidAtoB.filter((w,M)=>M!==p);d(w=>({...w,costPaidAtoB:j}))},P=(p,j,w)=>{const M=[...c.costPaidAtoB];M[p][j]=w,d(q=>({...q,costPaidAtoB:M}))},T=(p,j)=>{let w=p.target.value;if(w=w.replace(/^\$/,"").trim(),/^\d*\.?\d*$/.test(w)||w===""){const q=c.costPaidAtoB.map((X,ae)=>ae===j?{...X,price:w,isInvalid:!1}:X);d({...c,costPaidAtoB:q})}else{const q=c.costPaidAtoB.map((X,ae)=>ae===j?{...X,isInvalid:!0}:X);d({...c,costPaidAtoB:q})}},O=()=>{const p=c.costPaidAtoB.reduce((w,M)=>{const q=parseFloat(M.price)||0;return w+q},0),j=parseFloat(c.purchaseCost)||0;return p+j},B=()=>{d(p=>({...p,credits:[...p.credits,{title:"",price:""}]}))},$=p=>{const j=c.credits.filter((w,M)=>M!==p);d(w=>({...w,credits:j}))},H=(p,j,w)=>{const M=[...c.credits];M[p][j]=w,d(q=>({...q,credits:M}))},te=(p,j)=>{const w=p.target.value;if(/^\d*\.?\d*$/.test(w)||w===""){const q=c.credits.map((X,ae)=>ae===j?{...X,price:w,isInvalid:!1}:X);d({...c,credits:q})}else{const q=c.credits.map((X,ae)=>ae===j?{...X,isInvalid:!0}:X);d({...c,credits:q})}},Q=()=>c.credits.reduce((p,j)=>{const w=parseFloat(j.price);return p+(isNaN(w)?0:w)},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),w=parseFloat(c.purchaseCost)||0;return p+j+w},D=()=>{d(p=>({...p,cashAdjustments:[...p.cashAdjustments,{title:"",price:""}]}))},U=p=>{const j=c.cashAdjustments.filter((w,M)=>M!==p);d(w=>({...w,cashAdjustments:j}))},G=(p,j,w)=>{const M=[...c.cashAdjustments];M[p][j]=w,d(q=>({...q,cashAdjustments:M}))},R=(p,j)=>{const w=p.target.value;if(/^\d*\.?\d*$/.test(w)||w===""){const q=c.cashAdjustments.map((X,ae)=>ae===j?{...X,price:w,isInvalid:!1}:X);d({...c,cashAdjustments:q})}else{const q=c.cashAdjustments.map((X,ae)=>ae===j?{...X,isInvalid:!0}:X);d({...c,cashAdjustments:q})}},A=()=>c.cashAdjustments.reduce((p,j)=>{const w=parseFloat(j.price);return p+(isNaN(w)?0:w)},0),L=()=>{const p=A(),j=Q(),w=O();return p+j+w},F=()=>{d(p=>({...p,incidentalCost:[...p.incidentalCost,{title:"",price:""}]}))},W=p=>{const j=c.incidentalCost.filter((w,M)=>M!==p);d(w=>({...w,incidentalCost:j}))},K=(p,j,w)=>{const M=[...c.incidentalCost];M[p][j]=w,d(q=>({...q,incidentalCost:M}))},Y=(p,j)=>{const w=p.target.value;if(/^\d*\.?\d*$/.test(w)||w===""){const q=c.incidentalCost.map((X,ae)=>ae===j?{...X,price:w,isInvalid:!1}:X);d({...c,incidentalCost:q})}else{const q=c.incidentalCost.map((X,ae)=>ae===j?{...X,isInvalid:!0}:X);d({...c,incidentalCost:q})}},ee=()=>c.incidentalCost.reduce((p,j)=>{const w=parseFloat(j.price);return p+(isNaN(w)?0:w)},0),re=()=>{d(p=>({...p,carryCosts:[...p.carryCosts,{title:"",price:""}]}))},ne=p=>{const j=c.carryCosts.filter((w,M)=>M!==p);d(w=>({...w,carryCosts:j}))},oe=(p,j,w)=>{const M=[...c.carryCosts];M[p][j]=w,d(q=>({...q,carryCosts:M}))},ie=(p,j)=>{const w=p.target.value;if(/^\d*\.?\d*$/.test(w)||w===""){const q=c.carryCosts.map((X,ae)=>ae===j?{...X,price:w,isInvalid:!1}:X);d({...c,carryCosts:q})}else{const q=c.carryCosts.map((X,ae)=>ae===j?{...X,isInvalid:!0}:X);d({...c,carryCosts:q})}},ce=()=>c.carryCosts.reduce((p,j)=>{const w=parseFloat(j.price);return p+(isNaN(w)?0:w)},0),he=()=>{d(p=>({...p,renovationCost:[...p.renovationCost,{title:"",price:""}]}))},Me=p=>{const j=c.renovationCost.filter((w,M)=>M!==p);d(w=>({...w,renovationCost:j}))},yt=(p,j,w)=>{const M=[...c.renovationCost];M[p][j]=w,d(q=>({...q,renovationCost:M}))},Lt=(p,j)=>{const w=p.target.value;if(/^\d*\.?\d*$/.test(w)||w===""){const q=c.renovationCost.map((X,ae)=>ae===j?{...X,price:w,isInvalid:!1}:X);d({...c,renovationCost:q})}else{const q=c.renovationCost.map((X,ae)=>ae===j?{...X,isInvalid:!0}:X);d({...c,renovationCost:q})}},pe=()=>c.renovationCost.reduce((p,j)=>{const w=parseFloat(j.price);return p+(isNaN(w)?0:w)},0),Bt=()=>{const p=ee(),j=ce(),w=pe();return p+j+w},He=()=>{const p=Bt(),j=L();return p+j},Gn=()=>{d(p=>({...p,costPaidOutofClosing:[...p.costPaidOutofClosing,{title:"",price:""}]}))},Zt=p=>{const j=c.costPaidOutofClosing.filter((w,M)=>M!==p);d(w=>({...w,costPaidOutofClosing:j}))},yo=(p,j,w)=>{const M=[...c.costPaidOutofClosing];M[p][j]=w,d(q=>({...q,costPaidOutofClosing:M}))},jo=(p,j)=>{const w=p.target.value;if(/^\d*\.?\d*$/.test(w)||w===""){const q=c.costPaidOutofClosing.map((X,ae)=>ae===j?{...X,price:w,isInvalid:!1}:X);d({...c,costPaidOutofClosing:q})}else{const q=c.costPaidOutofClosing.map((X,ae)=>ae===j?{...X,isInvalid:!0}:X);d({...c,costPaidOutofClosing:q})}},Qn=()=>c.costPaidOutofClosing.reduce((p,j)=>{const w=parseFloat(j.price);return p+(isNaN(w)?0:w)},0),zt=()=>{const p=c.sellingPriceBtoC,j=Qn();return p-j},vn=()=>{d(p=>({...p,adjustments:[...p.adjustments,{title:"",price:""}]}))},$t=p=>{const j=c.adjustments.filter((w,M)=>M!==p);d(w=>({...w,adjustments:j}))},de=(p,j,w)=>{const M=[...c.adjustments];M[p][j]=w,d(q=>({...q,adjustments:M}))},Wt=(p,j)=>{const w=p.target.value;if(/^\d*\.?\d*$/.test(w)||w===""){const q=c.adjustments.map((X,ae)=>ae===j?{...X,price:w,isInvalid:!1}:X);d({...c,adjustments:q})}else{const q=c.adjustments.map((X,ae)=>ae===j?{...X,isInvalid:!0}:X);d({...c,adjustments:q})}},gn=()=>c.adjustments.reduce((p,j)=>{const w=parseFloat(j.price);return p+(isNaN(w)?0:w)},0),Is=()=>{const p=zt(),j=gn();return p+j},No=()=>{d(p=>({...p,incomestatement:[...p.incomestatement,{title:"",price:""}]}))},Ds=p=>{const j=c.incomestatement.filter((w,M)=>M!==p);d(w=>({...w,incomestatement:j}))},Qa=(p,j,w)=>{const M=[...c.incomestatement];M[p][j]=w,d(q=>({...q,incomestatement:M}))},Xa=(p,j)=>{const w=p.target.value;if(/^\d*\.?\d*$/.test(w)||w===""){const q=c.incomestatement.map((X,ae)=>ae===j?{...X,price:w,isInvalid:!1}:X);d({...c,incomestatement:q})}else{const q=c.incomestatement.map((X,ae)=>ae===j?{...X,isInvalid:!0}:X);d({...c,incomestatement:q})}},Co=()=>c.incomestatement.reduce((p,j)=>{const w=parseFloat(j.price);return p+(isNaN(w)?0:w)},0),Xn=()=>{const p=Co(),j=zt();return p+j},Jn=()=>{const p=isNaN(parseFloat(Xn()))?0:parseFloat(Xn()),j=isNaN(parseFloat(c.shorttermrental))?0:parseFloat(c.shorttermrental),w=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(He()))?0:parseFloat(He());return p+j+w+M+q-X},en=()=>{const p=Jn(),j=c.FinancingCostClosingCost;return p-j},Er=()=>en(),bo=()=>{var p,j,w,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 ae=Er(),Fs=O(),Za=Z(),el=A(),tl=ee(),nl=Q(),rl=L(),ol=ce(),sl=pe(),il=Bt(),al=He(),ll=Qn(),cl=gn(),wg=Is(),Sg=zt(),Eg=zt(),kg=Co(),Pg=Xn(),_g=Jn(),Og=en(),ul={...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:(w=l==null?void 0:l.result)==null?void 0:w.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:Fs,totalcredits:nl,totalPurchaseCostsaftercredits:Za,totalcashAdjustments:el,totalcashrequiredonsettlement:rl,totalincidentalCost:tl,totalcarryCosts:ol,totalrenovationCost:sl,totalRenovationsandHoldingCost:il,totalCoststoBuyAtoB:al,totalcostPaidOutofClosing:ll,totaladjustments:cl,fundsavailablefordistribution:wg,grossproceedsperHUD:Sg,totalCosttoSellBtoC:Eg,totalincomestatement:kg,netBtoCsalevalue:Pg,netprofitbeforefinancingcosts:_g,NetProfit:Og,rateofreturn:ae};Array.isArray(c.propertyTaxInfo)&&c.propertyTaxInfo.length>0?ul.propertyTaxInfo=c.propertyTaxInfo:ul.propertyTaxInfo=[],s(Si(ul)),g(!0)}else le.error("Please fill all fields before submitting",{position:"top-right",autoClose:3e3})};S.useEffect(()=>{f&&(i==="succeeded"?(le.success("Property submitted successfully!",{position:"top-right",autoClose:3e3}),g(!1)):i==="failed"&&(le.error(`Failed to submit: ${a}`,{position:"top-right",autoClose:3e3}),g(!1)))},[i,a,f]);const[Ja,k]=S.useState("0 days"),_=(p,j)=>{if(p&&j){const w=new Date(p),M=new Date(j),q=Math.abs(M-w),X=Math.ceil(q/(1e3*60*60*24));k(`${X} days`)}else k("0 days")};return r.jsx(r.Fragment,{children:r.jsxs("div",{className:"container tabs-wrap",children:[r.jsx(Fe,{}),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:h,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:h,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:h,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:h,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:h,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:h,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:h,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:h,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:h,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:h,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:h,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:h,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:h,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:h,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:h,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:h,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:h,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:h,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:h,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:h,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:h,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:h,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:h,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:h,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:h,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:h,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:h,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:w=>h(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:p.ownedyear,onChange:w=>h(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:p.taxassessed,onChange:w=>h(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:p.taxyear,onChange:w=>h(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:()=>m(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:w=>C(j,w)})}),r.jsxs("div",{className:"col-md-4 d-flex align-items-center",children:[r.jsx(Nd,{multiple:!1,onDone:w=>b(w,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:h,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:o,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;d({...c,closeDateAtoB:j}),_(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;d({...c,closeDateBtoC:j}),_(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:u.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 w=parseInt(j.target.value,10);d({...c,renovationRisk:w})}}),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:Ja,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 w=/^\d*\.?\d*$/.test(j);d({...c,purchaseCost:j,isPurchaseCostInvalid:!w})},onKeyPress:p=>{const j=p.charCode;(j<48||j>57)&&j!==46&&(p.preventDefault(),d({...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:w=>P(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 ${p.isInvalid?"is-invalid":""}`,value:`$ ${p.price}`,onChange:w=>T(w,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:()=>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:`$ ${O().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: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 ${p.isInvalid?"is-invalid":""}`,value:p.price,onChange:w=>te(w,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:()=>$(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 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: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 ${p.isInvalid?"is-invalid":""}`,value:p.price,onChange:w=>R(w,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: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: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: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.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: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 ${p.isInvalid?"is-invalid":""}`,value:p.price,onChange:w=>Y(w,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:F,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:w=>oe(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 ${p.isInvalid?"is-invalid":""}`,value:p.price,onChange:w=>ie(w,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:ce(),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:w=>yt(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 ${p.isInvalid?"is-invalid":""}`,value:p.price,onChange:w=>Lt(w,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:he,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:pe(),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:Bt(),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:He(),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,w=/^\d*\.?\d*$/.test(j);d({...c,sellingPriceBtoC:j,isPurchaseCostInvalid:!w})},onKeyPress:p=>{const j=p.charCode;(j<48||j>57)&&j!==46&&(p.preventDefault(),d({...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:w=>yo(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 ${p.isInvalid?"is-invalid":""}`,value:p.price,onChange:w=>jo(w,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:Gn,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: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 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:zt(),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:zt(),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:w=>de(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 ${p.isInvalid?"is-invalid":""}`,value:p.price,onChange:w=>Wt(w,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:()=>$t(j),style:{marginLeft:"5px"},children:"x"})})]},j)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:vn,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: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:"Funds Available for distribution"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"fundsavailablefordistribution",value:Is(),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:w=>Qa(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 ${p.isInvalid?"is-invalid":""}`,value:p.price,onChange:w=>Xa(w,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:()=>Ds(j),style:{marginLeft:"5px"},children:"x"})})]},j)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:No,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:Co(),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: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.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:He(),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,w=/^\d*\.?\d*$/.test(j);d({...c,fundspriortoclosing:j,isfundspriortoclosingInvalid:!w})},onKeyPress:p=>{const j=p.charCode;(j<48||j>57)&&j!==46&&(p.preventDefault(),d({...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:Xn(),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,w=/^\d*\.?\d*$/.test(j);d({...c,shorttermrental:j,isPurchaseCostInvalid:!w})},onKeyPress:p=>{const j=p.charCode;(j<48||j>57)&&j!==46&&(p.preventDefault(),d({...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,w=/^\d*\.?\d*$/.test(j);d({...c,OtherIncome:j,isPurchaseCostInvalid:!w})},onKeyPress:p=>{const j=p.charCode;(j<48||j>57)&&j!==46&&(p.preventDefault(),d({...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,w=/^\d*\.?\d*$/.test(j);d({...c,InsuranceClaim:j,isPurchaseCostInvalid:!w})},onKeyPress:p=>{const j=p.charCode;(j<48||j>57)&&j!==46&&(p.preventDefault(),d({...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,w=/^\d*\.?\d*$/.test(j);d({...c,LongTermRental:j,isPurchaseCostInvalid:!w})},onKeyPress:p=>{const j=p.charCode;(j<48||j>57)&&j!==46&&(p.preventDefault(),d({...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:Jn(),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,w=/^\d*\.?\d*$/.test(j);d({...c,FinancingCostClosingCost:j,isFinancingCostClosingCostInvalid:!w})},onKeyPress:p=>{const j=p.charCode;(j<48||j>57)&&j!==46&&(p.preventDefault(),d({...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: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:bo,children:"Submit"})," "]}),r.jsx("br",{})]})]})]})})},Yt="/assets/propertydummy-DhVEZ7jN.jpg",lb=()=>{var u;const e=Ft(),{user:t}=Qe(c=>({...c.auth})),{userProperties:n,totalPages:o}=Qe(c=>c.property),[s,i]=S.useState(1),a=5;S.useEffect(()=>{e(Ei({userId:t.result.userId,page:s,limit:a}))},[e,(u=t==null?void 0:t.result)==null?void 0:u.userId,s]);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||Yt,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(Ne,{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(Ne,{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(Ne,{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(s-1),disabled:s===1,children:"Previous"}),Array.from({length:o},(c,d)=>d+1).map(c=>c===s||c===1||c===o||c>=s-1&&c<=s+1?r.jsx("button",{onClick:()=>l(c),disabled:s===c,children:c},c):c===2||c===o-1?r.jsx("span",{children:"..."},c):null),r.jsx("button",{onClick:()=>l(s+1),disabled:s===o,children:"Next"})]})]}):r.jsx("p",{children:"No active properties found."})})},cb=()=>{var d,f,g,b,x,N,C,h,v,m,y,E;const{user:e,isLoading:t,error:n}=Qe(P=>P.auth),o=Ft(),s=Sr(),[i,a]=S.useState({userId:((d=e==null?void 0:e.result)==null?void 0:d.userId)||"",title:((f=e==null?void 0:e.result)==null?void 0:f.title)||"",firstName:((g=e==null?void 0:e.result)==null?void 0:g.firstName)||"",middleName:((b=e==null?void 0:e.result)==null?void 0:b.middleName)||"",lastName:((x=e==null?void 0:e.result)==null?void 0:x.lastName)||"",email:((N=e==null?void 0:e.result)==null?void 0:N.email)||"",aboutme:((C=e==null?void 0:e.result)==null?void 0:C.aboutme)||"",city:((h=e==null?void 0:e.result)==null?void 0:h.city)||"",state:((v=e==null?void 0:e.result)==null?void 0:v.state)||"",county:((m=e==null?void 0:e.result)==null?void 0:m.county)||"",zip:((y=e==null?void 0:e.result)==null?void 0:y.zip)||"",profileImage:((E=e==null?void 0:e.result)==null?void 0:E.profileImage)||""});S.useEffect(()=>{e&&a({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 l=P=>{a({...i,[P.target.name]:P.target.value})},u=()=>{a({...i,profileImage:""})},c=P=>{P.preventDefault(),o(Ci(i)),s("/login")};return r.jsx(r.Fragment,{children:r.jsxs("form",{onSubmit:c,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:l,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:l})]})}),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:l})]})}),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:l})]})}),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:l,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:l})]})}),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:l,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:l,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:l,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:l,required:!0})]})}),r.jsxs("div",{className:"col-4",children:[r.jsx("label",{children:"Profile Image"}),r.jsx("div",{className:"mb-3",children:r.jsx(Nd,{type:"file",multiple:!1,onDone:({base64:P})=>a({...i,profileImage:P})})})]}),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:u,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"})})}),n&&r.jsx("p",{children:n})]})})},ub=()=>{const[e,t]=S.useState("dashboard"),{user:n}=Qe(s=>s.auth),o=()=>{switch(e){case"Userdetails":return r.jsx(cb,{});case"addProperty":return r.jsx(ab,{});case"activeProperties":return r.jsxs("div",{children:[r.jsx("h3",{children:"Active Properties"}),r.jsx(lb,{})]});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(Fe,{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsxs("div",{className:"d-flex flex-row",children:[r.jsx("div",{className:"col-md-3",children:r.jsxs("div",{className:"card card1 p-5",children:[r.jsx("img",{className:"img-fluid",src:n.result.profileImage||_i,alt:"ProfileImage",style:{marginTop:"0px",maxWidth:"200px",maxHeight:"200px"}}),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==="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==="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",children:r.jsxs("div",{className:"card card2 p-1",children:[r.jsx("br",{}),r.jsxs("span",{children:["Welcome to"," ",r.jsx("span",{style:{color:"#067ADC"},children:r.jsxs(Ne,{to:`/profile/${n.result.userId}`,className:"link-primary text-decoration-none",target:"_blank",children:[n.result.title,". ",n.result.firstName," ",n.result.middleName," ",n.result.lastName]})})]}),r.jsx("br",{}),o()]})})]}),r.jsx(Ze,{})]})};var Qv={exports:{}},db="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",fb=db,pb=fb;function Xv(){}function Jv(){}Jv.resetWarningCache=Xv;var mb=function(){function e(o,s,i,a,l,u){if(u!==pb){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:Jv,resetWarningCache:Xv};return n.PropTypes=n,n};Qv.exports=mb();var hb=Qv.exports;const Xt=Cs(hb),vb=()=>{const[e,t]=S.useState(3),n=Sr();return S.useEffect(()=>{const o=setInterval(()=>{t(s=>--s)},1e3);return e===0&&n("/login"),()=>clearInterval(o)},[e,n]),r.jsx("div",{style:{marginTop:"100px"},children:r.jsxs("h5",{children:["Redirecting you in ",e," seconds"]})})},Oi=({children:e})=>{const{user:t}=Qe(n=>({...n.auth}));return t?e:r.jsx(vb,{})};Oi.propTypes={children:Xt.node.isRequired};const gb=()=>{const e=Ft(),{id:t,token:n}=go();return S.useEffect(()=>{e(wi({id:t,token:n}))},[e,t,n]),r.jsxs(r.Fragment,{children:[r.jsx(Fe,{}),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(Ne,{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(Ze,{})]})},xb=()=>{const[e,t]=S.useState(""),[n,o]=S.useState(""),s="http://localhost:3002",i=async()=>{try{const a=await ve.post(`${s}/users/forgotpassword`,{email:e});o(a.data.message)}catch(a){console.error("Forgot Password Error:",a),o(a.response.data.message)}};return r.jsxs(r.Fragment,{children:[r.jsx(Fe,{}),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(Ne,{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(Ze,{})]})]})},yb=()=>{const{userId:e,token:t}=go(),[n,o]=S.useState(""),[s,i]=S.useState(""),[a,l]=S.useState(""),u="http://localhost:3002",c=async()=>{try{if(!n||n.trim()===""){l("Password not entered"),le.error("Password not entered");return}const d=await ve.post(`${u}/users/resetpassword/${e}/${t}`,{userId:e,token:t,password:n});if(n!==s){l("Passwords do not match."),le.error("Passwords do not match.");return}else l("Password reset successfull"),le.success(d.data.message)}catch(d){console.error("Reset Password Error:",d)}};return S.useEffect(()=>{le.dismiss()},[]),r.jsxs(r.Fragment,{children:[r.jsx(Fe,{}),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:d=>o(d.target.value),placeholder:"Enter your new password",style:{display:"flex",gap:"35px"}}),r.jsx("br",{}),r.jsx("input",{className:"form-control",type:"password",value:s,onChange:d=>i(d.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(Ze,{})]})},jb=()=>r.jsxs(r.Fragment,{children:[r.jsx(Fe,{}),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(Ze,{})]});var Zv={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&&(s(),t(i))},n+o)}function $b(e){e.offsetHeight}const Cp=e=>!e||typeof e=="function"?e:t=>{e.current=t};function Wb(e,t){const n=Cp(e),o=Cp(t);return s=>{n&&n(s),o&&o(s)}}function As(e,t){return S.useMemo(()=>Wb(e,t),[e,t])}function Ub(e){return e&&"setState"in e?Ur.findDOMNode(e):e??null}const qb=I.forwardRef(({onEnter:e,onEntering:t,onEntered:n,onExit:o,onExiting:s,onExited:i,addEndListener:a,children:l,childRef:u,...c},d)=>{const f=S.useRef(null),g=As(f,u),b=P=>{g(Ub(P))},x=P=>T=>{P&&f.current&&P(f.current,T)},N=S.useCallback(x(e),[e]),C=S.useCallback(x(t),[t]),h=S.useCallback(x(n),[n]),v=S.useCallback(x(o),[o]),m=S.useCallback(x(s),[s]),y=S.useCallback(x(i),[i]),E=S.useCallback(x(a),[a]);return r.jsx(hn,{ref:d,...c,onEnter:N,onEntered:h,onEntering:C,onExit:v,onExited:y,onExiting:m,addEndListener:E,nodeRef:f,children:typeof l=="function"?(P,T)=>l(P,{...T,ref:b}):I.cloneElement(l,{ref:b})})});function Vb(e){const t=S.useRef(e);return S.useEffect(()=>{t.current=e},[e]),t}function Kt(e){const t=Vb(e);return S.useCallback(function(...n){return t.current&&t.current(...n)},[t])}const Hb=e=>S.forwardRef((t,n)=>r.jsx("div",{...t,ref:n,className:xe(t.className,e)}));function Kb(){return S.useState(null)}function Yb(){const e=S.useRef(!0),t=S.useRef(()=>e.current);return S.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),t.current}function Gb(e){const t=S.useRef(null);return S.useEffect(()=>{t.current=e}),t.current}const Qb=typeof global<"u"&&global.navigator&&global.navigator.product==="ReactNative",Xb=typeof document<"u",bp=Xb||Qb?S.useLayoutEffect:S.useEffect,Jb=["as","disabled"];function Zb(e,t){if(e==null)return{};var n={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(t.indexOf(o)>=0)continue;n[o]=e[o]}return n}function ew(e){return!e||e.trim()==="#"}function rg({tagName:e,disabled:t,href:n,target:o,rel:s,role:i,onClick:a,tabIndex:l=0,type:u}){e||(n!=null||o!=null||s!=null?e="a":e="button");const c={tagName:e};if(e==="button")return[{type:u||"button",disabled:t},c];const d=g=>{if((t||e==="a"&&ew(n))&&g.preventDefault(),t){g.stopPropagation();return}a==null||a(g)},f=g=>{g.key===" "&&(g.preventDefault(),d(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"?o:void 0,"aria-disabled":t||void 0,rel:e==="a"?s:void 0,onClick:d,onKeyDown:f},c]}const tw=S.forwardRef((e,t)=>{let{as:n,disabled:o}=e,s=Zb(e,Jb);const[i,{tagName:a}]=rg(Object.assign({tagName:n,disabled:o},s));return r.jsx(a,Object.assign({},s,i,{ref:t}))});tw.displayName="Button";function nw(e){return e.code==="Escape"||e.keyCode===27}function og(){const e=S.version.split(".");return{major:+e[0],minor:+e[1],patch:+e[2]}}const rw={[Sn]:"show",[sr]:"show"},Cd=S.forwardRef(({className:e,children:t,transitionClasses:n={},onEnter:o,...s},i)=>{const a={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1,...s},l=S.useCallback((d,f)=>{$b(d),o==null||o(d,f)},[o]),{major:u}=og(),c=u>=19?t.props.ref:t.ref;return r.jsx(qb,{ref:i,addEndListener:zb,...a,onEnter:l,childRef:c,children:(d,f)=>S.cloneElement(t,{...f,className:xe("fade",e,t.props.className,rw[d],n[d])})})});Cd.displayName="Fade";const ow={"aria-label":Xt.string,onClick:Xt.func,variant:Xt.oneOf(["white"])},bd=S.forwardRef(({className:e,variant:t,"aria-label":n="Close",...o},s)=>r.jsx("button",{ref:s,type:"button",className:xe("btn-close",t&&`btn-close-${t}`,e),"aria-label":n,...o}));bd.displayName="CloseButton";bd.propTypes=ow;const gu=S.forwardRef(({as:e,bsPrefix:t,variant:n="primary",size:o,active:s=!1,disabled:i=!1,className:a,...l},u)=>{const c=Re(t,"btn"),[d,{tagName:f}]=rg({tagName:e,disabled:i,...l}),g=f;return r.jsx(g,{...d,...l,ref:u,disabled:i,className:xe(a,c,s&&"active",n&&`${c}-${n}`,o&&`${c}-${o}`,l.href&&i&&"disabled")})});gu.displayName="Button";function sw(e){const t=S.useRef(e);return t.current=e,t}function sg(e){const t=sw(e);S.useEffect(()=>()=>t.current(),[])}function iw(e,t){return S.Children.toArray(e).some(n=>S.isValidElement(n)&&n.type===t)}function aw({as:e,bsPrefix:t,className:n,...o}){t=Re(t,"col");const s=Eb(),i=kb(),a=[],l=[];return s.forEach(u=>{const c=o[u];delete o[u];let d,f,g;typeof c=="object"&&c!=null?{span:d,offset:f,order:g}=c:d=c;const b=u!==i?`-${u}`:"";d&&a.push(d===!0?`${t}${b}`:`${t}${b}-${d}`),g!=null&&l.push(`order${b}-${g}`),f!=null&&l.push(`offset${b}-${f}`)}),[{...o,className:xe(n,...a,...l)},{as:e,bsPrefix:t,spans:a}]}const ig=S.forwardRef((e,t)=>{const[{className:n,...o},{as:s="div",bsPrefix:i,spans:a}]=aw(e);return r.jsx(s,{...o,ref:t,className:xe(n,!a.length&&i)})});ig.displayName="Col";var lw=Function.prototype.bind.call(Function.prototype.call,[].slice);function _r(e,t){return lw(e.querySelectorAll(t))}function wp(e,t){if(e.contains)return e.contains(t);if(e.compareDocumentPosition)return e===t||!!(e.compareDocumentPosition(t)&16)}const cw="data-rr-ui-";function uw(e){return`${cw}${e}`}const ag=S.createContext(xo?window:void 0);ag.Provider;function wd(){return S.useContext(ag)}const dw={type:Xt.string,tooltip:Xt.bool,as:Xt.elementType},Ga=S.forwardRef(({as:e="div",className:t,type:n="valid",tooltip:o=!1,...s},i)=>r.jsx(e,{...s,ref:i,className:xe(t,`${n}-${o?"tooltip":"feedback"}`)}));Ga.displayName="Feedback";Ga.propTypes=dw;const pn=S.createContext({}),Sd=S.forwardRef(({id:e,bsPrefix:t,className:n,type:o="checkbox",isValid:s=!1,isInvalid:i=!1,as:a="input",...l},u)=>{const{controlId:c}=S.useContext(pn);return t=Re(t,"form-check-input"),r.jsx(a,{...l,ref:u,type:o,id:e||c,className:xe(n,t,s&&"is-valid",i&&"is-invalid")})});Sd.displayName="FormCheckInput";const ma=S.forwardRef(({bsPrefix:e,className:t,htmlFor:n,...o},s)=>{const{controlId:i}=S.useContext(pn);return e=Re(e,"form-check-label"),r.jsx("label",{...o,ref:s,htmlFor:n||i,className:xe(t,e)})});ma.displayName="FormCheckLabel";const lg=S.forwardRef(({id:e,bsPrefix:t,bsSwitchPrefix:n,inline:o=!1,reverse:s=!1,disabled:i=!1,isValid:a=!1,isInvalid:l=!1,feedbackTooltip:u=!1,feedback:c,feedbackType:d,className:f,style:g,title:b="",type:x="checkbox",label:N,children:C,as:h="input",...v},m)=>{t=Re(t,"form-check"),n=Re(n,"form-switch");const{controlId:y}=S.useContext(pn),E=S.useMemo(()=>({controlId:e||y}),[y,e]),P=!C&&N!=null&&N!==!1||iw(C,ma),T=r.jsx(Sd,{...v,type:x==="switch"?"checkbox":x,ref:m,isValid:a,isInvalid:l,disabled:i,as:h});return r.jsx(pn.Provider,{value:E,children:r.jsx("div",{style:g,className:xe(f,P&&t,o&&`${t}-inline`,s&&`${t}-reverse`,x==="switch"&&n),children:C||r.jsxs(r.Fragment,{children:[T,P&&r.jsx(ma,{title:b,children:N}),c&&r.jsx(Ga,{type:d,tooltip:u,children:c})]})})})});lg.displayName="FormCheck";const ha=Object.assign(lg,{Input:Sd,Label:ma}),cg=S.forwardRef(({bsPrefix:e,type:t,size:n,htmlSize:o,id:s,className:i,isValid:a=!1,isInvalid:l=!1,plaintext:u,readOnly:c,as:d="input",...f},g)=>{const{controlId:b}=S.useContext(pn);return e=Re(e,"form-control"),r.jsx(d,{...f,type:t,size:o,ref:g,readOnly:c,id:s||b,className:xe(i,u?`${e}-plaintext`:e,n&&`${e}-${n}`,t==="color"&&`${e}-color`,a&&"is-valid",l&&"is-invalid")})});cg.displayName="FormControl";const fw=Object.assign(cg,{Feedback:Ga}),ug=S.forwardRef(({className:e,bsPrefix:t,as:n="div",...o},s)=>(t=Re(t,"form-floating"),r.jsx(n,{ref:s,className:xe(e,t),...o})));ug.displayName="FormFloating";const Ed=S.forwardRef(({controlId:e,as:t="div",...n},o)=>{const s=S.useMemo(()=>({controlId:e}),[e]);return r.jsx(pn.Provider,{value:s,children:r.jsx(t,{...n,ref:o})})});Ed.displayName="FormGroup";const dg=S.forwardRef(({as:e="label",bsPrefix:t,column:n=!1,visuallyHidden:o=!1,className:s,htmlFor:i,...a},l)=>{const{controlId:u}=S.useContext(pn);t=Re(t,"form-label");let c="col-form-label";typeof n=="string"&&(c=`${c} ${c}-${n}`);const d=xe(s,t,o&&"visually-hidden",n&&c);return i=i||u,n?r.jsx(ig,{ref:l,as:"label",className:d,htmlFor:i,...a}):r.jsx(e,{ref:l,className:d,htmlFor:i,...a})});dg.displayName="FormLabel";const fg=S.forwardRef(({bsPrefix:e,className:t,id:n,...o},s)=>{const{controlId:i}=S.useContext(pn);return e=Re(e,"form-range"),r.jsx("input",{...o,type:"range",ref:s,className:xe(t,e),id:n||i})});fg.displayName="FormRange";const pg=S.forwardRef(({bsPrefix:e,size:t,htmlSize:n,className:o,isValid:s=!1,isInvalid:i=!1,id:a,...l},u)=>{const{controlId:c}=S.useContext(pn);return e=Re(e,"form-select"),r.jsx("select",{...l,size:n,ref:u,className:xe(o,e,t&&`${e}-${t}`,s&&"is-valid",i&&"is-invalid"),id:a||c})});pg.displayName="FormSelect";const mg=S.forwardRef(({bsPrefix:e,className:t,as:n="small",muted:o,...s},i)=>(e=Re(e,"form-text"),r.jsx(n,{...s,ref:i,className:xe(t,e,o&&"text-muted")})));mg.displayName="FormText";const hg=S.forwardRef((e,t)=>r.jsx(ha,{...e,ref:t,type:"switch"}));hg.displayName="Switch";const pw=Object.assign(hg,{Input:ha.Input,Label:ha.Label}),vg=S.forwardRef(({bsPrefix:e,className:t,children:n,controlId:o,label:s,...i},a)=>(e=Re(e,"form-floating"),r.jsxs(Ed,{ref:a,className:xe(t,e),controlId:o,...i,children:[n,r.jsx("label",{htmlFor:o,children:s})]})));vg.displayName="FloatingLabel";const mw={_ref:Xt.any,validated:Xt.bool,as:Xt.elementType},kd=S.forwardRef(({className:e,validated:t,as:n="form",...o},s)=>r.jsx(n,{...o,ref:s,className:xe(e,t&&"was-validated")}));kd.displayName="Form";kd.propTypes=mw;const Zn=Object.assign(kd,{Group:Ed,Control:fw,Floating:ug,Check:ha,Switch:pw,Label:dg,Text:mg,Range:fg,Select:pg,FloatingLabel:vg});var oi;function Sp(e){if((!oi&&oi!==0||e)&&xo){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),oi=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return oi}function Ql(e){e===void 0&&(e=Ya());try{var t=e.activeElement;return!t||!t.nodeName?null:t}catch{return e.body}}function hw(e=document){const t=e.defaultView;return Math.abs(t.innerWidth-e.documentElement.clientWidth)}const Ep=uw("modal-open");class Pd{constructor({ownerDocument:t,handleContainerOverflow:n=!0,isRTL:o=!1}={}){this.handleContainerOverflow=n,this.isRTL=o,this.modals=[],this.ownerDocument=t}getScrollbarWidth(){return hw(this.ownerDocument)}getElement(){return(this.ownerDocument||document).body}setModalAttributes(t){}removeModalAttributes(t){}setContainerStyle(t){const n={overflow:"hidden"},o=this.isRTL?"paddingLeft":"paddingRight",s=this.getElement();t.style={overflow:s.style.overflow,[o]:s.style[o]},t.scrollBarWidth&&(n[o]=`${parseInt(mr(s,o)||"0",10)+t.scrollBarWidth}px`),s.setAttribute(Ep,""),mr(s,n)}reset(){[...this.modals].forEach(t=>this.remove(t))}removeContainerStyle(t){const n=this.getElement();n.removeAttribute(Ep),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 Xl=(e,t)=>xo?e==null?(t||Ya()).body:(typeof e=="function"&&(e=e()),e&&"current"in e&&(e=e.current),e&&("nodeType"in e||e.getBoundingClientRect)?e:null):null;function vw(e,t){const n=wd(),[o,s]=S.useState(()=>Xl(e,n==null?void 0:n.document));if(!o){const i=Xl(e);i&&s(i)}return S.useEffect(()=>{},[t,o]),S.useEffect(()=>{const i=Xl(e);i!==o&&s(i)},[e,o]),o}function gw({children:e,in:t,onExited:n,mountOnEnter:o,unmountOnExit:s}){const i=S.useRef(null),a=S.useRef(t),l=Kt(n);S.useEffect(()=>{t?a.current=!0:l(i.current)},[t,l]);const u=As(i,e.ref),c=S.cloneElement(e,{ref:u});return t?c:s||!a.current&&o?null:c}const xw=["onEnter","onEntering","onEntered","onExit","onExiting","onExited","addEndListener","children"];function yw(e,t){if(e==null)return{};var n={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(t.indexOf(o)>=0)continue;n[o]=e[o]}return n}function jw(e){let{onEnter:t,onEntering:n,onEntered:o,onExit:s,onExiting:i,onExited:a,addEndListener:l,children:u}=e,c=yw(e,xw);const{major:d}=og(),f=d>=19?u.props.ref:u.ref,g=S.useRef(null),b=As(g,typeof u=="function"?null:f),x=P=>T=>{P&&g.current&&P(g.current,T)},N=S.useCallback(x(t),[t]),C=S.useCallback(x(n),[n]),h=S.useCallback(x(o),[o]),v=S.useCallback(x(s),[s]),m=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:N},n&&{onEntering:C},o&&{onEntered:h},s&&{onExit:v},i&&{onExiting:m},a&&{onExited:y},l&&{addEndListener:E},{children:typeof u=="function"?(P,T)=>u(P,Object.assign({},T,{ref:b})):S.cloneElement(u,{ref:b})})}const Nw=["component"];function Cw(e,t){if(e==null)return{};var n={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(t.indexOf(o)>=0)continue;n[o]=e[o]}return n}const bw=S.forwardRef((e,t)=>{let{component:n}=e,o=Cw(e,Nw);const s=jw(o);return r.jsx(n,Object.assign({ref:t},s))});function ww({in:e,onTransition:t}){const n=S.useRef(null),o=S.useRef(!0),s=Kt(t);return bp(()=>{if(!n.current)return;let i=!1;return s({in:e,element:n.current,initial:o.current,isStale:()=>i}),()=>{i=!0}},[e,s]),bp(()=>(o.current=!1,()=>{o.current=!0}),[]),n}function Sw({children:e,in:t,onExited:n,onEntered:o,transition:s}){const[i,a]=S.useState(!t);t&&i&&a(!1);const l=ww({in:!!t,onTransition:c=>{const d=()=>{c.isStale()||(c.in?o==null||o(c.element,c.initial):(a(!0),n==null||n(c.element)))};Promise.resolve(s(c)).then(d,f=>{throw c.in||a(!0),f})}}),u=As(l,e.ref);return i&&!t?null:S.cloneElement(e,{ref:u})}function kp(e,t,n){return e?r.jsx(bw,Object.assign({},n,{component:e})):t?r.jsx(Sw,Object.assign({},n,{transition:t})):r.jsx(gw,Object.assign({},n))}const Ew=["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 kw(e,t){if(e==null)return{};var n={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(t.indexOf(o)>=0)continue;n[o]=e[o]}return n}let Jl;function Pw(e){return Jl||(Jl=new Pd({ownerDocument:e==null?void 0:e.document})),Jl}function _w(e){const t=wd(),n=e||Pw(t),o=S.useRef({dialog:null,backdrop:null});return Object.assign(o.current,{add:()=>n.add(o.current),remove:()=>n.remove(o.current),isTopModal:()=>n.isTopModal(o.current),setDialogRef:S.useCallback(s=>{o.current.dialog=s},[]),setBackdropRef:S.useCallback(s=>{o.current.backdrop=s},[])})}const gg=S.forwardRef((e,t)=>{let{show:n=!1,role:o="dialog",className:s,style:i,children:a,backdrop:l=!0,keyboard:u=!0,onBackdropClick:c,onEscapeKeyDown:d,transition:f,runTransition:g,backdropTransition:b,runBackdropTransition:x,autoFocus:N=!0,enforceFocus:C=!0,restoreFocus:h=!0,restoreFocusOptions:v,renderDialog:m,renderBackdrop:y=pe=>r.jsx("div",Object.assign({},pe)),manager:E,container:P,onShow:T,onHide:O=()=>{},onExit:B,onExited:$,onExiting:H,onEnter:te,onEntering:Q,onEntered:Z}=e,D=kw(e,Ew);const U=wd(),G=vw(P),R=_w(E),A=Yb(),L=Gb(n),[F,W]=S.useState(!n),K=S.useRef(null);S.useImperativeHandle(t,()=>R,[R]),xo&&!L&&n&&(K.current=Ql(U==null?void 0:U.document)),n&&F&&W(!1);const Y=Kt(()=>{if(R.add(),ce.current=pa(document,"keydown",oe),ie.current=pa(document,"focus",()=>setTimeout(re),!0),T&&T(),N){var pe,Bt;const He=Ql((pe=(Bt=R.dialog)==null?void 0:Bt.ownerDocument)!=null?pe:U==null?void 0:U.document);R.dialog&&He&&!wp(R.dialog,He)&&(K.current=He,R.dialog.focus())}}),ee=Kt(()=>{if(R.remove(),ce.current==null||ce.current(),ie.current==null||ie.current(),h){var pe;(pe=K.current)==null||pe.focus==null||pe.focus(v),K.current=null}});S.useEffect(()=>{!n||!G||Y()},[n,G,Y]),S.useEffect(()=>{F&&ee()},[F,ee]),sg(()=>{ee()});const re=Kt(()=>{if(!C||!A()||!R.isTopModal())return;const pe=Ql(U==null?void 0:U.document);R.dialog&&pe&&!wp(R.dialog,pe)&&R.dialog.focus()}),ne=Kt(pe=>{pe.target===pe.currentTarget&&(c==null||c(pe),l===!0&&O())}),oe=Kt(pe=>{u&&nw(pe)&&R.isTopModal()&&(d==null||d(pe),pe.defaultPrevented||O())}),ie=S.useRef(),ce=S.useRef(),he=(...pe)=>{W(!0),$==null||$(...pe)};if(!G)return null;const Me=Object.assign({role:o,ref:R.setDialogRef,"aria-modal":o==="dialog"?!0:void 0},D,{style:i,className:s,tabIndex:-1});let yt=m?m(Me):r.jsx("div",Object.assign({},Me,{children:S.cloneElement(a,{role:"document"})}));yt=kp(f,g,{unmountOnExit:!0,mountOnEnter:!0,appear:!0,in:!!n,onExit:B,onExiting:H,onExited:he,onEnter:te,onEntering:Q,onEntered:Z,children:yt});let Lt=null;return l&&(Lt=y({ref:R.setBackdropRef,onClick:ne}),Lt=kp(b,x,{in:!!n,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:Lt})),r.jsx(r.Fragment,{children:Ur.createPortal(r.jsxs(r.Fragment,{children:[Lt,yt]}),G)})});gg.displayName="Modal";const Ow=Object.assign(gg,{Manager:Pd});function Tw(e,t){return e.classList?e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function Rw(e,t){e.classList?e.classList.add(t):Tw(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function Pp(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function Aw(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=Pp(e.className,t):e.setAttribute("class",Pp(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 Iw extends Pd{adjustAndStore(t,n,o){const s=n.style[t];n.dataset[t]=s,mr(n,{[t]:`${parseFloat(mr(n,t))+o}px`})}restore(t,n){const o=n.dataset[t];o!==void 0&&(delete n.dataset[t],mr(n,{[t]:o}))}setContainerStyle(t){super.setContainerStyle(t);const n=this.getElement();if(Rw(n,"modal-open"),!t.scrollBarWidth)return;const o=this.isRTL?"paddingLeft":"paddingRight",s=this.isRTL?"marginLeft":"marginRight";_r(n,Or.FIXED_CONTENT).forEach(i=>this.adjustAndStore(o,i,t.scrollBarWidth)),_r(n,Or.STICKY_CONTENT).forEach(i=>this.adjustAndStore(s,i,-t.scrollBarWidth)),_r(n,Or.NAVBAR_TOGGLER).forEach(i=>this.adjustAndStore(s,i,t.scrollBarWidth))}removeContainerStyle(t){super.removeContainerStyle(t);const n=this.getElement();Aw(n,"modal-open");const o=this.isRTL?"paddingLeft":"paddingRight",s=this.isRTL?"marginLeft":"marginRight";_r(n,Or.FIXED_CONTENT).forEach(i=>this.restore(o,i)),_r(n,Or.STICKY_CONTENT).forEach(i=>this.restore(s,i)),_r(n,Or.NAVBAR_TOGGLER).forEach(i=>this.restore(s,i))}}let Zl;function Dw(e){return Zl||(Zl=new Iw(e)),Zl}const xg=S.forwardRef(({className:e,bsPrefix:t,as:n="div",...o},s)=>(t=Re(t,"modal-body"),r.jsx(n,{ref:s,className:xe(e,t),...o})));xg.displayName="ModalBody";const yg=S.createContext({onHide(){}}),_d=S.forwardRef(({bsPrefix:e,className:t,contentClassName:n,centered:o,size:s,fullscreen:i,children:a,scrollable:l,...u},c)=>{e=Re(e,"modal");const d=`${e}-dialog`,f=typeof i=="string"?`${e}-fullscreen-${i}`:`${e}-fullscreen`;return r.jsx("div",{...u,ref:c,className:xe(d,t,s&&`${e}-${s}`,o&&`${d}-centered`,l&&`${d}-scrollable`,i&&f),children:r.jsx("div",{className:xe(`${e}-content`,n),children:a})})});_d.displayName="ModalDialog";const jg=S.forwardRef(({className:e,bsPrefix:t,as:n="div",...o},s)=>(t=Re(t,"modal-footer"),r.jsx(n,{ref:s,className:xe(e,t),...o})));jg.displayName="ModalFooter";const Fw=S.forwardRef(({closeLabel:e="Close",closeVariant:t,closeButton:n=!1,onHide:o,children:s,...i},a)=>{const l=S.useContext(yg),u=Kt(()=>{l==null||l.onHide(),o==null||o()});return r.jsxs("div",{ref:a,...i,children:[s,n&&r.jsx(bd,{"aria-label":e,variant:t,onClick:u})]})}),Ng=S.forwardRef(({bsPrefix:e,className:t,closeLabel:n="Close",closeButton:o=!1,...s},i)=>(e=Re(e,"modal-header"),r.jsx(Fw,{ref:i,...s,className:xe(t,e),closeLabel:n,closeButton:o})));Ng.displayName="ModalHeader";const Mw=Hb("h4"),Cg=S.forwardRef(({className:e,bsPrefix:t,as:n=Mw,...o},s)=>(t=Re(t,"modal-title"),r.jsx(n,{ref:s,className:xe(e,t),...o})));Cg.displayName="ModalTitle";function Lw(e){return r.jsx(Cd,{...e,timeout:null})}function Bw(e){return r.jsx(Cd,{...e,timeout:null})}const bg=S.forwardRef(({bsPrefix:e,className:t,style:n,dialogClassName:o,contentClassName:s,children:i,dialogAs:a=_d,"data-bs-theme":l,"aria-labelledby":u,"aria-describedby":c,"aria-label":d,show:f=!1,animation:g=!0,backdrop:b=!0,keyboard:x=!0,onEscapeKeyDown:N,onShow:C,onHide:h,container:v,autoFocus:m=!0,enforceFocus:y=!0,restoreFocus:E=!0,restoreFocusOptions:P,onEntered:T,onExit:O,onExiting:B,onEnter:$,onEntering:H,onExited:te,backdropClassName:Q,manager:Z,...D},U)=>{const[G,R]=S.useState({}),[A,L]=S.useState(!1),F=S.useRef(!1),W=S.useRef(!1),K=S.useRef(null),[Y,ee]=Kb(),re=As(U,ee),ne=Kt(h),oe=Pb();e=Re(e,"modal");const ie=S.useMemo(()=>({onHide:ne}),[ne]);function ce(){return Z||Dw({isRTL:oe})}function he(de){if(!xo)return;const Wt=ce().getScrollbarWidth()>0,gn=de.scrollHeight>Ya(de).documentElement.clientHeight;R({paddingRight:Wt&&!gn?Sp():void 0,paddingLeft:!Wt&&gn?Sp():void 0})}const Me=Kt(()=>{Y&&he(Y.dialog)});sg(()=>{vu(window,"resize",Me),K.current==null||K.current()});const yt=()=>{F.current=!0},Lt=de=>{F.current&&Y&&de.target===Y.dialog&&(W.current=!0),F.current=!1},pe=()=>{L(!0),K.current=ng(Y.dialog,()=>{L(!1)})},Bt=de=>{de.target===de.currentTarget&&pe()},He=de=>{if(b==="static"){Bt(de);return}if(W.current||de.target!==de.currentTarget){W.current=!1;return}h==null||h()},Gn=de=>{x?N==null||N(de):(de.preventDefault(),b==="static"&&pe())},Zt=(de,Wt)=>{de&&he(de),$==null||$(de,Wt)},yo=de=>{K.current==null||K.current(),O==null||O(de)},jo=(de,Wt)=>{H==null||H(de,Wt),tg(window,"resize",Me)},Qn=de=>{de&&(de.style.display=""),te==null||te(de),vu(window,"resize",Me)},zt=S.useCallback(de=>r.jsx("div",{...de,className:xe(`${e}-backdrop`,Q,!g&&"show")}),[g,Q,e]),vn={...n,...G};vn.display="block";const $t=de=>r.jsx("div",{role:"dialog",...de,style:vn,className:xe(t,e,A&&`${e}-static`,!g&&"show"),onClick:b?He:void 0,onMouseUp:Lt,"data-bs-theme":l,"aria-label":d,"aria-labelledby":u,"aria-describedby":c,children:r.jsx(a,{...D,onMouseDown:yt,className:o,contentClassName:s,children:i})});return r.jsx(yg.Provider,{value:ie,children:r.jsx(Ow,{show:f,ref:re,backdrop:b,container:v,keyboard:!0,autoFocus:m,enforceFocus:y,restoreFocus:E,restoreFocusOptions:P,onEscapeKeyDown:Gn,onShow:C,onHide:h,onEnter:Zt,onEntering:jo,onEntered:T,onExit:yo,onExiting:B,onExited:Qn,manager:ce(),transition:g?Lw:void 0,backdropTransition:g?Bw:void 0,renderBackdrop:zt,renderDialog:$t})})});bg.displayName="Modal";const si=Object.assign(bg,{Body:xg,Header:Ng,Title:Cg,Footer:jg,Dialog:_d,TRANSITION_DURATION:300,BACKDROP_TRANSITION_DURATION:150}),zw=()=>{var y;const{id:e}=go(),t=Ft(),n=Sr(),{selectedProperty:o,status:s,error:i}=Qe(E=>E.property),{user:a}=Qe(E=>({...E.auth})),[l,u]=S.useState(!0),[c,d]=S.useState(!1),[f,g]=S.useState(""),[b,x]=S.useState("");if(S.useEffect(()=>{e&&(t(Go(e)),u(!1))},[e,t]),s==="loading")return r.jsx("p",{children:"Loading property details..."});if(s==="failed")return r.jsxs("p",{children:["Error loading property: ",i]});const N=((y=a==null?void 0:a.result)==null?void 0:y.userId)===(o==null?void 0:o.userId),C=!!a,h=()=>{d(!0)},v=()=>{d(!1)},m=E=>{var T;E.preventDefault();const P={propertyOwnerId:o==null?void 0:o.userId,investorId:(T=a==null?void 0:a.result)==null?void 0:T.userId,investmentAmount:f,ownershipPercentage:b,propertyId:(o==null?void 0:o.propertyId)||"defaultId"};t(lu({fundDetails:P,id:e,navigate:n})),v()};return r.jsxs(r.Fragment,{children:[r.jsx(Fe,{}),r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{}),r.jsx("div",{className:"container col-12",children:l?r.jsx("div",{className:"loader",children:"Loading..."}):o?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:o.images&&o.images[0]?r.jsx("img",{src:o.images[0].file||Yt,alt:"Property Thumbnail",style:{marginTop:"0px",maxWidth:"500px",maxHeight:"500px"}}):r.jsx("img",{src:Yt,alt:"Default Property Thumbnail",style:{marginTop:"0px",maxWidth:"500px",maxHeight:"500px"}})}),r.jsx("br",{}),r.jsxs("div",{className:"label-stock border",children:[r.jsxs("p",{style:{color:"#fda417",fontSize:"30px",padding:"10px",fontWeight:"normal"},children:["Total Funding Amount:"," ",r.jsxs("span",{style:{color:"#000000",fontSize:"25px"},children:[r.jsx("span",{className:"fa fa-dollar",style:{color:"#F74B02"}})," ",o.totalCoststoBuyAtoB]})]}),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"}})," ",o.NetProfit]})]})]}),r.jsx("br",{}),r.jsxs("button",{className:"btn btn-primary back",style:{backgroundColor:"#fda417",border:"#fda417"},disabled:N||!C,onClick:N||!C?null:h,children:[r.jsx("span",{style:{fontSize:"25px",fontWeight:"normal"},children:"Willing to Invest/Fund"})," "]}),N&&r.jsx("span",{style:{color:"red",marginTop:"10px"},children:"You cannot invest on your property."}),!C&&r.jsx("span",{style:{color:"red",marginTop:"10px"},children:"Please login to submit."})]}),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:[o.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:"," "]})," ",o.city," "," /"," "," "," ",r.jsxs("span",{style:{color:"#fda417",fontSize:"15px"},children:["County:"," "]})," ",o.county," "," ","/"," "," ",r.jsxs("span",{style:{color:"#fda417",fontSize:"15px"},children:["State:"," "]})," ",o.state," "," ","/ "," "," ",r.jsxs("span",{style:{color:"#fda417",fontSize:"15px"},children:["Zipcode:"," "]})," ",o.zip," "]}),r.jsxs("div",{children:[r.jsxs("span",{className:"selling-price",style:{color:"#fda417",fontSize:"15px"},children:["Total Living Square Foot:"," "]}),o.totallivingsqft,r.jsx("p",{}),r.jsxs("span",{className:"",style:{color:"#fda417",fontSize:"15px"},children:["Cost per Square Foot:"," "]}),"$",o.costpersqft,"/sqft",r.jsx("p",{}),r.jsxs("span",{className:"",style:{color:"#fda417",fontSize:"15px"},children:["Year Built:"," "]}),o.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:o.legal?o.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."})}),r.jsx(Ze,{}),r.jsxs(si,{show:c,onHide:v,children:[r.jsx(si.Header,{closeButton:!0,children:r.jsx(si.Title,{children:"Investment/Funding Details"})}),r.jsx(si.Body,{children:r.jsxs(Zn,{onSubmit:m,children:[r.jsxs(Zn.Group,{controlId:"fundValue",children:[r.jsx(Zn.Label,{children:"Investment Amount ($)"}),r.jsx(Zn.Control,{type:"number",placeholder:"Enter amount",value:f,onChange:E=>g(E.target.value),required:!0})]}),r.jsxs(Zn.Group,{controlId:"fundPercentage",children:[r.jsx(Zn.Label,{children:"Ownership Percentage (%)"}),r.jsx(Zn.Control,{type:"number",placeholder:"Enter percentage",value:b,onChange:E=>x(E.target.value),required:!0})]}),r.jsx(gu,{variant:"primary",type:"submit",style:{backgroundColor:"#fda417",border:"#fda417"},children:"Submit"})," ",r.jsx(gu,{variant:"primary",onClick:v,style:{backgroundColor:"#d80b0b",border:"#d80b0b"},children:"close"})]})})]})]})},$w=()=>{const[e,t]=S.useState([]),[n,o]=S.useState(0),[s,i]=S.useState(0),[a]=S.useState(10),[l,u]=S.useState(""),[c,d]=S.useState(!1),[f,g]=S.useState(!1),b=async()=>{d(!0),g(!1);try{const h=await ve.get("http://localhost:3002/mysql/searchmysql",{params:{limit:a,offset:s*a,search:l},headers:{"Cache-Control":"no-cache"}});t(h.data.data),o(h.data.totalRecords),l.trim()&&g(!0)}catch(h){console.log("Error fetching data:",h)}finally{d(!1)}},x=h=>{u(h.target.value),h.target.value.trim()===""&&(i(0),t([]),o(0),g(!1),b())},N=h=>{h.key==="Enter"&&(h.preventDefault(),b())};S.useEffect(()=>{b()},[l,s]);const C=Math.ceil(n/a);return r.jsxs(r.Fragment,{children:[r.jsx(Fe,{}),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((h,v)=>r.jsxs("tr",{children:[r.jsx("td",{children:r.jsxs("div",{className:"widget-26-job-title",children:[r.jsx(Ne,{to:`/properties/${h.house_id}`,className:"link-primary text-decoration-none",target:"_blank",children:h.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"}}),h.city,", ",h.county,",",h.state]}),r.jsxs("p",{className:"text-muted m-0",children:["House Id: ",h.house_id]})]})]})}),r.jsx("td",{children:r.jsx("div",{className:"widget-26-job-info",children:r.jsx("p",{className:"m-0",children:h.total_living_sqft})})}),r.jsx("td",{children:r.jsx("div",{className:"widget-26-job-info",children:r.jsx("p",{className:"m-0",children:h.year_built})})}),r.jsx("td",{children:r.jsxs("div",{className:"widget-26-job-salary",children:["$ ",h.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(s-1),disabled:s===0||c,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Previous"}),r.jsxs("span",{children:[" ","Page ",s+1," of ",C," "]}),r.jsx("button",{onClick:()=>i(s+1),disabled:s+1>=C||c,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Next"})]})]})})})})]}),r.jsx(Ze,{})]})},Ww=()=>r.jsxs(r.Fragment,{children:[r.jsx(Fe,{}),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(Ze,{})]}),Uw=()=>{const{house_id:e}=go();console.log("house_id",e);const[t,n]=S.useState(null),[o,s]=S.useState(!0);return S.useEffect(()=>{(async()=>{try{const a=await ve.get(`http://localhost:3002/mysql/properties/${e}`);n(a.data)}catch(a){console.log("Error fetching property details:",a)}finally{s(!1)}})()},[e]),r.jsxs(r.Fragment,{children:[r.jsx(Fe,{}),r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{}),r.jsx("div",{className:"container col-12",children:o?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:Yt,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(Ze,{})]})},qw=()=>{const{id:e}=go(),t=Ft(),[n,o]=S.useState("propertydetails"),s=()=>{n==="propertydetails"&&o("Images"),n==="Images"&&o("Accounting")},i=()=>{n==="Images"&&o("propertydetails"),n==="Accounting"&&o("Images")},{selectedProperty:a}=Qe(k=>k.property),[l,u]=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"}),c=[1,2,3,4,5,6,7,8,9,10];S.useEffect(()=>{t(Go(e))},[t,e]),S.useEffect(()=>{a&&u({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 d=k=>{u({...l,[k.target.name]:k.target.value})},f=(k,_)=>{const{name:p,value:j}=k.target,w=[...l.propertyTaxInfo],M={...w[_]};M[p]=j,w[_]=M,u({...l,propertyTaxInfo:w})},g=k=>{k.preventDefault();const _=$(),p=D(),j=U(),w=F(),M=W(),q=ne(),X=Me(),ae=He(),Fs=Gn(),Za=Zt(),el=vn(),tl=$t(),nl=$t(),rl=No(),ol=Ds(),sl=Jn(),il=en(),al=Er(),ll=bo(),cl={...l,totalPurchaseCosts:_.toFixed(2),totalcredits:p.toFixed(2),totalPurchaseCostsaftercredits:j.toFixed(2),totalcashAdjustments:w.toFixed(2),totalcashrequiredonsettlement:M.toFixed(2),totalincidentalCost:q.toFixed(2),totalcarryCosts:X.toFixed(2),totalrenovationCost:ae.toFixed(2),totalRenovationsandHoldingCost:Fs.toFixed(2),totalCoststoBuyAtoB:Za.toFixed(2),totalcostPaidOutofClosing:el.toFixed(2),totalCosttoSellBtoC:tl.toFixed(2),grossproceedsperHUD:nl.toFixed(2),totaladjustments:rl.toFixed(2),fundsavailablefordistribution:ol.toFixed(2),totalincomestatement:sl.toFixed(2),netBtoCsalevalue:il.toFixed(2),netprofitbeforefinancingcosts:al.toFixed(2),netprofit:ll.toFixed(2)};t(ki({id:e,propertyData:cl}))},b=()=>{u({...l,propertyTaxInfo:[...l.propertyTaxInfo,{propertytaxowned:"",ownedyear:"",taxassessed:"",taxyear:""}]})},x=k=>{const _=l.propertyTaxInfo.filter((p,j)=>j!==k);u({...l,propertyTaxInfo:_})},N=(k,_)=>{const p=[...l.images];p[_]={...p[_],file:k.base64},u({...l,images:p})},C=()=>{u({...l,images:[...l.images,{title:"",file:""}]})},h=k=>{const _=l.images.filter((p,j)=>j!==k);u({...l,images:_})},v=(k,_)=>{const p=[...l.images];p[k]={...p[k],title:_.target.value},u({...l,images:p})};S.useEffect(()=>{E(l.closeDateAtoB,l.closeDateBtoC)},[l.closeDateAtoB,l.closeDateBtoC]);const[m,y]=S.useState("0 days"),E=(k,_)=>{if(k&&_){const p=new Date(k),j=new Date(_),w=Math.abs(j-p),M=Math.ceil(w/(1e3*60*60*24));y(`${M} days`)}else y("0 days")},P=()=>{u(k=>({...k,costPaidAtoB:[...k.costPaidAtoB,{title:"",price:""}]}))},T=k=>{const _=l.costPaidAtoB.filter((p,j)=>j!==k);u(p=>({...p,costPaidAtoB:_}))},O=(k,_,p)=>{const j=[...l.costPaidAtoB];j[k][_]=p,u(w=>({...w,costPaidAtoB:j}))},B=(k,_)=>{let p=k.target.value;if(p=p.replace(/^\$/,"").trim(),/^\d*\.?\d*$/.test(p)||p===""){const w=l.costPaidAtoB.map((M,q)=>q===_?{...M,price:p,isInvalid:!1}:M);u({...l,costPaidAtoB:w})}else{const w=l.costPaidAtoB.map((M,q)=>q===_?{...M,isInvalid:!0}:M);u({...l,costPaidAtoB:w})}},$=()=>{const k=l.costPaidAtoB.reduce((p,j)=>{const w=parseFloat(j.price)||0;return p+w},0),_=parseFloat(l.purchaseCost)||0;return k+_},H=()=>{u(k=>({...k,credits:[...k.credits,{title:"",price:""}]}))},te=k=>{const _=l.credits.filter((p,j)=>j!==k);u(p=>({...p,credits:_}))},Q=(k,_,p)=>{const j=[...l.credits];j[k][_]=p,u(w=>({...w,credits:j}))},Z=(k,_)=>{const p=k.target.value;if(/^\d*\.?\d*$/.test(p)||p===""){const w=l.credits.map((M,q)=>q===_?{...M,price:p,isInvalid:!1}:M);u({...l,credits:w})}else{const w=l.credits.map((M,q)=>q===_?{...M,isInvalid:!0}:M);u({...l,credits:w})}},D=()=>l.credits.reduce((k,_)=>{const p=parseFloat(_.price);return k+(isNaN(p)?0:p)},0),U=()=>{const k=l.costPaidAtoB.reduce((j,w)=>{const M=parseFloat(w.price)||0;return j+M},0),_=l.credits.reduce((j,w)=>{const M=parseFloat(w.price)||0;return j+M},0),p=parseFloat(l.purchaseCost)||0;return k+_+p},G=()=>{u(k=>({...k,cashAdjustments:[...k.cashAdjustments,{title:"",price:""}]}))},R=k=>{const _=l.cashAdjustments.filter((p,j)=>j!==k);u(p=>({...p,cashAdjustments:_}))},A=(k,_,p)=>{const j=[...l.cashAdjustments];j[k][_]=p,u(w=>({...w,cashAdjustments:j}))},L=(k,_)=>{const p=k.target.value;if(/^\d*\.?\d*$/.test(p)||p===""){const w=l.cashAdjustments.map((M,q)=>q===_?{...M,price:p,isInvalid:!1}:M);u({...l,cashAdjustments:w})}else{const w=l.cashAdjustments.map((M,q)=>q===_?{...M,isInvalid:!0}:M);u({...l,cashAdjustments:w})}},F=()=>l.cashAdjustments.reduce((k,_)=>{const p=parseFloat(_.price);return k+(isNaN(p)?0:p)},0),W=()=>{const k=F(),_=D(),p=$();return k+_+p},K=()=>{u(k=>({...k,incidentalCost:[...k.incidentalCost,{title:"",price:""}]}))},Y=k=>{const _=l.incidentalCost.filter((p,j)=>j!==k);u(p=>({...p,incidentalCost:_}))},ee=(k,_,p)=>{const j=[...l.incidentalCost];j[k][_]=p,u(w=>({...w,incidentalCost:j}))},re=(k,_)=>{const p=k.target.value;if(/^\d*\.?\d*$/.test(p)||p===""){const w=l.incidentalCost.map((M,q)=>q===_?{...M,price:p,isInvalid:!1}:M);u({...l,incidentalCost:w})}else{const w=l.incidentalCost.map((M,q)=>q===_?{...M,isInvalid:!0}:M);u({...l,incidentalCost:w})}},ne=()=>l.incidentalCost.reduce((k,_)=>{const p=parseFloat(_.price);return k+(isNaN(p)?0:p)},0),oe=()=>{u(k=>({...k,carryCosts:[...k.carryCosts,{title:"",price:""}]}))},ie=k=>{const _=l.carryCosts.filter((p,j)=>j!==k);u(p=>({...p,carryCosts:_}))},ce=(k,_,p)=>{const j=[...l.carryCosts];j[k][_]=p,u(w=>({...w,carryCosts:j}))},he=(k,_)=>{const p=k.target.value;if(/^\d*\.?\d*$/.test(p)||p===""){const w=l.carryCosts.map((M,q)=>q===_?{...M,price:p,isInvalid:!1}:M);u({...l,carryCosts:w})}else{const w=l.carryCosts.map((M,q)=>q===_?{...M,isInvalid:!0}:M);u({...l,carryCosts:w})}},Me=()=>l.carryCosts.reduce((k,_)=>{const p=parseFloat(_.price);return k+(isNaN(p)?0:p)},0),yt=()=>{u(k=>({...k,renovationCost:[...k.renovationCost,{title:"",price:""}]}))},Lt=k=>{const _=l.renovationCost.filter((p,j)=>j!==k);u(p=>({...p,renovationCost:_}))},pe=(k,_,p)=>{const j=[...l.renovationCost];j[k][_]=p,u(w=>({...w,renovationCost:j}))},Bt=(k,_)=>{const p=k.target.value;if(/^\d*\.?\d*$/.test(p)||p===""){const w=l.renovationCost.map((M,q)=>q===_?{...M,price:p,isInvalid:!1}:M);u({...l,renovationCost:w})}else{const w=l.renovationCost.map((M,q)=>q===_?{...M,isInvalid:!0}:M);u({...l,renovationCost:w})}},He=()=>l.renovationCost.reduce((k,_)=>{const p=parseFloat(_.price);return k+(isNaN(p)?0:p)},0),Gn=()=>{const k=ne(),_=Me(),p=He();return k+_+p},Zt=()=>{const k=Gn(),_=W();return k+_},yo=()=>{u(k=>({...k,costPaidOutofClosing:[...k.costPaidOutofClosing,{title:"",price:""}]}))},jo=k=>{const _=l.costPaidOutofClosing.filter((p,j)=>j!==k);u(p=>({...p,costPaidOutofClosing:_}))},Qn=(k,_,p)=>{const j=[...l.costPaidOutofClosing];j[k][_]=p,u(w=>({...w,costPaidOutofClosing:j}))},zt=(k,_)=>{const p=k.target.value;if(/^\d*\.?\d*$/.test(p)||p===""){const w=l.costPaidOutofClosing.map((M,q)=>q===_?{...M,price:p,isInvalid:!1}:M);u({...l,costPaidOutofClosing:w})}else{const w=l.costPaidOutofClosing.map((M,q)=>q===_?{...M,isInvalid:!0}:M);u({...l,costPaidOutofClosing:w})}},vn=()=>l.costPaidOutofClosing.reduce((k,_)=>{const p=parseFloat(_.price);return k+(isNaN(p)?0:p)},0),$t=()=>{const k=l.sellingPriceBtoC,_=vn();return k-_},de=()=>{u(k=>({...k,adjustments:[...k.adjustments,{title:"",price:""}]}))},Wt=k=>{const _=l.adjustments.filter((p,j)=>j!==k);u(p=>({...p,adjustments:_}))},gn=(k,_,p)=>{const j=[...l.adjustments];j[k][_]=p,u(w=>({...w,adjustments:j}))},Is=(k,_)=>{const p=k.target.value;if(/^\d*\.?\d*$/.test(p)||p===""){const w=l.adjustments.map((M,q)=>q===_?{...M,price:p,isInvalid:!1}:M);u({...l,adjustments:w})}else{const w=l.adjustments.map((M,q)=>q===_?{...M,isInvalid:!0}:M);u({...l,adjustments:w})}},No=()=>l.adjustments.reduce((k,_)=>{const p=parseFloat(_.price);return k+(isNaN(p)?0:p)},0),Ds=()=>{const k=$t(),_=No();return k+_},Qa=()=>{u(k=>({...k,incomestatement:[...k.incomestatement,{title:"",price:""}]}))},Xa=k=>{const _=l.incomestatement.filter((p,j)=>j!==k);u(p=>({...p,incomestatement:_}))},Co=(k,_,p)=>{const j=[...l.incomestatement];j[k][_]=p,u(w=>({...w,incomestatement:j}))},Xn=(k,_)=>{const p=k.target.value;if(/^\d*\.?\d*$/.test(p)||p===""){const w=l.incomestatement.map((M,q)=>q===_?{...M,price:p,isInvalid:!1}:M);u({...l,incomestatement:w})}else{const w=l.incomestatement.map((M,q)=>q===_?{...M,isInvalid:!0}:M);u({...l,incomestatement:w})}},Jn=()=>l.incomestatement.reduce((k,_)=>{const p=parseFloat(_.price);return k+(isNaN(p)?0:p)},0),en=()=>{const k=Jn(),_=$t();return k+_},Er=()=>{const k=isNaN(parseFloat(en()))?0:parseFloat(en()),_=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),w=isNaN(parseFloat(l.LongTermRental))?0:parseFloat(l.LongTermRental),M=isNaN(parseFloat(Zt()))?0:parseFloat(Zt());return k+_+p+j+w-M},bo=()=>{const k=Er(),_=l.FinancingCostClosingCost;return k-_},Ja=()=>bo();return r.jsxs(r.Fragment,{children:[r.jsx(Fe,{}),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:()=>o("propertydetails"),role:"tab",children:"Property Details"})}),r.jsx("li",{role:"presentation",className:n==="Images"?"active tab":"tab",children:r.jsx("a",{onClick:()=>o("Images"),role:"tab",children:"Images, Maps"})}),r.jsx("li",{role:"presentation",className:n==="Accounting"?"active tab":"tab",children:r.jsx("a",{onClick:()=>o("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:d,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:d,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:d,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:d,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:d,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:d,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:d,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:d,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:d,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:d,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:d,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:d,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:d,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:d,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:d,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:d,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:d,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:d,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:d,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:d,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:d,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:d,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:d,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:d,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:d,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:d,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:d,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,_)=>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: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: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: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: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(_),style:{height:"25px",width:"35px"},children:"X"})]})})]},_)),r.jsx("button",{className:"btn btn-secondary",onClick:b,children:"+ Add Another Property Tax Info"})]}),r.jsx("button",{className:"btn btn-primary continue",onClick:s,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,_)=>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:p=>v(_,p)})}),r.jsxs("div",{className:"col-md-4 d-flex align-items-center",children:[r.jsx(Nd,{multiple:!1,onDone:p=>N(p,_)}),r.jsx("button",{type:"button",className:"btn btn-danger",onClick:()=>h(_),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"}})})]},_)),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:d,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:s,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 _=k.target.value;u({...l,closeDateAtoB:_}),E(_,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 _=k.target.value;u({...l,closeDateBtoC:_}),E(l.closeDateAtoB,_)},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:_=>{const p=parseInt(_.target.value,10);u({...l,renovationRisk:p})}}),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:`$ ${Ja().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:m,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 _=k.target.value.replace(/[^\d.]/g,"");const p=/^\d*\.?\d*$/.test(_);u({...l,purchaseCost:_,isPurchaseCostInvalid:!p})},onKeyPress:k=>{const _=k.charCode;(_<48||_>57)&&_!==46&&(k.preventDefault(),u({...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,_)=>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:p=>O(_,"title",p.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:p=>B(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:()=>T(_),style:{marginLeft:"5px"},children:"x"})})]},_)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{onClick:P,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:"}),l.credits.map((k,_)=>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:p=>Q(_,"title",p.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:p=>Z(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(_),style:{marginLeft:"5px"},children:"x"})})]},_)),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,_)=>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:p=>A(_,"title",p.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:p=>L(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:()=>R(_),style:{marginLeft:"5px"},children:"x"})})]},_)),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: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 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,_)=>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:p=>ee(_,"title",p.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:p=>re(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(_),style:{marginLeft:"5px"},children:"x"})})]},_)),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,_)=>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:p=>ce(_,"title",p.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:p=>he(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:()=>ie(_),style:{marginLeft:"5px"},children:"x"})})]},_)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:oe,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((k,_)=>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:p=>pe(_,"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 ${k.isInvalid?"is-invalid":""}`,value:k.price,onChange:p=>Bt(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:()=>Lt(_),style:{marginLeft:"5px"},children:"x"})})]},_)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:yt,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: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 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 _=k.target.value,p=/^\d*\.?\d*$/.test(_);u({...l,sellingPriceBtoC:_,isPurchaseCostInvalid:!p})},onKeyPress:k=>{const _=k.charCode;(_<48||_>57)&&_!==46&&(k.preventDefault(),u({...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,_)=>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:p=>Qn(_,"title",p.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:p=>zt(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:()=>jo(_),style:{marginLeft:"5px"},children:"x"})})]},_)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:yo,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:vn(),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:$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:"Gross Proceeds per HUD"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"grossproceedsperHUD",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.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Adjustments:"}),l.adjustments.map((k,_)=>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:p=>gn(_,"title",p.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:p=>Is(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:()=>Wt(_),style:{marginLeft:"5px"},children:"x"})})]},_)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:de,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:No(),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:Ds(),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,_)=>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:p=>Co(_,"title",p.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:p=>Xn(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:()=>Xa(_),style:{marginLeft:"5px"},children:"x"})})]},_)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:Qa,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: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.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 _=k.target.value,p=/^\d*\.?\d*$/.test(_);u({...l,fundspriortoclosing:_,isfundspriortoclosingInvalid:!p})},onKeyPress:k=>{const _=k.charCode;(_<48||_>57)&&_!==46&&(k.preventDefault(),u({...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 _=k.target.value,p=/^\d*\.?\d*$/.test(_);u({...l,shorttermrental:_,isPurchaseCostInvalid:!p})},onKeyPress:k=>{const _=k.charCode;(_<48||_>57)&&_!==46&&(k.preventDefault(),u({...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 _=k.target.value,p=/^\d*\.?\d*$/.test(_);u({...l,OtherIncome:_,isPurchaseCostInvalid:!p})},onKeyPress:k=>{const _=k.charCode;(_<48||_>57)&&_!==46&&(k.preventDefault(),u({...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 _=k.target.value,p=/^\d*\.?\d*$/.test(_);u({...l,InsuranceClaim:_,isPurchaseCostInvalid:!p})},onKeyPress:k=>{const _=k.charCode;(_<48||_>57)&&_!==46&&(k.preventDefault(),u({...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 _=k.target.value,p=/^\d*\.?\d*$/.test(_);u({...l,LongTermRental:_,isPurchaseCostInvalid:!p})},onKeyPress:k=>{const _=k.charCode;(_<48||_>57)&&_!==46&&(k.preventDefault(),u({...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 _=k.target.value,p=/^\d*\.?\d*$/.test(_);u({...l,FinancingCostClosingCost:_,isFinancingCostClosingCostInvalid:!p})},onKeyPress:k=>{const _=k.charCode;(_<48||_>57)&&_!==46&&(k.preventDefault(),u({...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:bo(),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: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"})," "]}),r.jsx("br",{})]})]})]})})]})},Vw=()=>{const e=Ft(),{properties:t,loading:n,totalPages:o,currentPage:s}=Qe(N=>N.property),[i,a]=S.useState(""),[l,u]=S.useState([]),[c,d]=S.useState(1),f=10;S.useEffect(()=>{e(Qo({page:c,limit:f,keyword:i}))},[e,c,i]),S.useEffect(()=>{i.trim()?u(t.filter(N=>N.address.toLowerCase().includes(i.toLowerCase()))):u(t)},[i,t]);const g=N=>{a(N.target.value)},b=N=>{N.preventDefault()},x=N=>{d(N),e(Qo({page:N,limit:f,keyword:i}))};return r.jsxs(r.Fragment,{children:[r.jsx(Fe,{}),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: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(N=>r.jsxs("tr",{children:[r.jsx("td",{children:N.images&&N.images[0]?r.jsx("img",{src:N.images[0].file||Yt,alt:"Property Thumbnail",style:{width:"100px",height:"auto"}}):r.jsx("img",{src:Yt,alt:"Default Property Thumbnail",style:{width:"100px",height:"auto"}})}),r.jsx("td",{children:r.jsxs("div",{className:"widget-26-job-title",children:[r.jsx(Ne,{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 ${s===1?"disabled":""}`,children:r.jsx("button",{className:"page-link",onClick:()=>x(s-1),children:"Previous"})}),Array.from({length:o},(N,C)=>r.jsx("li",{className:`page-item ${s===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 ${s===o?"disabled":""}`,children:r.jsx("button",{className:"page-link",onClick:()=>x(s+1),children:"Next"})})]})})]}),r.jsx(Ze,{})]})},Hw=()=>{const{userId:e}=go(),t=Ft(),{user:n,loading:o}=Qe(s=>s.user);return console.log("user",n),S.useEffect(()=>{e&&t(bi(e))},[e,t]),o?r.jsx("div",{children:"Loading..."}):r.jsxs(r.Fragment,{children:[r.jsx(Fe,{}),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",{src:n.profileImage,alt:"Admin",className:"rounded-circle",width:150}),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:Yt,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:Yt,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:Yt,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:Yt,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.jsx("h2",{className:"d-flex flex-column align-items-center text-center",style:{color:"#fda417",border:"#fda417",fontSize:"60px",fontWeight:"normal"},children:"$ 500,000"}),r.jsx("span",{className:"d-flex flex-column align-items-center text-center",children:r.jsx("button",{className:"btn btn-primary btn-lg ",type:"submit",style:{backgroundColor:"#fda417",border:"#fda417"},children:"Request"})}),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:_i,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:_i,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:_i,style:{marginTop:"0px",maxWidth:"50px",maxHeight:"50px"}}),"Ravichandu"]})})]})]})})})]})})]})},Kw=()=>r.jsxs(NC,{children:[r.jsx(bN,{}),r.jsxs(pC,{children:[r.jsx(Ae,{path:"/",element:r.jsx(_C,{})}),r.jsx(Ae,{path:"/about",element:r.jsx(OC,{})}),r.jsx(Ae,{path:"/services",element:r.jsx(Ww,{})}),r.jsx(Ae,{path:"/contact",element:r.jsx(TC,{})}),r.jsx(Ae,{path:"/register",element:r.jsx(rb,{})}),r.jsx(Ae,{path:"/registrationsuccess",element:r.jsx(Oi,{children:r.jsx(jb,{})})}),r.jsx(Ae,{path:"/login",element:r.jsx(sb,{})}),r.jsx(Ae,{path:"/dashboard",element:r.jsx(Oi,{children:r.jsx(ub,{})})}),r.jsx(Ae,{path:"/users/:id/verify/:token",element:r.jsx(gb,{})}),r.jsx(Ae,{path:"/forgotpassword",element:r.jsx(xb,{})}),r.jsx(Ae,{path:"/users/resetpassword/:userId/:token",element:r.jsx(yb,{})}),r.jsx(Ae,{path:"/property/:id",element:r.jsx(zw,{})}),r.jsx(Ae,{path:"/properties/:house_id",element:r.jsx(Uw,{})}),r.jsx(Ae,{path:"/searchmyproperties",element:r.jsx($w,{})}),r.jsx(Ae,{path:"/searchproperties",element:r.jsx(Vw,{})}),r.jsx(Ae,{path:"/editproperty/:id",element:r.jsx(Oi,{children:r.jsx(qw,{})})}),r.jsx(Ae,{path:"/profile/:userId",element:r.jsx(Hw,{})})]})]});Wh(document.getElementById("root")).render(r.jsx(S.StrictMode,{children:r.jsx(Ej,{store:EN,children:r.jsx(Kw,{})})})); diff --git a/ef-ui/dist/index.html b/ef-ui/dist/index.html index fd325f8..3d1a462 100644 --- a/ef-ui/dist/index.html +++ b/ef-ui/dist/index.html @@ -45,7 +45,7 @@ - + diff --git a/ef-ui/package-lock.json b/ef-ui/package-lock.json index c435073..7ba76df 100644 --- a/ef-ui/package-lock.json +++ b/ef-ui/package-lock.json @@ -20,6 +20,7 @@ "primeicons": "^7.0.0", "prop-types": "^15.8.1", "react": "^18.3.1", + "react-bootstrap": "^2.10.5", "react-dom": "^18.3.1", "react-file-base64": "^1.0.3", "react-icons": "^5.3.0", @@ -336,6 +337,18 @@ "@babel/core": "^7.0.0-0" } }, + "node_modules/@babel/runtime": { + "version": "7.25.7", + "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.25.7.tgz", + "integrity": "sha512-FjoyLe754PMiYsFaN5C94ttGiOmBNYTf6pLr4xXHAT5uctHb092PBszndLDR5XA/jghQvn4n7JMHl7dmTgbm9w==", + "license": "MIT", + "dependencies": { + "regenerator-runtime": "^0.14.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, "node_modules/@babel/template": { "version": "7.25.0", "dev": true, @@ -654,12 +667,26 @@ "resolved": "https://registry.npmjs.org/@popperjs/core/-/core-2.11.8.tgz", "integrity": "sha512-P1st0aksCrn9sGZhp8GMYwBnQsbvAWsZAX44oXNNvLHGqAOcoVxmjZiohstwQ7SqKnbR47akdNi+uleWD8+g6A==", "license": "MIT", - "peer": true, "funding": { "type": "opencollective", "url": "https://opencollective.com/popperjs" } }, + "node_modules/@react-aria/ssr": { + "version": "3.9.6", + "resolved": "https://registry.npmjs.org/@react-aria/ssr/-/ssr-3.9.6.tgz", + "integrity": "sha512-iLo82l82ilMiVGy342SELjshuWottlb5+VefO3jOQqQRNYnJBFpUSadswDPbRimSgJUZuFwIEYs6AabkP038fA==", + "license": "Apache-2.0", + "dependencies": { + "@swc/helpers": "^0.5.0" + }, + "engines": { + "node": ">= 12" + }, + "peerDependencies": { + "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0" + } + }, "node_modules/@reduxjs/toolkit": { "version": "2.2.7", "resolved": "https://registry.npmjs.org/@reduxjs/toolkit/-/toolkit-2.2.7.tgz", @@ -693,6 +720,48 @@ "node": ">=14.0.0" } }, + "node_modules/@restart/hooks": { + "version": "0.4.16", + "resolved": "https://registry.npmjs.org/@restart/hooks/-/hooks-0.4.16.tgz", + "integrity": "sha512-f7aCv7c+nU/3mF7NWLtVVr0Ra80RqsO89hO72r+Y/nvQr5+q0UFGkocElTH6MJApvReVh6JHUFYn2cw1WdHF3w==", + "license": "MIT", + "dependencies": { + "dequal": "^2.0.3" + }, + "peerDependencies": { + "react": ">=16.8.0" + } + }, + "node_modules/@restart/ui": { + "version": "1.8.0", + "resolved": "https://registry.npmjs.org/@restart/ui/-/ui-1.8.0.tgz", + "integrity": "sha512-xJEOXUOTmT4FngTmhdjKFRrVVF0hwCLNPdatLCHkyS4dkiSK12cEu1Y0fjxktjJrdst9jJIc5J6ihMJCoWEN/g==", + "license": "MIT", + "dependencies": { + "@babel/runtime": "^7.21.0", + "@popperjs/core": "^2.11.6", + "@react-aria/ssr": "^3.5.0", + "@restart/hooks": "^0.4.9", + "@types/warning": "^3.0.0", + "dequal": "^2.0.3", + "dom-helpers": "^5.2.0", + "uncontrollable": "^8.0.1", + "warning": "^4.0.3" + }, + "peerDependencies": { + "react": ">=16.14.0", + "react-dom": ">=16.14.0" + } + }, + "node_modules/@restart/ui/node_modules/uncontrollable": { + "version": "8.0.4", + "resolved": "https://registry.npmjs.org/uncontrollable/-/uncontrollable-8.0.4.tgz", + "integrity": "sha512-ulRWYWHvscPFc0QQXvyJjY6LIXU56f0h8pQFvhxiKk5V1fcI8gp9Ht9leVAhrVjzqMw0BgjspBINx9r6oyJUvQ==", + "license": "MIT", + "peerDependencies": { + "react": ">=16.14.0" + } + }, "node_modules/@rollup/rollup-win32-x64-msvc": { "version": "4.21.0", "cpu": [ @@ -705,6 +774,15 @@ "win32" ] }, + "node_modules/@swc/helpers": { + "version": "0.5.13", + "resolved": "https://registry.npmjs.org/@swc/helpers/-/helpers-0.5.13.tgz", + "integrity": "sha512-UoKGxQ3r5kYI9dALKJapMmuK+1zWM/H17Z1+iwnNmzcJRnfFuevZs375TA5rW31pu4BS4NoSy1fRsexDXfWn5w==", + "license": "Apache-2.0", + "dependencies": { + "tslib": "^2.4.0" + } + }, "node_modules/@types/babel__core": { "version": "7.20.5", "dev": true, @@ -766,12 +844,27 @@ "@types/react": "*" } }, + "node_modules/@types/react-transition-group": { + "version": "4.4.11", + "resolved": "https://registry.npmjs.org/@types/react-transition-group/-/react-transition-group-4.4.11.tgz", + "integrity": "sha512-RM05tAniPZ5DZPzzNFP+DmrcOdD0efDUxMy3145oljWSl3x9ZV5vhme98gTxFrj2lhXvmGNnUiuDyJgY9IKkNA==", + "license": "MIT", + "dependencies": { + "@types/react": "*" + } + }, "node_modules/@types/use-sync-external-store": { "version": "0.0.3", "resolved": "https://registry.npmjs.org/@types/use-sync-external-store/-/use-sync-external-store-0.0.3.tgz", "integrity": "sha512-EwmlvuaxPNej9+T4v5AuBPJa2x2UOJVdjCtDHgcDqitUeOtjnJKJ+apYjVcAoBEMjKW1VVFGZLUb5+qqa09XFA==", "license": "MIT" }, + "node_modules/@types/warning": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/@types/warning/-/warning-3.0.3.tgz", + "integrity": "sha512-D1XC7WK8K+zZEveUPY+cf4+kgauk8N4eHr/XIHXGlGYkHLud6hK9lYfZk1ry1TNh798cZUCgb6MqGEG8DkJt6Q==", + "license": "MIT" + }, "node_modules/@vitejs/plugin-react": { "version": "4.3.1", "dev": true, @@ -1135,6 +1228,12 @@ "url": "https://github.com/chalk/chalk?sponsor=1" } }, + "node_modules/classnames": { + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/classnames/-/classnames-2.5.1.tgz", + "integrity": "sha512-saHYOzhIQs6wy2sVxTM6bUDsQO4F50V9RQ22qBpEdCW+I+/Wmke2HOl6lS6dTpdxVhb88/I6+Hs+438c3lfUow==", + "license": "MIT" + }, "node_modules/clsx": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/clsx/-/clsx-2.1.1.tgz", @@ -1326,6 +1425,15 @@ "node": ">=0.4.0" } }, + "node_modules/dequal": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/dequal/-/dequal-2.0.3.tgz", + "integrity": "sha512-0je+qPKHEMohvfRTCEo3CrPG6cAzAYgmzKyxRiYSSDkS6eGJdyVJm7WaYA5ECaAD9wLB2T4EEeymA5aFVcYXCA==", + "license": "MIT", + "engines": { + "node": ">=6" + } + }, "node_modules/doctrine": { "version": "2.1.0", "dev": true, @@ -1337,6 +1445,16 @@ "node": ">=0.10.0" } }, + "node_modules/dom-helpers": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/dom-helpers/-/dom-helpers-5.2.1.tgz", + "integrity": "sha512-nRCa7CK3VTrM2NmGkIy4cbK7IZlgBE/PYMn55rrXefr5xXDP0LdtfPnblFDoVdcAfslJ7or6iqAUnx0CCGIWQA==", + "license": "MIT", + "dependencies": { + "@babel/runtime": "^7.8.7", + "csstype": "^3.0.2" + } + }, "node_modules/dotenv": { "version": "16.4.5", "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.4.5.tgz", @@ -2171,6 +2289,15 @@ "node": ">= 0.4" } }, + "node_modules/invariant": { + "version": "2.2.4", + "resolved": "https://registry.npmjs.org/invariant/-/invariant-2.2.4.tgz", + "integrity": "sha512-phJfQVBuaJM5raOpJjSfkiD6BpbCE4Ns//LaXl6wGYtUBY83nWS6Rf9tXm2e8VaK60JEjYldbPif/A2B1C2gNA==", + "license": "MIT", + "dependencies": { + "loose-envify": "^1.0.0" + } + }, "node_modules/is-array-buffer": { "version": "3.0.4", "dev": true, @@ -3018,6 +3145,19 @@ "react-is": "^16.13.1" } }, + "node_modules/prop-types-extra": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/prop-types-extra/-/prop-types-extra-1.1.1.tgz", + "integrity": "sha512-59+AHNnHYCdiC+vMwY52WmvP5dM3QLeoumYuEyceQDi9aEhtwN9zIQ2ZNo25sMyXnbh32h+P1ezDsUpUH3JAew==", + "license": "MIT", + "dependencies": { + "react-is": "^16.3.2", + "warning": "^4.0.0" + }, + "peerDependencies": { + "react": ">=0.14.0" + } + }, "node_modules/proxy-from-env": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-1.1.0.tgz", @@ -3063,6 +3203,36 @@ "node": ">=0.10.0" } }, + "node_modules/react-bootstrap": { + "version": "2.10.5", + "resolved": "https://registry.npmjs.org/react-bootstrap/-/react-bootstrap-2.10.5.tgz", + "integrity": "sha512-XueAOEn64RRkZ0s6yzUTdpFtdUXs5L5491QU//8ZcODKJNDLt/r01tNyriZccjgRImH1REynUc9pqjiRMpDLWQ==", + "license": "MIT", + "dependencies": { + "@babel/runtime": "^7.24.7", + "@restart/hooks": "^0.4.9", + "@restart/ui": "^1.6.9", + "@types/react-transition-group": "^4.4.6", + "classnames": "^2.3.2", + "dom-helpers": "^5.2.1", + "invariant": "^2.2.4", + "prop-types": "^15.8.1", + "prop-types-extra": "^1.1.0", + "react-transition-group": "^4.4.5", + "uncontrollable": "^7.2.1", + "warning": "^4.0.3" + }, + "peerDependencies": { + "@types/react": ">=16.14.8", + "react": ">=16.14.0", + "react-dom": ">=16.14.0" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } + } + }, "node_modules/react-dom": { "version": "18.3.1", "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-18.3.1.tgz", @@ -3123,6 +3293,12 @@ "version": "16.13.1", "license": "MIT" }, + "node_modules/react-lifecycles-compat": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/react-lifecycles-compat/-/react-lifecycles-compat-3.0.4.tgz", + "integrity": "sha512-fBASbA6LnOU9dOU2eW7aQ8xmYBSXUIWr+UmF9b1efZBazGNO+rcXT/icdKnYm2pTwcRylVUYwW7H1PHfLekVzA==", + "license": "MIT" + }, "node_modules/react-loading-icons": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/react-loading-icons/-/react-loading-icons-1.1.0.tgz", @@ -3223,6 +3399,22 @@ "react-dom": ">=18" } }, + "node_modules/react-transition-group": { + "version": "4.4.5", + "resolved": "https://registry.npmjs.org/react-transition-group/-/react-transition-group-4.4.5.tgz", + "integrity": "sha512-pZcd1MCJoiKiBR2NRxeCRg13uCXbydPnmB4EOeRrY7480qNWO8IIgQG6zlDkm6uRMsURXPuKq0GWtiM59a5Q6g==", + "license": "BSD-3-Clause", + "dependencies": { + "@babel/runtime": "^7.5.5", + "dom-helpers": "^5.0.1", + "loose-envify": "^1.4.0", + "prop-types": "^15.6.2" + }, + "peerDependencies": { + "react": ">=16.6.0", + "react-dom": ">=16.6.0" + } + }, "node_modules/redux": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/redux/-/redux-5.0.1.tgz", @@ -3258,6 +3450,12 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/regenerator-runtime": { + "version": "0.14.1", + "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.14.1.tgz", + "integrity": "sha512-dYnhHh0nJoMfnkZs6GmmhFknAGRrLznOu5nc9ML+EJxGvrx6H7teuevqVqCuPcPK//3eDrrjQhehXVx9cnkGdw==", + "license": "MIT" + }, "node_modules/regexp.prototype.flags": { "version": "1.5.2", "dev": true, @@ -3769,6 +3967,21 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/uncontrollable": { + "version": "7.2.1", + "resolved": "https://registry.npmjs.org/uncontrollable/-/uncontrollable-7.2.1.tgz", + "integrity": "sha512-svtcfoTADIB0nT9nltgjujTi7BzVmwjZClOmskKu/E8FW9BXzg9os8OLr4f8Dlnk0rYWJIWr4wv9eKUXiQvQwQ==", + "license": "MIT", + "dependencies": { + "@babel/runtime": "^7.6.3", + "@types/react": ">=16.9.11", + "invariant": "^2.2.4", + "react-lifecycles-compat": "^3.0.4" + }, + "peerDependencies": { + "react": ">=15.0.0" + } + }, "node_modules/update-browserslist-db": { "version": "1.1.0", "dev": true, diff --git a/ef-ui/package.json b/ef-ui/package.json index 1a8785b..17d6f67 100644 --- a/ef-ui/package.json +++ b/ef-ui/package.json @@ -22,6 +22,7 @@ "primeicons": "^7.0.0", "prop-types": "^15.8.1", "react": "^18.3.1", + "react-bootstrap": "^2.10.5", "react-dom": "^18.3.1", "react-file-base64": "^1.0.3", "react-icons": "^5.3.0", diff --git a/ef-ui/src/components/PropertyView.jsx b/ef-ui/src/components/PropertyView.jsx index b9946ae..195097f 100644 --- a/ef-ui/src/components/PropertyView.jsx +++ b/ef-ui/src/components/PropertyView.jsx @@ -2,17 +2,25 @@ import { useEffect, useState } from "react"; import { useDispatch, useSelector } from "react-redux"; import { useParams } from "react-router-dom"; import { fetchPropertyById } from "../redux/features/propertySlice"; -import propertydummy from "../img/propertydummy.jpg" +import propertydummy from "../img/propertydummy.jpg"; import Navbar from "./Navbar"; import Footer from "./Footer"; - - +import { Modal, Button, Form } from "react-bootstrap"; // Importing Modal components +import { submitFundDetails } from "../redux/features/fundDetailsSlice"; +import { useNavigate } from "react-router-dom"; const PropertyView = () => { const { id } = useParams(); // Extract the property ID from the route const dispatch = useDispatch(); - const { selectedProperty, status, error } = useSelector((state) => state.property); + const navigate = useNavigate(); + const { selectedProperty, status, error } = useSelector( + (state) => state.property + ); + const { user } = useSelector((state) => ({ ...state.auth })); const [loading, setLoading] = useState(true); // Loader state + const [showModal, setShowModal] = useState(false); // Modal state + const [fundValue, setFundValue] = useState(""); // Fund value state + const [fundPercentage, setFundPercentage] = useState(""); // Fund percentage state useEffect(() => { // Fetch the property by ID when the component loads @@ -30,57 +38,136 @@ const PropertyView = () => { return

Error loading property: {error}

; } -// console.log("selectedProperty", selectedProperty); + // Handle conditions for the "Willing to Invest/Fund" button and messages + const isOwner = user?.result?.userId === selectedProperty?.userId; + const isLoggedIn = !!user; + + const handleShowModal = () => { + setShowModal(true); // Show the modal + }; + + const handleCloseModal = () => { + setShowModal(false); // Close the modal + }; + + // Inside your PropertyView component + const handleSubmit = (e) => { + e.preventDefault(); + + const fundDetails = { + propertyOwnerId: selectedProperty?.userId, + investorId: user?.result?.userId, + investmentAmount: fundValue, + ownershipPercentage: fundPercentage, + propertyId: selectedProperty?.propertyId || "defaultId", // Add a fallback + }; + + dispatch(submitFundDetails({ fundDetails, id, navigate })); + handleCloseModal(); // Close modal after submission + }; return ( <> - - +



-
{loading ? (
Loading...
// Loader ) : selectedProperty ? (
- {/*
*/}
-
- {/* {selectedProperty.images && selectedProperty.images[0] && ( - Property Thumbnail - )} */} - +
{selectedProperty.images && selectedProperty.images[0] ? ( - Property Thumbnail -) : ( - Default Property Thumbnail -)} - - + Property Thumbnail + ) : ( + Default Property Thumbnail + )}
+
+
+

+ Total Funding Amount:{" "} + + {" "} + {selectedProperty.totalCoststoBuyAtoB} + +

+

+ Net profit:{" "} + + {" "} + {selectedProperty.NetProfit} + +

+
+ +
+ {/* "Willing to Invest/Fund" Button and Conditional Messages */} + + {isOwner && ( + + You cannot invest on your property. + + )} + {!isLoggedIn && ( + + Please login to submit. + + )}
+

{

- city:{" "} + City:{" "} {" "} - {selectedProperty.city} / + {selectedProperty.city} + {" "} /{" "} + {" "} + {" "} County:{" "} {" "} - {selectedProperty.county} / + {selectedProperty.county} {" "}/{" "} + {" "} State:{" "} {" "} - {selectedProperty.state} / + {selectedProperty.state} {" "}/ {" "} + {" "} - Zipcode: + Zipcode:{" "} {" "} {selectedProperty.zip} + {" "}

{ {selectedProperty.yearBuild}
-
-
- Legal Description -
- - {selectedProperty.legal - ? selectedProperty.legal - : "No data available"} - -
- +
+
+ Legal Description +
+ + {selectedProperty.legal + ? selectedProperty.legal + : "No data available"} + +

+
@@ -183,13 +279,58 @@ const PropertyView = () => {
) : ( -

No property details found.

+

No property found.

)}