1?u-1:0),g=1;g2?p-2:0),N=2;N1){for(var Z=Array(Q),D=0;D"u"||_.$$typeof!==m)){var G=typeof j=="function"?j.displayName||j.name||"Unknown":j;L&&d(_,G),z&&c(_,G)}return h(j,L,z,H,te,N.current,_)},h.createFactory=function(j){var E=h.createElement.bind(null,j);return E.type=j,E},h.cloneAndReplaceKey=function(j,E){var T=h(j.type,E,j.ref,j._self,j._source,j._owner,j.props);return T},h.cloneElement=function(j,E,T){var O,_=g({},j.props),L=j.key,z=j.ref,H=j._self,te=j._source,Q=j._owner;if(E!=null){a(E)&&(z=E.ref,Q=N.current),l(E)&&(L=""+E.key);var Z;j.type&&j.type.defaultProps&&(Z=j.type.defaultProps);for(O in E)b.call(E,O)&&!v.hasOwnProperty(O)&&(E[O]===void 0&&Z!==void 0?_[O]=Z[O]:_[O]=E[O])}var D=arguments.length-2;if(D===1)_.children=T;else if(D>1){for(var U=Array(D),G=0;G=0)&&(n[o]=e[o]);return n}function vC(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function gC(e,t){return e.button===0&&(!t||t==="_self")&&!vC(e)}const xC=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],yC=["aria-current","caseSensitive","className","end","style","to","unstable_viewTransition","children"],jC="6";try{window.__reactRouterVersion=jC}catch{}const NC=k.createContext({isTransitioning:!1}),CC="startTransition",bp=dc[CC];function bC(e){let{basename:t,children:n,future:s,window:o}=e,i=k.useRef();i.current==null&&(i.current=_N({window:o,v5Compat:!0}));let a=i.current,[l,d]=k.useState({action:a.action,location:a.location}),{v7_startTransition:c}=s||{},u=k.useCallback(p=>{c&&bp?bp(()=>d(p)):d(p)},[d,c]);return k.useLayoutEffect(()=>a.listen(u),[a,u]),k.createElement(mC,{basename:t,children:n,location:l.location,navigationType:l.action,navigator:a,future:s})}const wC=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",kC=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,SC=k.forwardRef(function(t,n){let{onClick:s,relative:o,reloadDocument:i,replace:a,state:l,target:d,to:c,preventScrollReset:u,unstable_viewTransition:p}=t,g=Qv(t,xC),{basename:N}=k.useContext(Yn),x,C=!1;if(typeof c=="string"&&kC.test(c)&&(x=c,wC))try{let h=new URL(window.location.href),j=c.startsWith("//")?new URL(h.protocol+c):new URL(c),E=ds(j.pathname,N);j.origin===h.origin&&E!=null?c=E+j.search+j.hash:C=!0}catch{}let b=eC(c,{relative:o}),m=PC(c,{replace:a,state:l,target:d,preventScrollReset:u,relative:o,unstable_viewTransition:p});function v(h){s&&s(h),h.defaultPrevented||m(h)}return k.createElement("a",ya({},g,{href:x||b,onClick:C||i?s:v,ref:n,target:d}))}),ae=k.forwardRef(function(t,n){let{"aria-current":s="page",caseSensitive:o=!1,className:i="",end:a=!1,style:l,to:d,unstable_viewTransition:c,children:u}=t,p=Qv(t,yC),g=Ja(d,{relative:p.relative}),N=Do(),x=k.useContext(Vv),{navigator:C,basename:b}=k.useContext(Yn),m=x!=null&&_C(g)&&c===!0,v=C.encodeLocation?C.encodeLocation(g).pathname:g.pathname,h=N.pathname,j=x&&x.navigation&&x.navigation.location?x.navigation.location.pathname:null;o||(h=h.toLowerCase(),j=j?j.toLowerCase():null,v=v.toLowerCase()),j&&b&&(j=ds(j,b)||j);const E=v!=="/"&&v.endsWith("/")?v.length-1:v.length;let T=h===v||!a&&h.startsWith(v)&&h.charAt(E)==="/",O=j!=null&&(j===v||!a&&j.startsWith(v)&&j.charAt(v.length)==="/"),_={isActive:T,isPending:O,isTransitioning:m},L=T?s:void 0,z;typeof i=="function"?z=i(_):z=[i,T?"active":null,O?"pending":null,m?"transitioning":null].filter(Boolean).join(" ");let H=typeof l=="function"?l(_):l;return k.createElement(SC,ya({},p,{"aria-current":L,className:z,ref:n,style:H,to:d,unstable_viewTransition:c}),typeof u=="function"?u(_):u)});var xd;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(xd||(xd={}));var wp;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(wp||(wp={}));function EC(e){let t=k.useContext(Qa);return t||Pe(!1),t}function PC(e,t){let{target:n,replace:s,state:o,preventScrollReset:i,relative:a,unstable_viewTransition:l}=t===void 0?{}:t,d=hn(),c=Do(),u=Ja(e,{relative:a});return k.useCallback(p=>{if(gC(p,n)){p.preventDefault();let g=s!==void 0?s:va(c)===va(u);d(e,{replace:g,state:o,preventScrollReset:i,relative:a,unstable_viewTransition:l})}},[c,d,u,s,o,n,e,i,a,l])}function _C(e,t){t===void 0&&(t={});let n=k.useContext(NC);n==null&&Pe(!1);let{basename:s}=EC(xd.useViewTransitionState),o=Ja(e,{relative:t.relative});if(!n.isTransitioning)return!1;let i=ds(n.currentLocation.pathname,s)||n.currentLocation.pathname,a=ds(n.nextLocation.pathname,s)||n.nextLocation.pathname;return ga(o.pathname,a)!=null||ga(o.pathname,i)!=null}function Xv(e){var t,n,s="";if(typeof e=="string"||typeof e=="number")s+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;ttypeof e=="number"&&!isNaN(e),hr=e=>typeof e=="string",pt=e=>typeof e=="function",Li=e=>hr(e)||pt(e)?e:null,yd=e=>k.isValidElement(e)||hr(e)||pt(e)||bo(e);function TC(e,t,n){n===void 0&&(n=300);const{scrollHeight:s,style:o}=e;requestAnimationFrame(()=>{o.minHeight="initial",o.height=s+"px",o.transition=`all ${n}ms`,requestAnimationFrame(()=>{o.height="0",o.padding="0",o.margin="0",setTimeout(t,n)})})}function Za(e){let{enter:t,exit:n,appendPosition:s=!1,collapse:o=!0,collapseDuration:i=300}=e;return function(a){let{children:l,position:d,preventExitTransition:c,done:u,nodeRef:p,isIn:g,playToast:N}=a;const x=s?`${t}--${d}`:t,C=s?`${n}--${d}`:n,b=k.useRef(0);return k.useLayoutEffect(()=>{const m=p.current,v=x.split(" "),h=j=>{j.target===p.current&&(N(),m.removeEventListener("animationend",h),m.removeEventListener("animationcancel",h),b.current===0&&j.type!=="animationcancel"&&m.classList.remove(...v))};m.classList.add(...v),m.addEventListener("animationend",h),m.addEventListener("animationcancel",h)},[]),k.useEffect(()=>{const m=p.current,v=()=>{m.removeEventListener("animationend",v),o?TC(m,u,i):u()};g||(c?v():(b.current=1,m.className+=` ${C}`,m.addEventListener("animationend",v)))},[g]),I.createElement(I.Fragment,null,l)}}function kp(e,t){return e!=null?{content:e.content,containerId:e.props.containerId,id:e.props.toastId,theme:e.props.theme,type:e.props.type,data:e.props.data||{},isLoading:e.props.isLoading,icon:e.props.icon,status:t}:{}}const Qe=new Map;let wo=[];const jd=new Set,OC=e=>jd.forEach(t=>t(e)),Jv=()=>Qe.size>0;function Zv(e,t){var n;if(t)return!((n=Qe.get(t))==null||!n.isToastActive(e));let s=!1;return Qe.forEach(o=>{o.isToastActive(e)&&(s=!0)}),s}function eg(e,t){yd(e)&&(Jv()||wo.push({content:e,options:t}),Qe.forEach(n=>{n.buildToast(e,t)}))}function Sp(e,t){Qe.forEach(n=>{t!=null&&t!=null&&t.containerId?(t==null?void 0:t.containerId)===n.id&&n.toggle(e,t==null?void 0:t.id):n.toggle(e,t==null?void 0:t.id)})}function AC(e){const{subscribe:t,getSnapshot:n,setProps:s}=k.useRef(function(i){const a=i.containerId||1;return{subscribe(l){const d=function(u,p,g){let N=1,x=0,C=[],b=[],m=[],v=p;const h=new Map,j=new Set,E=()=>{m=Array.from(h.values()),j.forEach(_=>_())},T=_=>{b=_==null?[]:b.filter(L=>L!==_),E()},O=_=>{const{toastId:L,onOpen:z,updateId:H,children:te}=_.props,Q=H==null;_.staleId&&h.delete(_.staleId),h.set(L,_),b=[...b,_.props.toastId].filter(Z=>Z!==_.staleId),E(),g(kp(_,Q?"added":"updated")),Q&&pt(z)&&z(k.isValidElement(te)&&te.props)};return{id:u,props:v,observe:_=>(j.add(_),()=>j.delete(_)),toggle:(_,L)=>{h.forEach(z=>{L!=null&&L!==z.props.toastId||pt(z.toggle)&&z.toggle(_)})},removeToast:T,toasts:h,clearQueue:()=>{x-=C.length,C=[]},buildToast:(_,L)=>{if((W=>{let{containerId:K,toastId:Y,updateId:ee}=W;const re=K?K!==u:u!==1,ne=h.has(Y)&&ee==null;return re||ne})(L))return;const{toastId:z,updateId:H,data:te,staleId:Q,delay:Z}=L,D=()=>{T(z)},U=H==null;U&&x++;const G={...v,style:v.toastStyle,key:N++,...Object.fromEntries(Object.entries(L).filter(W=>{let[K,Y]=W;return Y!=null})),toastId:z,updateId:H,data:te,closeToast:D,isIn:!1,className:Li(L.className||v.toastClassName),bodyClassName:Li(L.bodyClassName||v.bodyClassName),progressClassName:Li(L.progressClassName||v.progressClassName),autoClose:!L.isLoading&&(A=L.autoClose,R=v.autoClose,A===!1||bo(A)&&A>0?A:R),deleteToast(){const W=h.get(z),{onClose:K,children:Y}=W.props;pt(K)&&K(k.isValidElement(Y)&&Y.props),g(kp(W,"removed")),h.delete(z),x--,x<0&&(x=0),C.length>0?O(C.shift()):E()}};var A,R;G.closeButton=v.closeButton,L.closeButton===!1||yd(L.closeButton)?G.closeButton=L.closeButton:L.closeButton===!0&&(G.closeButton=!yd(v.closeButton)||v.closeButton);let M=_;k.isValidElement(_)&&!hr(_.type)?M=k.cloneElement(_,{closeToast:D,toastProps:G,data:te}):pt(_)&&(M=_({closeToast:D,toastProps:G,data:te}));const B={content:M,props:G,staleId:Q};v.limit&&v.limit>0&&x>v.limit&&U?C.push(B):bo(Z)?setTimeout(()=>{O(B)},Z):O(B)},setProps(_){v=_},setToggle:(_,L)=>{h.get(_).toggle=L},isToastActive:_=>b.some(L=>L===_),getSnapshot:()=>v.newestOnTop?m.reverse():m}}(a,i,OC);Qe.set(a,d);const c=d.observe(l);return wo.forEach(u=>eg(u.content,u.options)),wo=[],()=>{c(),Qe.delete(a)}},setProps(l){var d;(d=Qe.get(a))==null||d.setProps(l)},getSnapshot(){var l;return(l=Qe.get(a))==null?void 0:l.getSnapshot()}}}(e)).current;s(e);const o=k.useSyncExternalStore(t,n,n);return{getToastToRender:function(i){if(!o)return[];const a=new Map;return o.forEach(l=>{const{position:d}=l.props;a.has(d)||a.set(d,[]),a.get(d).push(l)}),Array.from(a,l=>i(l[0],l[1]))},isToastActive:Zv,count:o==null?void 0:o.length}}function RC(e){const[t,n]=k.useState(!1),[s,o]=k.useState(!1),i=k.useRef(null),a=k.useRef({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:l,pauseOnHover:d,closeToast:c,onClick:u,closeOnClick:p}=e;var g,N;function x(){n(!0)}function C(){n(!1)}function b(h){const j=i.current;a.canDrag&&j&&(a.didMove=!0,t&&C(),a.delta=e.draggableDirection==="x"?h.clientX-a.start:h.clientY-a.start,a.start!==h.clientX&&(a.canCloseOnClick=!1),j.style.transform=`translate3d(${e.draggableDirection==="x"?`${a.delta}px, var(--y)`:`0, calc(${a.delta}px + var(--y))`},0)`,j.style.opacity=""+(1-Math.abs(a.delta/a.removalDistance)))}function m(){document.removeEventListener("pointermove",b),document.removeEventListener("pointerup",m);const h=i.current;if(a.canDrag&&a.didMove&&h){if(a.canDrag=!1,Math.abs(a.delta)>a.removalDistance)return o(!0),e.closeToast(),void e.collapseAll();h.style.transition="transform 0.2s, opacity 0.2s",h.style.removeProperty("transform"),h.style.removeProperty("opacity")}}(N=Qe.get((g={id:e.toastId,containerId:e.containerId,fn:n}).containerId||1))==null||N.setToggle(g.id,g.fn),k.useEffect(()=>{if(e.pauseOnFocusLoss)return document.hasFocus()||C(),window.addEventListener("focus",x),window.addEventListener("blur",C),()=>{window.removeEventListener("focus",x),window.removeEventListener("blur",C)}},[e.pauseOnFocusLoss]);const v={onPointerDown:function(h){if(e.draggable===!0||e.draggable===h.pointerType){a.didMove=!1,document.addEventListener("pointermove",b),document.addEventListener("pointerup",m);const j=i.current;a.canCloseOnClick=!0,a.canDrag=!0,j.style.transition="none",e.draggableDirection==="x"?(a.start=h.clientX,a.removalDistance=j.offsetWidth*(e.draggablePercent/100)):(a.start=h.clientY,a.removalDistance=j.offsetHeight*(e.draggablePercent===80?1.5*e.draggablePercent:e.draggablePercent)/100)}},onPointerUp:function(h){const{top:j,bottom:E,left:T,right:O}=i.current.getBoundingClientRect();h.nativeEvent.type!=="touchend"&&e.pauseOnHover&&h.clientX>=T&&h.clientX<=O&&h.clientY>=j&&h.clientY<=E?C():x()}};return l&&d&&(v.onMouseEnter=C,e.stacked||(v.onMouseLeave=x)),p&&(v.onClick=h=>{u&&u(h),a.canCloseOnClick&&c()}),{playToast:x,pauseToast:C,isRunning:t,preventExitTransition:s,toastRef:i,eventHandlers:v}}function IC(e){let{delay:t,isRunning:n,closeToast:s,type:o="default",hide:i,className:a,style:l,controlledProgress:d,progress:c,rtl:u,isIn:p,theme:g}=e;const N=i||d&&c===0,x={...l,animationDuration:`${t}ms`,animationPlayState:n?"running":"paused"};d&&(x.transform=`scaleX(${c})`);const C=An("Toastify__progress-bar",d?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${g}`,`Toastify__progress-bar--${o}`,{"Toastify__progress-bar--rtl":u}),b=pt(a)?a({rtl:u,type:o,defaultClassName:C}):An(C,a),m={[d&&c>=1?"onTransitionEnd":"onAnimationEnd"]:d&&c<1?null:()=>{p&&s()}};return I.createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":N},I.createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${g} Toastify__progress-bar--${o}`}),I.createElement("div",{role:"progressbar","aria-hidden":N?"true":"false","aria-label":"notification timer",className:b,style:x,...m}))}let FC=1;const tg=()=>""+FC++;function DC(e){return e&&(hr(e.toastId)||bo(e.toastId))?e.toastId:tg()}function Zs(e,t){return eg(e,t),t.toastId}function ja(e,t){return{...t,type:t&&t.type||e,toastId:DC(t)}}function ai(e){return(t,n)=>Zs(t,ja(e,n))}function oe(e,t){return Zs(e,ja("default",t))}oe.loading=(e,t)=>Zs(e,ja("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),oe.promise=function(e,t,n){let s,{pending:o,error:i,success:a}=t;o&&(s=hr(o)?oe.loading(o,n):oe.loading(o.render,{...n,...o}));const l={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},d=(u,p,g)=>{if(p==null)return void oe.dismiss(s);const N={type:u,...l,...n,data:g},x=hr(p)?{render:p}:p;return s?oe.update(s,{...N,...x}):oe(x.render,{...N,...x}),g},c=pt(e)?e():e;return c.then(u=>d("success",a,u)).catch(u=>d("error",i,u)),c},oe.success=ai("success"),oe.info=ai("info"),oe.error=ai("error"),oe.warning=ai("warning"),oe.warn=oe.warning,oe.dark=(e,t)=>Zs(e,ja("default",{theme:"dark",...t})),oe.dismiss=function(e){(function(t){var n;if(Jv()){if(t==null||hr(n=t)||bo(n))Qe.forEach(s=>{s.removeToast(t)});else if(t&&("containerId"in t||"id"in t)){const s=Qe.get(t.containerId);s?s.removeToast(t.id):Qe.forEach(o=>{o.removeToast(t.id)})}}else wo=wo.filter(s=>t!=null&&s.options.toastId!==t)})(e)},oe.clearWaitingQueue=function(e){e===void 0&&(e={}),Qe.forEach(t=>{!t.props.limit||e.containerId&&t.id!==e.containerId||t.clearQueue()})},oe.isActive=Zv,oe.update=function(e,t){t===void 0&&(t={});const n=((s,o)=>{var i;let{containerId:a}=o;return(i=Qe.get(a||1))==null?void 0:i.toasts.get(s)})(e,t);if(n){const{props:s,content:o}=n,i={delay:100,...s,...t,toastId:t.toastId||e,updateId:tg()};i.toastId!==e&&(i.staleId=e);const a=i.render||o;delete i.render,Zs(a,i)}},oe.done=e=>{oe.update(e,{progress:1})},oe.onChange=function(e){return jd.add(e),()=>{jd.delete(e)}},oe.play=e=>Sp(!0,e),oe.pause=e=>Sp(!1,e);const LC=typeof window<"u"?k.useLayoutEffect:k.useEffect,li=e=>{let{theme:t,type:n,isLoading:s,...o}=e;return I.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:t==="colored"?"currentColor":`var(--toastify-icon-color-${n})`,...o})},sc={info:function(e){return I.createElement(li,{...e},I.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(e){return I.createElement(li,{...e},I.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(e){return I.createElement(li,{...e},I.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(e){return I.createElement(li,{...e},I.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return I.createElement("div",{className:"Toastify__spinner"})}},BC=e=>{const{isRunning:t,preventExitTransition:n,toastRef:s,eventHandlers:o,playToast:i}=RC(e),{closeButton:a,children:l,autoClose:d,onClick:c,type:u,hideProgressBar:p,closeToast:g,transition:N,position:x,className:C,style:b,bodyClassName:m,bodyStyle:v,progressClassName:h,progressStyle:j,updateId:E,role:T,progress:O,rtl:_,toastId:L,deleteToast:z,isIn:H,isLoading:te,closeOnClick:Q,theme:Z}=e,D=An("Toastify__toast",`Toastify__toast-theme--${Z}`,`Toastify__toast--${u}`,{"Toastify__toast--rtl":_},{"Toastify__toast--close-on-click":Q}),U=pt(C)?C({rtl:_,position:x,type:u,defaultClassName:D}):An(D,C),G=function(B){let{theme:W,type:K,isLoading:Y,icon:ee}=B,re=null;const ne={theme:W,type:K};return ee===!1||(pt(ee)?re=ee({...ne,isLoading:Y}):k.isValidElement(ee)?re=k.cloneElement(ee,ne):Y?re=sc.spinner():(se=>se in sc)(K)&&(re=sc[K](ne))),re}(e),A=!!O||!d,R={closeToast:g,type:u,theme:Z};let M=null;return a===!1||(M=pt(a)?a(R):k.isValidElement(a)?k.cloneElement(a,R):function(B){let{closeToast:W,theme:K,ariaLabel:Y="close"}=B;return I.createElement("button",{className:`Toastify__close-button Toastify__close-button--${K}`,type:"button",onClick:ee=>{ee.stopPropagation(),W(ee)},"aria-label":Y},I.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},I.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}(R)),I.createElement(N,{isIn:H,done:z,position:x,preventExitTransition:n,nodeRef:s,playToast:i},I.createElement("div",{id:L,onClick:c,"data-in":H,className:U,...o,style:b,ref:s},I.createElement("div",{...H&&{role:T},className:pt(m)?m({type:u}):An("Toastify__toast-body",m),style:v},G!=null&&I.createElement("div",{className:An("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!te})},G),I.createElement("div",null,l)),M,I.createElement(IC,{...E&&!A?{key:`pb-${E}`}:{},rtl:_,theme:Z,delay:d,isRunning:t,isIn:H,closeToast:g,hide:p,type:u,style:j,className:h,controlledProgress:A,progress:O||0})))},el=function(e,t){return t===void 0&&(t=!1),{enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:t}},MC=Za(el("bounce",!0));Za(el("slide",!0));Za(el("zoom"));Za(el("flip"));const zC={position:"top-right",transition:MC,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};function $C(e){let t={...zC,...e};const n=e.stacked,[s,o]=k.useState(!0),i=k.useRef(null),{getToastToRender:a,isToastActive:l,count:d}=AC(t),{className:c,style:u,rtl:p,containerId:g}=t;function N(C){const b=An("Toastify__toast-container",`Toastify__toast-container--${C}`,{"Toastify__toast-container--rtl":p});return pt(c)?c({position:C,rtl:p,defaultClassName:b}):An(b,Li(c))}function x(){n&&(o(!0),oe.play())}return LC(()=>{if(n){var C;const b=i.current.querySelectorAll('[data-in="true"]'),m=12,v=(C=t.position)==null?void 0:C.includes("top");let h=0,j=0;Array.from(b).reverse().forEach((E,T)=>{const O=E;O.classList.add("Toastify__toast--stacked"),T>0&&(O.dataset.collapsed=`${s}`),O.dataset.pos||(O.dataset.pos=v?"top":"bot");const _=h*(s?.2:1)+(s?0:m*T);O.style.setProperty("--y",`${v?_:-1*_}px`),O.style.setProperty("--g",`${m}`),O.style.setProperty("--s",""+(1-(s?j:0))),h+=O.offsetHeight,j+=.025})}},[s,d,n]),I.createElement("div",{ref:i,className:"Toastify",id:g,onMouseEnter:()=>{n&&(o(!1),oe.pause())},onMouseLeave:x},a((C,b)=>{const m=b.length?{...u}:{...u,pointerEvents:"none"};return I.createElement("div",{className:N(C),style:m,key:`container-${C}`},b.map(v=>{let{content:h,props:j}=v;return I.createElement(BC,{...j,stacked:n,collapseAll:x,isIn:l(j.toastId,j.containerId),style:j.style,key:`toast-${j.key}`},h)}))}))}const tt=()=>{const e=new Date().getFullYear();return r.jsx(r.Fragment,{children:r.jsxs("div",{children:[r.jsx("div",{className:"footer_section layout_padding",children:r.jsxs("div",{className:"container",children:[r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-md-12"})}),r.jsx("div",{className:"footer_section_2",children:r.jsxs("div",{className:"row",children:[r.jsxs("div",{className:"col-md-4",children:[r.jsx("h2",{className:"useful_text",children:"QUICK LINKS"}),r.jsx("div",{className:"footer_menu",children:r.jsxs("ul",{children:[r.jsx("li",{children:r.jsx(ae,{to:"/",className:"link-primary text-decoration-none",children:"Home"})}),r.jsx("li",{children:r.jsx(ae,{to:"/about",className:"link-primary text-decoration-none",children:"About"})}),r.jsx("li",{children:r.jsx(ae,{to:"/services",className:"link-primary text-decoration-none",children:"Services"})}),r.jsx("li",{children:r.jsx(ae,{to:"/contact",className:"link-primary text-decoration-none",children:"Contact Us"})})]})})]}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("h2",{className:"useful_text",children:"Work Portfolio"}),r.jsx("p",{className:"lorem_text",children:"It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem"})]}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("h2",{className:"useful_text",children:"SIGN UP TO OUR NEWSLETTER"}),r.jsxs("div",{className:"form-group",children:[r.jsx("textarea",{className:"update_mail",placeholder:"Enter Your Email",rows:5,id:"comment",name:"Enter Your Email",defaultValue:""}),r.jsx("div",{className:"subscribe_bt",children:r.jsx("a",{href:"#",children:"Subscribe"})})]})]})]})}),r.jsx("div",{className:"social_icon",children:r.jsxs("ul",{children:[r.jsx("li",{children:r.jsx("a",{href:"#",children:r.jsx("i",{className:"fa fa-facebook","aria-hidden":"true"})})}),r.jsx("li",{children:r.jsx("a",{href:"#",children:r.jsx("i",{className:"fa fa-twitter","aria-hidden":"true"})})}),r.jsx("li",{children:r.jsx("a",{href:"#",children:r.jsx("i",{className:"fa fa-linkedin","aria-hidden":"true"})})}),r.jsx("li",{children:r.jsx("a",{href:"#",children:r.jsx("i",{className:"fa fa-instagram","aria-hidden":"true"})})})]})})]})}),r.jsx("div",{className:"copyright_section",children:r.jsx("div",{className:"container",children:r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-sm-12",children:r.jsxs("p",{className:"copyright_text",children:[e," All Rights Reserved."]})})})})})]})})},Le=()=>{var o;const{user:e}=_e(i=>({...i.auth})),t=Ke(),n=hn(),s=()=>{t(gN()),n("/")};return r.jsx("nav",{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",children:[r.jsx("div",{className:"d-flex align-items-center",children:r.jsx("p",{style:{display:"inline-block",fontStyle:"italic",fontSize:"14px",color:"white",margin:"0 0 0 10px"}})}),r.jsx("button",{className:"navbar-toggler",type:"button","data-bs-toggle":"collapse","data-bs-target":"#navbarNav","aria-controls":"navbarNav","aria-expanded":"false","aria-label":"Toggle navigation",style:{borderColor:"#fda417"},children:r.jsx("span",{className:"navbar-toggler-icon"})}),r.jsxs("div",{className:"collapse navbar-collapse justify-content-end",id:"navbarNav",children:[r.jsxs("ul",{className:"navbar-nav",children:[r.jsx("li",{className:"nav-item",children:r.jsx(ae,{to:"/",className:"nav-link",style:{color:"#fda417",fontSize:"20px",fontWeight:"normal"},children:"Home"})}),r.jsx("li",{className:"nav-item",children:r.jsx(ae,{to:"/services",className:"nav-link",style:{fontSize:"20px",fontWeight:"normal"},children:"Services"})}),r.jsx("li",{className:"nav-item",children:r.jsx(ae,{to:"/searchmyproperties",className:"nav-link",style:{color:"#fda417",fontSize:"20px",fontWeight:"normal"},children:"Search Database"})}),r.jsx("li",{className:"nav-item",children:r.jsx(ae,{to:"/about",className:"nav-link",style:{fontSize:"20px",fontWeight:"normal"},children:"About"})}),r.jsx("li",{className:"nav-item",children:r.jsx(ae,{to:"/searchproperties",className:"nav-link",style:{color:"#fda417",fontSize:"20px",fontWeight:"normal"},children:"Search Properties"})}),r.jsx("li",{className:"nav-item",children:r.jsx(ae,{to:"/contact",className:"nav-link",style:{fontSize:"20px",fontWeight:"normal"},children:"Contact"})})]}),r.jsx("div",{className:"navbar-right d-flex",children:(o=e==null?void 0:e.result)!=null&&o._id?r.jsxs(r.Fragment,{children:[r.jsx(ae,{to:"/dashboard",style:{fontWeight:"bold",color:"#fda417",marginRight:"20px"},children:"Dashboard"}),r.jsx("span",{onClick:s,style:{fontWeight:"bold",color:"#fda417",cursor:"pointer"},className:"nav-link logout-link",children:"Logout"})]}):r.jsxs(r.Fragment,{children:[r.jsx(ae,{to:"/register",className:"nav-link",style:{fontWeight:"bold",color:"#fda417",marginRight:"20px"},children:"Register"}),r.jsx(ae,{to:"/login",className:"nav-link",style:{fontWeight:"bold",color:"#fda417"},children:"Login"})]})})]})]})})},WC=()=>r.jsxs(r.Fragment,{children:[r.jsx(Le,{}),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.jsxs("div",{className:"carousel-item active",children:[r.jsx("div",{className:"slider-image-container"}),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.jsx("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.jsx("div",{className:"col-sm-12",children:r.jsx("p",{className:"services_text_1",style:{fontSize:"30px",padding:"10px",fontWeight:"bold"},children:"your documents, always and immediately within reach"})})}),r.jsx("div",{className:"services_section_2",children:r.jsxs("div",{className:"row",children:[r.jsx("div",{className:"col-lg-3 col-sm-6",children:r.jsxs("div",{className:"box_main active",children:[r.jsx("div",{className:"service_img",children:r.jsx("img",{src:"images/icon-1.png"})}),r.jsx("h4",{className:"development_text",children:"Dedication Services"}),r.jsx("p",{className:"services_text",children:"Real estate investing even on a very small scale remains a tried and true means of building and individual cash flow and wealth"}),r.jsx("div",{className:"readmore_bt",children:r.jsx("a",{href:"#",children:"Read More"})})]})}),r.jsx("div",{className:"col-lg-3 col-sm-6",children:r.jsxs("div",{className:"box_main",children:[r.jsx("div",{className:"service_img",children:r.jsx("img",{src:"images/icon-2.png"})}),r.jsx("h4",{className:"development_text",children:"Building work Reports"}),r.jsx("p",{className:"services_text",children:"Deliver all the reports your investors need. Eliminate manual work and human errors with automatic distribution and allocation"}),r.jsx("div",{className:"readmore_bt",children:r.jsx("a",{href:"#",children:"Read More"})})]})}),r.jsx("div",{className:"col-lg-3 col-sm-6",children:r.jsxs("div",{className:"box_main",children:[r.jsx("div",{className:"service_img",children:r.jsx("img",{src:"images/icon-3.png"})}),r.jsx("h4",{className:"development_text",children:"Reporting continuously"}),r.jsx("p",{className:"services_text",children:"Streamlining investor interactions, gaining complete visibility into your data, and using smart filters to create automatic workflows"}),r.jsx("div",{className:"readmore_bt",children:r.jsx("a",{href:"#",children:"Read More"})})]})}),r.jsx("div",{className:"col-lg-3 col-sm-6",children:r.jsxs("div",{className:"box_main",children:[r.jsx("div",{className:"service_img",children:r.jsx("img",{src:"images/icon-4.png"})}),r.jsx("h4",{className:"development_text",children:"Manage your investment "}),r.jsx("p",{className:"services_text",children:"We offer a comprehensive set of tools and services to fully facilitate all your real estate investment management needs"}),r.jsx("div",{className:"readmore_bt",children:r.jsx("a",{href:"#",children:"Read More"})})]})})]})})]})}),r.jsx(tt,{})]}),UC=()=>r.jsxs(r.Fragment,{children:[r.jsx(Le,{}),r.jsxs("div",{className:"about_section layout_padding",children:[r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{}),r.jsx("div",{className:"container",children:r.jsxs("div",{className:"row",children:[r.jsxs("div",{className:"col-md-6",children:[r.jsx("h1",{className:"about_taital",children:"About Us"}),r.jsxs("p",{className:"about_text",children:["There are many variations of passages of Lorem Ipsum available, but the majority have suffered alteration in some form, by injected humour, or randomised words which don't look even slightly believable. If you are going to use a passage of Lorem Ipsum, you need to be sure there isn't anything embarrassing hidden in the middle of text. All"," "]}),r.jsx("div",{className:"read_bt_1",children:r.jsx("a",{href:"#",children:"Read More"})})]}),r.jsx("div",{className:"col-md-6",children:r.jsx("div",{className:"about_img",children:r.jsx("div",{className:"video_bt",children:r.jsx("div",{className:"play_icon",children:r.jsx("img",{src:"images/play-icon.png"})})})})})]})}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{})]}),r.jsx(tt,{})]}),qC=()=>r.jsxs(r.Fragment,{children:[r.jsx(Le,{}),r.jsxs("div",{className:"contact_section layout_padding",children:[r.jsx("div",{className:"container",children:r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-md-12",children:r.jsx("h1",{className:"contact_taital",children:"Contact Us"})})})}),r.jsx("div",{className:"container-fluid",children:r.jsx("div",{className:"contact_section_2",children:r.jsxs("div",{className:"row",children:[r.jsx("div",{className:"col-md-6",children:r.jsx("form",{action:!0,children:r.jsxs("div",{className:"mail_section_1",children:[r.jsx("input",{type:"text",className:"mail_text",placeholder:"Name",name:"Name"}),r.jsx("input",{type:"text",className:"mail_text",placeholder:"Phone Number",name:"Phone Number"}),r.jsx("input",{type:"text",className:"mail_text",placeholder:"Email",name:"Email"}),r.jsx("textarea",{className:"massage-bt",placeholder:"Massage",rows:5,id:"comment",name:"Massage",defaultValue:""}),r.jsx("div",{className:"send_bt",children:r.jsx("a",{href:"#",children:"SEND"})})]})})}),r.jsx("div",{className:"col-md-6 padding_left_15",children:r.jsx("div",{className:"contact_img",children:r.jsx("img",{src:"images/contact-img.png"})})})]})})})]}),r.jsx(tt,{})]});var nn=function(){return nn=Object.assign||function(e){for(var t,n=1,s=arguments.length;n{const[e,t]=k.useState(hb),[n,s]=k.useState(!1),{loading:o,error:i}=_e(E=>({...E.auth})),{title:a,email:l,password:d,firstName:c,middleName:u,lastName:p,confirmPassword:g,termsconditions:N,userType:x}=e,C=Ke(),b=hn();k.useEffect(()=>{i&&oe.error(i)},[i]),k.useEffect(()=>{s(a!=="None"&&l&&d&&c&&u&&p&&g&&N&&x!=="")},[a,l,d,c,u,p,g,N,x]);const m=E=>{if(E.preventDefault(),d!==g)return oe.error("Password should match");n?C(Ei({formValue:e,navigate:b,toast:oe})):oe.error("Please fill in all fields and select all checkboxes")},v=E=>E.charAt(0).toUpperCase()+E.slice(1),h=E=>{const{name:T,value:O,type:_,checked:L}=E.target;t(_==="checkbox"?z=>({...z,[T]:L}):z=>({...z,[T]:T==="email"||T==="password"||T==="confirmPassword"?O:v(O)}))},j=E=>{t(T=>({...T,userType:E.target.value}))};return r.jsxs(r.Fragment,{children:[r.jsx(Le,{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("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("h6",{style:{color:"red"},children:'All fields are mandatory to enable "Sign up"'}),r.jsx("hr",{})]})})}),r.jsx("form",{onSubmit:m,children:r.jsxs("div",{className:"row gy-3 overflow-hidden",children:[r.jsx("div",{className:"col-12",children:r.jsxs("div",{className:"form-floating mb-3",children:[r.jsxs("label",{className:"form-label",children:["Please select the role. ",r.jsx("br",{}),r.jsx("br",{})]}),r.jsxs("div",{className:"form-check form-check-inline",children:[r.jsx("input",{className:"form-check-input",type:"radio",name:"userType",value:"Lender",checked:x==="Lender",onChange:j,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:j,required:!0}),r.jsxs("label",{className:"form-check-label",children:["Borrower"," "]}),r.jsx("br",{}),r.jsx("br",{})]})]})}),r.jsxs("div",{className:"col-12",children:[r.jsxs("select",{className:"form-floating mb-3 form-control","aria-label":"Default select example",name:"title",value:a,onChange:h,children:[r.jsx("option",{value:"None",children:"Please Select Title"}),r.jsx("option",{value:"Dr",children:"Dr"}),r.jsx("option",{value:"Prof",children:"Prof"}),r.jsx("option",{value:"Mr",children:"Mr"}),r.jsx("option",{value:"Miss",children:"Miss"})]}),r.jsx("br",{})]}),r.jsx("div",{className:"col-12",children:r.jsxs("div",{className:"form-floating mb-3",children:[r.jsx("input",{type:"text",className:"form-control",value:c,name:"firstName",onChange:h,placeholder:"First Name",required:"required"}),r.jsx("label",{htmlFor:"firstName",className:"form-label",children:"First Name"})]})}),r.jsx("div",{className:"col-12",children:r.jsxs("div",{className:"form-floating mb-3",children:[r.jsx("input",{type:"text",className:"form-control",value:u,name:"middleName",onChange:h,placeholder:"Middle Name",required:"required"}),r.jsx("label",{htmlFor:"middleName",className:"form-label",children:"Middle Name"})]})}),r.jsx("div",{className:"col-12",children:r.jsxs("div",{className:"form-floating mb-3",children:[r.jsx("input",{type:"text",className:"form-control",value:p,name:"lastName",onChange:h,placeholder:"Last Name",required:"required"}),r.jsx("label",{htmlFor:"lastName",className:"form-label",children:"Last Name"})]})}),r.jsx("div",{className:"col-12",children:r.jsxs("div",{className:"form-floating mb-3",children:[r.jsx("input",{type:"email",className:"form-control",value:l,name:"email",onChange:h,placeholder:"name@example.com",required:"required"}),r.jsx("label",{htmlFor:"email",className:"form-label",children:"Email"})]})}),r.jsx("div",{className:"col-12",children:r.jsxs("div",{className:"form-floating mb-3",children:[r.jsx("input",{type:"password",className:"form-control",value:d,name:"password",onChange:h,placeholder:"Password",required:"required"}),r.jsx("label",{htmlFor:"password",className:"form-label",children:"Password"})]})}),r.jsx("div",{className:"col-12",children:r.jsxs("div",{className:"form-floating mb-3",children:[r.jsx("input",{type:"password",className:"form-control",value:g,name:"confirmPassword",onChange:h,placeholder:"confirmPassword",required:"required"}),r.jsx("label",{htmlFor:"password",className:"form-label",children:"Retype Password"})]})}),r.jsx("div",{className:"col-12",children:r.jsxs("div",{className:"form-check",children:[r.jsx("input",{className:"form-check-input",type:"checkbox",id:"termsconditions",value:N,name:"termsconditions",checked:N,onChange:h,required:!0}),r.jsxs("label",{className:"form-check-label text-secondary",htmlFor:"iAgree",children:["I agree to the"," ",r.jsx("a",{href:"#!",className:"link-primary text-decoration-none",children:"terms and conditions"})]})]})}),r.jsx("div",{className:"col-12",children:r.jsx("div",{className:"d-grid",children:r.jsxs("button",{className:"btn btn-primary btn-lg",type:"submit",style:{backgroundColor:"#fda417",border:"#fda417"},disabled:!n||o,children:[o&&r.jsx(ng.Bars,{}),"Sign up"]})})})]})}),r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-12",children:r.jsx("div",{className:"d-flex gap-2 gap-md-4 flex-column flex-md-row justify-content-md-end mt-4",children:r.jsxs("p",{className:"m-0 text-secondary text-center",children:["Already have an account?"," ",r.jsx("a",{href:"#!",className:"link-primary text-decoration-none",children:"Sign in"})]})})})}),r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-12"})})]})})})]})})}),r.jsx(tt,{})]})},gb={email:"",password:""},xb=()=>{const[e,t]=k.useState(gb),{loading:n,error:s}=_e(u=>({...u.auth})),{email:o,password:i}=e,a=Ke(),l=hn();k.useEffect(()=>{s&&oe.error(s)},[s]);const d=u=>{u.preventDefault(),o&&i&&a(Si({formValue:e,navigate:l,toast:oe}))},c=u=>{let{name:p,value:g}=u.target;t({...e,[p]:g})};return r.jsxs(r.Fragment,{children:[r.jsx(Le,{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("section",{className:"py-19 py-md-5 py-xl-8",style:{minHeight:"100vh",backgroundColor:"#FFFFFF"},children:r.jsx("div",{className:"container-fluid px-0",children:r.jsxs("div",{className:"row gy-4 align-items-center justify-content-center",children:[r.jsx("div",{className:"col-12 col-md-6 col-xl-20 text-center text-md-start",children:r.jsx("div",{className:"text-bg-primary",children:r.jsxs("div",{className:"px-4",children:[r.jsx("hr",{className:"border-primary-subtle mb-4"}),r.jsx("p",{className:"lead mb-5",children:"A beautiful, easy-to-use, and secure Investor Portal that gives your investors everything they may need"}),r.jsx("div",{className:"text-endx",children:r.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:48,height:48,fill:"currentColor",className:"bi bi-grip-horizontal",viewBox:"0 0 16 16",children:r.jsx("path",{d:"M2 8a1 1 0 1 1 0 2 1 1 0 0 1 0-2zm0-3a1 1 0 1 1 0 2 1 1 0 0 1 0-2zm3 3a1 1 0 1 1 0 2 1 1 0 0 1 0-2zm0-3a1 1 0 1 1 0 2 1 1 0 0 1 0-2zm3 3a1 1 0 1 1 0 2 1 1 0 0 1 0-2zm0-3a1 1 0 1 1 0 2 1 1 0 0 1 0-2zm3 3a1 1 0 1 1 0 2 1 1 0 0 1 0-2zm0-3a1 1 0 1 1 0 2 1 1 0 0 1 0-2zm3 3a1 1 0 1 1 0 2 1 1 0 0 1 0-2zm0-3a1 1 0 1 1 0 2 1 1 0 0 1 0-2z"})})})]})})}),r.jsx("div",{className:"col-12 col-md-6 col-xl-5",children:r.jsx("div",{className:"card border-0 rounded-4 shadow-lg",style:{width:"100%"},children:r.jsxs("div",{className:"card-body p-3 p-md-4 p-xl-5",children:[r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-12",children:r.jsx("div",{className:"mb-4",children:r.jsx("h2",{className:"h3",children:"Please Login"})})})}),r.jsx("form",{method:"POST",children:r.jsxs("div",{className:"row gy-3 overflow-hidden",children:[r.jsx("div",{className:"col-12"}),r.jsx("div",{className:"col-12"}),r.jsx("div",{className:"col-12",children:r.jsxs("div",{className:"form-floating mb-3",children:[r.jsx("input",{type:"email",className:"form-control",id:"email",placeholder:"name@example.com",value:o,name:"email",onChange:c,required:!0}),r.jsx("label",{htmlFor:"email",className:"form-label",children:"Email"})]})}),r.jsx("div",{className:"col-12",children:r.jsxs("div",{className:"form-floating mb-3",children:[r.jsx("input",{type:"password",className:"form-control",id:"password",placeholder:"Password",value:i,name:"password",onChange:c,required:!0}),r.jsx("label",{htmlFor:"password",className:"form-label",children:"Password"})]})}),r.jsx("div",{className:"col-12",children:r.jsxs("div",{className:"form-check",children:[r.jsx("input",{className:"form-check-input",type:"checkbox",name:"iAgree",id:"iAgree",required:!0}),r.jsxs("label",{className:"form-check-label text-secondary",htmlFor:"iAgree",children:["Remember me"," "]})]})}),r.jsx("div",{className:"col-12",children:r.jsx("div",{className:"d-grid",children:r.jsxs("button",{className:"btn btn-primary btn-lg",type:"submit",name:"signin",value:"Sign in",onClick:d,style:{backgroundColor:"#fda417",border:"#fda417"},children:[n&&r.jsx(ng.Bars,{}),"Sign In"]})})})]})}),r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-12",children:r.jsx("div",{className:"d-flex gap-2 gap-md-4 flex-column flex-md-row justify-content-md-end mt-4",children:r.jsxs("p",{className:"m-0 text-secondary text-center",children:["Don't have an account?"," ",r.jsx(ae,{to:"/register",className:"link-primary text-decoration-none",children:"Register"}),r.jsx(ae,{to:"/forgotpassword",className:"nav-link",children:"Forgot Password"})]})})})}),r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-12"})})]})})})]})})}),r.jsx(tt,{})]})},Bs="/assets/samplepic-BM_cnzgz.jpg";var rg={exports:{}};(function(e,t){(function(n,s){e.exports=s()})(qg,function(){return function(n){function s(i){if(o[i])return o[i].exports;var a=o[i]={exports:{},id:i,loaded:!1};return n[i].call(a.exports,a,a.exports,s),a.loaded=!0,a.exports}var o={};return s.m=n,s.c=o,s.p="",s(0)}([function(n,s,o){function i(N){return N&&N.__esModule?N:{default:N}}function a(N,x){if(!(N instanceof x))throw new TypeError("Cannot call a class as a function")}function l(N,x){if(!N)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!x||typeof x!="object"&&typeof x!="function"?N:x}function d(N,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof x);N.prototype=Object.create(x&&x.prototype,{constructor:{value:N,enumerable:!1,writable:!0,configurable:!0}}),x&&(Object.setPrototypeOf?Object.setPrototypeOf(N,x):N.__proto__=x)}Object.defineProperty(s,"__esModule",{value:!0});var c=function(){function N(x,C){for(var b=0;b1)for(var E=1;E1?u-1:0),g=1;g2?p-2:0),N=2;N1){for(var Z=Array(Q),D=0;D"u"||_.$$typeof!==m)){var G=typeof j=="function"?j.displayName||j.name||"Unknown":j;L&&d(_,G),z&&c(_,G)}return h(j,L,z,H,te,N.current,_)},h.createFactory=function(j){var E=h.createElement.bind(null,j);return E.type=j,E},h.cloneAndReplaceKey=function(j,E){var T=h(j.type,E,j.ref,j._self,j._source,j._owner,j.props);return T},h.cloneElement=function(j,E,T){var O,_=g({},j.props),L=j.key,z=j.ref,H=j._self,te=j._source,Q=j._owner;if(E!=null){a(E)&&(z=E.ref,Q=N.current),l(E)&&(L=""+E.key);var Z;j.type&&j.type.defaultProps&&(Z=j.type.defaultProps);for(O in E)b.call(E,O)&&!v.hasOwnProperty(O)&&(E[O]===void 0&&Z!==void 0?_[O]=Z[O]:_[O]=E[O])}var D=arguments.length-2;if(D===1)_.children=T;else if(D>1){for(var U=Array(D),G=0;G1?c-1:0),p=1;p2?u-2:0),g=2;g.")}return O}function c(T,O){if(T._store&&!T._store.validated&&T.key==null){T._store.validated=!0;var _=j.uniqueKey||(j.uniqueKey={}),L=d(O);if(!_[L]){_[L]=!0;var z="";T&&T._owner&&T._owner!==g.current&&(z=" It was passed a child from "+T._owner.getName()+"."),i.env.NODE_ENV!=="production"&&v(!1,'Each child in an array or iterator should have a unique "key" prop.%s%s See https://fb.me/react-warning-keys for more information.%s',L,z,N.getCurrentStackAddendum(T))}}}function u(T,O){if(typeof T=="object"){if(Array.isArray(T))for(var _=0;_1?Y-1:0),re=1;re"u"||B===null)return""+B;var W=Q(B);if(W==="object"){if(B instanceof Date)return"date";if(B instanceof RegExp)return"regexp"}return W}function D(B){var W=Z(B);switch(W){case"array":case"object":return"an "+W;case"boolean":case"date":case"regexp":return"a "+W;default:return W}}function U(B){return B.constructor&&B.constructor.name?B.constructor.name:R}var G=typeof Symbol=="function"&&Symbol.iterator,A="@@iterator",R="<>",M={array:m("array"),bool:m("boolean"),func:m("function"),number:m("number"),object:m("object"),string:m("string"),symbol:m("symbol"),any:v(),arrayOf:h,element:j(),instanceOf:E,node:L(),objectOf:O,oneOf:T,oneOfType:_,shape:z};return C.prototype=Error.prototype,M.checkPropTypes=u,M.PropTypes=M,M}}).call(s,o(1))},function(n,s){function o(l){var d=/[=:]/g,c={"=":"=0",":":"=2"},u=(""+l).replace(d,function(p){return c[p]});return"$"+u}function i(l){var d=/(=0|=2)/g,c={"=0":"=","=2":":"},u=l[0]==="."&&l[1]==="$"?l.substring(2):l.substring(1);return(""+u).replace(d,function(p){return c[p]})}var a={escape:o,unescape:i};n.exports=a},function(n,s,o){(function(i){var a=o(5),l=o(2),d=function(m){var v=this;if(v.instancePool.length){var h=v.instancePool.pop();return v.call(h,m),h}return new v(m)},c=function(m,v){var h=this;if(h.instancePool.length){var j=h.instancePool.pop();return h.call(j,m,v),j}return new h(m,v)},u=function(m,v,h){var j=this;if(j.instancePool.length){var E=j.instancePool.pop();return j.call(E,m,v,h),E}return new j(m,v,h)},p=function(m,v,h,j){var E=this;if(E.instancePool.length){var T=E.instancePool.pop();return E.call(T,m,v,h,j),T}return new E(m,v,h,j)},g=function(m){var v=this;m instanceof v||(i.env.NODE_ENV!=="production"?l(!1,"Trying to release an instance into a pool of a different type."):a("25")),m.destructor(),v.instancePool.length{const[e,t]=S.useState("propertydetails"),n=()=>{e==="propertydetails"&&t("Images"),e==="Images"&&t("Accounting"),e==="Accounting"&&t("IAB"),e==="IAB"&&t("IAB")},s=()=>{e==="Images"&&t("propertydetails"),e==="Accounting"&&t("Images"),e==="IAB"&&t("Accounting")},o=Ke(),{status:i,error:a}=_e(f=>f.property),{user:l}=_e(f=>({...f.auth})),d=[1,2,3,4,5,6,7,8,9,10],[c,u]=S.useState({propertyTaxInfo:[{propertytaxowned:"0",ownedyear:"0",taxassessed:"0",taxyear:"0"}],images:[{title:"",file:""}],googleMapLink:"",renovationRisk:null,purchaseCost:"0",costPaidAtoB:[{title:"Closing Fees - Settlement Fee",price:"0"},{title:"Closing Fees - Owner's Title Insurance",price:"0"},{title:"Courier Fees",price:"0"},{title:"Wire Fee",price:"0"},{title:"E recording Fee",price:"0"},{title:"Recording Fee",price:"0"},{title:"Property Tax",price:"0"}],credits:[{title:"Credits",price:"0"}],cashAdjustments:[{title:"Cash Adjustments",price:"0"}],incidentalCost:[{title:"Accounting Fees",price:"0"},{title:"Bank Charges",price:"0"},{title:"Legal Fees",price:"0"},{title:"Property Taxes",price:"0"},{title:"Travel Expenses",price:"0"}],carryCosts:[{title:"Electricity",price:"0"},{title:"Water and Sewer",price:"0"},{title:"Natural Gas",price:"0"},{title:"Trash and Recycling",price:"0"},{title:"Internet and Cable",price:"0"},{title:"Heating Oil/Propane",price:"0"},{title:"HOA fees",price:"0"},{title:"Dump fees",price:"0"},{title:"Insurance",price:"0"},{title:"Interest on Loans",price:"0"},{title:"Loan Payment",price:"0"},{title:"Property Taxes",price:"0"},{title:"Security",price:"0"},{title:"Real Estates fees",price:"0"}],renovationCost:[{title:"Demolition: Removing existing structures or finishes",price:"0"},{title:"Framing: Making structural changes or additions",price:"0"},{title:"Plumbing: Installing or modifying plumbing systems",price:"0"},{title:"Electrical: Updating wiring and fixtures",price:"0"},{title:"HVAC: Installing or upgrading heating and cooling systems",price:"0"},{title:"Insulation: Adding or replacing insulation",price:"0"},{title:"Drywall: Hanging and finishing drywall",price:"0"},{title:"Interior Finishes: Painting, flooring, cabinetry, and fixtures",price:"0"},{title:"Exterior Work: Addressing siding, roofing, or landscaping, if applicable",price:"0"},{title:"Final Inspections: Ensuring everything meets codes",price:"0"},{title:"Punch List: Completing any remaining task",price:"0"}],sellingPriceBtoC:"0",costPaidOutofClosing:[{title:"Buyers Agent Commission",price:"0"},{title:"Sellers Agent Commission",price:"0"},{title:"Home Warranty",price:"0"},{title:"Document Preparation",price:"0"},{title:"Excise Tax",price:"0"},{title:"Legal Fees",price:"0"},{title:"Wire Fees/courier Fees",price:"0"},{title:"County Taxes",price:"0"},{title:"HOA Fee",price:"0"},{title:"Payoff of 1st Mortgage",price:"0"},{title:"Payoff of 2nd Mortgage",price:"0"},{title:"Payoff 3rd Mortgage",price:"0"}],adjustments:[{title:"adjustments",price:"0"}],incomestatement:[{title:"income statement",price:"0"},{title:"income statement",price:"0"}],fundspriortoclosing:"0",shorttermrental:"0",OtherIncome:"0",InsuranceClaim:"0",LongTermRental:"0",FinancingCostClosingCost:"0",IAB:[{title:"IAB Title",URL:"Please enter URL"}],files:[{title:"",file:""}]}),[p,g]=S.useState(!1),N=(f,y)=>{console.log("File received:",f);const w=[...c.images];w[y].file=f.base64,u({...c,images:w})},x=()=>{u({...c,images:[...c.images,{title:"",file:""}]})},C=f=>{const y=c.images.filter((w,F)=>F!==f);u({...c,images:y})},b=(f,y)=>{const w=[...c.images];w[f].title=y.target.value,u({...c,images:w})},m=(f,y,w)=>{const{name:F,value:q}=f.target;if(w==="propertyTaxInfo"){const X=[...c.propertyTaxInfo];X[y][F]=q,u({...c,propertyTaxInfo:X})}else u({...c,[F]:q})},v=()=>{u({...c,propertyTaxInfo:[...c.propertyTaxInfo,{propertytaxowned:"",ownedyear:"",taxassessed:"",taxyear:""}]})},h=f=>{const y=c.propertyTaxInfo.filter((w,F)=>F!==f);u({...c,propertyTaxInfo:y})},j=()=>{u(f=>({...f,costPaidAtoB:[...f.costPaidAtoB,{title:"",price:""}]}))},E=f=>{const y=c.costPaidAtoB.filter((w,F)=>F!==f);u(w=>({...w,costPaidAtoB:y}))},T=(f,y,w)=>{const F=[...c.costPaidAtoB];F[f][y]=w,u(q=>({...q,costPaidAtoB:F}))},O=(f,y)=>{let w=f.target.value;if(w=w.replace(/^\$/,"").trim(),/^\d*\.?\d*$/.test(w)||w===""){const q=c.costPaidAtoB.map((X,ce)=>ce===y?{...X,price:w,isInvalid:!1}:X);u({...c,costPaidAtoB:q})}else{const q=c.costPaidAtoB.map((X,ce)=>ce===y?{...X,isInvalid:!0}:X);u({...c,costPaidAtoB:q})}},_=()=>{const f=c.costPaidAtoB.reduce((w,F)=>{const q=parseFloat(F.price)||0;return w+q},0),y=parseFloat(c.purchaseCost)||0;return f+y},L=()=>{u(f=>({...f,credits:[...f.credits,{title:"",price:""}]}))},z=f=>{const y=c.credits.filter((w,F)=>F!==f);u(w=>({...w,credits:y}))},H=(f,y,w)=>{const F=[...c.credits];F[f][y]=w,u(q=>({...q,credits:F}))},te=(f,y)=>{const w=f.target.value;if(/^\d*\.?\d*$/.test(w)||w===""){const q=c.credits.map((X,ce)=>ce===y?{...X,price:w,isInvalid:!1}:X);u({...c,credits:q})}else{const q=c.credits.map((X,ce)=>ce===y?{...X,isInvalid:!0}:X);u({...c,credits:q})}},Q=()=>c.credits.reduce((f,y)=>{const w=parseFloat(y.price);return f+(isNaN(w)?0:w)},0),Z=()=>{const f=c.costPaidAtoB.reduce((F,q)=>{const X=parseFloat(q.price)||0;return F+X},0),y=c.credits.reduce((F,q)=>{const X=parseFloat(q.price)||0;return F+X},0),w=parseFloat(c.purchaseCost)||0;return f+y+w},D=()=>{u(f=>({...f,cashAdjustments:[...f.cashAdjustments,{title:"",price:""}]}))},U=f=>{const y=c.cashAdjustments.filter((w,F)=>F!==f);u(w=>({...w,cashAdjustments:y}))},G=(f,y,w)=>{const F=[...c.cashAdjustments];F[f][y]=w,u(q=>({...q,cashAdjustments:F}))},A=(f,y)=>{const w=f.target.value;if(/^\d*\.?\d*$/.test(w)||w===""){const q=c.cashAdjustments.map((X,ce)=>ce===y?{...X,price:w,isInvalid:!1}:X);u({...c,cashAdjustments:q})}else{const q=c.cashAdjustments.map((X,ce)=>ce===y?{...X,isInvalid:!0}:X);u({...c,cashAdjustments:q})}},R=()=>c.cashAdjustments.reduce((f,y)=>{const w=parseFloat(y.price);return f+(isNaN(w)?0:w)},0),M=()=>{const f=R(),y=Q(),w=_();return f+y+w},B=()=>{u(f=>({...f,incidentalCost:[...f.incidentalCost,{title:"",price:""}]}))},W=f=>{const y=c.incidentalCost.filter((w,F)=>F!==f);u(w=>({...w,incidentalCost:y}))},K=(f,y,w)=>{const F=[...c.incidentalCost];F[f][y]=w,u(q=>({...q,incidentalCost:F}))},Y=(f,y)=>{const w=f.target.value;if(/^\d*\.?\d*$/.test(w)||w===""){const q=c.incidentalCost.map((X,ce)=>ce===y?{...X,price:w,isInvalid:!1}:X);u({...c,incidentalCost:q})}else{const q=c.incidentalCost.map((X,ce)=>ce===y?{...X,isInvalid:!0}:X);u({...c,incidentalCost:q})}},ee=()=>c.incidentalCost.reduce((f,y)=>{const w=parseFloat(y.price);return f+(isNaN(w)?0:w)},0),re=()=>{u(f=>({...f,carryCosts:[...f.carryCosts,{title:"",price:""}]}))},ne=f=>{const y=c.carryCosts.filter((w,F)=>F!==f);u(w=>({...w,carryCosts:y}))},se=(f,y,w)=>{const F=[...c.carryCosts];F[f][y]=w,u(q=>({...q,carryCosts:F}))},le=(f,y)=>{const w=f.target.value;if(/^\d*\.?\d*$/.test(w)||w===""){const q=c.carryCosts.map((X,ce)=>ce===y?{...X,price:w,isInvalid:!1}:X);u({...c,carryCosts:q})}else{const q=c.carryCosts.map((X,ce)=>ce===y?{...X,isInvalid:!0}:X);u({...c,carryCosts:q})}},de=()=>c.carryCosts.reduce((f,y)=>{const w=parseFloat(y.price);return f+(isNaN(w)?0:w)},0),ge=()=>{u(f=>({...f,renovationCost:[...f.renovationCost,{title:"",price:""}]}))},Be=f=>{const y=c.renovationCost.filter((w,F)=>F!==f);u(w=>({...w,renovationCost:y}))},Ct=(f,y,w)=>{const F=[...c.renovationCost];F[f][y]=w,u(q=>({...q,renovationCost:F}))},zt=(f,y)=>{const w=f.target.value;if(/^\d*\.?\d*$/.test(w)||w===""){const q=c.renovationCost.map((X,ce)=>ce===y?{...X,price:w,isInvalid:!1}:X);u({...c,renovationCost:q})}else{const q=c.renovationCost.map((X,ce)=>ce===y?{...X,isInvalid:!0}:X);u({...c,renovationCost:q})}},he=()=>c.renovationCost.reduce((f,y)=>{const w=parseFloat(y.price);return f+(isNaN(w)?0:w)},0),$t=()=>{const f=ee(),y=de(),w=he();return f+y+w},Ye=()=>{const f=$t(),y=M();return f+y},Qn=()=>{u(f=>({...f,costPaidOutofClosing:[...f.costPaidOutofClosing,{title:"",price:""}]}))},Zt=f=>{const y=c.costPaidOutofClosing.filter((w,F)=>F!==f);u(w=>({...w,costPaidOutofClosing:y}))},ys=(f,y,w)=>{const F=[...c.costPaidOutofClosing];F[f][y]=w,u(q=>({...q,costPaidOutofClosing:F}))},js=(f,y)=>{const w=f.target.value;if(/^\d*\.?\d*$/.test(w)||w===""){const q=c.costPaidOutofClosing.map((X,ce)=>ce===y?{...X,price:w,isInvalid:!1}:X);u({...c,costPaidOutofClosing:q})}else{const q=c.costPaidOutofClosing.map((X,ce)=>ce===y?{...X,isInvalid:!0}:X);u({...c,costPaidOutofClosing:q})}},Xn=()=>c.costPaidOutofClosing.reduce((f,y)=>{const w=parseFloat(y.price);return f+(isNaN(w)?0:w)},0),Wt=()=>{const f=c.sellingPriceBtoC,y=Xn();return f-y},gn=()=>{u(f=>({...f,adjustments:[...f.adjustments,{title:"",price:""}]}))},Ut=f=>{const y=c.adjustments.filter((w,F)=>F!==f);u(w=>({...w,adjustments:y}))},fe=(f,y,w)=>{const F=[...c.adjustments];F[f][y]=w,u(q=>({...q,adjustments:F}))},qt=(f,y)=>{const w=f.target.value;if(/^\d*\.?\d*$/.test(w)||w===""){const q=c.adjustments.map((X,ce)=>ce===y?{...X,price:w,isInvalid:!1}:X);u({...c,adjustments:q})}else{const q=c.adjustments.map((X,ce)=>ce===y?{...X,isInvalid:!0}:X);u({...c,adjustments:q})}},xn=()=>c.adjustments.reduce((f,y)=>{const w=parseFloat(y.price);return f+(isNaN(w)?0:w)},0),Bo=()=>{const f=Wt(),y=xn();return f+y},Ns=()=>{u(f=>({...f,incomestatement:[...f.incomestatement,{title:"",price:""}]}))},Mo=f=>{const y=c.incomestatement.filter((w,F)=>F!==f);u(w=>({...w,incomestatement:y}))},sl=(f,y,w)=>{const F=[...c.incomestatement];F[f][y]=w,u(q=>({...q,incomestatement:F}))},ol=(f,y)=>{const w=f.target.value;if(/^\d*\.?\d*$/.test(w)||w===""){const q=c.incomestatement.map((X,ce)=>ce===y?{...X,price:w,isInvalid:!1}:X);u({...c,incomestatement:q})}else{const q=c.incomestatement.map((X,ce)=>ce===y?{...X,isInvalid:!0}:X);u({...c,incomestatement:q})}},Cs=()=>c.incomestatement.reduce((f,y)=>{const w=parseFloat(y.price);return f+(isNaN(w)?0:w)},0),Jn=()=>{const f=Cs(),y=Wt();return f+y},Zn=()=>{const f=isNaN(parseFloat(Jn()))?0:parseFloat(Jn()),y=isNaN(parseFloat(c.shorttermrental))?0:parseFloat(c.shorttermrental),w=isNaN(parseFloat(c.OtherIncome))?0:parseFloat(c.OtherIncome),F=isNaN(parseFloat(c.InsuranceClaim))?0:parseFloat(c.InsuranceClaim),q=isNaN(parseFloat(c.LongTermRental))?0:parseFloat(c.LongTermRental),X=isNaN(parseFloat(Ye()))?0:parseFloat(Ye());return f+y+w+F+q-X},en=()=>{const f=Zn(),y=c.FinancingCostClosingCost;return f-y},Er=()=>en(),bs=()=>{var f,y,w,F,q,X;if(c.address&&c.city&&c.state&&c.county&&c.zip&&c.parcel&&c.subdivision&&c.legal&&c.costpersqft&&c.propertyType&&c.lotacres&&c.yearBuild&&c.totallivingsqft&&c.beds&&c.baths&&c.stories&&c.garage&&c.garagesqft&&c.poolspa&&c.fireplaces&&c.ac&&c.heating&&c.buildingstyle&&c.sitevacant&&c.extwall&&c.roofing&&c.totalSqft&&c.renovationRisk&&c.closeDateAtoB&&c.closeDateBtoC&&c.purchaseCost&&c.sellingPriceBtoC&&c.fundspriortoclosing&&c.shorttermrental&&c.OtherIncome&&c.InsuranceClaim&&c.LongTermRental&&c.FinancingCostClosingCost){const ce=Er(),Wo=_(),cl=Z(),dl=R(),ul=ee(),fl=Q(),pl=M(),ml=de(),hl=he(),vl=$t(),gl=Ye(),xl=Xn(),yl=xn(),Ig=Bo(),Fg=Wt(),Dg=Wt(),Lg=Cs(),Bg=Jn(),Mg=Zn(),zg=en(),jl={...c,userfirstname:(f=l==null?void 0:l.result)==null?void 0:f.firstName,usermiddlename:(y=l==null?void 0:l.result)==null?void 0:y.middleName,userlastname:(w=l==null?void 0:l.result)==null?void 0:w.lastName,usertitle:(F=l==null?void 0:l.result)==null?void 0:F.title,useremail:(q=l==null?void 0:l.result)==null?void 0:q.email,userId:(X=l==null?void 0:l.result)==null?void 0:X.userId,totalPurchaseCosts:Wo,totalcredits:fl,totalPurchaseCostsaftercredits:cl,totalcashAdjustments:dl,totalcashrequiredonsettlement:pl,totalincidentalCost:ul,totalcarryCosts:ml,totalrenovationCost:hl,totalRenovationsandHoldingCost:vl,totalCoststoBuyAtoB:gl,totalcostPaidOutofClosing:xl,totaladjustments:yl,fundsavailablefordistribution:Ig,grossproceedsperHUD:Fg,totalCosttoSellBtoC:Dg,totalincomestatement:Lg,netBtoCsalevalue:Bg,netprofitbeforefinancingcosts:Mg,NetProfit:zg,rateofreturn:ce};Array.isArray(c.propertyTaxInfo)&&c.propertyTaxInfo.length>0?jl.propertyTaxInfo=c.propertyTaxInfo:jl.propertyTaxInfo=[],o(Ai(jl)),g(!0)}else oe.error("Please fill all fields before submitting",{position:"top-right",autoClose:3e3})};S.useEffect(()=>{p&&(i==="succeeded"?(oe.success("Property submitted successfully!",{position:"top-right",autoClose:3e3}),g(!1)):i==="failed"&&(oe.error(`Failed to submit: ${a}`,{position:"top-right",autoClose:3e3}),g(!1)))},[i,a,p]);const[il,zo]=S.useState("0 days"),$o=(f,y)=>{if(f&&y){const w=new Date(f),F=new Date(y),q=Math.abs(F-w),X=Math.ceil(q/(1e3*60*60*24));zo(`${X} days`)}else zo("0 days")},al=()=>{u(f=>({...f,IAB:[...f.IAB,{title:"",URL:""}]}))},ll=f=>{const y=c.IAB.filter((w,F)=>F!==f);u(w=>({...w,IAB:y}))},k=(f,y,w)=>{const F=[...c.IAB];F[f][y]=w,u(q=>({...q,IAB:F}))},P=(f,y,w)=>{const F=[...c.IAB];F[f][y]=w,u(q=>({...q,IAB:F}))};return r.jsx(r.Fragment,{children:r.jsxs("div",{className:"container tabs-wrap",children:[r.jsx(Le,{}),r.jsxs("ul",{className:"nav nav-tabs",role:"tablist",children:[r.jsx("li",{role:"presentation",className:e==="propertydetails"?"active tab":"tab",children:r.jsx("a",{onClick:()=>t("propertydetails"),role:"tab",children:"Property Details"})}),r.jsx("li",{role:"presentation",className:e==="Images"?"active tab":"tab",children:r.jsx("a",{onClick:()=>t("Images"),role:"tab",children:"Images, Maps"})}),r.jsx("li",{role:"presentation",className:e==="Accounting"?"active tab":"tab",children:r.jsx("a",{onClick:()=>t("Accounting"),role:"tab",children:"Accounting"})}),r.jsx("li",{role:"presentation",className:e==="IAB"?"active tab":"tab",children:r.jsx("a",{onClick:()=>t("IAB"),role:"tab",children:"IAB Verified Report"})})]}),r.jsxs("div",{className:"tab-content",children:[e==="propertydetails"&&r.jsxs("div",{role:"tabpanel",className:"card tab-pane active",children:[r.jsxs("form",{children:[r.jsx("h3",{style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:"Property Location"}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Property Address",r.jsx("input",{type:"text",className:"form-control",name:"address",value:c.address,onChange:m,required:!0})]})}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["City",r.jsx("input",{type:"text",className:"form-control",name:"city",value:c.city,onChange:m,required:!0})]})}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["State",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"state",value:c.state,onChange:m,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"Alaska",children:"Alaska"}),r.jsx("option",{value:"Alabama",children:"Alabama"}),r.jsx("option",{value:"Arkansas",children:"Arkansas"}),r.jsx("option",{value:"Arizona",children:"Arizona"}),r.jsx("option",{value:"California",children:"California"}),r.jsx("option",{value:"Colorado",children:"Colorado"}),r.jsx("option",{value:"Connecticut",children:"Connecticut"}),r.jsx("option",{value:"District Of Columbia",children:"District Of Columbia"}),r.jsx("option",{value:"Delaware",children:"Delaware"}),r.jsx("option",{value:"Florida",children:"Florida"}),r.jsx("option",{value:"Georgia",children:"Georgia"}),r.jsx("option",{value:"Hawaii",children:"Hawaii"}),r.jsx("option",{value:"Iowa",children:"Iowa"}),r.jsx("option",{value:"Idaho",children:"Idaho"}),r.jsx("option",{value:"Illinois",children:"Illinois"}),r.jsx("option",{value:"Indiana",children:"Indiana"}),r.jsx("option",{value:"Kansas",children:"Kansas"}),r.jsx("option",{value:"Kentucky",children:"Kentucky"}),r.jsx("option",{value:"Louisiana",children:"Louisiana"}),r.jsx("option",{value:"Massachusetts",children:"Massachusetts"}),r.jsx("option",{value:"Maryland",children:"Maryland"}),r.jsx("option",{value:"Michigan",children:"Michigan"}),r.jsx("option",{value:"Minnesota",children:"Minnesota"}),r.jsx("option",{value:"Missouri",children:"Missouri"}),r.jsx("option",{value:"Mississippi",children:"Mississippi"}),r.jsx("option",{value:"Montana",children:"Montana"}),r.jsx("option",{value:"North Carolina",children:"North Carolina"}),r.jsx("option",{value:"North Dakota",children:"North Dakota"}),r.jsx("option",{value:"Nebraska",children:"Nebraska"}),r.jsx("option",{value:"New Hampshire",children:"New Hampshire"}),r.jsx("option",{value:"New Jersey",children:"New Jersey"}),r.jsx("option",{value:"New Mexico",children:"New Mexico"}),r.jsx("option",{value:"Nevada",children:"Nevada"}),r.jsx("option",{value:"New York",children:"New York"}),r.jsx("option",{value:"Ohio",children:"Ohio"}),r.jsx("option",{value:"Oklahoma",children:"Oklahoma"}),r.jsx("option",{value:"Oregon",children:"Oregon"}),r.jsx("option",{value:"Pennsylvania",children:"Pennsylvania"}),r.jsx("option",{value:"Rhode Island",children:"Rhode Island"}),r.jsx("option",{value:"South Carolina",children:"South Carolina"}),r.jsx("option",{value:"South Dakota",children:"South Dakota"}),r.jsx("option",{value:"Tennessee",children:"Tennessee"}),r.jsx("option",{value:"Texas",children:"Texas"}),r.jsx("option",{value:"Texas",children:"Travis"}),r.jsx("option",{value:"Utah",children:"Utah"}),r.jsx("option",{value:"Virginia",children:"Virginia"}),r.jsx("option",{value:"Vermont",children:"Vermont"}),r.jsx("option",{value:"Washington",children:"Washington"}),r.jsx("option",{value:"Wisconsin",children:"Wisconsin"}),r.jsx("option",{value:"West Virginia",children:"West Virginia"}),r.jsx("option",{value:"Wyoming",children:"Wyoming"})]})]})})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsxs("div",{className:"col-md-4",children:["County",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"county",value:c.county,onChange:m,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"Abbeville",children:"Abbeville"}),r.jsx("option",{value:"Aiken",children:"Aiken"}),r.jsx("option",{value:"Allendale",children:"Allendale"}),r.jsx("option",{value:"Anderson",children:"Anderson"}),r.jsx("option",{value:"Bamberg",children:"Bamberg"}),r.jsx("option",{value:"Barnwell",children:"Barnwell"}),r.jsx("option",{value:"Beaufort",children:"Beaufort"}),r.jsx("option",{value:"Berkeley",children:"Berkeley"}),r.jsx("option",{value:"Calhoun",children:"Calhoun"}),r.jsx("option",{value:"Charleston",children:"Charleston"}),r.jsx("option",{value:"Cherokee",children:"Cherokee"}),r.jsx("option",{value:"Chester",children:"Chester"}),r.jsx("option",{value:"Chesterfield",children:"Chesterfield"}),r.jsx("option",{value:"Clarendon",children:"Clarendon"}),r.jsx("option",{value:"Colleton",children:"Colleton"}),r.jsx("option",{value:"Darlington",children:"Darlington"}),r.jsx("option",{value:"Dillon",children:"Dillon"}),r.jsx("option",{value:"Dorchester",children:"Dorchester"}),r.jsx("option",{value:"Edgefield",children:"Edgefield"}),r.jsx("option",{value:"Fairfield",children:"Fairfield"}),r.jsx("option",{value:"Florence",children:"Florence"}),r.jsx("option",{value:"Georgetown",children:"Georgetown"}),r.jsx("option",{value:"Greenville",children:"Greenville"}),r.jsx("option",{value:"Greenwood",children:"Greenwood"}),r.jsx("option",{value:"Hampton",children:"Hampton"}),r.jsx("option",{value:"Horry",children:"Horry"}),r.jsx("option",{value:"Jasper",children:"Jasper"}),r.jsx("option",{value:"Kershaw",children:"Kershaw"}),r.jsx("option",{value:"Lancaster",children:"Lancaster"}),r.jsx("option",{value:"Laurens",children:"Laurens"}),r.jsx("option",{value:"Lee",children:"Lee"}),r.jsx("option",{value:"Lexington",children:"Lexington"}),r.jsx("option",{value:"Marion",children:"Marion"}),r.jsx("option",{value:"Marlboro",children:"Marlboro"}),r.jsx("option",{value:"McCormick",children:"McCormick"}),r.jsx("option",{value:"Newberry",children:"Newberry"}),r.jsx("option",{value:"Oconee",children:"Oconee"}),r.jsx("option",{value:"Orangeburg",children:"Orangeburg"}),r.jsx("option",{value:"Pickens",children:"Pickens"}),r.jsx("option",{value:"Richland",children:"Richland"}),r.jsx("option",{value:"Saluda",children:"Saluda"}),r.jsx("option",{value:"Spartanburg",children:"Spartanburg"}),r.jsx("option",{value:"Sumter",children:"Sumter"}),r.jsx("option",{value:"Union",children:"Union"}),r.jsx("option",{value:"Williamsburg",children:"Williamsburg"}),r.jsx("option",{value:"York",children:"York"})]})]}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Zip",r.jsx("input",{type:"text",className:"form-control",name:"zip",value:c.zip,onChange:m,required:!0})]})}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Parcel",r.jsx("input",{type:"text",className:"form-control",name:"parcel",value:c.parcel,onChange:m,required:!0})]})})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Sub division",r.jsx("input",{type:"text",className:"form-control",name:"subdivision",value:c.subdivision,onChange:m,required:!0})]})}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Legal Description",r.jsx("textarea",{type:"text",className:"form-control",name:"legal",value:c.legal,onChange:m,required:!0})]})}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Cost per SQFT",r.jsx("input",{type:"text",className:"form-control",name:"costpersqft",value:c.costpersqft,onChange:m,required:!0})]})})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsxs("div",{className:"col-md-4",children:["Property Type",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"propertyType",value:c.propertyType,onChange:m,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"Residential",children:"Residential"}),r.jsx("option",{value:"Land",children:"Land"}),r.jsx("option",{value:"Commercial",children:"Commercial"}),r.jsx("option",{value:"Industrial",children:"Industrial"}),r.jsx("option",{value:"Water",children:"Water"})]})]}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Lot Acres/Sqft",r.jsx("input",{type:"text",className:"form-control",name:"lotacres",value:c.lotacres,onChange:m,required:!0})]})}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Year Build",r.jsx("input",{type:"text",className:"form-control",name:"yearBuild",value:c.yearBuild,onChange:m,required:!0})]})})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Total Living SQFT",r.jsx("input",{type:"text",className:"form-control",name:"totallivingsqft",value:c.totallivingsqft,onChange:m,required:!0})]})}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Beds",r.jsx("input",{type:"text",className:"form-control",name:"beds",value:c.beds,onChange:m,required:!0})]})}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Baths",r.jsx("input",{type:"text",className:"form-control",name:"baths",value:c.baths,onChange:m,required:!0})]})})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsxs("div",{className:"col-md-4",children:["Stories",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"stories",value:c.stories,onChange:m,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"0",children:"0"}),r.jsx("option",{value:"1",children:"1"}),r.jsx("option",{value:"2",children:"2"}),r.jsx("option",{value:"3",children:"3"}),r.jsx("option",{value:"4",children:"4"}),r.jsx("option",{value:"5",children:"5"}),r.jsx("option",{value:"6",children:"6"}),r.jsx("option",{value:"7",children:"7"}),r.jsx("option",{value:"8",children:"8"}),r.jsx("option",{value:"9",children:"9"}),r.jsx("option",{value:"10",children:"10"})]})]}),r.jsxs("div",{className:"col-md-4",children:["Garage",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"garage",value:c.garage,onChange:m,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"0",children:"0"}),r.jsx("option",{value:"1",children:"1"}),r.jsx("option",{value:"2",children:"2"}),r.jsx("option",{value:"3",children:"3"}),r.jsx("option",{value:"4",children:"4"}),r.jsx("option",{value:"5",children:"5"})]})]}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Garage SQFT",r.jsx("input",{type:"text",className:"form-control",name:"garagesqft",value:c.garagesqft,onChange:m,required:!0})]})})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsxs("div",{className:"col-md-4",children:["Pool/SPA",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"poolspa",value:c.poolspa,onChange:m,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"N/A",children:"N/A"}),r.jsx("option",{value:"Yes- Pool Only",children:"Yes- Pool Only"}),r.jsx("option",{value:"Yes- SPA only",children:"Yes- SPA only"}),r.jsx("option",{value:"Yes - Both Pool and SPA",children:"Yes - Both Pool and SPA"}),r.jsx("option",{value:"4",children:"None"})]})]}),r.jsxs("div",{className:"col-md-4",children:["Fire places",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"fireplaces",value:c.fireplaces,onChange:m,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"N/A",children:"N/A"}),r.jsx("option",{value:"yes",children:"Yes"}),r.jsx("option",{value:"no",children:"No"})]})]}),r.jsxs("div",{className:"col-md-4",children:["A/C",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"ac",value:c.ac,onChange:m,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"N/A",children:"N/A"}),r.jsx("option",{value:"Central",children:"Central"}),r.jsx("option",{value:"Heat Pump",children:"Heat Pump"}),r.jsx("option",{value:"Warm Air",children:"Warm Air"}),r.jsx("option",{value:"Forced Air",children:"Forced Air"}),r.jsx("option",{value:"Gas",children:"Gas"})]})]})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsxs("div",{className:"col-md-4",children:["Heating",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"heating",value:c.heating,onChange:m,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"N/A",children:"N/A"}),r.jsx("option",{value:"Central",children:"Central"}),r.jsx("option",{value:"Heat Pump",children:"Heat Pump"}),r.jsx("option",{value:"Warm Air",children:"Warm Air"}),r.jsx("option",{value:"Forced Air",children:"Forced Air"}),r.jsx("option",{value:"Gas",children:"Gas"})]})]}),r.jsxs("div",{className:"col-md-4",children:["Building Style",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"buildingstyle",value:c.buildingstyle,onChange:m,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"One Story",children:"One Story"}),r.jsx("option",{value:"Craftsman",children:"Craftsman"}),r.jsx("option",{value:"Log/Cabin",children:"Log/Cabin"}),r.jsx("option",{value:"Split-Level",children:"Split-Level"}),r.jsx("option",{value:"Split-Foyer",children:"Split-Foyer"}),r.jsx("option",{value:"Stick Built",children:"Stick Built"}),r.jsx("option",{value:"Single wide",children:"Single wide"}),r.jsx("option",{value:"Double wide",children:"Double wide"}),r.jsx("option",{value:"Duplex",children:"Duplex"}),r.jsx("option",{value:"Triplex",children:"Triplex"}),r.jsx("option",{value:"Quadruplex",children:"Quadruplex"}),r.jsx("option",{value:"Two Story",children:"Two Story"}),r.jsx("option",{value:"Victorian",children:"Victorian"}),r.jsx("option",{value:"Tudor",children:"Tudor"}),r.jsx("option",{value:"Modern",children:"Modern"}),r.jsx("option",{value:"Art Deco",children:"Art Deco"}),r.jsx("option",{value:"Bungalow",children:"Bungalow"}),r.jsx("option",{value:"Mansion",children:"Mansion"}),r.jsx("option",{value:"Farmhouse",children:"Farmhouse"}),r.jsx("option",{value:"Conventional",children:"Conventional"}),r.jsx("option",{value:"Ranch",children:"Ranch"}),r.jsx("option",{value:"Ranch with Basement",children:"Ranch with Basement"}),r.jsx("option",{value:"Cape Cod",children:"Cape Cod"}),r.jsx("option",{value:"Contemporary",children:"Contemporary"}),r.jsx("option",{value:"Colonial",children:"Colonial"}),r.jsx("option",{value:"Mediterranean",children:"Mediterranean"})]})]}),r.jsxs("div",{className:"col-md-4",children:["Site Vacant",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"sitevacant",value:c.sitevacant,onChange:m,required:!0,children:[r.jsx("option",{value:"",children:"Please select"}),r.jsx("option",{value:"Yes",children:"Yes"}),r.jsx("option",{value:"No",children:"No"})]})]})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsxs("div",{className:"col-md-4",children:["Ext Wall",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"extwall",value:c.extwall,onChange:m,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"N/A",children:"N/A"}),r.jsx("option",{value:"Brick",children:"Brick"}),r.jsx("option",{value:"Brick/Vinyl Siding",children:"Brick/Vinyl Siding"}),r.jsx("option",{value:"Wood/Vinyl Siding",children:"Wood/Vinyl Siding"}),r.jsx("option",{value:"Brick/Wood Siding",children:"Brick/Wood Siding"}),r.jsx("option",{value:"Stone",children:"Stone"}),r.jsx("option",{value:"Masonry",children:"Masonry"}),r.jsx("option",{value:"Metal",children:"Metal"}),r.jsx("option",{value:"Fiberboard",children:"Fiberboard"}),r.jsx("option",{value:"Asphalt Siding",children:"Asphalt Siding"}),r.jsx("option",{value:"Concrete Block",children:"Concrete Block"}),r.jsx("option",{value:"Gable",children:"Gable"}),r.jsx("option",{value:"Brick Veneer",children:"Brick Veneer"}),r.jsx("option",{value:"Frame",children:"Frame"}),r.jsx("option",{value:"Siding",children:"Siding"}),r.jsx("option",{value:"Cement/Wood Fiber Siding",children:"Cement/Wood Fiber Siding"}),r.jsx("option",{value:"Fiber/Cement Siding",children:"Fiber/Cement Siding"}),r.jsx("option",{value:"Wood Siding",children:"Wood Siding"}),r.jsx("option",{value:"Vinyl Siding",children:"Vinyl Siding"}),r.jsx("option",{value:"Aluminium Siding",children:"Aluminium Siding"}),r.jsx("option",{value:"Wood/Vinyl Siding",children:"Alum/Vinyl Siding"})]})]}),r.jsxs("div",{className:"col-md-4",children:["Roofing",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"roofing",value:c.roofing,onChange:m,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"N/A",children:"N/A"}),r.jsx("option",{value:"Asphalt Shingle",children:"Asphalt Shingle"}),r.jsx("option",{value:"Green Roofs",children:"Green Roofs"}),r.jsx("option",{value:"Built-up Roofing",children:"Built-up Roofing"}),r.jsx("option",{value:"Composition Shingle",children:"Composition Shingle"}),r.jsx("option",{value:"Composition Shingle Heavy",children:"Composition Shingle Heavy"}),r.jsx("option",{value:"Solar tiles",children:"Solar tiles"}),r.jsx("option",{value:"Metal",children:"Metal"}),r.jsx("option",{value:"Stone-coated steel",children:"Stone-coated steel"}),r.jsx("option",{value:"Slate",children:"Slate"}),r.jsx("option",{value:"Rubber Slate",children:"Rubber Slate"}),r.jsx("option",{value:"Clay and Concrete tiles",children:"Clay and Concrete tiles"})]})]}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Total SQFT",r.jsx("input",{type:"text",className:"form-control",name:"totalSqft",value:c.totalSqft,onChange:m,required:!0})]})})]}),r.jsxs("h3",{style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:[r.jsx("br",{}),"Property Tax Information"]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),c.propertyTaxInfo.map((f,y)=>r.jsxs("div",{className:"row gy-4",children:[r.jsx("div",{className:"col-md-3",children:r.jsxs("div",{className:"form-floating mb-3",children:["Property Tax Owned",r.jsx("input",{type:"text",className:"form-control",name:"propertytaxowned",value:f.propertytaxowned,onChange:w=>m(w,y,"propertyTaxInfo"),required:!0})]})}),r.jsx("div",{className:"col-md-2",children:r.jsxs("div",{className:"form-floating mb-2",children:["Owned Year",r.jsx("input",{type:"text",className:"form-control",name:"ownedyear",value:f.ownedyear,onChange:w=>m(w,y,"propertyTaxInfo"),required:!0})]})}),r.jsx("div",{className:"col-md-2",children:r.jsxs("div",{className:"form-floating mb-2",children:["Tax Assessed",r.jsx("input",{type:"text",className:"form-control",name:"taxassessed",value:f.taxassessed,onChange:w=>m(w,y,"propertyTaxInfo"),required:!0})]})}),r.jsx("div",{className:"col-md-2",children:r.jsxs("div",{className:"form-floating mb-2",children:["Tax Year",r.jsx("input",{type:"text",className:"form-control",name:"taxyear",value:f.taxyear,onChange:w=>m(w,y,"propertyTaxInfo"),required:!0})]})}),r.jsx("div",{className:"col-md-3",children:r.jsxs("div",{className:"form-floating mb-2",children:[r.jsx("br",{}),r.jsx("button",{className:"btn btn-danger",onClick:()=>h(y),style:{height:"25px",width:"35px"},children:"X"})]})})]},y)),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,y)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:f.title,placeholder:"Image Title",onChange:w=>b(y,w)})}),r.jsxs("div",{className:"col-md-4 d-flex align-items-center",children:[r.jsx(Na,{multiple:!1,onDone:w=>N(w,y)}),r.jsx("button",{type:"button",className:"btn btn-danger",onClick:()=>C(y),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"}})})]})]},y)),r.jsx("button",{type:"button",className:"btn btn-primary",onClick:x,style:{backgroundColor:"#fda417",border:"#fda417"},children:"+ Add Image"}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"mb-3",children:[r.jsx("label",{htmlFor:"googleMapLink",className:"form-label",children:r.jsxs("h3",{style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:["Google Maps Link"," "]})}),r.jsx("input",{type:"text",className:"form-control",name:"googleMapLink",value:c.googleMapLink,onChange:m,placeholder:"Enter Google Maps link"})]}),c.googleMapLink&&r.jsx("iframe",{title:"Google Map",width:"100%",height:"300",src:`https://www.google.com/maps/embed/v1/view?key=YOUR_API_KEY¢er=${c.googleMapLink}&zoom=10`,frameBorder:"0",allowFullScreen:!0})]}),r.jsx("button",{className:"btn btn-primary back",onClick:s,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Go Back"})," ",r.jsx("button",{className:"btn btn-primary continue",onClick:n,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Continue"})]}),e==="Accounting"&&r.jsxs("div",{className:"card",style:{color:"#fda417",border:"1px solid #fda417",padding:"10px",borderRadius:"8px"},children:[r.jsx("br",{}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Close Date A to B",required:!0,disabled:!0})}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"date",className:"form-control",name:"closeDateAtoB",value:c.closeDateAtoB,onChange:f=>{const y=f.target.value;u({...c,closeDateAtoB:y}),$o(y,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 y=f.target.value;u({...c,closeDateBtoC:y}),$o(c.closeDateAtoB,y)},placeholder:"Close Date B to C",style:{textAlign:"right"},required:!0})}),r.jsx("div",{children:r.jsxs("p",{children:[r.jsxs("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:["[M-D-Y] :"," "]}),r.jsx("span",{style:{color:"#000000",fontSize:"14px",fontWeight:"normal"},children:new Date(c.closeDateBtoC).toLocaleDateString("en-US",{month:"numeric",day:"numeric",year:"numeric"})})]})})]}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Renovation Risk"}),r.jsx("div",{className:"col-md-7",children:d.map(f=>r.jsxs("div",{className:"form-check form-check-inline",children:[r.jsx("input",{className:"form-check-input",type:"radio",name:"renovationRisk",id:`renovationRisk${f}`,value:f,checked:c.renovationRisk===f,onChange:y=>{const w=parseInt(y.target.value,10);u({...c,renovationRisk:w})}}),r.jsx("label",{className:"form-check-label",htmlFor:`renovationRisk${f}`,children:f})]},f))})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Rate of Return"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"rateofreturn",value:`$ ${Er().toFixed(2)}`,readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Turn Time"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:il,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 y=f.target.value.replace(/[^\d.]/g,"");const w=/^\d*\.?\d*$/.test(y);u({...c,purchaseCost:y,isPurchaseCostInvalid:!w})},onKeyPress:f=>{const y=f.charCode;(y<48||y>57)&&y!==46&&(f.preventDefault(),u({...c,isPurchaseCostInvalid:!0}))},placeholder:"Enter Purchase Cost",style:{textAlign:"right"},required:!0}),c.isPurchaseCostInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Costs paid out of Closing Hud A to B:"}),c.costPaidAtoB.map((f,y)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:f.title,onChange:w=>T(y,"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,y),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(y),style:{marginLeft:"5px"},children:"x"})})]},y)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{onClick:j,className:"btn btn-primary back",style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Extra Cost"]})}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Purchase Cost"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalPurchaseCosts",value:`$ ${_().toFixed(2)}`,readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Credits received on settlement:"}),c.credits.map((f,y)=>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(y,"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,y),placeholder:"Price",style:{textAlign:"right"},required:!0}),f.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),r.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:r.jsx("button",{className:"btn btn-danger",onClick:()=>z(y),style:{marginLeft:"5px"},children:"x"})})]},y)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:L,style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add credits"]})}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total credits received on settlement"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalcredits",value:Q(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Purchase Cost after Credits Received"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalPurchaseCostsaftercredits",value:Z(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Cash Adjustments:"}),c.cashAdjustments.map((f,y)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:f.title,onChange:w=>G(y,"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,y),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(y),style:{marginLeft:"5px"},children:"x"})})]},y)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:D,style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Cash Adjustments"]})}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Cash Adjustments on Settlement"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalcashAdjustments",value:R(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Cash Required on Settlement"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalcashrequiredonsettlement",value:M(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Incidental Cost:"}),c.incidentalCost.map((f,y)=>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(y,"title",w.target.value),placeholder:"Title",required:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${f.isInvalid?"is-invalid":""}`,value:f.price,onChange:w=>Y(w,y),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(y),style:{marginLeft:"5px"},children:"x"})})]},y)),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,y)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:f.title,onChange:w=>se(y,"title",w.target.value),placeholder:"Title",required:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${f.isInvalid?"is-invalid":""}`,value:f.price,onChange:w=>le(w,y),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(y),style:{marginLeft:"5px"},children:"x"})})]},y)),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,y)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:f.title,onChange:w=>Ct(y,"title",w.target.value),placeholder:"Title",required:!0,style:{fontSize:"10px"}})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${f.isInvalid?"is-invalid":""}`,value:f.price,onChange:w=>zt(w,y),placeholder:"Price",style:{textAlign:"right"},required:!0}),f.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),r.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:r.jsx("button",{className:"btn btn-danger",onClick:()=>Be(y),style:{marginLeft:"5px"},children:"x"})})]},y)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:ge,style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Reno/Construction"]})}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Renovation Cost"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalrenovationCost",value:he(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Renovations & Holding Cost"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalRenovationsandHoldingCost",value:$t(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Costs to Buy A to B"}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:"form-control",name:"totalCoststoBuyAtoB",value:Ye(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0}),c.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Selling Price B to C"}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${c.isPurchaseCostInvalid?"is-invalid":""}`,name:"sellingPriceBtoC",value:c.sellingPriceBtoC,onChange:f=>{const y=f.target.value,w=/^\d*\.?\d*$/.test(y);u({...c,sellingPriceBtoC:y,isPurchaseCostInvalid:!w})},onKeyPress:f=>{const y=f.charCode;(y<48||y>57)&&y!==46&&(f.preventDefault(),u({...c,isPurchaseCostInvalid:!0}))},placeholder:"Enter Purchase Cost",style:{textAlign:"right"},required:!0}),c.isPurchaseCostInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Less:Costs paid out of closing Hud B to C:"}),c.costPaidOutofClosing.map((f,y)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:f.title,onChange:w=>ys(y,"title",w.target.value),placeholder:"Title",required:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${f.isInvalid?"is-invalid":""}`,value:f.price,onChange:w=>js(w,y),placeholder:"Price",style:{textAlign:"right"},required:!0}),f.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),r.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:r.jsx("button",{className:"btn btn-danger",onClick:()=>Zt(y),style:{marginLeft:"5px"},children:"x"})})]},y)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:Qn,style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Cost Paid Out of Closing"]})}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total cost paid out of closing"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalcostPaidOutofClosing",value:Xn(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Cost to Sell B to C"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalCosttoSellBtoC",value:Wt(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Gross Proceeds per HUD"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"grossproceedsperHUD",value:Wt(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Adjustments:"}),c.adjustments.map((f,y)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:f.title,onChange:w=>fe(y,"title",w.target.value),placeholder:"Title",required:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${f.isInvalid?"is-invalid":""}`,value:f.price,onChange:w=>qt(w,y),placeholder:"Price",style:{textAlign:"right"},required:!0}),f.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),r.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:r.jsx("button",{className:"btn btn-danger",onClick:()=>Ut(y),style:{marginLeft:"5px"},children:"x"})})]},y)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:gn,style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Adjustments"]})}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Adjustments"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totaladjustments",value:xn(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Funds Available for distribution"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"fundsavailablefordistribution",value:Bo(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Income Statement Adjustments:"}),c.incomestatement.map((f,y)=>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=>sl(y,"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=>ol(w,y),placeholder:"Price",style:{textAlign:"right"},required:!0}),f.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),r.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:r.jsx("button",{className:"btn btn-danger",onClick:()=>Mo(y),style:{marginLeft:"5px"},children:"x"})})]},y)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:Ns,style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Income Statement"]})}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Income Statement Adjustment"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalincomestatement",value:Cs(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Net B to C Sale Value"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"netBtoCsalevalue",value:Jn(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Net Profit Computation"}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Total Costs to Buy A to B",required:!0,disabled:!0})}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalCoststoBuyAtoBagain",value:Ye(),style:{textAlign:"right"},required:!0})})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Funds Prior to Closing",required:!0,disabled:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${c.isfundspriortoclosingInvalid?"is-invalid":""}`,value:c.fundspriortoclosing,name:"fundspriortoclosing",onChange:f=>{const y=f.target.value,w=/^\d*\.?\d*$/.test(y);u({...c,fundspriortoclosing:y,isfundspriortoclosingInvalid:!w})},onKeyPress:f=>{const y=f.charCode;(y<48||y>57)&&y!==46&&(f.preventDefault(),u({...c,isfundspriortoclosingInvalid:!0}))},style:{textAlign:"right"},required:!0}),c.isfundspriortoclosingInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Net B to C Sale Value",required:!0,disabled:!0})}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"netBtoCsalevalue",value:Jn(),style:{textAlign:"right"},required:!0})})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Short Term Rental",required:!0,disabled:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${c.isPurchaseCostInvalid?"is-invalid":""}`,value:c.shorttermrental,name:"shorttermrental",onChange:f=>{const y=f.target.value,w=/^\d*\.?\d*$/.test(y);u({...c,shorttermrental:y,isPurchaseCostInvalid:!w})},onKeyPress:f=>{const y=f.charCode;(y<48||y>57)&&y!==46&&(f.preventDefault(),u({...c,isPurchaseCostInvalid:!0}))},style:{textAlign:"right"},required:!0}),c.isPurchaseCostInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Other Income",required:!0,disabled:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${c.isPurchaseCostInvalid?"is-invalid":""}`,value:c.OtherIncome,name:"OtherIncome",onChange:f=>{const y=f.target.value,w=/^\d*\.?\d*$/.test(y);u({...c,OtherIncome:y,isPurchaseCostInvalid:!w})},onKeyPress:f=>{const y=f.charCode;(y<48||y>57)&&y!==46&&(f.preventDefault(),u({...c,isPurchaseCostInvalid:!0}))},style:{textAlign:"right"},required:!0}),c.isPurchaseCostInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Insurance Claim",required:!0,disabled:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${c.isPurchaseCostInvalid?"is-invalid":""}`,value:c.InsuranceClaim,name:"InsuranceClaim",onChange:f=>{const y=f.target.value,w=/^\d*\.?\d*$/.test(y);u({...c,InsuranceClaim:y,isPurchaseCostInvalid:!w})},onKeyPress:f=>{const y=f.charCode;(y<48||y>57)&&y!==46&&(f.preventDefault(),u({...c,isPurchaseCostInvalid:!0}))},style:{textAlign:"right"},required:!0}),c.isPurchaseCostInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Long Term Rental",required:!0,disabled:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${c.isPurchaseCostInvalid?"is-invalid":""}`,value:c.LongTermRental,name:"LongTermRental",onChange:f=>{const y=f.target.value,w=/^\d*\.?\d*$/.test(y);u({...c,LongTermRental:y,isPurchaseCostInvalid:!w})},onKeyPress:f=>{const y=f.charCode;(y<48||y>57)&&y!==46&&(f.preventDefault(),u({...c,isPurchaseCostInvalid:!0}))},style:{textAlign:"right"},required:!0}),c.isPurchaseCostInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Net Profit Before Financing Costs"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"netprofitbeforefinancingcosts",value:Zn(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Financing Cost/Other Closing Costs"}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${c.isFinancingCostClosingCostInvalid?"is-invalid":""}`,value:c.FinancingCostClosingCost,name:"FinancingCostClosingCost",onChange:f=>{const y=f.target.value,w=/^\d*\.?\d*$/.test(y);u({...c,FinancingCostClosingCost:y,isFinancingCostClosingCostInvalid:!w})},onKeyPress:f=>{const y=f.charCode;(y<48||y>57)&&y!==46&&(f.preventDefault(),u({...c,isFinancingCostClosingCostInvalid:!0}))},style:{textAlign:"right"},required:!0}),c.isFinancingCostClosingCostInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Net Profit"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"netprofit",value:en(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("button",{className:"btn btn-primary back",onClick:s,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Go Back"})," ",r.jsx("button",{type:"button",className:"btn btn-primary continue",style:{backgroundColor:"#fda417",border:"#fda417"},onClick:n,children:"Continue"})," "]}),r.jsx("br",{})]}),e==="IAB"&&r.jsxs("div",{role:"tabpanel",className:"card tab-pane active",children:[r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Add IAB Links:"}),c.IAB.map((f,y)=>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(y,"title",w.target.value),placeholder:"Title",required:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:"form-control",value:f.URL,onChange:w=>P(y,"URL",w.target.value),placeholder:"URL",style:{textAlign:"right"},required:!0}),f.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid URL."})]}),r.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:r.jsx("button",{className:"btn btn-danger",onClick:()=>ll(y),style:{marginLeft:"5px"},children:"x"})})]},y)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:al,style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add IAB URL"]})}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("h3",{style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:["Upload Files"," "]}),c.images.map((f,y)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:f.title,placeholder:"Image Title",onChange:w=>b(y,w)})}),r.jsxs("div",{className:"col-md-4 d-flex align-items-center",children:[r.jsx(Na,{multiple:!1,onDone:w=>N(w,y)}),r.jsx("button",{type:"button",className:"btn btn-danger",onClick:()=>C(y),style:{marginLeft:"5px"},children:"Delete"})]}),f.file&&r.jsx(r.Fragment,{children:r.jsx("div",{className:"col-md-12",children:r.jsx("img",{src:f.file,alt:"uploaded",style:{width:"150px",height:"150px",objectFit:"cover"}})})})]},y)),r.jsx("button",{type:"button",className:"btn btn-primary",onClick:x,style:{backgroundColor:"#fda417",border:"#fda417"},children:"+ Add Image"}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("button",{className:"btn btn-primary back",onClick:s,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Go Back"})," ",r.jsx("button",{type:"button",className:"btn btn-primary continue",style:{backgroundColor:"#fda417",border:"#fda417"},onClick:bs,children:"Submit"})," "]})]})]})]})})},mt="/assets/propertydummy-DhVEZ7jN.jpg",jb=()=>{var d;const e=Ke(),{user:t}=_e(c=>({...c.auth})),{userProperties:n,totalPages:s}=_e(c=>c.property),[o,i]=S.useState(1),a=5;S.useEffect(()=>{e(Xs({userId:t.result.userId,page:o,limit:a}))},[e,(d=t==null?void 0:t.result)==null?void 0:d.userId,o]);const l=c=>{i(c)};return r.jsx(r.Fragment,{children:n.length>0?r.jsxs(r.Fragment,{children:[r.jsx("ul",{children:n.map(c=>r.jsx("li",{children:r.jsx("div",{className:"container",children:r.jsx("div",{className:"col-md-12",children:r.jsxs("div",{className:"row p-2 bg-white border rounded mt-2",children:[r.jsx("div",{className:"col-md-3 mt-1",children:r.jsx("img",{src:c.images[0].file||mt,className:"w-70",alt:"Img",style:{marginTop:"0px",maxWidth:"200px",maxHeight:"200px"}})}),r.jsxs("div",{className:"col-md-6 mt-1",children:[r.jsxs("h5",{children:[" ",r.jsxs(ae,{to:`/property/${c.propertyId}`,target:"_blank",children:[c.address,"....."]})]}),r.jsx("div",{className:"d-flex flex-row"}),r.jsxs("div",{className:"mt-1 mb-1 spec-1",children:[r.jsx("span",{children:"100% cotton"}),r.jsx("span",{className:"dot"}),r.jsx("span",{children:"Light weight"}),r.jsx("span",{className:"dot"}),r.jsxs("span",{children:["Best finish",r.jsx("br",{})]})]}),r.jsxs("div",{className:"mt-1 mb-1 spec-1",children:[r.jsx("span",{children:"Unique design"}),r.jsx("span",{className:"dot"}),r.jsx("span",{children:"For men"}),r.jsx("span",{className:"dot"}),r.jsxs("span",{children:["Casual",r.jsx("br",{})]})]}),r.jsxs("p",{className:"text-justify text-truncate para mb-0",children:["There are many variations of passages of",r.jsx("br",{}),r.jsx("br",{})]})]}),r.jsx("div",{className:"align-items-center align-content-center col-md-3 border-left mt-1",children:r.jsxs("div",{className:"d-flex flex-column mt-4",children:[r.jsx(ae,{to:`/property/${c.propertyId}`,children:r.jsxs("button",{className:"btn btn-outline-primary btn-sm mt-2",type:"button",style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{className:"fa fa-eye",style:{color:"#F74B02"}})," "," ","View Details"]})}),r.jsx(ae,{to:`/editproperty/${c.propertyId}`,children:r.jsxs("button",{className:"btn btn-outline-primary btn-sm mt-2",type:"button",style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{className:"fa fa-edit",style:{color:"#F74B02"}})," "," ","Edit Details .."]})})]})})]})})})},c._id))}),r.jsxs("div",{className:"pagination",children:[r.jsx("button",{onClick:()=>l(o-1),disabled:o===1,children:"Previous"}),Array.from({length:s},(c,u)=>u+1).map(c=>c===o||c===1||c===s||c>=o-1&&c<=o+1?r.jsx("button",{onClick:()=>l(c),disabled:o===c,children:c},c):c===2||c===s-1?r.jsx("span",{children:"..."},c):null),r.jsx("button",{onClick:()=>l(o+1),disabled:o===s,children:"Next"})]})]}):r.jsx("p",{children:"No active properties found."})})},Nb=()=>{var c,u,p,g,N,x,C,b,m,v,h,j;const{user:e,isLoading:t}=_e(E=>E.auth),n=Ke(),s=hn(),[o,i]=S.useState({userId:((c=e==null?void 0:e.result)==null?void 0:c.userId)||"",title:((u=e==null?void 0:e.result)==null?void 0:u.title)||"",firstName:((p=e==null?void 0:e.result)==null?void 0:p.firstName)||"",middleName:((g=e==null?void 0:e.result)==null?void 0:g.middleName)||"",lastName:((N=e==null?void 0:e.result)==null?void 0:N.lastName)||"",email:((x=e==null?void 0:e.result)==null?void 0:x.email)||"",aboutme:((C=e==null?void 0:e.result)==null?void 0:C.aboutme)||"",city:((b=e==null?void 0:e.result)==null?void 0:b.city)||"",state:((m=e==null?void 0:e.result)==null?void 0:m.state)||"",county:((v=e==null?void 0:e.result)==null?void 0:v.county)||"",zip:((h=e==null?void 0:e.result)==null?void 0:h.zip)||"",profileImage:((j=e==null?void 0:e.result)==null?void 0:j.profileImage)||""});S.useEffect(()=>{e&&i({userId:e.result.userId,title:e.result.title,firstName:e.result.firstName,middleName:e.result.middleName,lastName:e.result.lastName,email:e.result.email,aboutme:e.result.aboutme,city:e.result.city,state:e.result.state,county:e.result.county,zip:e.result.zip,profileImage:e.result.profileImage})},[e]);const a=E=>{i({...o,[E.target.name]:E.target.value})},l=()=>{i({...o,profileImage:""})},d=E=>{E.preventDefault(),n(Pi({formData:o,toast:oe,navigate:s}))};return r.jsx(r.Fragment,{children:r.jsxs("form",{onSubmit:d,children:[r.jsxs("div",{className:"col-4",children:["Title",r.jsxs("select",{className:"form-floating mb-3 form-control","aria-label":"Default select example",name:"title",value:o.title,onChange:a,children:[r.jsx("option",{value:"None",children:"Please Select Title"}),r.jsx("option",{value:"Dr",children:"Dr"}),r.jsx("option",{value:"Prof",children:"Prof"}),r.jsx("option",{value:"Mr",children:"Mr"}),r.jsx("option",{value:"Miss",children:"Miss"})]})]}),r.jsx("div",{className:"col-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["First Name",r.jsx("input",{type:"text",className:"form-control",placeholder:"First Name",required:"required",name:"firstName",value:o.firstName,onChange:a})]})}),r.jsx("div",{className:"col-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Middle Name",r.jsx("input",{type:"text",className:"form-control",placeholder:"Middle Name",required:"required",name:"middleName",value:o.middleName,onChange:a})]})}),r.jsx("div",{className:"col-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Last Name",r.jsx("input",{type:"text",className:"form-control",placeholder:"Last Name",required:"required",name:"lastName",value:o.lastName,onChange:a})]})}),r.jsx("div",{className:"col-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Email",r.jsx("input",{type:"text",className:"form-control",placeholder:"Email",required:"required",name:"email",value:o.email,onChange:a,disabled:!0})]})}),r.jsx("div",{className:"col-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["About me",r.jsx("textarea",{type:"text",id:"aboutme",name:"aboutme",className:"form-control h-100",value:o.aboutme,onChange:a})]})}),r.jsx("div",{className:"col-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["City",r.jsx("input",{type:"text",className:"form-control",name:"city",placeholder:"city",value:o.city,onChange:a,required:!0})]})}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["State",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"state",value:o.state,onChange:a,required:!0,children:[r.jsx("option",{value:"",children:"Please Select State"}),r.jsx("option",{value:"Alaska",children:"Alaska"}),r.jsx("option",{value:"Alabama",children:"Alabama"}),r.jsx("option",{value:"Arkansas",children:"Arkansas"}),r.jsx("option",{value:"Arizona",children:"Arizona"}),r.jsx("option",{value:"California",children:"California"}),r.jsx("option",{value:"Colorado",children:"Colorado"}),r.jsx("option",{value:"Connecticut",children:"Connecticut"}),r.jsx("option",{value:"District Of Columbia",children:"District Of Columbia"}),r.jsx("option",{value:"Delaware",children:"Delaware"}),r.jsx("option",{value:"Florida",children:"Florida"}),r.jsx("option",{value:"Georgia",children:"Georgia"}),r.jsx("option",{value:"Hawaii",children:"Hawaii"}),r.jsx("option",{value:"Iowa",children:"Iowa"}),r.jsx("option",{value:"Idaho",children:"Idaho"}),r.jsx("option",{value:"Illinois",children:"Illinois"}),r.jsx("option",{value:"Indiana",children:"Indiana"}),r.jsx("option",{value:"Kansas",children:"Kansas"}),r.jsx("option",{value:"Kentucky",children:"Kentucky"}),r.jsx("option",{value:"Louisiana",children:"Louisiana"}),r.jsx("option",{value:"Massachusetts",children:"Massachusetts"}),r.jsx("option",{value:"Maryland",children:"Maryland"}),r.jsx("option",{value:"Michigan",children:"Michigan"}),r.jsx("option",{value:"Minnesota",children:"Minnesota"}),r.jsx("option",{value:"Missouri",children:"Missouri"}),r.jsx("option",{value:"Mississippi",children:"Mississippi"}),r.jsx("option",{value:"Montana",children:"Montana"}),r.jsx("option",{value:"North Carolina",children:"North Carolina"}),r.jsx("option",{value:"North Dakota",children:"North Dakota"}),r.jsx("option",{value:"Nebraska",children:"Nebraska"}),r.jsx("option",{value:"New Hampshire",children:"New Hampshire"}),r.jsx("option",{value:"New Jersey",children:"New Jersey"}),r.jsx("option",{value:"New Mexico",children:"New Mexico"}),r.jsx("option",{value:"Nevada",children:"Nevada"}),r.jsx("option",{value:"New York",children:"New York"}),r.jsx("option",{value:"Ohio",children:"Ohio"}),r.jsx("option",{value:"Oklahoma",children:"Oklahoma"}),r.jsx("option",{value:"Oregon",children:"Oregon"}),r.jsx("option",{value:"Pennsylvania",children:"Pennsylvania"}),r.jsx("option",{value:"Rhode Island",children:"Rhode Island"}),r.jsx("option",{value:"South Carolina",children:"South Carolina"}),r.jsx("option",{value:"South Dakota",children:"South Dakota"}),r.jsx("option",{value:"Tennessee",children:"Tennessee"}),r.jsx("option",{value:"Texas",children:"Texas"}),r.jsx("option",{value:"Utah",children:"Utah"}),r.jsx("option",{value:"Virginia",children:"Virginia"}),r.jsx("option",{value:"Vermont",children:"Vermont"}),r.jsx("option",{value:"Washington",children:"Washington"}),r.jsx("option",{value:"Wisconsin",children:"Wisconsin"}),r.jsx("option",{value:"West Virginia",children:"West Virginia"}),r.jsx("option",{value:"Wyoming",children:"Wyoming"})]})]})}),r.jsxs("div",{className:"col-md-4",children:["County",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"county",value:o.county,onChange:a,required:!0,children:[r.jsx("option",{value:"",children:"Please Select County"}),r.jsx("option",{value:"Abbeville",children:"Abbeville"}),r.jsx("option",{value:"Aiken",children:"Aiken"}),r.jsx("option",{value:"Allendale",children:"Allendale"}),r.jsx("option",{value:"Anderson",children:"Anderson"}),r.jsx("option",{value:"Bamberg",children:"Bamberg"}),r.jsx("option",{value:"Barnwell",children:"Barnwell"}),r.jsx("option",{value:"Beaufort",children:"Beaufort"}),r.jsx("option",{value:"Berkeley",children:"Berkeley"}),r.jsx("option",{value:"Calhoun",children:"Calhoun"}),r.jsx("option",{value:"Charleston",children:"Charleston"}),r.jsx("option",{value:"Cherokee",children:"Cherokee"}),r.jsx("option",{value:"Chester",children:"Chester"}),r.jsx("option",{value:"Chesterfield",children:"Chesterfield"}),r.jsx("option",{value:"Clarendon",children:"Clarendon"}),r.jsx("option",{value:"Colleton",children:"Colleton"}),r.jsx("option",{value:"Darlington",children:"Darlington"}),r.jsx("option",{value:"Dillon",children:"Dillon"}),r.jsx("option",{value:"Dorchester",children:"Dorchester"}),r.jsx("option",{value:"Edgefield",children:"Edgefield"}),r.jsx("option",{value:"Fairfield",children:"Fairfield"}),r.jsx("option",{value:"Florence",children:"Florence"}),r.jsx("option",{value:"Georgetown",children:"Georgetown"}),r.jsx("option",{value:"Greenville",children:"Greenville"}),r.jsx("option",{value:"Greenwood",children:"Greenwood"}),r.jsx("option",{value:"Hampton",children:"Hampton"}),r.jsx("option",{value:"Horry",children:"Horry"}),r.jsx("option",{value:"Jasper",children:"Jasper"}),r.jsx("option",{value:"Kershaw",children:"Kershaw"}),r.jsx("option",{value:"Lancaster",children:"Lancaster"}),r.jsx("option",{value:"Laurens",children:"Laurens"}),r.jsx("option",{value:"Lee",children:"Lee"}),r.jsx("option",{value:"Lexington",children:"Lexington"}),r.jsx("option",{value:"Marion",children:"Marion"}),r.jsx("option",{value:"Marlboro",children:"Marlboro"}),r.jsx("option",{value:"McCormick",children:"McCormick"}),r.jsx("option",{value:"Newberry",children:"Newberry"}),r.jsx("option",{value:"Oconee",children:"Oconee"}),r.jsx("option",{value:"Orangeburg",children:"Orangeburg"}),r.jsx("option",{value:"Pickens",children:"Pickens"}),r.jsx("option",{value:"Richland",children:"Richland"}),r.jsx("option",{value:"Saluda",children:"Saluda"}),r.jsx("option",{value:"Spartanburg",children:"Spartanburg"}),r.jsx("option",{value:"Sumter",children:"Sumter"}),r.jsx("option",{value:"Union",children:"Union"}),r.jsx("option",{value:"Williamsburg",children:"Williamsburg"}),r.jsx("option",{value:"York",children:"York"})]})]}),r.jsx("div",{className:"col-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Zip",r.jsx("input",{type:"text",className:"form-control",name:"zip",placeholder:"zip",value:o.zip,onChange:a,required:!0})]})}),r.jsxs("div",{className:"col-4",children:[r.jsx("label",{children:"Profile Image"}),r.jsx("div",{className:"mb-3",children:r.jsx(Na,{type:"file",multiple:!1,onDone:({base64:E})=>i({...o,profileImage:E})})})]}),o.profileImage&&r.jsxs("div",{className:"col-4 mb-3",children:[r.jsx("img",{src:o.profileImage,alt:"Profile Preview",style:{width:"150px",height:"150px",borderRadius:"50%"}}),r.jsx("button",{type:"button",className:"btn btn-danger mt-2",onClick:l,children:"Delete Image"})]}),r.jsx("div",{className:"col-12",children:r.jsx("div",{className:"d-grid",children:r.jsx("button",{className:"btn btn-primary btn-lg",type:"submit",style:{backgroundColor:"#fda417",border:"#fda417"},disabled:t,children:t?"Updating...":"Update"})})})]})})},Cb=()=>{var c;const e=Ke(),{user:t}=_e(u=>({...u.auth})),{userProperties:n,totalPages:s}=_e(u=>u.property),[o,i]=S.useState(1),a=5;S.useEffect(()=>{e(Xs({userId:t.result.userId,page:o,limit:a}))},[e,(c=t==null?void 0:t.result)==null?void 0:c.userId,o]);const l=u=>{i(u)},d=n.filter(u=>u.fundDetails&&u.fundDetails.some(p=>p.fundValue!==void 0&&p.fundPercentage!==void 0&&p.userId));return r.jsx(r.Fragment,{children:d.length>0?r.jsxs(r.Fragment,{children:[r.jsx("ul",{children:d.map(u=>r.jsx("li",{children:r.jsx("div",{className:"container",children:r.jsx("div",{className:"col-md-12",children:r.jsxs("div",{className:"row p-2 bg-white border rounded mt-2",children:[r.jsx("div",{className:"col-md-3 mt-1",children:r.jsx("img",{src:u.images[0].file||mt,className:"w-70",alt:"Img",style:{marginTop:"0px",maxWidth:"200px",maxHeight:"200px"}})}),r.jsxs("div",{className:"col-md-6 mt-1",children:[r.jsxs("h5",{children:[" ",r.jsxs(ae,{to:`/property/${u.propertyId}`,children:[u.address,"....."]})]}),r.jsx("div",{className:"d-flex flex-row"}),r.jsxs("div",{className:"mt-1 mb-1 spec-1",children:[r.jsx("span",{children:"100% cotton"}),r.jsx("span",{className:"dot"}),r.jsx("span",{children:"Light weight"}),r.jsx("span",{className:"dot"}),r.jsxs("span",{children:["Best finish",r.jsx("br",{})]})]}),r.jsxs("div",{className:"mt-1 mb-1 spec-1",children:[r.jsx("span",{children:"Unique design"}),r.jsx("span",{className:"dot"}),r.jsx("span",{children:"For men"}),r.jsx("span",{className:"dot"}),r.jsxs("span",{children:["Casual",r.jsx("br",{})]})]}),r.jsxs("p",{className:"text-justify text-truncate para mb-0",children:["There are many variations of passages of",r.jsx("br",{}),r.jsx("br",{})]})]}),r.jsx("div",{className:"align-items-center align-content-center col-md-3 border-left mt-1",children:r.jsxs("div",{className:"d-flex flex-column mt-4",children:[r.jsx(ae,{to:`/property/${u.propertyId}`,children:r.jsxs("button",{className:"btn btn-outline-primary btn-sm mt-2",type:"button",style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{className:"fa fa-eye",style:{color:"#F74B02"}})," "," ","View Details"]})}),r.jsx(ae,{to:`/editproperty/${u.propertyId}`,children:r.jsxs("button",{className:"btn btn-outline-primary btn-sm mt-2",type:"button",style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{className:"fa fa-edit",style:{color:"#F74B02"}})," "," ","Edit Details .."]})})]})})]})})})},u._id))}),r.jsxs("div",{className:"pagination",children:[r.jsx("button",{onClick:()=>l(o-1),disabled:o===1,children:"Previous"}),Array.from({length:s},(u,p)=>p+1).map(u=>u===o||u===1||u===s||u>=o-1&&u<=o+1?r.jsx("button",{onClick:()=>l(u),disabled:o===u,children:u},u):u===2||u===s-1?r.jsx("span",{children:"..."},u):null),r.jsx("button",{onClick:()=>l(o+1),disabled:o===s,children:"Next"})]})]}):r.jsx("p",{children:"No active properties found."})})},bb=()=>{var c;const e=Ke(),{user:t}=_e(u=>({...u.auth})),{properties:n,totalPages:s}=_e(u=>u.property),[o,i]=S.useState(1),a=5;S.useEffect(()=>{e(mr({page:o,limit:a}))},[e,(c=t==null?void 0:t.result)==null?void 0:c.userId,o]);const l=u=>{i(u)},d=n.filter(u=>u.fundDetails&&u.fundDetails.some(p=>p.fundValue!==void 0&&p.fundPercentage!==void 0&&p.userId===t.result._id));return r.jsx(r.Fragment,{children:d.length>0?r.jsxs(r.Fragment,{children:[r.jsx("ul",{children:d.map(u=>r.jsx("li",{children:r.jsx("div",{className:"container",children:r.jsx("div",{className:"col-md-12",children:r.jsxs("div",{className:"row p-2 bg-white border rounded mt-2",children:[r.jsx("div",{className:"col-md-3 mt-1",children:r.jsx("img",{src:u.images[0].file||mt,className:"w-70",alt:"Img",style:{marginTop:"0px",maxWidth:"200px",maxHeight:"200px"}})}),r.jsxs("div",{className:"col-md-6 mt-1",children:[r.jsxs("h5",{children:[" ",r.jsxs(ae,{to:`/property/${u.propertyId}`,target:"_blank",children:[u.address,"....."]})]}),r.jsx("div",{className:"d-flex flex-row"}),r.jsxs("div",{className:"mt-1 mb-1 spec-1",children:[r.jsx("span",{children:"100% cotton"}),r.jsx("span",{className:"dot"}),r.jsx("span",{children:"Light weight"}),r.jsx("span",{className:"dot"}),r.jsxs("span",{children:["Best finish",r.jsx("br",{})]})]}),r.jsxs("div",{className:"mt-1 mb-1 spec-1",children:[r.jsx("span",{children:"Unique design"}),r.jsx("span",{className:"dot"}),r.jsx("span",{children:"For men"}),r.jsx("span",{className:"dot"}),r.jsxs("span",{children:["Casual",r.jsx("br",{})]})]}),r.jsxs("p",{className:"text-justify text-truncate para mb-0",children:["There are many variations of passages of",r.jsx("br",{}),r.jsx("br",{})]})]}),r.jsx("div",{className:"align-items-center align-content-center col-md-3 border-left mt-1",children:r.jsxs("div",{className:"d-flex flex-column mt-4",children:[r.jsx(ae,{to:`/property/${u.propertyId}`,children:r.jsxs("button",{className:"btn btn-outline-primary btn-sm mt-2",type:"button",style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{className:"fa fa-eye",style:{color:"#F74B02"}})," "," ","View Details"]})}),r.jsx(ae,{to:`/editproperty/${u.propertyId}`,children:r.jsxs("button",{className:"btn btn-outline-primary btn-sm mt-2",type:"button",style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{className:"fa fa-edit",style:{color:"#F74B02"}})," "," ","Edit Details .."]})})]})})]})})})},u._id))}),r.jsxs("div",{className:"pagination",children:[r.jsx("button",{onClick:()=>l(o-1),disabled:o===1,children:"Previous"}),Array.from({length:s},(u,p)=>p+1).map(u=>u===o||u===1||u===s||u>=o-1&&u<=o+1?r.jsx("button",{onClick:()=>l(u),disabled:o===u,children:u},u):u===2||u===s-1?r.jsx("span",{children:"..."},u):null),r.jsx("button",{onClick:()=>l(o+1),disabled:o===s,children:"Next"})]})]}):r.jsx("p",{children:"No active properties found."})})},wb=()=>{var a,l;const{user:e}=_e(d=>({...d.auth}));console.log("user",e);const t=Ke(),[n,s]=S.useState({userId:((a=e==null?void 0:e.result)==null?void 0:a.userId)||"",fundAmount:((l=e==null?void 0:e.result)==null?void 0:l.fundAmount)||""});S.useEffect(()=>{var d,c;e&&s({userId:(d=e==null?void 0:e.result)==null?void 0:d.userId,fundAmount:(c=e==null?void 0:e.result)==null?void 0:c.fundAmount})},[e]);const o=d=>{s({...n,[d.target.name]:d.target.value})},i=d=>{if(d.preventDefault(),n.fundAmount<=0)return oe.error("Please enter a valid funding amount greater than 0");t(_i({formData:n,toast:oe}))};return r.jsx(r.Fragment,{children:r.jsxs("form",{onSubmit:i,children:[r.jsx("div",{className:"col-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Willing to Invest",r.jsx("input",{type:"text",className:"form-control",placeholder:"Enter Fund Amount",name:"fundAmount",value:n.fundAmount,onChange:o})]})}),r.jsx("div",{className:"col-12",children:r.jsx("div",{className:"d-grid",children:r.jsx("button",{className:"btn btn-primary btn-lg",type:"submit",style:{backgroundColor:"#fda417",border:"#fda417"},children:"submit"})})})]})})},Sb=()=>{const[e,t]=S.useState("dashboard"),{user:n}=_e(o=>o.auth),s=()=>{switch(e){case"Userdetails":return r.jsx(Nb,{});case"FundToInvest":return r.jsx(wb,{});case"addProperty":return r.jsx(sg,{});case"activeProperties":return r.jsxs("div",{children:[r.jsx("h3",{children:"Active Properties"}),r.jsx(jb,{})]});case"Fundings Received":return r.jsxs("div",{children:[r.jsx("h3",{children:"Fundings Received"}),r.jsx(Cb,{})]});case"Offers Submitted":return r.jsxs("div",{children:[r.jsx("h3",{children:"Offers Submitted"}),r.jsx(bb,{})]});case"closedProperties":return r.jsx("p",{children:"These are your closed properties."});default:return r.jsx(r.Fragment,{})}};return r.jsxs(r.Fragment,{children:[r.jsx(Le,{}),r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{}),r.jsxs("div",{className:"d-flex",style:{margin:"0",padding:"0"},children:[r.jsx("div",{className:"col-md-3 p-1",style:{paddingRight:"2px",margin:"0"},children:r.jsxs("div",{className:"card card1 p-5",children:[r.jsx("img",{className:"img-fluid",src:n.result.profileImage||Bs,alt:"ProfileImage",style:{maxWidth:"250px",maxHeight:"250px"}}),r.jsx("hr",{className:"hline"}),r.jsxs("div",{className:"d-flex flex-column align-items-center",children:[r.jsxs("button",{className:`btn ${e==="dashboard"?"active":""}`,onClick:()=>t("dashboard"),children:[r.jsx("i",{className:"fa fa-dashboard",style:{color:"#F74B02"}}),r.jsx("span",{children:"Dashboard"})]}),r.jsxs("button",{className:`btn mt-3 ${e==="Userdetails"?"active":""}`,onClick:()=>t("Userdetails"),children:[r.jsx("span",{className:"fa fa-home",style:{color:"#F74B02"}}),r.jsx("span",{children:"User Profile"})]}),r.jsxs("button",{className:`btn mt-3 ${e==="FundToInvest"?"active":""}`,onClick:()=>t("FundToInvest"),children:[r.jsx("span",{className:"fa fa-home",style:{color:"#F74B02"}}),r.jsx("span",{children:"Fund To Invest"})]}),r.jsxs("button",{className:`btn mt-3 ${e==="addProperty"?"active":""}`,onClick:()=>t("addProperty"),children:[r.jsx("span",{className:"fa fa-home",style:{color:"#F74B02"}}),r.jsx("span",{children:"Add Property"})]}),r.jsxs("button",{className:`btn mt-3 ${e==="activeProperties"?"active":""}`,onClick:()=>t("activeProperties"),children:[r.jsx("span",{className:"fa fa-home",style:{color:"#F74B02"}}),r.jsx("span",{children:"Active Properties"})]}),r.jsxs("button",{className:`btn mt-3 ${e==="Fundings Received"?"active":""}`,onClick:()=>t("Fundings Received"),children:[r.jsx("span",{className:"fa fa-home",style:{color:"#F74B02"}}),r.jsx("span",{children:"Fundings Received"})]}),r.jsxs("button",{className:`btn mt-3 ${e==="Offers Submitted"?"active":""}`,onClick:()=>t("Offers Submitted"),children:[r.jsx("span",{className:"fa fa-home",style:{color:"#F74B02"}}),r.jsx("span",{children:"Offers Submitted"})]}),r.jsxs("button",{className:`btn mt-3 ${e==="closedProperties"?"active":""}`,onClick:()=>t("closedProperties"),children:[r.jsx("span",{className:"fa fa-home",style:{color:"#F74B02"}}),r.jsx("span",{children:"Closed Properties"})]})]})]})}),r.jsx("div",{className:"col-md-9 p-1",style:{paddingLeft:"2px",margin:"0"},children:r.jsxs("div",{className:"card card2 p-2",children:[r.jsxs("span",{children:[r.jsx("br",{}),"Welcome to"," ",r.jsx("span",{style:{color:"#067ADC"},children:r.jsxs(ae,{to:`/profile/${n.result.userId}`,className:"link-primary text-decoration-none",children:[n.result.title,". ",n.result.firstName," ",n.result.middleName," ",n.result.lastName]})}),r.jsx("span",{style:{color:"#067ADC"},children:r.jsx(ae,{to:"/addproperty",className:"link-primary text-decoration-none",children:"add"})})]}),e==="dashboard"&&r.jsxs(r.Fragment,{children:[r.jsx("br",{}),r.jsxs("div",{className:"banner_taital",children:[r.jsxs("h1",{style:{color:"#fda417",fontSize:"30px",padding:"10px",fontWeight:"normal"},className:"services_taital",children:["Now you are accessing the world's only portal which has Streamlined the",r.jsx("h1",{style:{fontSize:"30px",padding:"10px",fontWeight:"normal"},children:" investor-borrower interactions, "})]}),r.jsxs("h1",{className:"services_taital",style:{color:"#fda417",fontSize:"30px",padding:"10px",fontWeight:"normal"},children:["gaining complete visibility into your data, and using smart filters to",r.jsxs("h1",{className:"services_taital",style:{fontSize:"30px",padding:"10px",fontWeight:"normal"},children:["create automatic workflows"," "]})]}),r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{}),r.jsx("br",{})]})]}),r.jsx("br",{}),s()]})})]}),r.jsx(tt,{})]})};var og={exports:{}},kb="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",Eb=kb,Pb=Eb;function ig(){}function ag(){}ag.resetWarningCache=ig;var _b=function(){function e(s,o,i,a,l,d){if(d!==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:ag,resetWarningCache:ig};return n.PropTypes=n,n};og.exports=_b();var Tb=og.exports;const Lt=So(Tb),Ob=()=>{const[e,t]=S.useState(3),n=hn();return S.useEffect(()=>{const s=setInterval(()=>{t(o=>--o)},1e3);return e===0&&n("/login"),()=>clearInterval(s)},[e,n]),r.jsx("div",{style:{marginTop:"100px"},children:r.jsxs("h5",{children:["Redirecting you in ",e," seconds"]})})},Ms=({children:e})=>{const{user:t}=_e(n=>({...n.auth}));return t?e:r.jsx(Ob,{})};Ms.propTypes={children:Lt.node.isRequired};const Ab=()=>{const e=Ke(),{id:t,token:n}=gs();return S.useEffect(()=>{e(Oi({id:t,token:n}))},[e,t,n]),r.jsxs(r.Fragment,{children:[r.jsx(Le,{}),r.jsxs("div",{className:"contact_section layout_padding",children:[r.jsx("div",{className:"container",children:r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-md-12",children:r.jsx("h1",{className:"contact_taital",children:"Contact Us"})})})}),r.jsx("div",{className:"container-fluid",children:r.jsx("div",{className:"contact_section_2",children:r.jsxs("div",{className:"row",children:[r.jsxs("div",{className:"col-md-6",children:[r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("h1",{className:"card-title text-center",children:r.jsxs(ae,{to:"/login",className:"glightbox play-btn mb-4",children:[" ","Email verified successfully !!! Please",r.jsx("span",{style:{color:"#F74B02"},children:" login "})," "," ","to access ..."]})})]}),r.jsx("div",{className:"col-md-6 padding_left_15",children:r.jsx("div",{className:"contact_img"})})]})})})]}),r.jsx(tt,{})]})},Rb=()=>{const[e,t]=S.useState(""),[n,s]=S.useState(""),o="http://67.225.129.127:3002",i=async()=>{try{const a=await me.post(`${o}/users/forgotpassword`,{email:e});s(a.data.message)}catch(a){console.error("Forgot Password Error:",a),s(a.response.data.message)}};return r.jsxs(r.Fragment,{children:[r.jsx(Le,{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsxs("section",{className:"card",style:{minHeight:"100vh",backgroundColor:"#FFFFFF"},children:[r.jsx("div",{className:"container-fluid px-0",children:r.jsxs("div",{className:"row gy-4 align-items-center justify-content-center",children:[r.jsx("div",{className:"col-12 col-md-0 col-xl-20 text-center text-md-start"}),r.jsx("div",{className:"col-12 col-md-6 col-xl-5",children:r.jsx("div",{className:"card border-0 rounded-4 shadow-lg",style:{width:"100%"},children:r.jsxs("div",{className:"card-body p-3 p-md-4 p-xl-5",children:[r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-12",children:r.jsxs("div",{className:"mb-4",children:[r.jsx("h2",{className:"h3",children:"Forgot Password"}),r.jsx("hr",{})]})})}),r.jsxs("div",{className:"row gy-3 overflow-hidden",children:[r.jsx("div",{className:"col-12",children:r.jsxs("div",{className:"form-floating mb-3",children:[r.jsx("input",{type:"email",className:"form-control",value:e,onChange:a=>t(a.target.value),placeholder:"name@example.com",required:"required"}),r.jsx("label",{htmlFor:"email",className:"form-label",children:"Enter your email address to receive a password reset link"})]})}),r.jsxs("div",{className:"col-12",children:[r.jsx("div",{className:"d-grid",children:r.jsx("button",{className:"btn btn-primary btn-lg",type:"submit",style:{backgroundColor:"#fda417",border:"#fda417"},onClick:i,children:"Reset Password"})}),r.jsx("p",{style:{color:"#067ADC"},className:"card-title text-center",children:n})]})]}),r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-12",children:r.jsx("div",{className:"d-flex gap-2 gap-md-4 flex-column flex-md-row justify-content-md-end mt-4",children:r.jsxs("p",{className:"m-0 text-secondary text-center",children:["Already have an account?"," ",r.jsx(ae,{to:"/login",className:"link-primary text-decoration-none",children:"Sign In"})]})})})}),r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-12"})})]})})})]})}),r.jsx(tt,{})]})]})},Ib=()=>{const{userId:e,token:t}=gs(),[n,s]=S.useState(""),[o,i]=S.useState(""),[a,l]=S.useState(""),d="http://67.225.129.127:3002",c=async()=>{try{if(!n||n.trim()===""){l("Password not entered"),oe.error("Password not entered");return}const u=await me.post(`${d}/users/resetpassword/${e}/${t}`,{userId:e,token:t,password:n});if(n!==o){l("Passwords do not match."),oe.error("Passwords do not match.");return}else l("Password reset successfull"),oe.success(u.data.message)}catch(u){console.error("Reset Password Error:",u)}};return S.useEffect(()=>{oe.dismiss()},[]),r.jsxs(r.Fragment,{children:[r.jsx(Le,{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("section",{className:"card mb-0 vh-100",children:r.jsx("div",{className:"container py-10 h-100",children:r.jsx("div",{className:"row d-flex align-items-center justify-content-center h-100",children:r.jsxs("div",{className:"col-md-10 col-lg-5 col-xl-5 offset-xl-1 card mb-10",children:[r.jsx("br",{}),r.jsxs("h2",{children:["Reset Password",r.jsx("hr",{}),r.jsx("p",{className:"card-title text-center",style:{color:"#F74B02"},children:"Enter your new password:"})]}),r.jsx("input",{className:"form-control vh-10",type:"password",value:n,onChange:u=>s(u.target.value),placeholder:"Enter your new password",style:{display:"flex",gap:"35px"}}),r.jsx("br",{}),r.jsx("input",{className:"form-control",type:"password",value:o,onChange:u=>i(u.target.value),placeholder:"Confirm your new password"}),r.jsx("br",{}),r.jsx("button",{className:"btn btn-primary btn-lg",type:"submit",name:"signin",value:"Sign in",onClick:c,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Reset Password"}),r.jsx("p",{style:{color:"#067ADC"},className:"card-title text-center",children:a})]})})})}),r.jsx(tt,{})]})},Fb=()=>r.jsxs(r.Fragment,{children:[r.jsx(Le,{}),r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{}),r.jsxs("div",{className:"col-md-18",children:[r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsxs("h1",{className:"card-title text-center",children:[" ","Thank you for joining the world’s most trusted portal for real estate investments and borrowing."]}),r.jsxs("h2",{children:["We reqest you to kindly ",r.jsx("span",{style:{fontSize:"2rem",color:"#fda417"},children:"check your email inbox "})," and click on the ",r.jsx("span",{style:{fontSize:"2rem",color:"#fda417"},children:"verification link "}),"to access the dashboard."]})]}),r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{}),r.jsx(tt,{})]});var lg={exports:{}};/*!
+ in `+(D||"Unknown")+(U?" (at "+U.fileName.replace(/^.*[\\\/]/,"")+":"+U.lineNumber+")":G?" (created by "+G+")":"")}function c(D){return D==null?"#empty":typeof D=="string"||typeof D=="number"?"#text":typeof D.type=="string"?D.type:D.type.displayName||D.type.name||"Unknown"}function u(D){var U,G=Z.getDisplayName(D),A=Z.getElement(D),R=Z.getOwnerID(D);return R&&(U=Z.getDisplayName(R)),i.env.NODE_ENV!=="production"&&E(A,"ReactComponentTreeHook: Missing React element for debugID %s when building stack",D),d(G,A&&A._source,U)}var p,g,N,x,C,b,m,v=o(5),h=o(7),j=o(2),E=o(3),T=typeof Array.from=="function"&&typeof Map=="function"&&a(Map)&&Map.prototype!=null&&typeof Map.prototype.keys=="function"&&a(Map.prototype.keys)&&typeof Set=="function"&&a(Set)&&Set.prototype!=null&&typeof Set.prototype.keys=="function"&&a(Set.prototype.keys);if(T){var O=new Map,_=new Set;p=function(D,U){O.set(D,U)},g=function(D){return O.get(D)},N=function(D){O.delete(D)},x=function(){return Array.from(O.keys())},C=function(D){_.add(D)},b=function(D){_.delete(D)},m=function(){return Array.from(_.keys())}}else{var L={},z={},H=function(D){return"."+D},te=function(D){return parseInt(D.substr(1),10)};p=function(D,U){var G=H(D);L[G]=U},g=function(D){var U=H(D);return L[U]},N=function(D){var U=H(D);delete L[U]},x=function(){return Object.keys(L).map(te)},C=function(D){var U=H(D);z[U]=!0},b=function(D){var U=H(D);delete z[U]},m=function(){return Object.keys(z).map(te)}}var Q=[],Z={onSetChildren:function(D,U){var G=g(D);G||(i.env.NODE_ENV!=="production"?j(!1,"Item must have been set"):v("144")),G.childIDs=U;for(var A=0;A1?c-1:0),p=1;p2?u-2:0),g=2;g.")}return O}function c(T,O){if(T._store&&!T._store.validated&&T.key==null){T._store.validated=!0;var _=j.uniqueKey||(j.uniqueKey={}),L=d(O);if(!_[L]){_[L]=!0;var z="";T&&T._owner&&T._owner!==g.current&&(z=" It was passed a child from "+T._owner.getName()+"."),i.env.NODE_ENV!=="production"&&v(!1,'Each child in an array or iterator should have a unique "key" prop.%s%s See https://fb.me/react-warning-keys for more information.%s',L,z,N.getCurrentStackAddendum(T))}}}function u(T,O){if(typeof T=="object"){if(Array.isArray(T))for(var _=0;_1?Y-1:0),re=1;re"u"||B===null)return""+B;var W=Q(B);if(W==="object"){if(B instanceof Date)return"date";if(B instanceof RegExp)return"regexp"}return W}function D(B){var W=Z(B);switch(W){case"array":case"object":return"an "+W;case"boolean":case"date":case"regexp":return"a "+W;default:return W}}function U(B){return B.constructor&&B.constructor.name?B.constructor.name:R}var G=typeof Symbol=="function"&&Symbol.iterator,A="@@iterator",R="<>",M={array:m("array"),bool:m("boolean"),func:m("function"),number:m("number"),object:m("object"),string:m("string"),symbol:m("symbol"),any:v(),arrayOf:h,element:j(),instanceOf:E,node:L(),objectOf:O,oneOf:T,oneOfType:_,shape:z};return C.prototype=Error.prototype,M.checkPropTypes=u,M.PropTypes=M,M}}).call(s,o(1))},function(n,s){function o(l){var d=/[=:]/g,c={"=":"=0",":":"=2"},u=(""+l).replace(d,function(p){return c[p]});return"$"+u}function i(l){var d=/(=0|=2)/g,c={"=0":"=","=2":":"},u=l[0]==="."&&l[1]==="$"?l.substring(2):l.substring(1);return(""+u).replace(d,function(p){return c[p]})}var a={escape:o,unescape:i};n.exports=a},function(n,s,o){(function(i){var a=o(5),l=o(2),d=function(m){var v=this;if(v.instancePool.length){var h=v.instancePool.pop();return v.call(h,m),h}return new v(m)},c=function(m,v){var h=this;if(h.instancePool.length){var j=h.instancePool.pop();return h.call(j,m,v),j}return new h(m,v)},u=function(m,v,h){var j=this;if(j.instancePool.length){var E=j.instancePool.pop();return j.call(E,m,v,h),E}return new j(m,v,h)},p=function(m,v,h,j){var E=this;if(E.instancePool.length){var T=E.instancePool.pop();return E.call(T,m,v,h,j),T}return new E(m,v,h,j)},g=function(m){var v=this;m instanceof v||(i.env.NODE_ENV!=="production"?l(!1,"Trying to release an instance into a pool of a different type."):a("25")),m.destructor(),v.instancePool.length{const[e,t]=k.useState("propertydetails"),n=()=>{e==="propertydetails"&&t("Images"),e==="Images"&&t("Accounting"),e==="Accounting"&&t("IAB"),e==="IAB"&&t("IAB")},s=()=>{e==="Images"&&t("propertydetails"),e==="Accounting"&&t("Images"),e==="IAB"&&t("Accounting")},o=Ke(),{status:i,error:a}=_e(f=>f.property),{user:l}=_e(f=>({...f.auth})),d=[1,2,3,4,5,6,7,8,9,10],[c,u]=k.useState({propertyTaxInfo:[{propertytaxowned:"0",ownedyear:"0",taxassessed:"0",taxyear:"0"}],images:[{title:"",file:""}],googleMapLink:"",renovationRisk:null,purchaseCost:"0",costPaidAtoB:[{title:"Closing Fees - Settlement Fee",price:"0"},{title:"Closing Fees - Owner's Title Insurance",price:"0"},{title:"Courier Fees",price:"0"},{title:"Wire Fee",price:"0"},{title:"E recording Fee",price:"0"},{title:"Recording Fee",price:"0"},{title:"Property Tax",price:"0"}],credits:[{title:"Credits",price:"0"}],cashAdjustments:[{title:"Cash Adjustments",price:"0"}],incidentalCost:[{title:"Accounting Fees",price:"0"},{title:"Bank Charges",price:"0"},{title:"Legal Fees",price:"0"},{title:"Property Taxes",price:"0"},{title:"Travel Expenses",price:"0"}],carryCosts:[{title:"Electricity",price:"0"},{title:"Water and Sewer",price:"0"},{title:"Natural Gas",price:"0"},{title:"Trash and Recycling",price:"0"},{title:"Internet and Cable",price:"0"},{title:"Heating Oil/Propane",price:"0"},{title:"HOA fees",price:"0"},{title:"Dump fees",price:"0"},{title:"Insurance",price:"0"},{title:"Interest on Loans",price:"0"},{title:"Loan Payment",price:"0"},{title:"Property Taxes",price:"0"},{title:"Security",price:"0"},{title:"Real Estates fees",price:"0"}],renovationCost:[{title:"Demolition: Removing existing structures or finishes",price:"0"},{title:"Framing: Making structural changes or additions",price:"0"},{title:"Plumbing: Installing or modifying plumbing systems",price:"0"},{title:"Electrical: Updating wiring and fixtures",price:"0"},{title:"HVAC: Installing or upgrading heating and cooling systems",price:"0"},{title:"Insulation: Adding or replacing insulation",price:"0"},{title:"Drywall: Hanging and finishing drywall",price:"0"},{title:"Interior Finishes: Painting, flooring, cabinetry, and fixtures",price:"0"},{title:"Exterior Work: Addressing siding, roofing, or landscaping, if applicable",price:"0"},{title:"Final Inspections: Ensuring everything meets codes",price:"0"},{title:"Punch List: Completing any remaining task",price:"0"}],sellingPriceBtoC:"0",costPaidOutofClosing:[{title:"Buyers Agent Commission",price:"0"},{title:"Sellers Agent Commission",price:"0"},{title:"Home Warranty",price:"0"},{title:"Document Preparation",price:"0"},{title:"Excise Tax",price:"0"},{title:"Legal Fees",price:"0"},{title:"Wire Fees/courier Fees",price:"0"},{title:"County Taxes",price:"0"},{title:"HOA Fee",price:"0"},{title:"Payoff of 1st Mortgage",price:"0"},{title:"Payoff of 2nd Mortgage",price:"0"},{title:"Payoff 3rd Mortgage",price:"0"}],adjustments:[{title:"adjustments",price:"0"}],incomestatement:[{title:"income statement",price:"0"},{title:"income statement",price:"0"}],fundspriortoclosing:"0",shorttermrental:"0",OtherIncome:"0",InsuranceClaim:"0",LongTermRental:"0",FinancingCostClosingCost:"0",IAB:[{title:"IAB Title",URL:"Please enter URL"}],files:[{title:"",file:""}]}),[p,g]=k.useState(!1),N=(f,y)=>{console.log("File received:",f);const w=[...c.images];w[y].file=f.base64,u({...c,images:w})},x=()=>{u({...c,images:[...c.images,{title:"",file:""}]})},C=f=>{const y=c.images.filter((w,F)=>F!==f);u({...c,images:y})},b=(f,y)=>{const w=[...c.images];w[f].title=y.target.value,u({...c,images:w})},m=(f,y,w)=>{const{name:F,value:q}=f.target;if(w==="propertyTaxInfo"){const X=[...c.propertyTaxInfo];X[y][F]=q,u({...c,propertyTaxInfo:X})}else u({...c,[F]:q})},v=()=>{u({...c,propertyTaxInfo:[...c.propertyTaxInfo,{propertytaxowned:"",ownedyear:"",taxassessed:"",taxyear:""}]})},h=f=>{const y=c.propertyTaxInfo.filter((w,F)=>F!==f);u({...c,propertyTaxInfo:y})},j=()=>{u(f=>({...f,costPaidAtoB:[...f.costPaidAtoB,{title:"",price:""}]}))},E=f=>{const y=c.costPaidAtoB.filter((w,F)=>F!==f);u(w=>({...w,costPaidAtoB:y}))},T=(f,y,w)=>{const F=[...c.costPaidAtoB];F[f][y]=w,u(q=>({...q,costPaidAtoB:F}))},O=(f,y)=>{let w=f.target.value;if(w=w.replace(/^\$/,"").trim(),/^\d*\.?\d*$/.test(w)||w===""){const q=c.costPaidAtoB.map((X,ce)=>ce===y?{...X,price:w,isInvalid:!1}:X);u({...c,costPaidAtoB:q})}else{const q=c.costPaidAtoB.map((X,ce)=>ce===y?{...X,isInvalid:!0}:X);u({...c,costPaidAtoB:q})}},_=()=>{const f=c.costPaidAtoB.reduce((w,F)=>{const q=parseFloat(F.price)||0;return w+q},0),y=parseFloat(c.purchaseCost)||0;return f+y},L=()=>{u(f=>({...f,credits:[...f.credits,{title:"",price:""}]}))},z=f=>{const y=c.credits.filter((w,F)=>F!==f);u(w=>({...w,credits:y}))},H=(f,y,w)=>{const F=[...c.credits];F[f][y]=w,u(q=>({...q,credits:F}))},te=(f,y)=>{const w=f.target.value;if(/^\d*\.?\d*$/.test(w)||w===""){const q=c.credits.map((X,ce)=>ce===y?{...X,price:w,isInvalid:!1}:X);u({...c,credits:q})}else{const q=c.credits.map((X,ce)=>ce===y?{...X,isInvalid:!0}:X);u({...c,credits:q})}},Q=()=>c.credits.reduce((f,y)=>{const w=parseFloat(y.price);return f+(isNaN(w)?0:w)},0),Z=()=>{const f=c.costPaidAtoB.reduce((F,q)=>{const X=parseFloat(q.price)||0;return F+X},0),y=c.credits.reduce((F,q)=>{const X=parseFloat(q.price)||0;return F+X},0),w=parseFloat(c.purchaseCost)||0;return f+y+w},D=()=>{u(f=>({...f,cashAdjustments:[...f.cashAdjustments,{title:"",price:""}]}))},U=f=>{const y=c.cashAdjustments.filter((w,F)=>F!==f);u(w=>({...w,cashAdjustments:y}))},G=(f,y,w)=>{const F=[...c.cashAdjustments];F[f][y]=w,u(q=>({...q,cashAdjustments:F}))},A=(f,y)=>{const w=f.target.value;if(/^\d*\.?\d*$/.test(w)||w===""){const q=c.cashAdjustments.map((X,ce)=>ce===y?{...X,price:w,isInvalid:!1}:X);u({...c,cashAdjustments:q})}else{const q=c.cashAdjustments.map((X,ce)=>ce===y?{...X,isInvalid:!0}:X);u({...c,cashAdjustments:q})}},R=()=>c.cashAdjustments.reduce((f,y)=>{const w=parseFloat(y.price);return f+(isNaN(w)?0:w)},0),M=()=>{const f=R(),y=Q(),w=_();return f+y+w},B=()=>{u(f=>({...f,incidentalCost:[...f.incidentalCost,{title:"",price:""}]}))},W=f=>{const y=c.incidentalCost.filter((w,F)=>F!==f);u(w=>({...w,incidentalCost:y}))},K=(f,y,w)=>{const F=[...c.incidentalCost];F[f][y]=w,u(q=>({...q,incidentalCost:F}))},Y=(f,y)=>{const w=f.target.value;if(/^\d*\.?\d*$/.test(w)||w===""){const q=c.incidentalCost.map((X,ce)=>ce===y?{...X,price:w,isInvalid:!1}:X);u({...c,incidentalCost:q})}else{const q=c.incidentalCost.map((X,ce)=>ce===y?{...X,isInvalid:!0}:X);u({...c,incidentalCost:q})}},ee=()=>c.incidentalCost.reduce((f,y)=>{const w=parseFloat(y.price);return f+(isNaN(w)?0:w)},0),re=()=>{u(f=>({...f,carryCosts:[...f.carryCosts,{title:"",price:""}]}))},ne=f=>{const y=c.carryCosts.filter((w,F)=>F!==f);u(w=>({...w,carryCosts:y}))},se=(f,y,w)=>{const F=[...c.carryCosts];F[f][y]=w,u(q=>({...q,carryCosts:F}))},le=(f,y)=>{const w=f.target.value;if(/^\d*\.?\d*$/.test(w)||w===""){const q=c.carryCosts.map((X,ce)=>ce===y?{...X,price:w,isInvalid:!1}:X);u({...c,carryCosts:q})}else{const q=c.carryCosts.map((X,ce)=>ce===y?{...X,isInvalid:!0}:X);u({...c,carryCosts:q})}},de=()=>c.carryCosts.reduce((f,y)=>{const w=parseFloat(y.price);return f+(isNaN(w)?0:w)},0),ge=()=>{u(f=>({...f,renovationCost:[...f.renovationCost,{title:"",price:""}]}))},Be=f=>{const y=c.renovationCost.filter((w,F)=>F!==f);u(w=>({...w,renovationCost:y}))},Ct=(f,y,w)=>{const F=[...c.renovationCost];F[f][y]=w,u(q=>({...q,renovationCost:F}))},zt=(f,y)=>{const w=f.target.value;if(/^\d*\.?\d*$/.test(w)||w===""){const q=c.renovationCost.map((X,ce)=>ce===y?{...X,price:w,isInvalid:!1}:X);u({...c,renovationCost:q})}else{const q=c.renovationCost.map((X,ce)=>ce===y?{...X,isInvalid:!0}:X);u({...c,renovationCost:q})}},he=()=>c.renovationCost.reduce((f,y)=>{const w=parseFloat(y.price);return f+(isNaN(w)?0:w)},0),$t=()=>{const f=ee(),y=de(),w=he();return f+y+w},Ye=()=>{const f=$t(),y=M();return f+y},Qn=()=>{u(f=>({...f,costPaidOutofClosing:[...f.costPaidOutofClosing,{title:"",price:""}]}))},Zt=f=>{const y=c.costPaidOutofClosing.filter((w,F)=>F!==f);u(w=>({...w,costPaidOutofClosing:y}))},ys=(f,y,w)=>{const F=[...c.costPaidOutofClosing];F[f][y]=w,u(q=>({...q,costPaidOutofClosing:F}))},js=(f,y)=>{const w=f.target.value;if(/^\d*\.?\d*$/.test(w)||w===""){const q=c.costPaidOutofClosing.map((X,ce)=>ce===y?{...X,price:w,isInvalid:!1}:X);u({...c,costPaidOutofClosing:q})}else{const q=c.costPaidOutofClosing.map((X,ce)=>ce===y?{...X,isInvalid:!0}:X);u({...c,costPaidOutofClosing:q})}},Xn=()=>c.costPaidOutofClosing.reduce((f,y)=>{const w=parseFloat(y.price);return f+(isNaN(w)?0:w)},0),Wt=()=>{const f=c.sellingPriceBtoC,y=Xn();return f-y},gn=()=>{u(f=>({...f,adjustments:[...f.adjustments,{title:"",price:""}]}))},Ut=f=>{const y=c.adjustments.filter((w,F)=>F!==f);u(w=>({...w,adjustments:y}))},fe=(f,y,w)=>{const F=[...c.adjustments];F[f][y]=w,u(q=>({...q,adjustments:F}))},qt=(f,y)=>{const w=f.target.value;if(/^\d*\.?\d*$/.test(w)||w===""){const q=c.adjustments.map((X,ce)=>ce===y?{...X,price:w,isInvalid:!1}:X);u({...c,adjustments:q})}else{const q=c.adjustments.map((X,ce)=>ce===y?{...X,isInvalid:!0}:X);u({...c,adjustments:q})}},xn=()=>c.adjustments.reduce((f,y)=>{const w=parseFloat(y.price);return f+(isNaN(w)?0:w)},0),Bo=()=>{const f=Wt(),y=xn();return f+y},Ns=()=>{u(f=>({...f,incomestatement:[...f.incomestatement,{title:"",price:""}]}))},Mo=f=>{const y=c.incomestatement.filter((w,F)=>F!==f);u(w=>({...w,incomestatement:y}))},sl=(f,y,w)=>{const F=[...c.incomestatement];F[f][y]=w,u(q=>({...q,incomestatement:F}))},ol=(f,y)=>{const w=f.target.value;if(/^\d*\.?\d*$/.test(w)||w===""){const q=c.incomestatement.map((X,ce)=>ce===y?{...X,price:w,isInvalid:!1}:X);u({...c,incomestatement:q})}else{const q=c.incomestatement.map((X,ce)=>ce===y?{...X,isInvalid:!0}:X);u({...c,incomestatement:q})}},Cs=()=>c.incomestatement.reduce((f,y)=>{const w=parseFloat(y.price);return f+(isNaN(w)?0:w)},0),Jn=()=>{const f=Cs(),y=Wt();return f+y},Zn=()=>{const f=isNaN(parseFloat(Jn()))?0:parseFloat(Jn()),y=isNaN(parseFloat(c.shorttermrental))?0:parseFloat(c.shorttermrental),w=isNaN(parseFloat(c.OtherIncome))?0:parseFloat(c.OtherIncome),F=isNaN(parseFloat(c.InsuranceClaim))?0:parseFloat(c.InsuranceClaim),q=isNaN(parseFloat(c.LongTermRental))?0:parseFloat(c.LongTermRental),X=isNaN(parseFloat(Ye()))?0:parseFloat(Ye());return f+y+w+F+q-X},en=()=>{const f=Zn(),y=c.FinancingCostClosingCost;return f-y},Er=()=>en(),bs=()=>{var f,y,w,F,q,X;if(c.address&&c.city&&c.state&&c.county&&c.zip&&c.parcel&&c.subdivision&&c.legal&&c.costpersqft&&c.propertyType&&c.lotacres&&c.yearBuild&&c.totallivingsqft&&c.beds&&c.baths&&c.stories&&c.garage&&c.garagesqft&&c.poolspa&&c.fireplaces&&c.ac&&c.heating&&c.buildingstyle&&c.sitevacant&&c.extwall&&c.roofing&&c.totalSqft&&c.renovationRisk&&c.closeDateAtoB&&c.closeDateBtoC&&c.purchaseCost&&c.sellingPriceBtoC&&c.fundspriortoclosing&&c.shorttermrental&&c.OtherIncome&&c.InsuranceClaim&&c.LongTermRental&&c.FinancingCostClosingCost){const ce=Er(),Wo=_(),cl=Z(),dl=R(),ul=ee(),fl=Q(),pl=M(),ml=de(),hl=he(),vl=$t(),gl=Ye(),xl=Xn(),yl=xn(),Ig=Bo(),Fg=Wt(),Dg=Wt(),Lg=Cs(),Bg=Jn(),Mg=Zn(),zg=en(),jl={...c,userfirstname:(f=l==null?void 0:l.result)==null?void 0:f.firstName,usermiddlename:(y=l==null?void 0:l.result)==null?void 0:y.middleName,userlastname:(w=l==null?void 0:l.result)==null?void 0:w.lastName,usertitle:(F=l==null?void 0:l.result)==null?void 0:F.title,useremail:(q=l==null?void 0:l.result)==null?void 0:q.email,userId:(X=l==null?void 0:l.result)==null?void 0:X.userId,totalPurchaseCosts:Wo,totalcredits:fl,totalPurchaseCostsaftercredits:cl,totalcashAdjustments:dl,totalcashrequiredonsettlement:pl,totalincidentalCost:ul,totalcarryCosts:ml,totalrenovationCost:hl,totalRenovationsandHoldingCost:vl,totalCoststoBuyAtoB:gl,totalcostPaidOutofClosing:xl,totaladjustments:yl,fundsavailablefordistribution:Ig,grossproceedsperHUD:Fg,totalCosttoSellBtoC:Dg,totalincomestatement:Lg,netBtoCsalevalue:Bg,netprofitbeforefinancingcosts:Mg,NetProfit:zg,rateofreturn:ce};Array.isArray(c.propertyTaxInfo)&&c.propertyTaxInfo.length>0?jl.propertyTaxInfo=c.propertyTaxInfo:jl.propertyTaxInfo=[],o(Ai(jl)),g(!0)}else oe.error("Please fill all fields before submitting",{position:"top-right",autoClose:3e3})};k.useEffect(()=>{p&&(i==="succeeded"?(oe.success("Property submitted successfully!",{position:"top-right",autoClose:3e3}),g(!1)):i==="failed"&&(oe.error(`Failed to submit: ${a}`,{position:"top-right",autoClose:3e3}),g(!1)))},[i,a,p]);const[il,zo]=k.useState("0 days"),$o=(f,y)=>{if(f&&y){const w=new Date(f),F=new Date(y),q=Math.abs(F-w),X=Math.ceil(q/(1e3*60*60*24));zo(`${X} days`)}else zo("0 days")},al=()=>{u(f=>({...f,IAB:[...f.IAB,{title:"",URL:""}]}))},ll=f=>{const y=c.IAB.filter((w,F)=>F!==f);u(w=>({...w,IAB:y}))},S=(f,y,w)=>{const F=[...c.IAB];F[f][y]=w,u(q=>({...q,IAB:F}))},P=(f,y,w)=>{const F=[...c.IAB];F[f][y]=w,u(q=>({...q,IAB:F}))};return r.jsx(r.Fragment,{children:r.jsxs("div",{className:"container tabs-wrap",children:[r.jsx(Le,{}),r.jsxs("ul",{className:"nav nav-tabs",role:"tablist",children:[r.jsx("li",{role:"presentation",className:e==="propertydetails"?"active tab":"tab",children:r.jsx("a",{onClick:()=>t("propertydetails"),role:"tab",children:"Property Details"})}),r.jsx("li",{role:"presentation",className:e==="Images"?"active tab":"tab",children:r.jsx("a",{onClick:()=>t("Images"),role:"tab",children:"Images, Maps"})}),r.jsx("li",{role:"presentation",className:e==="Accounting"?"active tab":"tab",children:r.jsx("a",{onClick:()=>t("Accounting"),role:"tab",children:"Accounting"})}),r.jsx("li",{role:"presentation",className:e==="IAB"?"active tab":"tab",children:r.jsx("a",{onClick:()=>t("IAB"),role:"tab",children:"IAB Verified Report"})})]}),r.jsxs("div",{className:"tab-content",children:[e==="propertydetails"&&r.jsxs("div",{role:"tabpanel",className:"card tab-pane active",children:[r.jsxs("form",{children:[r.jsx("h3",{style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:"Property Location"}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Property Address",r.jsx("input",{type:"text",className:"form-control",name:"address",value:c.address,onChange:m,required:!0})]})}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["City",r.jsx("input",{type:"text",className:"form-control",name:"city",value:c.city,onChange:m,required:!0})]})}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["State",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"state",value:c.state,onChange:m,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"Alaska",children:"Alaska"}),r.jsx("option",{value:"Alabama",children:"Alabama"}),r.jsx("option",{value:"Arkansas",children:"Arkansas"}),r.jsx("option",{value:"Arizona",children:"Arizona"}),r.jsx("option",{value:"California",children:"California"}),r.jsx("option",{value:"Colorado",children:"Colorado"}),r.jsx("option",{value:"Connecticut",children:"Connecticut"}),r.jsx("option",{value:"District Of Columbia",children:"District Of Columbia"}),r.jsx("option",{value:"Delaware",children:"Delaware"}),r.jsx("option",{value:"Florida",children:"Florida"}),r.jsx("option",{value:"Georgia",children:"Georgia"}),r.jsx("option",{value:"Hawaii",children:"Hawaii"}),r.jsx("option",{value:"Iowa",children:"Iowa"}),r.jsx("option",{value:"Idaho",children:"Idaho"}),r.jsx("option",{value:"Illinois",children:"Illinois"}),r.jsx("option",{value:"Indiana",children:"Indiana"}),r.jsx("option",{value:"Kansas",children:"Kansas"}),r.jsx("option",{value:"Kentucky",children:"Kentucky"}),r.jsx("option",{value:"Louisiana",children:"Louisiana"}),r.jsx("option",{value:"Massachusetts",children:"Massachusetts"}),r.jsx("option",{value:"Maryland",children:"Maryland"}),r.jsx("option",{value:"Michigan",children:"Michigan"}),r.jsx("option",{value:"Minnesota",children:"Minnesota"}),r.jsx("option",{value:"Missouri",children:"Missouri"}),r.jsx("option",{value:"Mississippi",children:"Mississippi"}),r.jsx("option",{value:"Montana",children:"Montana"}),r.jsx("option",{value:"North Carolina",children:"North Carolina"}),r.jsx("option",{value:"North Dakota",children:"North Dakota"}),r.jsx("option",{value:"Nebraska",children:"Nebraska"}),r.jsx("option",{value:"New Hampshire",children:"New Hampshire"}),r.jsx("option",{value:"New Jersey",children:"New Jersey"}),r.jsx("option",{value:"New Mexico",children:"New Mexico"}),r.jsx("option",{value:"Nevada",children:"Nevada"}),r.jsx("option",{value:"New York",children:"New York"}),r.jsx("option",{value:"Ohio",children:"Ohio"}),r.jsx("option",{value:"Oklahoma",children:"Oklahoma"}),r.jsx("option",{value:"Oregon",children:"Oregon"}),r.jsx("option",{value:"Pennsylvania",children:"Pennsylvania"}),r.jsx("option",{value:"Rhode Island",children:"Rhode Island"}),r.jsx("option",{value:"South Carolina",children:"South Carolina"}),r.jsx("option",{value:"South Dakota",children:"South Dakota"}),r.jsx("option",{value:"Tennessee",children:"Tennessee"}),r.jsx("option",{value:"Texas",children:"Texas"}),r.jsx("option",{value:"Texas",children:"Travis"}),r.jsx("option",{value:"Utah",children:"Utah"}),r.jsx("option",{value:"Virginia",children:"Virginia"}),r.jsx("option",{value:"Vermont",children:"Vermont"}),r.jsx("option",{value:"Washington",children:"Washington"}),r.jsx("option",{value:"Wisconsin",children:"Wisconsin"}),r.jsx("option",{value:"West Virginia",children:"West Virginia"}),r.jsx("option",{value:"Wyoming",children:"Wyoming"})]})]})})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsxs("div",{className:"col-md-4",children:["County",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"county",value:c.county,onChange:m,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"Abbeville",children:"Abbeville"}),r.jsx("option",{value:"Aiken",children:"Aiken"}),r.jsx("option",{value:"Allendale",children:"Allendale"}),r.jsx("option",{value:"Anderson",children:"Anderson"}),r.jsx("option",{value:"Bamberg",children:"Bamberg"}),r.jsx("option",{value:"Barnwell",children:"Barnwell"}),r.jsx("option",{value:"Beaufort",children:"Beaufort"}),r.jsx("option",{value:"Berkeley",children:"Berkeley"}),r.jsx("option",{value:"Calhoun",children:"Calhoun"}),r.jsx("option",{value:"Charleston",children:"Charleston"}),r.jsx("option",{value:"Cherokee",children:"Cherokee"}),r.jsx("option",{value:"Chester",children:"Chester"}),r.jsx("option",{value:"Chesterfield",children:"Chesterfield"}),r.jsx("option",{value:"Clarendon",children:"Clarendon"}),r.jsx("option",{value:"Colleton",children:"Colleton"}),r.jsx("option",{value:"Darlington",children:"Darlington"}),r.jsx("option",{value:"Dillon",children:"Dillon"}),r.jsx("option",{value:"Dorchester",children:"Dorchester"}),r.jsx("option",{value:"Edgefield",children:"Edgefield"}),r.jsx("option",{value:"Fairfield",children:"Fairfield"}),r.jsx("option",{value:"Florence",children:"Florence"}),r.jsx("option",{value:"Georgetown",children:"Georgetown"}),r.jsx("option",{value:"Greenville",children:"Greenville"}),r.jsx("option",{value:"Greenwood",children:"Greenwood"}),r.jsx("option",{value:"Hampton",children:"Hampton"}),r.jsx("option",{value:"Horry",children:"Horry"}),r.jsx("option",{value:"Jasper",children:"Jasper"}),r.jsx("option",{value:"Kershaw",children:"Kershaw"}),r.jsx("option",{value:"Lancaster",children:"Lancaster"}),r.jsx("option",{value:"Laurens",children:"Laurens"}),r.jsx("option",{value:"Lee",children:"Lee"}),r.jsx("option",{value:"Lexington",children:"Lexington"}),r.jsx("option",{value:"Marion",children:"Marion"}),r.jsx("option",{value:"Marlboro",children:"Marlboro"}),r.jsx("option",{value:"McCormick",children:"McCormick"}),r.jsx("option",{value:"Newberry",children:"Newberry"}),r.jsx("option",{value:"Oconee",children:"Oconee"}),r.jsx("option",{value:"Orangeburg",children:"Orangeburg"}),r.jsx("option",{value:"Pickens",children:"Pickens"}),r.jsx("option",{value:"Richland",children:"Richland"}),r.jsx("option",{value:"Saluda",children:"Saluda"}),r.jsx("option",{value:"Spartanburg",children:"Spartanburg"}),r.jsx("option",{value:"Sumter",children:"Sumter"}),r.jsx("option",{value:"Union",children:"Union"}),r.jsx("option",{value:"Williamsburg",children:"Williamsburg"}),r.jsx("option",{value:"York",children:"York"})]})]}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Zip",r.jsx("input",{type:"text",className:"form-control",name:"zip",value:c.zip,onChange:m,required:!0})]})}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Parcel",r.jsx("input",{type:"text",className:"form-control",name:"parcel",value:c.parcel,onChange:m,required:!0})]})})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Sub division",r.jsx("input",{type:"text",className:"form-control",name:"subdivision",value:c.subdivision,onChange:m,required:!0})]})}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Legal Description",r.jsx("textarea",{type:"text",className:"form-control",name:"legal",value:c.legal,onChange:m,required:!0})]})}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Cost per SQFT",r.jsx("input",{type:"text",className:"form-control",name:"costpersqft",value:c.costpersqft,onChange:m,required:!0})]})})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsxs("div",{className:"col-md-4",children:["Property Type",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"propertyType",value:c.propertyType,onChange:m,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"Residential",children:"Residential"}),r.jsx("option",{value:"Land",children:"Land"}),r.jsx("option",{value:"Commercial",children:"Commercial"}),r.jsx("option",{value:"Industrial",children:"Industrial"}),r.jsx("option",{value:"Water",children:"Water"})]})]}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Lot Acres/Sqft",r.jsx("input",{type:"text",className:"form-control",name:"lotacres",value:c.lotacres,onChange:m,required:!0})]})}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Year Build",r.jsx("input",{type:"text",className:"form-control",name:"yearBuild",value:c.yearBuild,onChange:m,required:!0})]})})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Total Living SQFT",r.jsx("input",{type:"text",className:"form-control",name:"totallivingsqft",value:c.totallivingsqft,onChange:m,required:!0})]})}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Beds",r.jsx("input",{type:"text",className:"form-control",name:"beds",value:c.beds,onChange:m,required:!0})]})}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Baths",r.jsx("input",{type:"text",className:"form-control",name:"baths",value:c.baths,onChange:m,required:!0})]})})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsxs("div",{className:"col-md-4",children:["Stories",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"stories",value:c.stories,onChange:m,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"0",children:"0"}),r.jsx("option",{value:"1",children:"1"}),r.jsx("option",{value:"2",children:"2"}),r.jsx("option",{value:"3",children:"3"}),r.jsx("option",{value:"4",children:"4"}),r.jsx("option",{value:"5",children:"5"}),r.jsx("option",{value:"6",children:"6"}),r.jsx("option",{value:"7",children:"7"}),r.jsx("option",{value:"8",children:"8"}),r.jsx("option",{value:"9",children:"9"}),r.jsx("option",{value:"10",children:"10"})]})]}),r.jsxs("div",{className:"col-md-4",children:["Garage",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"garage",value:c.garage,onChange:m,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"0",children:"0"}),r.jsx("option",{value:"1",children:"1"}),r.jsx("option",{value:"2",children:"2"}),r.jsx("option",{value:"3",children:"3"}),r.jsx("option",{value:"4",children:"4"}),r.jsx("option",{value:"5",children:"5"})]})]}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Garage SQFT",r.jsx("input",{type:"text",className:"form-control",name:"garagesqft",value:c.garagesqft,onChange:m,required:!0})]})})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsxs("div",{className:"col-md-4",children:["Pool/SPA",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"poolspa",value:c.poolspa,onChange:m,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"N/A",children:"N/A"}),r.jsx("option",{value:"Yes- Pool Only",children:"Yes- Pool Only"}),r.jsx("option",{value:"Yes- SPA only",children:"Yes- SPA only"}),r.jsx("option",{value:"Yes - Both Pool and SPA",children:"Yes - Both Pool and SPA"}),r.jsx("option",{value:"4",children:"None"})]})]}),r.jsxs("div",{className:"col-md-4",children:["Fire places",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"fireplaces",value:c.fireplaces,onChange:m,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"N/A",children:"N/A"}),r.jsx("option",{value:"yes",children:"Yes"}),r.jsx("option",{value:"no",children:"No"})]})]}),r.jsxs("div",{className:"col-md-4",children:["A/C",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"ac",value:c.ac,onChange:m,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"N/A",children:"N/A"}),r.jsx("option",{value:"Central",children:"Central"}),r.jsx("option",{value:"Heat Pump",children:"Heat Pump"}),r.jsx("option",{value:"Warm Air",children:"Warm Air"}),r.jsx("option",{value:"Forced Air",children:"Forced Air"}),r.jsx("option",{value:"Gas",children:"Gas"})]})]})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsxs("div",{className:"col-md-4",children:["Heating",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"heating",value:c.heating,onChange:m,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"N/A",children:"N/A"}),r.jsx("option",{value:"Central",children:"Central"}),r.jsx("option",{value:"Heat Pump",children:"Heat Pump"}),r.jsx("option",{value:"Warm Air",children:"Warm Air"}),r.jsx("option",{value:"Forced Air",children:"Forced Air"}),r.jsx("option",{value:"Gas",children:"Gas"})]})]}),r.jsxs("div",{className:"col-md-4",children:["Building Style",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"buildingstyle",value:c.buildingstyle,onChange:m,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"One Story",children:"One Story"}),r.jsx("option",{value:"Craftsman",children:"Craftsman"}),r.jsx("option",{value:"Log/Cabin",children:"Log/Cabin"}),r.jsx("option",{value:"Split-Level",children:"Split-Level"}),r.jsx("option",{value:"Split-Foyer",children:"Split-Foyer"}),r.jsx("option",{value:"Stick Built",children:"Stick Built"}),r.jsx("option",{value:"Single wide",children:"Single wide"}),r.jsx("option",{value:"Double wide",children:"Double wide"}),r.jsx("option",{value:"Duplex",children:"Duplex"}),r.jsx("option",{value:"Triplex",children:"Triplex"}),r.jsx("option",{value:"Quadruplex",children:"Quadruplex"}),r.jsx("option",{value:"Two Story",children:"Two Story"}),r.jsx("option",{value:"Victorian",children:"Victorian"}),r.jsx("option",{value:"Tudor",children:"Tudor"}),r.jsx("option",{value:"Modern",children:"Modern"}),r.jsx("option",{value:"Art Deco",children:"Art Deco"}),r.jsx("option",{value:"Bungalow",children:"Bungalow"}),r.jsx("option",{value:"Mansion",children:"Mansion"}),r.jsx("option",{value:"Farmhouse",children:"Farmhouse"}),r.jsx("option",{value:"Conventional",children:"Conventional"}),r.jsx("option",{value:"Ranch",children:"Ranch"}),r.jsx("option",{value:"Ranch with Basement",children:"Ranch with Basement"}),r.jsx("option",{value:"Cape Cod",children:"Cape Cod"}),r.jsx("option",{value:"Contemporary",children:"Contemporary"}),r.jsx("option",{value:"Colonial",children:"Colonial"}),r.jsx("option",{value:"Mediterranean",children:"Mediterranean"})]})]}),r.jsxs("div",{className:"col-md-4",children:["Site Vacant",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"sitevacant",value:c.sitevacant,onChange:m,required:!0,children:[r.jsx("option",{value:"",children:"Please select"}),r.jsx("option",{value:"Yes",children:"Yes"}),r.jsx("option",{value:"No",children:"No"})]})]})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsxs("div",{className:"col-md-4",children:["Ext Wall",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"extwall",value:c.extwall,onChange:m,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"N/A",children:"N/A"}),r.jsx("option",{value:"Brick",children:"Brick"}),r.jsx("option",{value:"Brick/Vinyl Siding",children:"Brick/Vinyl Siding"}),r.jsx("option",{value:"Wood/Vinyl Siding",children:"Wood/Vinyl Siding"}),r.jsx("option",{value:"Brick/Wood Siding",children:"Brick/Wood Siding"}),r.jsx("option",{value:"Stone",children:"Stone"}),r.jsx("option",{value:"Masonry",children:"Masonry"}),r.jsx("option",{value:"Metal",children:"Metal"}),r.jsx("option",{value:"Fiberboard",children:"Fiberboard"}),r.jsx("option",{value:"Asphalt Siding",children:"Asphalt Siding"}),r.jsx("option",{value:"Concrete Block",children:"Concrete Block"}),r.jsx("option",{value:"Gable",children:"Gable"}),r.jsx("option",{value:"Brick Veneer",children:"Brick Veneer"}),r.jsx("option",{value:"Frame",children:"Frame"}),r.jsx("option",{value:"Siding",children:"Siding"}),r.jsx("option",{value:"Cement/Wood Fiber Siding",children:"Cement/Wood Fiber Siding"}),r.jsx("option",{value:"Fiber/Cement Siding",children:"Fiber/Cement Siding"}),r.jsx("option",{value:"Wood Siding",children:"Wood Siding"}),r.jsx("option",{value:"Vinyl Siding",children:"Vinyl Siding"}),r.jsx("option",{value:"Aluminium Siding",children:"Aluminium Siding"}),r.jsx("option",{value:"Wood/Vinyl Siding",children:"Alum/Vinyl Siding"})]})]}),r.jsxs("div",{className:"col-md-4",children:["Roofing",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"roofing",value:c.roofing,onChange:m,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"N/A",children:"N/A"}),r.jsx("option",{value:"Asphalt Shingle",children:"Asphalt Shingle"}),r.jsx("option",{value:"Green Roofs",children:"Green Roofs"}),r.jsx("option",{value:"Built-up Roofing",children:"Built-up Roofing"}),r.jsx("option",{value:"Composition Shingle",children:"Composition Shingle"}),r.jsx("option",{value:"Composition Shingle Heavy",children:"Composition Shingle Heavy"}),r.jsx("option",{value:"Solar tiles",children:"Solar tiles"}),r.jsx("option",{value:"Metal",children:"Metal"}),r.jsx("option",{value:"Stone-coated steel",children:"Stone-coated steel"}),r.jsx("option",{value:"Slate",children:"Slate"}),r.jsx("option",{value:"Rubber Slate",children:"Rubber Slate"}),r.jsx("option",{value:"Clay and Concrete tiles",children:"Clay and Concrete tiles"})]})]}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Total SQFT",r.jsx("input",{type:"text",className:"form-control",name:"totalSqft",value:c.totalSqft,onChange:m,required:!0})]})})]}),r.jsxs("h3",{style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:[r.jsx("br",{}),"Property Tax Information"]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),c.propertyTaxInfo.map((f,y)=>r.jsxs("div",{className:"row gy-4",children:[r.jsx("div",{className:"col-md-3",children:r.jsxs("div",{className:"form-floating mb-3",children:["Property Tax Owned",r.jsx("input",{type:"text",className:"form-control",name:"propertytaxowned",value:f.propertytaxowned,onChange:w=>m(w,y,"propertyTaxInfo"),required:!0})]})}),r.jsx("div",{className:"col-md-2",children:r.jsxs("div",{className:"form-floating mb-2",children:["Owned Year",r.jsx("input",{type:"text",className:"form-control",name:"ownedyear",value:f.ownedyear,onChange:w=>m(w,y,"propertyTaxInfo"),required:!0})]})}),r.jsx("div",{className:"col-md-2",children:r.jsxs("div",{className:"form-floating mb-2",children:["Tax Assessed",r.jsx("input",{type:"text",className:"form-control",name:"taxassessed",value:f.taxassessed,onChange:w=>m(w,y,"propertyTaxInfo"),required:!0})]})}),r.jsx("div",{className:"col-md-2",children:r.jsxs("div",{className:"form-floating mb-2",children:["Tax Year",r.jsx("input",{type:"text",className:"form-control",name:"taxyear",value:f.taxyear,onChange:w=>m(w,y,"propertyTaxInfo"),required:!0})]})}),r.jsx("div",{className:"col-md-3",children:r.jsxs("div",{className:"form-floating mb-2",children:[r.jsx("br",{}),r.jsx("button",{className:"btn btn-danger",onClick:()=>h(y),style:{height:"25px",width:"35px"},children:"X"})]})})]},y)),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,y)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:f.title,placeholder:"Image Title",onChange:w=>b(y,w)})}),r.jsxs("div",{className:"col-md-4 d-flex align-items-center",children:[r.jsx(Na,{multiple:!1,onDone:w=>N(w,y)}),r.jsx("button",{type:"button",className:"btn btn-danger",onClick:()=>C(y),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"}})})]})]},y)),r.jsx("button",{type:"button",className:"btn btn-primary",onClick:x,style:{backgroundColor:"#fda417",border:"#fda417"},children:"+ Add Image"}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"mb-3",children:[r.jsx("label",{htmlFor:"googleMapLink",className:"form-label",children:r.jsxs("h3",{style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:["Google Maps Link"," "]})}),r.jsx("input",{type:"text",className:"form-control",name:"googleMapLink",value:c.googleMapLink,onChange:m,placeholder:"Enter Google Maps link"})]}),c.googleMapLink&&r.jsx("iframe",{title:"Google Map",width:"100%",height:"300",src:`https://www.google.com/maps/embed/v1/view?key=YOUR_API_KEY¢er=${c.googleMapLink}&zoom=10`,frameBorder:"0",allowFullScreen:!0})]}),r.jsx("button",{className:"btn btn-primary back",onClick:s,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Go Back"})," ",r.jsx("button",{className:"btn btn-primary continue",onClick:n,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Continue"})]}),e==="Accounting"&&r.jsxs("div",{className:"card",style:{color:"#fda417",border:"1px solid #fda417",padding:"10px",borderRadius:"8px"},children:[r.jsx("br",{}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Close Date A to B",required:!0,disabled:!0})}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"date",className:"form-control",name:"closeDateAtoB",value:c.closeDateAtoB,onChange:f=>{const y=f.target.value;u({...c,closeDateAtoB:y}),$o(y,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 y=f.target.value;u({...c,closeDateBtoC:y}),$o(c.closeDateAtoB,y)},placeholder:"Close Date B to C",style:{textAlign:"right"},required:!0})}),r.jsx("div",{children:r.jsxs("p",{children:[r.jsxs("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:["[M-D-Y] :"," "]}),r.jsx("span",{style:{color:"#000000",fontSize:"14px",fontWeight:"normal"},children:new Date(c.closeDateBtoC).toLocaleDateString("en-US",{month:"numeric",day:"numeric",year:"numeric"})})]})})]}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Renovation Risk"}),r.jsx("div",{className:"col-md-7",children:d.map(f=>r.jsxs("div",{className:"form-check form-check-inline",children:[r.jsx("input",{className:"form-check-input",type:"radio",name:"renovationRisk",id:`renovationRisk${f}`,value:f,checked:c.renovationRisk===f,onChange:y=>{const w=parseInt(y.target.value,10);u({...c,renovationRisk:w})}}),r.jsx("label",{className:"form-check-label",htmlFor:`renovationRisk${f}`,children:f})]},f))})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Rate of Return"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"rateofreturn",value:`$ ${Er().toFixed(2)}`,readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Turn Time"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:il,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 y=f.target.value.replace(/[^\d.]/g,"");const w=/^\d*\.?\d*$/.test(y);u({...c,purchaseCost:y,isPurchaseCostInvalid:!w})},onKeyPress:f=>{const y=f.charCode;(y<48||y>57)&&y!==46&&(f.preventDefault(),u({...c,isPurchaseCostInvalid:!0}))},placeholder:"Enter Purchase Cost",style:{textAlign:"right"},required:!0}),c.isPurchaseCostInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Costs paid out of Closing Hud A to B:"}),c.costPaidAtoB.map((f,y)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:f.title,onChange:w=>T(y,"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,y),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(y),style:{marginLeft:"5px"},children:"x"})})]},y)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{onClick:j,className:"btn btn-primary back",style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Extra Cost"]})}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Purchase Cost"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalPurchaseCosts",value:`$ ${_().toFixed(2)}`,readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Credits received on settlement:"}),c.credits.map((f,y)=>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(y,"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,y),placeholder:"Price",style:{textAlign:"right"},required:!0}),f.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),r.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:r.jsx("button",{className:"btn btn-danger",onClick:()=>z(y),style:{marginLeft:"5px"},children:"x"})})]},y)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:L,style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add credits"]})}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total credits received on settlement"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalcredits",value:Q(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Purchase Cost after Credits Received"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalPurchaseCostsaftercredits",value:Z(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Cash Adjustments:"}),c.cashAdjustments.map((f,y)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:f.title,onChange:w=>G(y,"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,y),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(y),style:{marginLeft:"5px"},children:"x"})})]},y)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:D,style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Cash Adjustments"]})}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Cash Adjustments on Settlement"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalcashAdjustments",value:R(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Cash Required on Settlement"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalcashrequiredonsettlement",value:M(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Incidental Cost:"}),c.incidentalCost.map((f,y)=>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(y,"title",w.target.value),placeholder:"Title",required:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${f.isInvalid?"is-invalid":""}`,value:f.price,onChange:w=>Y(w,y),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(y),style:{marginLeft:"5px"},children:"x"})})]},y)),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,y)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:f.title,onChange:w=>se(y,"title",w.target.value),placeholder:"Title",required:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${f.isInvalid?"is-invalid":""}`,value:f.price,onChange:w=>le(w,y),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(y),style:{marginLeft:"5px"},children:"x"})})]},y)),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,y)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:f.title,onChange:w=>Ct(y,"title",w.target.value),placeholder:"Title",required:!0,style:{fontSize:"10px"}})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${f.isInvalid?"is-invalid":""}`,value:f.price,onChange:w=>zt(w,y),placeholder:"Price",style:{textAlign:"right"},required:!0}),f.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),r.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:r.jsx("button",{className:"btn btn-danger",onClick:()=>Be(y),style:{marginLeft:"5px"},children:"x"})})]},y)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:ge,style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Reno/Construction"]})}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Renovation Cost"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalrenovationCost",value:he(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Renovations & Holding Cost"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalRenovationsandHoldingCost",value:$t(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Costs to Buy A to B"}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:"form-control",name:"totalCoststoBuyAtoB",value:Ye(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0}),c.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Selling Price B to C"}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${c.isPurchaseCostInvalid?"is-invalid":""}`,name:"sellingPriceBtoC",value:c.sellingPriceBtoC,onChange:f=>{const y=f.target.value,w=/^\d*\.?\d*$/.test(y);u({...c,sellingPriceBtoC:y,isPurchaseCostInvalid:!w})},onKeyPress:f=>{const y=f.charCode;(y<48||y>57)&&y!==46&&(f.preventDefault(),u({...c,isPurchaseCostInvalid:!0}))},placeholder:"Enter Purchase Cost",style:{textAlign:"right"},required:!0}),c.isPurchaseCostInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Less:Costs paid out of closing Hud B to C:"}),c.costPaidOutofClosing.map((f,y)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:f.title,onChange:w=>ys(y,"title",w.target.value),placeholder:"Title",required:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${f.isInvalid?"is-invalid":""}`,value:f.price,onChange:w=>js(w,y),placeholder:"Price",style:{textAlign:"right"},required:!0}),f.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),r.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:r.jsx("button",{className:"btn btn-danger",onClick:()=>Zt(y),style:{marginLeft:"5px"},children:"x"})})]},y)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:Qn,style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Cost Paid Out of Closing"]})}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total cost paid out of closing"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalcostPaidOutofClosing",value:Xn(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Cost to Sell B to C"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalCosttoSellBtoC",value:Wt(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Gross Proceeds per HUD"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"grossproceedsperHUD",value:Wt(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Adjustments:"}),c.adjustments.map((f,y)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:f.title,onChange:w=>fe(y,"title",w.target.value),placeholder:"Title",required:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${f.isInvalid?"is-invalid":""}`,value:f.price,onChange:w=>qt(w,y),placeholder:"Price",style:{textAlign:"right"},required:!0}),f.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),r.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:r.jsx("button",{className:"btn btn-danger",onClick:()=>Ut(y),style:{marginLeft:"5px"},children:"x"})})]},y)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:gn,style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Adjustments"]})}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Adjustments"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totaladjustments",value:xn(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Funds Available for distribution"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"fundsavailablefordistribution",value:Bo(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Income Statement Adjustments:"}),c.incomestatement.map((f,y)=>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=>sl(y,"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=>ol(w,y),placeholder:"Price",style:{textAlign:"right"},required:!0}),f.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),r.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:r.jsx("button",{className:"btn btn-danger",onClick:()=>Mo(y),style:{marginLeft:"5px"},children:"x"})})]},y)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:Ns,style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Income Statement"]})}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Income Statement Adjustment"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalincomestatement",value:Cs(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Net B to C Sale Value"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"netBtoCsalevalue",value:Jn(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Net Profit Computation"}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Total Costs to Buy A to B",required:!0,disabled:!0})}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalCoststoBuyAtoBagain",value:Ye(),style:{textAlign:"right"},required:!0})})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Funds Prior to Closing",required:!0,disabled:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${c.isfundspriortoclosingInvalid?"is-invalid":""}`,value:c.fundspriortoclosing,name:"fundspriortoclosing",onChange:f=>{const y=f.target.value,w=/^\d*\.?\d*$/.test(y);u({...c,fundspriortoclosing:y,isfundspriortoclosingInvalid:!w})},onKeyPress:f=>{const y=f.charCode;(y<48||y>57)&&y!==46&&(f.preventDefault(),u({...c,isfundspriortoclosingInvalid:!0}))},style:{textAlign:"right"},required:!0}),c.isfundspriortoclosingInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Net B to C Sale Value",required:!0,disabled:!0})}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"netBtoCsalevalue",value:Jn(),style:{textAlign:"right"},required:!0})})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Short Term Rental",required:!0,disabled:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${c.isPurchaseCostInvalid?"is-invalid":""}`,value:c.shorttermrental,name:"shorttermrental",onChange:f=>{const y=f.target.value,w=/^\d*\.?\d*$/.test(y);u({...c,shorttermrental:y,isPurchaseCostInvalid:!w})},onKeyPress:f=>{const y=f.charCode;(y<48||y>57)&&y!==46&&(f.preventDefault(),u({...c,isPurchaseCostInvalid:!0}))},style:{textAlign:"right"},required:!0}),c.isPurchaseCostInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Other Income",required:!0,disabled:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${c.isPurchaseCostInvalid?"is-invalid":""}`,value:c.OtherIncome,name:"OtherIncome",onChange:f=>{const y=f.target.value,w=/^\d*\.?\d*$/.test(y);u({...c,OtherIncome:y,isPurchaseCostInvalid:!w})},onKeyPress:f=>{const y=f.charCode;(y<48||y>57)&&y!==46&&(f.preventDefault(),u({...c,isPurchaseCostInvalid:!0}))},style:{textAlign:"right"},required:!0}),c.isPurchaseCostInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Insurance Claim",required:!0,disabled:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${c.isPurchaseCostInvalid?"is-invalid":""}`,value:c.InsuranceClaim,name:"InsuranceClaim",onChange:f=>{const y=f.target.value,w=/^\d*\.?\d*$/.test(y);u({...c,InsuranceClaim:y,isPurchaseCostInvalid:!w})},onKeyPress:f=>{const y=f.charCode;(y<48||y>57)&&y!==46&&(f.preventDefault(),u({...c,isPurchaseCostInvalid:!0}))},style:{textAlign:"right"},required:!0}),c.isPurchaseCostInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Long Term Rental",required:!0,disabled:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${c.isPurchaseCostInvalid?"is-invalid":""}`,value:c.LongTermRental,name:"LongTermRental",onChange:f=>{const y=f.target.value,w=/^\d*\.?\d*$/.test(y);u({...c,LongTermRental:y,isPurchaseCostInvalid:!w})},onKeyPress:f=>{const y=f.charCode;(y<48||y>57)&&y!==46&&(f.preventDefault(),u({...c,isPurchaseCostInvalid:!0}))},style:{textAlign:"right"},required:!0}),c.isPurchaseCostInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Net Profit Before Financing Costs"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"netprofitbeforefinancingcosts",value:Zn(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Financing Cost/Other Closing Costs"}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${c.isFinancingCostClosingCostInvalid?"is-invalid":""}`,value:c.FinancingCostClosingCost,name:"FinancingCostClosingCost",onChange:f=>{const y=f.target.value,w=/^\d*\.?\d*$/.test(y);u({...c,FinancingCostClosingCost:y,isFinancingCostClosingCostInvalid:!w})},onKeyPress:f=>{const y=f.charCode;(y<48||y>57)&&y!==46&&(f.preventDefault(),u({...c,isFinancingCostClosingCostInvalid:!0}))},style:{textAlign:"right"},required:!0}),c.isFinancingCostClosingCostInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Net Profit"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"netprofit",value:en(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("button",{className:"btn btn-primary back",onClick:s,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Go Back"})," ",r.jsx("button",{type:"button",className:"btn btn-primary continue",style:{backgroundColor:"#fda417",border:"#fda417"},onClick:n,children:"Continue"})," "]}),r.jsx("br",{})]}),e==="IAB"&&r.jsxs("div",{role:"tabpanel",className:"card tab-pane active",children:[r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Add IAB Links:"}),c.IAB.map((f,y)=>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=>S(y,"title",w.target.value),placeholder:"Title",required:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:"form-control",value:f.URL,onChange:w=>P(y,"URL",w.target.value),placeholder:"URL",style:{textAlign:"right"},required:!0}),f.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid URL."})]}),r.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:r.jsx("button",{className:"btn btn-danger",onClick:()=>ll(y),style:{marginLeft:"5px"},children:"x"})})]},y)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:al,style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add IAB URL"]})}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("h3",{style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:["Upload Files"," "]}),c.images.map((f,y)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:f.title,placeholder:"Image Title",onChange:w=>b(y,w)})}),r.jsxs("div",{className:"col-md-4 d-flex align-items-center",children:[r.jsx(Na,{multiple:!1,onDone:w=>N(w,y)}),r.jsx("button",{type:"button",className:"btn btn-danger",onClick:()=>C(y),style:{marginLeft:"5px"},children:"Delete"})]}),f.file&&r.jsx(r.Fragment,{children:r.jsx("div",{className:"col-md-12",children:r.jsx("img",{src:f.file,alt:"uploaded",style:{width:"150px",height:"150px",objectFit:"cover"}})})})]},y)),r.jsx("button",{type:"button",className:"btn btn-primary",onClick:x,style:{backgroundColor:"#fda417",border:"#fda417"},children:"+ Add Image"}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("button",{className:"btn btn-primary back",onClick:s,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Go Back"})," ",r.jsx("button",{type:"button",className:"btn btn-primary continue",style:{backgroundColor:"#fda417",border:"#fda417"},onClick:bs,children:"Submit"})," "]})]})]})]})})},mt="/assets/propertydummy-DhVEZ7jN.jpg",jb=()=>{var d;const e=Ke(),{user:t}=_e(c=>({...c.auth})),{userProperties:n,totalPages:s}=_e(c=>c.property),[o,i]=k.useState(1),a=5;k.useEffect(()=>{e(Xs({userId:t.result.userId,page:o,limit:a}))},[e,(d=t==null?void 0:t.result)==null?void 0:d.userId,o]);const l=c=>{i(c)};return r.jsx(r.Fragment,{children:n.length>0?r.jsxs(r.Fragment,{children:[r.jsx("ul",{children:n.map(c=>r.jsx("li",{children:r.jsx("div",{className:"container",children:r.jsx("div",{className:"col-md-12",children:r.jsxs("div",{className:"row p-2 bg-white border rounded mt-2",children:[r.jsx("div",{className:"col-md-3 mt-1",children:r.jsx("img",{src:c.images[0].file||mt,className:"w-70",alt:"Img",style:{marginTop:"0px",maxWidth:"200px",maxHeight:"200px"}})}),r.jsxs("div",{className:"col-md-6 mt-1",children:[r.jsxs("h5",{children:[" ",r.jsxs(ae,{to:`/property/${c.propertyId}`,target:"_blank",children:[c.address,"....."]})]}),r.jsx("div",{className:"d-flex flex-row"}),r.jsxs("div",{className:"mt-1 mb-1 spec-1",children:[r.jsx("span",{children:"100% cotton"}),r.jsx("span",{className:"dot"}),r.jsx("span",{children:"Light weight"}),r.jsx("span",{className:"dot"}),r.jsxs("span",{children:["Best finish",r.jsx("br",{})]})]}),r.jsxs("div",{className:"mt-1 mb-1 spec-1",children:[r.jsx("span",{children:"Unique design"}),r.jsx("span",{className:"dot"}),r.jsx("span",{children:"For men"}),r.jsx("span",{className:"dot"}),r.jsxs("span",{children:["Casual",r.jsx("br",{})]})]}),r.jsxs("p",{className:"text-justify text-truncate para mb-0",children:["There are many variations of passages of",r.jsx("br",{}),r.jsx("br",{})]})]}),r.jsx("div",{className:"align-items-center align-content-center col-md-3 border-left mt-1",children:r.jsxs("div",{className:"d-flex flex-column mt-4",children:[r.jsx(ae,{to:`/property/${c.propertyId}`,children:r.jsxs("button",{className:"btn btn-outline-primary btn-sm mt-2",type:"button",style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{className:"fa fa-eye",style:{color:"#F74B02"}})," "," ","View Details"]})}),r.jsx(ae,{to:`/editproperty/${c.propertyId}`,children:r.jsxs("button",{className:"btn btn-outline-primary btn-sm mt-2",type:"button",style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{className:"fa fa-edit",style:{color:"#F74B02"}})," "," ","Edit Details .."]})})]})})]})})})},c._id))}),r.jsxs("div",{className:"pagination",children:[r.jsx("button",{onClick:()=>l(o-1),disabled:o===1,children:"Previous"}),Array.from({length:s},(c,u)=>u+1).map(c=>c===o||c===1||c===s||c>=o-1&&c<=o+1?r.jsx("button",{onClick:()=>l(c),disabled:o===c,children:c},c):c===2||c===s-1?r.jsx("span",{children:"..."},c):null),r.jsx("button",{onClick:()=>l(o+1),disabled:o===s,children:"Next"})]})]}):r.jsx("p",{children:"No active properties found."})})},Nb=()=>{var c,u,p,g,N,x,C,b,m,v,h,j;const{user:e,isLoading:t}=_e(E=>E.auth),n=Ke(),s=hn(),[o,i]=k.useState({userId:((c=e==null?void 0:e.result)==null?void 0:c.userId)||"",title:((u=e==null?void 0:e.result)==null?void 0:u.title)||"",firstName:((p=e==null?void 0:e.result)==null?void 0:p.firstName)||"",middleName:((g=e==null?void 0:e.result)==null?void 0:g.middleName)||"",lastName:((N=e==null?void 0:e.result)==null?void 0:N.lastName)||"",email:((x=e==null?void 0:e.result)==null?void 0:x.email)||"",aboutme:((C=e==null?void 0:e.result)==null?void 0:C.aboutme)||"",city:((b=e==null?void 0:e.result)==null?void 0:b.city)||"",state:((m=e==null?void 0:e.result)==null?void 0:m.state)||"",county:((v=e==null?void 0:e.result)==null?void 0:v.county)||"",zip:((h=e==null?void 0:e.result)==null?void 0:h.zip)||"",profileImage:((j=e==null?void 0:e.result)==null?void 0:j.profileImage)||""});k.useEffect(()=>{e&&i({userId:e.result.userId,title:e.result.title,firstName:e.result.firstName,middleName:e.result.middleName,lastName:e.result.lastName,email:e.result.email,aboutme:e.result.aboutme,city:e.result.city,state:e.result.state,county:e.result.county,zip:e.result.zip,profileImage:e.result.profileImage})},[e]);const a=E=>{i({...o,[E.target.name]:E.target.value})},l=()=>{i({...o,profileImage:""})},d=E=>{E.preventDefault(),n(Pi({formData:o,toast:oe,navigate:s}))};return r.jsx(r.Fragment,{children:r.jsxs("form",{onSubmit:d,children:[r.jsxs("div",{className:"col-4",children:["Title",r.jsxs("select",{className:"form-floating mb-3 form-control","aria-label":"Default select example",name:"title",value:o.title,onChange:a,children:[r.jsx("option",{value:"None",children:"Please Select Title"}),r.jsx("option",{value:"Dr",children:"Dr"}),r.jsx("option",{value:"Prof",children:"Prof"}),r.jsx("option",{value:"Mr",children:"Mr"}),r.jsx("option",{value:"Miss",children:"Miss"})]})]}),r.jsx("div",{className:"col-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["First Name",r.jsx("input",{type:"text",className:"form-control",placeholder:"First Name",required:"required",name:"firstName",value:o.firstName,onChange:a})]})}),r.jsx("div",{className:"col-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Middle Name",r.jsx("input",{type:"text",className:"form-control",placeholder:"Middle Name",required:"required",name:"middleName",value:o.middleName,onChange:a})]})}),r.jsx("div",{className:"col-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Last Name",r.jsx("input",{type:"text",className:"form-control",placeholder:"Last Name",required:"required",name:"lastName",value:o.lastName,onChange:a})]})}),r.jsx("div",{className:"col-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Email",r.jsx("input",{type:"text",className:"form-control",placeholder:"Email",required:"required",name:"email",value:o.email,onChange:a,disabled:!0})]})}),r.jsx("div",{className:"col-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["About me",r.jsx("textarea",{type:"text",id:"aboutme",name:"aboutme",className:"form-control h-100",value:o.aboutme,onChange:a})]})}),r.jsx("div",{className:"col-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["City",r.jsx("input",{type:"text",className:"form-control",name:"city",placeholder:"city",value:o.city,onChange:a,required:!0})]})}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["State",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"state",value:o.state,onChange:a,required:!0,children:[r.jsx("option",{value:"",children:"Please Select State"}),r.jsx("option",{value:"Alaska",children:"Alaska"}),r.jsx("option",{value:"Alabama",children:"Alabama"}),r.jsx("option",{value:"Arkansas",children:"Arkansas"}),r.jsx("option",{value:"Arizona",children:"Arizona"}),r.jsx("option",{value:"California",children:"California"}),r.jsx("option",{value:"Colorado",children:"Colorado"}),r.jsx("option",{value:"Connecticut",children:"Connecticut"}),r.jsx("option",{value:"District Of Columbia",children:"District Of Columbia"}),r.jsx("option",{value:"Delaware",children:"Delaware"}),r.jsx("option",{value:"Florida",children:"Florida"}),r.jsx("option",{value:"Georgia",children:"Georgia"}),r.jsx("option",{value:"Hawaii",children:"Hawaii"}),r.jsx("option",{value:"Iowa",children:"Iowa"}),r.jsx("option",{value:"Idaho",children:"Idaho"}),r.jsx("option",{value:"Illinois",children:"Illinois"}),r.jsx("option",{value:"Indiana",children:"Indiana"}),r.jsx("option",{value:"Kansas",children:"Kansas"}),r.jsx("option",{value:"Kentucky",children:"Kentucky"}),r.jsx("option",{value:"Louisiana",children:"Louisiana"}),r.jsx("option",{value:"Massachusetts",children:"Massachusetts"}),r.jsx("option",{value:"Maryland",children:"Maryland"}),r.jsx("option",{value:"Michigan",children:"Michigan"}),r.jsx("option",{value:"Minnesota",children:"Minnesota"}),r.jsx("option",{value:"Missouri",children:"Missouri"}),r.jsx("option",{value:"Mississippi",children:"Mississippi"}),r.jsx("option",{value:"Montana",children:"Montana"}),r.jsx("option",{value:"North Carolina",children:"North Carolina"}),r.jsx("option",{value:"North Dakota",children:"North Dakota"}),r.jsx("option",{value:"Nebraska",children:"Nebraska"}),r.jsx("option",{value:"New Hampshire",children:"New Hampshire"}),r.jsx("option",{value:"New Jersey",children:"New Jersey"}),r.jsx("option",{value:"New Mexico",children:"New Mexico"}),r.jsx("option",{value:"Nevada",children:"Nevada"}),r.jsx("option",{value:"New York",children:"New York"}),r.jsx("option",{value:"Ohio",children:"Ohio"}),r.jsx("option",{value:"Oklahoma",children:"Oklahoma"}),r.jsx("option",{value:"Oregon",children:"Oregon"}),r.jsx("option",{value:"Pennsylvania",children:"Pennsylvania"}),r.jsx("option",{value:"Rhode Island",children:"Rhode Island"}),r.jsx("option",{value:"South Carolina",children:"South Carolina"}),r.jsx("option",{value:"South Dakota",children:"South Dakota"}),r.jsx("option",{value:"Tennessee",children:"Tennessee"}),r.jsx("option",{value:"Texas",children:"Texas"}),r.jsx("option",{value:"Utah",children:"Utah"}),r.jsx("option",{value:"Virginia",children:"Virginia"}),r.jsx("option",{value:"Vermont",children:"Vermont"}),r.jsx("option",{value:"Washington",children:"Washington"}),r.jsx("option",{value:"Wisconsin",children:"Wisconsin"}),r.jsx("option",{value:"West Virginia",children:"West Virginia"}),r.jsx("option",{value:"Wyoming",children:"Wyoming"})]})]})}),r.jsxs("div",{className:"col-md-4",children:["County",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"county",value:o.county,onChange:a,required:!0,children:[r.jsx("option",{value:"",children:"Please Select County"}),r.jsx("option",{value:"Abbeville",children:"Abbeville"}),r.jsx("option",{value:"Aiken",children:"Aiken"}),r.jsx("option",{value:"Allendale",children:"Allendale"}),r.jsx("option",{value:"Anderson",children:"Anderson"}),r.jsx("option",{value:"Bamberg",children:"Bamberg"}),r.jsx("option",{value:"Barnwell",children:"Barnwell"}),r.jsx("option",{value:"Beaufort",children:"Beaufort"}),r.jsx("option",{value:"Berkeley",children:"Berkeley"}),r.jsx("option",{value:"Calhoun",children:"Calhoun"}),r.jsx("option",{value:"Charleston",children:"Charleston"}),r.jsx("option",{value:"Cherokee",children:"Cherokee"}),r.jsx("option",{value:"Chester",children:"Chester"}),r.jsx("option",{value:"Chesterfield",children:"Chesterfield"}),r.jsx("option",{value:"Clarendon",children:"Clarendon"}),r.jsx("option",{value:"Colleton",children:"Colleton"}),r.jsx("option",{value:"Darlington",children:"Darlington"}),r.jsx("option",{value:"Dillon",children:"Dillon"}),r.jsx("option",{value:"Dorchester",children:"Dorchester"}),r.jsx("option",{value:"Edgefield",children:"Edgefield"}),r.jsx("option",{value:"Fairfield",children:"Fairfield"}),r.jsx("option",{value:"Florence",children:"Florence"}),r.jsx("option",{value:"Georgetown",children:"Georgetown"}),r.jsx("option",{value:"Greenville",children:"Greenville"}),r.jsx("option",{value:"Greenwood",children:"Greenwood"}),r.jsx("option",{value:"Hampton",children:"Hampton"}),r.jsx("option",{value:"Horry",children:"Horry"}),r.jsx("option",{value:"Jasper",children:"Jasper"}),r.jsx("option",{value:"Kershaw",children:"Kershaw"}),r.jsx("option",{value:"Lancaster",children:"Lancaster"}),r.jsx("option",{value:"Laurens",children:"Laurens"}),r.jsx("option",{value:"Lee",children:"Lee"}),r.jsx("option",{value:"Lexington",children:"Lexington"}),r.jsx("option",{value:"Marion",children:"Marion"}),r.jsx("option",{value:"Marlboro",children:"Marlboro"}),r.jsx("option",{value:"McCormick",children:"McCormick"}),r.jsx("option",{value:"Newberry",children:"Newberry"}),r.jsx("option",{value:"Oconee",children:"Oconee"}),r.jsx("option",{value:"Orangeburg",children:"Orangeburg"}),r.jsx("option",{value:"Pickens",children:"Pickens"}),r.jsx("option",{value:"Richland",children:"Richland"}),r.jsx("option",{value:"Saluda",children:"Saluda"}),r.jsx("option",{value:"Spartanburg",children:"Spartanburg"}),r.jsx("option",{value:"Sumter",children:"Sumter"}),r.jsx("option",{value:"Union",children:"Union"}),r.jsx("option",{value:"Williamsburg",children:"Williamsburg"}),r.jsx("option",{value:"York",children:"York"})]})]}),r.jsx("div",{className:"col-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Zip",r.jsx("input",{type:"text",className:"form-control",name:"zip",placeholder:"zip",value:o.zip,onChange:a,required:!0})]})}),r.jsxs("div",{className:"col-4",children:[r.jsx("label",{children:"Profile Image"}),r.jsx("div",{className:"mb-3",children:r.jsx(Na,{type:"file",multiple:!1,onDone:({base64:E})=>i({...o,profileImage:E})})})]}),o.profileImage&&r.jsxs("div",{className:"col-4 mb-3",children:[r.jsx("img",{src:o.profileImage,alt:"Profile Preview",style:{width:"150px",height:"150px",borderRadius:"50%"}}),r.jsx("button",{type:"button",className:"btn btn-danger mt-2",onClick:l,children:"Delete Image"})]}),r.jsx("div",{className:"col-12",children:r.jsx("div",{className:"d-grid",children:r.jsx("button",{className:"btn btn-primary btn-lg",type:"submit",style:{backgroundColor:"#fda417",border:"#fda417"},disabled:t,children:t?"Updating...":"Update"})})})]})})},Cb=()=>{var c;const e=Ke(),{user:t}=_e(u=>({...u.auth})),{userProperties:n,totalPages:s}=_e(u=>u.property),[o,i]=k.useState(1),a=5;k.useEffect(()=>{e(Xs({userId:t.result.userId,page:o,limit:a}))},[e,(c=t==null?void 0:t.result)==null?void 0:c.userId,o]);const l=u=>{i(u)},d=n.filter(u=>u.fundDetails&&u.fundDetails.some(p=>p.fundValue!==void 0&&p.fundPercentage!==void 0&&p.userId));return r.jsx(r.Fragment,{children:d.length>0?r.jsxs(r.Fragment,{children:[r.jsx("ul",{children:d.map(u=>r.jsx("li",{children:r.jsx("div",{className:"container",children:r.jsx("div",{className:"col-md-12",children:r.jsxs("div",{className:"row p-2 bg-white border rounded mt-2",children:[r.jsx("div",{className:"col-md-3 mt-1",children:r.jsx("img",{src:u.images[0].file||mt,className:"w-70",alt:"Img",style:{marginTop:"0px",maxWidth:"200px",maxHeight:"200px"}})}),r.jsxs("div",{className:"col-md-6 mt-1",children:[r.jsxs("h5",{children:[" ",r.jsxs(ae,{to:`/property/${u.propertyId}`,children:[u.address,"....."]})]}),r.jsx("div",{className:"d-flex flex-row"}),r.jsxs("div",{className:"mt-1 mb-1 spec-1",children:[r.jsx("span",{children:"100% cotton"}),r.jsx("span",{className:"dot"}),r.jsx("span",{children:"Light weight"}),r.jsx("span",{className:"dot"}),r.jsxs("span",{children:["Best finish",r.jsx("br",{})]})]}),r.jsxs("div",{className:"mt-1 mb-1 spec-1",children:[r.jsx("span",{children:"Unique design"}),r.jsx("span",{className:"dot"}),r.jsx("span",{children:"For men"}),r.jsx("span",{className:"dot"}),r.jsxs("span",{children:["Casual",r.jsx("br",{})]})]}),r.jsxs("p",{className:"text-justify text-truncate para mb-0",children:["There are many variations of passages of",r.jsx("br",{}),r.jsx("br",{})]})]}),r.jsx("div",{className:"align-items-center align-content-center col-md-3 border-left mt-1",children:r.jsxs("div",{className:"d-flex flex-column mt-4",children:[r.jsx(ae,{to:`/property/${u.propertyId}`,children:r.jsxs("button",{className:"btn btn-outline-primary btn-sm mt-2",type:"button",style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{className:"fa fa-eye",style:{color:"#F74B02"}})," "," ","View Details"]})}),r.jsx(ae,{to:`/editproperty/${u.propertyId}`,children:r.jsxs("button",{className:"btn btn-outline-primary btn-sm mt-2",type:"button",style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{className:"fa fa-edit",style:{color:"#F74B02"}})," "," ","Edit Details .."]})})]})})]})})})},u._id))}),r.jsxs("div",{className:"pagination",children:[r.jsx("button",{onClick:()=>l(o-1),disabled:o===1,children:"Previous"}),Array.from({length:s},(u,p)=>p+1).map(u=>u===o||u===1||u===s||u>=o-1&&u<=o+1?r.jsx("button",{onClick:()=>l(u),disabled:o===u,children:u},u):u===2||u===s-1?r.jsx("span",{children:"..."},u):null),r.jsx("button",{onClick:()=>l(o+1),disabled:o===s,children:"Next"})]})]}):r.jsx("p",{children:"No active properties found."})})},bb=()=>{var c;const e=Ke(),{user:t}=_e(u=>({...u.auth})),{properties:n,totalPages:s}=_e(u=>u.property),[o,i]=k.useState(1),a=5;k.useEffect(()=>{e(mr({page:o,limit:a}))},[e,(c=t==null?void 0:t.result)==null?void 0:c.userId,o]);const l=u=>{i(u)},d=n.filter(u=>u.fundDetails&&u.fundDetails.some(p=>p.fundValue!==void 0&&p.fundPercentage!==void 0&&p.userId===t.result._id));return r.jsx(r.Fragment,{children:d.length>0?r.jsxs(r.Fragment,{children:[r.jsx("ul",{children:d.map(u=>r.jsx("li",{children:r.jsx("div",{className:"container",children:r.jsx("div",{className:"col-md-12",children:r.jsxs("div",{className:"row p-2 bg-white border rounded mt-2",children:[r.jsx("div",{className:"col-md-3 mt-1",children:r.jsx("img",{src:u.images[0].file||mt,className:"w-70",alt:"Img",style:{marginTop:"0px",maxWidth:"200px",maxHeight:"200px"}})}),r.jsxs("div",{className:"col-md-6 mt-1",children:[r.jsxs("h5",{children:[" ",r.jsxs(ae,{to:`/property/${u.propertyId}`,target:"_blank",children:[u.address,"....."]})]}),r.jsx("div",{className:"d-flex flex-row"}),r.jsxs("div",{className:"mt-1 mb-1 spec-1",children:[r.jsx("span",{children:"100% cotton"}),r.jsx("span",{className:"dot"}),r.jsx("span",{children:"Light weight"}),r.jsx("span",{className:"dot"}),r.jsxs("span",{children:["Best finish",r.jsx("br",{})]})]}),r.jsxs("div",{className:"mt-1 mb-1 spec-1",children:[r.jsx("span",{children:"Unique design"}),r.jsx("span",{className:"dot"}),r.jsx("span",{children:"For men"}),r.jsx("span",{className:"dot"}),r.jsxs("span",{children:["Casual",r.jsx("br",{})]})]}),r.jsxs("p",{className:"text-justify text-truncate para mb-0",children:["There are many variations of passages of",r.jsx("br",{}),r.jsx("br",{})]})]}),r.jsx("div",{className:"align-items-center align-content-center col-md-3 border-left mt-1",children:r.jsxs("div",{className:"d-flex flex-column mt-4",children:[r.jsx(ae,{to:`/property/${u.propertyId}`,children:r.jsxs("button",{className:"btn btn-outline-primary btn-sm mt-2",type:"button",style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{className:"fa fa-eye",style:{color:"#F74B02"}})," "," ","View Details"]})}),r.jsx(ae,{to:`/editproperty/${u.propertyId}`,children:r.jsxs("button",{className:"btn btn-outline-primary btn-sm mt-2",type:"button",style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{className:"fa fa-edit",style:{color:"#F74B02"}})," "," ","Edit Details .."]})})]})})]})})})},u._id))}),r.jsxs("div",{className:"pagination",children:[r.jsx("button",{onClick:()=>l(o-1),disabled:o===1,children:"Previous"}),Array.from({length:s},(u,p)=>p+1).map(u=>u===o||u===1||u===s||u>=o-1&&u<=o+1?r.jsx("button",{onClick:()=>l(u),disabled:o===u,children:u},u):u===2||u===s-1?r.jsx("span",{children:"..."},u):null),r.jsx("button",{onClick:()=>l(o+1),disabled:o===s,children:"Next"})]})]}):r.jsx("p",{children:"No active properties found."})})},wb=()=>{var a,l;const{user:e}=_e(d=>({...d.auth}));console.log("user",e);const t=Ke(),[n,s]=k.useState({userId:((a=e==null?void 0:e.result)==null?void 0:a.userId)||"",fundAmount:((l=e==null?void 0:e.result)==null?void 0:l.fundAmount)||""});k.useEffect(()=>{var d,c;e&&s({userId:(d=e==null?void 0:e.result)==null?void 0:d.userId,fundAmount:(c=e==null?void 0:e.result)==null?void 0:c.fundAmount})},[e]);const o=d=>{s({...n,[d.target.name]:d.target.value})},i=d=>{if(d.preventDefault(),n.fundAmount<=0)return oe.error("Please enter a valid funding amount greater than 0");t(_i({formData:n,toast:oe}))};return r.jsx(r.Fragment,{children:r.jsxs("form",{onSubmit:i,children:[r.jsx("div",{className:"col-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Willing to Invest",r.jsx("input",{type:"text",className:"form-control",placeholder:"Enter Fund Amount",name:"fundAmount",value:n.fundAmount,onChange:o})]})}),r.jsx("div",{className:"col-12",children:r.jsx("div",{className:"d-grid",children:r.jsx("button",{className:"btn btn-primary btn-lg",type:"submit",style:{backgroundColor:"#fda417",border:"#fda417"},children:"submit"})})})]})})},kb=()=>{const[e,t]=k.useState("dashboard"),{user:n}=_e(o=>o.auth),s=()=>{switch(e){case"Userdetails":return r.jsx(Nb,{});case"FundToInvest":return r.jsx(wb,{});case"addProperty":return r.jsx(sg,{});case"activeProperties":return r.jsxs("div",{children:[r.jsx("h3",{children:"Active Properties"}),r.jsx(jb,{})]});case"Fundings Received":return r.jsxs("div",{children:[r.jsx("h3",{children:"Fundings Received"}),r.jsx(Cb,{})]});case"Offers Submitted":return r.jsxs("div",{children:[r.jsx("h3",{children:"Offers Submitted"}),r.jsx(bb,{})]});case"closedProperties":return r.jsx("p",{children:"These are your closed properties."});default:return r.jsx(r.Fragment,{})}};return r.jsxs(r.Fragment,{children:[r.jsx(Le,{}),r.jsx("br",{})," ",r.jsx("br",{}),r.jsxs("div",{className:"d-flex",style:{margin:"0",padding:"0"},children:[r.jsx("div",{className:"col-md-3 p-1",style:{paddingRight:"2px",margin:"0"},children:r.jsxs("div",{className:"card card1 p-5",children:[r.jsx("img",{className:"img-fluid",src:n.result.profileImage||Bs,alt:"ProfileImage",style:{maxWidth:"250px",maxHeight:"250px"}}),r.jsx("hr",{className:"hline"}),r.jsxs("div",{className:"d-flex flex-column align-items-center",children:[r.jsxs("button",{className:`btn ${e==="dashboard"?"active":""}`,onClick:()=>t("dashboard"),children:[r.jsx("i",{className:"fa fa-dashboard",style:{color:"#F74B02"}}),r.jsx("span",{children:"Dashboard"})]}),r.jsx("button",{className:`btn mt-3 ${e==="Userdetails"?"active":""}`,onClick:()=>t("Userdetails"),children:r.jsx("span",{children:"User Profile"})}),r.jsx("button",{className:`btn mt-3 ${e==="FundToInvest"?"active":""}`,onClick:()=>t("FundToInvest"),children:r.jsx("span",{children:"Fund To Invest"})}),r.jsx("button",{className:`btn mt-3 ${e==="addProperty"?"active":""}`,onClick:()=>t("addProperty"),children:r.jsx("span",{children:"Add Property"})}),r.jsx("button",{className:`btn mt-3 ${e==="activeProperties"?"active":""}`,onClick:()=>t("activeProperties"),children:r.jsx("span",{children:"Active Properties"})}),r.jsx("button",{className:`btn mt-3 ${e==="Fundings Received"?"active":""}`,onClick:()=>t("Fundings Received"),children:r.jsx("span",{children:"Fundings Received"})}),r.jsx("button",{className:`btn mt-3 ${e==="Offers Submitted"?"active":""}`,onClick:()=>t("Offers Submitted"),children:r.jsx("span",{children:"Offers Submitted"})}),r.jsx("button",{className:`btn mt-3 ${e==="closedProperties"?"active":""}`,onClick:()=>t("closedProperties"),children:r.jsx("span",{children:"Closed Properties"})})]})]})}),r.jsx("div",{className:"col-md-9 p-1",style:{paddingLeft:"2px",margin:"0"},children:r.jsxs("div",{className:"card card2 p-2",children:[r.jsxs("span",{children:[r.jsx("br",{})," ",r.jsx("br",{}),"Welcome to"," ",r.jsx("span",{style:{color:"#067ADC"},children:r.jsxs(ae,{to:`/profile/${n.result.userId}`,className:"link-primary text-decoration-none",children:[n.result.title,". ",n.result.firstName," ",n.result.middleName," ",n.result.lastName]})}),r.jsx("span",{style:{color:"#067ADC"},children:r.jsx(ae,{to:"/addproperty",className:"link-primary text-decoration-none",children:"add"})})]}),e==="dashboard"&&r.jsxs(r.Fragment,{children:[r.jsx("br",{}),r.jsxs("div",{className:"banner_taital",children:[r.jsxs("h1",{style:{color:"#fda417",fontSize:"30px",padding:"10px",fontWeight:"normal"},className:"services_taital",children:["Now you are accessing the world's only portal which has Streamlined the",r.jsxs("h1",{style:{fontSize:"30px",padding:"10px",fontWeight:"normal"},children:[" ","investor-borrower interactions,"," "]})]}),r.jsxs("h1",{className:"services_taital",style:{color:"#fda417",fontSize:"30px",padding:"10px",fontWeight:"normal"},children:["gaining complete visibility into your data, and using smart filters to",r.jsxs("h1",{className:"services_taital",style:{fontSize:"30px",padding:"10px",fontWeight:"normal"},children:["create automatic workflows"," "]})]}),r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{}),r.jsx("br",{})]})]}),r.jsx("br",{}),s()]})})]}),r.jsx(tt,{})]})};var og={exports:{}},Sb="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",Eb=Sb,Pb=Eb;function ig(){}function ag(){}ag.resetWarningCache=ig;var _b=function(){function e(s,o,i,a,l,d){if(d!==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:ag,resetWarningCache:ig};return n.PropTypes=n,n};og.exports=_b();var Tb=og.exports;const Lt=ko(Tb),Ob=()=>{const[e,t]=k.useState(3),n=hn();return k.useEffect(()=>{const s=setInterval(()=>{t(o=>--o)},1e3);return e===0&&n("/login"),()=>clearInterval(s)},[e,n]),r.jsx("div",{style:{marginTop:"100px"},children:r.jsxs("h5",{children:["Redirecting you in ",e," seconds"]})})},Ms=({children:e})=>{const{user:t}=_e(n=>({...n.auth}));return t?e:r.jsx(Ob,{})};Ms.propTypes={children:Lt.node.isRequired};const Ab=()=>{const e=Ke(),{id:t,token:n}=gs();return k.useEffect(()=>{e(Oi({id:t,token:n}))},[e,t,n]),r.jsxs(r.Fragment,{children:[r.jsx(Le,{}),r.jsxs("div",{className:"contact_section layout_padding",children:[r.jsx("div",{className:"container",children:r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-md-12",children:r.jsx("h1",{className:"contact_taital",children:"Contact Us"})})})}),r.jsx("div",{className:"container-fluid",children:r.jsx("div",{className:"contact_section_2",children:r.jsxs("div",{className:"row",children:[r.jsxs("div",{className:"col-md-6",children:[r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("h1",{className:"card-title text-center",children:r.jsxs(ae,{to:"/login",className:"glightbox play-btn mb-4",children:[" ","Email verified successfully !!! Please",r.jsx("span",{style:{color:"#F74B02"},children:" login "})," "," ","to access ..."]})})]}),r.jsx("div",{className:"col-md-6 padding_left_15",children:r.jsx("div",{className:"contact_img"})})]})})})]}),r.jsx(tt,{})]})},Rb=()=>{const[e,t]=k.useState(""),[n,s]=k.useState(""),o="http://67.225.129.127:3002",i=async()=>{try{const a=await me.post(`${o}/users/forgotpassword`,{email:e});s(a.data.message)}catch(a){console.error("Forgot Password Error:",a),s(a.response.data.message)}};return r.jsxs(r.Fragment,{children:[r.jsx(Le,{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsxs("section",{className:"card",style:{minHeight:"100vh",backgroundColor:"#FFFFFF"},children:[r.jsx("div",{className:"container-fluid px-0",children:r.jsxs("div",{className:"row gy-4 align-items-center justify-content-center",children:[r.jsx("div",{className:"col-12 col-md-0 col-xl-20 text-center text-md-start"}),r.jsx("div",{className:"col-12 col-md-6 col-xl-5",children:r.jsx("div",{className:"card border-0 rounded-4 shadow-lg",style:{width:"100%"},children:r.jsxs("div",{className:"card-body p-3 p-md-4 p-xl-5",children:[r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-12",children:r.jsxs("div",{className:"mb-4",children:[r.jsx("h2",{className:"h3",children:"Forgot Password"}),r.jsx("hr",{})]})})}),r.jsxs("div",{className:"row gy-3 overflow-hidden",children:[r.jsx("div",{className:"col-12",children:r.jsxs("div",{className:"form-floating mb-3",children:[r.jsx("input",{type:"email",className:"form-control",value:e,onChange:a=>t(a.target.value),placeholder:"name@example.com",required:"required"}),r.jsx("label",{htmlFor:"email",className:"form-label",children:"Enter your email address to receive a password reset link"})]})}),r.jsxs("div",{className:"col-12",children:[r.jsx("div",{className:"d-grid",children:r.jsx("button",{className:"btn btn-primary btn-lg",type:"submit",style:{backgroundColor:"#fda417",border:"#fda417"},onClick:i,children:"Reset Password"})}),r.jsx("p",{style:{color:"#067ADC"},className:"card-title text-center",children:n})]})]}),r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-12",children:r.jsx("div",{className:"d-flex gap-2 gap-md-4 flex-column flex-md-row justify-content-md-end mt-4",children:r.jsxs("p",{className:"m-0 text-secondary text-center",children:["Already have an account?"," ",r.jsx(ae,{to:"/login",className:"link-primary text-decoration-none",children:"Sign In"})]})})})}),r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-12"})})]})})})]})}),r.jsx(tt,{})]})]})},Ib=()=>{const{userId:e,token:t}=gs(),[n,s]=k.useState(""),[o,i]=k.useState(""),[a,l]=k.useState(""),d="http://67.225.129.127:3002",c=async()=>{try{if(!n||n.trim()===""){l("Password not entered"),oe.error("Password not entered");return}const u=await me.post(`${d}/users/resetpassword/${e}/${t}`,{userId:e,token:t,password:n});if(n!==o){l("Passwords do not match."),oe.error("Passwords do not match.");return}else l("Password reset successfull"),oe.success(u.data.message)}catch(u){console.error("Reset Password Error:",u)}};return k.useEffect(()=>{oe.dismiss()},[]),r.jsxs(r.Fragment,{children:[r.jsx(Le,{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("section",{className:"card mb-0 vh-100",children:r.jsx("div",{className:"container py-10 h-100",children:r.jsx("div",{className:"row d-flex align-items-center justify-content-center h-100",children:r.jsxs("div",{className:"col-md-10 col-lg-5 col-xl-5 offset-xl-1 card mb-10",children:[r.jsx("br",{}),r.jsxs("h2",{children:["Reset Password",r.jsx("hr",{}),r.jsx("p",{className:"card-title text-center",style:{color:"#F74B02"},children:"Enter your new password:"})]}),r.jsx("input",{className:"form-control vh-10",type:"password",value:n,onChange:u=>s(u.target.value),placeholder:"Enter your new password",style:{display:"flex",gap:"35px"}}),r.jsx("br",{}),r.jsx("input",{className:"form-control",type:"password",value:o,onChange:u=>i(u.target.value),placeholder:"Confirm your new password"}),r.jsx("br",{}),r.jsx("button",{className:"btn btn-primary btn-lg",type:"submit",name:"signin",value:"Sign in",onClick:c,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Reset Password"}),r.jsx("p",{style:{color:"#067ADC"},className:"card-title text-center",children:a})]})})})}),r.jsx(tt,{})]})},Fb=()=>r.jsxs(r.Fragment,{children:[r.jsx(Le,{}),r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{}),r.jsxs("div",{className:"col-md-18",children:[r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsxs("h1",{className:"card-title text-center",children:[" ","Thank you for joining the world’s most trusted portal for real estate investments and borrowing."]}),r.jsxs("h2",{children:["We reqest you to kindly ",r.jsx("span",{style:{fontSize:"2rem",color:"#fda417"},children:"check your email inbox "})," and click on the ",r.jsx("span",{style:{fontSize:"2rem",color:"#fda417"},children:"verification link "}),"to access the dashboard."]})]}),r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{}),r.jsx(tt,{})]});var lg={exports:{}};/*!
Copyright (c) 2018 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
-*/(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var i="",a=0;a{i.target===e&&(o(),t(i))},n+s)}function nw(e){e.offsetHeight}const _p=e=>!e||typeof e=="function"?e:t=>{e.current=t};function rw(e,t){const n=_p(e),s=_p(t);return o=>{n&&n(o),s&&s(o)}}function Lo(e,t){return S.useMemo(()=>rw(e,t),[e,t])}function sw(e){return e&&"setState"in e?qr.findDOMNode(e):e??null}const ow=I.forwardRef(({onEnter:e,onEntering:t,onEntered:n,onExit:s,onExiting:o,onExited:i,addEndListener:a,children:l,childRef:d,...c},u)=>{const p=S.useRef(null),g=Lo(p,d),N=T=>{g(sw(T))},x=T=>O=>{T&&p.current&&T(p.current,O)},C=S.useCallback(x(e),[e]),b=S.useCallback(x(t),[t]),m=S.useCallback(x(n),[n]),v=S.useCallback(x(s),[s]),h=S.useCallback(x(o),[o]),j=S.useCallback(x(i),[i]),E=S.useCallback(x(a),[a]);return r.jsx(vn,{ref:u,...c,onEnter:C,onEntered:m,onEntering:b,onExit:v,onExited:j,onExiting:h,addEndListener:E,nodeRef:p,children:typeof l=="function"?(T,O)=>l(T,{...O,ref:N}):I.cloneElement(l,{ref:N})})});function iw(e){const t=S.useRef(e);return S.useEffect(()=>{t.current=e},[e]),t}function Gt(e){const t=iw(e);return S.useCallback(function(...n){return t.current&&t.current(...n)},[t])}const aw=e=>S.forwardRef((t,n)=>r.jsx("div",{...t,ref:n,className:ye(t.className,e)}));function lw(){return S.useState(null)}function cw(){const e=S.useRef(!0),t=S.useRef(()=>e.current);return S.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),t.current}function dw(e){const t=S.useRef(null);return S.useEffect(()=>{t.current=e}),t.current}const uw=typeof global<"u"&&global.navigator&&global.navigator.product==="ReactNative",fw=typeof document<"u",Tp=fw||uw?S.useLayoutEffect:S.useEffect,pw=["as","disabled"];function mw(e,t){if(e==null)return{};var n={};for(var s in e)if({}.hasOwnProperty.call(e,s)){if(t.indexOf(s)>=0)continue;n[s]=e[s]}return n}function hw(e){return!e||e.trim()==="#"}function fg({tagName:e,disabled:t,href:n,target:s,rel:o,role:i,onClick:a,tabIndex:l=0,type:d}){e||(n!=null||s!=null||o!=null?e="a":e="button");const c={tagName:e};if(e==="button")return[{type:d||"button",disabled:t},c];const u=g=>{if((t||e==="a"&&hw(n))&&g.preventDefault(),t){g.stopPropagation();return}a==null||a(g)},p=g=>{g.key===" "&&(g.preventDefault(),u(g))};return e==="a"&&(n||(n="#"),t&&(n=void 0)),[{role:i??"button",disabled:void 0,tabIndex:t?void 0:l,href:n,target:e==="a"?s:void 0,"aria-disabled":t||void 0,rel:e==="a"?o:void 0,onClick:u,onKeyDown:p},c]}const vw=S.forwardRef((e,t)=>{let{as:n,disabled:s}=e,o=mw(e,pw);const[i,{tagName:a}]=fg(Object.assign({tagName:n,disabled:s},o));return r.jsx(a,Object.assign({},o,i,{ref:t}))});vw.displayName="Button";function gw(e){return e.code==="Escape"||e.keyCode===27}function pg(){const e=S.version.split(".");return{major:+e[0],minor:+e[1],patch:+e[2]}}const xw={[kn]:"show",[ir]:"show"},_u=S.forwardRef(({className:e,children:t,transitionClasses:n={},onEnter:s,...o},i)=>{const a={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1,...o},l=S.useCallback((u,p)=>{nw(u),s==null||s(u,p)},[s]),{major:d}=pg(),c=d>=19?t.props.ref:t.ref;return r.jsx(ow,{ref:i,addEndListener:tw,...a,onEnter:l,childRef:c,children:(u,p)=>S.cloneElement(t,{...p,className:ye("fade",e,t.props.className,xw[u],n[u])})})});_u.displayName="Fade";const yw={"aria-label":Lt.string,onClick:Lt.func,variant:Lt.oneOf(["white"])},Tu=S.forwardRef(({className:e,variant:t,"aria-label":n="Close",...s},o)=>r.jsx("button",{ref:o,type:"button",className:ye("btn-close",t&&`btn-close-${t}`,e),"aria-label":n,...s}));Tu.displayName="CloseButton";Tu.propTypes=yw;const mg=S.forwardRef(({as:e,bsPrefix:t,variant:n="primary",size:s,active:o=!1,disabled:i=!1,className:a,...l},d)=>{const c=Ie(t,"btn"),[u,{tagName:p}]=fg({tagName:e,disabled:i,...l}),g=p;return r.jsx(g,{...u,...l,ref:d,disabled:i,className:ye(a,c,o&&"active",n&&`${c}-${n}`,s&&`${c}-${s}`,l.href&&i&&"disabled")})});mg.displayName="Button";function jw(e){const t=S.useRef(e);return t.current=e,t}function hg(e){const t=jw(e);S.useEffect(()=>()=>t.current(),[])}function Nw(e,t){return S.Children.toArray(e).some(n=>S.isValidElement(n)&&n.type===t)}function Cw({as:e,bsPrefix:t,className:n,...s}){t=Ie(t,"col");const o=$b(),i=Wb(),a=[],l=[];return o.forEach(d=>{const c=s[d];delete s[d];let u,p,g;typeof c=="object"&&c!=null?{span:u,offset:p,order:g}=c:u=c;const N=d!==i?`-${d}`:"";u&&a.push(u===!0?`${t}${N}`:`${t}${N}-${u}`),g!=null&&l.push(`order${N}-${g}`),p!=null&&l.push(`offset${N}-${p}`)}),[{...s,className:ye(n,...a,...l)},{as:e,bsPrefix:t,spans:a}]}const vg=S.forwardRef((e,t)=>{const[{className:n,...s},{as:o="div",bsPrefix:i,spans:a}]=Cw(e);return r.jsx(o,{...s,ref:t,className:ye(n,!a.length&&i)})});vg.displayName="Col";var bw=Function.prototype.bind.call(Function.prototype.call,[].slice);function Tr(e,t){return bw(e.querySelectorAll(t))}function Op(e,t){if(e.contains)return e.contains(t);if(e.compareDocumentPosition)return e===t||!!(e.compareDocumentPosition(t)&16)}const ww="data-rr-ui-";function Sw(e){return`${ww}${e}`}const gg=S.createContext(xs?window:void 0);gg.Provider;function Ou(){return S.useContext(gg)}const kw={type:Lt.string,tooltip:Lt.bool,as:Lt.elementType},rl=S.forwardRef(({as:e="div",className:t,type:n="valid",tooltip:s=!1,...o},i)=>r.jsx(e,{...o,ref:i,className:ye(t,`${n}-${s?"tooltip":"feedback"}`)}));rl.displayName="Feedback";rl.propTypes=kw;const pn=S.createContext({}),Au=S.forwardRef(({id:e,bsPrefix:t,className:n,type:s="checkbox",isValid:o=!1,isInvalid:i=!1,as:a="input",...l},d)=>{const{controlId:c}=S.useContext(pn);return t=Ie(t,"form-check-input"),r.jsx(a,{...l,ref:d,type:s,id:e||c,className:ye(n,t,o&&"is-valid",i&&"is-invalid")})});Au.displayName="FormCheckInput";const ba=S.forwardRef(({bsPrefix:e,className:t,htmlFor:n,...s},o)=>{const{controlId:i}=S.useContext(pn);return e=Ie(e,"form-check-label"),r.jsx("label",{...s,ref:o,htmlFor:n||i,className:ye(t,e)})});ba.displayName="FormCheckLabel";const xg=S.forwardRef(({id:e,bsPrefix:t,bsSwitchPrefix:n,inline:s=!1,reverse:o=!1,disabled:i=!1,isValid:a=!1,isInvalid:l=!1,feedbackTooltip:d=!1,feedback:c,feedbackType:u,className:p,style:g,title:N="",type:x="checkbox",label:C,children:b,as:m="input",...v},h)=>{t=Ie(t,"form-check"),n=Ie(n,"form-switch");const{controlId:j}=S.useContext(pn),E=S.useMemo(()=>({controlId:e||j}),[j,e]),T=!b&&C!=null&&C!==!1||Nw(b,ba),O=r.jsx(Au,{...v,type:x==="switch"?"checkbox":x,ref:h,isValid:a,isInvalid:l,disabled:i,as:m});return r.jsx(pn.Provider,{value:E,children:r.jsx("div",{style:g,className:ye(p,T&&t,s&&`${t}-inline`,o&&`${t}-reverse`,x==="switch"&&n),children:b||r.jsxs(r.Fragment,{children:[O,T&&r.jsx(ba,{title:N,children:C}),c&&r.jsx(rl,{type:u,tooltip:d,children:c})]})})})});xg.displayName="FormCheck";const wa=Object.assign(xg,{Input:Au,Label:ba}),yg=S.forwardRef(({bsPrefix:e,type:t,size:n,htmlSize:s,id:o,className:i,isValid:a=!1,isInvalid:l=!1,plaintext:d,readOnly:c,as:u="input",...p},g)=>{const{controlId:N}=S.useContext(pn);return e=Ie(e,"form-control"),r.jsx(u,{...p,type:t,size:s,ref:g,readOnly:c,id:o||N,className:ye(i,d?`${e}-plaintext`:e,n&&`${e}-${n}`,t==="color"&&`${e}-color`,a&&"is-valid",l&&"is-invalid")})});yg.displayName="FormControl";const Ew=Object.assign(yg,{Feedback:rl}),jg=S.forwardRef(({className:e,bsPrefix:t,as:n="div",...s},o)=>(t=Ie(t,"form-floating"),r.jsx(n,{ref:o,className:ye(e,t),...s})));jg.displayName="FormFloating";const Ru=S.forwardRef(({controlId:e,as:t="div",...n},s)=>{const o=S.useMemo(()=>({controlId:e}),[e]);return r.jsx(pn.Provider,{value:o,children:r.jsx(t,{...n,ref:s})})});Ru.displayName="FormGroup";const Ng=S.forwardRef(({as:e="label",bsPrefix:t,column:n=!1,visuallyHidden:s=!1,className:o,htmlFor:i,...a},l)=>{const{controlId:d}=S.useContext(pn);t=Ie(t,"form-label");let c="col-form-label";typeof n=="string"&&(c=`${c} ${c}-${n}`);const u=ye(o,t,s&&"visually-hidden",n&&c);return i=i||d,n?r.jsx(vg,{ref:l,as:"label",className:u,htmlFor:i,...a}):r.jsx(e,{ref:l,className:u,htmlFor:i,...a})});Ng.displayName="FormLabel";const Cg=S.forwardRef(({bsPrefix:e,className:t,id:n,...s},o)=>{const{controlId:i}=S.useContext(pn);return e=Ie(e,"form-range"),r.jsx("input",{...s,type:"range",ref:o,className:ye(t,e),id:n||i})});Cg.displayName="FormRange";const bg=S.forwardRef(({bsPrefix:e,size:t,htmlSize:n,className:s,isValid:o=!1,isInvalid:i=!1,id:a,...l},d)=>{const{controlId:c}=S.useContext(pn);return e=Ie(e,"form-select"),r.jsx("select",{...l,size:n,ref:d,className:ye(s,e,t&&`${e}-${t}`,o&&"is-valid",i&&"is-invalid"),id:a||c})});bg.displayName="FormSelect";const wg=S.forwardRef(({bsPrefix:e,className:t,as:n="small",muted:s,...o},i)=>(e=Ie(e,"form-text"),r.jsx(n,{...o,ref:i,className:ye(t,e,s&&"text-muted")})));wg.displayName="FormText";const Sg=S.forwardRef((e,t)=>r.jsx(wa,{...e,ref:t,type:"switch"}));Sg.displayName="Switch";const Pw=Object.assign(Sg,{Input:wa.Input,Label:wa.Label}),kg=S.forwardRef(({bsPrefix:e,className:t,children:n,controlId:s,label:o,...i},a)=>(e=Ie(e,"form-floating"),r.jsxs(Ru,{ref:a,className:ye(t,e),controlId:s,...i,children:[n,r.jsx("label",{htmlFor:s,children:o})]})));kg.displayName="FloatingLabel";const _w={_ref:Lt.any,validated:Lt.bool,as:Lt.elementType},Iu=S.forwardRef(({className:e,validated:t,as:n="form",...s},o)=>r.jsx(n,{...s,ref:o,className:ye(e,t&&"was-validated")}));Iu.displayName="Form";Iu.propTypes=_w;const er=Object.assign(Iu,{Group:Ru,Control:Ew,Floating:jg,Check:wa,Switch:Pw,Label:Ng,Text:wg,Range:Cg,Select:bg,FloatingLabel:kg});var di;function Ap(e){if((!di&&di!==0||e)&&xs){var t=document.createElement("div");t.style.position="absolute",t.style.top="-9999px",t.style.width="50px",t.style.height="50px",t.style.overflow="scroll",document.body.appendChild(t),di=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return di}function ic(e){e===void 0&&(e=nl());try{var t=e.activeElement;return!t||!t.nodeName?null:t}catch{return e.body}}function Tw(e=document){const t=e.defaultView;return Math.abs(t.innerWidth-e.documentElement.clientWidth)}const Rp=Sw("modal-open");class Fu{constructor({ownerDocument:t,handleContainerOverflow:n=!0,isRTL:s=!1}={}){this.handleContainerOverflow=n,this.isRTL=s,this.modals=[],this.ownerDocument=t}getScrollbarWidth(){return Tw(this.ownerDocument)}getElement(){return(this.ownerDocument||document).body}setModalAttributes(t){}removeModalAttributes(t){}setContainerStyle(t){const n={overflow:"hidden"},s=this.isRTL?"paddingLeft":"paddingRight",o=this.getElement();t.style={overflow:o.style.overflow,[s]:o.style[s]},t.scrollBarWidth&&(n[s]=`${parseInt(vr(o,s)||"0",10)+t.scrollBarWidth}px`),o.setAttribute(Rp,""),vr(o,n)}reset(){[...this.modals].forEach(t=>this.remove(t))}removeContainerStyle(t){const n=this.getElement();n.removeAttribute(Rp),Object.assign(n.style,t.style)}add(t){let n=this.modals.indexOf(t);return n!==-1||(n=this.modals.length,this.modals.push(t),this.setModalAttributes(t),n!==0)||(this.state={scrollBarWidth:this.getScrollbarWidth(),style:{}},this.handleContainerOverflow&&this.setContainerStyle(this.state)),n}remove(t){const n=this.modals.indexOf(t);n!==-1&&(this.modals.splice(n,1),!this.modals.length&&this.handleContainerOverflow&&this.removeContainerStyle(this.state),this.removeModalAttributes(t))}isTopModal(t){return!!this.modals.length&&this.modals[this.modals.length-1]===t}}const ac=(e,t)=>xs?e==null?(t||nl()).body:(typeof e=="function"&&(e=e()),e&&"current"in e&&(e=e.current),e&&("nodeType"in e||e.getBoundingClientRect)?e:null):null;function Ow(e,t){const n=Ou(),[s,o]=S.useState(()=>ac(e,n==null?void 0:n.document));if(!s){const i=ac(e);i&&o(i)}return S.useEffect(()=>{},[t,s]),S.useEffect(()=>{const i=ac(e);i!==s&&o(i)},[e,s]),s}function Aw({children:e,in:t,onExited:n,mountOnEnter:s,unmountOnExit:o}){const i=S.useRef(null),a=S.useRef(t),l=Gt(n);S.useEffect(()=>{t?a.current=!0:l(i.current)},[t,l]);const d=Lo(i,e.ref),c=S.cloneElement(e,{ref:d});return t?c:o||!a.current&&s?null:c}const Rw=["onEnter","onEntering","onEntered","onExit","onExiting","onExited","addEndListener","children"];function Iw(e,t){if(e==null)return{};var n={};for(var s in e)if({}.hasOwnProperty.call(e,s)){if(t.indexOf(s)>=0)continue;n[s]=e[s]}return n}function Fw(e){let{onEnter:t,onEntering:n,onEntered:s,onExit:o,onExiting:i,onExited:a,addEndListener:l,children:d}=e,c=Iw(e,Rw);const{major:u}=pg(),p=u>=19?d.props.ref:d.ref,g=S.useRef(null),N=Lo(g,typeof d=="function"?null:p),x=T=>O=>{T&&g.current&&T(g.current,O)},C=S.useCallback(x(t),[t]),b=S.useCallback(x(n),[n]),m=S.useCallback(x(s),[s]),v=S.useCallback(x(o),[o]),h=S.useCallback(x(i),[i]),j=S.useCallback(x(a),[a]),E=S.useCallback(x(l),[l]);return Object.assign({},c,{nodeRef:g},t&&{onEnter:C},n&&{onEntering:b},s&&{onEntered:m},o&&{onExit:v},i&&{onExiting:h},a&&{onExited:j},l&&{addEndListener:E},{children:typeof d=="function"?(T,O)=>d(T,Object.assign({},O,{ref:N})):S.cloneElement(d,{ref:N})})}const Dw=["component"];function Lw(e,t){if(e==null)return{};var n={};for(var s in e)if({}.hasOwnProperty.call(e,s)){if(t.indexOf(s)>=0)continue;n[s]=e[s]}return n}const Bw=S.forwardRef((e,t)=>{let{component:n}=e,s=Lw(e,Dw);const o=Fw(s);return r.jsx(n,Object.assign({ref:t},o))});function Mw({in:e,onTransition:t}){const n=S.useRef(null),s=S.useRef(!0),o=Gt(t);return Tp(()=>{if(!n.current)return;let i=!1;return o({in:e,element:n.current,initial:s.current,isStale:()=>i}),()=>{i=!0}},[e,o]),Tp(()=>(s.current=!1,()=>{s.current=!0}),[]),n}function zw({children:e,in:t,onExited:n,onEntered:s,transition:o}){const[i,a]=S.useState(!t);t&&i&&a(!1);const l=Mw({in:!!t,onTransition:c=>{const u=()=>{c.isStale()||(c.in?s==null||s(c.element,c.initial):(a(!0),n==null||n(c.element)))};Promise.resolve(o(c)).then(u,p=>{throw c.in||a(!0),p})}}),d=Lo(l,e.ref);return i&&!t?null:S.cloneElement(e,{ref:d})}function Ip(e,t,n){return e?r.jsx(Bw,Object.assign({},n,{component:e})):t?r.jsx(zw,Object.assign({},n,{transition:t})):r.jsx(Aw,Object.assign({},n))}const $w=["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 Ww(e,t){if(e==null)return{};var n={};for(var s in e)if({}.hasOwnProperty.call(e,s)){if(t.indexOf(s)>=0)continue;n[s]=e[s]}return n}let lc;function Uw(e){return lc||(lc=new Fu({ownerDocument:e==null?void 0:e.document})),lc}function qw(e){const t=Ou(),n=e||Uw(t),s=S.useRef({dialog:null,backdrop:null});return Object.assign(s.current,{add:()=>n.add(s.current),remove:()=>n.remove(s.current),isTopModal:()=>n.isTopModal(s.current),setDialogRef:S.useCallback(o=>{s.current.dialog=o},[]),setBackdropRef:S.useCallback(o=>{s.current.backdrop=o},[])})}const Eg=S.forwardRef((e,t)=>{let{show:n=!1,role:s="dialog",className:o,style:i,children:a,backdrop:l=!0,keyboard:d=!0,onBackdropClick:c,onEscapeKeyDown:u,transition:p,runTransition:g,backdropTransition:N,runBackdropTransition:x,autoFocus:C=!0,enforceFocus:b=!0,restoreFocus:m=!0,restoreFocusOptions:v,renderDialog:h,renderBackdrop:j=he=>r.jsx("div",Object.assign({},he)),manager:E,container:T,onShow:O,onHide:_=()=>{},onExit:L,onExited:z,onExiting:H,onEnter:te,onEntering:Q,onEntered:Z}=e,D=Ww(e,$w);const U=Ou(),G=Ow(T),A=qw(E),R=cw(),M=dw(n),[B,W]=S.useState(!n),K=S.useRef(null);S.useImperativeHandle(t,()=>A,[A]),xs&&!M&&n&&(K.current=ic(U==null?void 0:U.document)),n&&B&&W(!1);const Y=Gt(()=>{if(A.add(),de.current=Ca(document,"keydown",se),le.current=Ca(document,"focus",()=>setTimeout(re),!0),O&&O(),C){var he,$t;const Ye=ic((he=($t=A.dialog)==null?void 0:$t.ownerDocument)!=null?he:U==null?void 0:U.document);A.dialog&&Ye&&!Op(A.dialog,Ye)&&(K.current=Ye,A.dialog.focus())}}),ee=Gt(()=>{if(A.remove(),de.current==null||de.current(),le.current==null||le.current(),m){var he;(he=K.current)==null||he.focus==null||he.focus(v),K.current=null}});S.useEffect(()=>{!n||!G||Y()},[n,G,Y]),S.useEffect(()=>{B&&ee()},[B,ee]),hg(()=>{ee()});const re=Gt(()=>{if(!b||!R()||!A.isTopModal())return;const he=ic(U==null?void 0:U.document);A.dialog&&he&&!Op(A.dialog,he)&&A.dialog.focus()}),ne=Gt(he=>{he.target===he.currentTarget&&(c==null||c(he),l===!0&&_())}),se=Gt(he=>{d&&gw(he)&&A.isTopModal()&&(u==null||u(he),he.defaultPrevented||_())}),le=S.useRef(),de=S.useRef(),ge=(...he)=>{W(!0),z==null||z(...he)};if(!G)return null;const Be=Object.assign({role:s,ref:A.setDialogRef,"aria-modal":s==="dialog"?!0:void 0},D,{style:i,className:o,tabIndex:-1});let Ct=h?h(Be):r.jsx("div",Object.assign({},Be,{children:S.cloneElement(a,{role:"document"})}));Ct=Ip(p,g,{unmountOnExit:!0,mountOnEnter:!0,appear:!0,in:!!n,onExit:L,onExiting:H,onExited:ge,onEnter:te,onEntering:Q,onEntered:Z,children:Ct});let zt=null;return l&&(zt=j({ref:A.setBackdropRef,onClick:ne}),zt=Ip(N,x,{in:!!n,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:zt})),r.jsx(r.Fragment,{children:qr.createPortal(r.jsxs(r.Fragment,{children:[zt,Ct]}),G)})});Eg.displayName="Modal";const Vw=Object.assign(Eg,{Manager:Fu});function Hw(e,t){return e.classList?e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function Kw(e,t){e.classList?e.classList.add(t):Hw(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function Fp(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function Yw(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=Fp(e.className,t):e.setAttribute("class",Fp(e.className&&e.className.baseVal||"",t))}const Or={FIXED_CONTENT:".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",STICKY_CONTENT:".sticky-top",NAVBAR_TOGGLER:".navbar-toggler"};class Gw extends Fu{adjustAndStore(t,n,s){const o=n.style[t];n.dataset[t]=o,vr(n,{[t]:`${parseFloat(vr(n,t))+s}px`})}restore(t,n){const s=n.dataset[t];s!==void 0&&(delete n.dataset[t],vr(n,{[t]:s}))}setContainerStyle(t){super.setContainerStyle(t);const n=this.getElement();if(Kw(n,"modal-open"),!t.scrollBarWidth)return;const s=this.isRTL?"paddingLeft":"paddingRight",o=this.isRTL?"marginLeft":"marginRight";Tr(n,Or.FIXED_CONTENT).forEach(i=>this.adjustAndStore(s,i,t.scrollBarWidth)),Tr(n,Or.STICKY_CONTENT).forEach(i=>this.adjustAndStore(o,i,-t.scrollBarWidth)),Tr(n,Or.NAVBAR_TOGGLER).forEach(i=>this.adjustAndStore(o,i,t.scrollBarWidth))}removeContainerStyle(t){super.removeContainerStyle(t);const n=this.getElement();Yw(n,"modal-open");const s=this.isRTL?"paddingLeft":"paddingRight",o=this.isRTL?"marginLeft":"marginRight";Tr(n,Or.FIXED_CONTENT).forEach(i=>this.restore(s,i)),Tr(n,Or.STICKY_CONTENT).forEach(i=>this.restore(o,i)),Tr(n,Or.NAVBAR_TOGGLER).forEach(i=>this.restore(o,i))}}let cc;function Qw(e){return cc||(cc=new Gw(e)),cc}const Pg=S.forwardRef(({className:e,bsPrefix:t,as:n="div",...s},o)=>(t=Ie(t,"modal-body"),r.jsx(n,{ref:o,className:ye(e,t),...s})));Pg.displayName="ModalBody";const _g=S.createContext({onHide(){}}),Du=S.forwardRef(({bsPrefix:e,className:t,contentClassName:n,centered:s,size:o,fullscreen:i,children:a,scrollable:l,...d},c)=>{e=Ie(e,"modal");const u=`${e}-dialog`,p=typeof i=="string"?`${e}-fullscreen-${i}`:`${e}-fullscreen`;return r.jsx("div",{...d,ref:c,className:ye(u,t,o&&`${e}-${o}`,s&&`${u}-centered`,l&&`${u}-scrollable`,i&&p),children:r.jsx("div",{className:ye(`${e}-content`,n),children:a})})});Du.displayName="ModalDialog";const Tg=S.forwardRef(({className:e,bsPrefix:t,as:n="div",...s},o)=>(t=Ie(t,"modal-footer"),r.jsx(n,{ref:o,className:ye(e,t),...s})));Tg.displayName="ModalFooter";const Xw=S.forwardRef(({closeLabel:e="Close",closeVariant:t,closeButton:n=!1,onHide:s,children:o,...i},a)=>{const l=S.useContext(_g),d=Gt(()=>{l==null||l.onHide(),s==null||s()});return r.jsxs("div",{ref:a,...i,children:[o,n&&r.jsx(Tu,{"aria-label":e,variant:t,onClick:d})]})}),Og=S.forwardRef(({bsPrefix:e,className:t,closeLabel:n="Close",closeButton:s=!1,...o},i)=>(e=Ie(e,"modal-header"),r.jsx(Xw,{ref:i,...o,className:ye(t,e),closeLabel:n,closeButton:s})));Og.displayName="ModalHeader";const Jw=aw("h4"),Ag=S.forwardRef(({className:e,bsPrefix:t,as:n=Jw,...s},o)=>(t=Ie(t,"modal-title"),r.jsx(n,{ref:o,className:ye(e,t),...s})));Ag.displayName="ModalTitle";function Zw(e){return r.jsx(_u,{...e,timeout:null})}function eS(e){return r.jsx(_u,{...e,timeout:null})}const Rg=S.forwardRef(({bsPrefix:e,className:t,style:n,dialogClassName:s,contentClassName:o,children:i,dialogAs:a=Du,"data-bs-theme":l,"aria-labelledby":d,"aria-describedby":c,"aria-label":u,show:p=!1,animation:g=!0,backdrop:N=!0,keyboard:x=!0,onEscapeKeyDown:C,onShow:b,onHide:m,container:v,autoFocus:h=!0,enforceFocus:j=!0,restoreFocus:E=!0,restoreFocusOptions:T,onEntered:O,onExit:_,onExiting:L,onEnter:z,onEntering:H,onExited:te,backdropClassName:Q,manager:Z,...D},U)=>{const[G,A]=S.useState({}),[R,M]=S.useState(!1),B=S.useRef(!1),W=S.useRef(!1),K=S.useRef(null),[Y,ee]=lw(),re=Lo(U,ee),ne=Gt(m),se=Ub();e=Ie(e,"modal");const le=S.useMemo(()=>({onHide:ne}),[ne]);function de(){return Z||Qw({isRTL:se})}function ge(fe){if(!xs)return;const qt=de().getScrollbarWidth()>0,xn=fe.scrollHeight>nl(fe).documentElement.clientHeight;A({paddingRight:qt&&!xn?Ap():void 0,paddingLeft:!qt&&xn?Ap():void 0})}const Be=Gt(()=>{Y&&ge(Y.dialog)});hg(()=>{Sd(window,"resize",Be),K.current==null||K.current()});const Ct=()=>{B.current=!0},zt=fe=>{B.current&&Y&&fe.target===Y.dialog&&(W.current=!0),B.current=!1},he=()=>{M(!0),K.current=ug(Y.dialog,()=>{M(!1)})},$t=fe=>{fe.target===fe.currentTarget&&he()},Ye=fe=>{if(N==="static"){$t(fe);return}if(W.current||fe.target!==fe.currentTarget){W.current=!1;return}m==null||m()},Qn=fe=>{x?C==null||C(fe):(fe.preventDefault(),N==="static"&&he())},Zt=(fe,qt)=>{fe&&ge(fe),z==null||z(fe,qt)},ys=fe=>{K.current==null||K.current(),_==null||_(fe)},js=(fe,qt)=>{H==null||H(fe,qt),dg(window,"resize",Be)},Xn=fe=>{fe&&(fe.style.display=""),te==null||te(fe),Sd(window,"resize",Be)},Wt=S.useCallback(fe=>r.jsx("div",{...fe,className:ye(`${e}-backdrop`,Q,!g&&"show")}),[g,Q,e]),gn={...n,...G};gn.display="block";const Ut=fe=>r.jsx("div",{role:"dialog",...fe,style:gn,className:ye(t,e,R&&`${e}-static`,!g&&"show"),onClick:N?Ye:void 0,onMouseUp:zt,"data-bs-theme":l,"aria-label":u,"aria-labelledby":d,"aria-describedby":c,children:r.jsx(a,{...D,onMouseDown:Ct,className:s,contentClassName:o,children:i})});return r.jsx(_g.Provider,{value:le,children:r.jsx(Vw,{show:p,ref:re,backdrop:N,container:v,keyboard:!0,autoFocus:h,enforceFocus:j,restoreFocus:E,restoreFocusOptions:T,onEscapeKeyDown:Qn,onShow:b,onHide:m,onEnter:Zt,onEntering:js,onEntered:O,onExit:ys,onExiting:L,onExited:Xn,manager:de(),transition:g?Zw:void 0,backdropTransition:g?eS:void 0,renderBackdrop:Wt,renderDialog:Ut})})});Rg.displayName="Modal";const ui=Object.assign(Rg,{Body:Pg,Header:Og,Title:Ag,Footer:Tg,Dialog:Du,TRANSITION_DURATION:300,BACKDROP_TRANSITION_DURATION:150}),tS=()=>{var T;const{id:e}=gs(),t=Ke(),{selectedProperty:n,status:s,error:o}=_e(O=>O.property),{user:i}=_e(O=>({...O.auth})),[a,l]=S.useState("propertydetails"),[d,c]=S.useState(!0),[u,p]=S.useState(!1),[g,N]=S.useState({fundValue:"0",fundPercentage:"0"});if(S.useEffect(()=>{e&&t(Js(e))},[e,t]),S.useEffect(()=>{s==="succeeded"&&c(!1)},[s]),s==="failed")return r.jsxs("p",{children:["Error loading property: ",o]});const x=((T=i==null?void 0:i.result)==null?void 0:T.userId)===(n==null?void 0:n.userId),C=!!i,b=()=>{p(!0)},m=()=>{p(!1)},v=O=>{const{name:_,value:L}=O.target;N({...g,[_]:L})},h=O=>{if(O.preventDefault(),g.fundValue<=0)return oe.error("Please enter a valid funding amount greater than 0");if(g.fundValue>((n==null?void 0:n.totalCoststoBuyAtoB)||0))return oe.error(`Funding amount cannot exceed ${(n==null?void 0:n.totalCoststoBuyAtoB)||"N/A"}`);if(g.fundPercentage<=0||g.fundPercentage>100)return oe.error("Please enter a valid interest percentage (0-100)");const _={fundValue:Number(g.fundValue),fundPercentage:Number(g.fundPercentage),userId:i.result._id};t(Ii({id:e,fundDetails:_,toast:oe})),m()},j=O=>{const _=JSON.parse(localStorage.getItem("profile")).token;t(Fi({id:e,fundDetailId:O,token:_}))},E=O=>{window.confirm("Are you sure you want to delete this?")&&j(O)};return r.jsxs(r.Fragment,{children:[r.jsx(Le,{}),r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{}),r.jsx("br",{}),r.jsxs("div",{children:[r.jsxs("ul",{className:"nav nav-tabs",role:"tablist",style:{borderRadius:"12px 12px 0 0"},children:[r.jsx("li",{role:"presentation",className:a==="propertydetails"?"active tab":"tab",children:r.jsx("a",{onClick:()=>l("propertydetails"),role:"tab",children:"Property Details"})}),r.jsx("li",{role:"presentation",className:a==="Funding Details"?"active tab":"tab",children:r.jsx("a",{onClick:()=>l("Funding Details"),role:"tab",children:"Funding Details"})}),r.jsx("li",{role:"presentation",className:a==="Accounting"?"active tab":"tab",children:r.jsx("a",{onClick:()=>l("Accounting"),role:"tab",children:"Accounting"})})]}),r.jsxs("div",{children:[a==="propertydetails"&&r.jsx("div",{role:"tabpanel",className:"card container tab-pane active col-12",children:r.jsx("div",{className:"container col-12",children:d?r.jsx("div",{className:"loader",children:"Loading..."}):n?r.jsx("div",{className:"py-3 py-md-5 bg-light",children:r.jsxs("div",{className:"card-header bg-white",children:[r.jsxs("div",{className:"row",children:[r.jsxs("div",{className:"col-md-5 mt-3",children:[r.jsx("div",{children:n.images&&n.images[0]?r.jsx("img",{src:n.images[0].file||mt,alt:"Property Thumbnail",style:{marginTop:"0px",maxWidth:"400px",maxHeight:"400px"}}):r.jsx("img",{src:mt,alt:"Default Property Thumbnail",style:{marginTop:"0px",maxWidth:"400px",maxHeight:"400px"}})}),r.jsx("br",{}),r.jsxs("div",{className:"label-stock border",children:[r.jsxs("p",{style:{color:"#fda417",fontSize:"30px",padding:"10px",fontWeight:"normal"},children:["Funding Required:"," ",r.jsxs("span",{style:{color:"#000000",fontSize:"25px"},children:[r.jsx("span",{className:"fa fa-dollar",style:{color:"#F74B02"}})," ",(n==null?void 0:n.totalCoststoBuyAtoB)||"N/A"]})]}),r.jsxs("p",{style:{color:"#fda417",fontSize:"30px",padding:"10px",fontWeight:"normal"},children:["Net profit:"," ",r.jsxs("span",{style:{color:"#000000",fontSize:"25px"},children:[r.jsx("span",{className:"fa fa-dollar",style:{color:"#F74B02"}})," ",(n==null?void 0:n.NetProfit)||"N/A"]})]})]}),r.jsx("br",{}),r.jsxs("button",{className:"btn btn-primary back",style:{backgroundColor:"#fda417",border:"#fda417"},disabled:x||!C,onClick:x||!C?null:b,children:[r.jsx("span",{style:{fontSize:"25px",fontWeight:"normal"},children:"Willing to Invest/Fund"})," "]}),x&&r.jsx("span",{style:{color:"red",marginTop:"10px"},children:"You cannot invest in your own property."}),!C&&r.jsx("span",{style:{color:"red",marginTop:"10px"},children:"Please login to invest."})]}),r.jsx("div",{className:"col-md-7 mt-3",children:r.jsxs("div",{className:"product-view",children:[r.jsxs("h4",{className:"product-name",style:{color:"#fda417",fontSize:"25px"},children:[n.address,r.jsx("label",{className:"label-stock bg-success",children:"Verified Property"})]}),r.jsx("hr",{}),r.jsxs("span",{className:"product-path",children:[r.jsxs("span",{style:{color:"#fda417",fontSize:"15px"},children:["City:"," "]})," ",n.city," "," /"," "," "," ",r.jsxs("span",{style:{color:"#fda417",fontSize:"15px"},children:["County:"," "]})," ",n.county," "," ","/"," "," ",r.jsxs("span",{style:{color:"#fda417",fontSize:"15px"},children:["State:"," "]})," ",n.state," "," ","/ "," "," ",r.jsxs("span",{style:{color:"#fda417",fontSize:"15px"},children:["Zipcode:"," "]})," ",n.zip," "]}),r.jsx("br",{})," ",r.jsx("br",{}),r.jsxs("div",{children:[r.jsxs("span",{className:"selling-price",style:{color:"#fda417",fontSize:"15px"},children:["Total Living Square Foot:"," "]}),n.totallivingsqft,r.jsx("p",{}),r.jsxs("span",{className:"selling-price",style:{color:"#fda417",fontSize:"15px"},children:["Cost per Square Foot:"," "]}),"$",n.costpersqft,"/sqft",r.jsx("p",{}),r.jsxs("span",{className:"selling-price",style:{color:"#fda417",fontSize:"15px"},children:["Year Built:"," "]}),n.yearBuild]}),r.jsxs("div",{className:"mt-3 card bg-white label-stock border",children:[r.jsx("h5",{className:"mb-0",style:{color:"#fda417",fontSize:"15px"},children:"Legal Description"}),r.jsx("span",{children:n.legal?n.legal:"No data available"})]})]})})]}),r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-md-12 mt-3",children:r.jsxs("div",{className:"card",children:[r.jsx("div",{className:"card-header bg-white",children:r.jsx("h4",{className:"product-name",style:{color:"#fda417",fontSize:"25px"},children:"Description"})}),r.jsx("div",{className:"card-body",children:r.jsx("p",{children:"Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum."})})]})})})]})}):r.jsx("p",{children:"No property found."})})}),a==="Funding Details"&&r.jsx("div",{children:a==="Funding Details"&&r.jsx("div",{className:"tab-pane active",children:r.jsx("div",{children:n.fundDetails.length===0?r.jsx("p",{children:"No fund details available."}):r.jsx("ul",{style:{listStyleType:"none",padding:0},children:n.fundDetails.map((O,_)=>{var L,z;return r.jsx("li",{className:"d-flex align-items-center",children:r.jsxs("div",{className:"d-flex align-items-center",children:[r.jsxs("span",{children:["Total Fund Value: $ ",O.fundValue,", Interest Percentage: ",O.fundPercentage,"%"]}),r.jsx("br",{})," ",r.jsx("br",{}),((L=i==null?void 0:i.result)==null?void 0:L.userId)&&((z=i==null?void 0:i.result)==null?void 0:z._id)===O.userId&&r.jsx("button",{className:"btn btn-danger ms-2",onClick:()=>E(O._id),style:{padding:"2px 10px",marginLeft:"8px"},children:"x"})]})},_)})})})})}),a==="Accounting"&&r.jsx("div",{})]})]}),r.jsx(tt,{}),r.jsxs(ui,{show:u,onHide:m,children:[r.jsx(ui.Header,{closeButton:!0,children:r.jsx(ui.Title,{children:"Investment/Funding Details"})}),r.jsx(ui.Body,{children:r.jsxs(er,{onSubmit:h,children:[r.jsxs(er.Group,{children:[r.jsx(er.Label,{children:"Total Fund Value"}),r.jsx(er.Control,{type:"number",id:"fundValue",name:"fundValue",value:g.fundValue,onChange:v})]}),r.jsx("br",{}),r.jsxs(er.Group,{children:[r.jsx(er.Label,{children:"Interest Percentage"}),r.jsx(er.Control,{type:"number",id:"fundPercentage",name:"fundPercentage",value:g.fundPercentage,onChange:v})]}),r.jsx(mg,{variant:"primary",type:"submit",children:"Submit"})]})})]})]})},nS=()=>{const[e,t]=S.useState([]),[n,s]=S.useState(0),[o,i]=S.useState(0),[a]=S.useState(10),[l,d]=S.useState(""),[c,u]=S.useState(!1),[p,g]=S.useState(!1),N=async()=>{u(!0),g(!1);try{const m=await me.get("http://67.225.129.127:3002/mysql/searchmysql",{params:{limit:a,offset:o*a,search:l},headers:{"Cache-Control":"no-cache"}});t(m.data.data),s(m.data.totalRecords),l.trim()&&g(!0)}catch(m){console.log("Error fetching data:",m)}finally{u(!1)}},x=m=>{d(m.target.value),m.target.value.trim()===""&&(i(0),t([]),s(0),g(!1),N())},C=m=>{m.key==="Enter"&&(m.preventDefault(),N())};S.useEffect(()=>{N()},[l,o]);const b=Math.ceil(n/a);return r.jsxs(r.Fragment,{children:[r.jsx(Le,{}),r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{}),r.jsxs("div",{className:"container col-12",children:[r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-lg-12 card-margin col-12",children:r.jsx("div",{className:"card search-form col-12",children:r.jsx("div",{className:"card-body p-0",children:r.jsx("form",{id:"search-form",children:r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-12",children:r.jsx("div",{className:"row no-gutters",children:r.jsx("div",{className:"col-lg-8 col-md-6 col-sm-12 p-0",children:r.jsx("input",{type:"text",placeholder:"Enter the keyword and hit ENTER button...",className:"form-control",id:"search",name:"search",value:l,onChange:x,onKeyDown:C})})})})})})})})})}),r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-12",children:r.jsx("div",{className:"card card-margin",children:r.jsxs("div",{className:"card-body",children:[p&&e.length>0&&r.jsxs("div",{children:["Showing search results for the keyword"," ",r.jsx("span",{style:{color:"#fda417",fontSize:"25px"},children:l})]}),r.jsx("div",{className:"table-responsive",children:r.jsxs("table",{className:"table widget-26",children:[r.jsx("thead",{style:{color:"#fda417",fontSize:"15px"},children:r.jsxs("tr",{children:[r.jsx("th",{children:"Details"}),r.jsx("th",{children:"Total Living Square Foot"}),r.jsx("th",{children:"Year Built"}),r.jsx("th",{children:"Cost per Square Foot"})]})}),r.jsx("tbody",{children:e.length>0?e.map((m,v)=>r.jsxs("tr",{children:[r.jsx("td",{children:r.jsxs("div",{className:"widget-26-job-title",children:[r.jsx(ae,{to:`/properties/${m.house_id}`,className:"link-primary text-decoration-none",target:"_blank",children:m.address}),r.jsxs("p",{className:"m-0",children:[r.jsxs("span",{className:"employer-name",children:[r.jsx("i",{className:"fa fa-map-marker",style:{color:"#F74B02"}}),m.city,", ",m.county,",",m.state]}),r.jsxs("p",{className:"text-muted m-0",children:["House Id: ",m.house_id]})]})]})}),r.jsx("td",{children:r.jsx("div",{className:"widget-26-job-info",children:r.jsx("p",{className:"m-0",children:m.total_living_sqft})})}),r.jsx("td",{children:r.jsx("div",{className:"widget-26-job-info",children:r.jsx("p",{className:"m-0",children:m.year_built})})}),r.jsx("td",{children:r.jsxs("div",{className:"widget-26-job-salary",children:["$ ",m.cost_per_sqft,"/sqft"]})})]},v)):r.jsx("tr",{children:r.jsx("td",{colSpan:"4",children:"No results found"})})})]})}),r.jsxs("div",{children:[r.jsx("button",{onClick:()=>i(o-1),disabled:o===0||c,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Previous"}),r.jsxs("span",{children:[" ","Page ",o+1," of ",b," "]}),r.jsx("button",{onClick:()=>i(o+1),disabled:o+1>=b||c,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Next"})]})]})})})})]}),r.jsx(tt,{})]})},rS=()=>r.jsxs(r.Fragment,{children:[r.jsx(Le,{}),r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{}),r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{}),"This page will show the list of services offered by the company",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{}),r.jsx(tt,{})]}),sS=()=>{const{house_id:e}=gs();console.log("house_id",e);const[t,n]=S.useState(null),[s,o]=S.useState(!0);return S.useEffect(()=>{(async()=>{try{const a=await me.get(`http://67.225.129.127:3002/mysql/properties/${e}`);n(a.data)}catch(a){console.log("Error fetching property details:",a)}finally{o(!1)}})()},[e]),r.jsxs(r.Fragment,{children:[r.jsx(Le,{}),r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{}),r.jsx("div",{className:"container col-12",children:s?r.jsx("div",{className:"loader",children:"Loading..."}):t?r.jsx("div",{className:"py-3 py-md-5 bg-light",children:r.jsxs("div",{className:"card-header bg-white",children:[r.jsxs("div",{className:"row",children:[r.jsx("div",{className:"col-md-5 mt-3",children:r.jsx("div",{className:"bg-white border",children:r.jsx("img",{src:mt,className:"w-70",alt:"Img",style:{marginTop:"0px",maxWidth:"450px",maxHeight:"450px"}})})}),r.jsx("div",{className:"col-md-7 mt-3",children:r.jsxs("div",{className:"product-view",children:[r.jsxs("h4",{className:"product-name",style:{color:"#fda417",fontSize:"25px"},children:[t.address,r.jsx("label",{className:"label-stock bg-success",children:"Verified Property"})]}),r.jsx("hr",{}),r.jsxs("p",{className:"product-path",children:[r.jsxs("span",{style:{color:"#fda417",fontSize:"15px"},children:["city:"," "]})," ",t.city," /",r.jsxs("span",{style:{color:"#fda417",fontSize:"15px"},children:["County:"," "]})," ",t.county," /",r.jsxs("span",{style:{color:"#fda417",fontSize:"15px"},children:["State:"," "]})," ",t.state," /",r.jsx("span",{style:{color:"#fda417",fontSize:"15px"},children:"Zipcode:"})," ",t.zip]}),r.jsxs("div",{children:[r.jsxs("span",{className:"selling-price",style:{color:"#fda417",fontSize:"15px"},children:["Total Living Square Foot:"," "]}),t.total_living_sqft,r.jsx("p",{}),r.jsxs("span",{className:"",style:{color:"#fda417",fontSize:"15px"},children:["Cost per Square Foot:"," "]}),"$",t.cost_per_sqft,"/sqft",r.jsx("p",{}),r.jsxs("span",{className:"",style:{color:"#fda417",fontSize:"15px"},children:["Year Built:"," "]}),t.year_built]}),r.jsxs("div",{className:"mt-3 card bg-white",children:[r.jsx("h5",{className:"mb-0",style:{color:"#fda417",fontSize:"15px"},children:"Legal Summary report"}),r.jsx("span",{children:t.legal_summary_report?t.legal_summary_report:"No data available"})]})]})})]}),r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-md-12 mt-3",children:r.jsxs("div",{className:"card",children:[r.jsx("div",{className:"card-header bg-white",children:r.jsx("h4",{className:"product-name",style:{color:"#fda417",fontSize:"25px"},children:"Description"})}),r.jsx("div",{className:"card-body",children:r.jsx("p",{children:"Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum."})})]})})})]})}):r.jsx("p",{children:"No property details found."})}),r.jsx(tt,{})]})},Dp=()=>{const{id:e}=gs(),t=Ke(),[n,s]=S.useState("propertydetails"),o=()=>{n==="propertydetails"&&s("Images"),n==="Images"&&s("Accounting"),n==="Accounting"&&s("IAB"),n==="IAB"&&s("IAB")},i=()=>{n==="Images"&&s("propertydetails"),n==="Accounting"&&s("Images"),n==="IAB"&&s("Accounting")},{selectedProperty:a}=_e(k=>k.property),[l,d]=S.useState({address:"",city:"",state:"",county:"",zip:"",propertyTaxInfo:[{propertytaxowned:"0",ownedyear:"0",taxassessed:"0",taxyear:"0"}],images:[{title:"",file:""}],googleMapLink:"",purchaseCost:"0",costPaidAtoB:[{title:"Closing Fees - Settlement Fee",price:"0"},{title:"Closing Fees - Owner's Title Insurance",price:"0"},{title:"Courier Fees",price:"0"},{title:"Wire Fee",price:"0"},{title:"E recording Fee",price:"0"},{title:"Recording Fee",price:"0"},{title:"Property Tax",price:"0"}],renovationRisk:null,turnTime:"",credits:[{title:"Credits",price:"0"}],cashAdjustments:[{title:"Cash Adjustments",price:"0"}],incidentalCost:[{title:"Accounting Fees",price:"0"},{title:"Bank Charges",price:"0"},{title:"Legal Fees",price:"0"},{title:"Property Taxes",price:"0"},{title:"Travel Expenses",price:"0"}],carryCosts:[{title:"Electricity",price:"0"},{title:"Water and Sewer",price:"0"},{title:"Natural Gas",price:"0"},{title:"Trash and Recycling",price:"0"},{title:"Internet and Cable",price:"0"},{title:"Heating Oil/Propane",price:"0"},{title:"HOA fees",price:"0"},{title:"Dump fees",price:"0"},{title:"Insurance",price:"0"},{title:"Interest on Loans",price:"0"},{title:"Loan Payment",price:"0"},{title:"Property Taxes",price:"0"},{title:"Security",price:"0"},{title:"Real Estates fees",price:"0"}],renovationCost:[{title:"Demolition: Removing existing structures or finishes",price:"0"},{title:"Framing: Making structural changes or additions",price:"0"},{title:"Plumbing: Installing or modifying plumbing systems",price:"0"},{title:"Electrical: Updating wiring and fixtures",price:"0"},{title:"HVAC: Installing or upgrading heating and cooling systems",price:"0"},{title:"Insulation: Adding or replacing insulation",price:"0"},{title:"Drywall: Hanging and finishing drywall",price:"0"},{title:"Interior Finishes: Painting, flooring, cabinetry, and fixtures",price:"0"},{title:"Exterior Work: Addressing siding, roofing, or landscaping, if applicable",price:"0"},{title:"Final Inspections: Ensuring everything meets codes",price:"0"},{title:"Punch List: Completing any remaining task",price:"0"}],sellingPriceBtoC:"0",costPaidOutofClosing:[{title:"Buyers Agent Commission",price:"0"},{title:"Sellers Agent Commission",price:"0"},{title:"Home Warranty",price:"0"},{title:"Document Preparation",price:"0"},{title:"Excise Tax",price:"0"},{title:"Legal Fees",price:"0"},{title:"Wire Fees/courier Fees",price:"0"},{title:"County Taxes",price:"0"},{title:"HOA Fee",price:"0"},{title:"Payoff of 1st Mortgage",price:"0"},{title:"Payoff of 2nd Mortgage",price:"0"},{title:"Payoff 3rd Mortgage",price:"0"}],adjustments:[{title:"adjustments",price:"0"}],incomestatement:[{title:"income statement",price:"0"},{title:"income statement",price:"0"}],fundspriortoclosing:"0",shorttermrental:"0",OtherIncome:"0",InsuranceClaim:"0",LongTermRental:"0",FinancingCostClosingCost:"0",IAB:[{title:"IAB Title",URL:"Please enter URL"}]}),c=[1,2,3,4,5,6,7,8,9,10];S.useEffect(()=>{t(Js(e))},[t,e]),S.useEffect(()=>{a&&d({address:a.address||"",city:a.city||"",state:a.state||"",county:a.county||"",zip:a.zip||"",parcel:a.parcel||"",subdivision:a.subdivision||"",legal:a.legal||"",costpersqft:a.costpersqft||"",propertyType:a.propertyType||"",lotacres:a.lotacres||"",yearBuild:a.yearBuild||"",totallivingsqft:a.totallivingsqft||"",beds:a.beds||"",baths:a.baths||"",stories:a.stories||"",garage:a.garage||"",garagesqft:a.garagesqft||"",poolspa:a.poolspa||"",fireplaces:a.fireplaces||"",ac:a.ac||"",heating:a.heating||"",buildingstyle:a.buildingstyle||"",sitevacant:a.sitevacant||"",extwall:a.extwall||"",roofing:a.roofing||"",totalSqft:a.totalSqft||"",renovationRisk:a.renovationRisk,closeDateAtoB:a.closeDateAtoB,closeDateBtoC:a.closeDateBtoC,purchaseCost:a.purchaseCost,costPaidAtoB:a.costPaidAtoB,totalPurchaseCosts:a.totalPurchaseCosts,credits:a.credits,totalPurchaseCostsaftercredits:a.totalPurchaseCostsaftercredits,cashAdjustments:a.cashAdjustments,totalcashrequiredonsettlement:a.totalcashrequiredonsettlement,incidentalCost:a.incidentalCost,carryCosts:a.carryCosts,renovationCost:a.renovationCost,sellingPriceBtoC:a.sellingPriceBtoC,costPaidOutofClosing:a.costPaidOutofClosing,totalCosttoSellBtoC:a.totalCosttoSellBtoC,grossproceedsperHUD:a.grossproceedsperHUD,adjustments:a.adjustments,fundsavailablefordistribution:a.fundsavailablefordistribution,incomestatement:a.incomestatement,fundspriortoclosing:a.fundspriortoclosing,shorttermrental:a.shorttermrental,OtherIncome:a.OtherIncome,InsuranceClaim:a.InsuranceClaim,LongTermRental:a.LongTermRental,netprofitbeforefinancingcosts:a.netprofitbeforefinancingcosts,FinancingCostClosingCost:a.FinancingCostClosingCost,propertyTaxInfo:a.propertyTaxInfo||[{propertytaxowned:"0",ownedyear:"0",taxassessed:"0",taxyear:"0"}],images:a.images||[{title:"",file:""}],googleMapLink:a.googleMapLink,rateofreturn:a.rateofreturn,IAB:a.IAB})},[a]);const u=k=>{d({...l,[k.target.name]:k.target.value})},p=(k,P)=>{const{name:f,value:y}=k.target,w=[...l.propertyTaxInfo],F={...w[P]};F[f]=y,w[P]=F,d({...l,propertyTaxInfo:w})},g=k=>{k.preventDefault();const P=z(),f=D(),y=U(),w=B(),F=W(),q=ne(),X=Be(),ce=Ye(),Wo=Qn(),cl=Zt(),dl=gn(),ul=Ut(),fl=Ut(),pl=Ns(),ml=Mo(),hl=Zn(),vl=en(),gl=Er(),xl=bs(),yl={...l,totalPurchaseCosts:P.toFixed(2),totalcredits:f.toFixed(2),totalPurchaseCostsaftercredits:y.toFixed(2),totalcashAdjustments:w.toFixed(2),totalcashrequiredonsettlement:F.toFixed(2),totalincidentalCost:q.toFixed(2),totalcarryCosts:X.toFixed(2),totalrenovationCost:ce.toFixed(2),totalRenovationsandHoldingCost:Wo.toFixed(2),totalCoststoBuyAtoB:cl.toFixed(2),totalcostPaidOutofClosing:dl.toFixed(2),totalCosttoSellBtoC:ul.toFixed(2),grossproceedsperHUD:fl.toFixed(2),totaladjustments:pl.toFixed(2),fundsavailablefordistribution:ml.toFixed(2),totalincomestatement:hl.toFixed(2),netBtoCsalevalue:vl.toFixed(2),netprofitbeforefinancingcosts:gl.toFixed(2),netprofit:xl.toFixed(2)};t(Ri({id:e,propertyData:yl}))},N=()=>{d({...l,propertyTaxInfo:[...l.propertyTaxInfo,{propertytaxowned:"",ownedyear:"",taxassessed:"",taxyear:""}]})},x=k=>{const P=l.propertyTaxInfo.filter((f,y)=>y!==k);d({...l,propertyTaxInfo:P})},C=(k,P)=>{const f=[...l.images];f[P]={...f[P],file:k.base64},d({...l,images:f})},b=()=>{d({...l,images:[...l.images,{title:"",file:""}]})},m=k=>{const P=l.images.filter((f,y)=>y!==k);d({...l,images:P})},v=(k,P)=>{const f=[...l.images];f[k]={...f[k],title:P.target.value},d({...l,images:f})};S.useEffect(()=>{E(l.closeDateAtoB,l.closeDateBtoC)},[l.closeDateAtoB,l.closeDateBtoC]);const[h,j]=S.useState("0 days"),E=(k,P)=>{if(k&&P){const f=new Date(k),y=new Date(P),w=Math.abs(y-f),F=Math.ceil(w/(1e3*60*60*24));j(`${F} days`)}else j("0 days")},T=()=>{d(k=>({...k,costPaidAtoB:[...k.costPaidAtoB,{title:"",price:""}]}))},O=k=>{const P=l.costPaidAtoB.filter((f,y)=>y!==k);d(f=>({...f,costPaidAtoB:P}))},_=(k,P,f)=>{const y=[...l.costPaidAtoB];y[k][P]=f,d(w=>({...w,costPaidAtoB:y}))},L=(k,P)=>{let f=k.target.value;if(f=f.replace(/^\$/,"").trim(),/^\d*\.?\d*$/.test(f)||f===""){const w=l.costPaidAtoB.map((F,q)=>q===P?{...F,price:f,isInvalid:!1}:F);d({...l,costPaidAtoB:w})}else{const w=l.costPaidAtoB.map((F,q)=>q===P?{...F,isInvalid:!0}:F);d({...l,costPaidAtoB:w})}},z=()=>{const k=l.costPaidAtoB.reduce((f,y)=>{const w=parseFloat(y.price)||0;return f+w},0),P=parseFloat(l.purchaseCost)||0;return k+P},H=()=>{d(k=>({...k,credits:[...k.credits,{title:"",price:""}]}))},te=k=>{const P=l.credits.filter((f,y)=>y!==k);d(f=>({...f,credits:P}))},Q=(k,P,f)=>{const y=[...l.credits];y[k][P]=f,d(w=>({...w,credits:y}))},Z=(k,P)=>{const f=k.target.value;if(/^\d*\.?\d*$/.test(f)||f===""){const w=l.credits.map((F,q)=>q===P?{...F,price:f,isInvalid:!1}:F);d({...l,credits:w})}else{const w=l.credits.map((F,q)=>q===P?{...F,isInvalid:!0}:F);d({...l,credits:w})}},D=()=>l.credits.reduce((k,P)=>{const f=parseFloat(P.price);return k+(isNaN(f)?0:f)},0),U=()=>{const k=l.costPaidAtoB.reduce((y,w)=>{const F=parseFloat(w.price)||0;return y+F},0),P=l.credits.reduce((y,w)=>{const F=parseFloat(w.price)||0;return y+F},0),f=parseFloat(l.purchaseCost)||0;return k+P+f},G=()=>{d(k=>({...k,cashAdjustments:[...k.cashAdjustments,{title:"",price:""}]}))},A=k=>{const P=l.cashAdjustments.filter((f,y)=>y!==k);d(f=>({...f,cashAdjustments:P}))},R=(k,P,f)=>{const y=[...l.cashAdjustments];y[k][P]=f,d(w=>({...w,cashAdjustments:y}))},M=(k,P)=>{const f=k.target.value;if(/^\d*\.?\d*$/.test(f)||f===""){const w=l.cashAdjustments.map((F,q)=>q===P?{...F,price:f,isInvalid:!1}:F);d({...l,cashAdjustments:w})}else{const w=l.cashAdjustments.map((F,q)=>q===P?{...F,isInvalid:!0}:F);d({...l,cashAdjustments:w})}},B=()=>l.cashAdjustments.reduce((k,P)=>{const f=parseFloat(P.price);return k+(isNaN(f)?0:f)},0),W=()=>{const k=B(),P=D(),f=z();return k+P+f},K=()=>{d(k=>({...k,incidentalCost:[...k.incidentalCost,{title:"",price:""}]}))},Y=k=>{const P=l.incidentalCost.filter((f,y)=>y!==k);d(f=>({...f,incidentalCost:P}))},ee=(k,P,f)=>{const y=[...l.incidentalCost];y[k][P]=f,d(w=>({...w,incidentalCost:y}))},re=(k,P)=>{const f=k.target.value;if(/^\d*\.?\d*$/.test(f)||f===""){const w=l.incidentalCost.map((F,q)=>q===P?{...F,price:f,isInvalid:!1}:F);d({...l,incidentalCost:w})}else{const w=l.incidentalCost.map((F,q)=>q===P?{...F,isInvalid:!0}:F);d({...l,incidentalCost:w})}},ne=()=>l.incidentalCost.reduce((k,P)=>{const f=parseFloat(P.price);return k+(isNaN(f)?0:f)},0),se=()=>{d(k=>({...k,carryCosts:[...k.carryCosts,{title:"",price:""}]}))},le=k=>{const P=l.carryCosts.filter((f,y)=>y!==k);d(f=>({...f,carryCosts:P}))},de=(k,P,f)=>{const y=[...l.carryCosts];y[k][P]=f,d(w=>({...w,carryCosts:y}))},ge=(k,P)=>{const f=k.target.value;if(/^\d*\.?\d*$/.test(f)||f===""){const w=l.carryCosts.map((F,q)=>q===P?{...F,price:f,isInvalid:!1}:F);d({...l,carryCosts:w})}else{const w=l.carryCosts.map((F,q)=>q===P?{...F,isInvalid:!0}:F);d({...l,carryCosts:w})}},Be=()=>l.carryCosts.reduce((k,P)=>{const f=parseFloat(P.price);return k+(isNaN(f)?0:f)},0),Ct=()=>{d(k=>({...k,renovationCost:[...k.renovationCost,{title:"",price:""}]}))},zt=k=>{const P=l.renovationCost.filter((f,y)=>y!==k);d(f=>({...f,renovationCost:P}))},he=(k,P,f)=>{const y=[...l.renovationCost];y[k][P]=f,d(w=>({...w,renovationCost:y}))},$t=(k,P)=>{const f=k.target.value;if(/^\d*\.?\d*$/.test(f)||f===""){const w=l.renovationCost.map((F,q)=>q===P?{...F,price:f,isInvalid:!1}:F);d({...l,renovationCost:w})}else{const w=l.renovationCost.map((F,q)=>q===P?{...F,isInvalid:!0}:F);d({...l,renovationCost:w})}},Ye=()=>l.renovationCost.reduce((k,P)=>{const f=parseFloat(P.price);return k+(isNaN(f)?0:f)},0),Qn=()=>{const k=ne(),P=Be(),f=Ye();return k+P+f},Zt=()=>{const k=Qn(),P=W();return k+P},ys=()=>{d(k=>({...k,costPaidOutofClosing:[...k.costPaidOutofClosing,{title:"",price:""}]}))},js=k=>{const P=l.costPaidOutofClosing.filter((f,y)=>y!==k);d(f=>({...f,costPaidOutofClosing:P}))},Xn=(k,P,f)=>{const y=[...l.costPaidOutofClosing];y[k][P]=f,d(w=>({...w,costPaidOutofClosing:y}))},Wt=(k,P)=>{const f=k.target.value;if(/^\d*\.?\d*$/.test(f)||f===""){const w=l.costPaidOutofClosing.map((F,q)=>q===P?{...F,price:f,isInvalid:!1}:F);d({...l,costPaidOutofClosing:w})}else{const w=l.costPaidOutofClosing.map((F,q)=>q===P?{...F,isInvalid:!0}:F);d({...l,costPaidOutofClosing:w})}},gn=()=>l.costPaidOutofClosing.reduce((k,P)=>{const f=parseFloat(P.price);return k+(isNaN(f)?0:f)},0),Ut=()=>{const k=l.sellingPriceBtoC,P=gn();return k-P},fe=()=>{d(k=>({...k,adjustments:[...k.adjustments,{title:"",price:""}]}))},qt=k=>{const P=l.adjustments.filter((f,y)=>y!==k);d(f=>({...f,adjustments:P}))},xn=(k,P,f)=>{const y=[...l.adjustments];y[k][P]=f,d(w=>({...w,adjustments:y}))},Bo=(k,P)=>{const f=k.target.value;if(/^\d*\.?\d*$/.test(f)||f===""){const w=l.adjustments.map((F,q)=>q===P?{...F,price:f,isInvalid:!1}:F);d({...l,adjustments:w})}else{const w=l.adjustments.map((F,q)=>q===P?{...F,isInvalid:!0}:F);d({...l,adjustments:w})}},Ns=()=>l.adjustments.reduce((k,P)=>{const f=parseFloat(P.price);return k+(isNaN(f)?0:f)},0),Mo=()=>{const k=Ut(),P=Ns();return k+P},sl=()=>{d(k=>({...k,incomestatement:[...k.incomestatement,{title:"",price:""}]}))},ol=k=>{const P=l.incomestatement.filter((f,y)=>y!==k);d(f=>({...f,incomestatement:P}))},Cs=(k,P,f)=>{const y=[...l.incomestatement];y[k][P]=f,d(w=>({...w,incomestatement:y}))},Jn=(k,P)=>{const f=k.target.value;if(/^\d*\.?\d*$/.test(f)||f===""){const w=l.incomestatement.map((F,q)=>q===P?{...F,price:f,isInvalid:!1}:F);d({...l,incomestatement:w})}else{const w=l.incomestatement.map((F,q)=>q===P?{...F,isInvalid:!0}:F);d({...l,incomestatement:w})}},Zn=()=>l.incomestatement.reduce((k,P)=>{const f=parseFloat(P.price);return k+(isNaN(f)?0:f)},0),en=()=>{const k=Zn(),P=Ut();return k+P},Er=()=>{const k=isNaN(parseFloat(en()))?0:parseFloat(en()),P=isNaN(parseFloat(l.shorttermrental))?0:parseFloat(l.shorttermrental),f=isNaN(parseFloat(l.OtherIncome))?0:parseFloat(l.OtherIncome),y=isNaN(parseFloat(l.InsuranceClaim))?0:parseFloat(l.InsuranceClaim),w=isNaN(parseFloat(l.LongTermRental))?0:parseFloat(l.LongTermRental),F=isNaN(parseFloat(Zt()))?0:parseFloat(Zt());return k+P+f+y+w-F},bs=()=>{const k=Er(),P=l.FinancingCostClosingCost;return k-P},il=()=>bs(),zo=()=>{d(k=>({...k,IAB:[...k.IAB,{title:"",URL:""}]}))},$o=k=>{const P=l.IAB.filter((f,y)=>y!==k);d(f=>({...f,IAB:P}))},al=(k,P,f)=>{const y=[...l.IAB];y[k][P]=f,d(w=>({...w,IAB:y}))},ll=(k,P,f)=>{const y=[...l.IAB];y[k][P]=f,d(w=>({...w,IAB:y}))};return r.jsxs(r.Fragment,{children:[r.jsx(Le,{}),r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{}),r.jsx("div",{className:"card d-flex justify-content-center align-items-center col-12",style:{padding:"35px",paddingLeft:"250px"},children:r.jsxs("div",{className:"justify-content-center",children:[r.jsxs("ul",{className:"nav nav-tabs",role:"tablist",children:[r.jsx("li",{role:"presentation",className:n==="propertydetails"?"active tab":"tab",children:r.jsx("a",{onClick:()=>s("propertydetails"),role:"tab",children:"Property Details"})}),r.jsx("li",{role:"presentation",className:n==="Images"?"active tab":"tab",children:r.jsx("a",{onClick:()=>s("Images"),role:"tab",children:"Images, Maps"})}),r.jsx("li",{role:"presentation",className:n==="Accounting"?"active tab":"tab",children:r.jsx("a",{onClick:()=>s("Accounting"),role:"tab",children:"Accounting"})}),r.jsx("li",{role:"presentation",className:n==="IAB"?"active tab":"tab",children:r.jsx("a",{onClick:()=>s("IAB"),role:"tab",children:"IAB Verified Report"})})]}),r.jsxs("div",{className:"tab-content",children:[n==="propertydetails"&&r.jsxs("div",{role:"tabpanel",className:"card tab-pane active",children:[r.jsxs("form",{children:[r.jsx("h3",{style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:"Property Location"}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Property Address",r.jsx("input",{type:"text",className:"form-control",name:"address",value:l.address,onChange:u,required:!0})]})}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["City",r.jsx("input",{type:"text",className:"form-control",name:"city",value:l.city,onChange:u,required:!0})]})}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["State",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"state",value:l.state,onChange:u,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"Alaska",children:"Alaska"}),r.jsx("option",{value:"Alabama",children:"Alabama"}),r.jsx("option",{value:"Arkansas",children:"Arkansas"}),r.jsx("option",{value:"Arizona",children:"Arizona"}),r.jsx("option",{value:"California",children:"California"}),r.jsx("option",{value:"Colorado",children:"Colorado"}),r.jsx("option",{value:"Connecticut",children:"Connecticut"}),r.jsx("option",{value:"District Of Columbia",children:"District Of Columbia"}),r.jsx("option",{value:"Delaware",children:"Delaware"}),r.jsx("option",{value:"Florida",children:"Florida"}),r.jsx("option",{value:"Georgia",children:"Georgia"}),r.jsx("option",{value:"Hawaii",children:"Hawaii"}),r.jsx("option",{value:"Iowa",children:"Iowa"}),r.jsx("option",{value:"Idaho",children:"Idaho"}),r.jsx("option",{value:"Illinois",children:"Illinois"}),r.jsx("option",{value:"Indiana",children:"Indiana"}),r.jsx("option",{value:"Kansas",children:"Kansas"}),r.jsx("option",{value:"Kentucky",children:"Kentucky"}),r.jsx("option",{value:"Louisiana",children:"Louisiana"}),r.jsx("option",{value:"Massachusetts",children:"Massachusetts"}),r.jsx("option",{value:"Maryland",children:"Maryland"}),r.jsx("option",{value:"Michigan",children:"Michigan"}),r.jsx("option",{value:"Minnesota",children:"Minnesota"}),r.jsx("option",{value:"Missouri",children:"Missouri"}),r.jsx("option",{value:"Mississippi",children:"Mississippi"}),r.jsx("option",{value:"Montana",children:"Montana"}),r.jsx("option",{value:"North Carolina",children:"North Carolina"}),r.jsx("option",{value:"North Dakota",children:"North Dakota"}),r.jsx("option",{value:"Nebraska",children:"Nebraska"}),r.jsx("option",{value:"New Hampshire",children:"New Hampshire"}),r.jsx("option",{value:"New Jersey",children:"New Jersey"}),r.jsx("option",{value:"New Mexico",children:"New Mexico"}),r.jsx("option",{value:"Nevada",children:"Nevada"}),r.jsx("option",{value:"New York",children:"New York"}),r.jsx("option",{value:"Ohio",children:"Ohio"}),r.jsx("option",{value:"Oklahoma",children:"Oklahoma"}),r.jsx("option",{value:"Oregon",children:"Oregon"}),r.jsx("option",{value:"Pennsylvania",children:"Pennsylvania"}),r.jsx("option",{value:"Rhode Island",children:"Rhode Island"}),r.jsx("option",{value:"South Carolina",children:"South Carolina"}),r.jsx("option",{value:"South Dakota",children:"South Dakota"}),r.jsx("option",{value:"Tennessee",children:"Tennessee"}),r.jsx("option",{value:"Texas",children:"Texas"}),r.jsx("option",{value:"Texas",children:"Travis"}),r.jsx("option",{value:"Utah",children:"Utah"}),r.jsx("option",{value:"Virginia",children:"Virginia"}),r.jsx("option",{value:"Vermont",children:"Vermont"}),r.jsx("option",{value:"Washington",children:"Washington"}),r.jsx("option",{value:"Wisconsin",children:"Wisconsin"}),r.jsx("option",{value:"West Virginia",children:"West Virginia"}),r.jsx("option",{value:"Wyoming",children:"Wyoming"})]})]})})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsxs("div",{className:"col-md-4",children:["County",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"county",value:l.county,onChange:u,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"Abbeville",children:"Abbeville"}),r.jsx("option",{value:"Aiken",children:"Aiken"}),r.jsx("option",{value:"Allendale",children:"Allendale"}),r.jsx("option",{value:"Anderson",children:"Anderson"}),r.jsx("option",{value:"Bamberg",children:"Bamberg"}),r.jsx("option",{value:"Barnwell",children:"Barnwell"}),r.jsx("option",{value:"Beaufort",children:"Beaufort"}),r.jsx("option",{value:"Berkeley",children:"Berkeley"}),r.jsx("option",{value:"Calhoun",children:"Calhoun"}),r.jsx("option",{value:"Charleston",children:"Charleston"}),r.jsx("option",{value:"Cherokee",children:"Cherokee"}),r.jsx("option",{value:"Chester",children:"Chester"}),r.jsx("option",{value:"Chesterfield",children:"Chesterfield"}),r.jsx("option",{value:"Clarendon",children:"Clarendon"}),r.jsx("option",{value:"Colleton",children:"Colleton"}),r.jsx("option",{value:"Darlington",children:"Darlington"}),r.jsx("option",{value:"Dillon",children:"Dillon"}),r.jsx("option",{value:"Dorchester",children:"Dorchester"}),r.jsx("option",{value:"Edgefield",children:"Edgefield"}),r.jsx("option",{value:"Fairfield",children:"Fairfield"}),r.jsx("option",{value:"Florence",children:"Florence"}),r.jsx("option",{value:"Georgetown",children:"Georgetown"}),r.jsx("option",{value:"Greenville",children:"Greenville"}),r.jsx("option",{value:"Greenwood",children:"Greenwood"}),r.jsx("option",{value:"Hampton",children:"Hampton"}),r.jsx("option",{value:"Horry",children:"Horry"}),r.jsx("option",{value:"Jasper",children:"Jasper"}),r.jsx("option",{value:"Kershaw",children:"Kershaw"}),r.jsx("option",{value:"Lancaster",children:"Lancaster"}),r.jsx("option",{value:"Laurens",children:"Laurens"}),r.jsx("option",{value:"Lee",children:"Lee"}),r.jsx("option",{value:"Lexington",children:"Lexington"}),r.jsx("option",{value:"Marion",children:"Marion"}),r.jsx("option",{value:"Marlboro",children:"Marlboro"}),r.jsx("option",{value:"McCormick",children:"McCormick"}),r.jsx("option",{value:"Newberry",children:"Newberry"}),r.jsx("option",{value:"Oconee",children:"Oconee"}),r.jsx("option",{value:"Orangeburg",children:"Orangeburg"}),r.jsx("option",{value:"Pickens",children:"Pickens"}),r.jsx("option",{value:"Richland",children:"Richland"}),r.jsx("option",{value:"Saluda",children:"Saluda"}),r.jsx("option",{value:"Spartanburg",children:"Spartanburg"}),r.jsx("option",{value:"Sumter",children:"Sumter"}),r.jsx("option",{value:"Union",children:"Union"}),r.jsx("option",{value:"Williamsburg",children:"Williamsburg"}),r.jsx("option",{value:"York",children:"York"})]})]}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Zip",r.jsx("input",{type:"text",className:"form-control",name:"zip",value:l.zip,onChange:u,required:!0})]})}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Parcel",r.jsx("input",{type:"text",className:"form-control",name:"parcel",value:l.parcel,onChange:u,required:!0})]})})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Sub division",r.jsx("input",{type:"text",className:"form-control",name:"subdivision",value:l.subdivision,onChange:u,required:!0})]})}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Legal Description",r.jsx("textarea",{type:"text",className:"form-control",name:"legal",value:l.legal,onChange:u,required:!0})]})}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Cost per SQFT",r.jsx("input",{type:"text",className:"form-control",name:"costpersqft",value:l.costpersqft,onChange:u,required:!0})]})})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsxs("div",{className:"col-md-4",children:["Property Type",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"propertyType",value:l.propertyType,onChange:u,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"Residential",children:"Residential"}),r.jsx("option",{value:"Land",children:"Land"}),r.jsx("option",{value:"Commercial",children:"Commercial"}),r.jsx("option",{value:"Industrial",children:"Industrial"}),r.jsx("option",{value:"Water",children:"Water"})]})]}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Lot Acres/Sqft",r.jsx("input",{type:"text",className:"form-control",name:"lotacres",value:l.lotacres,onChange:u,required:!0})]})}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Year Build",r.jsx("input",{type:"text",className:"form-control",name:"yearBuild",value:l.yearBuild,onChange:u,required:!0})]})})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Total Living SQFT",r.jsx("input",{type:"text",className:"form-control",name:"totallivingsqft",value:l.totallivingsqft,onChange:u,required:!0})]})}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Beds",r.jsx("input",{type:"text",className:"form-control",name:"beds",value:l.beds,onChange:u,required:!0})]})}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Baths",r.jsx("input",{type:"text",className:"form-control",name:"baths",value:l.baths,onChange:u,required:!0})]})})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsxs("div",{className:"col-md-4",children:["Stories",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"stories",value:l.stories,onChange:u,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"0",children:"0"}),r.jsx("option",{value:"1",children:"1"}),r.jsx("option",{value:"2",children:"2"}),r.jsx("option",{value:"3",children:"3"}),r.jsx("option",{value:"4",children:"4"}),r.jsx("option",{value:"5",children:"5"}),r.jsx("option",{value:"6",children:"6"}),r.jsx("option",{value:"7",children:"7"}),r.jsx("option",{value:"8",children:"8"}),r.jsx("option",{value:"9",children:"9"}),r.jsx("option",{value:"10",children:"10"})]})]}),r.jsxs("div",{className:"col-md-4",children:["Garage",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"garage",value:l.garage,onChange:u,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"0",children:"0"}),r.jsx("option",{value:"1",children:"1"}),r.jsx("option",{value:"2",children:"2"}),r.jsx("option",{value:"3",children:"3"}),r.jsx("option",{value:"4",children:"4"}),r.jsx("option",{value:"5",children:"5"})]})]}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Garage SQFT",r.jsx("input",{type:"text",className:"form-control",name:"garagesqft",value:l.garagesqft,onChange:u,required:!0})]})})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsxs("div",{className:"col-md-4",children:["Pool/SPA",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"poolspa",value:l.poolspa,onChange:u,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"N/A",children:"N/A"}),r.jsx("option",{value:"Yes- Pool Only",children:"Yes- Pool Only"}),r.jsx("option",{value:"Yes- SPA only",children:"Yes- SPA only"}),r.jsx("option",{value:"Yes - Both Pool and SPA",children:"Yes - Both Pool and SPA"}),r.jsx("option",{value:"4",children:"None"})]})]}),r.jsxs("div",{className:"col-md-4",children:["Fire places",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"fireplaces",value:l.fireplaces,onChange:u,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"N/A",children:"N/A"}),r.jsx("option",{value:"yes",children:"Yes"}),r.jsx("option",{value:"no",children:"No"})]})]}),r.jsxs("div",{className:"col-md-4",children:["A/C",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"ac",value:l.ac,onChange:u,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"N/A",children:"N/A"}),r.jsx("option",{value:"Central",children:"Central"}),r.jsx("option",{value:"Heat Pump",children:"Heat Pump"}),r.jsx("option",{value:"Warm Air",children:"Warm Air"}),r.jsx("option",{value:"Forced Air",children:"Forced Air"}),r.jsx("option",{value:"Gas",children:"Gas"})]})]})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsxs("div",{className:"col-md-4",children:["Heating",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"heating",value:l.heating,onChange:u,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"N/A",children:"N/A"}),r.jsx("option",{value:"Central",children:"Central"}),r.jsx("option",{value:"Heat Pump",children:"Heat Pump"}),r.jsx("option",{value:"Warm Air",children:"Warm Air"}),r.jsx("option",{value:"Forced Air",children:"Forced Air"}),r.jsx("option",{value:"Gas",children:"Gas"})]})]}),r.jsxs("div",{className:"col-md-4",children:["Building Style",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"buildingstyle",value:l.buildingstyle,onChange:u,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"One Story",children:"One Story"}),r.jsx("option",{value:"Craftsman",children:"Craftsman"}),r.jsx("option",{value:"Log/Cabin",children:"Log/Cabin"}),r.jsx("option",{value:"Split-Level",children:"Split-Level"}),r.jsx("option",{value:"Split-Foyer",children:"Split-Foyer"}),r.jsx("option",{value:"Stick Built",children:"Stick Built"}),r.jsx("option",{value:"Single wide",children:"Single wide"}),r.jsx("option",{value:"Double wide",children:"Double wide"}),r.jsx("option",{value:"Duplex",children:"Duplex"}),r.jsx("option",{value:"Triplex",children:"Triplex"}),r.jsx("option",{value:"Quadruplex",children:"Quadruplex"}),r.jsx("option",{value:"Two Story",children:"Two Story"}),r.jsx("option",{value:"Victorian",children:"Victorian"}),r.jsx("option",{value:"Tudor",children:"Tudor"}),r.jsx("option",{value:"Modern",children:"Modern"}),r.jsx("option",{value:"Art Deco",children:"Art Deco"}),r.jsx("option",{value:"Bungalow",children:"Bungalow"}),r.jsx("option",{value:"Mansion",children:"Mansion"}),r.jsx("option",{value:"Farmhouse",children:"Farmhouse"}),r.jsx("option",{value:"Conventional",children:"Conventional"}),r.jsx("option",{value:"Ranch",children:"Ranch"}),r.jsx("option",{value:"Ranch with Basement",children:"Ranch with Basement"}),r.jsx("option",{value:"Cape Cod",children:"Cape Cod"}),r.jsx("option",{value:"Contemporary",children:"Contemporary"}),r.jsx("option",{value:"Colonial",children:"Colonial"}),r.jsx("option",{value:"Mediterranean",children:"Mediterranean"})]})]}),r.jsxs("div",{className:"col-md-4",children:["Site Vacant",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"sitevacant",value:l.sitevacant,onChange:u,required:!0,children:[r.jsx("option",{value:"",children:"Please select"}),r.jsx("option",{value:"Yes",children:"Yes"}),r.jsx("option",{value:"No",children:"No"})]})]})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsxs("div",{className:"col-md-4",children:["Ext Wall",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"extwall",value:l.extwall,onChange:u,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"N/A",children:"N/A"}),r.jsx("option",{value:"Brick",children:"Brick"}),r.jsx("option",{value:"Brick/Vinyl Siding",children:"Brick/Vinyl Siding"}),r.jsx("option",{value:"Wood/Vinyl Siding",children:"Wood/Vinyl Siding"}),r.jsx("option",{value:"Brick/Wood Siding",children:"Brick/Wood Siding"}),r.jsx("option",{value:"Stone",children:"Stone"}),r.jsx("option",{value:"Masonry",children:"Masonry"}),r.jsx("option",{value:"Metal",children:"Metal"}),r.jsx("option",{value:"Fiberboard",children:"Fiberboard"}),r.jsx("option",{value:"Asphalt Siding",children:"Asphalt Siding"}),r.jsx("option",{value:"Concrete Block",children:"Concrete Block"}),r.jsx("option",{value:"Gable",children:"Gable"}),r.jsx("option",{value:"Brick Veneer",children:"Brick Veneer"}),r.jsx("option",{value:"Frame",children:"Frame"}),r.jsx("option",{value:"Siding",children:"Siding"}),r.jsx("option",{value:"Cement/Wood Fiber Siding",children:"Cement/Wood Fiber Siding"}),r.jsx("option",{value:"Fiber/Cement Siding",children:"Fiber/Cement Siding"}),r.jsx("option",{value:"Wood Siding",children:"Wood Siding"}),r.jsx("option",{value:"Vinyl Siding",children:"Vinyl Siding"}),r.jsx("option",{value:"Aluminium Siding",children:"Aluminium Siding"}),r.jsx("option",{value:"Wood/Vinyl Siding",children:"Alum/Vinyl Siding"})]})]}),r.jsxs("div",{className:"col-md-4",children:["Roofing",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"roofing",value:l.roofing,onChange:u,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"N/A",children:"N/A"}),r.jsx("option",{value:"Asphalt Shingle",children:"Asphalt Shingle"}),r.jsx("option",{value:"Green Roofs",children:"Green Roofs"}),r.jsx("option",{value:"Built-up Roofing",children:"Built-up Roofing"}),r.jsx("option",{value:"Composition Shingle",children:"Composition Shingle"}),r.jsx("option",{value:"Composition Shingle Heavy",children:"Composition Shingle Heavy"}),r.jsx("option",{value:"Solar tiles",children:"Solar tiles"}),r.jsx("option",{value:"Metal",children:"Metal"}),r.jsx("option",{value:"Stone-coated steel",children:"Stone-coated steel"}),r.jsx("option",{value:"Slate",children:"Slate"}),r.jsx("option",{value:"Rubber Slate",children:"Rubber Slate"}),r.jsx("option",{value:"Clay and Concrete tiles",children:"Clay and Concrete tiles"})]})]}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Total SQFT",r.jsx("input",{type:"text",className:"form-control",name:"totalSqft",value:l.totalSqft,onChange:u,required:!0})]})})]}),r.jsxs("h3",{style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:[r.jsx("br",{}),"Property Tax Information"]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),l.propertyTaxInfo&&l.propertyTaxInfo.map((k,P)=>r.jsxs("div",{className:"row gy-4",children:[r.jsx("div",{className:"col-md-3",children:r.jsxs("div",{className:"form-floating mb-3",children:["Property Tax Owned",r.jsx("input",{type:"text",className:"form-control",name:"propertytaxowned",value:k.propertytaxowned,onChange:f=>p(f,P),required:!0})]})}),r.jsx("div",{className:"col-md-2",children:r.jsxs("div",{className:"form-floating mb-2",children:["Owned Year",r.jsx("input",{type:"text",className:"form-control",name:"ownedyear",value:k.ownedyear,onChange:f=>p(f,P),required:!0})]})}),r.jsx("div",{className:"col-md-2",children:r.jsxs("div",{className:"form-floating mb-2",children:["Tax Assessed",r.jsx("input",{type:"text",className:"form-control",name:"taxassessed",value:k.taxassessed,onChange:f=>p(f,P),required:!0})]})}),r.jsx("div",{className:"col-md-2",children:r.jsxs("div",{className:"form-floating mb-2",children:["Tax Year",r.jsx("input",{type:"text",className:"form-control",name:"taxyear",value:k.taxyear,onChange:f=>p(f,P),required:!0})]})}),r.jsx("div",{className:"col-md-3",children:r.jsxs("div",{className:"form-floating mb-2",children:[r.jsx("br",{}),r.jsx("button",{className:"btn btn-danger",onClick:()=>x(P),style:{height:"25px",width:"35px"},children:"X"})]})})]},P)),r.jsx("button",{className:"btn btn-secondary",onClick:N,children:"+ Add Another Property Tax Info"})]}),r.jsx("button",{className:"btn btn-primary continue",onClick:o,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Continue"})]}),n==="Images"&&r.jsxs("div",{role:"tabpanel",className:"card tab-pane active",children:[r.jsxs("h3",{style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:["Upload Images"," "]}),r.jsxs("form",{children:[r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),l.images.map((k,P)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:k.title,placeholder:"Image Title",onChange:f=>v(P,f)})}),r.jsxs("div",{className:"col-md-4 d-flex align-items-center",children:[r.jsx(Na,{multiple:!1,onDone:f=>C(f,P)}),r.jsx("button",{type:"button",className:"btn btn-danger",onClick:()=>m(P),style:{marginLeft:"5px"},children:"Delete"})]}),k.file&&r.jsx("div",{className:"col-md-12",children:r.jsx("img",{src:k.file,alt:"uploaded",style:{width:"150px",height:"150px"}})})]},P)),r.jsx("button",{type:"button",className:"btn btn-primary",onClick:b,style:{backgroundColor:"#fda417",border:"#fda417"},children:"+ Add Image"}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"mb-3",children:[r.jsx("label",{htmlFor:"googleMapLink",className:"form-label",children:r.jsxs("h3",{style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:["Google Maps Link"," "]})}),r.jsx("input",{type:"text",className:"form-control",name:"googleMapLink",value:l.googleMapLink,onChange:u,placeholder:"Enter Google Maps link"})]}),l.googleMapLink&&r.jsx("iframe",{title:"Google Map",width:"100%",height:"300",src:`https://www.google.com/maps/embed/v1/view?key=YOUR_API_KEY¢er=${l.googleMapLink}&zoom=10`,frameBorder:"0",allowFullScreen:!0})]}),r.jsx("button",{className:"btn btn-primary back",onClick:i,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Go Back"})," ",r.jsx("button",{className:"btn btn-primary continue",onClick:o,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Continue"})]}),n==="Accounting"&&r.jsxs("div",{className:"card",style:{color:"#fda417",border:"1px solid #fda417",padding:"10px",borderRadius:"8px"},children:[r.jsx("br",{}),r.jsxs("div",{className:"row gy-3 col-16",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Close Date A to B",required:!0,disabled:!0})}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"date",className:"form-control",name:"closeDateAtoB",value:l.closeDateAtoB,onChange:k=>{const P=k.target.value;d({...l,closeDateAtoB:P}),E(P,l.closeDateBtoC)},placeholder:"Close Date A to B",style:{textAlign:"right"},required:!0})}),r.jsx("div",{children:r.jsxs("p",{children:[r.jsxs("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:["[M-D-Y]"," "]}),":"," ",r.jsx("span",{style:{color:"#000000",fontSize:"14px",fontWeight:"normal"},children:new Date(l.closeDateAtoB).toLocaleDateString("en-US",{month:"numeric",day:"numeric",year:"numeric"})})]})})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Close Date B to C",required:!0,disabled:!0})}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"date",className:"form-control",name:"closeDateBtoC",value:l.closeDateBtoC,onChange:k=>{const P=k.target.value;d({...l,closeDateBtoC:P}),E(l.closeDateAtoB,P)},placeholder:"Close Date B to C",style:{textAlign:"right"},required:!0})}),r.jsx("div",{children:r.jsxs("p",{children:[r.jsxs("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:["[M-D-Y] :"," "]}),r.jsx("span",{style:{color:"#000000",fontSize:"14px",fontWeight:"normal"},children:new Date(l.closeDateBtoC).toLocaleDateString("en-US",{month:"numeric",day:"numeric",year:"numeric"})})]})})]}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Renovation Risk"}),r.jsx("div",{className:"col-md-7",children:c.map(k=>r.jsxs("div",{className:"form-check form-check-inline",children:[r.jsx("input",{className:"form-check-input",type:"radio",name:"renovationRisk",id:`renovationRisk${k}`,value:k,checked:l.renovationRisk===k,onChange:P=>{const f=parseInt(P.target.value,10);d({...l,renovationRisk:f})}}),r.jsx("label",{className:"form-check-label",htmlFor:`renovationRisk${k}`,children:k})]},k))})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Rate of Return"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"rateofreturn",value:`$ ${il().toFixed(2)}`,readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Turn Time"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:h,readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Purchase Price"}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${l.isPurchaseCostInvalid?"is-invalid":""}`,value:`$ ${l.purchaseCost}`,name:"purchaseCost",onChange:k=>{let P=k.target.value.replace(/[^\d.]/g,"");const f=/^\d*\.?\d*$/.test(P);d({...l,purchaseCost:P,isPurchaseCostInvalid:!f})},onKeyPress:k=>{const P=k.charCode;(P<48||P>57)&&P!==46&&(k.preventDefault(),d({...l,isPurchaseCostInvalid:!0}))},placeholder:"Enter Purchase Cost",style:{textAlign:"right"},required:!0}),l.isPurchaseCostInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Costs paid out of Closing Hud A to B:"}),l.costPaidAtoB.map((k,P)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:k.title,onChange:f=>_(P,"title",f.target.value),placeholder:"Title",required:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${k.isInvalid?"is-invalid":""}`,value:`$ ${k.price}`,onChange:f=>L(f,P),placeholder:"Price",style:{textAlign:"right"},required:!0}),k.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),r.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:r.jsx("button",{className:"btn btn-danger",onClick:()=>O(P),style:{marginLeft:"5px"},children:"x"})})]},P)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{onClick:T,className:"btn btn-primary back",style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Extra Cost"]})}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Purchase Cost"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalPurchaseCosts",value:`$ ${z().toFixed(2)}`,readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Credits received on settlement:"}),l.credits.map((k,P)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:k.title,onChange:f=>Q(P,"title",f.target.value),placeholder:"credits",required:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${k.isInvalid?"is-invalid":""}`,value:k.price,onChange:f=>Z(f,P),placeholder:"Price",style:{textAlign:"right"},required:!0}),k.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),r.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:r.jsx("button",{className:"btn btn-danger",onClick:()=>te(P),style:{marginLeft:"5px"},children:"x"})})]},P)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:H,style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add credits"]})}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total credits received on settlement"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalcredits",value:D(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Purchase Cost after Credits Received"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalPurchaseCostsaftercredits",value:U(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Cash Adjustments:"}),l.cashAdjustments.map((k,P)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:k.title,onChange:f=>R(P,"title",f.target.value),placeholder:"Title",required:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${k.isInvalid?"is-invalid":""}`,value:k.price,onChange:f=>M(f,P),placeholder:"Price",style:{textAlign:"right"},required:!0}),k.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),r.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:r.jsx("button",{className:"btn btn-danger",onClick:()=>A(P),style:{marginLeft:"5px"},children:"x"})})]},P)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:G,style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Cash Adjustments"]})}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Cash Adjustments on Settlement"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalcashAdjustments",value:B(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Cash Required on Settlement"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalcashrequiredonsettlement",value:W(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Incidental Cost:"}),l.incidentalCost.map((k,P)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:k.title,onChange:f=>ee(P,"title",f.target.value),placeholder:"Title",required:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${k.isInvalid?"is-invalid":""}`,value:k.price,onChange:f=>re(f,P),placeholder:"Price",style:{textAlign:"right"},required:!0}),k.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),r.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:r.jsx("button",{className:"btn btn-danger",onClick:()=>Y(P),style:{marginLeft:"5px"},children:"x"})})]},P)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:K,style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Incidental Cost"]})}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Incidental Cost"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalincidentalCost",value:ne(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Carry Costs:"}),l.carryCosts.map((k,P)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:k.title,onChange:f=>de(P,"title",f.target.value),placeholder:"Title",required:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${k.isInvalid?"is-invalid":""}`,value:k.price,onChange:f=>ge(f,P),placeholder:"Price",style:{textAlign:"right"},required:!0}),k.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),r.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:r.jsx("button",{className:"btn btn-danger",onClick:()=>le(P),style:{marginLeft:"5px"},children:"x"})})]},P)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:se,style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Carry Cost"]})}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Carry Cost"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalcarryCosts",value:Be(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Reno/Construction"}),l.renovationCost.map((k,P)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:k.title,onChange:f=>he(P,"title",f.target.value),placeholder:"Title",required:!0,style:{fontSize:"10px"}})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${k.isInvalid?"is-invalid":""}`,value:k.price,onChange:f=>$t(f,P),placeholder:"Price",style:{textAlign:"right"},required:!0}),k.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),r.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:r.jsx("button",{className:"btn btn-danger",onClick:()=>zt(P),style:{marginLeft:"5px"},children:"x"})})]},P)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:Ct,style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Reno/Construction"]})}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Renovation Cost"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalrenovationCost",value:Ye(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Renovations & Holding Cost"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalRenovationsandHoldingCost",value:Qn(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Costs to Buy A to B"}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:"form-control",name:"totalCoststoBuyAtoB",value:Zt(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0}),l.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Selling Price B to C"}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${l.isPurchaseCostInvalid?"is-invalid":""}`,name:"sellingPriceBtoC",value:l.sellingPriceBtoC,onChange:k=>{const P=k.target.value,f=/^\d*\.?\d*$/.test(P);d({...l,sellingPriceBtoC:P,isPurchaseCostInvalid:!f})},onKeyPress:k=>{const P=k.charCode;(P<48||P>57)&&P!==46&&(k.preventDefault(),d({...l,isPurchaseCostInvalid:!0}))},placeholder:"Enter Purchase Cost",style:{textAlign:"right"},required:!0}),l.isPurchaseCostInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Less:Costs paid out of closing Hud B to C:"}),l.costPaidOutofClosing.map((k,P)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:k.title,onChange:f=>Xn(P,"title",f.target.value),placeholder:"Title",required:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${k.isInvalid?"is-invalid":""}`,value:k.price,onChange:f=>Wt(f,P),placeholder:"Price",style:{textAlign:"right"},required:!0}),k.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),r.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:r.jsx("button",{className:"btn btn-danger",onClick:()=>js(P),style:{marginLeft:"5px"},children:"x"})})]},P)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:ys,style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Cost Paid Out of Closing"]})}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total cost paid out of closing"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalcostPaidOutofClosing",value:gn(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Cost to Sell B to C"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalCosttoSellBtoC",value:Ut(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Gross Proceeds per HUD"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"grossproceedsperHUD",value:Ut(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Adjustments:"}),l.adjustments.map((k,P)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:k.title,onChange:f=>xn(P,"title",f.target.value),placeholder:"Title",required:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${k.isInvalid?"is-invalid":""}`,value:k.price,onChange:f=>Bo(f,P),placeholder:"Price",style:{textAlign:"right"},required:!0}),k.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),r.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:r.jsx("button",{className:"btn btn-danger",onClick:()=>qt(P),style:{marginLeft:"5px"},children:"x"})})]},P)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:fe,style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Adjustments"]})}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Adjustments"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totaladjustments",value:Ns(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Funds Available for distribution"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"fundsavailablefordistribution",value:Mo(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Income Statement Adjustments:"}),l.incomestatement.map((k,P)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:k.title,onChange:f=>Cs(P,"title",f.target.value),placeholder:"Title",required:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${k.isInvalid?"is-invalid":""}`,value:k.price,onChange:f=>Jn(f,P),placeholder:"Price",style:{textAlign:"right"},required:!0}),k.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),r.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:r.jsx("button",{className:"btn btn-danger",onClick:()=>ol(P),style:{marginLeft:"5px"},children:"x"})})]},P)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:sl,style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Income Statement"]})}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Income Statement Adjustment"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalincomestatement",value:Zn(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Net B to C Sale Value"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"netBtoCsalevalue",value:en(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Net Profit Computation"}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Total Costs to Buy A to B",required:!0,disabled:!0})}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalCoststoBuyAtoBagain",value:Zt(),style:{textAlign:"right"},required:!0})})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Funds Prior to Closing",required:!0,disabled:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${l.isfundspriortoclosingInvalid?"is-invalid":""}`,value:l.fundspriortoclosing,name:"fundspriortoclosing",onChange:k=>{const P=k.target.value,f=/^\d*\.?\d*$/.test(P);d({...l,fundspriortoclosing:P,isfundspriortoclosingInvalid:!f})},onKeyPress:k=>{const P=k.charCode;(P<48||P>57)&&P!==46&&(k.preventDefault(),d({...l,isfundspriortoclosingInvalid:!0}))},style:{textAlign:"right"},required:!0}),l.isfundspriortoclosingInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Net B to C Sale Value",required:!0,disabled:!0})}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"netBtoCsalevalue",value:en(),style:{textAlign:"right"},required:!0})})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Short Term Rental",required:!0,disabled:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${l.isPurchaseCostInvalid?"is-invalid":""}`,value:l.shorttermrental,name:"shorttermrental",onChange:k=>{const P=k.target.value,f=/^\d*\.?\d*$/.test(P);d({...l,shorttermrental:P,isPurchaseCostInvalid:!f})},onKeyPress:k=>{const P=k.charCode;(P<48||P>57)&&P!==46&&(k.preventDefault(),d({...l,isPurchaseCostInvalid:!0}))},style:{textAlign:"right"},required:!0}),l.isPurchaseCostInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Other Income",required:!0,disabled:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${l.isPurchaseCostInvalid?"is-invalid":""}`,value:l.OtherIncome,name:"OtherIncome",onChange:k=>{const P=k.target.value,f=/^\d*\.?\d*$/.test(P);d({...l,OtherIncome:P,isPurchaseCostInvalid:!f})},onKeyPress:k=>{const P=k.charCode;(P<48||P>57)&&P!==46&&(k.preventDefault(),d({...l,isPurchaseCostInvalid:!0}))},style:{textAlign:"right"},required:!0}),l.isPurchaseCostInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Insurance Claim",required:!0,disabled:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${l.isPurchaseCostInvalid?"is-invalid":""}`,value:l.InsuranceClaim,name:"InsuranceClaim",onChange:k=>{const P=k.target.value,f=/^\d*\.?\d*$/.test(P);d({...l,InsuranceClaim:P,isPurchaseCostInvalid:!f})},onKeyPress:k=>{const P=k.charCode;(P<48||P>57)&&P!==46&&(k.preventDefault(),d({...l,isPurchaseCostInvalid:!0}))},style:{textAlign:"right"},required:!0}),l.isPurchaseCostInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Long Term Rental",required:!0,disabled:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${l.isPurchaseCostInvalid?"is-invalid":""}`,value:l.LongTermRental,name:"LongTermRental",onChange:k=>{const P=k.target.value,f=/^\d*\.?\d*$/.test(P);d({...l,LongTermRental:P,isPurchaseCostInvalid:!f})},onKeyPress:k=>{const P=k.charCode;(P<48||P>57)&&P!==46&&(k.preventDefault(),d({...l,isPurchaseCostInvalid:!0}))},style:{textAlign:"right"},required:!0}),l.isPurchaseCostInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Net Profit Before Financing Costs"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"netprofitbeforefinancingcosts",value:Er(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Financing Cost/Other Closing Costs"}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${l.isFinancingCostClosingCostInvalid?"is-invalid":""}`,value:l.FinancingCostClosingCost,name:"FinancingCostClosingCost",onChange:k=>{const P=k.target.value,f=/^\d*\.?\d*$/.test(P);d({...l,FinancingCostClosingCost:P,isFinancingCostClosingCostInvalid:!f})},onKeyPress:k=>{const P=k.charCode;(P<48||P>57)&&P!==46&&(k.preventDefault(),d({...l,isFinancingCostClosingCostInvalid:!0}))},style:{textAlign:"right"},required:!0}),l.isFinancingCostClosingCostInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Net Profit"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"netprofit",value:bs(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsxs("div",{className:"col-md-6",children:[r.jsx("button",{className:"btn btn-primary back",onClick:i,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Go Back"})," ",r.jsx("button",{type:"button",className:"btn btn-primary continue",style:{backgroundColor:"#fda417",border:"#fda417"},onClick:o,children:"Continue"})," "]})]}),n==="IAB"&&r.jsxs("div",{role:"tabpanel",className:"card tab-pane active",children:[r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Add IAB Links:"}),l.IAB.map((k,P)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:k.title,onChange:f=>al(P,"title",f.target.value),placeholder:"Title",required:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:"form-control",value:k.URL,onChange:f=>ll(P,"URL",f.target.value),placeholder:"URL",style:{textAlign:"right"},required:!0}),k.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid URL."})]}),r.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:r.jsx("button",{className:"btn btn-danger",onClick:()=>$o(P),style:{marginLeft:"5px"},children:"x"})})]},P)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:zo,style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add IAB URL"]})}),r.jsxs("div",{className:"col-md-6",children:[r.jsx("button",{className:"btn btn-primary back",onClick:i,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Go Back"})," ",r.jsx("button",{type:"button",className:"btn btn-primary continue",style:{backgroundColor:"#fda417",border:"#fda417"},onClick:g,children:"Submit"})," "]})]})]})]})})]})},oS=()=>{const e=Ke(),{properties:t,loading:n,totalPages:s,currentPage:o}=_e(C=>C.property),[i,a]=S.useState(""),[l,d]=S.useState([]),[c,u]=S.useState(1),p=10;S.useEffect(()=>{e(mr({page:c,limit:p,keyword:i}))},[e,c,i]),S.useEffect(()=>{i.trim()?d(t.filter(C=>C.address.toLowerCase().includes(i.toLowerCase()))):d(t)},[i,t]);const g=C=>{a(C.target.value)},N=C=>{C.preventDefault()},x=C=>{u(C),e(mr({page:C,limit:p,keyword:i}))};return r.jsxs(r.Fragment,{children:[r.jsx(Le,{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsxs("div",{className:"container col-12",children:[r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-lg-12 card-margin col-12",children:r.jsx("div",{className:"card search-form col-12",children:r.jsx("div",{className:"card-body p-0",children:r.jsx("form",{id:"search-form",onSubmit:N,children:r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-12",children:r.jsx("div",{className:"row no-gutters",children:r.jsx("div",{className:"col-lg-8 col-md-6 col-sm-12 p-0",children:r.jsx("input",{type:"text",value:i,onChange:g,placeholder:"Enter the keyword and hit ENTER button...",className:"form-control"})})})})})})})})})}),r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-12",children:r.jsx("div",{className:"card card-margin",children:r.jsx("div",{className:"card-body",children:n?r.jsx("div",{children:"Loading..."}):r.jsx("div",{className:"table-responsive",children:r.jsxs("table",{className:"table widget-26",children:[r.jsx("thead",{style:{color:"#fda417",fontSize:"15px"},children:r.jsxs("tr",{children:[r.jsx("th",{children:"Image"}),r.jsx("th",{children:"Details"}),r.jsx("th",{children:"Total Living Square Foot"}),r.jsx("th",{children:"Year Built"}),r.jsx("th",{children:"Cost per Square Foot"})]})}),r.jsx("tbody",{children:l.length>0?l.map(C=>r.jsxs("tr",{children:[r.jsx("td",{children:C.images&&C.images[0]?r.jsx("img",{src:C.images[0].file||mt,alt:"Property Thumbnail",style:{width:"100px",height:"auto"}}):r.jsx("img",{src:mt,alt:"Default Property Thumbnail",style:{width:"100px",height:"auto"}})}),r.jsx("td",{children:r.jsxs("div",{className:"widget-26-job-title",children:[r.jsx(ae,{to:`/property/${C.propertyId}`,className:"link-primary text-decoration-none",children:C.address}),r.jsxs("p",{className:"m-0",children:[r.jsxs("span",{className:"employer-name",children:[r.jsx("i",{className:"fa fa-map-marker",style:{color:"#F74B02"}}),C.city,", ",C.county,","," ",C.state]}),r.jsxs("p",{className:"text-muted m-0",children:["House Id: ",C.propertyId]})]})]})}),r.jsx("td",{children:C.totallivingsqft}),r.jsx("td",{children:C.yearBuild}),r.jsx("td",{children:C.costpersqft})]},C.id)):r.jsx("tr",{children:r.jsx("td",{colSpan:"5",children:"No properties found."})})})]})})})})})}),r.jsx("nav",{"aria-label":"Page navigation",children:r.jsxs("ul",{className:"pagination justify-content-center",children:[r.jsx("li",{className:`page-item ${o===1?"disabled":""}`,children:r.jsx("button",{className:"page-link",onClick:()=>x(o-1),children:"Previous"})}),Array.from({length:s},(C,b)=>r.jsx("li",{className:`page-item ${o===b+1?"active":""}`,children:r.jsx("button",{className:"page-link",onClick:()=>x(b+1),children:b+1})},b+1)),r.jsx("li",{className:`page-item ${o===s?"disabled":""}`,children:r.jsx("button",{className:"page-link",onClick:()=>x(o+1),children:"Next"})})]})})]}),r.jsx(tt,{})]})},iS=()=>{const{userId:e}=gs(),t=Ke(),{user:n,loading:s}=_e(o=>o.user);return S.useEffect(()=>{e&&t(Ti(e))},[e,t]),s?r.jsx("div",{children:"Loading..."}):r.jsxs(r.Fragment,{children:[r.jsx(Le,{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("div",{className:"main-body",children:r.jsxs("div",{className:"row gutters-sm",children:[r.jsx("div",{className:"col-md-4 mb-3",children:r.jsx("div",{className:"card",children:r.jsxs("div",{className:"card-body",children:[r.jsxs("div",{className:"d-flex flex-column align-items-center text-center",children:[r.jsx("img",{className:"img-fluid",src:n.profileImage||Bs,alt:"ProfileImage",style:{marginTop:"0px",maxWidth:"300px",maxHeight:"300px"}}),r.jsxs("h4",{children:[n.title,". ",n.firstName," ",n.middleName," ",n.lastName]}),r.jsxs("span",{className:"text-muted font-size-sm",children:[r.jsx("i",{className:"fa fa-map-marker",style:{color:"#F74B02",fontSize:"20px"}})," ",n.city,", ",n.state,", ",n.county,", ",n.zip]})]}),r.jsx("br",{})]})})}),r.jsx("div",{className:"col-md-4 mb-3",children:r.jsx("div",{className:"card",children:r.jsxs("div",{className:"card-body",children:[r.jsxs("h1",{className:"d-flex align-items-center mb-3",style:{color:"#fda417",fontSize:"26px"},children:[r.jsx("i",{className:"material-icons text-info mr-2",style:{color:"#fda417",fontSize:"26px"},children:"Recent"}),"Project investments"]}),r.jsx("hr",{}),r.jsx("img",{src:mt,alt:"Admin",className:"rounded-circle",style:{marginRight:"10px",maxWidth:"50px",maxHeight:"50px"}}),r.jsx("small",{children:"Web Design project in California"}),r.jsx("div",{className:"progress",style:{width:"100%",marginTop:"10px"},children:r.jsx("div",{className:"progress-bar",role:"progressbar",style:{width:"25%"},"aria-valuenow":25,"aria-valuemin":0,"aria-valuemax":100,children:"25% completed"})}),r.jsx("hr",{}),r.jsx("img",{src:mt,alt:"Admin",className:"rounded-circle",style:{marginRight:"10px",maxWidth:"50px",maxHeight:"50px"}}),r.jsx("small",{children:"Web Design project in California"}),r.jsx("div",{className:"progress",style:{width:"100%",marginTop:"10px"},children:r.jsx("div",{className:"progress-bar",role:"progressbar",style:{width:"75%"},"aria-valuenow":75,"aria-valuemin":0,"aria-valuemax":100,children:"75% completed"})})]})})}),r.jsx("div",{className:"col-md-4 mb-3",children:r.jsx("div",{className:"card",children:r.jsxs("div",{className:"card-body",children:[r.jsxs("h1",{className:"d-flex align-items-center mb-3",style:{color:"#fda417",fontSize:"26px"},children:[r.jsx("i",{className:"material-icons text-info mr-2",children:"Projects"}),"Seeking investments"]}),r.jsx("hr",{}),r.jsx("img",{src:mt,alt:"Admin",className:"rounded-circle",style:{marginRight:"10px",maxWidth:"50px",maxHeight:"50px"}}),r.jsx("small",{children:"Web Design project in California"}),r.jsx("br",{})," ",r.jsx("br",{}),r.jsx("hr",{}),r.jsx("img",{src:mt,alt:"Admin",className:"rounded-circle",style:{marginRight:"10px",maxWidth:"50px",maxHeight:"50px"}}),r.jsx("small",{children:"Web Design project in California"}),r.jsx("br",{})," ",r.jsx("br",{})]})})}),r.jsx("div",{className:"col-md-4",children:r.jsx("div",{className:"card mb-3",children:r.jsxs("div",{className:"card-body",children:[r.jsxs("h1",{className:"d-flex align-items-center mb-3",style:{color:"#fda417",fontSize:"26px"},children:[r.jsx("i",{className:"material-icons text-info mr-2",style:{color:"#fda417",fontSize:"26px"},children:"About"}),"me :"]})," ",r.jsx("hr",{}),n.aboutme]})})}),r.jsx("div",{className:"col-md-4 mb-3",children:r.jsx("div",{className:"card",children:r.jsxs("div",{className:"card-body",children:[r.jsxs("h1",{className:"d-flex align-items-center mb-3",style:{color:"#fda417",fontSize:"26px"},children:[r.jsx("i",{className:"material-icons text-info mr-2",style:{color:"#fda417",fontSize:"26px"},children:"Willing to"}),"invest:"]}),r.jsx("hr",{}),r.jsxs("h2",{className:"d-flex flex-column align-items-center text-center",style:{color:"#fda417",border:"#fda417",fontSize:"60px",fontWeight:"normal"},children:["$ ",n.fundAmount]}),r.jsx("hr",{}),r.jsxs("div",{className:"card-body",children:[r.jsxs("div",{className:"row",children:[r.jsx("div",{className:"col-sm-3",children:r.jsx("span",{className:"mb-0",children:"Email"})}),n.email,r.jsx("div",{className:"col-sm-9 text-secondary"})]}),r.jsx("hr",{}),r.jsxs("div",{className:"row",children:[r.jsx("div",{className:"col-sm-3",children:r.jsx("span",{className:"mb-0",children:"Phone"})}),"67656584687",r.jsx("div",{className:"col-sm-9 text-secondary"})]})]})]})})}),r.jsx("div",{className:"col-md-4 mb-3",children:r.jsx("div",{className:"card",children:r.jsxs("div",{className:"card-body",children:[r.jsxs("h1",{className:"d-flex align-items-center mb-3",style:{color:"#fda417",fontSize:"26px"},children:[r.jsx("i",{className:"material-icons text-info mr-2",children:"Suggested"}),"Borrowers"]}),r.jsxs("ul",{className:"list-group list-group-flush",children:[r.jsx("li",{className:"list-group-item d-flex justify-content-between align-items-center flex-wrap",children:r.jsxs("h6",{className:"mb-0",children:[r.jsx("img",{src:Bs,style:{marginTop:"0px",maxWidth:"50px",maxHeight:"50px"}}),"Ravichandu"]})}),r.jsx("li",{className:"list-group-item d-flex justify-content-between align-items-center flex-wrap",children:r.jsxs("h6",{className:"mb-0",children:[r.jsx("img",{src:Bs,style:{marginTop:"0px",maxWidth:"50px",maxHeight:"50px"}}),"Ravichandu"]})}),r.jsx("li",{className:"list-group-item d-flex justify-content-between align-items-center flex-wrap",children:r.jsxs("h6",{className:"mb-0",children:[r.jsx("img",{src:Bs,style:{marginTop:"0px",maxWidth:"50px",maxHeight:"50px"}}),"Ravichandu"]})})]})]})})})]})})]})};function aS(){const e="http://67.225.129.127:3002",[t,n]=S.useState(""),[s,o]=S.useState(""),i=hn(),a=async l=>{l.preventDefault();try{const{data:d}=await me.post(`${e}/admin/login`,{username:t,password:s});localStorage.setItem("token",d.token),i("/AdminPLogin/dashboard")}catch(d){alert("Invalid login credentials",d)}};return r.jsx(r.Fragment,{children:r.jsx("section",{className:"d-flex justify-content-center align-items-center col-12",style:{minHeight:"100vh",backgroundColor:"#FFFFFF",width:"100%",paddingLeft:"500px"},children:r.jsx("div",{className:"col-md-6 col-lg-4",children:r.jsx("div",{className:"container-fluid px-0",children:r.jsx("div",{className:"row gy-4 align-items-center justify-content-center",children:r.jsxs("div",{className:"col-12 text-center",children:[r.jsx("input",{autoComplete:"off",type:"text",value:t,onChange:l=>n(l.target.value)}),r.jsx("br",{})," ",r.jsx("br",{}),r.jsx("input",{autoComplete:"off",type:"password",value:s,onChange:l=>o(l.target.value)}),r.jsx("div",{className:"mb-3",children:r.jsx("button",{onClick:a,className:"btn btn-dark w-70",children:"Login"})})]})})})})})})}function Bi({children:e}){const t=hn(),n=localStorage.getItem("token");return S.useEffect(()=>{n||t("/AdminPLogin")},[n,t]),n?e:null}Bi.propTypes={children:Lt.node.isRequired};const lS=()=>{const e=hn(),t=Ke(),{properties:n,totalPages:s}=_e(N=>N.property),[o,i]=S.useState(1),a=5,l="",[d,c]=S.useState("dashboard");S.useEffect(()=>{t(mr({page:o,limit:a,keyword:l}))},[t,o,l]);const u=N=>{i(N)},p=()=>{switch(d){case"activeUsers":return r.jsx("div",{children:"Active Users Content"});case"inactiveUsers":return r.jsx("div",{children:"Inactive Users Content"});case"addProperty":return r.jsx("div",{children:"Add Property Content"});case"userProperties":return r.jsx("div",{className:"container-fluid",style:{padding:"35px",paddingLeft:"120px"},children:n.length>0?r.jsxs(r.Fragment,{children:[r.jsx("ul",{children:n.map(N=>r.jsx("li",{children:r.jsx("div",{className:"container",children:r.jsx("div",{className:"col-md-12",children:r.jsxs("div",{className:"row p-2 bg-white border rounded mt-2",children:[r.jsx("div",{className:"col-md-3 mt-1",children:r.jsx("img",{src:N.images[0].file||mt,className:"w-70",alt:"Img",style:{marginTop:"0px",maxWidth:"200px",maxHeight:"200px"}})}),r.jsxs("div",{className:"col-md-6 mt-1",children:[r.jsx("h5",{children:r.jsxs(ae,{to:`/property/${N.propertyId}`,target:"_blank",children:[N.address,"....."]})}),r.jsx("p",{className:"text-justify text-truncate para mb-0",children:"There are many variations of passages of"})]}),r.jsx("div",{className:"align-items-center align-content-center col-md-3 border-left mt-1",children:r.jsxs("div",{className:"d-flex flex-column mt-4",children:[r.jsx(ae,{to:`/property/${N.propertyId}`,children:r.jsxs("button",{className:"btn btn-outline-primary btn-sm mt-2",type:"button",style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{className:"fa fa-eye",style:{color:"#F74B02"}})," ","View Details"]})}),r.jsxs("button",{className:"btn btn-outline-primary btn-sm mt-2",type:"button",style:{backgroundColor:"#fda417",border:"#fda417"},onClick:()=>c("editDetails"),children:[r.jsx("span",{className:"fa fa-edit",style:{color:"#F74B02"}})," ","Edit Details"]})]})})]})})})},N._id))}),r.jsxs("div",{className:"pagination",children:[r.jsx("button",{onClick:()=>u(o-1),disabled:o===1,children:"Previous"}),Array.from({length:s},(N,x)=>x+1).map(N=>N===o||N===1||N===s||N>=o-1&&N<=o+1?r.jsx("button",{onClick:()=>u(N),disabled:o===N,children:N},N):N===2||N===s-1?r.jsx("span",{children:"..."},N):null),r.jsx("button",{onClick:()=>u(o+1),disabled:o===s,children:"Next"})]})]}):r.jsx("p",{children:"No active properties found."})});case"adminProperties":return r.jsx("div",{children:"Admin Properties Content"});case"newPage":return r.jsxs("div",{style:{padding:"20px"},children:[r.jsx("h3",{children:"New Page"}),r.jsx("p",{children:"This is some dummy text. You can replace it with your content later."})]});case"editDetails":return r.jsxs("div",{style:{padding:"20px"},children:[r.jsx("h3",{children:"Edit Property Details"}),r.jsx("p",{children:"You can add your edit details here."})]});default:return r.jsx("div",{children:r.jsx(ae,{to:"/AdminPLogin/admininfo",children:"Welcome to the Dashboard"})})}},g=()=>{localStorage.removeItem("token"),e("/AdminPLogin")};return r.jsxs("div",{id:"wrapper",children:[r.jsxs("ul",{className:"navbar-nav bg-gradient-primary sidebar sidebar-dark accordion",id:"accordionSidebar",children:[r.jsxs("span",{className:"sidebar-brand d-flex align-items-center justify-content-center",children:[r.jsx("div",{className:"sidebar-brand-icon rotate-n-15",children:r.jsx("i",{className:"fas fa-laugh-wink"})}),r.jsxs("div",{className:"sidebar-brand-text mx-3",children:["Admin ",r.jsx("sup",{children:"EL"})]})]}),r.jsx("hr",{className:"sidebar-divider my-0"}),r.jsx("li",{className:"nav-item active",children:r.jsxs(ae,{to:"#",onClick:()=>c("dashboard"),className:"nav-link link-primary text-decoration-none",children:[r.jsx("i",{className:"fas fa-fw fa-tachometer-alt"}),r.jsx("span",{children:"Dashboard"})]})}),r.jsx("hr",{className:"sidebar-divider"}),r.jsx("div",{className:"sidebar-heading",children:"Interface"}),r.jsxs("li",{className:"nav-item",children:[r.jsxs("a",{className:"nav-link collapsed",href:"#","data-toggle":"collapse","data-target":"#collapseTwo","aria-expanded":"true","aria-controls":"collapseTwo",children:[r.jsx("i",{className:"fas fa-fw fa-cog"}),r.jsx("span",{children:"Users"})]}),r.jsx("div",{id:"collapseTwo",className:"collapse","aria-labelledby":"headingTwo","data-parent":"#accordionSidebar",children:r.jsxs("div",{className:"bg-white py-2 collapse-inner rounded",children:[r.jsx("h6",{className:"collapse-header",children:"Registered Users:"}),r.jsx(ae,{to:"#",onClick:()=>c("activeUsers"),className:"collapse-item link-primary text-decoration-none",children:"Active Users"}),r.jsx(ae,{to:"#",onClick:()=>c("inactiveUsers"),className:"collapse-item link-primary text-decoration-none",children:"Inactive Users"})]})})]}),r.jsxs("li",{className:"nav-item",children:[r.jsxs("a",{className:"nav-link collapsed",href:"#","data-toggle":"collapse","data-target":"#collapseUtilities","aria-expanded":"true","aria-controls":"collapseUtilities",children:[r.jsx("i",{className:"fas fa-fw fa-wrench"}),r.jsx("span",{children:"Properties"})]}),r.jsx("div",{id:"collapseUtilities",className:"collapse","aria-labelledby":"headingUtilities","data-parent":"#accordionSidebar",children:r.jsxs("div",{className:"bg-white py-2 collapse-inner rounded",children:[r.jsx("h6",{className:"collapse-header",children:"Details:"}),r.jsx(ae,{to:"#",onClick:()=>c("addProperty"),className:"collapse-item link-primary text-decoration-none",children:"Add Property"}),r.jsx(ae,{to:"#",onClick:()=>c("userProperties"),className:"collapse-item link-primary text-decoration-none",children:"User Properties"}),r.jsx(ae,{to:"#",onClick:()=>c("adminProperties"),className:"collapse-item link-primary text-decoration-none",children:"Admin Properties"}),r.jsx(ae,{to:"#",onClick:()=>c("newPage"),className:"collapse-item link-primary text-decoration-none",children:"New Page"})]})})]}),r.jsx("li",{className:"nav-item",children:r.jsxs(ae,{to:"#",onClick:g,className:"nav-link link-primary text-decoration-none",children:[r.jsx("i",{className:"fas fa-fw fa-sign-out-alt"}),r.jsx("span",{children:"Logout"})]})})]}),r.jsx("div",{id:"content-wrapper",className:"d-flex flex-column",children:r.jsx("div",{id:"content",children:r.jsx("div",{className:"container-fluid",children:p()})})})]})},cS=()=>{const e=Ke(),{user:t,loading:n,error:s}=_e(o=>o.admin);return console.log("user",t),S.useEffect(()=>{e(Di())},[e]),n?r.jsx("p",{children:"Loading..."}):s?r.jsxs("p",{children:["Error: ",s]}):r.jsxs("div",{children:[r.jsx("h2",{children:"Admin Details"}),t?r.jsx("div",{children:r.jsxs("p",{children:[r.jsx("strong",{children:"Username:"})," ",t.username]})}):r.jsx("p",{children:"No user details found. Thank you"})]})},dS=()=>r.jsxs(bC,{children:[r.jsx($C,{}),r.jsxs(hC,{children:[r.jsx(be,{path:"/",element:r.jsx(WC,{})}),r.jsx(be,{path:"/about",element:r.jsx(UC,{})}),r.jsx(be,{path:"/services",element:r.jsx(rS,{})}),r.jsx(be,{path:"/contact",element:r.jsx(qC,{})}),r.jsx(be,{path:"/register",element:r.jsx(vb,{})}),r.jsx(be,{path:"/registrationsuccess",element:r.jsx(Ms,{children:r.jsx(Fb,{})})}),r.jsx(be,{path:"/login",element:r.jsx(xb,{})}),r.jsx(be,{path:"/dashboard",element:r.jsx(Ms,{children:r.jsx(Sb,{})})}),r.jsx(be,{path:"/users/:id/verify/:token",element:r.jsx(Ab,{})}),r.jsx(be,{path:"/forgotpassword",element:r.jsx(Rb,{})}),r.jsx(be,{path:"/users/resetpassword/:userId/:token",element:r.jsx(Ib,{})}),r.jsx(be,{path:"/addproperty",element:r.jsx(Ms,{children:r.jsx(sg,{})})}),r.jsx(be,{path:"/property/:id",element:r.jsx(tS,{})}),r.jsx(be,{path:"/properties/:house_id",element:r.jsx(sS,{})}),r.jsx(be,{path:"/searchmyproperties",element:r.jsx(nS,{})}),r.jsx(be,{path:"/searchproperties",element:r.jsx(oS,{})}),r.jsx(be,{path:"/editproperty/:id",element:r.jsx(Ms,{children:r.jsx(Dp,{})})}),r.jsx(be,{path:"/profile/:userId",element:r.jsx(iS,{})}),r.jsx(be,{path:"/AdminPLogin",element:r.jsx(aS,{})}),r.jsx(be,{path:"/AdminPLogin/dashboard",element:r.jsx(Bi,{children:r.jsx(lS,{})})}),r.jsx(be,{path:"/AdminPLogin/admininfo",element:r.jsx(Bi,{children:r.jsx(cS,{})})}),r.jsx(be,{path:"/admineditproperty/:id",element:r.jsx(Bi,{children:r.jsx(Dp,{})})})]})]});Qh(document.getElementById("root")).render(r.jsx(S.StrictMode,{children:r.jsx(Dj,{store:PN,children:r.jsx(dS,{})})}));
+*/(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var i="",a=0;a{i.target===e&&(o(),t(i))},n+s)}function nw(e){e.offsetHeight}const _p=e=>!e||typeof e=="function"?e:t=>{e.current=t};function rw(e,t){const n=_p(e),s=_p(t);return o=>{n&&n(o),s&&s(o)}}function Lo(e,t){return k.useMemo(()=>rw(e,t),[e,t])}function sw(e){return e&&"setState"in e?qr.findDOMNode(e):e??null}const ow=I.forwardRef(({onEnter:e,onEntering:t,onEntered:n,onExit:s,onExiting:o,onExited:i,addEndListener:a,children:l,childRef:d,...c},u)=>{const p=k.useRef(null),g=Lo(p,d),N=T=>{g(sw(T))},x=T=>O=>{T&&p.current&&T(p.current,O)},C=k.useCallback(x(e),[e]),b=k.useCallback(x(t),[t]),m=k.useCallback(x(n),[n]),v=k.useCallback(x(s),[s]),h=k.useCallback(x(o),[o]),j=k.useCallback(x(i),[i]),E=k.useCallback(x(a),[a]);return r.jsx(vn,{ref:u,...c,onEnter:C,onEntered:m,onEntering:b,onExit:v,onExited:j,onExiting:h,addEndListener:E,nodeRef:p,children:typeof l=="function"?(T,O)=>l(T,{...O,ref:N}):I.cloneElement(l,{ref:N})})});function iw(e){const t=k.useRef(e);return k.useEffect(()=>{t.current=e},[e]),t}function Gt(e){const t=iw(e);return k.useCallback(function(...n){return t.current&&t.current(...n)},[t])}const aw=e=>k.forwardRef((t,n)=>r.jsx("div",{...t,ref:n,className:ye(t.className,e)}));function lw(){return k.useState(null)}function cw(){const e=k.useRef(!0),t=k.useRef(()=>e.current);return k.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),t.current}function dw(e){const t=k.useRef(null);return k.useEffect(()=>{t.current=e}),t.current}const uw=typeof global<"u"&&global.navigator&&global.navigator.product==="ReactNative",fw=typeof document<"u",Tp=fw||uw?k.useLayoutEffect:k.useEffect,pw=["as","disabled"];function mw(e,t){if(e==null)return{};var n={};for(var s in e)if({}.hasOwnProperty.call(e,s)){if(t.indexOf(s)>=0)continue;n[s]=e[s]}return n}function hw(e){return!e||e.trim()==="#"}function fg({tagName:e,disabled:t,href:n,target:s,rel:o,role:i,onClick:a,tabIndex:l=0,type:d}){e||(n!=null||s!=null||o!=null?e="a":e="button");const c={tagName:e};if(e==="button")return[{type:d||"button",disabled:t},c];const u=g=>{if((t||e==="a"&&hw(n))&&g.preventDefault(),t){g.stopPropagation();return}a==null||a(g)},p=g=>{g.key===" "&&(g.preventDefault(),u(g))};return e==="a"&&(n||(n="#"),t&&(n=void 0)),[{role:i??"button",disabled:void 0,tabIndex:t?void 0:l,href:n,target:e==="a"?s:void 0,"aria-disabled":t||void 0,rel:e==="a"?o:void 0,onClick:u,onKeyDown:p},c]}const vw=k.forwardRef((e,t)=>{let{as:n,disabled:s}=e,o=mw(e,pw);const[i,{tagName:a}]=fg(Object.assign({tagName:n,disabled:s},o));return r.jsx(a,Object.assign({},o,i,{ref:t}))});vw.displayName="Button";function gw(e){return e.code==="Escape"||e.keyCode===27}function pg(){const e=k.version.split(".");return{major:+e[0],minor:+e[1],patch:+e[2]}}const xw={[Sn]:"show",[ir]:"show"},_u=k.forwardRef(({className:e,children:t,transitionClasses:n={},onEnter:s,...o},i)=>{const a={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1,...o},l=k.useCallback((u,p)=>{nw(u),s==null||s(u,p)},[s]),{major:d}=pg(),c=d>=19?t.props.ref:t.ref;return r.jsx(ow,{ref:i,addEndListener:tw,...a,onEnter:l,childRef:c,children:(u,p)=>k.cloneElement(t,{...p,className:ye("fade",e,t.props.className,xw[u],n[u])})})});_u.displayName="Fade";const yw={"aria-label":Lt.string,onClick:Lt.func,variant:Lt.oneOf(["white"])},Tu=k.forwardRef(({className:e,variant:t,"aria-label":n="Close",...s},o)=>r.jsx("button",{ref:o,type:"button",className:ye("btn-close",t&&`btn-close-${t}`,e),"aria-label":n,...s}));Tu.displayName="CloseButton";Tu.propTypes=yw;const mg=k.forwardRef(({as:e,bsPrefix:t,variant:n="primary",size:s,active:o=!1,disabled:i=!1,className:a,...l},d)=>{const c=Ie(t,"btn"),[u,{tagName:p}]=fg({tagName:e,disabled:i,...l}),g=p;return r.jsx(g,{...u,...l,ref:d,disabled:i,className:ye(a,c,o&&"active",n&&`${c}-${n}`,s&&`${c}-${s}`,l.href&&i&&"disabled")})});mg.displayName="Button";function jw(e){const t=k.useRef(e);return t.current=e,t}function hg(e){const t=jw(e);k.useEffect(()=>()=>t.current(),[])}function Nw(e,t){return k.Children.toArray(e).some(n=>k.isValidElement(n)&&n.type===t)}function Cw({as:e,bsPrefix:t,className:n,...s}){t=Ie(t,"col");const o=$b(),i=Wb(),a=[],l=[];return o.forEach(d=>{const c=s[d];delete s[d];let u,p,g;typeof c=="object"&&c!=null?{span:u,offset:p,order:g}=c:u=c;const N=d!==i?`-${d}`:"";u&&a.push(u===!0?`${t}${N}`:`${t}${N}-${u}`),g!=null&&l.push(`order${N}-${g}`),p!=null&&l.push(`offset${N}-${p}`)}),[{...s,className:ye(n,...a,...l)},{as:e,bsPrefix:t,spans:a}]}const vg=k.forwardRef((e,t)=>{const[{className:n,...s},{as:o="div",bsPrefix:i,spans:a}]=Cw(e);return r.jsx(o,{...s,ref:t,className:ye(n,!a.length&&i)})});vg.displayName="Col";var bw=Function.prototype.bind.call(Function.prototype.call,[].slice);function Tr(e,t){return bw(e.querySelectorAll(t))}function Op(e,t){if(e.contains)return e.contains(t);if(e.compareDocumentPosition)return e===t||!!(e.compareDocumentPosition(t)&16)}const ww="data-rr-ui-";function kw(e){return`${ww}${e}`}const gg=k.createContext(xs?window:void 0);gg.Provider;function Ou(){return k.useContext(gg)}const Sw={type:Lt.string,tooltip:Lt.bool,as:Lt.elementType},rl=k.forwardRef(({as:e="div",className:t,type:n="valid",tooltip:s=!1,...o},i)=>r.jsx(e,{...o,ref:i,className:ye(t,`${n}-${s?"tooltip":"feedback"}`)}));rl.displayName="Feedback";rl.propTypes=Sw;const pn=k.createContext({}),Au=k.forwardRef(({id:e,bsPrefix:t,className:n,type:s="checkbox",isValid:o=!1,isInvalid:i=!1,as:a="input",...l},d)=>{const{controlId:c}=k.useContext(pn);return t=Ie(t,"form-check-input"),r.jsx(a,{...l,ref:d,type:s,id:e||c,className:ye(n,t,o&&"is-valid",i&&"is-invalid")})});Au.displayName="FormCheckInput";const ba=k.forwardRef(({bsPrefix:e,className:t,htmlFor:n,...s},o)=>{const{controlId:i}=k.useContext(pn);return e=Ie(e,"form-check-label"),r.jsx("label",{...s,ref:o,htmlFor:n||i,className:ye(t,e)})});ba.displayName="FormCheckLabel";const xg=k.forwardRef(({id:e,bsPrefix:t,bsSwitchPrefix:n,inline:s=!1,reverse:o=!1,disabled:i=!1,isValid:a=!1,isInvalid:l=!1,feedbackTooltip:d=!1,feedback:c,feedbackType:u,className:p,style:g,title:N="",type:x="checkbox",label:C,children:b,as:m="input",...v},h)=>{t=Ie(t,"form-check"),n=Ie(n,"form-switch");const{controlId:j}=k.useContext(pn),E=k.useMemo(()=>({controlId:e||j}),[j,e]),T=!b&&C!=null&&C!==!1||Nw(b,ba),O=r.jsx(Au,{...v,type:x==="switch"?"checkbox":x,ref:h,isValid:a,isInvalid:l,disabled:i,as:m});return r.jsx(pn.Provider,{value:E,children:r.jsx("div",{style:g,className:ye(p,T&&t,s&&`${t}-inline`,o&&`${t}-reverse`,x==="switch"&&n),children:b||r.jsxs(r.Fragment,{children:[O,T&&r.jsx(ba,{title:N,children:C}),c&&r.jsx(rl,{type:u,tooltip:d,children:c})]})})})});xg.displayName="FormCheck";const wa=Object.assign(xg,{Input:Au,Label:ba}),yg=k.forwardRef(({bsPrefix:e,type:t,size:n,htmlSize:s,id:o,className:i,isValid:a=!1,isInvalid:l=!1,plaintext:d,readOnly:c,as:u="input",...p},g)=>{const{controlId:N}=k.useContext(pn);return e=Ie(e,"form-control"),r.jsx(u,{...p,type:t,size:s,ref:g,readOnly:c,id:o||N,className:ye(i,d?`${e}-plaintext`:e,n&&`${e}-${n}`,t==="color"&&`${e}-color`,a&&"is-valid",l&&"is-invalid")})});yg.displayName="FormControl";const Ew=Object.assign(yg,{Feedback:rl}),jg=k.forwardRef(({className:e,bsPrefix:t,as:n="div",...s},o)=>(t=Ie(t,"form-floating"),r.jsx(n,{ref:o,className:ye(e,t),...s})));jg.displayName="FormFloating";const Ru=k.forwardRef(({controlId:e,as:t="div",...n},s)=>{const o=k.useMemo(()=>({controlId:e}),[e]);return r.jsx(pn.Provider,{value:o,children:r.jsx(t,{...n,ref:s})})});Ru.displayName="FormGroup";const Ng=k.forwardRef(({as:e="label",bsPrefix:t,column:n=!1,visuallyHidden:s=!1,className:o,htmlFor:i,...a},l)=>{const{controlId:d}=k.useContext(pn);t=Ie(t,"form-label");let c="col-form-label";typeof n=="string"&&(c=`${c} ${c}-${n}`);const u=ye(o,t,s&&"visually-hidden",n&&c);return i=i||d,n?r.jsx(vg,{ref:l,as:"label",className:u,htmlFor:i,...a}):r.jsx(e,{ref:l,className:u,htmlFor:i,...a})});Ng.displayName="FormLabel";const Cg=k.forwardRef(({bsPrefix:e,className:t,id:n,...s},o)=>{const{controlId:i}=k.useContext(pn);return e=Ie(e,"form-range"),r.jsx("input",{...s,type:"range",ref:o,className:ye(t,e),id:n||i})});Cg.displayName="FormRange";const bg=k.forwardRef(({bsPrefix:e,size:t,htmlSize:n,className:s,isValid:o=!1,isInvalid:i=!1,id:a,...l},d)=>{const{controlId:c}=k.useContext(pn);return e=Ie(e,"form-select"),r.jsx("select",{...l,size:n,ref:d,className:ye(s,e,t&&`${e}-${t}`,o&&"is-valid",i&&"is-invalid"),id:a||c})});bg.displayName="FormSelect";const wg=k.forwardRef(({bsPrefix:e,className:t,as:n="small",muted:s,...o},i)=>(e=Ie(e,"form-text"),r.jsx(n,{...o,ref:i,className:ye(t,e,s&&"text-muted")})));wg.displayName="FormText";const kg=k.forwardRef((e,t)=>r.jsx(wa,{...e,ref:t,type:"switch"}));kg.displayName="Switch";const Pw=Object.assign(kg,{Input:wa.Input,Label:wa.Label}),Sg=k.forwardRef(({bsPrefix:e,className:t,children:n,controlId:s,label:o,...i},a)=>(e=Ie(e,"form-floating"),r.jsxs(Ru,{ref:a,className:ye(t,e),controlId:s,...i,children:[n,r.jsx("label",{htmlFor:s,children:o})]})));Sg.displayName="FloatingLabel";const _w={_ref:Lt.any,validated:Lt.bool,as:Lt.elementType},Iu=k.forwardRef(({className:e,validated:t,as:n="form",...s},o)=>r.jsx(n,{...s,ref:o,className:ye(e,t&&"was-validated")}));Iu.displayName="Form";Iu.propTypes=_w;const er=Object.assign(Iu,{Group:Ru,Control:Ew,Floating:jg,Check:wa,Switch:Pw,Label:Ng,Text:wg,Range:Cg,Select:bg,FloatingLabel:Sg});var di;function Ap(e){if((!di&&di!==0||e)&&xs){var t=document.createElement("div");t.style.position="absolute",t.style.top="-9999px",t.style.width="50px",t.style.height="50px",t.style.overflow="scroll",document.body.appendChild(t),di=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return di}function ic(e){e===void 0&&(e=nl());try{var t=e.activeElement;return!t||!t.nodeName?null:t}catch{return e.body}}function Tw(e=document){const t=e.defaultView;return Math.abs(t.innerWidth-e.documentElement.clientWidth)}const Rp=kw("modal-open");class Fu{constructor({ownerDocument:t,handleContainerOverflow:n=!0,isRTL:s=!1}={}){this.handleContainerOverflow=n,this.isRTL=s,this.modals=[],this.ownerDocument=t}getScrollbarWidth(){return Tw(this.ownerDocument)}getElement(){return(this.ownerDocument||document).body}setModalAttributes(t){}removeModalAttributes(t){}setContainerStyle(t){const n={overflow:"hidden"},s=this.isRTL?"paddingLeft":"paddingRight",o=this.getElement();t.style={overflow:o.style.overflow,[s]:o.style[s]},t.scrollBarWidth&&(n[s]=`${parseInt(vr(o,s)||"0",10)+t.scrollBarWidth}px`),o.setAttribute(Rp,""),vr(o,n)}reset(){[...this.modals].forEach(t=>this.remove(t))}removeContainerStyle(t){const n=this.getElement();n.removeAttribute(Rp),Object.assign(n.style,t.style)}add(t){let n=this.modals.indexOf(t);return n!==-1||(n=this.modals.length,this.modals.push(t),this.setModalAttributes(t),n!==0)||(this.state={scrollBarWidth:this.getScrollbarWidth(),style:{}},this.handleContainerOverflow&&this.setContainerStyle(this.state)),n}remove(t){const n=this.modals.indexOf(t);n!==-1&&(this.modals.splice(n,1),!this.modals.length&&this.handleContainerOverflow&&this.removeContainerStyle(this.state),this.removeModalAttributes(t))}isTopModal(t){return!!this.modals.length&&this.modals[this.modals.length-1]===t}}const ac=(e,t)=>xs?e==null?(t||nl()).body:(typeof e=="function"&&(e=e()),e&&"current"in e&&(e=e.current),e&&("nodeType"in e||e.getBoundingClientRect)?e:null):null;function Ow(e,t){const n=Ou(),[s,o]=k.useState(()=>ac(e,n==null?void 0:n.document));if(!s){const i=ac(e);i&&o(i)}return k.useEffect(()=>{},[t,s]),k.useEffect(()=>{const i=ac(e);i!==s&&o(i)},[e,s]),s}function Aw({children:e,in:t,onExited:n,mountOnEnter:s,unmountOnExit:o}){const i=k.useRef(null),a=k.useRef(t),l=Gt(n);k.useEffect(()=>{t?a.current=!0:l(i.current)},[t,l]);const d=Lo(i,e.ref),c=k.cloneElement(e,{ref:d});return t?c:o||!a.current&&s?null:c}const Rw=["onEnter","onEntering","onEntered","onExit","onExiting","onExited","addEndListener","children"];function Iw(e,t){if(e==null)return{};var n={};for(var s in e)if({}.hasOwnProperty.call(e,s)){if(t.indexOf(s)>=0)continue;n[s]=e[s]}return n}function Fw(e){let{onEnter:t,onEntering:n,onEntered:s,onExit:o,onExiting:i,onExited:a,addEndListener:l,children:d}=e,c=Iw(e,Rw);const{major:u}=pg(),p=u>=19?d.props.ref:d.ref,g=k.useRef(null),N=Lo(g,typeof d=="function"?null:p),x=T=>O=>{T&&g.current&&T(g.current,O)},C=k.useCallback(x(t),[t]),b=k.useCallback(x(n),[n]),m=k.useCallback(x(s),[s]),v=k.useCallback(x(o),[o]),h=k.useCallback(x(i),[i]),j=k.useCallback(x(a),[a]),E=k.useCallback(x(l),[l]);return Object.assign({},c,{nodeRef:g},t&&{onEnter:C},n&&{onEntering:b},s&&{onEntered:m},o&&{onExit:v},i&&{onExiting:h},a&&{onExited:j},l&&{addEndListener:E},{children:typeof d=="function"?(T,O)=>d(T,Object.assign({},O,{ref:N})):k.cloneElement(d,{ref:N})})}const Dw=["component"];function Lw(e,t){if(e==null)return{};var n={};for(var s in e)if({}.hasOwnProperty.call(e,s)){if(t.indexOf(s)>=0)continue;n[s]=e[s]}return n}const Bw=k.forwardRef((e,t)=>{let{component:n}=e,s=Lw(e,Dw);const o=Fw(s);return r.jsx(n,Object.assign({ref:t},o))});function Mw({in:e,onTransition:t}){const n=k.useRef(null),s=k.useRef(!0),o=Gt(t);return Tp(()=>{if(!n.current)return;let i=!1;return o({in:e,element:n.current,initial:s.current,isStale:()=>i}),()=>{i=!0}},[e,o]),Tp(()=>(s.current=!1,()=>{s.current=!0}),[]),n}function zw({children:e,in:t,onExited:n,onEntered:s,transition:o}){const[i,a]=k.useState(!t);t&&i&&a(!1);const l=Mw({in:!!t,onTransition:c=>{const u=()=>{c.isStale()||(c.in?s==null||s(c.element,c.initial):(a(!0),n==null||n(c.element)))};Promise.resolve(o(c)).then(u,p=>{throw c.in||a(!0),p})}}),d=Lo(l,e.ref);return i&&!t?null:k.cloneElement(e,{ref:d})}function Ip(e,t,n){return e?r.jsx(Bw,Object.assign({},n,{component:e})):t?r.jsx(zw,Object.assign({},n,{transition:t})):r.jsx(Aw,Object.assign({},n))}const $w=["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 Ww(e,t){if(e==null)return{};var n={};for(var s in e)if({}.hasOwnProperty.call(e,s)){if(t.indexOf(s)>=0)continue;n[s]=e[s]}return n}let lc;function Uw(e){return lc||(lc=new Fu({ownerDocument:e==null?void 0:e.document})),lc}function qw(e){const t=Ou(),n=e||Uw(t),s=k.useRef({dialog:null,backdrop:null});return Object.assign(s.current,{add:()=>n.add(s.current),remove:()=>n.remove(s.current),isTopModal:()=>n.isTopModal(s.current),setDialogRef:k.useCallback(o=>{s.current.dialog=o},[]),setBackdropRef:k.useCallback(o=>{s.current.backdrop=o},[])})}const Eg=k.forwardRef((e,t)=>{let{show:n=!1,role:s="dialog",className:o,style:i,children:a,backdrop:l=!0,keyboard:d=!0,onBackdropClick:c,onEscapeKeyDown:u,transition:p,runTransition:g,backdropTransition:N,runBackdropTransition:x,autoFocus:C=!0,enforceFocus:b=!0,restoreFocus:m=!0,restoreFocusOptions:v,renderDialog:h,renderBackdrop:j=he=>r.jsx("div",Object.assign({},he)),manager:E,container:T,onShow:O,onHide:_=()=>{},onExit:L,onExited:z,onExiting:H,onEnter:te,onEntering:Q,onEntered:Z}=e,D=Ww(e,$w);const U=Ou(),G=Ow(T),A=qw(E),R=cw(),M=dw(n),[B,W]=k.useState(!n),K=k.useRef(null);k.useImperativeHandle(t,()=>A,[A]),xs&&!M&&n&&(K.current=ic(U==null?void 0:U.document)),n&&B&&W(!1);const Y=Gt(()=>{if(A.add(),de.current=Ca(document,"keydown",se),le.current=Ca(document,"focus",()=>setTimeout(re),!0),O&&O(),C){var he,$t;const Ye=ic((he=($t=A.dialog)==null?void 0:$t.ownerDocument)!=null?he:U==null?void 0:U.document);A.dialog&&Ye&&!Op(A.dialog,Ye)&&(K.current=Ye,A.dialog.focus())}}),ee=Gt(()=>{if(A.remove(),de.current==null||de.current(),le.current==null||le.current(),m){var he;(he=K.current)==null||he.focus==null||he.focus(v),K.current=null}});k.useEffect(()=>{!n||!G||Y()},[n,G,Y]),k.useEffect(()=>{B&&ee()},[B,ee]),hg(()=>{ee()});const re=Gt(()=>{if(!b||!R()||!A.isTopModal())return;const he=ic(U==null?void 0:U.document);A.dialog&&he&&!Op(A.dialog,he)&&A.dialog.focus()}),ne=Gt(he=>{he.target===he.currentTarget&&(c==null||c(he),l===!0&&_())}),se=Gt(he=>{d&&gw(he)&&A.isTopModal()&&(u==null||u(he),he.defaultPrevented||_())}),le=k.useRef(),de=k.useRef(),ge=(...he)=>{W(!0),z==null||z(...he)};if(!G)return null;const Be=Object.assign({role:s,ref:A.setDialogRef,"aria-modal":s==="dialog"?!0:void 0},D,{style:i,className:o,tabIndex:-1});let Ct=h?h(Be):r.jsx("div",Object.assign({},Be,{children:k.cloneElement(a,{role:"document"})}));Ct=Ip(p,g,{unmountOnExit:!0,mountOnEnter:!0,appear:!0,in:!!n,onExit:L,onExiting:H,onExited:ge,onEnter:te,onEntering:Q,onEntered:Z,children:Ct});let zt=null;return l&&(zt=j({ref:A.setBackdropRef,onClick:ne}),zt=Ip(N,x,{in:!!n,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:zt})),r.jsx(r.Fragment,{children:qr.createPortal(r.jsxs(r.Fragment,{children:[zt,Ct]}),G)})});Eg.displayName="Modal";const Vw=Object.assign(Eg,{Manager:Fu});function Hw(e,t){return e.classList?e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function Kw(e,t){e.classList?e.classList.add(t):Hw(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function Fp(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function Yw(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=Fp(e.className,t):e.setAttribute("class",Fp(e.className&&e.className.baseVal||"",t))}const Or={FIXED_CONTENT:".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",STICKY_CONTENT:".sticky-top",NAVBAR_TOGGLER:".navbar-toggler"};class Gw extends Fu{adjustAndStore(t,n,s){const o=n.style[t];n.dataset[t]=o,vr(n,{[t]:`${parseFloat(vr(n,t))+s}px`})}restore(t,n){const s=n.dataset[t];s!==void 0&&(delete n.dataset[t],vr(n,{[t]:s}))}setContainerStyle(t){super.setContainerStyle(t);const n=this.getElement();if(Kw(n,"modal-open"),!t.scrollBarWidth)return;const s=this.isRTL?"paddingLeft":"paddingRight",o=this.isRTL?"marginLeft":"marginRight";Tr(n,Or.FIXED_CONTENT).forEach(i=>this.adjustAndStore(s,i,t.scrollBarWidth)),Tr(n,Or.STICKY_CONTENT).forEach(i=>this.adjustAndStore(o,i,-t.scrollBarWidth)),Tr(n,Or.NAVBAR_TOGGLER).forEach(i=>this.adjustAndStore(o,i,t.scrollBarWidth))}removeContainerStyle(t){super.removeContainerStyle(t);const n=this.getElement();Yw(n,"modal-open");const s=this.isRTL?"paddingLeft":"paddingRight",o=this.isRTL?"marginLeft":"marginRight";Tr(n,Or.FIXED_CONTENT).forEach(i=>this.restore(s,i)),Tr(n,Or.STICKY_CONTENT).forEach(i=>this.restore(o,i)),Tr(n,Or.NAVBAR_TOGGLER).forEach(i=>this.restore(o,i))}}let cc;function Qw(e){return cc||(cc=new Gw(e)),cc}const Pg=k.forwardRef(({className:e,bsPrefix:t,as:n="div",...s},o)=>(t=Ie(t,"modal-body"),r.jsx(n,{ref:o,className:ye(e,t),...s})));Pg.displayName="ModalBody";const _g=k.createContext({onHide(){}}),Du=k.forwardRef(({bsPrefix:e,className:t,contentClassName:n,centered:s,size:o,fullscreen:i,children:a,scrollable:l,...d},c)=>{e=Ie(e,"modal");const u=`${e}-dialog`,p=typeof i=="string"?`${e}-fullscreen-${i}`:`${e}-fullscreen`;return r.jsx("div",{...d,ref:c,className:ye(u,t,o&&`${e}-${o}`,s&&`${u}-centered`,l&&`${u}-scrollable`,i&&p),children:r.jsx("div",{className:ye(`${e}-content`,n),children:a})})});Du.displayName="ModalDialog";const Tg=k.forwardRef(({className:e,bsPrefix:t,as:n="div",...s},o)=>(t=Ie(t,"modal-footer"),r.jsx(n,{ref:o,className:ye(e,t),...s})));Tg.displayName="ModalFooter";const Xw=k.forwardRef(({closeLabel:e="Close",closeVariant:t,closeButton:n=!1,onHide:s,children:o,...i},a)=>{const l=k.useContext(_g),d=Gt(()=>{l==null||l.onHide(),s==null||s()});return r.jsxs("div",{ref:a,...i,children:[o,n&&r.jsx(Tu,{"aria-label":e,variant:t,onClick:d})]})}),Og=k.forwardRef(({bsPrefix:e,className:t,closeLabel:n="Close",closeButton:s=!1,...o},i)=>(e=Ie(e,"modal-header"),r.jsx(Xw,{ref:i,...o,className:ye(t,e),closeLabel:n,closeButton:s})));Og.displayName="ModalHeader";const Jw=aw("h4"),Ag=k.forwardRef(({className:e,bsPrefix:t,as:n=Jw,...s},o)=>(t=Ie(t,"modal-title"),r.jsx(n,{ref:o,className:ye(e,t),...s})));Ag.displayName="ModalTitle";function Zw(e){return r.jsx(_u,{...e,timeout:null})}function ek(e){return r.jsx(_u,{...e,timeout:null})}const Rg=k.forwardRef(({bsPrefix:e,className:t,style:n,dialogClassName:s,contentClassName:o,children:i,dialogAs:a=Du,"data-bs-theme":l,"aria-labelledby":d,"aria-describedby":c,"aria-label":u,show:p=!1,animation:g=!0,backdrop:N=!0,keyboard:x=!0,onEscapeKeyDown:C,onShow:b,onHide:m,container:v,autoFocus:h=!0,enforceFocus:j=!0,restoreFocus:E=!0,restoreFocusOptions:T,onEntered:O,onExit:_,onExiting:L,onEnter:z,onEntering:H,onExited:te,backdropClassName:Q,manager:Z,...D},U)=>{const[G,A]=k.useState({}),[R,M]=k.useState(!1),B=k.useRef(!1),W=k.useRef(!1),K=k.useRef(null),[Y,ee]=lw(),re=Lo(U,ee),ne=Gt(m),se=Ub();e=Ie(e,"modal");const le=k.useMemo(()=>({onHide:ne}),[ne]);function de(){return Z||Qw({isRTL:se})}function ge(fe){if(!xs)return;const qt=de().getScrollbarWidth()>0,xn=fe.scrollHeight>nl(fe).documentElement.clientHeight;A({paddingRight:qt&&!xn?Ap():void 0,paddingLeft:!qt&&xn?Ap():void 0})}const Be=Gt(()=>{Y&&ge(Y.dialog)});hg(()=>{kd(window,"resize",Be),K.current==null||K.current()});const Ct=()=>{B.current=!0},zt=fe=>{B.current&&Y&&fe.target===Y.dialog&&(W.current=!0),B.current=!1},he=()=>{M(!0),K.current=ug(Y.dialog,()=>{M(!1)})},$t=fe=>{fe.target===fe.currentTarget&&he()},Ye=fe=>{if(N==="static"){$t(fe);return}if(W.current||fe.target!==fe.currentTarget){W.current=!1;return}m==null||m()},Qn=fe=>{x?C==null||C(fe):(fe.preventDefault(),N==="static"&&he())},Zt=(fe,qt)=>{fe&&ge(fe),z==null||z(fe,qt)},ys=fe=>{K.current==null||K.current(),_==null||_(fe)},js=(fe,qt)=>{H==null||H(fe,qt),dg(window,"resize",Be)},Xn=fe=>{fe&&(fe.style.display=""),te==null||te(fe),kd(window,"resize",Be)},Wt=k.useCallback(fe=>r.jsx("div",{...fe,className:ye(`${e}-backdrop`,Q,!g&&"show")}),[g,Q,e]),gn={...n,...G};gn.display="block";const Ut=fe=>r.jsx("div",{role:"dialog",...fe,style:gn,className:ye(t,e,R&&`${e}-static`,!g&&"show"),onClick:N?Ye:void 0,onMouseUp:zt,"data-bs-theme":l,"aria-label":u,"aria-labelledby":d,"aria-describedby":c,children:r.jsx(a,{...D,onMouseDown:Ct,className:s,contentClassName:o,children:i})});return r.jsx(_g.Provider,{value:le,children:r.jsx(Vw,{show:p,ref:re,backdrop:N,container:v,keyboard:!0,autoFocus:h,enforceFocus:j,restoreFocus:E,restoreFocusOptions:T,onEscapeKeyDown:Qn,onShow:b,onHide:m,onEnter:Zt,onEntering:js,onEntered:O,onExit:ys,onExiting:L,onExited:Xn,manager:de(),transition:g?Zw:void 0,backdropTransition:g?ek:void 0,renderBackdrop:Wt,renderDialog:Ut})})});Rg.displayName="Modal";const ui=Object.assign(Rg,{Body:Pg,Header:Og,Title:Ag,Footer:Tg,Dialog:Du,TRANSITION_DURATION:300,BACKDROP_TRANSITION_DURATION:150}),tk=()=>{var T;const{id:e}=gs(),t=Ke(),{selectedProperty:n,status:s,error:o}=_e(O=>O.property),{user:i}=_e(O=>({...O.auth})),[a,l]=k.useState("propertydetails"),[d,c]=k.useState(!0),[u,p]=k.useState(!1),[g,N]=k.useState({fundValue:"0",fundPercentage:"0"});if(k.useEffect(()=>{e&&t(Js(e))},[e,t]),k.useEffect(()=>{s==="succeeded"&&c(!1)},[s]),s==="failed")return r.jsxs("p",{children:["Error loading property: ",o]});const x=((T=i==null?void 0:i.result)==null?void 0:T.userId)===(n==null?void 0:n.userId),C=!!i,b=()=>{p(!0)},m=()=>{p(!1)},v=O=>{const{name:_,value:L}=O.target;N({...g,[_]:L})},h=O=>{if(O.preventDefault(),g.fundValue<=0)return oe.error("Please enter a valid funding amount greater than 0");if(g.fundValue>((n==null?void 0:n.totalCoststoBuyAtoB)||0))return oe.error(`Funding amount cannot exceed ${(n==null?void 0:n.totalCoststoBuyAtoB)||"N/A"}`);if(g.fundPercentage<=0||g.fundPercentage>100)return oe.error("Please enter a valid interest percentage (0-100)");const _={fundValue:Number(g.fundValue),fundPercentage:Number(g.fundPercentage),userId:i.result._id};t(Ii({id:e,fundDetails:_,toast:oe})),m()},j=O=>{const _=JSON.parse(localStorage.getItem("profile")).token;t(Fi({id:e,fundDetailId:O,token:_}))},E=O=>{window.confirm("Are you sure you want to delete this?")&&j(O)};return r.jsxs(r.Fragment,{children:[r.jsx(Le,{}),r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{}),r.jsx("br",{}),r.jsxs("div",{children:[r.jsxs("ul",{className:"nav nav-tabs",role:"tablist",style:{borderRadius:"12px 12px 0 0"},children:[r.jsx("li",{role:"presentation",className:a==="propertydetails"?"active tab":"tab",children:r.jsx("a",{onClick:()=>l("propertydetails"),role:"tab",children:"Property Details"})}),r.jsx("li",{role:"presentation",className:a==="Funding Details"?"active tab":"tab",children:r.jsx("a",{onClick:()=>l("Funding Details"),role:"tab",children:"Funding Details"})}),r.jsx("li",{role:"presentation",className:a==="Accounting"?"active tab":"tab",children:r.jsx("a",{onClick:()=>l("Accounting"),role:"tab",children:"Accounting"})})]}),r.jsxs("div",{children:[a==="propertydetails"&&r.jsx("div",{role:"tabpanel",className:"card container tab-pane active col-12",children:r.jsx("div",{className:"container col-12",children:d?r.jsx("div",{className:"loader",children:"Loading..."}):n?r.jsx("div",{className:"py-3 py-md-5 bg-light",children:r.jsxs("div",{className:"card-header bg-white",children:[r.jsxs("div",{className:"row",children:[r.jsxs("div",{className:"col-md-5 mt-3",children:[r.jsx("div",{children:n.images&&n.images[0]?r.jsx("img",{src:n.images[0].file||mt,alt:"Property Thumbnail",style:{marginTop:"0px",maxWidth:"400px",maxHeight:"400px"}}):r.jsx("img",{src:mt,alt:"Default Property Thumbnail",style:{marginTop:"0px",maxWidth:"400px",maxHeight:"400px"}})}),r.jsx("br",{}),r.jsxs("div",{className:"label-stock border",children:[r.jsxs("p",{style:{color:"#fda417",fontSize:"30px",padding:"10px",fontWeight:"normal"},children:["Funding Required:"," ",r.jsxs("span",{style:{color:"#000000",fontSize:"25px"},children:[r.jsx("span",{className:"fa fa-dollar",style:{color:"#F74B02"}})," ",(n==null?void 0:n.totalCoststoBuyAtoB)||"N/A"]})]}),r.jsxs("p",{style:{color:"#fda417",fontSize:"30px",padding:"10px",fontWeight:"normal"},children:["Net profit:"," ",r.jsxs("span",{style:{color:"#000000",fontSize:"25px"},children:[r.jsx("span",{className:"fa fa-dollar",style:{color:"#F74B02"}})," ",(n==null?void 0:n.NetProfit)||"N/A"]})]})]}),r.jsx("br",{}),r.jsxs("button",{className:"btn btn-primary back",style:{backgroundColor:"#fda417",border:"#fda417"},disabled:x||!C,onClick:x||!C?null:b,children:[r.jsx("span",{style:{fontSize:"25px",fontWeight:"normal"},children:"Willing to Invest/Fund"})," "]}),x&&r.jsx("span",{style:{color:"red",marginTop:"10px"},children:"You cannot invest in your own property."}),!C&&r.jsx("span",{style:{color:"red",marginTop:"10px"},children:"Please login to invest."})]}),r.jsx("div",{className:"col-md-7 mt-3",children:r.jsxs("div",{className:"product-view",children:[r.jsxs("h4",{className:"product-name",style:{color:"#fda417",fontSize:"25px"},children:[n.address,r.jsx("label",{className:"label-stock bg-success",children:"Verified Property"})]}),r.jsx("hr",{}),r.jsxs("span",{className:"product-path",children:[r.jsxs("span",{style:{color:"#fda417",fontSize:"15px"},children:["City:"," "]})," ",n.city," "," /"," "," "," ",r.jsxs("span",{style:{color:"#fda417",fontSize:"15px"},children:["County:"," "]})," ",n.county," "," ","/"," "," ",r.jsxs("span",{style:{color:"#fda417",fontSize:"15px"},children:["State:"," "]})," ",n.state," "," ","/ "," "," ",r.jsxs("span",{style:{color:"#fda417",fontSize:"15px"},children:["Zipcode:"," "]})," ",n.zip," "]}),r.jsx("br",{})," ",r.jsx("br",{}),r.jsxs("div",{children:[r.jsxs("span",{className:"selling-price",style:{color:"#fda417",fontSize:"15px"},children:["Total Living Square Foot:"," "]}),n.totallivingsqft,r.jsx("p",{}),r.jsxs("span",{className:"selling-price",style:{color:"#fda417",fontSize:"15px"},children:["Cost per Square Foot:"," "]}),"$",n.costpersqft,"/sqft",r.jsx("p",{}),r.jsxs("span",{className:"selling-price",style:{color:"#fda417",fontSize:"15px"},children:["Year Built:"," "]}),n.yearBuild]}),r.jsxs("div",{className:"mt-3 card bg-white label-stock border",children:[r.jsx("h5",{className:"mb-0",style:{color:"#fda417",fontSize:"15px"},children:"Legal Description"}),r.jsx("span",{children:n.legal?n.legal:"No data available"})]})]})})]}),r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-md-12 mt-3",children:r.jsxs("div",{className:"card",children:[r.jsx("div",{className:"card-header bg-white",children:r.jsx("h4",{className:"product-name",style:{color:"#fda417",fontSize:"25px"},children:"Description"})}),r.jsx("div",{className:"card-body",children:r.jsx("p",{children:"Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum."})})]})})})]})}):r.jsx("p",{children:"No property found."})})}),a==="Funding Details"&&r.jsx("div",{children:a==="Funding Details"&&r.jsx("div",{className:"tab-pane active",children:r.jsx("div",{children:n.fundDetails.length===0?r.jsx("p",{children:"No fund details available."}):r.jsx("ul",{style:{listStyleType:"none",padding:0},children:n.fundDetails.map((O,_)=>{var L,z;return r.jsx("li",{className:"d-flex align-items-center",children:r.jsxs("div",{className:"d-flex align-items-center",children:[r.jsxs("span",{children:["Total Fund Value: $ ",O.fundValue,", Interest Percentage: ",O.fundPercentage,"%"]}),r.jsx("br",{})," ",r.jsx("br",{}),((L=i==null?void 0:i.result)==null?void 0:L.userId)&&((z=i==null?void 0:i.result)==null?void 0:z._id)===O.userId&&r.jsx("button",{className:"btn btn-danger ms-2",onClick:()=>E(O._id),style:{padding:"2px 10px",marginLeft:"8px"},children:"x"})]})},_)})})})})}),a==="Accounting"&&r.jsx("div",{})]})]}),r.jsx(tt,{}),r.jsxs(ui,{show:u,onHide:m,children:[r.jsx(ui.Header,{closeButton:!0,children:r.jsx(ui.Title,{children:"Investment/Funding Details"})}),r.jsx(ui.Body,{children:r.jsxs(er,{onSubmit:h,children:[r.jsxs(er.Group,{children:[r.jsx(er.Label,{children:"Total Fund Value"}),r.jsx(er.Control,{type:"number",id:"fundValue",name:"fundValue",value:g.fundValue,onChange:v})]}),r.jsx("br",{}),r.jsxs(er.Group,{children:[r.jsx(er.Label,{children:"Interest Percentage"}),r.jsx(er.Control,{type:"number",id:"fundPercentage",name:"fundPercentage",value:g.fundPercentage,onChange:v})]}),r.jsx(mg,{variant:"primary",type:"submit",children:"Submit"})]})})]})]})},nk=()=>{const[e,t]=k.useState([]),[n,s]=k.useState(0),[o,i]=k.useState(0),[a]=k.useState(10),[l,d]=k.useState(""),[c,u]=k.useState(!1),[p,g]=k.useState(!1),N=async()=>{u(!0),g(!1);try{const m=await me.get("http://67.225.129.127:3002/mysql/searchmysql",{params:{limit:a,offset:o*a,search:l},headers:{"Cache-Control":"no-cache"}});t(m.data.data),s(m.data.totalRecords),l.trim()&&g(!0)}catch(m){console.log("Error fetching data:",m)}finally{u(!1)}},x=m=>{d(m.target.value),m.target.value.trim()===""&&(i(0),t([]),s(0),g(!1),N())},C=m=>{m.key==="Enter"&&(m.preventDefault(),N())};k.useEffect(()=>{N()},[l,o]);const b=Math.ceil(n/a);return r.jsxs(r.Fragment,{children:[r.jsx(Le,{}),r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{}),r.jsxs("div",{className:"container col-12",children:[r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-lg-12 card-margin col-12",children:r.jsx("div",{className:"card search-form col-12",children:r.jsx("div",{className:"card-body p-0",children:r.jsx("form",{id:"search-form",children:r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-12",children:r.jsx("div",{className:"row no-gutters",children:r.jsx("div",{className:"col-lg-8 col-md-6 col-sm-12 p-0",children:r.jsx("input",{type:"text",placeholder:"Enter the keyword and hit ENTER button...",className:"form-control",id:"search",name:"search",value:l,onChange:x,onKeyDown:C})})})})})})})})})}),r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-12",children:r.jsx("div",{className:"card card-margin",children:r.jsxs("div",{className:"card-body",children:[p&&e.length>0&&r.jsxs("div",{children:["Showing search results for the keyword"," ",r.jsx("span",{style:{color:"#fda417",fontSize:"25px"},children:l})]}),r.jsx("div",{className:"table-responsive",children:r.jsxs("table",{className:"table widget-26",children:[r.jsx("thead",{style:{color:"#fda417",fontSize:"15px"},children:r.jsxs("tr",{children:[r.jsx("th",{children:"Details"}),r.jsx("th",{children:"Total Living Square Foot"}),r.jsx("th",{children:"Year Built"}),r.jsx("th",{children:"Cost per Square Foot"})]})}),r.jsx("tbody",{children:e.length>0?e.map((m,v)=>r.jsxs("tr",{children:[r.jsx("td",{children:r.jsxs("div",{className:"widget-26-job-title",children:[r.jsx(ae,{to:`/properties/${m.house_id}`,className:"link-primary text-decoration-none",target:"_blank",children:m.address}),r.jsxs("p",{className:"m-0",children:[r.jsxs("span",{className:"employer-name",children:[r.jsx("i",{className:"fa fa-map-marker",style:{color:"#F74B02"}}),m.city,", ",m.county,",",m.state]}),r.jsxs("p",{className:"text-muted m-0",children:["House Id: ",m.house_id]})]})]})}),r.jsx("td",{children:r.jsx("div",{className:"widget-26-job-info",children:r.jsx("p",{className:"m-0",children:m.total_living_sqft})})}),r.jsx("td",{children:r.jsx("div",{className:"widget-26-job-info",children:r.jsx("p",{className:"m-0",children:m.year_built})})}),r.jsx("td",{children:r.jsxs("div",{className:"widget-26-job-salary",children:["$ ",m.cost_per_sqft,"/sqft"]})})]},v)):r.jsx("tr",{children:r.jsx("td",{colSpan:"4",children:"No results found"})})})]})}),r.jsxs("div",{children:[r.jsx("button",{onClick:()=>i(o-1),disabled:o===0||c,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Previous"}),r.jsxs("span",{children:[" ","Page ",o+1," of ",b," "]}),r.jsx("button",{onClick:()=>i(o+1),disabled:o+1>=b||c,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Next"})]})]})})})})]}),r.jsx(tt,{})]})},rk=()=>r.jsxs(r.Fragment,{children:[r.jsx(Le,{}),r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{}),r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{}),"This page will show the list of services offered by the company",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{}),r.jsx(tt,{})]}),sk=()=>{const{house_id:e}=gs();console.log("house_id",e);const[t,n]=k.useState(null),[s,o]=k.useState(!0);return k.useEffect(()=>{(async()=>{try{const a=await me.get(`http://67.225.129.127:3002/mysql/properties/${e}`);n(a.data)}catch(a){console.log("Error fetching property details:",a)}finally{o(!1)}})()},[e]),r.jsxs(r.Fragment,{children:[r.jsx(Le,{}),r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{}),r.jsx("div",{className:"container col-12",children:s?r.jsx("div",{className:"loader",children:"Loading..."}):t?r.jsx("div",{className:"py-3 py-md-5 bg-light",children:r.jsxs("div",{className:"card-header bg-white",children:[r.jsxs("div",{className:"row",children:[r.jsx("div",{className:"col-md-5 mt-3",children:r.jsx("div",{className:"bg-white border",children:r.jsx("img",{src:mt,className:"w-70",alt:"Img",style:{marginTop:"0px",maxWidth:"450px",maxHeight:"450px"}})})}),r.jsx("div",{className:"col-md-7 mt-3",children:r.jsxs("div",{className:"product-view",children:[r.jsxs("h4",{className:"product-name",style:{color:"#fda417",fontSize:"25px"},children:[t.address,r.jsx("label",{className:"label-stock bg-success",children:"Verified Property"})]}),r.jsx("hr",{}),r.jsxs("p",{className:"product-path",children:[r.jsxs("span",{style:{color:"#fda417",fontSize:"15px"},children:["city:"," "]})," ",t.city," /",r.jsxs("span",{style:{color:"#fda417",fontSize:"15px"},children:["County:"," "]})," ",t.county," /",r.jsxs("span",{style:{color:"#fda417",fontSize:"15px"},children:["State:"," "]})," ",t.state," /",r.jsx("span",{style:{color:"#fda417",fontSize:"15px"},children:"Zipcode:"})," ",t.zip]}),r.jsxs("div",{children:[r.jsxs("span",{className:"selling-price",style:{color:"#fda417",fontSize:"15px"},children:["Total Living Square Foot:"," "]}),t.total_living_sqft,r.jsx("p",{}),r.jsxs("span",{className:"",style:{color:"#fda417",fontSize:"15px"},children:["Cost per Square Foot:"," "]}),"$",t.cost_per_sqft,"/sqft",r.jsx("p",{}),r.jsxs("span",{className:"",style:{color:"#fda417",fontSize:"15px"},children:["Year Built:"," "]}),t.year_built]}),r.jsxs("div",{className:"mt-3 card bg-white",children:[r.jsx("h5",{className:"mb-0",style:{color:"#fda417",fontSize:"15px"},children:"Legal Summary report"}),r.jsx("span",{children:t.legal_summary_report?t.legal_summary_report:"No data available"})]})]})})]}),r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-md-12 mt-3",children:r.jsxs("div",{className:"card",children:[r.jsx("div",{className:"card-header bg-white",children:r.jsx("h4",{className:"product-name",style:{color:"#fda417",fontSize:"25px"},children:"Description"})}),r.jsx("div",{className:"card-body",children:r.jsx("p",{children:"Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum."})})]})})})]})}):r.jsx("p",{children:"No property details found."})}),r.jsx(tt,{})]})},Dp=()=>{const{id:e}=gs(),t=Ke(),[n,s]=k.useState("propertydetails"),o=()=>{n==="propertydetails"&&s("Images"),n==="Images"&&s("Accounting"),n==="Accounting"&&s("IAB"),n==="IAB"&&s("IAB")},i=()=>{n==="Images"&&s("propertydetails"),n==="Accounting"&&s("Images"),n==="IAB"&&s("Accounting")},{selectedProperty:a}=_e(S=>S.property),[l,d]=k.useState({address:"",city:"",state:"",county:"",zip:"",propertyTaxInfo:[{propertytaxowned:"0",ownedyear:"0",taxassessed:"0",taxyear:"0"}],images:[{title:"",file:""}],googleMapLink:"",purchaseCost:"0",costPaidAtoB:[{title:"Closing Fees - Settlement Fee",price:"0"},{title:"Closing Fees - Owner's Title Insurance",price:"0"},{title:"Courier Fees",price:"0"},{title:"Wire Fee",price:"0"},{title:"E recording Fee",price:"0"},{title:"Recording Fee",price:"0"},{title:"Property Tax",price:"0"}],renovationRisk:null,turnTime:"",credits:[{title:"Credits",price:"0"}],cashAdjustments:[{title:"Cash Adjustments",price:"0"}],incidentalCost:[{title:"Accounting Fees",price:"0"},{title:"Bank Charges",price:"0"},{title:"Legal Fees",price:"0"},{title:"Property Taxes",price:"0"},{title:"Travel Expenses",price:"0"}],carryCosts:[{title:"Electricity",price:"0"},{title:"Water and Sewer",price:"0"},{title:"Natural Gas",price:"0"},{title:"Trash and Recycling",price:"0"},{title:"Internet and Cable",price:"0"},{title:"Heating Oil/Propane",price:"0"},{title:"HOA fees",price:"0"},{title:"Dump fees",price:"0"},{title:"Insurance",price:"0"},{title:"Interest on Loans",price:"0"},{title:"Loan Payment",price:"0"},{title:"Property Taxes",price:"0"},{title:"Security",price:"0"},{title:"Real Estates fees",price:"0"}],renovationCost:[{title:"Demolition: Removing existing structures or finishes",price:"0"},{title:"Framing: Making structural changes or additions",price:"0"},{title:"Plumbing: Installing or modifying plumbing systems",price:"0"},{title:"Electrical: Updating wiring and fixtures",price:"0"},{title:"HVAC: Installing or upgrading heating and cooling systems",price:"0"},{title:"Insulation: Adding or replacing insulation",price:"0"},{title:"Drywall: Hanging and finishing drywall",price:"0"},{title:"Interior Finishes: Painting, flooring, cabinetry, and fixtures",price:"0"},{title:"Exterior Work: Addressing siding, roofing, or landscaping, if applicable",price:"0"},{title:"Final Inspections: Ensuring everything meets codes",price:"0"},{title:"Punch List: Completing any remaining task",price:"0"}],sellingPriceBtoC:"0",costPaidOutofClosing:[{title:"Buyers Agent Commission",price:"0"},{title:"Sellers Agent Commission",price:"0"},{title:"Home Warranty",price:"0"},{title:"Document Preparation",price:"0"},{title:"Excise Tax",price:"0"},{title:"Legal Fees",price:"0"},{title:"Wire Fees/courier Fees",price:"0"},{title:"County Taxes",price:"0"},{title:"HOA Fee",price:"0"},{title:"Payoff of 1st Mortgage",price:"0"},{title:"Payoff of 2nd Mortgage",price:"0"},{title:"Payoff 3rd Mortgage",price:"0"}],adjustments:[{title:"adjustments",price:"0"}],incomestatement:[{title:"income statement",price:"0"},{title:"income statement",price:"0"}],fundspriortoclosing:"0",shorttermrental:"0",OtherIncome:"0",InsuranceClaim:"0",LongTermRental:"0",FinancingCostClosingCost:"0",IAB:[{title:"IAB Title",URL:"Please enter URL"}]}),c=[1,2,3,4,5,6,7,8,9,10];k.useEffect(()=>{t(Js(e))},[t,e]),k.useEffect(()=>{a&&d({address:a.address||"",city:a.city||"",state:a.state||"",county:a.county||"",zip:a.zip||"",parcel:a.parcel||"",subdivision:a.subdivision||"",legal:a.legal||"",costpersqft:a.costpersqft||"",propertyType:a.propertyType||"",lotacres:a.lotacres||"",yearBuild:a.yearBuild||"",totallivingsqft:a.totallivingsqft||"",beds:a.beds||"",baths:a.baths||"",stories:a.stories||"",garage:a.garage||"",garagesqft:a.garagesqft||"",poolspa:a.poolspa||"",fireplaces:a.fireplaces||"",ac:a.ac||"",heating:a.heating||"",buildingstyle:a.buildingstyle||"",sitevacant:a.sitevacant||"",extwall:a.extwall||"",roofing:a.roofing||"",totalSqft:a.totalSqft||"",renovationRisk:a.renovationRisk,closeDateAtoB:a.closeDateAtoB,closeDateBtoC:a.closeDateBtoC,purchaseCost:a.purchaseCost,costPaidAtoB:a.costPaidAtoB,totalPurchaseCosts:a.totalPurchaseCosts,credits:a.credits,totalPurchaseCostsaftercredits:a.totalPurchaseCostsaftercredits,cashAdjustments:a.cashAdjustments,totalcashrequiredonsettlement:a.totalcashrequiredonsettlement,incidentalCost:a.incidentalCost,carryCosts:a.carryCosts,renovationCost:a.renovationCost,sellingPriceBtoC:a.sellingPriceBtoC,costPaidOutofClosing:a.costPaidOutofClosing,totalCosttoSellBtoC:a.totalCosttoSellBtoC,grossproceedsperHUD:a.grossproceedsperHUD,adjustments:a.adjustments,fundsavailablefordistribution:a.fundsavailablefordistribution,incomestatement:a.incomestatement,fundspriortoclosing:a.fundspriortoclosing,shorttermrental:a.shorttermrental,OtherIncome:a.OtherIncome,InsuranceClaim:a.InsuranceClaim,LongTermRental:a.LongTermRental,netprofitbeforefinancingcosts:a.netprofitbeforefinancingcosts,FinancingCostClosingCost:a.FinancingCostClosingCost,propertyTaxInfo:a.propertyTaxInfo||[{propertytaxowned:"0",ownedyear:"0",taxassessed:"0",taxyear:"0"}],images:a.images||[{title:"",file:""}],googleMapLink:a.googleMapLink,rateofreturn:a.rateofreturn,IAB:a.IAB})},[a]);const u=S=>{d({...l,[S.target.name]:S.target.value})},p=(S,P)=>{const{name:f,value:y}=S.target,w=[...l.propertyTaxInfo],F={...w[P]};F[f]=y,w[P]=F,d({...l,propertyTaxInfo:w})},g=S=>{S.preventDefault();const P=z(),f=D(),y=U(),w=B(),F=W(),q=ne(),X=Be(),ce=Ye(),Wo=Qn(),cl=Zt(),dl=gn(),ul=Ut(),fl=Ut(),pl=Ns(),ml=Mo(),hl=Zn(),vl=en(),gl=Er(),xl=bs(),yl={...l,totalPurchaseCosts:P.toFixed(2),totalcredits:f.toFixed(2),totalPurchaseCostsaftercredits:y.toFixed(2),totalcashAdjustments:w.toFixed(2),totalcashrequiredonsettlement:F.toFixed(2),totalincidentalCost:q.toFixed(2),totalcarryCosts:X.toFixed(2),totalrenovationCost:ce.toFixed(2),totalRenovationsandHoldingCost:Wo.toFixed(2),totalCoststoBuyAtoB:cl.toFixed(2),totalcostPaidOutofClosing:dl.toFixed(2),totalCosttoSellBtoC:ul.toFixed(2),grossproceedsperHUD:fl.toFixed(2),totaladjustments:pl.toFixed(2),fundsavailablefordistribution:ml.toFixed(2),totalincomestatement:hl.toFixed(2),netBtoCsalevalue:vl.toFixed(2),netprofitbeforefinancingcosts:gl.toFixed(2),netprofit:xl.toFixed(2)};t(Ri({id:e,propertyData:yl}))},N=()=>{d({...l,propertyTaxInfo:[...l.propertyTaxInfo,{propertytaxowned:"",ownedyear:"",taxassessed:"",taxyear:""}]})},x=S=>{const P=l.propertyTaxInfo.filter((f,y)=>y!==S);d({...l,propertyTaxInfo:P})},C=(S,P)=>{const f=[...l.images];f[P]={...f[P],file:S.base64},d({...l,images:f})},b=()=>{d({...l,images:[...l.images,{title:"",file:""}]})},m=S=>{const P=l.images.filter((f,y)=>y!==S);d({...l,images:P})},v=(S,P)=>{const f=[...l.images];f[S]={...f[S],title:P.target.value},d({...l,images:f})};k.useEffect(()=>{E(l.closeDateAtoB,l.closeDateBtoC)},[l.closeDateAtoB,l.closeDateBtoC]);const[h,j]=k.useState("0 days"),E=(S,P)=>{if(S&&P){const f=new Date(S),y=new Date(P),w=Math.abs(y-f),F=Math.ceil(w/(1e3*60*60*24));j(`${F} days`)}else j("0 days")},T=()=>{d(S=>({...S,costPaidAtoB:[...S.costPaidAtoB,{title:"",price:""}]}))},O=S=>{const P=l.costPaidAtoB.filter((f,y)=>y!==S);d(f=>({...f,costPaidAtoB:P}))},_=(S,P,f)=>{const y=[...l.costPaidAtoB];y[S][P]=f,d(w=>({...w,costPaidAtoB:y}))},L=(S,P)=>{let f=S.target.value;if(f=f.replace(/^\$/,"").trim(),/^\d*\.?\d*$/.test(f)||f===""){const w=l.costPaidAtoB.map((F,q)=>q===P?{...F,price:f,isInvalid:!1}:F);d({...l,costPaidAtoB:w})}else{const w=l.costPaidAtoB.map((F,q)=>q===P?{...F,isInvalid:!0}:F);d({...l,costPaidAtoB:w})}},z=()=>{const S=l.costPaidAtoB.reduce((f,y)=>{const w=parseFloat(y.price)||0;return f+w},0),P=parseFloat(l.purchaseCost)||0;return S+P},H=()=>{d(S=>({...S,credits:[...S.credits,{title:"",price:""}]}))},te=S=>{const P=l.credits.filter((f,y)=>y!==S);d(f=>({...f,credits:P}))},Q=(S,P,f)=>{const y=[...l.credits];y[S][P]=f,d(w=>({...w,credits:y}))},Z=(S,P)=>{const f=S.target.value;if(/^\d*\.?\d*$/.test(f)||f===""){const w=l.credits.map((F,q)=>q===P?{...F,price:f,isInvalid:!1}:F);d({...l,credits:w})}else{const w=l.credits.map((F,q)=>q===P?{...F,isInvalid:!0}:F);d({...l,credits:w})}},D=()=>l.credits.reduce((S,P)=>{const f=parseFloat(P.price);return S+(isNaN(f)?0:f)},0),U=()=>{const S=l.costPaidAtoB.reduce((y,w)=>{const F=parseFloat(w.price)||0;return y+F},0),P=l.credits.reduce((y,w)=>{const F=parseFloat(w.price)||0;return y+F},0),f=parseFloat(l.purchaseCost)||0;return S+P+f},G=()=>{d(S=>({...S,cashAdjustments:[...S.cashAdjustments,{title:"",price:""}]}))},A=S=>{const P=l.cashAdjustments.filter((f,y)=>y!==S);d(f=>({...f,cashAdjustments:P}))},R=(S,P,f)=>{const y=[...l.cashAdjustments];y[S][P]=f,d(w=>({...w,cashAdjustments:y}))},M=(S,P)=>{const f=S.target.value;if(/^\d*\.?\d*$/.test(f)||f===""){const w=l.cashAdjustments.map((F,q)=>q===P?{...F,price:f,isInvalid:!1}:F);d({...l,cashAdjustments:w})}else{const w=l.cashAdjustments.map((F,q)=>q===P?{...F,isInvalid:!0}:F);d({...l,cashAdjustments:w})}},B=()=>l.cashAdjustments.reduce((S,P)=>{const f=parseFloat(P.price);return S+(isNaN(f)?0:f)},0),W=()=>{const S=B(),P=D(),f=z();return S+P+f},K=()=>{d(S=>({...S,incidentalCost:[...S.incidentalCost,{title:"",price:""}]}))},Y=S=>{const P=l.incidentalCost.filter((f,y)=>y!==S);d(f=>({...f,incidentalCost:P}))},ee=(S,P,f)=>{const y=[...l.incidentalCost];y[S][P]=f,d(w=>({...w,incidentalCost:y}))},re=(S,P)=>{const f=S.target.value;if(/^\d*\.?\d*$/.test(f)||f===""){const w=l.incidentalCost.map((F,q)=>q===P?{...F,price:f,isInvalid:!1}:F);d({...l,incidentalCost:w})}else{const w=l.incidentalCost.map((F,q)=>q===P?{...F,isInvalid:!0}:F);d({...l,incidentalCost:w})}},ne=()=>l.incidentalCost.reduce((S,P)=>{const f=parseFloat(P.price);return S+(isNaN(f)?0:f)},0),se=()=>{d(S=>({...S,carryCosts:[...S.carryCosts,{title:"",price:""}]}))},le=S=>{const P=l.carryCosts.filter((f,y)=>y!==S);d(f=>({...f,carryCosts:P}))},de=(S,P,f)=>{const y=[...l.carryCosts];y[S][P]=f,d(w=>({...w,carryCosts:y}))},ge=(S,P)=>{const f=S.target.value;if(/^\d*\.?\d*$/.test(f)||f===""){const w=l.carryCosts.map((F,q)=>q===P?{...F,price:f,isInvalid:!1}:F);d({...l,carryCosts:w})}else{const w=l.carryCosts.map((F,q)=>q===P?{...F,isInvalid:!0}:F);d({...l,carryCosts:w})}},Be=()=>l.carryCosts.reduce((S,P)=>{const f=parseFloat(P.price);return S+(isNaN(f)?0:f)},0),Ct=()=>{d(S=>({...S,renovationCost:[...S.renovationCost,{title:"",price:""}]}))},zt=S=>{const P=l.renovationCost.filter((f,y)=>y!==S);d(f=>({...f,renovationCost:P}))},he=(S,P,f)=>{const y=[...l.renovationCost];y[S][P]=f,d(w=>({...w,renovationCost:y}))},$t=(S,P)=>{const f=S.target.value;if(/^\d*\.?\d*$/.test(f)||f===""){const w=l.renovationCost.map((F,q)=>q===P?{...F,price:f,isInvalid:!1}:F);d({...l,renovationCost:w})}else{const w=l.renovationCost.map((F,q)=>q===P?{...F,isInvalid:!0}:F);d({...l,renovationCost:w})}},Ye=()=>l.renovationCost.reduce((S,P)=>{const f=parseFloat(P.price);return S+(isNaN(f)?0:f)},0),Qn=()=>{const S=ne(),P=Be(),f=Ye();return S+P+f},Zt=()=>{const S=Qn(),P=W();return S+P},ys=()=>{d(S=>({...S,costPaidOutofClosing:[...S.costPaidOutofClosing,{title:"",price:""}]}))},js=S=>{const P=l.costPaidOutofClosing.filter((f,y)=>y!==S);d(f=>({...f,costPaidOutofClosing:P}))},Xn=(S,P,f)=>{const y=[...l.costPaidOutofClosing];y[S][P]=f,d(w=>({...w,costPaidOutofClosing:y}))},Wt=(S,P)=>{const f=S.target.value;if(/^\d*\.?\d*$/.test(f)||f===""){const w=l.costPaidOutofClosing.map((F,q)=>q===P?{...F,price:f,isInvalid:!1}:F);d({...l,costPaidOutofClosing:w})}else{const w=l.costPaidOutofClosing.map((F,q)=>q===P?{...F,isInvalid:!0}:F);d({...l,costPaidOutofClosing:w})}},gn=()=>l.costPaidOutofClosing.reduce((S,P)=>{const f=parseFloat(P.price);return S+(isNaN(f)?0:f)},0),Ut=()=>{const S=l.sellingPriceBtoC,P=gn();return S-P},fe=()=>{d(S=>({...S,adjustments:[...S.adjustments,{title:"",price:""}]}))},qt=S=>{const P=l.adjustments.filter((f,y)=>y!==S);d(f=>({...f,adjustments:P}))},xn=(S,P,f)=>{const y=[...l.adjustments];y[S][P]=f,d(w=>({...w,adjustments:y}))},Bo=(S,P)=>{const f=S.target.value;if(/^\d*\.?\d*$/.test(f)||f===""){const w=l.adjustments.map((F,q)=>q===P?{...F,price:f,isInvalid:!1}:F);d({...l,adjustments:w})}else{const w=l.adjustments.map((F,q)=>q===P?{...F,isInvalid:!0}:F);d({...l,adjustments:w})}},Ns=()=>l.adjustments.reduce((S,P)=>{const f=parseFloat(P.price);return S+(isNaN(f)?0:f)},0),Mo=()=>{const S=Ut(),P=Ns();return S+P},sl=()=>{d(S=>({...S,incomestatement:[...S.incomestatement,{title:"",price:""}]}))},ol=S=>{const P=l.incomestatement.filter((f,y)=>y!==S);d(f=>({...f,incomestatement:P}))},Cs=(S,P,f)=>{const y=[...l.incomestatement];y[S][P]=f,d(w=>({...w,incomestatement:y}))},Jn=(S,P)=>{const f=S.target.value;if(/^\d*\.?\d*$/.test(f)||f===""){const w=l.incomestatement.map((F,q)=>q===P?{...F,price:f,isInvalid:!1}:F);d({...l,incomestatement:w})}else{const w=l.incomestatement.map((F,q)=>q===P?{...F,isInvalid:!0}:F);d({...l,incomestatement:w})}},Zn=()=>l.incomestatement.reduce((S,P)=>{const f=parseFloat(P.price);return S+(isNaN(f)?0:f)},0),en=()=>{const S=Zn(),P=Ut();return S+P},Er=()=>{const S=isNaN(parseFloat(en()))?0:parseFloat(en()),P=isNaN(parseFloat(l.shorttermrental))?0:parseFloat(l.shorttermrental),f=isNaN(parseFloat(l.OtherIncome))?0:parseFloat(l.OtherIncome),y=isNaN(parseFloat(l.InsuranceClaim))?0:parseFloat(l.InsuranceClaim),w=isNaN(parseFloat(l.LongTermRental))?0:parseFloat(l.LongTermRental),F=isNaN(parseFloat(Zt()))?0:parseFloat(Zt());return S+P+f+y+w-F},bs=()=>{const S=Er(),P=l.FinancingCostClosingCost;return S-P},il=()=>bs(),zo=()=>{d(S=>({...S,IAB:[...S.IAB,{title:"",URL:""}]}))},$o=S=>{const P=l.IAB.filter((f,y)=>y!==S);d(f=>({...f,IAB:P}))},al=(S,P,f)=>{const y=[...l.IAB];y[S][P]=f,d(w=>({...w,IAB:y}))},ll=(S,P,f)=>{const y=[...l.IAB];y[S][P]=f,d(w=>({...w,IAB:y}))};return r.jsxs(r.Fragment,{children:[r.jsx(Le,{}),r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{}),r.jsx("div",{className:"card d-flex justify-content-center align-items-center col-12",style:{padding:"35px",paddingLeft:"250px"},children:r.jsxs("div",{className:"justify-content-center",children:[r.jsxs("ul",{className:"nav nav-tabs",role:"tablist",children:[r.jsx("li",{role:"presentation",className:n==="propertydetails"?"active tab":"tab",children:r.jsx("a",{onClick:()=>s("propertydetails"),role:"tab",children:"Property Details"})}),r.jsx("li",{role:"presentation",className:n==="Images"?"active tab":"tab",children:r.jsx("a",{onClick:()=>s("Images"),role:"tab",children:"Images, Maps"})}),r.jsx("li",{role:"presentation",className:n==="Accounting"?"active tab":"tab",children:r.jsx("a",{onClick:()=>s("Accounting"),role:"tab",children:"Accounting"})}),r.jsx("li",{role:"presentation",className:n==="IAB"?"active tab":"tab",children:r.jsx("a",{onClick:()=>s("IAB"),role:"tab",children:"IAB Verified Report"})})]}),r.jsxs("div",{className:"tab-content",children:[n==="propertydetails"&&r.jsxs("div",{role:"tabpanel",className:"card tab-pane active",children:[r.jsxs("form",{children:[r.jsx("h3",{style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:"Property Location"}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Property Address",r.jsx("input",{type:"text",className:"form-control",name:"address",value:l.address,onChange:u,required:!0})]})}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["City",r.jsx("input",{type:"text",className:"form-control",name:"city",value:l.city,onChange:u,required:!0})]})}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["State",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"state",value:l.state,onChange:u,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"Alaska",children:"Alaska"}),r.jsx("option",{value:"Alabama",children:"Alabama"}),r.jsx("option",{value:"Arkansas",children:"Arkansas"}),r.jsx("option",{value:"Arizona",children:"Arizona"}),r.jsx("option",{value:"California",children:"California"}),r.jsx("option",{value:"Colorado",children:"Colorado"}),r.jsx("option",{value:"Connecticut",children:"Connecticut"}),r.jsx("option",{value:"District Of Columbia",children:"District Of Columbia"}),r.jsx("option",{value:"Delaware",children:"Delaware"}),r.jsx("option",{value:"Florida",children:"Florida"}),r.jsx("option",{value:"Georgia",children:"Georgia"}),r.jsx("option",{value:"Hawaii",children:"Hawaii"}),r.jsx("option",{value:"Iowa",children:"Iowa"}),r.jsx("option",{value:"Idaho",children:"Idaho"}),r.jsx("option",{value:"Illinois",children:"Illinois"}),r.jsx("option",{value:"Indiana",children:"Indiana"}),r.jsx("option",{value:"Kansas",children:"Kansas"}),r.jsx("option",{value:"Kentucky",children:"Kentucky"}),r.jsx("option",{value:"Louisiana",children:"Louisiana"}),r.jsx("option",{value:"Massachusetts",children:"Massachusetts"}),r.jsx("option",{value:"Maryland",children:"Maryland"}),r.jsx("option",{value:"Michigan",children:"Michigan"}),r.jsx("option",{value:"Minnesota",children:"Minnesota"}),r.jsx("option",{value:"Missouri",children:"Missouri"}),r.jsx("option",{value:"Mississippi",children:"Mississippi"}),r.jsx("option",{value:"Montana",children:"Montana"}),r.jsx("option",{value:"North Carolina",children:"North Carolina"}),r.jsx("option",{value:"North Dakota",children:"North Dakota"}),r.jsx("option",{value:"Nebraska",children:"Nebraska"}),r.jsx("option",{value:"New Hampshire",children:"New Hampshire"}),r.jsx("option",{value:"New Jersey",children:"New Jersey"}),r.jsx("option",{value:"New Mexico",children:"New Mexico"}),r.jsx("option",{value:"Nevada",children:"Nevada"}),r.jsx("option",{value:"New York",children:"New York"}),r.jsx("option",{value:"Ohio",children:"Ohio"}),r.jsx("option",{value:"Oklahoma",children:"Oklahoma"}),r.jsx("option",{value:"Oregon",children:"Oregon"}),r.jsx("option",{value:"Pennsylvania",children:"Pennsylvania"}),r.jsx("option",{value:"Rhode Island",children:"Rhode Island"}),r.jsx("option",{value:"South Carolina",children:"South Carolina"}),r.jsx("option",{value:"South Dakota",children:"South Dakota"}),r.jsx("option",{value:"Tennessee",children:"Tennessee"}),r.jsx("option",{value:"Texas",children:"Texas"}),r.jsx("option",{value:"Texas",children:"Travis"}),r.jsx("option",{value:"Utah",children:"Utah"}),r.jsx("option",{value:"Virginia",children:"Virginia"}),r.jsx("option",{value:"Vermont",children:"Vermont"}),r.jsx("option",{value:"Washington",children:"Washington"}),r.jsx("option",{value:"Wisconsin",children:"Wisconsin"}),r.jsx("option",{value:"West Virginia",children:"West Virginia"}),r.jsx("option",{value:"Wyoming",children:"Wyoming"})]})]})})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsxs("div",{className:"col-md-4",children:["County",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"county",value:l.county,onChange:u,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"Abbeville",children:"Abbeville"}),r.jsx("option",{value:"Aiken",children:"Aiken"}),r.jsx("option",{value:"Allendale",children:"Allendale"}),r.jsx("option",{value:"Anderson",children:"Anderson"}),r.jsx("option",{value:"Bamberg",children:"Bamberg"}),r.jsx("option",{value:"Barnwell",children:"Barnwell"}),r.jsx("option",{value:"Beaufort",children:"Beaufort"}),r.jsx("option",{value:"Berkeley",children:"Berkeley"}),r.jsx("option",{value:"Calhoun",children:"Calhoun"}),r.jsx("option",{value:"Charleston",children:"Charleston"}),r.jsx("option",{value:"Cherokee",children:"Cherokee"}),r.jsx("option",{value:"Chester",children:"Chester"}),r.jsx("option",{value:"Chesterfield",children:"Chesterfield"}),r.jsx("option",{value:"Clarendon",children:"Clarendon"}),r.jsx("option",{value:"Colleton",children:"Colleton"}),r.jsx("option",{value:"Darlington",children:"Darlington"}),r.jsx("option",{value:"Dillon",children:"Dillon"}),r.jsx("option",{value:"Dorchester",children:"Dorchester"}),r.jsx("option",{value:"Edgefield",children:"Edgefield"}),r.jsx("option",{value:"Fairfield",children:"Fairfield"}),r.jsx("option",{value:"Florence",children:"Florence"}),r.jsx("option",{value:"Georgetown",children:"Georgetown"}),r.jsx("option",{value:"Greenville",children:"Greenville"}),r.jsx("option",{value:"Greenwood",children:"Greenwood"}),r.jsx("option",{value:"Hampton",children:"Hampton"}),r.jsx("option",{value:"Horry",children:"Horry"}),r.jsx("option",{value:"Jasper",children:"Jasper"}),r.jsx("option",{value:"Kershaw",children:"Kershaw"}),r.jsx("option",{value:"Lancaster",children:"Lancaster"}),r.jsx("option",{value:"Laurens",children:"Laurens"}),r.jsx("option",{value:"Lee",children:"Lee"}),r.jsx("option",{value:"Lexington",children:"Lexington"}),r.jsx("option",{value:"Marion",children:"Marion"}),r.jsx("option",{value:"Marlboro",children:"Marlboro"}),r.jsx("option",{value:"McCormick",children:"McCormick"}),r.jsx("option",{value:"Newberry",children:"Newberry"}),r.jsx("option",{value:"Oconee",children:"Oconee"}),r.jsx("option",{value:"Orangeburg",children:"Orangeburg"}),r.jsx("option",{value:"Pickens",children:"Pickens"}),r.jsx("option",{value:"Richland",children:"Richland"}),r.jsx("option",{value:"Saluda",children:"Saluda"}),r.jsx("option",{value:"Spartanburg",children:"Spartanburg"}),r.jsx("option",{value:"Sumter",children:"Sumter"}),r.jsx("option",{value:"Union",children:"Union"}),r.jsx("option",{value:"Williamsburg",children:"Williamsburg"}),r.jsx("option",{value:"York",children:"York"})]})]}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Zip",r.jsx("input",{type:"text",className:"form-control",name:"zip",value:l.zip,onChange:u,required:!0})]})}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Parcel",r.jsx("input",{type:"text",className:"form-control",name:"parcel",value:l.parcel,onChange:u,required:!0})]})})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Sub division",r.jsx("input",{type:"text",className:"form-control",name:"subdivision",value:l.subdivision,onChange:u,required:!0})]})}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Legal Description",r.jsx("textarea",{type:"text",className:"form-control",name:"legal",value:l.legal,onChange:u,required:!0})]})}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Cost per SQFT",r.jsx("input",{type:"text",className:"form-control",name:"costpersqft",value:l.costpersqft,onChange:u,required:!0})]})})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsxs("div",{className:"col-md-4",children:["Property Type",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"propertyType",value:l.propertyType,onChange:u,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"Residential",children:"Residential"}),r.jsx("option",{value:"Land",children:"Land"}),r.jsx("option",{value:"Commercial",children:"Commercial"}),r.jsx("option",{value:"Industrial",children:"Industrial"}),r.jsx("option",{value:"Water",children:"Water"})]})]}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Lot Acres/Sqft",r.jsx("input",{type:"text",className:"form-control",name:"lotacres",value:l.lotacres,onChange:u,required:!0})]})}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Year Build",r.jsx("input",{type:"text",className:"form-control",name:"yearBuild",value:l.yearBuild,onChange:u,required:!0})]})})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Total Living SQFT",r.jsx("input",{type:"text",className:"form-control",name:"totallivingsqft",value:l.totallivingsqft,onChange:u,required:!0})]})}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Beds",r.jsx("input",{type:"text",className:"form-control",name:"beds",value:l.beds,onChange:u,required:!0})]})}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Baths",r.jsx("input",{type:"text",className:"form-control",name:"baths",value:l.baths,onChange:u,required:!0})]})})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsxs("div",{className:"col-md-4",children:["Stories",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"stories",value:l.stories,onChange:u,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"0",children:"0"}),r.jsx("option",{value:"1",children:"1"}),r.jsx("option",{value:"2",children:"2"}),r.jsx("option",{value:"3",children:"3"}),r.jsx("option",{value:"4",children:"4"}),r.jsx("option",{value:"5",children:"5"}),r.jsx("option",{value:"6",children:"6"}),r.jsx("option",{value:"7",children:"7"}),r.jsx("option",{value:"8",children:"8"}),r.jsx("option",{value:"9",children:"9"}),r.jsx("option",{value:"10",children:"10"})]})]}),r.jsxs("div",{className:"col-md-4",children:["Garage",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"garage",value:l.garage,onChange:u,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"0",children:"0"}),r.jsx("option",{value:"1",children:"1"}),r.jsx("option",{value:"2",children:"2"}),r.jsx("option",{value:"3",children:"3"}),r.jsx("option",{value:"4",children:"4"}),r.jsx("option",{value:"5",children:"5"})]})]}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Garage SQFT",r.jsx("input",{type:"text",className:"form-control",name:"garagesqft",value:l.garagesqft,onChange:u,required:!0})]})})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsxs("div",{className:"col-md-4",children:["Pool/SPA",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"poolspa",value:l.poolspa,onChange:u,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"N/A",children:"N/A"}),r.jsx("option",{value:"Yes- Pool Only",children:"Yes- Pool Only"}),r.jsx("option",{value:"Yes- SPA only",children:"Yes- SPA only"}),r.jsx("option",{value:"Yes - Both Pool and SPA",children:"Yes - Both Pool and SPA"}),r.jsx("option",{value:"4",children:"None"})]})]}),r.jsxs("div",{className:"col-md-4",children:["Fire places",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"fireplaces",value:l.fireplaces,onChange:u,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"N/A",children:"N/A"}),r.jsx("option",{value:"yes",children:"Yes"}),r.jsx("option",{value:"no",children:"No"})]})]}),r.jsxs("div",{className:"col-md-4",children:["A/C",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"ac",value:l.ac,onChange:u,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"N/A",children:"N/A"}),r.jsx("option",{value:"Central",children:"Central"}),r.jsx("option",{value:"Heat Pump",children:"Heat Pump"}),r.jsx("option",{value:"Warm Air",children:"Warm Air"}),r.jsx("option",{value:"Forced Air",children:"Forced Air"}),r.jsx("option",{value:"Gas",children:"Gas"})]})]})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsxs("div",{className:"col-md-4",children:["Heating",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"heating",value:l.heating,onChange:u,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"N/A",children:"N/A"}),r.jsx("option",{value:"Central",children:"Central"}),r.jsx("option",{value:"Heat Pump",children:"Heat Pump"}),r.jsx("option",{value:"Warm Air",children:"Warm Air"}),r.jsx("option",{value:"Forced Air",children:"Forced Air"}),r.jsx("option",{value:"Gas",children:"Gas"})]})]}),r.jsxs("div",{className:"col-md-4",children:["Building Style",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"buildingstyle",value:l.buildingstyle,onChange:u,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"One Story",children:"One Story"}),r.jsx("option",{value:"Craftsman",children:"Craftsman"}),r.jsx("option",{value:"Log/Cabin",children:"Log/Cabin"}),r.jsx("option",{value:"Split-Level",children:"Split-Level"}),r.jsx("option",{value:"Split-Foyer",children:"Split-Foyer"}),r.jsx("option",{value:"Stick Built",children:"Stick Built"}),r.jsx("option",{value:"Single wide",children:"Single wide"}),r.jsx("option",{value:"Double wide",children:"Double wide"}),r.jsx("option",{value:"Duplex",children:"Duplex"}),r.jsx("option",{value:"Triplex",children:"Triplex"}),r.jsx("option",{value:"Quadruplex",children:"Quadruplex"}),r.jsx("option",{value:"Two Story",children:"Two Story"}),r.jsx("option",{value:"Victorian",children:"Victorian"}),r.jsx("option",{value:"Tudor",children:"Tudor"}),r.jsx("option",{value:"Modern",children:"Modern"}),r.jsx("option",{value:"Art Deco",children:"Art Deco"}),r.jsx("option",{value:"Bungalow",children:"Bungalow"}),r.jsx("option",{value:"Mansion",children:"Mansion"}),r.jsx("option",{value:"Farmhouse",children:"Farmhouse"}),r.jsx("option",{value:"Conventional",children:"Conventional"}),r.jsx("option",{value:"Ranch",children:"Ranch"}),r.jsx("option",{value:"Ranch with Basement",children:"Ranch with Basement"}),r.jsx("option",{value:"Cape Cod",children:"Cape Cod"}),r.jsx("option",{value:"Contemporary",children:"Contemporary"}),r.jsx("option",{value:"Colonial",children:"Colonial"}),r.jsx("option",{value:"Mediterranean",children:"Mediterranean"})]})]}),r.jsxs("div",{className:"col-md-4",children:["Site Vacant",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"sitevacant",value:l.sitevacant,onChange:u,required:!0,children:[r.jsx("option",{value:"",children:"Please select"}),r.jsx("option",{value:"Yes",children:"Yes"}),r.jsx("option",{value:"No",children:"No"})]})]})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsxs("div",{className:"col-md-4",children:["Ext Wall",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"extwall",value:l.extwall,onChange:u,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"N/A",children:"N/A"}),r.jsx("option",{value:"Brick",children:"Brick"}),r.jsx("option",{value:"Brick/Vinyl Siding",children:"Brick/Vinyl Siding"}),r.jsx("option",{value:"Wood/Vinyl Siding",children:"Wood/Vinyl Siding"}),r.jsx("option",{value:"Brick/Wood Siding",children:"Brick/Wood Siding"}),r.jsx("option",{value:"Stone",children:"Stone"}),r.jsx("option",{value:"Masonry",children:"Masonry"}),r.jsx("option",{value:"Metal",children:"Metal"}),r.jsx("option",{value:"Fiberboard",children:"Fiberboard"}),r.jsx("option",{value:"Asphalt Siding",children:"Asphalt Siding"}),r.jsx("option",{value:"Concrete Block",children:"Concrete Block"}),r.jsx("option",{value:"Gable",children:"Gable"}),r.jsx("option",{value:"Brick Veneer",children:"Brick Veneer"}),r.jsx("option",{value:"Frame",children:"Frame"}),r.jsx("option",{value:"Siding",children:"Siding"}),r.jsx("option",{value:"Cement/Wood Fiber Siding",children:"Cement/Wood Fiber Siding"}),r.jsx("option",{value:"Fiber/Cement Siding",children:"Fiber/Cement Siding"}),r.jsx("option",{value:"Wood Siding",children:"Wood Siding"}),r.jsx("option",{value:"Vinyl Siding",children:"Vinyl Siding"}),r.jsx("option",{value:"Aluminium Siding",children:"Aluminium Siding"}),r.jsx("option",{value:"Wood/Vinyl Siding",children:"Alum/Vinyl Siding"})]})]}),r.jsxs("div",{className:"col-md-4",children:["Roofing",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"roofing",value:l.roofing,onChange:u,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"N/A",children:"N/A"}),r.jsx("option",{value:"Asphalt Shingle",children:"Asphalt Shingle"}),r.jsx("option",{value:"Green Roofs",children:"Green Roofs"}),r.jsx("option",{value:"Built-up Roofing",children:"Built-up Roofing"}),r.jsx("option",{value:"Composition Shingle",children:"Composition Shingle"}),r.jsx("option",{value:"Composition Shingle Heavy",children:"Composition Shingle Heavy"}),r.jsx("option",{value:"Solar tiles",children:"Solar tiles"}),r.jsx("option",{value:"Metal",children:"Metal"}),r.jsx("option",{value:"Stone-coated steel",children:"Stone-coated steel"}),r.jsx("option",{value:"Slate",children:"Slate"}),r.jsx("option",{value:"Rubber Slate",children:"Rubber Slate"}),r.jsx("option",{value:"Clay and Concrete tiles",children:"Clay and Concrete tiles"})]})]}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Total SQFT",r.jsx("input",{type:"text",className:"form-control",name:"totalSqft",value:l.totalSqft,onChange:u,required:!0})]})})]}),r.jsxs("h3",{style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:[r.jsx("br",{}),"Property Tax Information"]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),l.propertyTaxInfo&&l.propertyTaxInfo.map((S,P)=>r.jsxs("div",{className:"row gy-4",children:[r.jsx("div",{className:"col-md-3",children:r.jsxs("div",{className:"form-floating mb-3",children:["Property Tax Owned",r.jsx("input",{type:"text",className:"form-control",name:"propertytaxowned",value:S.propertytaxowned,onChange:f=>p(f,P),required:!0})]})}),r.jsx("div",{className:"col-md-2",children:r.jsxs("div",{className:"form-floating mb-2",children:["Owned Year",r.jsx("input",{type:"text",className:"form-control",name:"ownedyear",value:S.ownedyear,onChange:f=>p(f,P),required:!0})]})}),r.jsx("div",{className:"col-md-2",children:r.jsxs("div",{className:"form-floating mb-2",children:["Tax Assessed",r.jsx("input",{type:"text",className:"form-control",name:"taxassessed",value:S.taxassessed,onChange:f=>p(f,P),required:!0})]})}),r.jsx("div",{className:"col-md-2",children:r.jsxs("div",{className:"form-floating mb-2",children:["Tax Year",r.jsx("input",{type:"text",className:"form-control",name:"taxyear",value:S.taxyear,onChange:f=>p(f,P),required:!0})]})}),r.jsx("div",{className:"col-md-3",children:r.jsxs("div",{className:"form-floating mb-2",children:[r.jsx("br",{}),r.jsx("button",{className:"btn btn-danger",onClick:()=>x(P),style:{height:"25px",width:"35px"},children:"X"})]})})]},P)),r.jsx("button",{className:"btn btn-secondary",onClick:N,children:"+ Add Another Property Tax Info"})]}),r.jsx("button",{className:"btn btn-primary continue",onClick:o,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Continue"})]}),n==="Images"&&r.jsxs("div",{role:"tabpanel",className:"card tab-pane active",children:[r.jsxs("h3",{style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:["Upload Images"," "]}),r.jsxs("form",{children:[r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),l.images.map((S,P)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:S.title,placeholder:"Image Title",onChange:f=>v(P,f)})}),r.jsxs("div",{className:"col-md-4 d-flex align-items-center",children:[r.jsx(Na,{multiple:!1,onDone:f=>C(f,P)}),r.jsx("button",{type:"button",className:"btn btn-danger",onClick:()=>m(P),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"}})})]},P)),r.jsx("button",{type:"button",className:"btn btn-primary",onClick:b,style:{backgroundColor:"#fda417",border:"#fda417"},children:"+ Add Image"}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"mb-3",children:[r.jsx("label",{htmlFor:"googleMapLink",className:"form-label",children:r.jsxs("h3",{style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:["Google Maps Link"," "]})}),r.jsx("input",{type:"text",className:"form-control",name:"googleMapLink",value:l.googleMapLink,onChange:u,placeholder:"Enter Google Maps link"})]}),l.googleMapLink&&r.jsx("iframe",{title:"Google Map",width:"100%",height:"300",src:`https://www.google.com/maps/embed/v1/view?key=YOUR_API_KEY¢er=${l.googleMapLink}&zoom=10`,frameBorder:"0",allowFullScreen:!0})]}),r.jsx("button",{className:"btn btn-primary back",onClick:i,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Go Back"})," ",r.jsx("button",{className:"btn btn-primary continue",onClick:o,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Continue"})]}),n==="Accounting"&&r.jsxs("div",{className:"card",style:{color:"#fda417",border:"1px solid #fda417",padding:"10px",borderRadius:"8px"},children:[r.jsx("br",{}),r.jsxs("div",{className:"row gy-3 col-16",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Close Date A to B",required:!0,disabled:!0})}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"date",className:"form-control",name:"closeDateAtoB",value:l.closeDateAtoB,onChange:S=>{const P=S.target.value;d({...l,closeDateAtoB:P}),E(P,l.closeDateBtoC)},placeholder:"Close Date A to B",style:{textAlign:"right"},required:!0})}),r.jsx("div",{children:r.jsxs("p",{children:[r.jsxs("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:["[M-D-Y]"," "]}),":"," ",r.jsx("span",{style:{color:"#000000",fontSize:"14px",fontWeight:"normal"},children:new Date(l.closeDateAtoB).toLocaleDateString("en-US",{month:"numeric",day:"numeric",year:"numeric"})})]})})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Close Date B to C",required:!0,disabled:!0})}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"date",className:"form-control",name:"closeDateBtoC",value:l.closeDateBtoC,onChange:S=>{const P=S.target.value;d({...l,closeDateBtoC:P}),E(l.closeDateAtoB,P)},placeholder:"Close Date B to C",style:{textAlign:"right"},required:!0})}),r.jsx("div",{children:r.jsxs("p",{children:[r.jsxs("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:["[M-D-Y] :"," "]}),r.jsx("span",{style:{color:"#000000",fontSize:"14px",fontWeight:"normal"},children:new Date(l.closeDateBtoC).toLocaleDateString("en-US",{month:"numeric",day:"numeric",year:"numeric"})})]})})]}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Renovation Risk"}),r.jsx("div",{className:"col-md-7",children:c.map(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:P=>{const f=parseInt(P.target.value,10);d({...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:`$ ${il().toFixed(2)}`,readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Turn Time"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:h,readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Purchase Price"}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${l.isPurchaseCostInvalid?"is-invalid":""}`,value:`$ ${l.purchaseCost}`,name:"purchaseCost",onChange:S=>{let P=S.target.value.replace(/[^\d.]/g,"");const f=/^\d*\.?\d*$/.test(P);d({...l,purchaseCost:P,isPurchaseCostInvalid:!f})},onKeyPress:S=>{const P=S.charCode;(P<48||P>57)&&P!==46&&(S.preventDefault(),d({...l,isPurchaseCostInvalid:!0}))},placeholder:"Enter Purchase Cost",style:{textAlign:"right"},required:!0}),l.isPurchaseCostInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Costs paid out of Closing Hud A to B:"}),l.costPaidAtoB.map((S,P)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:S.title,onChange:f=>_(P,"title",f.target.value),placeholder:"Title",required:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${S.isInvalid?"is-invalid":""}`,value:`$ ${S.price}`,onChange:f=>L(f,P),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(P),style:{marginLeft:"5px"},children:"x"})})]},P)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{onClick:T,className:"btn btn-primary back",style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Extra Cost"]})}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Purchase Cost"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalPurchaseCosts",value:`$ ${z().toFixed(2)}`,readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Credits received on settlement:"}),l.credits.map((S,P)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:S.title,onChange:f=>Q(P,"title",f.target.value),placeholder:"credits",required:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${S.isInvalid?"is-invalid":""}`,value:S.price,onChange:f=>Z(f,P),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(P),style:{marginLeft:"5px"},children:"x"})})]},P)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:H,style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add credits"]})}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total credits received on settlement"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalcredits",value:D(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Purchase Cost after Credits Received"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalPurchaseCostsaftercredits",value:U(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Cash Adjustments:"}),l.cashAdjustments.map((S,P)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:S.title,onChange:f=>R(P,"title",f.target.value),placeholder:"Title",required:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${S.isInvalid?"is-invalid":""}`,value:S.price,onChange:f=>M(f,P),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(P),style:{marginLeft:"5px"},children:"x"})})]},P)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:G,style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Cash Adjustments"]})}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Cash Adjustments on Settlement"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalcashAdjustments",value:B(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Cash Required on Settlement"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalcashrequiredonsettlement",value:W(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Incidental Cost:"}),l.incidentalCost.map((S,P)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:S.title,onChange:f=>ee(P,"title",f.target.value),placeholder:"Title",required:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${S.isInvalid?"is-invalid":""}`,value:S.price,onChange:f=>re(f,P),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:()=>Y(P),style:{marginLeft:"5px"},children:"x"})})]},P)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:K,style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Incidental Cost"]})}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Incidental Cost"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalincidentalCost",value:ne(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Carry Costs:"}),l.carryCosts.map((S,P)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:S.title,onChange:f=>de(P,"title",f.target.value),placeholder:"Title",required:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${S.isInvalid?"is-invalid":""}`,value:S.price,onChange:f=>ge(f,P),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:()=>le(P),style:{marginLeft:"5px"},children:"x"})})]},P)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:se,style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Carry Cost"]})}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Carry Cost"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalcarryCosts",value:Be(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Reno/Construction"}),l.renovationCost.map((S,P)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:S.title,onChange:f=>he(P,"title",f.target.value),placeholder:"Title",required:!0,style:{fontSize:"10px"}})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${S.isInvalid?"is-invalid":""}`,value:S.price,onChange:f=>$t(f,P),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:()=>zt(P),style:{marginLeft:"5px"},children:"x"})})]},P)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:Ct,style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Reno/Construction"]})}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Renovation Cost"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalrenovationCost",value:Ye(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Renovations & Holding Cost"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalRenovationsandHoldingCost",value:Qn(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Costs to Buy A to B"}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:"form-control",name:"totalCoststoBuyAtoB",value:Zt(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0}),l.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Selling Price B to C"}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${l.isPurchaseCostInvalid?"is-invalid":""}`,name:"sellingPriceBtoC",value:l.sellingPriceBtoC,onChange:S=>{const P=S.target.value,f=/^\d*\.?\d*$/.test(P);d({...l,sellingPriceBtoC:P,isPurchaseCostInvalid:!f})},onKeyPress:S=>{const P=S.charCode;(P<48||P>57)&&P!==46&&(S.preventDefault(),d({...l,isPurchaseCostInvalid:!0}))},placeholder:"Enter Purchase Cost",style:{textAlign:"right"},required:!0}),l.isPurchaseCostInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Less:Costs paid out of closing Hud B to C:"}),l.costPaidOutofClosing.map((S,P)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:S.title,onChange:f=>Xn(P,"title",f.target.value),placeholder:"Title",required:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${S.isInvalid?"is-invalid":""}`,value:S.price,onChange:f=>Wt(f,P),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:()=>js(P),style:{marginLeft:"5px"},children:"x"})})]},P)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:ys,style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Cost Paid Out of Closing"]})}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total cost paid out of closing"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalcostPaidOutofClosing",value:gn(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Cost to Sell B to C"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalCosttoSellBtoC",value:Ut(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Gross Proceeds per HUD"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"grossproceedsperHUD",value:Ut(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Adjustments:"}),l.adjustments.map((S,P)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:S.title,onChange:f=>xn(P,"title",f.target.value),placeholder:"Title",required:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${S.isInvalid?"is-invalid":""}`,value:S.price,onChange:f=>Bo(f,P),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:()=>qt(P),style:{marginLeft:"5px"},children:"x"})})]},P)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:fe,style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Adjustments"]})}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Adjustments"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totaladjustments",value:Ns(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Funds Available for distribution"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"fundsavailablefordistribution",value:Mo(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Income Statement Adjustments:"}),l.incomestatement.map((S,P)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:S.title,onChange:f=>Cs(P,"title",f.target.value),placeholder:"Title",required:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${S.isInvalid?"is-invalid":""}`,value:S.price,onChange:f=>Jn(f,P),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:()=>ol(P),style:{marginLeft:"5px"},children:"x"})})]},P)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:sl,style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Income Statement"]})}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Income Statement Adjustment"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalincomestatement",value:Zn(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Net B to C Sale Value"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"netBtoCsalevalue",value:en(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Net Profit Computation"}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Total Costs to Buy A to B",required:!0,disabled:!0})}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalCoststoBuyAtoBagain",value:Zt(),style:{textAlign:"right"},required:!0})})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Funds Prior to Closing",required:!0,disabled:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${l.isfundspriortoclosingInvalid?"is-invalid":""}`,value:l.fundspriortoclosing,name:"fundspriortoclosing",onChange:S=>{const P=S.target.value,f=/^\d*\.?\d*$/.test(P);d({...l,fundspriortoclosing:P,isfundspriortoclosingInvalid:!f})},onKeyPress:S=>{const P=S.charCode;(P<48||P>57)&&P!==46&&(S.preventDefault(),d({...l,isfundspriortoclosingInvalid:!0}))},style:{textAlign:"right"},required:!0}),l.isfundspriortoclosingInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Net B to C Sale Value",required:!0,disabled:!0})}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"netBtoCsalevalue",value:en(),style:{textAlign:"right"},required:!0})})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Short Term Rental",required:!0,disabled:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${l.isPurchaseCostInvalid?"is-invalid":""}`,value:l.shorttermrental,name:"shorttermrental",onChange:S=>{const P=S.target.value,f=/^\d*\.?\d*$/.test(P);d({...l,shorttermrental:P,isPurchaseCostInvalid:!f})},onKeyPress:S=>{const P=S.charCode;(P<48||P>57)&&P!==46&&(S.preventDefault(),d({...l,isPurchaseCostInvalid:!0}))},style:{textAlign:"right"},required:!0}),l.isPurchaseCostInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Other Income",required:!0,disabled:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${l.isPurchaseCostInvalid?"is-invalid":""}`,value:l.OtherIncome,name:"OtherIncome",onChange:S=>{const P=S.target.value,f=/^\d*\.?\d*$/.test(P);d({...l,OtherIncome:P,isPurchaseCostInvalid:!f})},onKeyPress:S=>{const P=S.charCode;(P<48||P>57)&&P!==46&&(S.preventDefault(),d({...l,isPurchaseCostInvalid:!0}))},style:{textAlign:"right"},required:!0}),l.isPurchaseCostInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Insurance Claim",required:!0,disabled:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${l.isPurchaseCostInvalid?"is-invalid":""}`,value:l.InsuranceClaim,name:"InsuranceClaim",onChange:S=>{const P=S.target.value,f=/^\d*\.?\d*$/.test(P);d({...l,InsuranceClaim:P,isPurchaseCostInvalid:!f})},onKeyPress:S=>{const P=S.charCode;(P<48||P>57)&&P!==46&&(S.preventDefault(),d({...l,isPurchaseCostInvalid:!0}))},style:{textAlign:"right"},required:!0}),l.isPurchaseCostInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Long Term Rental",required:!0,disabled:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${l.isPurchaseCostInvalid?"is-invalid":""}`,value:l.LongTermRental,name:"LongTermRental",onChange:S=>{const P=S.target.value,f=/^\d*\.?\d*$/.test(P);d({...l,LongTermRental:P,isPurchaseCostInvalid:!f})},onKeyPress:S=>{const P=S.charCode;(P<48||P>57)&&P!==46&&(S.preventDefault(),d({...l,isPurchaseCostInvalid:!0}))},style:{textAlign:"right"},required:!0}),l.isPurchaseCostInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Net Profit Before Financing Costs"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"netprofitbeforefinancingcosts",value:Er(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Financing Cost/Other Closing Costs"}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${l.isFinancingCostClosingCostInvalid?"is-invalid":""}`,value:l.FinancingCostClosingCost,name:"FinancingCostClosingCost",onChange:S=>{const P=S.target.value,f=/^\d*\.?\d*$/.test(P);d({...l,FinancingCostClosingCost:P,isFinancingCostClosingCostInvalid:!f})},onKeyPress:S=>{const P=S.charCode;(P<48||P>57)&&P!==46&&(S.preventDefault(),d({...l,isFinancingCostClosingCostInvalid:!0}))},style:{textAlign:"right"},required:!0}),l.isFinancingCostClosingCostInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Net Profit"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"netprofit",value:bs(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsxs("div",{className:"col-md-6",children:[r.jsx("button",{className:"btn btn-primary back",onClick:i,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Go Back"})," ",r.jsx("button",{type:"button",className:"btn btn-primary continue",style:{backgroundColor:"#fda417",border:"#fda417"},onClick:o,children:"Continue"})," "]})]}),n==="IAB"&&r.jsxs("div",{role:"tabpanel",className:"card tab-pane active",children:[r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Add IAB Links:"}),l.IAB.map((S,P)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:S.title,onChange:f=>al(P,"title",f.target.value),placeholder:"Title",required:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:"form-control",value:S.URL,onChange:f=>ll(P,"URL",f.target.value),placeholder:"URL",style:{textAlign:"right"},required:!0}),S.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid URL."})]}),r.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:r.jsx("button",{className:"btn btn-danger",onClick:()=>$o(P),style:{marginLeft:"5px"},children:"x"})})]},P)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:zo,style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add IAB URL"]})}),r.jsxs("div",{className:"col-md-6",children:[r.jsx("button",{className:"btn btn-primary back",onClick:i,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Go Back"})," ",r.jsx("button",{type:"button",className:"btn btn-primary continue",style:{backgroundColor:"#fda417",border:"#fda417"},onClick:g,children:"Submit"})," "]})]})]})]})})]})},ok=()=>{const e=Ke(),{properties:t,loading:n,totalPages:s,currentPage:o}=_e(C=>C.property),[i,a]=k.useState(""),[l,d]=k.useState([]),[c,u]=k.useState(1),p=10;k.useEffect(()=>{e(mr({page:c,limit:p,keyword:i}))},[e,c,i]),k.useEffect(()=>{i.trim()?d(t.filter(C=>C.address.toLowerCase().includes(i.toLowerCase()))):d(t)},[i,t]);const g=C=>{a(C.target.value)},N=C=>{C.preventDefault()},x=C=>{u(C),e(mr({page:C,limit:p,keyword:i}))};return r.jsxs(r.Fragment,{children:[r.jsx(Le,{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsxs("div",{className:"container col-12",children:[r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-lg-12 card-margin col-12",children:r.jsx("div",{className:"card search-form col-12",children:r.jsx("div",{className:"card-body p-0",children:r.jsx("form",{id:"search-form",onSubmit:N,children:r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-12",children:r.jsx("div",{className:"row no-gutters",children:r.jsx("div",{className:"col-lg-8 col-md-6 col-sm-12 p-0",children:r.jsx("input",{type:"text",value:i,onChange:g,placeholder:"Enter the keyword and hit ENTER button...",className:"form-control"})})})})})})})})})}),r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-12",children:r.jsx("div",{className:"card card-margin",children:r.jsx("div",{className:"card-body",children:n?r.jsx("div",{children:"Loading..."}):r.jsx("div",{className:"table-responsive",children:r.jsxs("table",{className:"table widget-26",children:[r.jsx("thead",{style:{color:"#fda417",fontSize:"15px"},children:r.jsxs("tr",{children:[r.jsx("th",{children:"Image"}),r.jsx("th",{children:"Details"}),r.jsx("th",{children:"Total Living Square Foot"}),r.jsx("th",{children:"Year Built"}),r.jsx("th",{children:"Cost per Square Foot"})]})}),r.jsx("tbody",{children:l.length>0?l.map(C=>r.jsxs("tr",{children:[r.jsx("td",{children:C.images&&C.images[0]?r.jsx("img",{src:C.images[0].file||mt,alt:"Property Thumbnail",style:{width:"100px",height:"auto"}}):r.jsx("img",{src:mt,alt:"Default Property Thumbnail",style:{width:"100px",height:"auto"}})}),r.jsx("td",{children:r.jsxs("div",{className:"widget-26-job-title",children:[r.jsx(ae,{to:`/property/${C.propertyId}`,className:"link-primary text-decoration-none",children:C.address}),r.jsxs("p",{className:"m-0",children:[r.jsxs("span",{className:"employer-name",children:[r.jsx("i",{className:"fa fa-map-marker",style:{color:"#F74B02"}}),C.city,", ",C.county,","," ",C.state]}),r.jsxs("p",{className:"text-muted m-0",children:["House Id: ",C.propertyId]})]})]})}),r.jsx("td",{children:C.totallivingsqft}),r.jsx("td",{children:C.yearBuild}),r.jsx("td",{children:C.costpersqft})]},C.id)):r.jsx("tr",{children:r.jsx("td",{colSpan:"5",children:"No properties found."})})})]})})})})})}),r.jsx("nav",{"aria-label":"Page navigation",children:r.jsxs("ul",{className:"pagination justify-content-center",children:[r.jsx("li",{className:`page-item ${o===1?"disabled":""}`,children:r.jsx("button",{className:"page-link",onClick:()=>x(o-1),children:"Previous"})}),Array.from({length:s},(C,b)=>r.jsx("li",{className:`page-item ${o===b+1?"active":""}`,children:r.jsx("button",{className:"page-link",onClick:()=>x(b+1),children:b+1})},b+1)),r.jsx("li",{className:`page-item ${o===s?"disabled":""}`,children:r.jsx("button",{className:"page-link",onClick:()=>x(o+1),children:"Next"})})]})})]}),r.jsx(tt,{})]})},ik=()=>{const{userId:e}=gs(),t=Ke(),{user:n,loading:s}=_e(o=>o.user);return k.useEffect(()=>{e&&t(Ti(e))},[e,t]),s?r.jsx("div",{children:"Loading..."}):r.jsxs(r.Fragment,{children:[r.jsx(Le,{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("div",{className:"main-body",children:r.jsxs("div",{className:"row gutters-sm",children:[r.jsx("div",{className:"col-md-4 mb-3",children:r.jsx("div",{className:"card",children:r.jsxs("div",{className:"card-body",children:[r.jsxs("div",{className:"d-flex flex-column align-items-center text-center",children:[r.jsx("img",{className:"img-fluid",src:n.profileImage||Bs,alt:"ProfileImage",style:{marginTop:"0px",maxWidth:"300px",maxHeight:"300px"}}),r.jsxs("h4",{children:[n.title,". ",n.firstName," ",n.middleName," ",n.lastName]}),r.jsxs("span",{className:"text-muted font-size-sm",children:[r.jsx("i",{className:"fa fa-map-marker",style:{color:"#F74B02",fontSize:"20px"}})," ",n.city,", ",n.state,", ",n.county,", ",n.zip]})]}),r.jsx("br",{})]})})}),r.jsx("div",{className:"col-md-4 mb-3",children:r.jsx("div",{className:"card",children:r.jsxs("div",{className:"card-body",children:[r.jsxs("h1",{className:"d-flex align-items-center mb-3",style:{color:"#fda417",fontSize:"26px"},children:[r.jsx("i",{className:"material-icons text-info mr-2",style:{color:"#fda417",fontSize:"26px"},children:"Recent"}),"Project investments"]}),r.jsx("hr",{}),r.jsx("img",{src:mt,alt:"Admin",className:"rounded-circle",style:{marginRight:"10px",maxWidth:"50px",maxHeight:"50px"}}),r.jsx("small",{children:"Web Design project in California"}),r.jsx("div",{className:"progress",style:{width:"100%",marginTop:"10px"},children:r.jsx("div",{className:"progress-bar",role:"progressbar",style:{width:"25%"},"aria-valuenow":25,"aria-valuemin":0,"aria-valuemax":100,children:"25% completed"})}),r.jsx("hr",{}),r.jsx("img",{src:mt,alt:"Admin",className:"rounded-circle",style:{marginRight:"10px",maxWidth:"50px",maxHeight:"50px"}}),r.jsx("small",{children:"Web Design project in California"}),r.jsx("div",{className:"progress",style:{width:"100%",marginTop:"10px"},children:r.jsx("div",{className:"progress-bar",role:"progressbar",style:{width:"75%"},"aria-valuenow":75,"aria-valuemin":0,"aria-valuemax":100,children:"75% completed"})})]})})}),r.jsx("div",{className:"col-md-4 mb-3",children:r.jsx("div",{className:"card",children:r.jsxs("div",{className:"card-body",children:[r.jsxs("h1",{className:"d-flex align-items-center mb-3",style:{color:"#fda417",fontSize:"26px"},children:[r.jsx("i",{className:"material-icons text-info mr-2",children:"Projects"}),"Seeking investments"]}),r.jsx("hr",{}),r.jsx("img",{src:mt,alt:"Admin",className:"rounded-circle",style:{marginRight:"10px",maxWidth:"50px",maxHeight:"50px"}}),r.jsx("small",{children:"Web Design project in California"}),r.jsx("br",{})," ",r.jsx("br",{}),r.jsx("hr",{}),r.jsx("img",{src:mt,alt:"Admin",className:"rounded-circle",style:{marginRight:"10px",maxWidth:"50px",maxHeight:"50px"}}),r.jsx("small",{children:"Web Design project in California"}),r.jsx("br",{})," ",r.jsx("br",{})]})})}),r.jsx("div",{className:"col-md-4",children:r.jsx("div",{className:"card mb-3",children:r.jsxs("div",{className:"card-body",children:[r.jsxs("h1",{className:"d-flex align-items-center mb-3",style:{color:"#fda417",fontSize:"26px"},children:[r.jsx("i",{className:"material-icons text-info mr-2",style:{color:"#fda417",fontSize:"26px"},children:"About"}),"me :"]})," ",r.jsx("hr",{}),n.aboutme]})})}),r.jsx("div",{className:"col-md-4 mb-3",children:r.jsx("div",{className:"card",children:r.jsxs("div",{className:"card-body",children:[r.jsxs("h1",{className:"d-flex align-items-center mb-3",style:{color:"#fda417",fontSize:"26px"},children:[r.jsx("i",{className:"material-icons text-info mr-2",style:{color:"#fda417",fontSize:"26px"},children:"Willing to"}),"invest:"]}),r.jsx("hr",{}),r.jsxs("h2",{className:"d-flex flex-column align-items-center text-center",style:{color:"#fda417",border:"#fda417",fontSize:"60px",fontWeight:"normal"},children:["$ ",n.fundAmount]}),r.jsx("hr",{}),r.jsxs("div",{className:"card-body",children:[r.jsxs("div",{className:"row",children:[r.jsx("div",{className:"col-sm-3",children:r.jsx("span",{className:"mb-0",children:"Email"})}),n.email,r.jsx("div",{className:"col-sm-9 text-secondary"})]}),r.jsx("hr",{}),r.jsxs("div",{className:"row",children:[r.jsx("div",{className:"col-sm-3",children:r.jsx("span",{className:"mb-0",children:"Phone"})}),"67656584687",r.jsx("div",{className:"col-sm-9 text-secondary"})]})]})]})})}),r.jsx("div",{className:"col-md-4 mb-3",children:r.jsx("div",{className:"card",children:r.jsxs("div",{className:"card-body",children:[r.jsxs("h1",{className:"d-flex align-items-center mb-3",style:{color:"#fda417",fontSize:"26px"},children:[r.jsx("i",{className:"material-icons text-info mr-2",children:"Suggested"}),"Borrowers"]}),r.jsxs("ul",{className:"list-group list-group-flush",children:[r.jsx("li",{className:"list-group-item d-flex justify-content-between align-items-center flex-wrap",children:r.jsxs("h6",{className:"mb-0",children:[r.jsx("img",{src:Bs,style:{marginTop:"0px",maxWidth:"50px",maxHeight:"50px"}}),"Ravichandu"]})}),r.jsx("li",{className:"list-group-item d-flex justify-content-between align-items-center flex-wrap",children:r.jsxs("h6",{className:"mb-0",children:[r.jsx("img",{src:Bs,style:{marginTop:"0px",maxWidth:"50px",maxHeight:"50px"}}),"Ravichandu"]})}),r.jsx("li",{className:"list-group-item d-flex justify-content-between align-items-center flex-wrap",children:r.jsxs("h6",{className:"mb-0",children:[r.jsx("img",{src:Bs,style:{marginTop:"0px",maxWidth:"50px",maxHeight:"50px"}}),"Ravichandu"]})})]})]})})})]})})]})};function ak(){const e="http://67.225.129.127:3002",[t,n]=k.useState(""),[s,o]=k.useState(""),i=hn(),a=async l=>{l.preventDefault();try{const{data:d}=await me.post(`${e}/admin/login`,{username:t,password:s});localStorage.setItem("token",d.token),i("/AdminPLogin/dashboard")}catch(d){alert("Invalid login credentials",d)}};return r.jsx(r.Fragment,{children:r.jsx("section",{className:"d-flex justify-content-center align-items-center col-12",style:{minHeight:"100vh",backgroundColor:"#FFFFFF",width:"100%",paddingLeft:"500px"},children:r.jsx("div",{className:"col-md-6 col-lg-4",children:r.jsx("div",{className:"container-fluid px-0",children:r.jsx("div",{className:"row gy-4 align-items-center justify-content-center",children:r.jsxs("div",{className:"col-12 text-center",children:[r.jsx("input",{autoComplete:"off",type:"text",value:t,onChange:l=>n(l.target.value)}),r.jsx("br",{})," ",r.jsx("br",{}),r.jsx("input",{autoComplete:"off",type:"password",value:s,onChange:l=>o(l.target.value)}),r.jsx("div",{className:"mb-3",children:r.jsx("button",{onClick:a,className:"btn btn-dark w-70",children:"Login"})})]})})})})})})}function Bi({children:e}){const t=hn(),n=localStorage.getItem("token");return k.useEffect(()=>{n||t("/AdminPLogin")},[n,t]),n?e:null}Bi.propTypes={children:Lt.node.isRequired};const lk=()=>{const e=hn(),t=Ke(),{properties:n,totalPages:s}=_e(N=>N.property),[o,i]=k.useState(1),a=5,l="",[d,c]=k.useState("dashboard");k.useEffect(()=>{t(mr({page:o,limit:a,keyword:l}))},[t,o,l]);const u=N=>{i(N)},p=()=>{switch(d){case"activeUsers":return r.jsx("div",{children:"Active Users Content"});case"inactiveUsers":return r.jsx("div",{children:"Inactive Users Content"});case"addProperty":return r.jsx("div",{children:"Add Property Content"});case"userProperties":return r.jsx("div",{className:"container-fluid",style:{padding:"35px",paddingLeft:"120px"},children:n.length>0?r.jsxs(r.Fragment,{children:[r.jsx("ul",{children:n.map(N=>r.jsx("li",{children:r.jsx("div",{className:"container",children:r.jsx("div",{className:"col-md-12",children:r.jsxs("div",{className:"row p-2 bg-white border rounded mt-2",children:[r.jsx("div",{className:"col-md-3 mt-1",children:r.jsx("img",{src:N.images[0].file||mt,className:"w-70",alt:"Img",style:{marginTop:"0px",maxWidth:"200px",maxHeight:"200px"}})}),r.jsxs("div",{className:"col-md-6 mt-1",children:[r.jsx("h5",{children:r.jsxs(ae,{to:`/property/${N.propertyId}`,target:"_blank",children:[N.address,"....."]})}),r.jsx("p",{className:"text-justify text-truncate para mb-0",children:"There are many variations of passages of"})]}),r.jsx("div",{className:"align-items-center align-content-center col-md-3 border-left mt-1",children:r.jsxs("div",{className:"d-flex flex-column mt-4",children:[r.jsx(ae,{to:`/property/${N.propertyId}`,children:r.jsxs("button",{className:"btn btn-outline-primary btn-sm mt-2",type:"button",style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{className:"fa fa-eye",style:{color:"#F74B02"}})," ","View Details"]})}),r.jsxs("button",{className:"btn btn-outline-primary btn-sm mt-2",type:"button",style:{backgroundColor:"#fda417",border:"#fda417"},onClick:()=>c("editDetails"),children:[r.jsx("span",{className:"fa fa-edit",style:{color:"#F74B02"}})," ","Edit Details"]})]})})]})})})},N._id))}),r.jsxs("div",{className:"pagination",children:[r.jsx("button",{onClick:()=>u(o-1),disabled:o===1,children:"Previous"}),Array.from({length:s},(N,x)=>x+1).map(N=>N===o||N===1||N===s||N>=o-1&&N<=o+1?r.jsx("button",{onClick:()=>u(N),disabled:o===N,children:N},N):N===2||N===s-1?r.jsx("span",{children:"..."},N):null),r.jsx("button",{onClick:()=>u(o+1),disabled:o===s,children:"Next"})]})]}):r.jsx("p",{children:"No active properties found."})});case"adminProperties":return r.jsx("div",{children:"Admin Properties Content"});case"newPage":return r.jsxs("div",{style:{padding:"20px"},children:[r.jsx("h3",{children:"New Page"}),r.jsx("p",{children:"This is some dummy text. You can replace it with your content later."})]});case"editDetails":return r.jsxs("div",{style:{padding:"20px"},children:[r.jsx("h3",{children:"Edit Property Details"}),r.jsx("p",{children:"You can add your edit details here."})]});default:return r.jsx("div",{children:r.jsx(ae,{to:"/AdminPLogin/admininfo",children:"Welcome to the Dashboard"})})}},g=()=>{localStorage.removeItem("token"),e("/AdminPLogin")};return r.jsxs("div",{id:"wrapper",children:[r.jsxs("ul",{className:"navbar-nav bg-gradient-primary sidebar sidebar-dark accordion",id:"accordionSidebar",children:[r.jsxs("span",{className:"sidebar-brand d-flex align-items-center justify-content-center",children:[r.jsx("div",{className:"sidebar-brand-icon rotate-n-15",children:r.jsx("i",{className:"fas fa-laugh-wink"})}),r.jsxs("div",{className:"sidebar-brand-text mx-3",children:["Admin ",r.jsx("sup",{children:"EL"})]})]}),r.jsx("hr",{className:"sidebar-divider my-0"}),r.jsx("li",{className:"nav-item active",children:r.jsxs(ae,{to:"#",onClick:()=>c("dashboard"),className:"nav-link link-primary text-decoration-none",children:[r.jsx("i",{className:"fas fa-fw fa-tachometer-alt"}),r.jsx("span",{children:"Dashboard"})]})}),r.jsx("hr",{className:"sidebar-divider"}),r.jsx("div",{className:"sidebar-heading",children:"Interface"}),r.jsxs("li",{className:"nav-item",children:[r.jsxs("a",{className:"nav-link collapsed",href:"#","data-toggle":"collapse","data-target":"#collapseTwo","aria-expanded":"true","aria-controls":"collapseTwo",children:[r.jsx("i",{className:"fas fa-fw fa-cog"}),r.jsx("span",{children:"Users"})]}),r.jsx("div",{id:"collapseTwo",className:"collapse","aria-labelledby":"headingTwo","data-parent":"#accordionSidebar",children:r.jsxs("div",{className:"bg-white py-2 collapse-inner rounded",children:[r.jsx("h6",{className:"collapse-header",children:"Registered Users:"}),r.jsx(ae,{to:"#",onClick:()=>c("activeUsers"),className:"collapse-item link-primary text-decoration-none",children:"Active Users"}),r.jsx(ae,{to:"#",onClick:()=>c("inactiveUsers"),className:"collapse-item link-primary text-decoration-none",children:"Inactive Users"})]})})]}),r.jsxs("li",{className:"nav-item",children:[r.jsxs("a",{className:"nav-link collapsed",href:"#","data-toggle":"collapse","data-target":"#collapseUtilities","aria-expanded":"true","aria-controls":"collapseUtilities",children:[r.jsx("i",{className:"fas fa-fw fa-wrench"}),r.jsx("span",{children:"Properties"})]}),r.jsx("div",{id:"collapseUtilities",className:"collapse","aria-labelledby":"headingUtilities","data-parent":"#accordionSidebar",children:r.jsxs("div",{className:"bg-white py-2 collapse-inner rounded",children:[r.jsx("h6",{className:"collapse-header",children:"Details:"}),r.jsx(ae,{to:"#",onClick:()=>c("addProperty"),className:"collapse-item link-primary text-decoration-none",children:"Add Property"}),r.jsx(ae,{to:"#",onClick:()=>c("userProperties"),className:"collapse-item link-primary text-decoration-none",children:"User Properties"}),r.jsx(ae,{to:"#",onClick:()=>c("adminProperties"),className:"collapse-item link-primary text-decoration-none",children:"Admin Properties"}),r.jsx(ae,{to:"#",onClick:()=>c("newPage"),className:"collapse-item link-primary text-decoration-none",children:"New Page"})]})})]}),r.jsx("li",{className:"nav-item",children:r.jsxs(ae,{to:"#",onClick:g,className:"nav-link link-primary text-decoration-none",children:[r.jsx("i",{className:"fas fa-fw fa-sign-out-alt"}),r.jsx("span",{children:"Logout"})]})})]}),r.jsx("div",{id:"content-wrapper",className:"d-flex flex-column",children:r.jsx("div",{id:"content",children:r.jsx("div",{className:"container-fluid",children:p()})})})]})},ck=()=>{const e=Ke(),{user:t,loading:n,error:s}=_e(o=>o.admin);return console.log("user",t),k.useEffect(()=>{e(Di())},[e]),n?r.jsx("p",{children:"Loading..."}):s?r.jsxs("p",{children:["Error: ",s]}):r.jsxs("div",{children:[r.jsx("h2",{children:"Admin Details"}),t?r.jsx("div",{children:r.jsxs("p",{children:[r.jsx("strong",{children:"Username:"})," ",t.username]})}):r.jsx("p",{children:"No user details found. Thank you"})]})},dk=()=>r.jsxs(bC,{children:[r.jsx($C,{}),r.jsxs(hC,{children:[r.jsx(be,{path:"/",element:r.jsx(WC,{})}),r.jsx(be,{path:"/about",element:r.jsx(UC,{})}),r.jsx(be,{path:"/services",element:r.jsx(rk,{})}),r.jsx(be,{path:"/contact",element:r.jsx(qC,{})}),r.jsx(be,{path:"/register",element:r.jsx(vb,{})}),r.jsx(be,{path:"/registrationsuccess",element:r.jsx(Ms,{children:r.jsx(Fb,{})})}),r.jsx(be,{path:"/login",element:r.jsx(xb,{})}),r.jsx(be,{path:"/dashboard",element:r.jsx(Ms,{children:r.jsx(kb,{})})}),r.jsx(be,{path:"/users/:id/verify/:token",element:r.jsx(Ab,{})}),r.jsx(be,{path:"/forgotpassword",element:r.jsx(Rb,{})}),r.jsx(be,{path:"/users/resetpassword/:userId/:token",element:r.jsx(Ib,{})}),r.jsx(be,{path:"/addproperty",element:r.jsx(Ms,{children:r.jsx(sg,{})})}),r.jsx(be,{path:"/property/:id",element:r.jsx(tk,{})}),r.jsx(be,{path:"/properties/:house_id",element:r.jsx(sk,{})}),r.jsx(be,{path:"/searchmyproperties",element:r.jsx(nk,{})}),r.jsx(be,{path:"/searchproperties",element:r.jsx(ok,{})}),r.jsx(be,{path:"/editproperty/:id",element:r.jsx(Ms,{children:r.jsx(Dp,{})})}),r.jsx(be,{path:"/profile/:userId",element:r.jsx(ik,{})}),r.jsx(be,{path:"/AdminPLogin",element:r.jsx(ak,{})}),r.jsx(be,{path:"/AdminPLogin/dashboard",element:r.jsx(Bi,{children:r.jsx(lk,{})})}),r.jsx(be,{path:"/AdminPLogin/admininfo",element:r.jsx(Bi,{children:r.jsx(ck,{})})}),r.jsx(be,{path:"/admineditproperty/:id",element:r.jsx(Bi,{children:r.jsx(Dp,{})})})]})]});Qh(document.getElementById("root")).render(r.jsx(k.StrictMode,{children:r.jsx(Dj,{store:PN,children:r.jsx(dk,{})})}));
diff --git a/ef-ui/dist/index.html b/ef-ui/dist/index.html
index 1f5635f..87a2ceb 100644
--- a/ef-ui/dist/index.html
+++ b/ef-ui/dist/index.html
@@ -54,8 +54,8 @@
-
-
+
+
diff --git a/ef-ui/src/components/Dashboard.jsx b/ef-ui/src/components/Dashboard.jsx
index a15d38c..2858953 100644
--- a/ef-ui/src/components/Dashboard.jsx
+++ b/ef-ui/src/components/Dashboard.jsx
@@ -20,8 +20,8 @@ const Dashboard = () => {
switch (activeTab) {
case "Userdetails":
return ;
- case "FundToInvest":
- return ;
+ case "FundToInvest":
+ return ;
case "addProperty":
return ;
case "activeProperties":
@@ -32,22 +32,22 @@ const Dashboard = () => {
);
- case "Fundings Received":
- return (
-
-
Fundings Received
-
-
- );
+ case "Fundings Received":
+ return (
+
+
Fundings Received
+
+
+ );
+
+ case "Offers Submitted":
+ return (
+
+
Offers Submitted
+
+
+ );
- case "Offers Submitted":
- return (
-
-
Offers Submitted
-
-
- );
-
case "closedProperties":
return These are your closed properties.
;
default:
@@ -58,10 +58,13 @@ const Dashboard = () => {
return (
<>
-
+
{/* Left sidebar */}
-
+
{
}`}
onClick={() => setActiveTab("Userdetails")}
>
-
+ {/*
*/}
User Profile
-
@@ -109,7 +111,7 @@ const Dashboard = () => {
}`}
onClick={() => setActiveTab("addProperty")}
>
-
+ {/*
*/}
Add Property
@@ -128,7 +130,7 @@ const Dashboard = () => {
}`}
onClick={() => setActiveTab("Fundings Received")}
>
-
+ {/*
*/}
Fundings Received
@@ -138,19 +140,17 @@ const Dashboard = () => {
}`}
onClick={() => setActiveTab("Offers Submitted")}
>
-
+ {/*
*/}
Offers Submitted
-
-
@@ -158,10 +158,13 @@ const Dashboard = () => {
{/* Main content area */}
-
+
-
+
Welcome to{" "}
{
{user.result.middleName} {user.result.lastName}
-
- add
+ add
-
-
{activeTab === "dashboard" && (
<>
-
- Now you are accessing the world's only portal which has Streamlined the
- investor-borrower interactions,
-
-
-
- gaining complete visibility
- into your data, and using smart filters to
- create automatic
- workflows{" "}
-
-
-
-
+
+ Now you are accessing the world's only portal which has
+ Streamlined the
+
+ {" "}
+ investor-borrower interactions,{" "}
+
+
+
+ gaining complete visibility into your data, and using smart
+ filters to
+
+ create automatic workflows{" "}
+
+
+
+
+
>
)}
diff --git a/ef-ui/src/components/Home.jsx b/ef-ui/src/components/Home.jsx
index 0b598a8..bb4b9d3 100644
--- a/ef-ui/src/components/Home.jsx
+++ b/ef-ui/src/components/Home.jsx
@@ -118,8 +118,13 @@ const Home = () => {
-
Our Services
-
+ {/*
Our Services
*/}
+
your documents, always and immediately within reach
diff --git a/ef-ui/src/components/Login.jsx b/ef-ui/src/components/Login.jsx
index a67bcfa..8924fcb 100644
--- a/ef-ui/src/components/Login.jsx
+++ b/ef-ui/src/components/Login.jsx
@@ -40,8 +40,7 @@ const Login = () => {
-
-
+
{
};
return (
- {
zIndex: 1000,
}}
>
-
-
+
+ {/* Logo Section */}
{/*
*/}
{
-
-
- -
+ {/* Toggler Button for Small Screens */}
+
+
+
+
+ -
{
-
-
+
Services
@@ -78,7 +99,11 @@ const Navbar = () => {
-
-
+
About
@@ -96,13 +121,17 @@ const Navbar = () => {
-
-
+
Contact
-
+
{user?.result?._id ? (
<>
{
>
Login
-
>
)}
-
-
-
-
+
);
};
diff --git a/ef-ui/src/components/Register.jsx b/ef-ui/src/components/Register.jsx
index db037dc..747ca10 100644
--- a/ef-ui/src/components/Register.jsx
+++ b/ef-ui/src/components/Register.jsx
@@ -118,9 +118,7 @@ const Register = () => {
-
-
-
+
{
Registration
-
+
All fields are mandatory to enable "Sign up"
-
+
diff --git a/ef-ui/src/navbar.css b/ef-ui/src/navbar.css
index 0568109..2b0eadf 100644
--- a/ef-ui/src/navbar.css
+++ b/ef-ui/src/navbar.css
@@ -28,4 +28,38 @@
.carousel {
margin-top: 0;
}
+
+ /* Style the hamburger icon */
+.navbar-toggler-icon {
+ background-image: none; /* Remove the default icon */
+ display: block;
+ width: 10px; /* Adjust the size of the icon */
+ height: 10px;
+ position: relative;
+}
+
+.navbar-toggler-icon::before,
+.navbar-toggler-icon::after,
+.navbar-toggler-icon div {
+ content: '';
+ position: absolute;
+ width: 100%;
+ height: 2px; /* Thickness of the lines */
+ background-color: #fda417; /* Yellow color */
+ border-radius: 2px; /* Rounded edges */
+}
+
+.navbar-toggler-icon::before {
+ top: 0; /* Position the top line */
+}
+
+.navbar-toggler-icon div {
+ top: 50%; /* Position the middle line */
+ transform: translateY(-50%); /* Center the middle line */
+}
+
+.navbar-toggler-icon::after {
+ bottom: 0; /* Position the bottom line */
+}
+