diff --git a/ef-api/controllers/property.js b/ef-api/controllers/property.js index 740fce1..3988a1d 100644 --- a/ef-api/controllers/property.js +++ b/ef-api/controllers/property.js @@ -6,9 +6,19 @@ import mongoose from "mongoose"; export const createProperty = async (req, res) => { const propertyData = req.body; // console.log('Property received:', propertyData); + function generateRandomNumber() { + return Math.floor(Math.random() * 90000) + 10000; + } + const randomNumber = generateRandomNumber().toString(); + const propertyId = `EFPI${randomNumber}`; const newProperty = new PropertyModal({ ...propertyData, + creator: req.userId, + createdAt: new Date().toISOString(), + publishedAt: new Date().toISOString(), + currentYear: new Date().getFullYear(), + propertyId: propertyId, }); try { diff --git a/ef-api/models/property.js b/ef-api/models/property.js index c49317f..53689fc 100644 --- a/ef-api/models/property.js +++ b/ef-api/models/property.js @@ -5,6 +5,20 @@ const propertySchema = mongoose.Schema({ title: {type: String, required: true }, yearBuild: {type: String, required: true }, totalSqft: {type: String, required: true }, + creator: String, + propertyId: String, + createdAt: { + type: Date, + default: new Date(), + }, + publishedAt: { + type: Date, + default: new Date(), + }, + currentYear: { + type: Number, + default: new Date().getFullYear(), + }, }); diff --git a/ef-ui/dist/assets/index-CzD7WLXM.js b/ef-ui/dist/assets/index-DP5Z5_jo.js similarity index 98% rename from ef-ui/dist/assets/index-CzD7WLXM.js rename to ef-ui/dist/assets/index-DP5Z5_jo.js index 43cac97..cba3c3b 100644 --- a/ef-ui/dist/assets/index-CzD7WLXM.js +++ b/ef-ui/dist/assets/index-DP5Z5_jo.js @@ -77,4 +77,4 @@ Error generating stack: `+l.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function ql(){return ql=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[i]=e[i]);return n}function sx(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function ox(e,t){return e.button===0&&(!t||t==="_self")&&!sx(e)}const ax=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],ux=["aria-current","caseSensitive","className","end","style","to","unstable_viewTransition","children"],cx="6";try{window.__reactRouterVersion=cx}catch{}const dx=_.createContext({isTransitioning:!1}),fx="startTransition",dd=co[fx];function mx(e){let{basename:t,children:n,future:r,window:i}=e,l=_.useRef();l.current==null&&(l.current=x1({window:i,v5Compat:!0}));let s=l.current,[a,u]=_.useState({action:s.action,location:s.location}),{v7_startTransition:c}=r||{},d=_.useCallback(f=>{c&&dd?dd(()=>u(f)):u(f)},[u,c]);return _.useLayoutEffect(()=>s.listen(d),[s,d]),_.createElement(ix,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:s,future:r})}const px=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",hx=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,yx=_.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:l,replace:s,state:a,target:u,to:c,preventScrollReset:d,unstable_viewTransition:f}=t,y=Tp(t,ax),{basename:w}=_.useContext(an),v,g=!1;if(typeof c=="string"&&hx.test(c)&&(v=c,px))try{let p=new URL(window.location.href),x=c.startsWith("//")?new URL(p.protocol+c):new URL(c),S=cr(x.pathname,w);x.origin===p.origin&&S!=null?c=S+x.search+x.hash:g=!0}catch{}let N=H1(c,{relative:i}),h=gx(c,{replace:s,state:a,target:u,preventScrollReset:d,relative:i,unstable_viewTransition:f});function m(p){r&&r(p),p.defaultPrevented||h(p)}return _.createElement("a",ql({},y,{href:v||N,onClick:g||l?r:m,ref:n,target:u}))}),Le=_.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:i=!1,className:l="",end:s=!1,style:a,to:u,unstable_viewTransition:c,children:d}=t,f=Tp(t,ux),y=js(u,{relative:f.relative}),w=ki(),v=_.useContext(Sp),{navigator:g,basename:N}=_.useContext(an),h=v!=null&&xx(y)&&c===!0,m=g.encodeLocation?g.encodeLocation(y).pathname:y.pathname,p=w.pathname,x=v&&v.navigation&&v.navigation.location?v.navigation.location.pathname:null;i||(p=p.toLowerCase(),x=x?x.toLowerCase():null,m=m.toLowerCase()),x&&N&&(x=cr(x,N)||x);const S=m!=="/"&&m.endsWith("/")?m.length-1:m.length;let C=p===m||!s&&p.startsWith(m)&&p.charAt(S)==="/",P=x!=null&&(x===m||!s&&x.startsWith(m)&&x.charAt(m.length)==="/"),k={isActive:C,isPending:P,isTransitioning:h},b=C?r:void 0,L;typeof l=="function"?L=l(k):L=[l,C?"active":null,P?"pending":null,h?"transitioning":null].filter(Boolean).join(" ");let H=typeof a=="function"?a(k):a;return _.createElement(yx,ql({},f,{"aria-current":b,className:L,ref:n,style:H,to:u,unstable_viewTransition:c}),typeof d=="function"?d(k):d)});var xa;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(xa||(xa={}));var fd;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(fd||(fd={}));function vx(e){let t=_.useContext(ws);return t||J(!1),t}function gx(e,t){let{target:n,replace:r,state:i,preventScrollReset:l,relative:s,unstable_viewTransition:a}=t===void 0?{}:t,u=_i(),c=ki(),d=js(e,{relative:s});return _.useCallback(f=>{if(ox(f,n)){f.preventDefault();let y=r!==void 0?r:Hl(c)===Hl(d);u(e,{replace:y,state:i,preventScrollReset:l,relative:s,unstable_viewTransition:a})}},[c,u,d,r,i,n,e,l,s,a])}function xx(e,t){t===void 0&&(t={});let n=_.useContext(dx);n==null&&J(!1);let{basename:r}=vx(xa.useViewTransitionState),i=js(e,{relative:t.relative});if(!n.isTransitioning)return!1;let l=cr(n.currentLocation.pathname,r)||n.currentLocation.pathname,s=cr(n.nextLocation.pathname,r)||n.nextLocation.pathname;return Vl(i.pathname,s)!=null||Vl(i.pathname,l)!=null}function Rp(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;ttypeof e=="number"&&!isNaN(e),Nn=e=>typeof e=="string",ze=e=>typeof e=="function",dl=e=>Nn(e)||ze(e)?e:null,wa=e=>_.isValidElement(e)||Nn(e)||ze(e)||fi(e);function wx(e,t,n){n===void 0&&(n=300);const{scrollHeight:r,style:i}=e;requestAnimationFrame(()=>{i.minHeight="initial",i.height=r+"px",i.transition=`all ${n}ms`,requestAnimationFrame(()=>{i.height="0",i.padding="0",i.margin="0",setTimeout(t,n)})})}function Es(e){let{enter:t,exit:n,appendPosition:r=!1,collapse:i=!0,collapseDuration:l=300}=e;return function(s){let{children:a,position:u,preventExitTransition:c,done:d,nodeRef:f,isIn:y,playToast:w}=s;const v=r?`${t}--${u}`:t,g=r?`${n}--${u}`:n,N=_.useRef(0);return _.useLayoutEffect(()=>{const h=f.current,m=v.split(" "),p=x=>{x.target===f.current&&(w(),h.removeEventListener("animationend",p),h.removeEventListener("animationcancel",p),N.current===0&&x.type!=="animationcancel"&&h.classList.remove(...m))};h.classList.add(...m),h.addEventListener("animationend",p),h.addEventListener("animationcancel",p)},[]),_.useEffect(()=>{const h=f.current,m=()=>{h.removeEventListener("animationend",m),i?wx(h,d,l):d()};y||(c?m():(N.current=1,h.className+=` ${g}`,h.addEventListener("animationend",m)))},[y]),j.createElement(j.Fragment,null,a)}}function md(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 ge=new Map;let mi=[];const Na=new Set,Nx=e=>Na.forEach(t=>t(e)),bp=()=>ge.size>0;function Lp(e,t){var n;if(t)return!((n=ge.get(t))==null||!n.isToastActive(e));let r=!1;return ge.forEach(i=>{i.isToastActive(e)&&(r=!0)}),r}function Mp(e,t){wa(e)&&(bp()||mi.push({content:e,options:t}),ge.forEach(n=>{n.buildToast(e,t)}))}function pd(e,t){ge.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 jx(e){const{subscribe:t,getSnapshot:n,setProps:r}=_.useRef(function(l){const s=l.containerId||1;return{subscribe(a){const u=function(d,f,y){let w=1,v=0,g=[],N=[],h=[],m=f;const p=new Map,x=new Set,S=()=>{h=Array.from(p.values()),x.forEach(k=>k())},C=k=>{N=k==null?[]:N.filter(b=>b!==k),S()},P=k=>{const{toastId:b,onOpen:L,updateId:H,children:je}=k.props,Ve=H==null;k.staleId&&p.delete(k.staleId),p.set(b,k),N=[...N,k.props.toastId].filter(Ze=>Ze!==k.staleId),S(),y(md(k,Ve?"added":"updated")),Ve&&ze(L)&&L(_.isValidElement(je)&&je.props)};return{id:d,props:m,observe:k=>(x.add(k),()=>x.delete(k)),toggle:(k,b)=>{p.forEach(L=>{b!=null&&b!==L.props.toastId||ze(L.toggle)&&L.toggle(k)})},removeToast:C,toasts:p,clearQueue:()=>{v-=g.length,g=[]},buildToast:(k,b)=>{if((U=>{let{containerId:oe,toastId:ne,updateId:Ee}=U;const ye=oe?oe!==d:d!==1,dt=p.has(ne)&&Ee==null;return ye||dt})(b))return;const{toastId:L,updateId:H,data:je,staleId:Ve,delay:Ze}=b,Rt=()=>{C(L)},bt=H==null;bt&&v++;const be={...m,style:m.toastStyle,key:w++,...Object.fromEntries(Object.entries(b).filter(U=>{let[oe,ne]=U;return ne!=null})),toastId:L,updateId:H,data:je,closeToast:Rt,isIn:!1,className:dl(b.className||m.toastClassName),bodyClassName:dl(b.bodyClassName||m.bodyClassName),progressClassName:dl(b.progressClassName||m.progressClassName),autoClose:!b.isLoading&&(T=b.autoClose,M=m.autoClose,T===!1||fi(T)&&T>0?T:M),deleteToast(){const U=p.get(L),{onClose:oe,children:ne}=U.props;ze(oe)&&oe(_.isValidElement(ne)&&ne.props),y(md(U,"removed")),p.delete(L),v--,v<0&&(v=0),g.length>0?P(g.shift()):S()}};var T,M;be.closeButton=m.closeButton,b.closeButton===!1||wa(b.closeButton)?be.closeButton=b.closeButton:b.closeButton===!0&&(be.closeButton=!wa(m.closeButton)||m.closeButton);let F=k;_.isValidElement(k)&&!Nn(k.type)?F=_.cloneElement(k,{closeToast:Rt,toastProps:be,data:je}):ze(k)&&(F=k({closeToast:Rt,toastProps:be,data:je}));const B={content:F,props:be,staleId:Ve};m.limit&&m.limit>0&&v>m.limit&&bt?g.push(B):fi(Ze)?setTimeout(()=>{P(B)},Ze):P(B)},setProps(k){m=k},setToggle:(k,b)=>{p.get(k).toggle=b},isToastActive:k=>N.some(b=>b===k),getSnapshot:()=>m.newestOnTop?h.reverse():h}}(s,l,Nx);ge.set(s,u);const c=u.observe(a);return mi.forEach(d=>Mp(d.content,d.options)),mi=[],()=>{c(),ge.delete(s)}},setProps(a){var u;(u=ge.get(s))==null||u.setProps(a)},getSnapshot(){var a;return(a=ge.get(s))==null?void 0:a.getSnapshot()}}}(e)).current;r(e);const i=_.useSyncExternalStore(t,n,n);return{getToastToRender:function(l){if(!i)return[];const s=new Map;return i.forEach(a=>{const{position:u}=a.props;s.has(u)||s.set(u,[]),s.get(u).push(a)}),Array.from(s,a=>l(a[0],a[1]))},isToastActive:Lp,count:i==null?void 0:i.length}}function Ex(e){const[t,n]=_.useState(!1),[r,i]=_.useState(!1),l=_.useRef(null),s=_.useRef({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:a,pauseOnHover:u,closeToast:c,onClick:d,closeOnClick:f}=e;var y,w;function v(){n(!0)}function g(){n(!1)}function N(p){const x=l.current;s.canDrag&&x&&(s.didMove=!0,t&&g(),s.delta=e.draggableDirection==="x"?p.clientX-s.start:p.clientY-s.start,s.start!==p.clientX&&(s.canCloseOnClick=!1),x.style.transform=`translate3d(${e.draggableDirection==="x"?`${s.delta}px, var(--y)`:`0, calc(${s.delta}px + var(--y))`},0)`,x.style.opacity=""+(1-Math.abs(s.delta/s.removalDistance)))}function h(){document.removeEventListener("pointermove",N),document.removeEventListener("pointerup",h);const p=l.current;if(s.canDrag&&s.didMove&&p){if(s.canDrag=!1,Math.abs(s.delta)>s.removalDistance)return i(!0),e.closeToast(),void e.collapseAll();p.style.transition="transform 0.2s, opacity 0.2s",p.style.removeProperty("transform"),p.style.removeProperty("opacity")}}(w=ge.get((y={id:e.toastId,containerId:e.containerId,fn:n}).containerId||1))==null||w.setToggle(y.id,y.fn),_.useEffect(()=>{if(e.pauseOnFocusLoss)return document.hasFocus()||g(),window.addEventListener("focus",v),window.addEventListener("blur",g),()=>{window.removeEventListener("focus",v),window.removeEventListener("blur",g)}},[e.pauseOnFocusLoss]);const m={onPointerDown:function(p){if(e.draggable===!0||e.draggable===p.pointerType){s.didMove=!1,document.addEventListener("pointermove",N),document.addEventListener("pointerup",h);const x=l.current;s.canCloseOnClick=!0,s.canDrag=!0,x.style.transition="none",e.draggableDirection==="x"?(s.start=p.clientX,s.removalDistance=x.offsetWidth*(e.draggablePercent/100)):(s.start=p.clientY,s.removalDistance=x.offsetHeight*(e.draggablePercent===80?1.5*e.draggablePercent:e.draggablePercent)/100)}},onPointerUp:function(p){const{top:x,bottom:S,left:C,right:P}=l.current.getBoundingClientRect();p.nativeEvent.type!=="touchend"&&e.pauseOnHover&&p.clientX>=C&&p.clientX<=P&&p.clientY>=x&&p.clientY<=S?g():v()}};return a&&u&&(m.onMouseEnter=g,e.stacked||(m.onMouseLeave=v)),f&&(m.onClick=p=>{d&&d(p),s.canCloseOnClick&&c()}),{playToast:v,pauseToast:g,isRunning:t,preventExitTransition:r,toastRef:l,eventHandlers:m}}function Sx(e){let{delay:t,isRunning:n,closeToast:r,type:i="default",hide:l,className:s,style:a,controlledProgress:u,progress:c,rtl:d,isIn:f,theme:y}=e;const w=l||u&&c===0,v={...a,animationDuration:`${t}ms`,animationPlayState:n?"running":"paused"};u&&(v.transform=`scaleX(${c})`);const g=Vt("Toastify__progress-bar",u?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${y}`,`Toastify__progress-bar--${i}`,{"Toastify__progress-bar--rtl":d}),N=ze(s)?s({rtl:d,type:i,defaultClassName:g}):Vt(g,s),h={[u&&c>=1?"onTransitionEnd":"onAnimationEnd"]:u&&c<1?null:()=>{f&&r()}};return j.createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":w},j.createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${y} Toastify__progress-bar--${i}`}),j.createElement("div",{role:"progressbar","aria-hidden":w?"true":"false","aria-label":"notification timer",className:N,style:v,...h}))}let kx=1;const Fp=()=>""+kx++;function _x(e){return e&&(Nn(e.toastId)||fi(e.toastId))?e.toastId:Fp()}function Wr(e,t){return Mp(e,t),t.toastId}function Kl(e,t){return{...t,type:t&&t.type||e,toastId:_x(t)}}function Vi(e){return(t,n)=>Wr(t,Kl(e,n))}function z(e,t){return Wr(e,Kl("default",t))}z.loading=(e,t)=>Wr(e,Kl("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),z.promise=function(e,t,n){let r,{pending:i,error:l,success:s}=t;i&&(r=Nn(i)?z.loading(i,n):z.loading(i.render,{...n,...i}));const a={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},u=(d,f,y)=>{if(f==null)return void z.dismiss(r);const w={type:d,...a,...n,data:y},v=Nn(f)?{render:f}:f;return r?z.update(r,{...w,...v}):z(v.render,{...w,...v}),y},c=ze(e)?e():e;return c.then(d=>u("success",s,d)).catch(d=>u("error",l,d)),c},z.success=Vi("success"),z.info=Vi("info"),z.error=Vi("error"),z.warning=Vi("warning"),z.warn=z.warning,z.dark=(e,t)=>Wr(e,Kl("default",{theme:"dark",...t})),z.dismiss=function(e){(function(t){var n;if(bp()){if(t==null||Nn(n=t)||fi(n))ge.forEach(r=>{r.removeToast(t)});else if(t&&("containerId"in t||"id"in t)){const r=ge.get(t.containerId);r?r.removeToast(t.id):ge.forEach(i=>{i.removeToast(t.id)})}}else mi=mi.filter(r=>t!=null&&r.options.toastId!==t)})(e)},z.clearWaitingQueue=function(e){e===void 0&&(e={}),ge.forEach(t=>{!t.props.limit||e.containerId&&t.id!==e.containerId||t.clearQueue()})},z.isActive=Lp,z.update=function(e,t){t===void 0&&(t={});const n=((r,i)=>{var l;let{containerId:s}=i;return(l=ge.get(s||1))==null?void 0:l.toasts.get(r)})(e,t);if(n){const{props:r,content:i}=n,l={delay:100,...r,...t,toastId:t.toastId||e,updateId:Fp()};l.toastId!==e&&(l.staleId=e);const s=l.render||i;delete l.render,Wr(s,l)}},z.done=e=>{z.update(e,{progress:1})},z.onChange=function(e){return Na.add(e),()=>{Na.delete(e)}},z.play=e=>pd(!0,e),z.pause=e=>pd(!1,e);const Cx=typeof window<"u"?_.useLayoutEffect:_.useEffect,Qi=e=>{let{theme:t,type:n,isLoading:r,...i}=e;return j.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:t==="colored"?"currentColor":`var(--toastify-icon-color-${n})`,...i})},uo={info:function(e){return j.createElement(Qi,{...e},j.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 j.createElement(Qi,{...e},j.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 j.createElement(Qi,{...e},j.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 j.createElement(Qi,{...e},j.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 j.createElement("div",{className:"Toastify__spinner"})}},Px=e=>{const{isRunning:t,preventExitTransition:n,toastRef:r,eventHandlers:i,playToast:l}=Ex(e),{closeButton:s,children:a,autoClose:u,onClick:c,type:d,hideProgressBar:f,closeToast:y,transition:w,position:v,className:g,style:N,bodyClassName:h,bodyStyle:m,progressClassName:p,progressStyle:x,updateId:S,role:C,progress:P,rtl:k,toastId:b,deleteToast:L,isIn:H,isLoading:je,closeOnClick:Ve,theme:Ze}=e,Rt=Vt("Toastify__toast",`Toastify__toast-theme--${Ze}`,`Toastify__toast--${d}`,{"Toastify__toast--rtl":k},{"Toastify__toast--close-on-click":Ve}),bt=ze(g)?g({rtl:k,position:v,type:d,defaultClassName:Rt}):Vt(Rt,g),be=function(B){let{theme:U,type:oe,isLoading:ne,icon:Ee}=B,ye=null;const dt={theme:U,type:oe};return Ee===!1||(ze(Ee)?ye=Ee({...dt,isLoading:ne}):_.isValidElement(Ee)?ye=_.cloneElement(Ee,dt):ne?ye=uo.spinner():(Up=>Up in uo)(oe)&&(ye=uo[oe](dt))),ye}(e),T=!!P||!u,M={closeToast:y,type:d,theme:Ze};let F=null;return s===!1||(F=ze(s)?s(M):_.isValidElement(s)?_.cloneElement(s,M):function(B){let{closeToast:U,theme:oe,ariaLabel:ne="close"}=B;return j.createElement("button",{className:`Toastify__close-button Toastify__close-button--${oe}`,type:"button",onClick:Ee=>{Ee.stopPropagation(),U(Ee)},"aria-label":ne},j.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},j.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"})))}(M)),j.createElement(w,{isIn:H,done:L,position:v,preventExitTransition:n,nodeRef:r,playToast:l},j.createElement("div",{id:b,onClick:c,"data-in":H,className:bt,...i,style:N,ref:r},j.createElement("div",{...H&&{role:C},className:ze(h)?h({type:d}):Vt("Toastify__toast-body",h),style:m},be!=null&&j.createElement("div",{className:Vt("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!je})},be),j.createElement("div",null,a)),F,j.createElement(Sx,{...S&&!T?{key:`pb-${S}`}:{},rtl:k,theme:Ze,delay:u,isRunning:t,isIn:H,closeToast:y,hide:f,type:d,style:x,className:p,controlledProgress:T,progress:P||0})))},Ss=function(e,t){return t===void 0&&(t=!1),{enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:t}},Ox=Es(Ss("bounce",!0));Es(Ss("slide",!0));Es(Ss("zoom"));Es(Ss("flip"));const Tx={position:"top-right",transition:Ox,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};function Rx(e){let t={...Tx,...e};const n=e.stacked,[r,i]=_.useState(!0),l=_.useRef(null),{getToastToRender:s,isToastActive:a,count:u}=jx(t),{className:c,style:d,rtl:f,containerId:y}=t;function w(g){const N=Vt("Toastify__toast-container",`Toastify__toast-container--${g}`,{"Toastify__toast-container--rtl":f});return ze(c)?c({position:g,rtl:f,defaultClassName:N}):Vt(N,dl(c))}function v(){n&&(i(!0),z.play())}return Cx(()=>{if(n){var g;const N=l.current.querySelectorAll('[data-in="true"]'),h=12,m=(g=t.position)==null?void 0:g.includes("top");let p=0,x=0;Array.from(N).reverse().forEach((S,C)=>{const P=S;P.classList.add("Toastify__toast--stacked"),C>0&&(P.dataset.collapsed=`${r}`),P.dataset.pos||(P.dataset.pos=m?"top":"bot");const k=p*(r?.2:1)+(r?0:h*C);P.style.setProperty("--y",`${m?k:-1*k}px`),P.style.setProperty("--g",`${h}`),P.style.setProperty("--s",""+(1-(r?x:0))),p+=P.offsetHeight,x+=.025})}},[r,u,n]),j.createElement("div",{ref:l,className:"Toastify",id:y,onMouseEnter:()=>{n&&(i(!1),z.pause())},onMouseLeave:v},s((g,N)=>{const h=N.length?{...d}:{...d,pointerEvents:"none"};return j.createElement("div",{className:w(g),style:h,key:`container-${g}`},N.map(m=>{let{content:p,props:x}=m;return j.createElement(Px,{...x,stacked:n,collapseAll:v,isIn:a(x.toastId,x.containerId),style:x.style,key:`toast-${x.key}`},p)}))}))}const gt=()=>{const e=new Date().getFullYear();return o.jsx(o.Fragment,{children:o.jsxs("div",{children:[o.jsx("div",{className:"footer_section layout_padding",children:o.jsxs("div",{className:"container",children:[o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-md-12"})}),o.jsx("div",{className:"footer_section_2",children:o.jsxs("div",{className:"row",children:[o.jsxs("div",{className:"col-md-4",children:[o.jsx("h2",{className:"useful_text",children:"QUICK LINKS"}),o.jsx("div",{className:"footer_menu",children:o.jsxs("ul",{children:[o.jsx("li",{children:o.jsx("a",{href:"index.html",children:"Home"})}),o.jsx("li",{children:o.jsx("a",{href:"about.html",children:"About"})}),o.jsx("li",{children:o.jsx("a",{href:"services.html",children:"Services"})}),o.jsx("li",{children:o.jsx("a",{href:"projects.html",children:"Projects"})}),o.jsx("li",{children:o.jsx("a",{href:"contact.html",children:"Contact Us"})})]})})]}),o.jsxs("div",{className:"col-md-4",children:[o.jsx("h2",{className:"useful_text",children:"Work Portfolio"}),o.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"})]}),o.jsxs("div",{className:"col-md-4",children:[o.jsx("h2",{className:"useful_text",children:"SIGN UP TO OUR NEWSLETTER"}),o.jsxs("div",{className:"form-group",children:[o.jsx("textarea",{className:"update_mail",placeholder:"Enter Your Email",rows:5,id:"comment",name:"Enter Your Email",defaultValue:""}),o.jsx("div",{className:"subscribe_bt",children:o.jsx("a",{href:"#",children:"Subscribe"})})]})]})]})}),o.jsx("div",{className:"social_icon",children:o.jsxs("ul",{children:[o.jsx("li",{children:o.jsx("a",{href:"#",children:o.jsx("i",{className:"fa fa-facebook","aria-hidden":"true"})})}),o.jsx("li",{children:o.jsx("a",{href:"#",children:o.jsx("i",{className:"fa fa-twitter","aria-hidden":"true"})})}),o.jsx("li",{children:o.jsx("a",{href:"#",children:o.jsx("i",{className:"fa fa-linkedin","aria-hidden":"true"})})}),o.jsx("li",{children:o.jsx("a",{href:"#",children:o.jsx("i",{className:"fa fa-instagram","aria-hidden":"true"})})})]})})]})}),o.jsx("div",{className:"copyright_section",children:o.jsx("div",{className:"container",children:o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-sm-12",children:o.jsxs("p",{className:"copyright_text",children:[e," All Rights Reserved."]})})})})})]})})},bx="/assets/logo-Cb1x1exd.png",ct=()=>{var i,l;const{user:e}=pr(s=>({...s.auth})),t=wi(),n=_i(),r=()=>{t(f1()),n("/")};return o.jsx(o.Fragment,{children:o.jsx("div",{className:"navbar navbar-expand-lg w-100",style:{backgroundColor:"#000000",position:"fixed",top:0,left:0,right:0,zIndex:1e3},children:o.jsxs("div",{className:"container-fluid d-flex align-items-center justify-content-between",children:[o.jsxs("div",{className:"d-flex align-items-center",children:[o.jsx("img",{src:bx,alt:"logo",width:"75",height:"75",className:"img-fluid"}),o.jsx("p",{style:{display:"inline-block",fontStyle:"italic",fontSize:"14px",color:"white",margin:"0 0 0 10px"}})]}),o.jsxs("div",{className:"collapse navbar-collapse",id:"navbarSupportedContent",children:[o.jsxs("ul",{className:"navbar-nav ml-auto",children:[o.jsx("li",{className:"nav-item active",children:o.jsx(Le,{to:"/",className:"nav-link",children:"Home"})}),o.jsx("li",{className:"nav-item",children:o.jsx(Le,{to:"/services",className:"nav-link",children:"Services"})}),o.jsx("li",{className:"nav-item",children:o.jsx(Le,{to:"/about",className:"nav-link",children:"About"})}),o.jsx("li",{className:"nav-item",children:o.jsx(Le,{to:"/projects",className:"nav-link",children:"Project"})}),o.jsx("li",{className:"nav-item",children:o.jsx(Le,{to:"/contact",className:"nav-link",children:"Contact"})})]}),(i=e==null?void 0:e.result)!=null&&i._id?o.jsx(Le,{to:"/dashboard",children:"Dashboard"}):o.jsx(Le,{to:"/register",className:"nav-link",children:"Register"}),(l=e==null?void 0:e.result)!=null&&l._id?o.jsx(Le,{to:"/login",children:o.jsx("p",{className:"header-text",onClick:r,children:"Logout"})}):o.jsx(Le,{to:"/login",className:"nav-link",children:"Login"})]})]})})})},Lx=()=>o.jsxs(o.Fragment,{children:[o.jsx(ct,{}),o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{}),o.jsxs("div",{children:[o.jsx("div",{className:"header_section",children:o.jsx("div",{className:"banner_section layout_padding",children:o.jsxs("div",{id:"my_slider",className:"carousel slide","data-ride":"carousel",children:[o.jsxs("div",{className:"carousel-inner",children:[o.jsx("div",{className:"carousel-item active",children:o.jsx("div",{className:"container",children:o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-sm-12",children:o.jsxs("div",{className:"banner_taital_main",children:[o.jsx("h1",{className:"banner_taital",children:"Reinventing real estate investment"}),o.jsxs("p",{className:"banner_text",children:["Owners/operators, and real estate investment firms to excel in what they do best: finding new opportunities"," "]}),o.jsxs("div",{className:"btn_main",children:[o.jsx("div",{className:"started_text active",children:o.jsx("a",{href:"#",children:"Contact US"})}),o.jsx("div",{className:"started_text",children:o.jsx("a",{href:"#",children:"About Us"})})]})]})})})})}),o.jsx("div",{className:"carousel-item",children:o.jsx("div",{className:"container",children:o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-sm-12",children:o.jsxs("div",{className:"banner_taital_main",children:[o.jsx("h1",{className:"banner_taital",children:"streamline investment management"}),o.jsxs("p",{className:"banner_text",children:["Best possible experience to our customers and their investors."," "]}),o.jsxs("div",{className:"btn_main",children:[o.jsx("div",{className:"started_text active",children:o.jsx("a",{href:"#",children:"Contact US"})}),o.jsx("div",{className:"started_text",children:o.jsx("a",{href:"#",children:"About Us"})})]})]})})})})}),o.jsx("div",{className:"carousel-item",children:o.jsx("div",{className:"container",children:o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-sm-12",children:o.jsxs("div",{className:"banner_taital_main",children:[o.jsx("h1",{className:"banner_taital",children:"Increase your efficiency and security"}),o.jsxs("p",{className:"banner_text",children:["All-in-one real estate investment management platform with 100% security tools"," "]}),o.jsxs("div",{className:"btn_main",children:[o.jsx("div",{className:"started_text active",children:o.jsx("a",{href:"#",children:"Contact US"})}),o.jsx("div",{className:"started_text",children:o.jsx("a",{href:"#",children:"About Us"})})]})]})})})})})]}),o.jsx("a",{className:"carousel-control-prev",href:"#my_slider",role:"button","data-slide":"prev",children:o.jsx("i",{className:"fa fa-angle-left"})}),o.jsx("a",{className:"carousel-control-next",href:"#my_slider",role:"button","data-slide":"next",children:o.jsx("i",{className:"fa fa-angle-right"})})]})})}),o.jsx("div",{className:"services_section layout_padding",children:o.jsxs("div",{className:"container-fluid",children:[o.jsx("div",{className:"row",children:o.jsxs("div",{className:"col-sm-12",children:[o.jsx("h1",{className:"services_taital",children:"Our Services"}),o.jsx("p",{className:"services_text_1",children:"your documents, always and immediately within reach"})]})}),o.jsx("div",{className:"services_section_2",children:o.jsxs("div",{className:"row",children:[o.jsx("div",{className:"col-lg-3 col-sm-6",children:o.jsxs("div",{className:"box_main active",children:[o.jsx("div",{className:"service_img",children:o.jsx("img",{src:"images/icon-1.png"})}),o.jsx("h4",{className:"development_text",children:"Dedication Services"}),o.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"}),o.jsx("div",{className:"readmore_bt",children:o.jsx("a",{href:"#",children:"Read More"})})]})}),o.jsx("div",{className:"col-lg-3 col-sm-6",children:o.jsxs("div",{className:"box_main",children:[o.jsx("div",{className:"service_img",children:o.jsx("img",{src:"images/icon-2.png"})}),o.jsx("h4",{className:"development_text",children:"Building work Reports"}),o.jsx("p",{className:"services_text",children:"Deliver all the reports your investors need. Eliminate manual work and human errors with automatic distribution and allocation"}),o.jsx("div",{className:"readmore_bt",children:o.jsx("a",{href:"#",children:"Read More"})})]})}),o.jsx("div",{className:"col-lg-3 col-sm-6",children:o.jsxs("div",{className:"box_main",children:[o.jsx("div",{className:"service_img",children:o.jsx("img",{src:"images/icon-3.png"})}),o.jsx("h4",{className:"development_text",children:"Reporting continuously"}),o.jsx("p",{className:"services_text",children:"Streamlining investor interactions, gaining complete visibility into your data, and using smart filters to create automatic workflows"}),o.jsx("div",{className:"readmore_bt",children:o.jsx("a",{href:"#",children:"Read More"})})]})}),o.jsx("div",{className:"col-lg-3 col-sm-6",children:o.jsxs("div",{className:"box_main",children:[o.jsx("div",{className:"service_img",children:o.jsx("img",{src:"images/icon-4.png"})}),o.jsx("h4",{className:"development_text",children:"Manage your investment "}),o.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"}),o.jsx("div",{className:"readmore_bt",children:o.jsx("a",{href:"#",children:"Read More"})})]})})]})})]})}),o.jsxs("div",{className:"projects_section layout_padding",children:[o.jsx("div",{className:"container",children:o.jsx("div",{className:"row",children:o.jsxs("div",{className:"col-md-12",children:[o.jsx("h1",{className:"projects_taital",children:"Projects"}),o.jsx("div",{className:"nav-tabs-navigation",children:o.jsx("div",{className:"nav-tabs-wrapper",children:o.jsxs("ul",{className:"nav ","data-tabs":"tabs",children:[o.jsx("li",{className:"nav-item",children:o.jsx("a",{className:"nav-link active",href:"#","data-toggle":"tab",children:"Category filter"})}),o.jsx("li",{className:"nav-item",children:o.jsx("a",{className:"nav-link ",href:"#","data-toggle":"tab",children:"All"})}),o.jsx("li",{className:"nav-item",children:o.jsx("a",{className:"nav-link ",href:"#","data-toggle":"tab",children:"Paintingl"})}),o.jsx("li",{className:"nav-item",children:o.jsx("a",{className:"nav-link ",href:"#","data-toggle":"tab",children:"Reconstructionl"})}),o.jsx("li",{className:"nav-item",children:o.jsx("a",{className:"nav-link ",href:"#","data-toggle":"tab",children:"Repairsl"})}),o.jsx("li",{className:"nav-item",children:o.jsx("a",{className:"nav-link ",href:"#","data-toggle":"tab",children:"Residentall"})})]})})})]})})}),o.jsx("div",{className:"projects_section_2 layout_padding",children:o.jsx("div",{className:"container",children:o.jsx("div",{className:"pets_section",children:o.jsx("div",{className:"pets_section_2",children:o.jsx("div",{id:"main_slider",className:"carousel slide","data-ride":"carousel",children:o.jsxs("div",{className:"carousel-inner",children:[o.jsx("div",{className:"carousel-item active",children:o.jsxs("div",{className:"row",children:[o.jsxs("div",{className:"col-md-4",children:[o.jsxs("div",{className:"container_main",children:[o.jsx("img",{src:"images/img-1.png",alt:!0,className:"image"}),o.jsx("div",{className:"overlay",children:o.jsx("div",{className:"text",children:o.jsx("h4",{className:"some_text",children:o.jsx("i",{className:"fa fa-link","aria-hidden":"true"})})})})]}),o.jsxs("div",{className:"project_main",children:[o.jsx("h2",{className:"work_text",children:"Home Work"}),o.jsx("p",{className:"dummy_text",children:"alteration in some form, by injected humour, or randomised words which don't look even slightly believable. If you are going to use"})]})]}),o.jsxs("div",{className:"col-md-4",children:[o.jsxs("div",{className:"container_main",children:[o.jsx("img",{src:"images/img-2.png",alt:!0,className:"image"}),o.jsx("div",{className:"overlay",children:o.jsx("div",{className:"text",children:o.jsx("h4",{className:"some_text",children:o.jsx("i",{className:"fa fa-link","aria-hidden":"true"})})})})]}),o.jsxs("div",{className:"project_main",children:[o.jsx("h2",{className:"work_text",children:"Home Work"}),o.jsx("p",{className:"dummy_text",children:"alteration in some form, by injected humour, or randomised words which don't look even slightly believable. If you are going to use"})]})]}),o.jsxs("div",{className:"col-md-4",children:[o.jsxs("div",{className:"container_main",children:[o.jsx("img",{src:"images/img-3.png",alt:!0,className:"image"}),o.jsx("div",{className:"overlay",children:o.jsx("div",{className:"text",children:o.jsx("h4",{className:"some_text",children:o.jsx("i",{className:"fa fa-link","aria-hidden":"true"})})})})]}),o.jsxs("div",{className:"project_main",children:[o.jsx("h2",{className:"work_text",children:"Home Work"}),o.jsx("p",{className:"dummy_text",children:"alteration in some form, by injected humour, or randomised words which don't look even slightly believable. If you are going to use"})]})]})]})}),o.jsx("div",{className:"carousel-item",children:o.jsxs("div",{className:"row",children:[o.jsxs("div",{className:"col-md-4",children:[o.jsxs("div",{className:"container_main",children:[o.jsx("img",{src:"images/img-1.png",alt:!0,className:"image"}),o.jsx("div",{className:"overlay",children:o.jsx("div",{className:"text",children:o.jsx("h4",{className:"some_text",children:o.jsx("i",{className:"fa fa-link","aria-hidden":"true"})})})})]}),o.jsxs("div",{className:"project_main",children:[o.jsx("h2",{className:"work_text",children:"Home Work"}),o.jsx("p",{className:"dummy_text",children:"alteration in some form, by injected humour, or randomised words which don't look even slightly believable. If you are going to use"})]})]}),o.jsxs("div",{className:"col-md-4",children:[o.jsxs("div",{className:"container_main",children:[o.jsx("img",{src:"images/img-2.png",alt:!0,className:"image"}),o.jsx("div",{className:"overlay",children:o.jsx("div",{className:"text",children:o.jsx("h4",{className:"some_text",children:o.jsx("i",{className:"fa fa-link","aria-hidden":"true"})})})})]}),o.jsxs("div",{className:"project_main",children:[o.jsx("h2",{className:"work_text",children:"Home Work"}),o.jsx("p",{className:"dummy_text",children:"alteration in some form, by injected humour, or randomised words which don't look even slightly believable. If you are going to use"})]})]}),o.jsxs("div",{className:"col-md-4",children:[o.jsxs("div",{className:"container_main",children:[o.jsx("img",{src:"images/img-3.png",alt:!0,className:"image"}),o.jsx("div",{className:"overlay",children:o.jsx("div",{className:"text",children:o.jsx("h4",{className:"some_text",children:o.jsx("i",{className:"fa fa-link","aria-hidden":"true"})})})})]}),o.jsxs("div",{className:"project_main",children:[o.jsx("h2",{className:"work_text",children:"Home Work"}),o.jsx("p",{className:"dummy_text",children:"alteration in some form, by injected humour, or randomised words which don't look even slightly believable. If you are going to use"})]})]})]})}),o.jsx("div",{className:"carousel-item",children:o.jsxs("div",{className:"row",children:[o.jsxs("div",{className:"col-md-4",children:[o.jsxs("div",{className:"container_main",children:[o.jsx("img",{src:"images/img-1.png",alt:!0,className:"image"}),o.jsx("div",{className:"overlay",children:o.jsx("div",{className:"text",children:o.jsx("h4",{className:"some_text",children:o.jsx("i",{className:"fa fa-link","aria-hidden":"true"})})})})]}),o.jsxs("div",{className:"project_main",children:[o.jsx("h2",{className:"work_text",children:"Home Work"}),o.jsx("p",{className:"dummy_text",children:"alteration in some form, by injected humour, or randomised words which don't look even slightly believable. If you are going to use"})]})]}),o.jsxs("div",{className:"col-md-4",children:[o.jsxs("div",{className:"container_main",children:[o.jsx("img",{src:"images/img-2.png",alt:!0,className:"image"}),o.jsx("div",{className:"overlay",children:o.jsx("div",{className:"text",children:o.jsx("h4",{className:"some_text",children:o.jsx("i",{className:"fa fa-link","aria-hidden":"true"})})})})]}),o.jsxs("div",{className:"project_main",children:[o.jsx("h2",{className:"work_text",children:"Home Work"}),o.jsx("p",{className:"dummy_text",children:"alteration in some form, by injected humour, or randomised words which don't look even slightly believable. If you are going to use"})]})]}),o.jsxs("div",{className:"col-md-4",children:[o.jsxs("div",{className:"container_main",children:[o.jsx("img",{src:"images/img-3.png",alt:!0,className:"image"}),o.jsx("div",{className:"overlay",children:o.jsx("div",{className:"text",children:o.jsx("h4",{className:"some_text",children:o.jsx("i",{className:"fa fa-link","aria-hidden":"true"})})})})]}),o.jsxs("div",{className:"project_main",children:[o.jsx("h2",{className:"work_text",children:"Home Work"}),o.jsx("p",{className:"dummy_text",children:"alteration in some form, by injected humour, or randomised words which don't look even slightly believable. If you are going to use"})]})]})]})})]})})})})})})]})]}),o.jsx(gt,{})]}),Mx=()=>o.jsxs(o.Fragment,{children:[o.jsx(ct,{}),o.jsxs("div",{className:"about_section layout_padding",children:[o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{}),o.jsx("div",{className:"container",children:o.jsxs("div",{className:"row",children:[o.jsxs("div",{className:"col-md-6",children:[o.jsx("h1",{className:"about_taital",children:"About Us"}),o.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"," "]}),o.jsx("div",{className:"read_bt_1",children:o.jsx("a",{href:"#",children:"Read More"})})]}),o.jsx("div",{className:"col-md-6",children:o.jsx("div",{className:"about_img",children:o.jsx("div",{className:"video_bt",children:o.jsx("div",{className:"play_icon",children:o.jsx("img",{src:"images/play-icon.png"})})})})})]})}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{})]}),o.jsx(gt,{})]}),Fx=()=>o.jsxs(o.Fragment,{children:[o.jsx(ct,{}),o.jsxs("div",{className:"contact_section layout_padding",children:[o.jsx("div",{className:"container",children:o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-md-12",children:o.jsx("h1",{className:"contact_taital",children:"Contact Us"})})})}),o.jsx("div",{className:"container-fluid",children:o.jsx("div",{className:"contact_section_2",children:o.jsxs("div",{className:"row",children:[o.jsx("div",{className:"col-md-6",children:o.jsx("form",{action:!0,children:o.jsxs("div",{className:"mail_section_1",children:[o.jsx("input",{type:"text",className:"mail_text",placeholder:"Name",name:"Name"}),o.jsx("input",{type:"text",className:"mail_text",placeholder:"Phone Number",name:"Phone Number"}),o.jsx("input",{type:"text",className:"mail_text",placeholder:"Email",name:"Email"}),o.jsx("textarea",{className:"massage-bt",placeholder:"Massage",rows:5,id:"comment",name:"Massage",defaultValue:""}),o.jsx("div",{className:"send_bt",children:o.jsx("a",{href:"#",children:"SEND"})})]})})}),o.jsx("div",{className:"col-md-6 padding_left_15",children:o.jsx("div",{className:"contact_img",children:o.jsx("img",{src:"images/contact-img.png"})})})]})})})]}),o.jsx(gt,{})]});var wt=function(){return wt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n{const[e,t]=_.useState(sw),[n,r]=_.useState(!1),{loading:i,error:l}=pr(S=>({...S.auth})),{title:s,email:a,password:u,firstName:c,middleName:d,lastName:f,confirmPassword:y,termsconditions:w,userType:v}=e,g=wi(),N=_i();_.useEffect(()=>{l&&z.error(l)},[l]),_.useEffect(()=>{r(s!=="None"&&a&&u&&c&&d&&f&&y&&w&&v!=="")},[s,a,u,c,d,f,y,w,v]);const h=S=>{if(S.preventDefault(),u!==y)return z.error("Password should match");n?g(al({formValue:e,navigate:N,toast:z})):z.error("Please fill in all fields and select all checkboxes")},m=S=>S.charAt(0).toUpperCase()+S.slice(1),p=S=>{const{name:C,value:P,type:k,checked:b}=S.target;t(k==="checkbox"?L=>({...L,[C]:b}):L=>({...L,[C]:C==="email"||C==="password"||C==="confirmPassword"?P:m(P)}))},x=S=>{t(C=>({...C,userType:S.target.value}))};return o.jsxs(o.Fragment,{children:[o.jsx(ct,{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("section",{className:"card",style:{minHeight:"100vh",backgroundColor:"#FFFFFF"},children:o.jsx("div",{className:"container-fluid px-0",children:o.jsxs("div",{className:"row gy-4 align-items-center justify-content-center",children:[o.jsx("div",{className:"col-12 col-md-0 col-xl-20 text-center text-md-start"}),o.jsx("div",{className:"col-12 col-md-6 col-xl-5",children:o.jsx("div",{className:"card border-0 rounded-4 shadow-lg",style:{width:"100%"},children:o.jsxs("div",{className:"card-body p-3 p-md-4 p-xl-5",children:[o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-12",children:o.jsxs("div",{className:"mb-4",children:[o.jsx("h2",{className:"h3",children:"Registration"}),o.jsx("h3",{style:{color:"red"},children:'All fields are mandatory to enable "Sign up"'}),o.jsx("hr",{})]})})}),o.jsx("form",{onSubmit:h,children:o.jsxs("div",{className:"row gy-3 overflow-hidden",children:[o.jsx("div",{className:"col-12",children:o.jsxs("div",{className:"form-floating mb-3",children:[o.jsxs("label",{className:"form-label",children:["Please select the role. ",o.jsx("br",{}),o.jsx("br",{})]}),o.jsxs("div",{className:"form-check form-check-inline",children:[o.jsx("input",{className:"form-check-input",type:"radio",name:"userType",value:"Lender",checked:v==="Lender",onChange:x,required:!0}),o.jsx("label",{className:"form-check-label",children:"Lender"})]}),o.jsxs("div",{className:"form-check form-check-inline",children:[o.jsx("input",{className:"form-check-input",type:"radio",name:"userType",value:"Borrower",checked:v==="Borrower",onChange:x,required:!0}),o.jsxs("label",{className:"form-check-label",children:["Borrower"," "]}),o.jsx("br",{}),o.jsx("br",{})]})]})}),o.jsxs("div",{className:"col-12",children:[o.jsxs("select",{className:"form-floating mb-3 form-control","aria-label":"Default select example",name:"title",value:s,onChange:p,children:[o.jsx("option",{value:"None",children:"Please Select Title"}),o.jsx("option",{value:"Dr",children:"Dr"}),o.jsx("option",{value:"Prof",children:"Prof"}),o.jsx("option",{value:"Mr",children:"Mr"}),o.jsx("option",{value:"Miss",children:"Miss"})]}),o.jsx("br",{})]}),o.jsx("div",{className:"col-12",children:o.jsxs("div",{className:"form-floating mb-3",children:[o.jsx("input",{type:"text",className:"form-control",value:c,name:"firstName",onChange:p,placeholder:"First Name",required:"required"}),o.jsx("label",{htmlFor:"firstName",className:"form-label",children:"First Name"})]})}),o.jsx("div",{className:"col-12",children:o.jsxs("div",{className:"form-floating mb-3",children:[o.jsx("input",{type:"text",className:"form-control",value:d,name:"middleName",onChange:p,placeholder:"Middle Name",required:"required"}),o.jsx("label",{htmlFor:"middleName",className:"form-label",children:"Middle Name"})]})}),o.jsx("div",{className:"col-12",children:o.jsxs("div",{className:"form-floating mb-3",children:[o.jsx("input",{type:"text",className:"form-control",value:f,name:"lastName",onChange:p,placeholder:"Last Name",required:"required"}),o.jsx("label",{htmlFor:"lastName",className:"form-label",children:"Last Name"})]})}),o.jsx("div",{className:"col-12",children:o.jsxs("div",{className:"form-floating mb-3",children:[o.jsx("input",{type:"email",className:"form-control",value:a,name:"email",onChange:p,placeholder:"name@example.com",required:"required"}),o.jsx("label",{htmlFor:"email",className:"form-label",children:"Email"})]})}),o.jsx("div",{className:"col-12",children:o.jsxs("div",{className:"form-floating mb-3",children:[o.jsx("input",{type:"password",className:"form-control",value:u,name:"password",onChange:p,placeholder:"Password",required:"required"}),o.jsx("label",{htmlFor:"password",className:"form-label",children:"Password"})]})}),o.jsx("div",{className:"col-12",children:o.jsxs("div",{className:"form-floating mb-3",children:[o.jsx("input",{type:"password",className:"form-control",value:y,name:"confirmPassword",onChange:p,placeholder:"confirmPassword",required:"required"}),o.jsx("label",{htmlFor:"password",className:"form-label",children:"Retype Password"})]})}),o.jsx("div",{className:"col-12",children:o.jsxs("div",{className:"form-check",children:[o.jsx("input",{className:"form-check-input",type:"checkbox",id:"termsconditions",value:w,name:"termsconditions",checked:w,onChange:p,required:!0}),o.jsxs("label",{className:"form-check-label text-secondary",htmlFor:"iAgree",children:["I agree to the"," ",o.jsx("a",{href:"#!",className:"link-primary text-decoration-none",children:"terms and conditions"})]})]})}),o.jsx("div",{className:"col-12",children:o.jsx("div",{className:"d-grid",children:o.jsxs("button",{className:"btn btn-primary btn-lg",type:"submit",style:{backgroundColor:"#fda417",border:"#fda417"},disabled:!n||i,children:[i&&o.jsx(Ip.Bars,{}),"Sign up"]})})})]})}),o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-12",children:o.jsx("div",{className:"d-flex gap-2 gap-md-4 flex-column flex-md-row justify-content-md-end mt-4",children:o.jsxs("p",{className:"m-0 text-secondary text-center",children:["Already have an account?"," ",o.jsx("a",{href:"#!",className:"link-primary text-decoration-none",children:"Sign in"})]})})})}),o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-12"})})]})})})]})})}),o.jsx(gt,{})]})},aw={email:"",password:""},uw=()=>{const[e,t]=_.useState(aw),{loading:n,error:r}=pr(d=>({...d.auth})),{email:i,password:l}=e,s=wi(),a=_i();_.useEffect(()=>{r&&z.error(r)},[r]);const u=d=>{d.preventDefault(),i&&l&&s(ol({formValue:e,navigate:a,toast:z}))},c=d=>{let{name:f,value:y}=d.target;t({...e,[f]:y})};return o.jsxs(o.Fragment,{children:[o.jsx(ct,{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("section",{className:"py-19 py-md-5 py-xl-8",style:{minHeight:"100vh",backgroundColor:"#FFFFFF"},children:o.jsx("div",{className:"container-fluid px-0",children:o.jsxs("div",{className:"row gy-4 align-items-center justify-content-center",children:[o.jsx("div",{className:"col-12 col-md-6 col-xl-20 text-center text-md-start",children:o.jsx("div",{className:"text-bg-primary",children:o.jsxs("div",{className:"px-4",children:[o.jsx("hr",{className:"border-primary-subtle mb-4"}),o.jsx("p",{className:"lead mb-5",children:"A beautiful, easy-to-use, and secure Investor Portal that gives your investors everything they may need"}),o.jsx("div",{className:"text-endx",children:o.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:o.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"})})})]})})}),o.jsx("div",{className:"col-12 col-md-6 col-xl-5",children:o.jsx("div",{className:"card border-0 rounded-4 shadow-lg",style:{width:"100%"},children:o.jsxs("div",{className:"card-body p-3 p-md-4 p-xl-5",children:[o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-12",children:o.jsx("div",{className:"mb-4",children:o.jsx("h2",{className:"h3",children:"Please Login"})})})}),o.jsx("form",{method:"POST",children:o.jsxs("div",{className:"row gy-3 overflow-hidden",children:[o.jsx("div",{className:"col-12"}),o.jsx("div",{className:"col-12"}),o.jsx("div",{className:"col-12",children:o.jsxs("div",{className:"form-floating mb-3",children:[o.jsx("input",{type:"email",className:"form-control",id:"email",placeholder:"name@example.com",value:i,name:"email",onChange:c,required:!0}),o.jsx("label",{htmlFor:"email",className:"form-label",children:"Email"})]})}),o.jsx("div",{className:"col-12",children:o.jsxs("div",{className:"form-floating mb-3",children:[o.jsx("input",{type:"password",className:"form-control",id:"password",placeholder:"Password",value:l,name:"password",onChange:c,required:!0}),o.jsx("label",{htmlFor:"password",className:"form-label",children:"Password"})]})}),o.jsx("div",{className:"col-12",children:o.jsxs("div",{className:"form-check",children:[o.jsx("input",{className:"form-check-input",type:"checkbox",name:"iAgree",id:"iAgree",required:!0}),o.jsxs("label",{className:"form-check-label text-secondary",htmlFor:"iAgree",children:["Remember me"," "]})]})}),o.jsx("div",{className:"col-12",children:o.jsx("div",{className:"d-grid",children:o.jsxs("button",{className:"btn btn-primary btn-lg",type:"submit",name:"signin",value:"Sign in",onClick:u,style:{backgroundColor:"#fda417",border:"#fda417"},children:[n&&o.jsx(Ip.Bars,{}),"Sign In"]})})})]})}),o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-12",children:o.jsx("div",{className:"d-flex gap-2 gap-md-4 flex-column flex-md-row justify-content-md-end mt-4",children:o.jsxs("p",{className:"m-0 text-secondary text-center",children:["Don't have an account?"," ",o.jsx(Le,{to:"/register",className:"link-primary text-decoration-none",children:"Register"}),o.jsx(Le,{to:"/forgotpassword",className:"nav-link",children:"Forgot Password"})]})})})}),o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-12"})})]})})})]})})}),o.jsx(gt,{})]})},cw="/assets/samplepic-BM_cnzgz.jpg",zp=()=>{const[e,t]=_.useState("propertydetails"),n=()=>{e==="propertydetails"&&t("shipping")},r=()=>{e==="shipping"&&t("propertydetails")},i=wi(),{status:l,error:s}=pr(w=>w.property),[a,u]=_.useState({propertyType:"",title:"",yearBuild:"",totalSqft:""}),[c,d]=_.useState(!1),f=w=>{u({...a,[w.target.name]:w.target.value})},y=()=>{a.propertyType&&a.title&&a.yearBuild&&a.totalSqft?(i(cl(a)),d(!0)):z.error("Please fill all fields before submitting",{position:"top-right",autoClose:3e3})};return _.useEffect(()=>{c&&(l==="succeeded"?(z.success("Property submitted successfully!",{position:"top-right",autoClose:3e3}),d(!1)):l==="failed"&&(z.error(`Failed to submit: ${s}`,{position:"top-right",autoClose:3e3}),d(!1)))},[l,s,c]),o.jsx(o.Fragment,{children:o.jsxs("div",{className:"container tabs-wrap",children:[o.jsx(ct,{}),o.jsxs("ul",{className:"nav nav-tabs",role:"tablist",children:[o.jsx("li",{role:"presentation",className:e==="propertydetails"?"active tab":"tab",children:o.jsx("a",{onClick:()=>t("propertydetails"),role:"tab",children:"Property Details"})}),o.jsx("li",{role:"presentation",className:e==="shipping"?"active tab":"tab",children:o.jsx("a",{onClick:()=>t("shipping"),role:"tab",children:"Delivery Address"})})]}),o.jsxs("div",{className:"tab-content",children:[e==="propertydetails"&&o.jsxs("div",{role:"tabpanel",className:"tab-pane active",children:[o.jsx("h3",{children:"Property Details"}),o.jsx("form",{children:o.jsxs("div",{className:"row gy-3 overflow-hidden",children:[o.jsx("div",{className:"col-12",children:o.jsxs("select",{className:"form-floating mb-3 form-control",name:"propertyType",value:a.propertyType,onChange:f,required:!0,children:[o.jsx("option",{value:"",children:"Please Select Property Type"}),o.jsx("option",{value:"Residential",children:"Residential"}),o.jsx("option",{value:"Land",children:"Land"}),o.jsx("option",{value:"Commercial",children:"Commercial"}),o.jsx("option",{value:"Industrial",children:"Industrial"}),o.jsx("option",{value:"Water",children:"Water"})]})}),o.jsx("div",{className:"col-12",children:o.jsxs("div",{className:"form-floating mb-3",children:[o.jsx("input",{type:"text",className:"form-control",name:"title",value:a.title,onChange:f,placeholder:"Property title",required:!0}),o.jsx("label",{htmlFor:"title",className:"form-label",children:"Property Title"})]})}),o.jsx("div",{className:"col-12",children:o.jsxs("div",{className:"form-floating mb-3",children:[o.jsx("input",{type:"text",className:"form-control",name:"yearBuild",value:a.yearBuild,onChange:f,placeholder:"Year build",required:!0}),o.jsx("label",{htmlFor:"yearBuild",className:"form-label",children:"Year Build"})]})})]})}),o.jsx("button",{className:"btn btn-primary continue",onClick:n,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Continue"})]}),e==="shipping"&&o.jsxs("div",{role:"tabpanel",className:"tab-pane active",children:[o.jsx("h3",{children:"Shipping Address"}),o.jsx("form",{children:o.jsx("div",{className:"row gy-3 overflow-hidden",children:o.jsx("div",{className:"col-12",children:o.jsxs("div",{className:"form-floating mb-3",children:[o.jsx("input",{type:"text",className:"form-control",name:"totalSqft",value:a.totalSqft,onChange:f,placeholder:"Total SQFT",required:!0}),o.jsx("label",{htmlFor:"totalSqft",className:"form-label",children:"Total SQFT"})]})})})}),o.jsx("button",{className:"btn btn-primary back",onClick:r,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Go Back"})," ",o.jsx("button",{type:"button",className:"btn btn-primary continue",style:{backgroundColor:"#fda417",border:"#fda417"},onClick:y,children:"Submit"})]})]})]})})},dw=()=>{const{user:e}=pr(i=>({...i.auth})),[t,n]=_.useState("dashboard"),r=()=>{switch(t){case"addProperty":return o.jsx(zp,{});case"activeProperties":return o.jsx("p",{children:"Here are your active properties."});case"closedProperties":return o.jsx("p",{children:"These are your closed properties."});default:return o.jsxs("div",{className:"d-flex justify-content-center mt-7 gap-2 p-3",children:[o.jsx("div",{className:"col-md-6",children:o.jsxs("div",{className:"card cardchildchild p-2",children:[o.jsx("div",{className:"profile1",children:o.jsx("img",{src:"https://i.imgur.com/NI5b1NX.jpg",height:90,width:90,className:"rounded-circle"})}),o.jsxs("div",{className:"d-flex flex-column justify-content-center align-items-center mt-5",children:[o.jsx("span",{className:"name",children:"Bess Wills"}),o.jsx("span",{className:"mt-1 braceletid",children:"Bracelet ID: SFG 38393"}),o.jsx("span",{className:"dummytext mt-3 p-3",children:"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Text elit more smtit. Kimto lee."})]})]})}),o.jsx("div",{className:"col-md-6",children:o.jsxs("div",{className:"card cardchildchild p-2",children:[o.jsx("div",{className:"profile1",children:o.jsx("img",{src:"https://i.imgur.com/YyoCGsa.jpg",height:90,width:90,className:"rounded-circle"})}),o.jsxs("div",{className:"d-flex flex-column justify-content-center align-items-center mt-5",children:[o.jsx("span",{className:"name",children:"Bess Wills"}),o.jsx("span",{className:"mt-1 braceletid",children:"Bracelet ID: SFG 38393"}),o.jsx("span",{className:"dummytext mt-3 p-3",children:"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Text elit more smtit. Kimto lee."})]})]})})]})}};return o.jsxs(o.Fragment,{children:[o.jsx(ct,{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsxs("div",{className:"d-flex flex-row",children:[o.jsx("div",{className:"col-md-3",children:o.jsxs("div",{className:"card card1 p-5",children:[o.jsx("img",{className:"img-fluid",src:cw,alt:"ProfileImage",style:{marginTop:"0px",maxWidth:"200px",maxHeight:"200px"}}),o.jsx("hr",{className:"hline"}),o.jsxs("div",{className:"d-flex flex-column align-items-center",children:[o.jsxs("button",{className:`btn ${t==="dashboard"?"active":""}`,onClick:()=>n("dashboard"),children:[o.jsx("i",{className:"fa fa-dashboard",style:{color:"#F74B02"}}),o.jsx("span",{children:"Dashboard"})]}),o.jsxs("button",{className:`btn mt-3 ${t==="addProperty"?"active":""}`,onClick:()=>n("addProperty"),children:[o.jsx("span",{className:"fa fa-home",style:{color:"#F74B02"}}),o.jsx("span",{children:"Add Property"})]}),o.jsxs("button",{className:`btn mt-3 ${t==="activeProperties"?"active":""}`,onClick:()=>n("activeProperties"),children:[o.jsx("span",{className:"fa fa-home",style:{color:"#F74B02"}}),o.jsx("span",{children:"Active Properties"})]}),o.jsxs("button",{className:`btn mt-3 ${t==="closedProperties"?"active":""}`,onClick:()=>n("closedProperties"),children:[o.jsx("span",{className:"fa fa-home",style:{color:"#F74B02"}}),o.jsx("span",{children:"Closed Properties"})]})]})]})}),o.jsx("div",{className:"col-md-9",children:o.jsxs("div",{className:"card card2 p-0",children:[o.jsxs("div",{className:"hello d-flex justify-content-end align-items-center mt-3",children:[o.jsxs("span",{children:["Welcome to"," ",o.jsxs("span",{style:{color:"#067ADC"},children:[e.result.title,". ",e.result.firstName," ",e.result.middleName," ",e.result.lastName]})]}),o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{})]}),o.jsx("div",{className:"tab-content p-3",children:r()})]})})]}),o.jsx(gt,{})]})};var Ap={exports:{}},fw="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",mw=fw,pw=mw;function Dp(){}function Bp(){}Bp.resetWarningCache=Dp;var hw=function(){function e(r,i,l,s,a,u){if(u!==pw){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:Bp,resetWarningCache:Dp};return n.PropTypes=n,n};Ap.exports=hw();var yw=Ap.exports;const vw=hd(yw),gw=()=>{const[e,t]=_.useState(3),n=_i();return _.useEffect(()=>{const r=setInterval(()=>{t(i=>--i)},1e3);return e===0&&n("/login"),()=>clearInterval(r)},[e,n]),o.jsx("div",{style:{marginTop:"100px"},children:o.jsxs("h5",{children:["Redirecting you in ",e," seconds"]})})},fl=({children:e})=>{const{user:t}=pr(n=>({...n.auth}));return t?e:o.jsx(gw,{})};fl.propTypes={children:vw.node.isRequired};const xw=()=>{const e=wi(),{id:t,token:n}=Cp();return _.useEffect(()=>{e(ul({id:t,token:n}))},[e,t,n]),o.jsxs(o.Fragment,{children:[o.jsx(ct,{}),o.jsxs("div",{className:"contact_section layout_padding",children:[o.jsx("div",{className:"container",children:o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-md-12",children:o.jsx("h1",{className:"contact_taital",children:"Contact Us"})})})}),o.jsx("div",{className:"container-fluid",children:o.jsx("div",{className:"contact_section_2",children:o.jsxs("div",{className:"row",children:[o.jsxs("div",{className:"col-md-6",children:[o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("h1",{className:"card-title text-center",children:o.jsxs(Le,{to:"/login",className:"glightbox play-btn mb-4",children:[" ","Email verified successfully !!! Please",o.jsx("span",{style:{color:"#F74B02"},children:" login "})," "," ","to access ..."]})})]}),o.jsx("div",{className:"col-md-6 padding_left_15",children:o.jsx("div",{className:"contact_img"})})]})})})]}),o.jsx(gt,{})]})},ww=()=>{const[e,t]=_.useState(""),[n,r]=_.useState(""),i="http://67.225.129.127:3002",l=async()=>{try{const s=await Z.post(`${i}/users/forgotpassword`,{email:e});r(s.data.message)}catch(s){console.error("Forgot Password Error:",s),r(s.response.data.message)}};return o.jsxs(o.Fragment,{children:[o.jsx(ct,{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsxs("section",{className:"card",style:{minHeight:"100vh",backgroundColor:"#FFFFFF"},children:[o.jsx("div",{className:"container-fluid px-0",children:o.jsxs("div",{className:"row gy-4 align-items-center justify-content-center",children:[o.jsx("div",{className:"col-12 col-md-0 col-xl-20 text-center text-md-start"}),o.jsx("div",{className:"col-12 col-md-6 col-xl-5",children:o.jsx("div",{className:"card border-0 rounded-4 shadow-lg",style:{width:"100%"},children:o.jsxs("div",{className:"card-body p-3 p-md-4 p-xl-5",children:[o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-12",children:o.jsxs("div",{className:"mb-4",children:[o.jsx("h2",{className:"h3",children:"Forgot Password"}),o.jsx("hr",{})]})})}),o.jsxs("div",{className:"row gy-3 overflow-hidden",children:[o.jsx("div",{className:"col-12",children:o.jsxs("div",{className:"form-floating mb-3",children:[o.jsx("input",{type:"email",className:"form-control",value:e,onChange:s=>t(s.target.value),placeholder:"name@example.com",required:"required"}),o.jsx("label",{htmlFor:"email",className:"form-label",children:"Enter your email address to receive a password reset link"})]})}),o.jsxs("div",{className:"col-12",children:[o.jsx("div",{className:"d-grid",children:o.jsx("button",{className:"btn btn-primary btn-lg",type:"submit",style:{backgroundColor:"#fda417",border:"#fda417"},onClick:l,children:"Reset Password"})}),o.jsx("p",{style:{color:"#067ADC"},className:"card-title text-center",children:n})]})]}),o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-12",children:o.jsx("div",{className:"d-flex gap-2 gap-md-4 flex-column flex-md-row justify-content-md-end mt-4",children:o.jsxs("p",{className:"m-0 text-secondary text-center",children:["Already have an account?"," ",o.jsx(Le,{to:"/login",className:"link-primary text-decoration-none",children:"Sign In"})]})})})}),o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-12"})})]})})})]})}),o.jsx(gt,{})]})]})},Nw=()=>{const{userId:e,token:t}=Cp(),[n,r]=_.useState(""),[i,l]=_.useState(""),[s,a]=_.useState(""),u="http://67.225.129.127:3002",c=async()=>{try{if(!n||n.trim()===""){a("Password not entered"),z.error("Password not entered");return}const d=await Z.post(`${u}/users/resetpassword/${e}/${t}`,{userId:e,token:t,password:n});if(n!==i){a("Passwords do not match."),z.error("Passwords do not match.");return}else a("Password reset successfull"),z.success(d.data.message)}catch(d){console.error("Reset Password Error:",d)}};return _.useEffect(()=>{z.dismiss()},[]),o.jsxs(o.Fragment,{children:[o.jsx(ct,{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("section",{className:"card mb-0 vh-100",children:o.jsx("div",{className:"container py-10 h-100",children:o.jsx("div",{className:"row d-flex align-items-center justify-content-center h-100",children:o.jsxs("div",{className:"col-md-10 col-lg-5 col-xl-5 offset-xl-1 card mb-10",children:[o.jsx("br",{}),o.jsxs("h2",{children:["Reset Password",o.jsx("hr",{}),o.jsx("p",{className:"card-title text-center",style:{color:"#F74B02"},children:"Enter your new password:"})]}),o.jsx("input",{className:"form-control vh-10",type:"password",value:n,onChange:d=>r(d.target.value),placeholder:"Enter your new password",style:{display:"flex",gap:"35px"}}),o.jsx("br",{}),o.jsx("input",{className:"form-control",type:"password",value:i,onChange:d=>l(d.target.value),placeholder:"Confirm your new password"}),o.jsx("br",{}),o.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"}),o.jsx("p",{style:{color:"#067ADC"},className:"card-title text-center",children:s})]})})})}),o.jsx(gt,{})]})},jw=()=>o.jsxs(o.Fragment,{children:[o.jsx(ct,{}),o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{}),o.jsxs("div",{className:"col-md-18",children:[o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsxs("h1",{className:"card-title text-center",children:[" ","Thank you for joining the world's most trusted realtor investment and borrowers portal."]}),o.jsxs("h2",{children:["We reqest you to kindly ",o.jsx("span",{style:{fontSize:"2rem",color:"#fda417"},children:"check your email inbox "})," and click on the ",o.jsx("span",{style:{fontSize:"2rem",color:"#fda417"},children:"verification link "}),"to access the dashboard."]})]}),o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{}),o.jsx(gt,{})]}),Ew=()=>o.jsxs(mx,{children:[o.jsx(Rx,{}),o.jsxs(lx,{children:[o.jsx(Qe,{path:"/",element:o.jsx(Lx,{})}),o.jsx(Qe,{path:"/about",element:o.jsx(Mx,{})}),o.jsx(Qe,{path:"/contact",element:o.jsx(Fx,{})}),o.jsx(Qe,{path:"/register",element:o.jsx(ow,{})}),o.jsx(Qe,{path:"/registrationsuccess",element:o.jsx(fl,{children:o.jsx(jw,{})})}),o.jsx(Qe,{path:"/login",element:o.jsx(uw,{})}),o.jsx(Qe,{path:"/dashboard",element:o.jsx(fl,{children:o.jsx(dw,{})})}),o.jsx(Qe,{path:"/users/:id/verify/:token",element:o.jsx(xw,{})}),o.jsx(Qe,{path:"/forgotpassword",element:o.jsx(ww,{})}),o.jsx(Qe,{path:"/users/resetpassword/:userId/:token",element:o.jsx(Nw,{})}),o.jsx(Qe,{path:"/addproperty",element:o.jsx(fl,{children:o.jsx(zp,{})})})]})]});Om(document.getElementById("root")).render(o.jsx(_.StrictMode,{children:o.jsx(zv,{store:g1,children:o.jsx(Ew,{})})})); + */function ql(){return ql=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[i]=e[i]);return n}function sx(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function ox(e,t){return e.button===0&&(!t||t==="_self")&&!sx(e)}const ax=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],ux=["aria-current","caseSensitive","className","end","style","to","unstable_viewTransition","children"],cx="6";try{window.__reactRouterVersion=cx}catch{}const dx=_.createContext({isTransitioning:!1}),fx="startTransition",dd=co[fx];function mx(e){let{basename:t,children:n,future:r,window:i}=e,l=_.useRef();l.current==null&&(l.current=x1({window:i,v5Compat:!0}));let s=l.current,[a,u]=_.useState({action:s.action,location:s.location}),{v7_startTransition:c}=r||{},d=_.useCallback(f=>{c&&dd?dd(()=>u(f)):u(f)},[u,c]);return _.useLayoutEffect(()=>s.listen(d),[s,d]),_.createElement(ix,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:s,future:r})}const px=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",hx=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,yx=_.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:l,replace:s,state:a,target:u,to:c,preventScrollReset:d,unstable_viewTransition:f}=t,y=Tp(t,ax),{basename:w}=_.useContext(an),v,g=!1;if(typeof c=="string"&&hx.test(c)&&(v=c,px))try{let p=new URL(window.location.href),x=c.startsWith("//")?new URL(p.protocol+c):new URL(c),S=cr(x.pathname,w);x.origin===p.origin&&S!=null?c=S+x.search+x.hash:g=!0}catch{}let N=H1(c,{relative:i}),h=gx(c,{replace:s,state:a,target:u,preventScrollReset:d,relative:i,unstable_viewTransition:f});function m(p){r&&r(p),p.defaultPrevented||h(p)}return _.createElement("a",ql({},y,{href:v||N,onClick:g||l?r:m,ref:n,target:u}))}),Le=_.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:i=!1,className:l="",end:s=!1,style:a,to:u,unstable_viewTransition:c,children:d}=t,f=Tp(t,ux),y=js(u,{relative:f.relative}),w=ki(),v=_.useContext(Sp),{navigator:g,basename:N}=_.useContext(an),h=v!=null&&xx(y)&&c===!0,m=g.encodeLocation?g.encodeLocation(y).pathname:y.pathname,p=w.pathname,x=v&&v.navigation&&v.navigation.location?v.navigation.location.pathname:null;i||(p=p.toLowerCase(),x=x?x.toLowerCase():null,m=m.toLowerCase()),x&&N&&(x=cr(x,N)||x);const S=m!=="/"&&m.endsWith("/")?m.length-1:m.length;let C=p===m||!s&&p.startsWith(m)&&p.charAt(S)==="/",P=x!=null&&(x===m||!s&&x.startsWith(m)&&x.charAt(m.length)==="/"),k={isActive:C,isPending:P,isTransitioning:h},b=C?r:void 0,L;typeof l=="function"?L=l(k):L=[l,C?"active":null,P?"pending":null,h?"transitioning":null].filter(Boolean).join(" ");let H=typeof a=="function"?a(k):a;return _.createElement(yx,ql({},f,{"aria-current":b,className:L,ref:n,style:H,to:u,unstable_viewTransition:c}),typeof d=="function"?d(k):d)});var xa;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(xa||(xa={}));var fd;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(fd||(fd={}));function vx(e){let t=_.useContext(ws);return t||J(!1),t}function gx(e,t){let{target:n,replace:r,state:i,preventScrollReset:l,relative:s,unstable_viewTransition:a}=t===void 0?{}:t,u=_i(),c=ki(),d=js(e,{relative:s});return _.useCallback(f=>{if(ox(f,n)){f.preventDefault();let y=r!==void 0?r:Hl(c)===Hl(d);u(e,{replace:y,state:i,preventScrollReset:l,relative:s,unstable_viewTransition:a})}},[c,u,d,r,i,n,e,l,s,a])}function xx(e,t){t===void 0&&(t={});let n=_.useContext(dx);n==null&&J(!1);let{basename:r}=vx(xa.useViewTransitionState),i=js(e,{relative:t.relative});if(!n.isTransitioning)return!1;let l=cr(n.currentLocation.pathname,r)||n.currentLocation.pathname,s=cr(n.nextLocation.pathname,r)||n.nextLocation.pathname;return Vl(i.pathname,s)!=null||Vl(i.pathname,l)!=null}function Rp(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;ttypeof e=="number"&&!isNaN(e),Nn=e=>typeof e=="string",ze=e=>typeof e=="function",dl=e=>Nn(e)||ze(e)?e:null,wa=e=>_.isValidElement(e)||Nn(e)||ze(e)||fi(e);function wx(e,t,n){n===void 0&&(n=300);const{scrollHeight:r,style:i}=e;requestAnimationFrame(()=>{i.minHeight="initial",i.height=r+"px",i.transition=`all ${n}ms`,requestAnimationFrame(()=>{i.height="0",i.padding="0",i.margin="0",setTimeout(t,n)})})}function Es(e){let{enter:t,exit:n,appendPosition:r=!1,collapse:i=!0,collapseDuration:l=300}=e;return function(s){let{children:a,position:u,preventExitTransition:c,done:d,nodeRef:f,isIn:y,playToast:w}=s;const v=r?`${t}--${u}`:t,g=r?`${n}--${u}`:n,N=_.useRef(0);return _.useLayoutEffect(()=>{const h=f.current,m=v.split(" "),p=x=>{x.target===f.current&&(w(),h.removeEventListener("animationend",p),h.removeEventListener("animationcancel",p),N.current===0&&x.type!=="animationcancel"&&h.classList.remove(...m))};h.classList.add(...m),h.addEventListener("animationend",p),h.addEventListener("animationcancel",p)},[]),_.useEffect(()=>{const h=f.current,m=()=>{h.removeEventListener("animationend",m),i?wx(h,d,l):d()};y||(c?m():(N.current=1,h.className+=` ${g}`,h.addEventListener("animationend",m)))},[y]),j.createElement(j.Fragment,null,a)}}function md(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 ge=new Map;let mi=[];const Na=new Set,Nx=e=>Na.forEach(t=>t(e)),bp=()=>ge.size>0;function Lp(e,t){var n;if(t)return!((n=ge.get(t))==null||!n.isToastActive(e));let r=!1;return ge.forEach(i=>{i.isToastActive(e)&&(r=!0)}),r}function Mp(e,t){wa(e)&&(bp()||mi.push({content:e,options:t}),ge.forEach(n=>{n.buildToast(e,t)}))}function pd(e,t){ge.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 jx(e){const{subscribe:t,getSnapshot:n,setProps:r}=_.useRef(function(l){const s=l.containerId||1;return{subscribe(a){const u=function(d,f,y){let w=1,v=0,g=[],N=[],h=[],m=f;const p=new Map,x=new Set,S=()=>{h=Array.from(p.values()),x.forEach(k=>k())},C=k=>{N=k==null?[]:N.filter(b=>b!==k),S()},P=k=>{const{toastId:b,onOpen:L,updateId:H,children:je}=k.props,Ve=H==null;k.staleId&&p.delete(k.staleId),p.set(b,k),N=[...N,k.props.toastId].filter(Ze=>Ze!==k.staleId),S(),y(md(k,Ve?"added":"updated")),Ve&&ze(L)&&L(_.isValidElement(je)&&je.props)};return{id:d,props:m,observe:k=>(x.add(k),()=>x.delete(k)),toggle:(k,b)=>{p.forEach(L=>{b!=null&&b!==L.props.toastId||ze(L.toggle)&&L.toggle(k)})},removeToast:C,toasts:p,clearQueue:()=>{v-=g.length,g=[]},buildToast:(k,b)=>{if((U=>{let{containerId:oe,toastId:ne,updateId:Ee}=U;const ye=oe?oe!==d:d!==1,dt=p.has(ne)&&Ee==null;return ye||dt})(b))return;const{toastId:L,updateId:H,data:je,staleId:Ve,delay:Ze}=b,Rt=()=>{C(L)},bt=H==null;bt&&v++;const be={...m,style:m.toastStyle,key:w++,...Object.fromEntries(Object.entries(b).filter(U=>{let[oe,ne]=U;return ne!=null})),toastId:L,updateId:H,data:je,closeToast:Rt,isIn:!1,className:dl(b.className||m.toastClassName),bodyClassName:dl(b.bodyClassName||m.bodyClassName),progressClassName:dl(b.progressClassName||m.progressClassName),autoClose:!b.isLoading&&(T=b.autoClose,M=m.autoClose,T===!1||fi(T)&&T>0?T:M),deleteToast(){const U=p.get(L),{onClose:oe,children:ne}=U.props;ze(oe)&&oe(_.isValidElement(ne)&&ne.props),y(md(U,"removed")),p.delete(L),v--,v<0&&(v=0),g.length>0?P(g.shift()):S()}};var T,M;be.closeButton=m.closeButton,b.closeButton===!1||wa(b.closeButton)?be.closeButton=b.closeButton:b.closeButton===!0&&(be.closeButton=!wa(m.closeButton)||m.closeButton);let F=k;_.isValidElement(k)&&!Nn(k.type)?F=_.cloneElement(k,{closeToast:Rt,toastProps:be,data:je}):ze(k)&&(F=k({closeToast:Rt,toastProps:be,data:je}));const B={content:F,props:be,staleId:Ve};m.limit&&m.limit>0&&v>m.limit&&bt?g.push(B):fi(Ze)?setTimeout(()=>{P(B)},Ze):P(B)},setProps(k){m=k},setToggle:(k,b)=>{p.get(k).toggle=b},isToastActive:k=>N.some(b=>b===k),getSnapshot:()=>m.newestOnTop?h.reverse():h}}(s,l,Nx);ge.set(s,u);const c=u.observe(a);return mi.forEach(d=>Mp(d.content,d.options)),mi=[],()=>{c(),ge.delete(s)}},setProps(a){var u;(u=ge.get(s))==null||u.setProps(a)},getSnapshot(){var a;return(a=ge.get(s))==null?void 0:a.getSnapshot()}}}(e)).current;r(e);const i=_.useSyncExternalStore(t,n,n);return{getToastToRender:function(l){if(!i)return[];const s=new Map;return i.forEach(a=>{const{position:u}=a.props;s.has(u)||s.set(u,[]),s.get(u).push(a)}),Array.from(s,a=>l(a[0],a[1]))},isToastActive:Lp,count:i==null?void 0:i.length}}function Ex(e){const[t,n]=_.useState(!1),[r,i]=_.useState(!1),l=_.useRef(null),s=_.useRef({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:a,pauseOnHover:u,closeToast:c,onClick:d,closeOnClick:f}=e;var y,w;function v(){n(!0)}function g(){n(!1)}function N(p){const x=l.current;s.canDrag&&x&&(s.didMove=!0,t&&g(),s.delta=e.draggableDirection==="x"?p.clientX-s.start:p.clientY-s.start,s.start!==p.clientX&&(s.canCloseOnClick=!1),x.style.transform=`translate3d(${e.draggableDirection==="x"?`${s.delta}px, var(--y)`:`0, calc(${s.delta}px + var(--y))`},0)`,x.style.opacity=""+(1-Math.abs(s.delta/s.removalDistance)))}function h(){document.removeEventListener("pointermove",N),document.removeEventListener("pointerup",h);const p=l.current;if(s.canDrag&&s.didMove&&p){if(s.canDrag=!1,Math.abs(s.delta)>s.removalDistance)return i(!0),e.closeToast(),void e.collapseAll();p.style.transition="transform 0.2s, opacity 0.2s",p.style.removeProperty("transform"),p.style.removeProperty("opacity")}}(w=ge.get((y={id:e.toastId,containerId:e.containerId,fn:n}).containerId||1))==null||w.setToggle(y.id,y.fn),_.useEffect(()=>{if(e.pauseOnFocusLoss)return document.hasFocus()||g(),window.addEventListener("focus",v),window.addEventListener("blur",g),()=>{window.removeEventListener("focus",v),window.removeEventListener("blur",g)}},[e.pauseOnFocusLoss]);const m={onPointerDown:function(p){if(e.draggable===!0||e.draggable===p.pointerType){s.didMove=!1,document.addEventListener("pointermove",N),document.addEventListener("pointerup",h);const x=l.current;s.canCloseOnClick=!0,s.canDrag=!0,x.style.transition="none",e.draggableDirection==="x"?(s.start=p.clientX,s.removalDistance=x.offsetWidth*(e.draggablePercent/100)):(s.start=p.clientY,s.removalDistance=x.offsetHeight*(e.draggablePercent===80?1.5*e.draggablePercent:e.draggablePercent)/100)}},onPointerUp:function(p){const{top:x,bottom:S,left:C,right:P}=l.current.getBoundingClientRect();p.nativeEvent.type!=="touchend"&&e.pauseOnHover&&p.clientX>=C&&p.clientX<=P&&p.clientY>=x&&p.clientY<=S?g():v()}};return a&&u&&(m.onMouseEnter=g,e.stacked||(m.onMouseLeave=v)),f&&(m.onClick=p=>{d&&d(p),s.canCloseOnClick&&c()}),{playToast:v,pauseToast:g,isRunning:t,preventExitTransition:r,toastRef:l,eventHandlers:m}}function Sx(e){let{delay:t,isRunning:n,closeToast:r,type:i="default",hide:l,className:s,style:a,controlledProgress:u,progress:c,rtl:d,isIn:f,theme:y}=e;const w=l||u&&c===0,v={...a,animationDuration:`${t}ms`,animationPlayState:n?"running":"paused"};u&&(v.transform=`scaleX(${c})`);const g=Vt("Toastify__progress-bar",u?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${y}`,`Toastify__progress-bar--${i}`,{"Toastify__progress-bar--rtl":d}),N=ze(s)?s({rtl:d,type:i,defaultClassName:g}):Vt(g,s),h={[u&&c>=1?"onTransitionEnd":"onAnimationEnd"]:u&&c<1?null:()=>{f&&r()}};return j.createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":w},j.createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${y} Toastify__progress-bar--${i}`}),j.createElement("div",{role:"progressbar","aria-hidden":w?"true":"false","aria-label":"notification timer",className:N,style:v,...h}))}let kx=1;const Fp=()=>""+kx++;function _x(e){return e&&(Nn(e.toastId)||fi(e.toastId))?e.toastId:Fp()}function Wr(e,t){return Mp(e,t),t.toastId}function Kl(e,t){return{...t,type:t&&t.type||e,toastId:_x(t)}}function Vi(e){return(t,n)=>Wr(t,Kl(e,n))}function z(e,t){return Wr(e,Kl("default",t))}z.loading=(e,t)=>Wr(e,Kl("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),z.promise=function(e,t,n){let r,{pending:i,error:l,success:s}=t;i&&(r=Nn(i)?z.loading(i,n):z.loading(i.render,{...n,...i}));const a={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},u=(d,f,y)=>{if(f==null)return void z.dismiss(r);const w={type:d,...a,...n,data:y},v=Nn(f)?{render:f}:f;return r?z.update(r,{...w,...v}):z(v.render,{...w,...v}),y},c=ze(e)?e():e;return c.then(d=>u("success",s,d)).catch(d=>u("error",l,d)),c},z.success=Vi("success"),z.info=Vi("info"),z.error=Vi("error"),z.warning=Vi("warning"),z.warn=z.warning,z.dark=(e,t)=>Wr(e,Kl("default",{theme:"dark",...t})),z.dismiss=function(e){(function(t){var n;if(bp()){if(t==null||Nn(n=t)||fi(n))ge.forEach(r=>{r.removeToast(t)});else if(t&&("containerId"in t||"id"in t)){const r=ge.get(t.containerId);r?r.removeToast(t.id):ge.forEach(i=>{i.removeToast(t.id)})}}else mi=mi.filter(r=>t!=null&&r.options.toastId!==t)})(e)},z.clearWaitingQueue=function(e){e===void 0&&(e={}),ge.forEach(t=>{!t.props.limit||e.containerId&&t.id!==e.containerId||t.clearQueue()})},z.isActive=Lp,z.update=function(e,t){t===void 0&&(t={});const n=((r,i)=>{var l;let{containerId:s}=i;return(l=ge.get(s||1))==null?void 0:l.toasts.get(r)})(e,t);if(n){const{props:r,content:i}=n,l={delay:100,...r,...t,toastId:t.toastId||e,updateId:Fp()};l.toastId!==e&&(l.staleId=e);const s=l.render||i;delete l.render,Wr(s,l)}},z.done=e=>{z.update(e,{progress:1})},z.onChange=function(e){return Na.add(e),()=>{Na.delete(e)}},z.play=e=>pd(!0,e),z.pause=e=>pd(!1,e);const Cx=typeof window<"u"?_.useLayoutEffect:_.useEffect,Qi=e=>{let{theme:t,type:n,isLoading:r,...i}=e;return j.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:t==="colored"?"currentColor":`var(--toastify-icon-color-${n})`,...i})},uo={info:function(e){return j.createElement(Qi,{...e},j.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 j.createElement(Qi,{...e},j.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 j.createElement(Qi,{...e},j.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 j.createElement(Qi,{...e},j.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 j.createElement("div",{className:"Toastify__spinner"})}},Px=e=>{const{isRunning:t,preventExitTransition:n,toastRef:r,eventHandlers:i,playToast:l}=Ex(e),{closeButton:s,children:a,autoClose:u,onClick:c,type:d,hideProgressBar:f,closeToast:y,transition:w,position:v,className:g,style:N,bodyClassName:h,bodyStyle:m,progressClassName:p,progressStyle:x,updateId:S,role:C,progress:P,rtl:k,toastId:b,deleteToast:L,isIn:H,isLoading:je,closeOnClick:Ve,theme:Ze}=e,Rt=Vt("Toastify__toast",`Toastify__toast-theme--${Ze}`,`Toastify__toast--${d}`,{"Toastify__toast--rtl":k},{"Toastify__toast--close-on-click":Ve}),bt=ze(g)?g({rtl:k,position:v,type:d,defaultClassName:Rt}):Vt(Rt,g),be=function(B){let{theme:U,type:oe,isLoading:ne,icon:Ee}=B,ye=null;const dt={theme:U,type:oe};return Ee===!1||(ze(Ee)?ye=Ee({...dt,isLoading:ne}):_.isValidElement(Ee)?ye=_.cloneElement(Ee,dt):ne?ye=uo.spinner():(Up=>Up in uo)(oe)&&(ye=uo[oe](dt))),ye}(e),T=!!P||!u,M={closeToast:y,type:d,theme:Ze};let F=null;return s===!1||(F=ze(s)?s(M):_.isValidElement(s)?_.cloneElement(s,M):function(B){let{closeToast:U,theme:oe,ariaLabel:ne="close"}=B;return j.createElement("button",{className:`Toastify__close-button Toastify__close-button--${oe}`,type:"button",onClick:Ee=>{Ee.stopPropagation(),U(Ee)},"aria-label":ne},j.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},j.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"})))}(M)),j.createElement(w,{isIn:H,done:L,position:v,preventExitTransition:n,nodeRef:r,playToast:l},j.createElement("div",{id:b,onClick:c,"data-in":H,className:bt,...i,style:N,ref:r},j.createElement("div",{...H&&{role:C},className:ze(h)?h({type:d}):Vt("Toastify__toast-body",h),style:m},be!=null&&j.createElement("div",{className:Vt("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!je})},be),j.createElement("div",null,a)),F,j.createElement(Sx,{...S&&!T?{key:`pb-${S}`}:{},rtl:k,theme:Ze,delay:u,isRunning:t,isIn:H,closeToast:y,hide:f,type:d,style:x,className:p,controlledProgress:T,progress:P||0})))},Ss=function(e,t){return t===void 0&&(t=!1),{enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:t}},Ox=Es(Ss("bounce",!0));Es(Ss("slide",!0));Es(Ss("zoom"));Es(Ss("flip"));const Tx={position:"top-right",transition:Ox,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};function Rx(e){let t={...Tx,...e};const n=e.stacked,[r,i]=_.useState(!0),l=_.useRef(null),{getToastToRender:s,isToastActive:a,count:u}=jx(t),{className:c,style:d,rtl:f,containerId:y}=t;function w(g){const N=Vt("Toastify__toast-container",`Toastify__toast-container--${g}`,{"Toastify__toast-container--rtl":f});return ze(c)?c({position:g,rtl:f,defaultClassName:N}):Vt(N,dl(c))}function v(){n&&(i(!0),z.play())}return Cx(()=>{if(n){var g;const N=l.current.querySelectorAll('[data-in="true"]'),h=12,m=(g=t.position)==null?void 0:g.includes("top");let p=0,x=0;Array.from(N).reverse().forEach((S,C)=>{const P=S;P.classList.add("Toastify__toast--stacked"),C>0&&(P.dataset.collapsed=`${r}`),P.dataset.pos||(P.dataset.pos=m?"top":"bot");const k=p*(r?.2:1)+(r?0:h*C);P.style.setProperty("--y",`${m?k:-1*k}px`),P.style.setProperty("--g",`${h}`),P.style.setProperty("--s",""+(1-(r?x:0))),p+=P.offsetHeight,x+=.025})}},[r,u,n]),j.createElement("div",{ref:l,className:"Toastify",id:y,onMouseEnter:()=>{n&&(i(!1),z.pause())},onMouseLeave:v},s((g,N)=>{const h=N.length?{...d}:{...d,pointerEvents:"none"};return j.createElement("div",{className:w(g),style:h,key:`container-${g}`},N.map(m=>{let{content:p,props:x}=m;return j.createElement(Px,{...x,stacked:n,collapseAll:v,isIn:a(x.toastId,x.containerId),style:x.style,key:`toast-${x.key}`},p)}))}))}const gt=()=>{const e=new Date().getFullYear();return o.jsx(o.Fragment,{children:o.jsxs("div",{children:[o.jsx("div",{className:"footer_section layout_padding",children:o.jsxs("div",{className:"container",children:[o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-md-12"})}),o.jsx("div",{className:"footer_section_2",children:o.jsxs("div",{className:"row",children:[o.jsxs("div",{className:"col-md-4",children:[o.jsx("h2",{className:"useful_text",children:"QUICK LINKS"}),o.jsx("div",{className:"footer_menu",children:o.jsxs("ul",{children:[o.jsx("li",{children:o.jsx("a",{href:"index.html",children:"Home"})}),o.jsx("li",{children:o.jsx("a",{href:"about.html",children:"About"})}),o.jsx("li",{children:o.jsx("a",{href:"services.html",children:"Services"})}),o.jsx("li",{children:o.jsx("a",{href:"projects.html",children:"Projects"})}),o.jsx("li",{children:o.jsx("a",{href:"contact.html",children:"Contact Us"})})]})})]}),o.jsxs("div",{className:"col-md-4",children:[o.jsx("h2",{className:"useful_text",children:"Work Portfolio"}),o.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"})]}),o.jsxs("div",{className:"col-md-4",children:[o.jsx("h2",{className:"useful_text",children:"SIGN UP TO OUR NEWSLETTER"}),o.jsxs("div",{className:"form-group",children:[o.jsx("textarea",{className:"update_mail",placeholder:"Enter Your Email",rows:5,id:"comment",name:"Enter Your Email",defaultValue:""}),o.jsx("div",{className:"subscribe_bt",children:o.jsx("a",{href:"#",children:"Subscribe"})})]})]})]})}),o.jsx("div",{className:"social_icon",children:o.jsxs("ul",{children:[o.jsx("li",{children:o.jsx("a",{href:"#",children:o.jsx("i",{className:"fa fa-facebook","aria-hidden":"true"})})}),o.jsx("li",{children:o.jsx("a",{href:"#",children:o.jsx("i",{className:"fa fa-twitter","aria-hidden":"true"})})}),o.jsx("li",{children:o.jsx("a",{href:"#",children:o.jsx("i",{className:"fa fa-linkedin","aria-hidden":"true"})})}),o.jsx("li",{children:o.jsx("a",{href:"#",children:o.jsx("i",{className:"fa fa-instagram","aria-hidden":"true"})})})]})})]})}),o.jsx("div",{className:"copyright_section",children:o.jsx("div",{className:"container",children:o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-sm-12",children:o.jsxs("p",{className:"copyright_text",children:[e," All Rights Reserved."]})})})})})]})})},bx="/assets/logo-Cb1x1exd.png",ct=()=>{var i,l;const{user:e}=pr(s=>({...s.auth})),t=wi(),n=_i(),r=()=>{t(f1()),n("/")};return o.jsx(o.Fragment,{children:o.jsx("div",{className:"navbar navbar-expand-lg w-100",style:{backgroundColor:"#000000",position:"fixed",top:0,left:0,right:0,zIndex:1e3},children:o.jsxs("div",{className:"container-fluid d-flex align-items-center justify-content-between",children:[o.jsxs("div",{className:"d-flex align-items-center",children:[o.jsx("img",{src:bx,alt:"logo",width:"75",height:"75",className:"img-fluid"}),o.jsx("p",{style:{display:"inline-block",fontStyle:"italic",fontSize:"14px",color:"white",margin:"0 0 0 10px"}})]}),o.jsxs("div",{className:"collapse navbar-collapse",id:"navbarSupportedContent",children:[o.jsxs("ul",{className:"navbar-nav ml-auto",children:[o.jsx("li",{className:"nav-item active",children:o.jsx(Le,{to:"/",className:"nav-link",children:"Home"})}),o.jsx("li",{className:"nav-item",children:o.jsx(Le,{to:"/services",className:"nav-link",children:"Services"})}),o.jsx("li",{className:"nav-item",children:o.jsx(Le,{to:"/about",className:"nav-link",children:"About"})}),o.jsx("li",{className:"nav-item",children:o.jsx(Le,{to:"/projects",className:"nav-link",children:"Project"})}),o.jsx("li",{className:"nav-item",children:o.jsx(Le,{to:"/contact",className:"nav-link",children:"Contact"})})]}),(i=e==null?void 0:e.result)!=null&&i._id?o.jsx(Le,{to:"/dashboard",children:"Dashboard"}):o.jsx(Le,{to:"/register",className:"nav-link",children:"Register"}),(l=e==null?void 0:e.result)!=null&&l._id?o.jsx(Le,{to:"/login",children:o.jsx("p",{className:"header-text",onClick:r,children:"Logout"})}):o.jsx(Le,{to:"/login",className:"nav-link",children:"Login"})]})]})})})},Lx=()=>o.jsxs(o.Fragment,{children:[o.jsx(ct,{}),o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{}),o.jsxs("div",{children:[o.jsx("div",{className:"header_section",children:o.jsx("div",{className:"banner_section layout_padding",children:o.jsxs("div",{id:"my_slider",className:"carousel slide","data-ride":"carousel",children:[o.jsxs("div",{className:"carousel-inner",children:[o.jsx("div",{className:"carousel-item active",children:o.jsx("div",{className:"container",children:o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-sm-12",children:o.jsxs("div",{className:"banner_taital_main",children:[o.jsx("h1",{className:"banner_taital",children:"Reinventing real estate investment"}),o.jsxs("p",{className:"banner_text",children:["Owners/operators, and real estate investment firms to excel in what they do best: finding new opportunities"," "]}),o.jsxs("div",{className:"btn_main",children:[o.jsx("div",{className:"started_text active",children:o.jsx("a",{href:"#",children:"Contact US"})}),o.jsx("div",{className:"started_text",children:o.jsx("a",{href:"#",children:"About Us"})})]})]})})})})}),o.jsx("div",{className:"carousel-item",children:o.jsx("div",{className:"container",children:o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-sm-12",children:o.jsxs("div",{className:"banner_taital_main",children:[o.jsx("h1",{className:"banner_taital",children:"streamline investment management"}),o.jsxs("p",{className:"banner_text",children:["Best possible experience to our customers and their investors."," "]}),o.jsxs("div",{className:"btn_main",children:[o.jsx("div",{className:"started_text active",children:o.jsx("a",{href:"#",children:"Contact US"})}),o.jsx("div",{className:"started_text",children:o.jsx("a",{href:"#",children:"About Us"})})]})]})})})})}),o.jsx("div",{className:"carousel-item",children:o.jsx("div",{className:"container",children:o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-sm-12",children:o.jsxs("div",{className:"banner_taital_main",children:[o.jsx("h1",{className:"banner_taital",children:"Increase your efficiency and security"}),o.jsxs("p",{className:"banner_text",children:["All-in-one real estate investment management platform with 100% security tools"," "]}),o.jsxs("div",{className:"btn_main",children:[o.jsx("div",{className:"started_text active",children:o.jsx("a",{href:"#",children:"Contact US"})}),o.jsx("div",{className:"started_text",children:o.jsx("a",{href:"#",children:"About Us"})})]})]})})})})})]}),o.jsx("a",{className:"carousel-control-prev",href:"#my_slider",role:"button","data-slide":"prev",children:o.jsx("i",{className:"fa fa-angle-left"})}),o.jsx("a",{className:"carousel-control-next",href:"#my_slider",role:"button","data-slide":"next",children:o.jsx("i",{className:"fa fa-angle-right"})})]})})}),o.jsx("div",{className:"services_section layout_padding",children:o.jsxs("div",{className:"container-fluid",children:[o.jsx("div",{className:"row",children:o.jsxs("div",{className:"col-sm-12",children:[o.jsx("h1",{className:"services_taital",children:"Our Services"}),o.jsx("p",{className:"services_text_1",children:"your documents, always and immediately within reach"})]})}),o.jsx("div",{className:"services_section_2",children:o.jsxs("div",{className:"row",children:[o.jsx("div",{className:"col-lg-3 col-sm-6",children:o.jsxs("div",{className:"box_main active",children:[o.jsx("div",{className:"service_img",children:o.jsx("img",{src:"images/icon-1.png"})}),o.jsx("h4",{className:"development_text",children:"Dedication Services"}),o.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"}),o.jsx("div",{className:"readmore_bt",children:o.jsx("a",{href:"#",children:"Read More"})})]})}),o.jsx("div",{className:"col-lg-3 col-sm-6",children:o.jsxs("div",{className:"box_main",children:[o.jsx("div",{className:"service_img",children:o.jsx("img",{src:"images/icon-2.png"})}),o.jsx("h4",{className:"development_text",children:"Building work Reports"}),o.jsx("p",{className:"services_text",children:"Deliver all the reports your investors need. Eliminate manual work and human errors with automatic distribution and allocation"}),o.jsx("div",{className:"readmore_bt",children:o.jsx("a",{href:"#",children:"Read More"})})]})}),o.jsx("div",{className:"col-lg-3 col-sm-6",children:o.jsxs("div",{className:"box_main",children:[o.jsx("div",{className:"service_img",children:o.jsx("img",{src:"images/icon-3.png"})}),o.jsx("h4",{className:"development_text",children:"Reporting continuously"}),o.jsx("p",{className:"services_text",children:"Streamlining investor interactions, gaining complete visibility into your data, and using smart filters to create automatic workflows"}),o.jsx("div",{className:"readmore_bt",children:o.jsx("a",{href:"#",children:"Read More"})})]})}),o.jsx("div",{className:"col-lg-3 col-sm-6",children:o.jsxs("div",{className:"box_main",children:[o.jsx("div",{className:"service_img",children:o.jsx("img",{src:"images/icon-4.png"})}),o.jsx("h4",{className:"development_text",children:"Manage your investment "}),o.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"}),o.jsx("div",{className:"readmore_bt",children:o.jsx("a",{href:"#",children:"Read More"})})]})})]})})]})}),o.jsxs("div",{className:"projects_section layout_padding",children:[o.jsx("div",{className:"container",children:o.jsx("div",{className:"row",children:o.jsxs("div",{className:"col-md-12",children:[o.jsx("h1",{className:"projects_taital",children:"Projects"}),o.jsx("div",{className:"nav-tabs-navigation",children:o.jsx("div",{className:"nav-tabs-wrapper",children:o.jsxs("ul",{className:"nav ","data-tabs":"tabs",children:[o.jsx("li",{className:"nav-item",children:o.jsx("a",{className:"nav-link active",href:"#","data-toggle":"tab",children:"Category filter"})}),o.jsx("li",{className:"nav-item",children:o.jsx("a",{className:"nav-link ",href:"#","data-toggle":"tab",children:"All"})}),o.jsx("li",{className:"nav-item",children:o.jsx("a",{className:"nav-link ",href:"#","data-toggle":"tab",children:"Paintingl"})}),o.jsx("li",{className:"nav-item",children:o.jsx("a",{className:"nav-link ",href:"#","data-toggle":"tab",children:"Reconstructionl"})}),o.jsx("li",{className:"nav-item",children:o.jsx("a",{className:"nav-link ",href:"#","data-toggle":"tab",children:"Repairsl"})}),o.jsx("li",{className:"nav-item",children:o.jsx("a",{className:"nav-link ",href:"#","data-toggle":"tab",children:"Residentall"})})]})})})]})})}),o.jsx("div",{className:"projects_section_2 layout_padding",children:o.jsx("div",{className:"container",children:o.jsx("div",{className:"pets_section",children:o.jsx("div",{className:"pets_section_2",children:o.jsx("div",{id:"main_slider",className:"carousel slide","data-ride":"carousel",children:o.jsxs("div",{className:"carousel-inner",children:[o.jsx("div",{className:"carousel-item active",children:o.jsxs("div",{className:"row",children:[o.jsxs("div",{className:"col-md-4",children:[o.jsxs("div",{className:"container_main",children:[o.jsx("img",{src:"images/img-1.png",alt:!0,className:"image"}),o.jsx("div",{className:"overlay",children:o.jsx("div",{className:"text",children:o.jsx("h4",{className:"some_text",children:o.jsx("i",{className:"fa fa-link","aria-hidden":"true"})})})})]}),o.jsxs("div",{className:"project_main",children:[o.jsx("h2",{className:"work_text",children:"Home Work"}),o.jsx("p",{className:"dummy_text",children:"alteration in some form, by injected humour, or randomised words which don't look even slightly believable. If you are going to use"})]})]}),o.jsxs("div",{className:"col-md-4",children:[o.jsxs("div",{className:"container_main",children:[o.jsx("img",{src:"images/img-2.png",alt:!0,className:"image"}),o.jsx("div",{className:"overlay",children:o.jsx("div",{className:"text",children:o.jsx("h4",{className:"some_text",children:o.jsx("i",{className:"fa fa-link","aria-hidden":"true"})})})})]}),o.jsxs("div",{className:"project_main",children:[o.jsx("h2",{className:"work_text",children:"Home Work"}),o.jsx("p",{className:"dummy_text",children:"alteration in some form, by injected humour, or randomised words which don't look even slightly believable. If you are going to use"})]})]}),o.jsxs("div",{className:"col-md-4",children:[o.jsxs("div",{className:"container_main",children:[o.jsx("img",{src:"images/img-3.png",alt:!0,className:"image"}),o.jsx("div",{className:"overlay",children:o.jsx("div",{className:"text",children:o.jsx("h4",{className:"some_text",children:o.jsx("i",{className:"fa fa-link","aria-hidden":"true"})})})})]}),o.jsxs("div",{className:"project_main",children:[o.jsx("h2",{className:"work_text",children:"Home Work"}),o.jsx("p",{className:"dummy_text",children:"alteration in some form, by injected humour, or randomised words which don't look even slightly believable. If you are going to use"})]})]})]})}),o.jsx("div",{className:"carousel-item",children:o.jsxs("div",{className:"row",children:[o.jsxs("div",{className:"col-md-4",children:[o.jsxs("div",{className:"container_main",children:[o.jsx("img",{src:"images/img-1.png",alt:!0,className:"image"}),o.jsx("div",{className:"overlay",children:o.jsx("div",{className:"text",children:o.jsx("h4",{className:"some_text",children:o.jsx("i",{className:"fa fa-link","aria-hidden":"true"})})})})]}),o.jsxs("div",{className:"project_main",children:[o.jsx("h2",{className:"work_text",children:"Home Work"}),o.jsx("p",{className:"dummy_text",children:"alteration in some form, by injected humour, or randomised words which don't look even slightly believable. If you are going to use"})]})]}),o.jsxs("div",{className:"col-md-4",children:[o.jsxs("div",{className:"container_main",children:[o.jsx("img",{src:"images/img-2.png",alt:!0,className:"image"}),o.jsx("div",{className:"overlay",children:o.jsx("div",{className:"text",children:o.jsx("h4",{className:"some_text",children:o.jsx("i",{className:"fa fa-link","aria-hidden":"true"})})})})]}),o.jsxs("div",{className:"project_main",children:[o.jsx("h2",{className:"work_text",children:"Home Work"}),o.jsx("p",{className:"dummy_text",children:"alteration in some form, by injected humour, or randomised words which don't look even slightly believable. If you are going to use"})]})]}),o.jsxs("div",{className:"col-md-4",children:[o.jsxs("div",{className:"container_main",children:[o.jsx("img",{src:"images/img-3.png",alt:!0,className:"image"}),o.jsx("div",{className:"overlay",children:o.jsx("div",{className:"text",children:o.jsx("h4",{className:"some_text",children:o.jsx("i",{className:"fa fa-link","aria-hidden":"true"})})})})]}),o.jsxs("div",{className:"project_main",children:[o.jsx("h2",{className:"work_text",children:"Home Work"}),o.jsx("p",{className:"dummy_text",children:"alteration in some form, by injected humour, or randomised words which don't look even slightly believable. If you are going to use"})]})]})]})}),o.jsx("div",{className:"carousel-item",children:o.jsxs("div",{className:"row",children:[o.jsxs("div",{className:"col-md-4",children:[o.jsxs("div",{className:"container_main",children:[o.jsx("img",{src:"images/img-1.png",alt:!0,className:"image"}),o.jsx("div",{className:"overlay",children:o.jsx("div",{className:"text",children:o.jsx("h4",{className:"some_text",children:o.jsx("i",{className:"fa fa-link","aria-hidden":"true"})})})})]}),o.jsxs("div",{className:"project_main",children:[o.jsx("h2",{className:"work_text",children:"Home Work"}),o.jsx("p",{className:"dummy_text",children:"alteration in some form, by injected humour, or randomised words which don't look even slightly believable. If you are going to use"})]})]}),o.jsxs("div",{className:"col-md-4",children:[o.jsxs("div",{className:"container_main",children:[o.jsx("img",{src:"images/img-2.png",alt:!0,className:"image"}),o.jsx("div",{className:"overlay",children:o.jsx("div",{className:"text",children:o.jsx("h4",{className:"some_text",children:o.jsx("i",{className:"fa fa-link","aria-hidden":"true"})})})})]}),o.jsxs("div",{className:"project_main",children:[o.jsx("h2",{className:"work_text",children:"Home Work"}),o.jsx("p",{className:"dummy_text",children:"alteration in some form, by injected humour, or randomised words which don't look even slightly believable. If you are going to use"})]})]}),o.jsxs("div",{className:"col-md-4",children:[o.jsxs("div",{className:"container_main",children:[o.jsx("img",{src:"images/img-3.png",alt:!0,className:"image"}),o.jsx("div",{className:"overlay",children:o.jsx("div",{className:"text",children:o.jsx("h4",{className:"some_text",children:o.jsx("i",{className:"fa fa-link","aria-hidden":"true"})})})})]}),o.jsxs("div",{className:"project_main",children:[o.jsx("h2",{className:"work_text",children:"Home Work"}),o.jsx("p",{className:"dummy_text",children:"alteration in some form, by injected humour, or randomised words which don't look even slightly believable. If you are going to use"})]})]})]})})]})})})})})})]})]}),o.jsx(gt,{})]}),Mx=()=>o.jsxs(o.Fragment,{children:[o.jsx(ct,{}),o.jsxs("div",{className:"about_section layout_padding",children:[o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{}),o.jsx("div",{className:"container",children:o.jsxs("div",{className:"row",children:[o.jsxs("div",{className:"col-md-6",children:[o.jsx("h1",{className:"about_taital",children:"About Us"}),o.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"," "]}),o.jsx("div",{className:"read_bt_1",children:o.jsx("a",{href:"#",children:"Read More"})})]}),o.jsx("div",{className:"col-md-6",children:o.jsx("div",{className:"about_img",children:o.jsx("div",{className:"video_bt",children:o.jsx("div",{className:"play_icon",children:o.jsx("img",{src:"images/play-icon.png"})})})})})]})}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{})]}),o.jsx(gt,{})]}),Fx=()=>o.jsxs(o.Fragment,{children:[o.jsx(ct,{}),o.jsxs("div",{className:"contact_section layout_padding",children:[o.jsx("div",{className:"container",children:o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-md-12",children:o.jsx("h1",{className:"contact_taital",children:"Contact Us"})})})}),o.jsx("div",{className:"container-fluid",children:o.jsx("div",{className:"contact_section_2",children:o.jsxs("div",{className:"row",children:[o.jsx("div",{className:"col-md-6",children:o.jsx("form",{action:!0,children:o.jsxs("div",{className:"mail_section_1",children:[o.jsx("input",{type:"text",className:"mail_text",placeholder:"Name",name:"Name"}),o.jsx("input",{type:"text",className:"mail_text",placeholder:"Phone Number",name:"Phone Number"}),o.jsx("input",{type:"text",className:"mail_text",placeholder:"Email",name:"Email"}),o.jsx("textarea",{className:"massage-bt",placeholder:"Massage",rows:5,id:"comment",name:"Massage",defaultValue:""}),o.jsx("div",{className:"send_bt",children:o.jsx("a",{href:"#",children:"SEND"})})]})})}),o.jsx("div",{className:"col-md-6 padding_left_15",children:o.jsx("div",{className:"contact_img",children:o.jsx("img",{src:"images/contact-img.png"})})})]})})})]}),o.jsx(gt,{})]});var wt=function(){return wt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n{const[e,t]=_.useState(sw),[n,r]=_.useState(!1),{loading:i,error:l}=pr(S=>({...S.auth})),{title:s,email:a,password:u,firstName:c,middleName:d,lastName:f,confirmPassword:y,termsconditions:w,userType:v}=e,g=wi(),N=_i();_.useEffect(()=>{l&&z.error(l)},[l]),_.useEffect(()=>{r(s!=="None"&&a&&u&&c&&d&&f&&y&&w&&v!=="")},[s,a,u,c,d,f,y,w,v]);const h=S=>{if(S.preventDefault(),u!==y)return z.error("Password should match");n?g(al({formValue:e,navigate:N,toast:z})):z.error("Please fill in all fields and select all checkboxes")},m=S=>S.charAt(0).toUpperCase()+S.slice(1),p=S=>{const{name:C,value:P,type:k,checked:b}=S.target;t(k==="checkbox"?L=>({...L,[C]:b}):L=>({...L,[C]:C==="email"||C==="password"||C==="confirmPassword"?P:m(P)}))},x=S=>{t(C=>({...C,userType:S.target.value}))};return o.jsxs(o.Fragment,{children:[o.jsx(ct,{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("section",{className:"card",style:{minHeight:"100vh",backgroundColor:"#FFFFFF"},children:o.jsx("div",{className:"container-fluid px-0",children:o.jsxs("div",{className:"row gy-4 align-items-center justify-content-center",children:[o.jsx("div",{className:"col-12 col-md-0 col-xl-20 text-center text-md-start"}),o.jsx("div",{className:"col-12 col-md-6 col-xl-5",children:o.jsx("div",{className:"card border-0 rounded-4 shadow-lg",style:{width:"100%"},children:o.jsxs("div",{className:"card-body p-3 p-md-4 p-xl-5",children:[o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-12",children:o.jsxs("div",{className:"mb-4",children:[o.jsx("h2",{className:"h3",children:"Registration"}),o.jsx("h3",{style:{color:"red"},children:'All fields are mandatory to enable "Sign up"'}),o.jsx("hr",{})]})})}),o.jsx("form",{onSubmit:h,children:o.jsxs("div",{className:"row gy-3 overflow-hidden",children:[o.jsx("div",{className:"col-12",children:o.jsxs("div",{className:"form-floating mb-3",children:[o.jsxs("label",{className:"form-label",children:["Please select the role. ",o.jsx("br",{}),o.jsx("br",{})]}),o.jsxs("div",{className:"form-check form-check-inline",children:[o.jsx("input",{className:"form-check-input",type:"radio",name:"userType",value:"Lender",checked:v==="Lender",onChange:x,required:!0}),o.jsx("label",{className:"form-check-label",children:"Lender"})]}),o.jsxs("div",{className:"form-check form-check-inline",children:[o.jsx("input",{className:"form-check-input",type:"radio",name:"userType",value:"Borrower",checked:v==="Borrower",onChange:x,required:!0}),o.jsxs("label",{className:"form-check-label",children:["Borrower"," "]}),o.jsx("br",{}),o.jsx("br",{})]})]})}),o.jsxs("div",{className:"col-12",children:[o.jsxs("select",{className:"form-floating mb-3 form-control","aria-label":"Default select example",name:"title",value:s,onChange:p,children:[o.jsx("option",{value:"None",children:"Please Select Title"}),o.jsx("option",{value:"Dr",children:"Dr"}),o.jsx("option",{value:"Prof",children:"Prof"}),o.jsx("option",{value:"Mr",children:"Mr"}),o.jsx("option",{value:"Miss",children:"Miss"})]}),o.jsx("br",{})]}),o.jsx("div",{className:"col-12",children:o.jsxs("div",{className:"form-floating mb-3",children:[o.jsx("input",{type:"text",className:"form-control",value:c,name:"firstName",onChange:p,placeholder:"First Name",required:"required"}),o.jsx("label",{htmlFor:"firstName",className:"form-label",children:"First Name"})]})}),o.jsx("div",{className:"col-12",children:o.jsxs("div",{className:"form-floating mb-3",children:[o.jsx("input",{type:"text",className:"form-control",value:d,name:"middleName",onChange:p,placeholder:"Middle Name",required:"required"}),o.jsx("label",{htmlFor:"middleName",className:"form-label",children:"Middle Name"})]})}),o.jsx("div",{className:"col-12",children:o.jsxs("div",{className:"form-floating mb-3",children:[o.jsx("input",{type:"text",className:"form-control",value:f,name:"lastName",onChange:p,placeholder:"Last Name",required:"required"}),o.jsx("label",{htmlFor:"lastName",className:"form-label",children:"Last Name"})]})}),o.jsx("div",{className:"col-12",children:o.jsxs("div",{className:"form-floating mb-3",children:[o.jsx("input",{type:"email",className:"form-control",value:a,name:"email",onChange:p,placeholder:"name@example.com",required:"required"}),o.jsx("label",{htmlFor:"email",className:"form-label",children:"Email"})]})}),o.jsx("div",{className:"col-12",children:o.jsxs("div",{className:"form-floating mb-3",children:[o.jsx("input",{type:"password",className:"form-control",value:u,name:"password",onChange:p,placeholder:"Password",required:"required"}),o.jsx("label",{htmlFor:"password",className:"form-label",children:"Password"})]})}),o.jsx("div",{className:"col-12",children:o.jsxs("div",{className:"form-floating mb-3",children:[o.jsx("input",{type:"password",className:"form-control",value:y,name:"confirmPassword",onChange:p,placeholder:"confirmPassword",required:"required"}),o.jsx("label",{htmlFor:"password",className:"form-label",children:"Retype Password"})]})}),o.jsx("div",{className:"col-12",children:o.jsxs("div",{className:"form-check",children:[o.jsx("input",{className:"form-check-input",type:"checkbox",id:"termsconditions",value:w,name:"termsconditions",checked:w,onChange:p,required:!0}),o.jsxs("label",{className:"form-check-label text-secondary",htmlFor:"iAgree",children:["I agree to the"," ",o.jsx("a",{href:"#!",className:"link-primary text-decoration-none",children:"terms and conditions"})]})]})}),o.jsx("div",{className:"col-12",children:o.jsx("div",{className:"d-grid",children:o.jsxs("button",{className:"btn btn-primary btn-lg",type:"submit",style:{backgroundColor:"#fda417",border:"#fda417"},disabled:!n||i,children:[i&&o.jsx(Ip.Bars,{}),"Sign up"]})})})]})}),o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-12",children:o.jsx("div",{className:"d-flex gap-2 gap-md-4 flex-column flex-md-row justify-content-md-end mt-4",children:o.jsxs("p",{className:"m-0 text-secondary text-center",children:["Already have an account?"," ",o.jsx("a",{href:"#!",className:"link-primary text-decoration-none",children:"Sign in"})]})})})}),o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-12"})})]})})})]})})}),o.jsx(gt,{})]})},aw={email:"",password:""},uw=()=>{const[e,t]=_.useState(aw),{loading:n,error:r}=pr(d=>({...d.auth})),{email:i,password:l}=e,s=wi(),a=_i();_.useEffect(()=>{r&&z.error(r)},[r]);const u=d=>{d.preventDefault(),i&&l&&s(ol({formValue:e,navigate:a,toast:z}))},c=d=>{let{name:f,value:y}=d.target;t({...e,[f]:y})};return o.jsxs(o.Fragment,{children:[o.jsx(ct,{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("section",{className:"py-19 py-md-5 py-xl-8",style:{minHeight:"100vh",backgroundColor:"#FFFFFF"},children:o.jsx("div",{className:"container-fluid px-0",children:o.jsxs("div",{className:"row gy-4 align-items-center justify-content-center",children:[o.jsx("div",{className:"col-12 col-md-6 col-xl-20 text-center text-md-start",children:o.jsx("div",{className:"text-bg-primary",children:o.jsxs("div",{className:"px-4",children:[o.jsx("hr",{className:"border-primary-subtle mb-4"}),o.jsx("p",{className:"lead mb-5",children:"A beautiful, easy-to-use, and secure Investor Portal that gives your investors everything they may need"}),o.jsx("div",{className:"text-endx",children:o.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:o.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"})})})]})})}),o.jsx("div",{className:"col-12 col-md-6 col-xl-5",children:o.jsx("div",{className:"card border-0 rounded-4 shadow-lg",style:{width:"100%"},children:o.jsxs("div",{className:"card-body p-3 p-md-4 p-xl-5",children:[o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-12",children:o.jsx("div",{className:"mb-4",children:o.jsx("h2",{className:"h3",children:"Please Login"})})})}),o.jsx("form",{method:"POST",children:o.jsxs("div",{className:"row gy-3 overflow-hidden",children:[o.jsx("div",{className:"col-12"}),o.jsx("div",{className:"col-12"}),o.jsx("div",{className:"col-12",children:o.jsxs("div",{className:"form-floating mb-3",children:[o.jsx("input",{type:"email",className:"form-control",id:"email",placeholder:"name@example.com",value:i,name:"email",onChange:c,required:!0}),o.jsx("label",{htmlFor:"email",className:"form-label",children:"Email"})]})}),o.jsx("div",{className:"col-12",children:o.jsxs("div",{className:"form-floating mb-3",children:[o.jsx("input",{type:"password",className:"form-control",id:"password",placeholder:"Password",value:l,name:"password",onChange:c,required:!0}),o.jsx("label",{htmlFor:"password",className:"form-label",children:"Password"})]})}),o.jsx("div",{className:"col-12",children:o.jsxs("div",{className:"form-check",children:[o.jsx("input",{className:"form-check-input",type:"checkbox",name:"iAgree",id:"iAgree",required:!0}),o.jsxs("label",{className:"form-check-label text-secondary",htmlFor:"iAgree",children:["Remember me"," "]})]})}),o.jsx("div",{className:"col-12",children:o.jsx("div",{className:"d-grid",children:o.jsxs("button",{className:"btn btn-primary btn-lg",type:"submit",name:"signin",value:"Sign in",onClick:u,style:{backgroundColor:"#fda417",border:"#fda417"},children:[n&&o.jsx(Ip.Bars,{}),"Sign In"]})})})]})}),o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-12",children:o.jsx("div",{className:"d-flex gap-2 gap-md-4 flex-column flex-md-row justify-content-md-end mt-4",children:o.jsxs("p",{className:"m-0 text-secondary text-center",children:["Don't have an account?"," ",o.jsx(Le,{to:"/register",className:"link-primary text-decoration-none",children:"Register"}),o.jsx(Le,{to:"/forgotpassword",className:"nav-link",children:"Forgot Password"})]})})})}),o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-12"})})]})})})]})})}),o.jsx(gt,{})]})},cw="/assets/samplepic-BM_cnzgz.jpg",zp=()=>{const[e,t]=_.useState("propertydetails"),n=()=>{e==="propertydetails"&&t("shipping")},r=()=>{e==="shipping"&&t("propertydetails")},i=wi(),{status:l,error:s}=pr(w=>w.property),[a,u]=_.useState({propertyType:"",title:"",yearBuild:"",totalSqft:""}),[c,d]=_.useState(!1),f=w=>{u({...a,[w.target.name]:w.target.value})},y=()=>{a.propertyType&&a.title&&a.yearBuild&&a.totalSqft?(i(cl(a)),d(!0)):z.error("Please fill all fields before submitting",{position:"top-right",autoClose:3e3})};return _.useEffect(()=>{c&&(l==="succeeded"?(z.success("Property submitted successfully!",{position:"top-right",autoClose:3e3}),d(!1)):l==="failed"&&(z.error(`Failed to submit: ${s}`,{position:"top-right",autoClose:3e3}),d(!1)))},[l,s,c]),o.jsx(o.Fragment,{children:o.jsxs("div",{className:"container tabs-wrap",children:[o.jsx(ct,{}),o.jsxs("ul",{className:"nav nav-tabs",role:"tablist",children:[o.jsx("li",{role:"presentation",className:e==="propertydetails"?"active tab":"tab",children:o.jsx("a",{onClick:()=>t("propertydetails"),role:"tab",children:"Property Details"})}),o.jsx("li",{role:"presentation",className:e==="shipping"?"active tab":"tab",children:o.jsx("a",{onClick:()=>t("shipping"),role:"tab",children:"Delivery Address"})})]}),o.jsxs("div",{className:"tab-content",children:[e==="propertydetails"&&o.jsxs("div",{role:"tabpanel",className:"tab-pane active",children:[o.jsx("h3",{children:"Property Details"}),o.jsx("form",{children:o.jsxs("div",{className:"row gy-3 overflow-hidden",children:[o.jsx("div",{className:"col-12",children:o.jsxs("select",{className:"form-floating mb-3 form-control",name:"propertyType",value:a.propertyType,onChange:f,required:!0,children:[o.jsx("option",{value:"",children:"Please Select Property Type"}),o.jsx("option",{value:"Residential",children:"Residential"}),o.jsx("option",{value:"Land",children:"Land"}),o.jsx("option",{value:"Commercial",children:"Commercial"}),o.jsx("option",{value:"Industrial",children:"Industrial"}),o.jsx("option",{value:"Water",children:"Water"})]})}),o.jsx("div",{className:"col-12",children:o.jsxs("div",{className:"form-floating mb-3",children:[o.jsx("input",{type:"text",className:"form-control",name:"title",value:a.title,onChange:f,placeholder:"Property title",required:!0}),o.jsx("label",{htmlFor:"title",className:"form-label",children:"Property Title"})]})}),o.jsx("div",{className:"col-12",children:o.jsxs("div",{className:"form-floating mb-3",children:[o.jsx("input",{type:"text",className:"form-control",name:"yearBuild",value:a.yearBuild,onChange:f,placeholder:"Year build",required:!0}),o.jsx("label",{htmlFor:"yearBuild",className:"form-label",children:"Year Build"})]})})]})}),o.jsx("button",{className:"btn btn-primary continue",onClick:n,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Continue"})]}),e==="shipping"&&o.jsxs("div",{role:"tabpanel",className:"tab-pane active",children:[o.jsx("h3",{children:"Shipping Address"}),o.jsx("form",{children:o.jsx("div",{className:"row gy-3 overflow-hidden",children:o.jsx("div",{className:"col-12",children:o.jsxs("div",{className:"form-floating mb-3",children:[o.jsx("input",{type:"text",className:"form-control",name:"totalSqft",value:a.totalSqft,onChange:f,placeholder:"Total SQFT",required:!0}),o.jsx("label",{htmlFor:"totalSqft",className:"form-label",children:"Total SQFT"})]})})})}),o.jsx("button",{className:"btn btn-primary back",onClick:r,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Go Back"})," ",o.jsx("button",{type:"button",className:"btn btn-primary continue",style:{backgroundColor:"#fda417",border:"#fda417"},onClick:y,children:"Submit"})]})]})]})})},dw=()=>{const{user:e}=pr(i=>({...i.auth})),[t,n]=_.useState("dashboard"),r=()=>{switch(t){case"addProperty":return o.jsx(zp,{});case"activeProperties":return o.jsx("p",{children:"Here are your active properties."});case"closedProperties":return o.jsx("p",{children:"These are your closed properties."});default:return o.jsxs("div",{className:"d-flex justify-content-center mt-7 gap-2 p-3",children:[o.jsx("div",{className:"col-md-6",children:o.jsxs("div",{className:"card cardchildchild p-2",children:[o.jsx("div",{className:"profile1",children:o.jsx("img",{src:"https://i.imgur.com/NI5b1NX.jpg",height:90,width:90,className:"rounded-circle"})}),o.jsxs("div",{className:"d-flex flex-column justify-content-center align-items-center mt-5",children:[o.jsx("span",{className:"name",children:"Bess Wills"}),o.jsx("span",{className:"mt-1 braceletid",children:"Bracelet ID: SFG 38393"}),o.jsx("span",{className:"dummytext mt-3 p-3",children:"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Text elit more smtit. Kimto lee."})]})]})}),o.jsx("div",{className:"col-md-6",children:o.jsxs("div",{className:"card cardchildchild p-2",children:[o.jsx("div",{className:"profile1",children:o.jsx("img",{src:"https://i.imgur.com/YyoCGsa.jpg",height:90,width:90,className:"rounded-circle"})}),o.jsxs("div",{className:"d-flex flex-column justify-content-center align-items-center mt-5",children:[o.jsx("span",{className:"name",children:"Bess Wills"}),o.jsx("span",{className:"mt-1 braceletid",children:"Bracelet ID: SFG 38393"}),o.jsx("span",{className:"dummytext mt-3 p-3",children:"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Text elit more smtit. Kimto lee."})]})]})})]})}};return o.jsxs(o.Fragment,{children:[o.jsx(ct,{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsxs("div",{className:"d-flex flex-row",children:[o.jsx("div",{className:"col-md-3",children:o.jsxs("div",{className:"card card1 p-5",children:[o.jsx("img",{className:"img-fluid",src:cw,alt:"ProfileImage",style:{marginTop:"0px",maxWidth:"200px",maxHeight:"200px"}}),o.jsx("hr",{className:"hline"}),o.jsxs("div",{className:"d-flex flex-column align-items-center",children:[o.jsxs("button",{className:`btn ${t==="dashboard"?"active":""}`,onClick:()=>n("dashboard"),children:[o.jsx("i",{className:"fa fa-dashboard",style:{color:"#F74B02"}}),o.jsx("span",{children:"Dashboard"})]}),o.jsxs("button",{className:`btn mt-3 ${t==="addProperty"?"active":""}`,onClick:()=>n("addProperty"),children:[o.jsx("span",{className:"fa fa-home",style:{color:"#F74B02"}}),o.jsx("span",{children:"Add Property"})]}),o.jsxs("button",{className:`btn mt-3 ${t==="activeProperties"?"active":""}`,onClick:()=>n("activeProperties"),children:[o.jsx("span",{className:"fa fa-home",style:{color:"#F74B02"}}),o.jsx("span",{children:"Active Properties"})]}),o.jsxs("button",{className:`btn mt-3 ${t==="closedProperties"?"active":""}`,onClick:()=>n("closedProperties"),children:[o.jsx("span",{className:"fa fa-home",style:{color:"#F74B02"}}),o.jsx("span",{children:"Closed Properties"})]})]})]})}),o.jsx("div",{className:"col-md-9",children:o.jsxs("div",{className:"card card2 p-0",children:[o.jsxs("div",{className:"hello d-flex justify-content-end align-items-center mt-3",children:[o.jsxs("span",{children:["Welcome to"," ",o.jsxs("span",{style:{color:"#067ADC"},children:[e.result.title,". ",e.result.firstName," ",e.result.middleName," ",e.result.lastName]})]}),o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{})]}),o.jsx("div",{className:"tab-content p-3",children:r()})]})})]}),o.jsx(gt,{})]})};var Ap={exports:{}},fw="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",mw=fw,pw=mw;function Dp(){}function Bp(){}Bp.resetWarningCache=Dp;var hw=function(){function e(r,i,l,s,a,u){if(u!==pw){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:Bp,resetWarningCache:Dp};return n.PropTypes=n,n};Ap.exports=hw();var yw=Ap.exports;const vw=hd(yw),gw=()=>{const[e,t]=_.useState(3),n=_i();return _.useEffect(()=>{const r=setInterval(()=>{t(i=>--i)},1e3);return e===0&&n("/login"),()=>clearInterval(r)},[e,n]),o.jsx("div",{style:{marginTop:"100px"},children:o.jsxs("h5",{children:["Redirecting you in ",e," seconds"]})})},fl=({children:e})=>{const{user:t}=pr(n=>({...n.auth}));return t?e:o.jsx(gw,{})};fl.propTypes={children:vw.node.isRequired};const xw=()=>{const e=wi(),{id:t,token:n}=Cp();return _.useEffect(()=>{e(ul({id:t,token:n}))},[e,t,n]),o.jsxs(o.Fragment,{children:[o.jsx(ct,{}),o.jsxs("div",{className:"contact_section layout_padding",children:[o.jsx("div",{className:"container",children:o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-md-12",children:o.jsx("h1",{className:"contact_taital",children:"Contact Us"})})})}),o.jsx("div",{className:"container-fluid",children:o.jsx("div",{className:"contact_section_2",children:o.jsxs("div",{className:"row",children:[o.jsxs("div",{className:"col-md-6",children:[o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("h1",{className:"card-title text-center",children:o.jsxs(Le,{to:"/login",className:"glightbox play-btn mb-4",children:[" ","Email verified successfully !!! Please",o.jsx("span",{style:{color:"#F74B02"},children:" login "})," "," ","to access ..."]})})]}),o.jsx("div",{className:"col-md-6 padding_left_15",children:o.jsx("div",{className:"contact_img"})})]})})})]}),o.jsx(gt,{})]})},ww=()=>{const[e,t]=_.useState(""),[n,r]=_.useState(""),i="http://67.225.129.127:3002",l=async()=>{try{const s=await Z.post(`${i}/users/forgotpassword`,{email:e});r(s.data.message)}catch(s){console.error("Forgot Password Error:",s),r(s.response.data.message)}};return o.jsxs(o.Fragment,{children:[o.jsx(ct,{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsxs("section",{className:"card",style:{minHeight:"100vh",backgroundColor:"#FFFFFF"},children:[o.jsx("div",{className:"container-fluid px-0",children:o.jsxs("div",{className:"row gy-4 align-items-center justify-content-center",children:[o.jsx("div",{className:"col-12 col-md-0 col-xl-20 text-center text-md-start"}),o.jsx("div",{className:"col-12 col-md-6 col-xl-5",children:o.jsx("div",{className:"card border-0 rounded-4 shadow-lg",style:{width:"100%"},children:o.jsxs("div",{className:"card-body p-3 p-md-4 p-xl-5",children:[o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-12",children:o.jsxs("div",{className:"mb-4",children:[o.jsx("h2",{className:"h3",children:"Forgot Password"}),o.jsx("hr",{})]})})}),o.jsxs("div",{className:"row gy-3 overflow-hidden",children:[o.jsx("div",{className:"col-12",children:o.jsxs("div",{className:"form-floating mb-3",children:[o.jsx("input",{type:"email",className:"form-control",value:e,onChange:s=>t(s.target.value),placeholder:"name@example.com",required:"required"}),o.jsx("label",{htmlFor:"email",className:"form-label",children:"Enter your email address to receive a password reset link"})]})}),o.jsxs("div",{className:"col-12",children:[o.jsx("div",{className:"d-grid",children:o.jsx("button",{className:"btn btn-primary btn-lg",type:"submit",style:{backgroundColor:"#fda417",border:"#fda417"},onClick:l,children:"Reset Password"})}),o.jsx("p",{style:{color:"#067ADC"},className:"card-title text-center",children:n})]})]}),o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-12",children:o.jsx("div",{className:"d-flex gap-2 gap-md-4 flex-column flex-md-row justify-content-md-end mt-4",children:o.jsxs("p",{className:"m-0 text-secondary text-center",children:["Already have an account?"," ",o.jsx(Le,{to:"/login",className:"link-primary text-decoration-none",children:"Sign In"})]})})})}),o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-12"})})]})})})]})}),o.jsx(gt,{})]})]})},Nw=()=>{const{userId:e,token:t}=Cp(),[n,r]=_.useState(""),[i,l]=_.useState(""),[s,a]=_.useState(""),u="http://67.225.129.127:3002",c=async()=>{try{if(!n||n.trim()===""){a("Password not entered"),z.error("Password not entered");return}const d=await Z.post(`${u}/users/resetpassword/${e}/${t}`,{userId:e,token:t,password:n});if(n!==i){a("Passwords do not match."),z.error("Passwords do not match.");return}else a("Password reset successfull"),z.success(d.data.message)}catch(d){console.error("Reset Password Error:",d)}};return _.useEffect(()=>{z.dismiss()},[]),o.jsxs(o.Fragment,{children:[o.jsx(ct,{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("section",{className:"card mb-0 vh-100",children:o.jsx("div",{className:"container py-10 h-100",children:o.jsx("div",{className:"row d-flex align-items-center justify-content-center h-100",children:o.jsxs("div",{className:"col-md-10 col-lg-5 col-xl-5 offset-xl-1 card mb-10",children:[o.jsx("br",{}),o.jsxs("h2",{children:["Reset Password",o.jsx("hr",{}),o.jsx("p",{className:"card-title text-center",style:{color:"#F74B02"},children:"Enter your new password:"})]}),o.jsx("input",{className:"form-control vh-10",type:"password",value:n,onChange:d=>r(d.target.value),placeholder:"Enter your new password",style:{display:"flex",gap:"35px"}}),o.jsx("br",{}),o.jsx("input",{className:"form-control",type:"password",value:i,onChange:d=>l(d.target.value),placeholder:"Confirm your new password"}),o.jsx("br",{}),o.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"}),o.jsx("p",{style:{color:"#067ADC"},className:"card-title text-center",children:s})]})})})}),o.jsx(gt,{})]})},jw=()=>o.jsxs(o.Fragment,{children:[o.jsx(ct,{}),o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{}),o.jsxs("div",{className:"col-md-18",children:[o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsxs("h1",{className:"card-title text-center",children:[" ","Thank you for joining the world's most trusted realtor investment and borrowers portal."]}),o.jsxs("h2",{children:["We reqest you to kindly ",o.jsx("span",{style:{fontSize:"2rem",color:"#fda417"},children:"check your email inbox "})," and click on the ",o.jsx("span",{style:{fontSize:"2rem",color:"#fda417"},children:"verification link "}),"to access the dashboard."]})]}),o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{}),o.jsx(gt,{})]}),Ew=()=>o.jsxs(mx,{children:[o.jsx(Rx,{}),o.jsxs(lx,{children:[o.jsx(Qe,{path:"/",element:o.jsx(Lx,{})}),o.jsx(Qe,{path:"/about",element:o.jsx(Mx,{})}),o.jsx(Qe,{path:"/contact",element:o.jsx(Fx,{})}),o.jsx(Qe,{path:"/register",element:o.jsx(ow,{})}),o.jsx(Qe,{path:"/registrationsuccess",element:o.jsx(fl,{children:o.jsx(jw,{})})}),o.jsx(Qe,{path:"/login",element:o.jsx(uw,{})}),o.jsx(Qe,{path:"/dashboard",element:o.jsx(fl,{children:o.jsx(dw,{})})}),o.jsx(Qe,{path:"/users/:id/verify/:token",element:o.jsx(xw,{})}),o.jsx(Qe,{path:"/forgotpassword",element:o.jsx(ww,{})}),o.jsx(Qe,{path:"/users/resetpassword/:userId/:token",element:o.jsx(Nw,{})}),o.jsx(Qe,{path:"/addproperty",element:o.jsx(fl,{children:o.jsx(zp,{})})})]})]});Om(document.getElementById("root")).render(o.jsx(_.StrictMode,{children:o.jsx(zv,{store:g1,children:o.jsx(Ew,{})})})); diff --git a/ef-ui/dist/index.html b/ef-ui/dist/index.html index 9169022..93e9cc3 100644 --- a/ef-ui/dist/index.html +++ b/ef-ui/dist/index.html @@ -42,7 +42,7 @@ - + diff --git a/ef-ui/src/components/EmailVerify.jsx b/ef-ui/src/components/EmailVerify.jsx index 01e592a..83bd78e 100644 --- a/ef-ui/src/components/EmailVerify.jsx +++ b/ef-ui/src/components/EmailVerify.jsx @@ -31,7 +31,7 @@ const VerifyUser = () => {
-







+




{" "}