diff --git a/ef-api/controllers/mysqlproperty.js b/ef-api/controllers/mysqlproperty.js index d2d5f87..748e217 100644 --- a/ef-api/controllers/mysqlproperty.js +++ b/ef-api/controllers/mysqlproperty.js @@ -7,7 +7,7 @@ const db = mysql.createConnection({ password: "AVNS_EPHqPilzmVjZfm8GH4G", database: "defaultdb", port: "25060", - connectTimeout: 10000, // 10 seconds + connectTimeout: 20000, // 20 seconds }); // Connect to MySQL database diff --git a/ef-ui/dist/assets/index-DbJZ5O77.js b/ef-ui/dist/assets/index-B-iE_q9C.js similarity index 96% rename from ef-ui/dist/assets/index-DbJZ5O77.js rename to ef-ui/dist/assets/index-B-iE_q9C.js index 32e3bdb..01efc8b 100644 --- a/ef-ui/dist/assets/index-DbJZ5O77.js +++ b/ef-ui/dist/assets/index-B-iE_q9C.js @@ -50,7 +50,7 @@ Error generating stack: `+l.message+` `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(i=>r.set(i)),r}static accessor(t){const r=(this[td]=this[td]={accessors:{}}).accessors,i=this.prototype;function l(s){const a=Or(s);r[a]||(Dg(i,s),r[a]=!0)}return E.isArray(t)?t.forEach(l):l(t),this}}be.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);E.reduceDescriptors(be.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});E.freezeMethods(be);function lo(e,t){const n=this||Ei,r=t||n,i=be.from(r.headers);let l=r.data;return E.forEach(e,function(a){l=a.call(n,l,i.normalize(),t?t.status:void 0)}),i.normalize(),l}function dp(e){return!!(e&&e.__CANCEL__)}function xr(e,t,n){F.call(this,e??"canceled",F.ERR_CANCELED,t,n),this.name="CanceledError"}E.inherits(xr,F,{__CANCEL__:!0});function fp(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new F("Request failed with status code "+n.status,[F.ERR_BAD_REQUEST,F.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function Ug(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Bg(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i=0,l=0,s;return t=t!==void 0?t:1e3,function(u){const c=Date.now(),d=r[l];s||(s=c),n[i]=u,r[i]=c;let f=l,y=0;for(;f!==i;)y+=n[f++],f=f%e;if(i=(i+1)%e,i===l&&(l=(l+1)%e),c-s{n=d,i=null,l&&(clearTimeout(l),l=null),e.apply(null,c)};return[(...c)=>{const d=Date.now(),f=d-n;f>=r?s(c,d):(i=c,l||(l=setTimeout(()=>{l=null,s(i)},r-f)))},()=>i&&s(i)]}const Wl=(e,t,n=3)=>{let r=0;const i=Bg(50,250);return $g(l=>{const s=l.loaded,a=l.lengthComputable?l.total:void 0,u=s-r,c=i(u),d=s<=a;r=s;const f={loaded:s,total:a,progress:a?s/a:void 0,bytes:u,rate:c||void 0,estimated:c&&a&&d?(a-s)/c:void 0,event:l,lengthComputable:a!=null,[t?"download":"upload"]:!0};e(f)},n)},nd=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},rd=e=>(...t)=>E.asap(()=>e(...t)),Wg=Re.hasStandardBrowserEnv?function(){const t=Re.navigator&&/(msie|trident)/i.test(Re.navigator.userAgent),n=document.createElement("a");let r;function i(l){let s=l;return t&&(n.setAttribute("href",s),s=n.href),n.setAttribute("href",s),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=i(window.location.href),function(s){const a=E.isString(s)?i(s):s;return a.protocol===r.protocol&&a.host===r.host}}():function(){return function(){return!0}}(),Hg=Re.hasStandardBrowserEnv?{write(e,t,n,r,i,l){const s=[e+"="+encodeURIComponent(t)];E.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),E.isString(r)&&s.push("path="+r),E.isString(i)&&s.push("domain="+i),l===!0&&s.push("secure"),document.cookie=s.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Vg(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function qg(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function mp(e,t){return e&&!Vg(t)?qg(e,t):t}const id=e=>e instanceof be?{...e}:e;function Rn(e,t){t=t||{};const n={};function r(c,d,f){return E.isPlainObject(c)&&E.isPlainObject(d)?E.merge.call({caseless:f},c,d):E.isPlainObject(d)?E.merge({},d):E.isArray(d)?d.slice():d}function i(c,d,f){if(E.isUndefined(d)){if(!E.isUndefined(c))return r(void 0,c,f)}else return r(c,d,f)}function l(c,d){if(!E.isUndefined(d))return r(void 0,d)}function s(c,d){if(E.isUndefined(d)){if(!E.isUndefined(c))return r(void 0,c)}else return r(void 0,d)}function a(c,d,f){if(f in t)return r(c,d);if(f in e)return r(void 0,c)}const u={url:l,method:l,data:l,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(c,d)=>i(id(c),id(d),!0)};return E.forEach(Object.keys(Object.assign({},e,t)),function(d){const f=u[d]||i,y=f(e[d],t[d],d);E.isUndefined(y)&&f!==a||(n[d]=y)}),n}const pp=e=>{const t=Rn({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:l,headers:s,auth:a}=t;t.headers=s=be.from(s),t.url=ap(mp(t.baseURL,t.url),e.params,e.paramsSerializer),a&&s.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):"")));let u;if(E.isFormData(n)){if(Re.hasStandardBrowserEnv||Re.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if((u=s.getContentType())!==!1){const[c,...d]=u?u.split(";").map(f=>f.trim()).filter(Boolean):[];s.setContentType([c||"multipart/form-data",...d].join("; "))}}if(Re.hasStandardBrowserEnv&&(r&&E.isFunction(r)&&(r=r(t)),r||r!==!1&&Wg(t.url))){const c=i&&l&&Hg.read(l);c&&s.set(i,c)}return t},Qg=typeof XMLHttpRequest<"u",Kg=Qg&&function(e){return new Promise(function(n,r){const i=pp(e);let l=i.data;const s=be.from(i.headers).normalize();let{responseType:a,onUploadProgress:u,onDownloadProgress:c}=i,d,f,y,N,v;function g(){N&&N(),v&&v(),i.cancelToken&&i.cancelToken.unsubscribe(d),i.signal&&i.signal.removeEventListener("abort",d)}let w=new XMLHttpRequest;w.open(i.method.toUpperCase(),i.url,!0),w.timeout=i.timeout;function h(){if(!w)return;const p=be.from("getAllResponseHeaders"in w&&w.getAllResponseHeaders()),S={data:!a||a==="text"||a==="json"?w.responseText:w.response,status:w.status,statusText:w.statusText,headers:p,config:e,request:w};fp(function(P){n(P),g()},function(P){r(P),g()},S),w=null}"onloadend"in w?w.onloadend=h:w.onreadystatechange=function(){!w||w.readyState!==4||w.status===0&&!(w.responseURL&&w.responseURL.indexOf("file:")===0)||setTimeout(h)},w.onabort=function(){w&&(r(new F("Request aborted",F.ECONNABORTED,e,w)),w=null)},w.onerror=function(){r(new F("Network Error",F.ERR_NETWORK,e,w)),w=null},w.ontimeout=function(){let x=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const S=i.transitional||up;i.timeoutErrorMessage&&(x=i.timeoutErrorMessage),r(new F(x,S.clarifyTimeoutError?F.ETIMEDOUT:F.ECONNABORTED,e,w)),w=null},l===void 0&&s.setContentType(null),"setRequestHeader"in w&&E.forEach(s.toJSON(),function(x,S){w.setRequestHeader(S,x)}),E.isUndefined(i.withCredentials)||(w.withCredentials=!!i.withCredentials),a&&a!=="json"&&(w.responseType=i.responseType),c&&([y,v]=Wl(c,!0),w.addEventListener("progress",y)),u&&w.upload&&([f,N]=Wl(u),w.upload.addEventListener("progress",f),w.upload.addEventListener("loadend",N)),(i.cancelToken||i.signal)&&(d=p=>{w&&(r(!p||p.type?new xr(null,e,w):p),w.abort(),w=null)},i.cancelToken&&i.cancelToken.subscribe(d),i.signal&&(i.signal.aborted?d():i.signal.addEventListener("abort",d)));const m=Ug(i.url);if(m&&Re.protocols.indexOf(m)===-1){r(new F("Unsupported protocol "+m+":",F.ERR_BAD_REQUEST,e));return}w.send(l||null)})},Xg=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,i;const l=function(c){if(!i){i=!0,a();const d=c instanceof Error?c:this.reason;r.abort(d instanceof F?d:new xr(d instanceof Error?d.message:d))}};let s=t&&setTimeout(()=>{s=null,l(new F(`timeout ${t} of ms exceeded`,F.ETIMEDOUT))},t);const a=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach(c=>{c.unsubscribe?c.unsubscribe(l):c.removeEventListener("abort",l)}),e=null)};e.forEach(c=>c.addEventListener("abort",l));const{signal:u}=r;return u.unsubscribe=()=>E.asap(a),u}},Yg=function*(e,t){let n=e.byteLength;if(!t||n{const i=Gg(e,t);let l=0,s,a=u=>{s||(s=!0,r&&r(u))};return new ReadableStream({async pull(u){try{const{done:c,value:d}=await i.next();if(c){a(),u.close();return}let f=d.byteLength;if(n){let y=l+=f;n(y)}u.enqueue(new Uint8Array(d))}catch(c){throw a(c),c}},cancel(u){return a(u),i.return()}},{highWaterMark:2})},ws=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",hp=ws&&typeof ReadableStream=="function",Zg=ws&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),yp=(e,...t)=>{try{return!!e(...t)}catch{return!1}},e1=hp&&yp(()=>{let e=!1;const t=new Request(Re.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),sd=64*1024,pa=hp&&yp(()=>E.isReadableStream(new Response("").body)),Hl={stream:pa&&(e=>e.body)};ws&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Hl[t]&&(Hl[t]=E.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new F(`Response type '${t}' is not supported`,F.ERR_NOT_SUPPORT,r)})})})(new Response);const t1=async e=>{if(e==null)return 0;if(E.isBlob(e))return e.size;if(E.isSpecCompliantForm(e))return(await new Request(Re.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(E.isArrayBufferView(e)||E.isArrayBuffer(e))return e.byteLength;if(E.isURLSearchParams(e)&&(e=e+""),E.isString(e))return(await Zg(e)).byteLength},n1=async(e,t)=>{const n=E.toFiniteNumber(e.getContentLength());return n??t1(t)},r1=ws&&(async e=>{let{url:t,method:n,data:r,signal:i,cancelToken:l,timeout:s,onDownloadProgress:a,onUploadProgress:u,responseType:c,headers:d,withCredentials:f="same-origin",fetchOptions:y}=pp(e);c=c?(c+"").toLowerCase():"text";let N=Xg([i,l&&l.toAbortSignal()],s),v;const g=N&&N.unsubscribe&&(()=>{N.unsubscribe()});let w;try{if(u&&e1&&n!=="get"&&n!=="head"&&(w=await n1(d,r))!==0){let S=new Request(t,{method:"POST",body:r,duplex:"half"}),C;if(E.isFormData(r)&&(C=S.headers.get("content-type"))&&d.setContentType(C),S.body){const[P,k]=nd(w,Wl(rd(u)));r=ld(S.body,sd,P,k)}}E.isString(f)||(f=f?"include":"omit");const h="credentials"in Request.prototype;v=new Request(t,{...y,signal:N,method:n.toUpperCase(),headers:d.normalize().toJSON(),body:r,duplex:"half",credentials:h?f:void 0});let m=await fetch(v);const p=pa&&(c==="stream"||c==="response");if(pa&&(a||p&&g)){const S={};["status","statusText","headers"].forEach(b=>{S[b]=m[b]});const C=E.toFiniteNumber(m.headers.get("content-length")),[P,k]=a&&nd(C,Wl(rd(a),!0))||[];m=new Response(ld(m.body,sd,P,()=>{k&&k(),g&&g()}),S)}c=c||"text";let x=await Hl[E.findKey(Hl,c)||"text"](m,e);return!p&&g&&g(),await new Promise((S,C)=>{fp(S,C,{data:x,headers:be.from(m.headers),status:m.status,statusText:m.statusText,config:e,request:v})})}catch(h){throw g&&g(),h&&h.name==="TypeError"&&/fetch/i.test(h.message)?Object.assign(new F("Network Error",F.ERR_NETWORK,e,v),{cause:h.cause||h}):F.from(h,h&&h.code,e,v)}}),ha={http:gg,xhr:Kg,fetch:r1};E.forEach(ha,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const od=e=>`- ${e}`,i1=e=>E.isFunction(e)||e===null||e===!1,vp={getAdapter:e=>{e=E.isArray(e)?e:[e];const{length:t}=e;let n,r;const i={};for(let l=0;l`adapter ${a} `+(u===!1?"is not supported by the environment":"is not available in the build"));let s=t?l.length>1?`since : `+l.map(od).join(` `):" "+od(l[0]):"as no adapter specified";throw new F("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return r},adapters:ha};function so(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new xr(null,e)}function ad(e){return so(e),e.headers=be.from(e.headers),e.data=lo.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),vp.getAdapter(e.adapter||Ei.adapter)(e).then(function(r){return so(e),r.data=lo.call(e,e.transformResponse,r),r.headers=be.from(r.headers),r},function(r){return dp(r)||(so(e),r&&r.response&&(r.response.data=lo.call(e,e.transformResponse,r.response),r.response.headers=be.from(r.response.headers))),Promise.reject(r)})}const gp="1.7.7",_u={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{_u[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const ud={};_u.transitional=function(t,n,r){function i(l,s){return"[Axios v"+gp+"] Transitional option '"+l+"'"+s+(r?". "+r:"")}return(l,s,a)=>{if(t===!1)throw new F(i(s," has been removed"+(n?" in "+n:"")),F.ERR_DEPRECATED);return n&&!ud[s]&&(ud[s]=!0,console.warn(i(s," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(l,s,a):!0}};function l1(e,t,n){if(typeof e!="object")throw new F("options must be an object",F.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const l=r[i],s=t[l];if(s){const a=e[l],u=a===void 0||s(a,l,e);if(u!==!0)throw new F("option "+l+" must be "+u,F.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new F("Unknown option "+l,F.ERR_BAD_OPTION)}}const ya={assertOptions:l1,validators:_u},It=ya.validators;class jn{constructor(t){this.defaults=t,this.interceptors={request:new ed,response:new ed}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let i;Error.captureStackTrace?Error.captureStackTrace(i={}):i=new Error;const l=i.stack?i.stack.replace(/^.+\n/,""):"";try{r.stack?l&&!String(r.stack).endsWith(l.replace(/^.+\n.+\n/,""))&&(r.stack+=` -`+l):r.stack=l}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Rn(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:l}=n;r!==void 0&&ya.assertOptions(r,{silentJSONParsing:It.transitional(It.boolean),forcedJSONParsing:It.transitional(It.boolean),clarifyTimeoutError:It.transitional(It.boolean)},!1),i!=null&&(E.isFunction(i)?n.paramsSerializer={serialize:i}:ya.assertOptions(i,{encode:It.function,serialize:It.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s=l&&E.merge(l.common,l[n.method]);l&&E.forEach(["delete","get","head","post","put","patch","common"],v=>{delete l[v]}),n.headers=be.concat(s,l);const a=[];let u=!0;this.interceptors.request.forEach(function(g){typeof g.runWhen=="function"&&g.runWhen(n)===!1||(u=u&&g.synchronous,a.unshift(g.fulfilled,g.rejected))});const c=[];this.interceptors.response.forEach(function(g){c.push(g.fulfilled,g.rejected)});let d,f=0,y;if(!u){const v=[ad.bind(this),void 0];for(v.unshift.apply(v,a),v.push.apply(v,c),y=v.length,d=Promise.resolve(n);f{if(!r._listeners)return;let l=r._listeners.length;for(;l-- >0;)r._listeners[l](i);r._listeners=null}),this.promise.then=i=>{let l;const s=new Promise(a=>{r.subscribe(a),l=a}).then(i);return s.cancel=function(){r.unsubscribe(l)},s},t(function(l,s,a){r.reason||(r.reason=new xr(l,s,a),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new Cu(function(i){t=i}),cancel:t}}}function s1(e){return function(n){return e.apply(null,n)}}function o1(e){return E.isObject(e)&&e.isAxiosError===!0}const va={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(va).forEach(([e,t])=>{va[t]=e});function xp(e){const t=new jn(e),n=Ym(jn.prototype.request,t);return E.extend(n,jn.prototype,t,{allOwnKeys:!0}),E.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return xp(Rn(e,i))},n}const G=xp(Ei);G.Axios=jn;G.CanceledError=xr;G.CancelToken=Cu;G.isCancel=dp;G.VERSION=gp;G.toFormData=xs;G.AxiosError=F;G.Cancel=G.CanceledError;G.all=function(t){return Promise.all(t)};G.spread=s1;G.isAxiosError=o1;G.mergeConfig=Rn;G.AxiosHeaders=be;G.formToJSON=e=>cp(E.isHTMLForm(e)?new FormData(e):e);G.getAdapter=vp.getAdapter;G.HttpStatusCode=va;G.default=G;const a1="http://localhost:3002",In=G.create({baseURL:a1});In.interceptors.request.use(e=>(localStorage.getItem("profile")&&(e.headers.Authorization=`Bearer ${JSON.parse(localStorage.getItem("profile")).token}`),e));const u1=e=>In.post("/users/signup",e),c1=e=>In.post("/users/signin",e),d1=(e,t,n)=>In.get(`/users/${e}/verify/${t}`,n),f1=e=>In.post("/properties",e),m1=e=>In.get(`/properties/user/${e}`,e),p1=e=>In.get(`/properties/${e}`,e),ol=un("auth/login",async({formValue:e,navigate:t},{rejectWithValue:n})=>{try{const r=await c1(e);return t("/dashboard"),r.data}catch(r){return n(r.response.data)}}),al=un("auth/register",async({formValue:e,navigate:t,toast:n},{rejectWithValue:r})=>{try{const i=await u1(e);return n.success("Register Successfully"),t("/registrationsuccess"),i.data}catch(i){return r(i.response.data)}}),oo=un("auth/updateUser",async({id:e,data:t},{rejectWithValue:n})=>{try{return(await(void 0)(t,e)).data}catch(r){return n(r.response.data)}}),wp=ju({name:"auth",initialState:{user:null,error:"",loading:!1},reducers:{setUser:(e,t)=>{e.user=t.payload},setLogout:e=>{localStorage.clear(),e.user=null},setUserDetails:(e,t)=>{e.user=t.payload}},extraReducers:e=>{e.addCase(ol.pending,t=>{t.loading=!0}).addCase(ol.fulfilled,(t,n)=>{t.loading=!1,localStorage.setItem("profile",JSON.stringify({...n.payload})),t.user=n.payload}).addCase(ol.rejected,(t,n)=>{t.loading=!1,t.error=n.payload.message}).addCase(al.pending,t=>{t.loading=!0}).addCase(al.fulfilled,(t,n)=>{t.loading=!1,localStorage.setItem("profile",JSON.stringify({...n.payload})),t.user=n.payload}).addCase(al.rejected,(t,n)=>{t.loading=!1,t.error=n.payload.message}).addCase(oo.pending,t=>{t.loading=!0}).addCase(oo.fulfilled,(t,n)=>{t.loading=!1,t.user=n.payload}).addCase(oo.rejected,(t,n)=>{t.loading=!1,t.error=n.payload.message})}}),{setUser:bw,setLogout:h1,setUserDetails:Lw}=wp.actions,y1=wp.reducer,ao=un("user/showUser",async({id:e,data:t},{rejectWithValue:n})=>{try{const r=await(void 0)(t,e);return console.log("dsdsdsds22",r),r.data}catch(r){return n(r.response.data)}}),ul=un("user/verifyEmail",async({id:e,token:t,data:n},{rejectWithValue:r})=>{try{return(await d1(e,t,n)).data.message}catch(i){return r(i.response.data)}}),v1=ju({name:"user",initialState:{users:[],error:"",loading:!1,verified:!1},reducers:{},extraReducers:e=>{e.addCase(ao.pending,t=>{t.loading=!0}).addCase(ao.fulfilled,(t,n)=>{t.loading=!1,localStorage.setItem("profile",JSON.stringify({...n.payload})),t.users=Array.isArray(n.payload)?n.payload:[]}).addCase(ao.rejected,(t,n)=>{t.loading=!1,t.error=n.payload}).addCase(ul.pending,t=>{t.loading=!0,t.error=null}).addCase(ul.fulfilled,(t,n)=>{t.loading=!1,t.verified=n.payload==="Email verified successfully"}).addCase(ul.rejected,(t,n)=>{t.loading=!1,t.error=n.error.message})}}),g1=v1.reducer,cl=un("property/submitProperty",async(e,{rejectWithValue:t})=>{try{return(await f1(e)).data}catch(n){return t(n.response.data)}}),dl=un("property/fetchUserProperties",async(e,{rejectWithValue:t})=>{try{return(await m1(e)).data}catch(n){return t(n.response.data)}}),fl=un("property/fetchPropertyById",async(e,{rejectWithValue:t})=>{try{return(await p1(e)).data}catch(n){return t(n.response.data)}}),x1=ju({name:"property",initialState:{property:{},status:"idle",error:null,userProperties:[],selectedProperty:null},reducers:{},extraReducers:e=>{e.addCase(cl.pending,t=>{t.status="loading"}).addCase(cl.fulfilled,(t,n)=>{t.status="succeeded",t.property=n.payload}).addCase(cl.rejected,(t,n)=>{t.status="failed",t.error=n.payload}).addCase(dl.pending,t=>{t.status="loading"}).addCase(dl.fulfilled,(t,n)=>{t.status="succeeded",t.userProperties=n.payload}).addCase(dl.rejected,(t,n)=>{t.status="failed",t.error=n.payload}).addCase(fl.pending,t=>{t.status="loading"}).addCase(fl.fulfilled,(t,n)=>{t.status="succeeded",t.selectedProperty=n.payload}).addCase(fl.rejected,(t,n)=>{t.status="failed",t.error=n.payload})}}),w1=x1.reducer,N1=m0({reducer:{auth:y1,user:g1,property:w1}});/** +`+l):r.stack=l}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Rn(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:l}=n;r!==void 0&&ya.assertOptions(r,{silentJSONParsing:It.transitional(It.boolean),forcedJSONParsing:It.transitional(It.boolean),clarifyTimeoutError:It.transitional(It.boolean)},!1),i!=null&&(E.isFunction(i)?n.paramsSerializer={serialize:i}:ya.assertOptions(i,{encode:It.function,serialize:It.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s=l&&E.merge(l.common,l[n.method]);l&&E.forEach(["delete","get","head","post","put","patch","common"],v=>{delete l[v]}),n.headers=be.concat(s,l);const a=[];let u=!0;this.interceptors.request.forEach(function(g){typeof g.runWhen=="function"&&g.runWhen(n)===!1||(u=u&&g.synchronous,a.unshift(g.fulfilled,g.rejected))});const c=[];this.interceptors.response.forEach(function(g){c.push(g.fulfilled,g.rejected)});let d,f=0,y;if(!u){const v=[ad.bind(this),void 0];for(v.unshift.apply(v,a),v.push.apply(v,c),y=v.length,d=Promise.resolve(n);f{if(!r._listeners)return;let l=r._listeners.length;for(;l-- >0;)r._listeners[l](i);r._listeners=null}),this.promise.then=i=>{let l;const s=new Promise(a=>{r.subscribe(a),l=a}).then(i);return s.cancel=function(){r.unsubscribe(l)},s},t(function(l,s,a){r.reason||(r.reason=new xr(l,s,a),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new Cu(function(i){t=i}),cancel:t}}}function s1(e){return function(n){return e.apply(null,n)}}function o1(e){return E.isObject(e)&&e.isAxiosError===!0}const va={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(va).forEach(([e,t])=>{va[t]=e});function xp(e){const t=new jn(e),n=Ym(jn.prototype.request,t);return E.extend(n,jn.prototype,t,{allOwnKeys:!0}),E.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return xp(Rn(e,i))},n}const G=xp(Ei);G.Axios=jn;G.CanceledError=xr;G.CancelToken=Cu;G.isCancel=dp;G.VERSION=gp;G.toFormData=xs;G.AxiosError=F;G.Cancel=G.CanceledError;G.all=function(t){return Promise.all(t)};G.spread=s1;G.isAxiosError=o1;G.mergeConfig=Rn;G.AxiosHeaders=be;G.formToJSON=e=>cp(E.isHTMLForm(e)?new FormData(e):e);G.getAdapter=vp.getAdapter;G.HttpStatusCode=va;G.default=G;const a1="http://67.225.129.127:3002",In=G.create({baseURL:a1});In.interceptors.request.use(e=>(localStorage.getItem("profile")&&(e.headers.Authorization=`Bearer ${JSON.parse(localStorage.getItem("profile")).token}`),e));const u1=e=>In.post("/users/signup",e),c1=e=>In.post("/users/signin",e),d1=(e,t,n)=>In.get(`/users/${e}/verify/${t}`,n),f1=e=>In.post("/properties",e),m1=e=>In.get(`/properties/user/${e}`,e),p1=e=>In.get(`/properties/${e}`,e),ol=un("auth/login",async({formValue:e,navigate:t},{rejectWithValue:n})=>{try{const r=await c1(e);return t("/dashboard"),r.data}catch(r){return n(r.response.data)}}),al=un("auth/register",async({formValue:e,navigate:t,toast:n},{rejectWithValue:r})=>{try{const i=await u1(e);return n.success("Register Successfully"),t("/registrationsuccess"),i.data}catch(i){return r(i.response.data)}}),oo=un("auth/updateUser",async({id:e,data:t},{rejectWithValue:n})=>{try{return(await(void 0)(t,e)).data}catch(r){return n(r.response.data)}}),wp=ju({name:"auth",initialState:{user:null,error:"",loading:!1},reducers:{setUser:(e,t)=>{e.user=t.payload},setLogout:e=>{localStorage.clear(),e.user=null},setUserDetails:(e,t)=>{e.user=t.payload}},extraReducers:e=>{e.addCase(ol.pending,t=>{t.loading=!0}).addCase(ol.fulfilled,(t,n)=>{t.loading=!1,localStorage.setItem("profile",JSON.stringify({...n.payload})),t.user=n.payload}).addCase(ol.rejected,(t,n)=>{t.loading=!1,t.error=n.payload.message}).addCase(al.pending,t=>{t.loading=!0}).addCase(al.fulfilled,(t,n)=>{t.loading=!1,localStorage.setItem("profile",JSON.stringify({...n.payload})),t.user=n.payload}).addCase(al.rejected,(t,n)=>{t.loading=!1,t.error=n.payload.message}).addCase(oo.pending,t=>{t.loading=!0}).addCase(oo.fulfilled,(t,n)=>{t.loading=!1,t.user=n.payload}).addCase(oo.rejected,(t,n)=>{t.loading=!1,t.error=n.payload.message})}}),{setUser:bw,setLogout:h1,setUserDetails:Lw}=wp.actions,y1=wp.reducer,ao=un("user/showUser",async({id:e,data:t},{rejectWithValue:n})=>{try{const r=await(void 0)(t,e);return console.log("dsdsdsds22",r),r.data}catch(r){return n(r.response.data)}}),ul=un("user/verifyEmail",async({id:e,token:t,data:n},{rejectWithValue:r})=>{try{return(await d1(e,t,n)).data.message}catch(i){return r(i.response.data)}}),v1=ju({name:"user",initialState:{users:[],error:"",loading:!1,verified:!1},reducers:{},extraReducers:e=>{e.addCase(ao.pending,t=>{t.loading=!0}).addCase(ao.fulfilled,(t,n)=>{t.loading=!1,localStorage.setItem("profile",JSON.stringify({...n.payload})),t.users=Array.isArray(n.payload)?n.payload:[]}).addCase(ao.rejected,(t,n)=>{t.loading=!1,t.error=n.payload}).addCase(ul.pending,t=>{t.loading=!0,t.error=null}).addCase(ul.fulfilled,(t,n)=>{t.loading=!1,t.verified=n.payload==="Email verified successfully"}).addCase(ul.rejected,(t,n)=>{t.loading=!1,t.error=n.error.message})}}),g1=v1.reducer,cl=un("property/submitProperty",async(e,{rejectWithValue:t})=>{try{return(await f1(e)).data}catch(n){return t(n.response.data)}}),dl=un("property/fetchUserProperties",async(e,{rejectWithValue:t})=>{try{return(await m1(e)).data}catch(n){return t(n.response.data)}}),fl=un("property/fetchPropertyById",async(e,{rejectWithValue:t})=>{try{return(await p1(e)).data}catch(n){return t(n.response.data)}}),x1=ju({name:"property",initialState:{property:{},status:"idle",error:null,userProperties:[],selectedProperty:null},reducers:{},extraReducers:e=>{e.addCase(cl.pending,t=>{t.status="loading"}).addCase(cl.fulfilled,(t,n)=>{t.status="succeeded",t.property=n.payload}).addCase(cl.rejected,(t,n)=>{t.status="failed",t.error=n.payload}).addCase(dl.pending,t=>{t.status="loading"}).addCase(dl.fulfilled,(t,n)=>{t.status="succeeded",t.userProperties=n.payload}).addCase(dl.rejected,(t,n)=>{t.status="failed",t.error=n.payload}).addCase(fl.pending,t=>{t.status="loading"}).addCase(fl.fulfilled,(t,n)=>{t.status="succeeded",t.selectedProperty=n.payload}).addCase(fl.rejected,(t,n)=>{t.status="failed",t.error=n.payload})}}),w1=x1.reducer,N1=m0({reducer:{auth:y1,user:g1,property:w1}});/** * @remix-run/router v1.19.1 * * Copyright (c) Remix Software Inc. @@ -77,4 +77,4 @@ Error generating stack: `+l.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function Kl(){return Kl=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[i]=e[i]);return n}function ux(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function cx(e,t){return e.button===0&&(!t||t==="_self")&&!ux(e)}const dx=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],fx=["aria-current","caseSensitive","className","end","style","to","unstable_viewTransition","children"],mx="6";try{window.__reactRouterVersion=mx}catch{}const px=_.createContext({isTransitioning:!1}),hx="startTransition",pd=fo[hx];function yx(e){let{basename:t,children:n,future:r,window:i}=e,l=_.useRef();l.current==null&&(l.current=j1({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&&pd?pd(()=>u(f)):u(f)},[u,c]);return _.useLayoutEffect(()=>s.listen(d),[s,d]),_.createElement(ox,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:s,future:r})}const vx=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",gx=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,xx=_.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=bp(t,dx),{basename:N}=_.useContext(cn),v,g=!1;if(typeof c=="string"&&gx.test(c)&&(v=c,vx))try{let p=new URL(window.location.href),x=c.startsWith("//")?new URL(p.protocol+c):new URL(c),S=pr(x.pathname,N);x.origin===p.origin&&S!=null?c=S+x.search+x.hash:g=!0}catch{}let w=Q1(c,{relative:i}),h=Nx(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",Kl({},y,{href:v||w,onClick:g||l?r:m,ref:n,target:u}))}),ve=_.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=bp(t,fx),y=Es(u,{relative:f.relative}),N=ki(),v=_.useContext(Cp),{navigator:g,basename:w}=_.useContext(cn),h=v!=null&&jx(y)&&c===!0,m=g.encodeLocation?g.encodeLocation(y).pathname:y.pathname,p=N.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&&w&&(x=pr(x,w)||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(xx,Kl({},f,{"aria-current":b,className:L,ref:n,style:H,to:u,unstable_viewTransition:c}),typeof d=="function"?d(k):d)});var wa;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(wa||(wa={}));var hd;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(hd||(hd={}));function wx(e){let t=_.useContext(Ns);return t||Z(!1),t}function Nx(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=Es(e,{relative:s});return _.useCallback(f=>{if(cx(f,n)){f.preventDefault();let y=r!==void 0?r:Vl(c)===Vl(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 jx(e,t){t===void 0&&(t={});let n=_.useContext(px);n==null&&Z(!1);let{basename:r}=wx(wa.useViewTransitionState),i=Es(e,{relative:t.relative});if(!n.isTransitioning)return!1;let l=pr(n.currentLocation.pathname,r)||n.currentLocation.pathname,s=pr(n.nextLocation.pathname,r)||n.nextLocation.pathname;return ql(i.pathname,s)!=null||ql(i.pathname,l)!=null}function Lp(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),En=e=>typeof e=="string",Ae=e=>typeof e=="function",ml=e=>En(e)||Ae(e)?e:null,Na=e=>_.isValidElement(e)||En(e)||Ae(e)||pi(e);function Ex(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 Ss(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:N}=s;const v=r?`${t}--${u}`:t,g=r?`${n}--${u}`:n,w=_.useRef(0);return _.useLayoutEffect(()=>{const h=f.current,m=v.split(" "),p=x=>{x.target===f.current&&(N(),h.removeEventListener("animationend",p),h.removeEventListener("animationcancel",p),w.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?Ex(h,d,l):d()};y||(c?m():(w.current=1,h.className+=` ${g}`,h.addEventListener("animationend",m)))},[y]),j.createElement(j.Fragment,null,a)}}function yd(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 xe=new Map;let hi=[];const ja=new Set,Sx=e=>ja.forEach(t=>t(e)),Mp=()=>xe.size>0;function Ip(e,t){var n;if(t)return!((n=xe.get(t))==null||!n.isToastActive(e));let r=!1;return xe.forEach(i=>{i.isToastActive(e)&&(r=!0)}),r}function Fp(e,t){Na(e)&&(Mp()||hi.push({content:e,options:t}),xe.forEach(n=>{n.buildToast(e,t)}))}function vd(e,t){xe.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 kx(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 N=1,v=0,g=[],w=[],h=[],m=f;const p=new Map,x=new Set,S=()=>{h=Array.from(p.values()),x.forEach(k=>k())},C=k=>{w=k==null?[]:w.filter(b=>b!==k),S()},P=k=>{const{toastId:b,onOpen:L,updateId:H,children:Ee}=k.props,qe=H==null;k.staleId&&p.delete(k.staleId),p.set(b,k),w=[...w,k.props.toastId].filter(Ze=>Ze!==k.staleId),S(),y(yd(k,qe?"added":"updated")),qe&&Ae(L)&&L(_.isValidElement(Ee)&&Ee.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||Ae(L.toggle)&&L.toggle(k)})},removeToast:C,toasts:p,clearQueue:()=>{v-=g.length,g=[]},buildToast:(k,b)=>{if((B=>{let{containerId:oe,toastId:ne,updateId:Se}=B;const ye=oe?oe!==d:d!==1,dt=p.has(ne)&&Se==null;return ye||dt})(b))return;const{toastId:L,updateId:H,data:Ee,staleId:qe,delay:Ze}=b,bt=()=>{C(L)},Lt=H==null;Lt&&v++;const Le={...m,style:m.toastStyle,key:N++,...Object.fromEntries(Object.entries(b).filter(B=>{let[oe,ne]=B;return ne!=null})),toastId:L,updateId:H,data:Ee,closeToast:bt,isIn:!1,className:ml(b.className||m.toastClassName),bodyClassName:ml(b.bodyClassName||m.bodyClassName),progressClassName:ml(b.progressClassName||m.progressClassName),autoClose:!b.isLoading&&(T=b.autoClose,M=m.autoClose,T===!1||pi(T)&&T>0?T:M),deleteToast(){const B=p.get(L),{onClose:oe,children:ne}=B.props;Ae(oe)&&oe(_.isValidElement(ne)&&ne.props),y(yd(B,"removed")),p.delete(L),v--,v<0&&(v=0),g.length>0?P(g.shift()):S()}};var T,M;Le.closeButton=m.closeButton,b.closeButton===!1||Na(b.closeButton)?Le.closeButton=b.closeButton:b.closeButton===!0&&(Le.closeButton=!Na(m.closeButton)||m.closeButton);let I=k;_.isValidElement(k)&&!En(k.type)?I=_.cloneElement(k,{closeToast:bt,toastProps:Le,data:Ee}):Ae(k)&&(I=k({closeToast:bt,toastProps:Le,data:Ee}));const U={content:I,props:Le,staleId:qe};m.limit&&m.limit>0&&v>m.limit&&Lt?g.push(U):pi(Ze)?setTimeout(()=>{P(U)},Ze):P(U)},setProps(k){m=k},setToggle:(k,b)=>{p.get(k).toggle=b},isToastActive:k=>w.some(b=>b===k),getSnapshot:()=>m.newestOnTop?h.reverse():h}}(s,l,Sx);xe.set(s,u);const c=u.observe(a);return hi.forEach(d=>Fp(d.content,d.options)),hi=[],()=>{c(),xe.delete(s)}},setProps(a){var u;(u=xe.get(s))==null||u.setProps(a)},getSnapshot(){var a;return(a=xe.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:Ip,count:i==null?void 0:i.length}}function _x(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,N;function v(){n(!0)}function g(){n(!1)}function w(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",w),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")}}(N=xe.get((y={id:e.toastId,containerId:e.containerId,fn:n}).containerId||1))==null||N.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",w),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 Cx(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 N=l||u&&c===0,v={...a,animationDuration:`${t}ms`,animationPlayState:n?"running":"paused"};u&&(v.transform=`scaleX(${c})`);const g=qt("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}),w=Ae(s)?s({rtl:d,type:i,defaultClassName:g}):qt(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":N},j.createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${y} Toastify__progress-bar--${i}`}),j.createElement("div",{role:"progressbar","aria-hidden":N?"true":"false","aria-label":"notification timer",className:w,style:v,...h}))}let Px=1;const zp=()=>""+Px++;function Ox(e){return e&&(En(e.toastId)||pi(e.toastId))?e.toastId:zp()}function Vr(e,t){return Fp(e,t),t.toastId}function Xl(e,t){return{...t,type:t&&t.type||e,toastId:Ox(t)}}function Vi(e){return(t,n)=>Vr(t,Xl(e,n))}function z(e,t){return Vr(e,Xl("default",t))}z.loading=(e,t)=>Vr(e,Xl("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=En(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 N={type:d,...a,...n,data:y},v=En(f)?{render:f}:f;return r?z.update(r,{...N,...v}):z(v.render,{...N,...v}),y},c=Ae(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)=>Vr(e,Xl("default",{theme:"dark",...t})),z.dismiss=function(e){(function(t){var n;if(Mp()){if(t==null||En(n=t)||pi(n))xe.forEach(r=>{r.removeToast(t)});else if(t&&("containerId"in t||"id"in t)){const r=xe.get(t.containerId);r?r.removeToast(t.id):xe.forEach(i=>{i.removeToast(t.id)})}}else hi=hi.filter(r=>t!=null&&r.options.toastId!==t)})(e)},z.clearWaitingQueue=function(e){e===void 0&&(e={}),xe.forEach(t=>{!t.props.limit||e.containerId&&t.id!==e.containerId||t.clearQueue()})},z.isActive=Ip,z.update=function(e,t){t===void 0&&(t={});const n=((r,i)=>{var l;let{containerId:s}=i;return(l=xe.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:zp()};l.toastId!==e&&(l.staleId=e);const s=l.render||i;delete l.render,Vr(s,l)}},z.done=e=>{z.update(e,{progress:1})},z.onChange=function(e){return ja.add(e),()=>{ja.delete(e)}},z.play=e=>vd(!0,e),z.pause=e=>vd(!1,e);const Tx=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})},co={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"})}},Rx=e=>{const{isRunning:t,preventExitTransition:n,toastRef:r,eventHandlers:i,playToast:l}=_x(e),{closeButton:s,children:a,autoClose:u,onClick:c,type:d,hideProgressBar:f,closeToast:y,transition:N,position:v,className:g,style:w,bodyClassName:h,bodyStyle:m,progressClassName:p,progressStyle:x,updateId:S,role:C,progress:P,rtl:k,toastId:b,deleteToast:L,isIn:H,isLoading:Ee,closeOnClick:qe,theme:Ze}=e,bt=qt("Toastify__toast",`Toastify__toast-theme--${Ze}`,`Toastify__toast--${d}`,{"Toastify__toast--rtl":k},{"Toastify__toast--close-on-click":qe}),Lt=Ae(g)?g({rtl:k,position:v,type:d,defaultClassName:bt}):qt(bt,g),Le=function(U){let{theme:B,type:oe,isLoading:ne,icon:Se}=U,ye=null;const dt={theme:B,type:oe};return Se===!1||(Ae(Se)?ye=Se({...dt,isLoading:ne}):_.isValidElement(Se)?ye=_.cloneElement(Se,dt):ne?ye=co.spinner():($p=>$p in co)(oe)&&(ye=co[oe](dt))),ye}(e),T=!!P||!u,M={closeToast:y,type:d,theme:Ze};let I=null;return s===!1||(I=Ae(s)?s(M):_.isValidElement(s)?_.cloneElement(s,M):function(U){let{closeToast:B,theme:oe,ariaLabel:ne="close"}=U;return j.createElement("button",{className:`Toastify__close-button Toastify__close-button--${oe}`,type:"button",onClick:Se=>{Se.stopPropagation(),B(Se)},"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(N,{isIn:H,done:L,position:v,preventExitTransition:n,nodeRef:r,playToast:l},j.createElement("div",{id:b,onClick:c,"data-in":H,className:Lt,...i,style:w,ref:r},j.createElement("div",{...H&&{role:C},className:Ae(h)?h({type:d}):qt("Toastify__toast-body",h),style:m},Le!=null&&j.createElement("div",{className:qt("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!Ee})},Le),j.createElement("div",null,a)),I,j.createElement(Cx,{...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})))},ks=function(e,t){return t===void 0&&(t=!1),{enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:t}},bx=Ss(ks("bounce",!0));Ss(ks("slide",!0));Ss(ks("zoom"));Ss(ks("flip"));const Lx={position:"top-right",transition:bx,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};function Mx(e){let t={...Lx,...e};const n=e.stacked,[r,i]=_.useState(!0),l=_.useRef(null),{getToastToRender:s,isToastActive:a,count:u}=kx(t),{className:c,style:d,rtl:f,containerId:y}=t;function N(g){const w=qt("Toastify__toast-container",`Toastify__toast-container--${g}`,{"Toastify__toast-container--rtl":f});return Ae(c)?c({position:g,rtl:f,defaultClassName:w}):qt(w,ml(c))}function v(){n&&(i(!0),z.play())}return Tx(()=>{if(n){var g;const w=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(w).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,w)=>{const h=w.length?{...d}:{...d,pointerEvents:"none"};return j.createElement("div",{className:N(g),style:h,key:`container-${g}`},w.map(m=>{let{content:p,props:x}=m;return j.createElement(Rx,{...x,stacked:n,collapseAll:v,isIn:a(x.toastId,x.containerId),style:x.style,key:`toast-${x.key}`},p)}))}))}const xt=()=>{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."]})})})})})]})})},Ix="/assets/logo-Cb1x1exd.png",ct=()=>{var i,l;const{user:e}=gt(s=>({...s.auth})),t=Mn(),n=_i(),r=()=>{t(h1()),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:Ix,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(ve,{to:"/",className:"nav-link",children:"Home"})}),o.jsx("li",{className:"nav-item",children:o.jsx(ve,{to:"/services",className:"nav-link",children:"Services"})}),o.jsx("li",{className:"nav-item",children:o.jsx(ve,{to:"/searchmyproperties",className:"nav-link",children:"Search"})}),o.jsx("li",{className:"nav-item",children:o.jsx(ve,{to:"/about",className:"nav-link",children:"About"})}),o.jsx("li",{className:"nav-item",children:o.jsx(ve,{to:"/projects",className:"nav-link",children:"Project"})}),o.jsx("li",{className:"nav-item",children:o.jsx(ve,{to:"/contact",className:"nav-link",children:"Contact"})})]}),(i=e==null?void 0:e.result)!=null&&i._id?o.jsx(ve,{to:"/dashboard",children:"Dashboard"}):o.jsx(ve,{to:"/register",className:"nav-link",children:"Register"}),(l=e==null?void 0:e.result)!=null&&l._id?o.jsx(ve,{to:"/login",children:o.jsx("p",{className:"header-text",onClick:r,children:"Logout"})}):o.jsx(ve,{to:"/login",className:"nav-link",children:"Login"})]})]})})})},Fx=()=>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(xt,{})]}),zx=()=>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(xt,{})]}),Ax=()=>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(xt,{})]});var Nt=function(){return Nt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n{const[e,t]=_.useState(uw),[n,r]=_.useState(!1),{loading:i,error:l}=gt(S=>({...S.auth})),{title:s,email:a,password:u,firstName:c,middleName:d,lastName:f,confirmPassword:y,termsconditions:N,userType:v}=e,g=Mn(),w=_i();_.useEffect(()=>{l&&z.error(l)},[l]),_.useEffect(()=>{r(s!=="None"&&a&&u&&c&&d&&f&&y&&N&&v!=="")},[s,a,u,c,d,f,y,N,v]);const h=S=>{if(S.preventDefault(),u!==y)return z.error("Password should match");n?g(al({formValue:e,navigate:w,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:N,name:"termsconditions",checked:N,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(Ap.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(xt,{})]})},dw={email:"",password:""},fw=()=>{const[e,t]=_.useState(dw),{loading:n,error:r}=gt(d=>({...d.auth})),{email:i,password:l}=e,s=Mn(),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(Ap.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(ve,{to:"/register",className:"link-primary text-decoration-none",children:"Register"}),o.jsx(ve,{to:"/forgotpassword",className:"nav-link",children:"Forgot Password"})]})})})}),o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-12"})})]})})})]})})}),o.jsx(xt,{})]})},mw="/assets/samplepic-BM_cnzgz.jpg",pw=()=>{const[e,t]=_.useState("propertydetails"),n=()=>{e==="propertydetails"&&t("shipping")},r=()=>{e==="shipping"&&t("propertydetails")},i=Mn(),{status:l,error:s}=gt(v=>v.property),{user:a}=gt(v=>({...v.auth})),[u,c]=_.useState({propertyType:"",title:"",yearBuild:"",totalSqft:""}),[d,f]=_.useState(!1),y=v=>{c({...u,[v.target.name]:v.target.value})},N=()=>{var v,g,w,h,m,p;if(u.propertyType&&u.title&&u.yearBuild&&u.totalSqft){const x={...u,userfirstname:(v=a==null?void 0:a.result)==null?void 0:v.firstName,usermiddlename:(g=a==null?void 0:a.result)==null?void 0:g.middleName,userlastname:(w=a==null?void 0:a.result)==null?void 0:w.lastName,usertitle:(h=a==null?void 0:a.result)==null?void 0:h.title,useremail:(m=a==null?void 0:a.result)==null?void 0:m.email,userId:(p=a==null?void 0:a.result)==null?void 0:p.userId};i(cl(x)),f(!0)}else z.error("Please fill all fields before submitting",{position:"top-right",autoClose:3e3})};return _.useEffect(()=>{d&&(l==="succeeded"?(z.success("Property submitted successfully!",{position:"top-right",autoClose:3e3}),f(!1)):l==="failed"&&(z.error(`Failed to submit: ${s}`,{position:"top-right",autoClose:3e3}),f(!1)))},[l,s,d]),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:u.propertyType,onChange:y,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:u.title,onChange:y,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:u.yearBuild,onChange:y,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:u.totalSqft,onChange:y,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:N,children:"Submit"})]})]})]})})},hw=()=>{var r;const e=Mn(),{user:t}=gt(i=>({...i.auth})),{userProperties:n}=gt(i=>i.property);return _.useEffect(()=>{var i;e(dl((i=t==null?void 0:t.result)==null?void 0:i.userId))},[e,(r=t==null?void 0:t.result)==null?void 0:r.userId]),o.jsx(o.Fragment,{children:n.length>0?o.jsx("ul",{children:n.map(i=>o.jsx("li",{children:o.jsxs(ve,{to:`/property/${i.propertyId}`,target:"_blank",children:[i.title,"....."]})},i._id))}):o.jsx("p",{children:"No active properties found."})})},yw=()=>{const{user:e}=gt(i=>({...i.auth})),[t,n]=_.useState("dashboard"),r=()=>{switch(t){case"addProperty":return o.jsx(pw,{});case"activeProperties":return o.jsxs("div",{children:[o.jsx("h3",{children:"Active Properties"}),o.jsx(hw,{})]});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:mw,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(xt,{})]})};var Dp={exports:{}},vw="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",gw=vw,xw=gw;function Up(){}function Bp(){}Bp.resetWarningCache=Up;var ww=function(){function e(r,i,l,s,a,u){if(u!==xw){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:Up};return n.PropTypes=n,n};Dp.exports=ww();var Nw=Dp.exports;const jw=gd(Nw),Ew=()=>{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"]})})},Ea=({children:e})=>{const{user:t}=gt(n=>({...n.auth}));return t?e:o.jsx(Ew,{})};Ea.propTypes={children:jw.node.isRequired};const Sw=()=>{const e=Mn(),{id:t,token:n}=Pu();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(ve,{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(xt,{})]})},kw=()=>{const[e,t]=_.useState(""),[n,r]=_.useState(""),i="http://localhost:3002",l=async()=>{try{const s=await G.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(ve,{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(xt,{})]})]})},_w=()=>{const{userId:e,token:t}=Pu(),[n,r]=_.useState(""),[i,l]=_.useState(""),[s,a]=_.useState(""),u="http://localhost:3002",c=async()=>{try{if(!n||n.trim()===""){a("Password not entered"),z.error("Password not entered");return}const d=await G.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(xt,{})]})},Cw=()=>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(xt,{})]}),Pw=()=>{const{id:e}=Pu(),t=Mn(),{selectedProperty:n,status:r,error:i}=gt(l=>l.property);return _.useEffect(()=>{e&&t(fl(e))},[e,t]),r==="loading"?o.jsx("p",{children:"Loading property details..."}):r==="failed"?o.jsxs("p",{children:["Error loading property: ",i]}):o.jsx(o.Fragment,{children:o.jsx("div",{className:"container property-view",children:n?o.jsxs("div",{className:"property-details",children:[o.jsx("h1",{children:n.title}),o.jsxs("p",{children:["Email: ",n.useremail]})]}):o.jsx("p",{children:"Property not found."})})})},Ow=()=>{const[e,t]=_.useState([]);return _.useEffect(()=>{(async()=>{try{const r=await G.get("http://localhost:3002/mysql/searchmysql");t(r.data)}catch(r){console.log("Error fetching data:",r)}})()},[]),o.jsx(o.Fragment,{children:e&&e.length>0?e.map((n,r)=>o.jsxs("div",{className:"property",children:[o.jsx("h2",{children:n.client_name})," "]},r)):o.jsx("p",{children:"No properties found."})})},Tw=()=>o.jsxs(yx,{children:[o.jsx(Mx,{}),o.jsxs(ax,{children:[o.jsx(Me,{path:"/",element:o.jsx(Fx,{})}),o.jsx(Me,{path:"/about",element:o.jsx(zx,{})}),o.jsx(Me,{path:"/contact",element:o.jsx(Ax,{})}),o.jsx(Me,{path:"/register",element:o.jsx(cw,{})}),o.jsx(Me,{path:"/registrationsuccess",element:o.jsx(Ea,{children:o.jsx(Cw,{})})}),o.jsx(Me,{path:"/login",element:o.jsx(fw,{})}),o.jsx(Me,{path:"/dashboard",element:o.jsx(Ea,{children:o.jsx(yw,{})})}),o.jsx(Me,{path:"/users/:id/verify/:token",element:o.jsx(Sw,{})}),o.jsx(Me,{path:"/forgotpassword",element:o.jsx(kw,{})}),o.jsx(Me,{path:"/users/resetpassword/:userId/:token",element:o.jsx(_w,{})}),o.jsx(Me,{path:"/property/:id",element:o.jsx(Pw,{})}),o.jsx(Me,{path:"/searchmyproperties",element:o.jsx(Ow,{})})]})]});bm(document.getElementById("root")).render(o.jsx(_.StrictMode,{children:o.jsx(Av,{store:N1,children:o.jsx(Tw,{})})})); + */function Kl(){return Kl=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[i]=e[i]);return n}function ux(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function cx(e,t){return e.button===0&&(!t||t==="_self")&&!ux(e)}const dx=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],fx=["aria-current","caseSensitive","className","end","style","to","unstable_viewTransition","children"],mx="6";try{window.__reactRouterVersion=mx}catch{}const px=_.createContext({isTransitioning:!1}),hx="startTransition",pd=fo[hx];function yx(e){let{basename:t,children:n,future:r,window:i}=e,l=_.useRef();l.current==null&&(l.current=j1({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&&pd?pd(()=>u(f)):u(f)},[u,c]);return _.useLayoutEffect(()=>s.listen(d),[s,d]),_.createElement(ox,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:s,future:r})}const vx=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",gx=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,xx=_.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=bp(t,dx),{basename:N}=_.useContext(cn),v,g=!1;if(typeof c=="string"&&gx.test(c)&&(v=c,vx))try{let p=new URL(window.location.href),x=c.startsWith("//")?new URL(p.protocol+c):new URL(c),S=pr(x.pathname,N);x.origin===p.origin&&S!=null?c=S+x.search+x.hash:g=!0}catch{}let w=Q1(c,{relative:i}),h=Nx(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",Kl({},y,{href:v||w,onClick:g||l?r:m,ref:n,target:u}))}),ve=_.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=bp(t,fx),y=Es(u,{relative:f.relative}),N=ki(),v=_.useContext(Cp),{navigator:g,basename:w}=_.useContext(cn),h=v!=null&&jx(y)&&c===!0,m=g.encodeLocation?g.encodeLocation(y).pathname:y.pathname,p=N.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&&w&&(x=pr(x,w)||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(xx,Kl({},f,{"aria-current":b,className:L,ref:n,style:H,to:u,unstable_viewTransition:c}),typeof d=="function"?d(k):d)});var wa;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(wa||(wa={}));var hd;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(hd||(hd={}));function wx(e){let t=_.useContext(Ns);return t||Z(!1),t}function Nx(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=Es(e,{relative:s});return _.useCallback(f=>{if(cx(f,n)){f.preventDefault();let y=r!==void 0?r:Vl(c)===Vl(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 jx(e,t){t===void 0&&(t={});let n=_.useContext(px);n==null&&Z(!1);let{basename:r}=wx(wa.useViewTransitionState),i=Es(e,{relative:t.relative});if(!n.isTransitioning)return!1;let l=pr(n.currentLocation.pathname,r)||n.currentLocation.pathname,s=pr(n.nextLocation.pathname,r)||n.nextLocation.pathname;return ql(i.pathname,s)!=null||ql(i.pathname,l)!=null}function Lp(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),En=e=>typeof e=="string",Ae=e=>typeof e=="function",ml=e=>En(e)||Ae(e)?e:null,Na=e=>_.isValidElement(e)||En(e)||Ae(e)||pi(e);function Ex(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 Ss(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:N}=s;const v=r?`${t}--${u}`:t,g=r?`${n}--${u}`:n,w=_.useRef(0);return _.useLayoutEffect(()=>{const h=f.current,m=v.split(" "),p=x=>{x.target===f.current&&(N(),h.removeEventListener("animationend",p),h.removeEventListener("animationcancel",p),w.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?Ex(h,d,l):d()};y||(c?m():(w.current=1,h.className+=` ${g}`,h.addEventListener("animationend",m)))},[y]),j.createElement(j.Fragment,null,a)}}function yd(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 xe=new Map;let hi=[];const ja=new Set,Sx=e=>ja.forEach(t=>t(e)),Mp=()=>xe.size>0;function Ip(e,t){var n;if(t)return!((n=xe.get(t))==null||!n.isToastActive(e));let r=!1;return xe.forEach(i=>{i.isToastActive(e)&&(r=!0)}),r}function Fp(e,t){Na(e)&&(Mp()||hi.push({content:e,options:t}),xe.forEach(n=>{n.buildToast(e,t)}))}function vd(e,t){xe.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 kx(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 N=1,v=0,g=[],w=[],h=[],m=f;const p=new Map,x=new Set,S=()=>{h=Array.from(p.values()),x.forEach(k=>k())},C=k=>{w=k==null?[]:w.filter(b=>b!==k),S()},P=k=>{const{toastId:b,onOpen:L,updateId:H,children:Ee}=k.props,qe=H==null;k.staleId&&p.delete(k.staleId),p.set(b,k),w=[...w,k.props.toastId].filter(Ze=>Ze!==k.staleId),S(),y(yd(k,qe?"added":"updated")),qe&&Ae(L)&&L(_.isValidElement(Ee)&&Ee.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||Ae(L.toggle)&&L.toggle(k)})},removeToast:C,toasts:p,clearQueue:()=>{v-=g.length,g=[]},buildToast:(k,b)=>{if((B=>{let{containerId:oe,toastId:ne,updateId:Se}=B;const ye=oe?oe!==d:d!==1,dt=p.has(ne)&&Se==null;return ye||dt})(b))return;const{toastId:L,updateId:H,data:Ee,staleId:qe,delay:Ze}=b,bt=()=>{C(L)},Lt=H==null;Lt&&v++;const Le={...m,style:m.toastStyle,key:N++,...Object.fromEntries(Object.entries(b).filter(B=>{let[oe,ne]=B;return ne!=null})),toastId:L,updateId:H,data:Ee,closeToast:bt,isIn:!1,className:ml(b.className||m.toastClassName),bodyClassName:ml(b.bodyClassName||m.bodyClassName),progressClassName:ml(b.progressClassName||m.progressClassName),autoClose:!b.isLoading&&(T=b.autoClose,M=m.autoClose,T===!1||pi(T)&&T>0?T:M),deleteToast(){const B=p.get(L),{onClose:oe,children:ne}=B.props;Ae(oe)&&oe(_.isValidElement(ne)&&ne.props),y(yd(B,"removed")),p.delete(L),v--,v<0&&(v=0),g.length>0?P(g.shift()):S()}};var T,M;Le.closeButton=m.closeButton,b.closeButton===!1||Na(b.closeButton)?Le.closeButton=b.closeButton:b.closeButton===!0&&(Le.closeButton=!Na(m.closeButton)||m.closeButton);let I=k;_.isValidElement(k)&&!En(k.type)?I=_.cloneElement(k,{closeToast:bt,toastProps:Le,data:Ee}):Ae(k)&&(I=k({closeToast:bt,toastProps:Le,data:Ee}));const U={content:I,props:Le,staleId:qe};m.limit&&m.limit>0&&v>m.limit&&Lt?g.push(U):pi(Ze)?setTimeout(()=>{P(U)},Ze):P(U)},setProps(k){m=k},setToggle:(k,b)=>{p.get(k).toggle=b},isToastActive:k=>w.some(b=>b===k),getSnapshot:()=>m.newestOnTop?h.reverse():h}}(s,l,Sx);xe.set(s,u);const c=u.observe(a);return hi.forEach(d=>Fp(d.content,d.options)),hi=[],()=>{c(),xe.delete(s)}},setProps(a){var u;(u=xe.get(s))==null||u.setProps(a)},getSnapshot(){var a;return(a=xe.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:Ip,count:i==null?void 0:i.length}}function _x(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,N;function v(){n(!0)}function g(){n(!1)}function w(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",w),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")}}(N=xe.get((y={id:e.toastId,containerId:e.containerId,fn:n}).containerId||1))==null||N.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",w),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 Cx(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 N=l||u&&c===0,v={...a,animationDuration:`${t}ms`,animationPlayState:n?"running":"paused"};u&&(v.transform=`scaleX(${c})`);const g=qt("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}),w=Ae(s)?s({rtl:d,type:i,defaultClassName:g}):qt(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":N},j.createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${y} Toastify__progress-bar--${i}`}),j.createElement("div",{role:"progressbar","aria-hidden":N?"true":"false","aria-label":"notification timer",className:w,style:v,...h}))}let Px=1;const zp=()=>""+Px++;function Ox(e){return e&&(En(e.toastId)||pi(e.toastId))?e.toastId:zp()}function Vr(e,t){return Fp(e,t),t.toastId}function Xl(e,t){return{...t,type:t&&t.type||e,toastId:Ox(t)}}function Vi(e){return(t,n)=>Vr(t,Xl(e,n))}function z(e,t){return Vr(e,Xl("default",t))}z.loading=(e,t)=>Vr(e,Xl("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=En(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 N={type:d,...a,...n,data:y},v=En(f)?{render:f}:f;return r?z.update(r,{...N,...v}):z(v.render,{...N,...v}),y},c=Ae(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)=>Vr(e,Xl("default",{theme:"dark",...t})),z.dismiss=function(e){(function(t){var n;if(Mp()){if(t==null||En(n=t)||pi(n))xe.forEach(r=>{r.removeToast(t)});else if(t&&("containerId"in t||"id"in t)){const r=xe.get(t.containerId);r?r.removeToast(t.id):xe.forEach(i=>{i.removeToast(t.id)})}}else hi=hi.filter(r=>t!=null&&r.options.toastId!==t)})(e)},z.clearWaitingQueue=function(e){e===void 0&&(e={}),xe.forEach(t=>{!t.props.limit||e.containerId&&t.id!==e.containerId||t.clearQueue()})},z.isActive=Ip,z.update=function(e,t){t===void 0&&(t={});const n=((r,i)=>{var l;let{containerId:s}=i;return(l=xe.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:zp()};l.toastId!==e&&(l.staleId=e);const s=l.render||i;delete l.render,Vr(s,l)}},z.done=e=>{z.update(e,{progress:1})},z.onChange=function(e){return ja.add(e),()=>{ja.delete(e)}},z.play=e=>vd(!0,e),z.pause=e=>vd(!1,e);const Tx=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})},co={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"})}},Rx=e=>{const{isRunning:t,preventExitTransition:n,toastRef:r,eventHandlers:i,playToast:l}=_x(e),{closeButton:s,children:a,autoClose:u,onClick:c,type:d,hideProgressBar:f,closeToast:y,transition:N,position:v,className:g,style:w,bodyClassName:h,bodyStyle:m,progressClassName:p,progressStyle:x,updateId:S,role:C,progress:P,rtl:k,toastId:b,deleteToast:L,isIn:H,isLoading:Ee,closeOnClick:qe,theme:Ze}=e,bt=qt("Toastify__toast",`Toastify__toast-theme--${Ze}`,`Toastify__toast--${d}`,{"Toastify__toast--rtl":k},{"Toastify__toast--close-on-click":qe}),Lt=Ae(g)?g({rtl:k,position:v,type:d,defaultClassName:bt}):qt(bt,g),Le=function(U){let{theme:B,type:oe,isLoading:ne,icon:Se}=U,ye=null;const dt={theme:B,type:oe};return Se===!1||(Ae(Se)?ye=Se({...dt,isLoading:ne}):_.isValidElement(Se)?ye=_.cloneElement(Se,dt):ne?ye=co.spinner():($p=>$p in co)(oe)&&(ye=co[oe](dt))),ye}(e),T=!!P||!u,M={closeToast:y,type:d,theme:Ze};let I=null;return s===!1||(I=Ae(s)?s(M):_.isValidElement(s)?_.cloneElement(s,M):function(U){let{closeToast:B,theme:oe,ariaLabel:ne="close"}=U;return j.createElement("button",{className:`Toastify__close-button Toastify__close-button--${oe}`,type:"button",onClick:Se=>{Se.stopPropagation(),B(Se)},"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(N,{isIn:H,done:L,position:v,preventExitTransition:n,nodeRef:r,playToast:l},j.createElement("div",{id:b,onClick:c,"data-in":H,className:Lt,...i,style:w,ref:r},j.createElement("div",{...H&&{role:C},className:Ae(h)?h({type:d}):qt("Toastify__toast-body",h),style:m},Le!=null&&j.createElement("div",{className:qt("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!Ee})},Le),j.createElement("div",null,a)),I,j.createElement(Cx,{...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})))},ks=function(e,t){return t===void 0&&(t=!1),{enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:t}},bx=Ss(ks("bounce",!0));Ss(ks("slide",!0));Ss(ks("zoom"));Ss(ks("flip"));const Lx={position:"top-right",transition:bx,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};function Mx(e){let t={...Lx,...e};const n=e.stacked,[r,i]=_.useState(!0),l=_.useRef(null),{getToastToRender:s,isToastActive:a,count:u}=kx(t),{className:c,style:d,rtl:f,containerId:y}=t;function N(g){const w=qt("Toastify__toast-container",`Toastify__toast-container--${g}`,{"Toastify__toast-container--rtl":f});return Ae(c)?c({position:g,rtl:f,defaultClassName:w}):qt(w,ml(c))}function v(){n&&(i(!0),z.play())}return Tx(()=>{if(n){var g;const w=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(w).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,w)=>{const h=w.length?{...d}:{...d,pointerEvents:"none"};return j.createElement("div",{className:N(g),style:h,key:`container-${g}`},w.map(m=>{let{content:p,props:x}=m;return j.createElement(Rx,{...x,stacked:n,collapseAll:v,isIn:a(x.toastId,x.containerId),style:x.style,key:`toast-${x.key}`},p)}))}))}const xt=()=>{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."]})})})})})]})})},Ix="/assets/logo-Cb1x1exd.png",ct=()=>{var i,l;const{user:e}=gt(s=>({...s.auth})),t=Mn(),n=_i(),r=()=>{t(h1()),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:Ix,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(ve,{to:"/",className:"nav-link",children:"Home"})}),o.jsx("li",{className:"nav-item",children:o.jsx(ve,{to:"/services",className:"nav-link",children:"Services"})}),o.jsx("li",{className:"nav-item",children:o.jsx(ve,{to:"/searchmyproperties",className:"nav-link",children:"Search"})}),o.jsx("li",{className:"nav-item",children:o.jsx(ve,{to:"/about",className:"nav-link",children:"About"})}),o.jsx("li",{className:"nav-item",children:o.jsx(ve,{to:"/projects",className:"nav-link",children:"Project"})}),o.jsx("li",{className:"nav-item",children:o.jsx(ve,{to:"/contact",className:"nav-link",children:"Contact"})})]}),(i=e==null?void 0:e.result)!=null&&i._id?o.jsx(ve,{to:"/dashboard",children:"Dashboard"}):o.jsx(ve,{to:"/register",className:"nav-link",children:"Register"}),(l=e==null?void 0:e.result)!=null&&l._id?o.jsx(ve,{to:"/login",children:o.jsx("p",{className:"header-text",onClick:r,children:"Logout"})}):o.jsx(ve,{to:"/login",className:"nav-link",children:"Login"})]})]})})})},Fx=()=>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(xt,{})]}),zx=()=>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(xt,{})]}),Ax=()=>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(xt,{})]});var Nt=function(){return Nt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n{const[e,t]=_.useState(uw),[n,r]=_.useState(!1),{loading:i,error:l}=gt(S=>({...S.auth})),{title:s,email:a,password:u,firstName:c,middleName:d,lastName:f,confirmPassword:y,termsconditions:N,userType:v}=e,g=Mn(),w=_i();_.useEffect(()=>{l&&z.error(l)},[l]),_.useEffect(()=>{r(s!=="None"&&a&&u&&c&&d&&f&&y&&N&&v!=="")},[s,a,u,c,d,f,y,N,v]);const h=S=>{if(S.preventDefault(),u!==y)return z.error("Password should match");n?g(al({formValue:e,navigate:w,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:N,name:"termsconditions",checked:N,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(Ap.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(xt,{})]})},dw={email:"",password:""},fw=()=>{const[e,t]=_.useState(dw),{loading:n,error:r}=gt(d=>({...d.auth})),{email:i,password:l}=e,s=Mn(),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(Ap.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(ve,{to:"/register",className:"link-primary text-decoration-none",children:"Register"}),o.jsx(ve,{to:"/forgotpassword",className:"nav-link",children:"Forgot Password"})]})})})}),o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-12"})})]})})})]})})}),o.jsx(xt,{})]})},mw="/assets/samplepic-BM_cnzgz.jpg",pw=()=>{const[e,t]=_.useState("propertydetails"),n=()=>{e==="propertydetails"&&t("shipping")},r=()=>{e==="shipping"&&t("propertydetails")},i=Mn(),{status:l,error:s}=gt(v=>v.property),{user:a}=gt(v=>({...v.auth})),[u,c]=_.useState({propertyType:"",title:"",yearBuild:"",totalSqft:""}),[d,f]=_.useState(!1),y=v=>{c({...u,[v.target.name]:v.target.value})},N=()=>{var v,g,w,h,m,p;if(u.propertyType&&u.title&&u.yearBuild&&u.totalSqft){const x={...u,userfirstname:(v=a==null?void 0:a.result)==null?void 0:v.firstName,usermiddlename:(g=a==null?void 0:a.result)==null?void 0:g.middleName,userlastname:(w=a==null?void 0:a.result)==null?void 0:w.lastName,usertitle:(h=a==null?void 0:a.result)==null?void 0:h.title,useremail:(m=a==null?void 0:a.result)==null?void 0:m.email,userId:(p=a==null?void 0:a.result)==null?void 0:p.userId};i(cl(x)),f(!0)}else z.error("Please fill all fields before submitting",{position:"top-right",autoClose:3e3})};return _.useEffect(()=>{d&&(l==="succeeded"?(z.success("Property submitted successfully!",{position:"top-right",autoClose:3e3}),f(!1)):l==="failed"&&(z.error(`Failed to submit: ${s}`,{position:"top-right",autoClose:3e3}),f(!1)))},[l,s,d]),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:u.propertyType,onChange:y,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:u.title,onChange:y,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:u.yearBuild,onChange:y,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:u.totalSqft,onChange:y,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:N,children:"Submit"})]})]})]})})},hw=()=>{var r;const e=Mn(),{user:t}=gt(i=>({...i.auth})),{userProperties:n}=gt(i=>i.property);return _.useEffect(()=>{var i;e(dl((i=t==null?void 0:t.result)==null?void 0:i.userId))},[e,(r=t==null?void 0:t.result)==null?void 0:r.userId]),o.jsx(o.Fragment,{children:n.length>0?o.jsx("ul",{children:n.map(i=>o.jsx("li",{children:o.jsxs(ve,{to:`/property/${i.propertyId}`,target:"_blank",children:[i.title,"....."]})},i._id))}):o.jsx("p",{children:"No active properties found."})})},yw=()=>{const{user:e}=gt(i=>({...i.auth})),[t,n]=_.useState("dashboard"),r=()=>{switch(t){case"addProperty":return o.jsx(pw,{});case"activeProperties":return o.jsxs("div",{children:[o.jsx("h3",{children:"Active Properties"}),o.jsx(hw,{})]});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:mw,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(xt,{})]})};var Dp={exports:{}},vw="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",gw=vw,xw=gw;function Up(){}function Bp(){}Bp.resetWarningCache=Up;var ww=function(){function e(r,i,l,s,a,u){if(u!==xw){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:Up};return n.PropTypes=n,n};Dp.exports=ww();var Nw=Dp.exports;const jw=gd(Nw),Ew=()=>{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"]})})},Ea=({children:e})=>{const{user:t}=gt(n=>({...n.auth}));return t?e:o.jsx(Ew,{})};Ea.propTypes={children:jw.node.isRequired};const Sw=()=>{const e=Mn(),{id:t,token:n}=Pu();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(ve,{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(xt,{})]})},kw=()=>{const[e,t]=_.useState(""),[n,r]=_.useState(""),i="http://67.225.129.127:3002",l=async()=>{try{const s=await G.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(ve,{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(xt,{})]})]})},_w=()=>{const{userId:e,token:t}=Pu(),[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 G.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(xt,{})]})},Cw=()=>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(xt,{})]}),Pw=()=>{const{id:e}=Pu(),t=Mn(),{selectedProperty:n,status:r,error:i}=gt(l=>l.property);return _.useEffect(()=>{e&&t(fl(e))},[e,t]),r==="loading"?o.jsx("p",{children:"Loading property details..."}):r==="failed"?o.jsxs("p",{children:["Error loading property: ",i]}):o.jsx(o.Fragment,{children:o.jsx("div",{className:"container property-view",children:n?o.jsxs("div",{className:"property-details",children:[o.jsx("h1",{children:n.title}),o.jsxs("p",{children:["Email: ",n.useremail]})]}):o.jsx("p",{children:"Property not found."})})})},Ow=()=>{const[e,t]=_.useState([]);return _.useEffect(()=>{(async()=>{try{const r=await G.get("http://67.225.129.127:3002/mysql/searchmysql");t(r.data)}catch(r){console.log("Error fetching data:",r)}})()},[]),o.jsx(o.Fragment,{children:e&&e.length>0?e.map((n,r)=>o.jsxs("div",{className:"property",children:[o.jsx("h2",{children:n.client_name})," "]},r)):o.jsx("p",{children:"No properties found."})})},Tw=()=>o.jsxs(yx,{children:[o.jsx(Mx,{}),o.jsxs(ax,{children:[o.jsx(Me,{path:"/",element:o.jsx(Fx,{})}),o.jsx(Me,{path:"/about",element:o.jsx(zx,{})}),o.jsx(Me,{path:"/contact",element:o.jsx(Ax,{})}),o.jsx(Me,{path:"/register",element:o.jsx(cw,{})}),o.jsx(Me,{path:"/registrationsuccess",element:o.jsx(Ea,{children:o.jsx(Cw,{})})}),o.jsx(Me,{path:"/login",element:o.jsx(fw,{})}),o.jsx(Me,{path:"/dashboard",element:o.jsx(Ea,{children:o.jsx(yw,{})})}),o.jsx(Me,{path:"/users/:id/verify/:token",element:o.jsx(Sw,{})}),o.jsx(Me,{path:"/forgotpassword",element:o.jsx(kw,{})}),o.jsx(Me,{path:"/users/resetpassword/:userId/:token",element:o.jsx(_w,{})}),o.jsx(Me,{path:"/property/:id",element:o.jsx(Pw,{})}),o.jsx(Me,{path:"/searchmyproperties",element:o.jsx(Ow,{})})]})]});bm(document.getElementById("root")).render(o.jsx(_.StrictMode,{children:o.jsx(Av,{store:N1,children:o.jsx(Tw,{})})})); diff --git a/ef-ui/dist/index.html b/ef-ui/dist/index.html index 3a24d9a..d0e0c33 100644 --- a/ef-ui/dist/index.html +++ b/ef-ui/dist/index.html @@ -42,7 +42,7 @@ - +