diff --git a/ef-api/models/property.js b/ef-api/models/property.js index 7017154..86d0456 100644 --- a/ef-api/models/property.js +++ b/ef-api/models/property.js @@ -66,11 +66,11 @@ const propertySchema = mongoose.Schema({ type: Number, default: new Date().getFullYear(), }, - closeDataAtoB:{ + closeDateAtoB:{ type: Date, required: true, }, - closeDataBtoB:{ + closeDateBtoC:{ type: Date, required: true, }, diff --git a/ef-ui/dist/assets/index-5cAVQFqo.js b/ef-ui/dist/assets/index-BMPA1Ced.js similarity index 86% rename from ef-ui/dist/assets/index-5cAVQFqo.js rename to ef-ui/dist/assets/index-BMPA1Ced.js index cc3223a..3a70cad 100644 --- a/ef-ui/dist/assets/index-5cAVQFqo.js +++ b/ef-ui/dist/assets/index-BMPA1Ced.js @@ -82,4 +82,4 @@ object-assign (c) Sindre Sorhus @license MIT */function i(u){if(u==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(u)}function l(){try{if(!Object.assign)return!1;var u=new String("abc");if(u[5]="de",Object.getOwnPropertyNames(u)[0]==="5")return!1;for(var d={},p=0;p<10;p++)d["_"+String.fromCharCode(p)]=p;var y=Object.getOwnPropertyNames(d).map(function(v){return d[v]});if(y.join("")!=="0123456789")return!1;var N={};return"abcdefghijklmnopqrst".split("").forEach(function(v){N[v]=v}),Object.keys(Object.assign({},N)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}var s=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,c=Object.prototype.propertyIsEnumerable;n.exports=l()?Object.assign:function(u,d){for(var p,y,N=i(u),v=1;v1?u-1:0),p=1;p2?d-2:0),y=2;y.")}return E}function u(b,E){if(b._store&&!b._store.validated&&b.key==null){b._store.validated=!0;var C=g.uniqueKey||(g.uniqueKey={}),I=c(E);if(!C[I]){C[I]=!0;var F="";b&&b._owner&&b._owner!==y.current&&(F=" It was passed a child from "+b._owner.getName()+"."),l.env.NODE_ENV!=="production"&&m(!1,'Each child in an array or iterator should have a unique "key" prop.%s%s See https://fb.me/react-warning-keys for more information.%s',I,F,N.getCurrentStackAddendum(b))}}}function d(b,E){if(typeof b=="object"){if(Array.isArray(b))for(var C=0;C1?V-1:0),X=1;X"u"||M===null)return""+M;var z=Y(M);if(z==="object"){if(M instanceof Date)return"date";if(M instanceof RegExp)return"regexp"}return z}function T(M){var z=K(M);switch(z){case"array":case"object":return"an "+z;case"boolean":case"date":case"regexp":return"a "+z;default:return z}}function B(M){return M.constructor&&M.constructor.name?M.constructor.name:S}var H=typeof Symbol=="function"&&Symbol.iterator,k="@@iterator",S="<>",D={array:h("array"),bool:h("boolean"),func:h("function"),number:h("number"),object:h("object"),string:h("string"),symbol:h("symbol"),any:m(),arrayOf:f,element:g(),instanceOf:w,node:I(),objectOf:E,oneOf:b,oneOfType:C,shape:F};return j.prototype=Error.prototype,D.checkPropTypes=d,D.PropTypes=D,D}}).call(r,i(1))},function(n,r){function i(a){var c=/[=:]/g,u={"=":"=0",":":"=2"},d=(""+a).replace(c,function(p){return u[p]});return"$"+d}function l(a){var c=/(=0|=2)/g,u={"=0":"=","=2":":"},d=a[0]==="."&&a[1]==="$"?a.substring(2):a.substring(1);return(""+d).replace(c,function(p){return u[p]})}var s={escape:i,unescape:l};n.exports=s},function(n,r,i){(function(l){var s=i(5),a=i(2),c=function(h){var m=this;if(m.instancePool.length){var f=m.instancePool.pop();return m.call(f,h),f}return new m(h)},u=function(h,m){var f=this;if(f.instancePool.length){var g=f.instancePool.pop();return f.call(g,h,m),g}return new f(h,m)},d=function(h,m,f){var g=this;if(g.instancePool.length){var w=g.instancePool.pop();return g.call(w,h,m,f),w}return new g(h,m,f)},p=function(h,m,f,g){var w=this;if(w.instancePool.length){var b=w.instancePool.pop();return w.call(b,h,m,f,g),b}return new w(h,m,f,g)},y=function(h){var m=this;h instanceof m||(l.env.NODE_ENV!=="production"?a(!1,"Trying to release an instance into a pool of a different type."):s("25")),h.destructor(),m.instancePool.length{const[e,t]=P.useState("propertydetails"),n=()=>{e==="propertydetails"&&t("Images"),e==="Images"&&t("Accounting")},r=()=>{e==="Images"&&t("propertydetails"),e==="Accounting"&&t("Images")},i=St(),{status:l,error:s}=Ze(O=>O.property),{user:a}=Ze(O=>({...O.auth})),[c,u]=P.useState({propertyTaxInfo:[{propertytaxowned:"",ownedyear:"",taxassessed:"",taxyear:""}],images:[{title:"",file:""}],googleMapLink:"",purchaseCost:"",costPaidAtoB:[{title:"Closing Fees - Settlement Fee",price:""},{title:"Closing Fees - Owner's Title Insurance",price:""},{title:"Courier Fees",price:""},{title:"Wire Fee",price:""},{title:"E recording Fee",price:""},{title:"Recording Fee",price:""},{title:"Property Tax",price:""}],credits:[{title:"Credits received on settlement",price:""}],cashAdjustments:[{title:"Credits received on settlement",price:""}],incidentalCost:[{title:"Accounting Fees",price:""},{title:"Bank Charges",price:""},{title:"Legal Fees",price:""},{title:"Property Taxes",price:""},{title:"Travel Expenses",price:""}],utilMaintenance:[{title:"Electricity",price:""},{title:"Water and Sewer",price:""},{title:"Natural Gas",price:""},{title:"Trash and Recycling",price:""},{title:"Internet and Cable",price:""},{title:"Heating Oil/Propane",price:""},{title:"HOA fees",price:""},{title:"Dump fees",price:""},{title:"Insurance",price:""},{title:"Interest on Loans",price:""},{title:"Loan Payment",price:""},{title:"Property Taxes",price:""},{title:"Security",price:""},{title:"Real Estates fees",price:""}],renovationCost:[{title:"Demolition: Removing existing structures or finishes",price:""},{title:"Framing: Making structural changes or additions",price:""},{title:"Plumbing: Installing or modifying plumbing systems",price:""},{title:"Electrical: Updating wiring and fixtures",price:""},{title:"HVAC: Installing or upgrading heating and cooling systems",price:""},{title:"Insulation: Adding or replacing insulation",price:""},{title:"Drywall: Hanging and finishing drywall",price:""},{title:"Interior Finishes: Painting, flooring, cabinetry, and fixtures",price:""},{title:"Exterior Work: Addressing siding, roofing, or landscaping, if applicable",price:""},{title:"Final Inspections: Ensuring everything meets codes",price:""},{title:"Punch List: Completing any remaining task",price:""}]}),[d,p]=P.useState(!1),y=(O,R)=>{const L=[...c.images];L[R].file=O.base64,u({...c,images:L})},N=()=>{u({...c,images:[...c.images,{title:"",file:""}]})},v=O=>{const R=c.images.filter((L,J)=>J!==O);u({...c,images:R})},j=(O,R)=>{const L=[...c.images];L[O].title=R.target.value,u({...c,images:L})},x=(O,R,L)=>{const{name:J,value:Z}=O.target;if(L==="propertyTaxInfo"){const te=[...c.propertyTaxInfo];te[R][J]=Z,u({...c,propertyTaxInfo:te})}else u({...c,[J]:Z})},h=()=>{u({...c,propertyTaxInfo:[...c.propertyTaxInfo,{propertytaxowned:"",ownedyear:"",taxassessed:"",taxyear:""}]})},m=O=>{const R=c.propertyTaxInfo.filter((L,J)=>J!==O);u({...c,propertyTaxInfo:R})},f=()=>{u(O=>({...O,costPaidAtoB:[...O.costPaidAtoB,{title:"",price:""}]}))},g=O=>{const R=c.costPaidAtoB.filter((L,J)=>J!==O);u(L=>({...L,costPaidAtoB:R}))},w=(O,R,L)=>{const J=[...c.costPaidAtoB];J[O][R]=L,u(Z=>({...Z,costPaidAtoB:J}))},b=(O,R)=>{const L=O.target.value;if(/^\d*\.?\d*$/.test(L)||L===""){const Z=c.costPaidAtoB.map((te,fe)=>fe===R?{...te,price:L,isInvalid:!1}:te);u({...c,costPaidAtoB:Z})}else{const Z=c.costPaidAtoB.map((te,fe)=>fe===R?{...te,isInvalid:!0}:te);u({...c,costPaidAtoB:Z})}},E=()=>{const O=c.costPaidAtoB.reduce((L,J)=>{const Z=parseFloat(J.price)||0;return L+Z},0),R=parseFloat(c.purchaseCost)||0;return O+R},C=()=>{u(O=>({...O,credits:[...O.credits,{title:"",price:""}]}))},I=O=>{const R=c.credits.filter((L,J)=>J!==O);u(L=>({...L,credits:R}))},F=(O,R,L)=>{const J=[...c.credits];J[O][R]=L,u(Z=>({...Z,credits:J}))},$=(O,R)=>{const L=O.target.value;if(/^\d*\.?\d*$/.test(L)||L===""){const Z=c.credits.map((te,fe)=>fe===R?{...te,price:L,isInvalid:!1}:te);u({...c,credits:Z})}else{const Z=c.credits.map((te,fe)=>fe===R?{...te,isInvalid:!0}:te);u({...c,credits:Z})}},G=()=>c.credits.reduce((O,R)=>{const L=parseFloat(R.price);return O+(isNaN(L)?0:L)},0),Y=()=>{const O=c.costPaidAtoB.reduce((J,Z)=>{const te=parseFloat(Z.price)||0;return J+te},0),R=c.credits.reduce((J,Z)=>{const te=parseFloat(Z.price)||0;return J+te},0),L=parseFloat(c.purchaseCost)||0;return O+R+L},K=()=>{u(O=>({...O,cashAdjustments:[...O.cashAdjustments,{title:"",price:""}]}))},T=O=>{const R=c.cashAdjustments.filter((L,J)=>J!==O);u(L=>({...L,cashAdjustments:R}))},B=(O,R,L)=>{const J=[...c.cashAdjustments];J[O][R]=L,u(Z=>({...Z,cashAdjustments:J}))},H=(O,R)=>{const L=O.target.value;if(/^\d*\.?\d*$/.test(L)||L===""){const Z=c.cashAdjustments.map((te,fe)=>fe===R?{...te,price:L,isInvalid:!1}:te);u({...c,cashAdjustments:Z})}else{const Z=c.cashAdjustments.map((te,fe)=>fe===R?{...te,isInvalid:!0}:te);u({...c,cashAdjustments:Z})}},k=()=>c.cashAdjustments.reduce((O,R)=>{const L=parseFloat(R.price);return O+(isNaN(L)?0:L)},0),S=()=>{u(O=>({...O,incidentalCost:[...O.incidentalCost,{title:"",price:""}]}))},D=O=>{const R=c.incidentalCost.filter((L,J)=>J!==O);u(L=>({...L,incidentalCost:R}))},M=(O,R,L)=>{const J=[...c.incidentalCost];J[O][R]=L,u(Z=>({...Z,incidentalCost:J}))},z=(O,R)=>{const L=O.target.value;if(/^\d*\.?\d*$/.test(L)||L===""){const Z=c.incidentalCost.map((te,fe)=>fe===R?{...te,price:L,isInvalid:!1}:te);u({...c,incidentalCost:Z})}else{const Z=c.incidentalCost.map((te,fe)=>fe===R?{...te,isInvalid:!0}:te);u({...c,incidentalCost:Z})}},W=()=>c.incidentalCost.reduce((O,R)=>{const L=parseFloat(R.price);return O+(isNaN(L)?0:L)},0),V=()=>{u(O=>({...O,utilMaintenance:[...O.utilMaintenance,{title:"",price:""}]}))},Q=O=>{const R=c.utilMaintenance.filter((L,J)=>J!==O);u(L=>({...L,utilMaintenance:R}))},X=(O,R,L)=>{const J=[...c.utilMaintenance];J[O][R]=L,u(Z=>({...Z,utilMaintenance:J}))},ee=(O,R)=>{const L=O.target.value;if(/^\d*\.?\d*$/.test(L)||L===""){const Z=c.utilMaintenance.map((te,fe)=>fe===R?{...te,price:L,isInvalid:!1}:te);u({...c,utilMaintenance:Z})}else{const Z=c.utilMaintenance.map((te,fe)=>fe===R?{...te,isInvalid:!0}:te);u({...c,utilMaintenance:Z})}},re=()=>c.utilMaintenance.reduce((O,R)=>{const L=parseFloat(R.price);return O+(isNaN(L)?0:L)},0),se=()=>{u(O=>({...O,renovationCost:[...O.renovationCost,{title:"",price:""}]}))},ce=O=>{const R=c.renovationCost.filter((L,J)=>J!==O);u(L=>({...L,renovationCost:R}))},we=(O,R,L)=>{const J=[...c.renovationCost];J[O][R]=L,u(Z=>({...Z,renovationCost:J}))},Kn=(O,R)=>{const L=O.target.value;if(/^\d*\.?\d*$/.test(L)||L===""){const Z=c.renovationCost.map((te,fe)=>fe===R?{...te,price:L,isInvalid:!1}:te);u({...c,renovationCost:Z})}else{const Z=c.renovationCost.map((te,fe)=>fe===R?{...te,isInvalid:!0}:te);u({...c,renovationCost:Z})}},Qn=()=>c.renovationCost.reduce((O,R)=>{const L=parseFloat(R.price);return O+(isNaN(L)?0:L)},0),Kc=()=>{const O=W(),R=re(),L=Qn();return O+R+L},ch=O=>{const R=O.target.value;isNaN(R)?u({...c,isInvalid:!0}):u({...c,totalcashsurplus:R,isInvalid:!1})},uh=()=>{var O,R,L,J,Z,te;if(c.address&&c.city&&c.state&&c.county&&c.zip&&c.parcel&&c.subdivision&&c.legal&&c.costpersqft&&c.propertyType&&c.lotacres&&c.yearBuild&&c.totallivingsqft&&c.beds&&c.baths&&c.stories&&c.garage&&c.garagesqft&&c.poolspa&&c.fireplaces&&c.ac&&c.heating&&c.buildingstyle&&c.sitevacant&&c.extwall&&c.roofing&&c.totalSqft&&c.totalcashsurplus&&c.sellpricebtoc&&c.closeDataAtoB&&c.closeDataBtoC){const fe=E(),dh=Y(),fh=k(),ph=W(),mh=G(),hh=re(),vh=Qn(),yh=Kc(),Kl={...c,userfirstname:(O=a==null?void 0:a.result)==null?void 0:O.firstName,usermiddlename:(R=a==null?void 0:a.result)==null?void 0:R.middleName,userlastname:(L=a==null?void 0:a.result)==null?void 0:L.lastName,usertitle:(J=a==null?void 0:a.result)==null?void 0:J.title,useremail:(Z=a==null?void 0:a.result)==null?void 0:Z.email,userId:(te=a==null?void 0:a.result)==null?void 0:te.userId,totalCostsAtoB:fe,totalcredits:mh,totalCostsAtoBaftercredits:dh,totalcashAdjustments:fh,totalincidentalCost:ph,totalutilMaintenanceCost:hh,totalrenovationCost:vh,costsAfterPropertyAcquisition:yh};Array.isArray(c.propertyTaxInfo)&&c.propertyTaxInfo.length>0?Kl.propertyTaxInfo=c.propertyTaxInfo:Kl.propertyTaxInfo=[],i(Oo(Kl)),p(!0)}else ie.error("Please fill all fields before submitting",{position:"top-right",autoClose:3e3})};return P.useEffect(()=>{d&&(l==="succeeded"?(ie.success("Property submitted successfully!",{position:"top-right",autoClose:3e3}),p(!1)):l==="failed"&&(ie.error(`Failed to submit: ${s}`,{position:"top-right",autoClose:3e3}),p(!1)))},[l,s,d]),o.jsx(o.Fragment,{children:o.jsxs("div",{className:"container tabs-wrap",children:[o.jsx(Oe,{}),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==="Images"?"active tab":"tab",children:o.jsx("a",{onClick:()=>t("Images"),role:"tab",children:"Images, Maps"})}),o.jsx("li",{role:"presentation",className:e==="Accounting"?"active tab":"tab",children:o.jsx("a",{onClick:()=>t("Accounting"),role:"tab",children:"Accounting"})})]}),o.jsxs("div",{className:"tab-content",children:[e==="propertydetails"&&o.jsxs("div",{role:"tabpanel",className:"card tab-pane active",children:[o.jsxs("form",{children:[o.jsx("h3",{style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:"Property Location"}),o.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),o.jsxs("div",{className:"row gy-3",children:[o.jsx("div",{className:"col-md-4",children:o.jsxs("div",{className:"form-floating mb-3",children:["Property Address",o.jsx("input",{type:"text",className:"form-control",name:"address",value:c.address,onChange:x,required:!0})]})}),o.jsx("div",{className:"col-md-4",children:o.jsxs("div",{className:"form-floating mb-3",children:["City",o.jsx("input",{type:"text",className:"form-control",name:"city",value:c.city,onChange:x,required:!0})]})}),o.jsx("div",{className:"col-md-4",children:o.jsxs("div",{className:"form-floating mb-3",children:["State",o.jsxs("select",{className:"form-floating mb-3 form-control",name:"state",value:c.state,onChange:x,required:!0,children:[o.jsx("option",{value:"",children:"Please Select"}),o.jsx("option",{value:"Alaska",children:"Alaska"}),o.jsx("option",{value:"Alabama",children:"Alabama"}),o.jsx("option",{value:"Arkansas",children:"Arkansas"}),o.jsx("option",{value:"Arizona",children:"Arizona"}),o.jsx("option",{value:"California",children:"California"}),o.jsx("option",{value:"Colorado",children:"Colorado"}),o.jsx("option",{value:"Connecticut",children:"Connecticut"}),o.jsx("option",{value:"District Of Columbia",children:"District Of Columbia"}),o.jsx("option",{value:"Delaware",children:"Delaware"}),o.jsx("option",{value:"Florida",children:"Florida"}),o.jsx("option",{value:"Georgia",children:"Georgia"}),o.jsx("option",{value:"Hawaii",children:"Hawaii"}),o.jsx("option",{value:"Iowa",children:"Iowa"}),o.jsx("option",{value:"Idaho",children:"Idaho"}),o.jsx("option",{value:"Illinois",children:"Illinois"}),o.jsx("option",{value:"Indiana",children:"Indiana"}),o.jsx("option",{value:"Kansas",children:"Kansas"}),o.jsx("option",{value:"Kentucky",children:"Kentucky"}),o.jsx("option",{value:"Louisiana",children:"Louisiana"}),o.jsx("option",{value:"Massachusetts",children:"Massachusetts"}),o.jsx("option",{value:"Maryland",children:"Maryland"}),o.jsx("option",{value:"Michigan",children:"Michigan"}),o.jsx("option",{value:"Minnesota",children:"Minnesota"}),o.jsx("option",{value:"Missouri",children:"Missouri"}),o.jsx("option",{value:"Mississippi",children:"Mississippi"}),o.jsx("option",{value:"Montana",children:"Montana"}),o.jsx("option",{value:"North Carolina",children:"North Carolina"}),o.jsx("option",{value:"North Dakota",children:"North Dakota"}),o.jsx("option",{value:"Nebraska",children:"Nebraska"}),o.jsx("option",{value:"New Hampshire",children:"New Hampshire"}),o.jsx("option",{value:"New Jersey",children:"New Jersey"}),o.jsx("option",{value:"New Mexico",children:"New Mexico"}),o.jsx("option",{value:"Nevada",children:"Nevada"}),o.jsx("option",{value:"New York",children:"New York"}),o.jsx("option",{value:"Ohio",children:"Ohio"}),o.jsx("option",{value:"Oklahoma",children:"Oklahoma"}),o.jsx("option",{value:"Oregon",children:"Oregon"}),o.jsx("option",{value:"Pennsylvania",children:"Pennsylvania"}),o.jsx("option",{value:"Rhode Island",children:"Rhode Island"}),o.jsx("option",{value:"South Carolina",children:"South Carolina"}),o.jsx("option",{value:"South Dakota",children:"South Dakota"}),o.jsx("option",{value:"Tennessee",children:"Tennessee"}),o.jsx("option",{value:"Texas",children:"Texas"}),o.jsx("option",{value:"Utah",children:"Utah"}),o.jsx("option",{value:"Virginia",children:"Virginia"}),o.jsx("option",{value:"Vermont",children:"Vermont"}),o.jsx("option",{value:"Washington",children:"Washington"}),o.jsx("option",{value:"Wisconsin",children:"Wisconsin"}),o.jsx("option",{value:"West Virginia",children:"West Virginia"}),o.jsx("option",{value:"Wyoming",children:"Wyoming"})]})]})})]}),o.jsxs("div",{className:"row gy-3",children:[o.jsxs("div",{className:"col-md-4",children:["County",o.jsxs("select",{className:"form-floating mb-3 form-control",name:"county",value:c.county,onChange:x,required:!0,children:[o.jsx("option",{value:"",children:"Please Select"}),o.jsx("option",{value:"Abbeville",children:"Abbeville"}),o.jsx("option",{value:"Aiken",children:"Aiken"}),o.jsx("option",{value:"Allendale",children:"Allendale"}),o.jsx("option",{value:"Anderson",children:"Anderson"}),o.jsx("option",{value:"Bamberg",children:"Bamberg"}),o.jsx("option",{value:"Barnwell",children:"Barnwell"}),o.jsx("option",{value:"Beaufort",children:"Beaufort"}),o.jsx("option",{value:"Berkeley",children:"Berkeley"}),o.jsx("option",{value:"Calhoun",children:"Calhoun"}),o.jsx("option",{value:"Charleston",children:"Charleston"}),o.jsx("option",{value:"Cherokee",children:"Cherokee"}),o.jsx("option",{value:"Chester",children:"Chester"}),o.jsx("option",{value:"Chesterfield",children:"Chesterfield"}),o.jsx("option",{value:"Clarendon",children:"Clarendon"}),o.jsx("option",{value:"Colleton",children:"Colleton"}),o.jsx("option",{value:"Darlington",children:"Darlington"}),o.jsx("option",{value:"Dillon",children:"Dillon"}),o.jsx("option",{value:"Dorchester",children:"Dorchester"}),o.jsx("option",{value:"Edgefield",children:"Edgefield"}),o.jsx("option",{value:"Fairfield",children:"Fairfield"}),o.jsx("option",{value:"Florence",children:"Florence"}),o.jsx("option",{value:"Georgetown",children:"Georgetown"}),o.jsx("option",{value:"Greenville",children:"Greenville"}),o.jsx("option",{value:"Greenwood",children:"Greenwood"}),o.jsx("option",{value:"Hampton",children:"Hampton"}),o.jsx("option",{value:"Horry",children:"Horry"}),o.jsx("option",{value:"Jasper",children:"Jasper"}),o.jsx("option",{value:"Kershaw",children:"Kershaw"}),o.jsx("option",{value:"Lancaster",children:"Lancaster"}),o.jsx("option",{value:"Laurens",children:"Laurens"}),o.jsx("option",{value:"Lee",children:"Lee"}),o.jsx("option",{value:"Lexington",children:"Lexington"}),o.jsx("option",{value:"Marion",children:"Marion"}),o.jsx("option",{value:"Marlboro",children:"Marlboro"}),o.jsx("option",{value:"McCormick",children:"McCormick"}),o.jsx("option",{value:"Newberry",children:"Newberry"}),o.jsx("option",{value:"Oconee",children:"Oconee"}),o.jsx("option",{value:"Orangeburg",children:"Orangeburg"}),o.jsx("option",{value:"Pickens",children:"Pickens"}),o.jsx("option",{value:"Richland",children:"Richland"}),o.jsx("option",{value:"Saluda",children:"Saluda"}),o.jsx("option",{value:"Spartanburg",children:"Spartanburg"}),o.jsx("option",{value:"Sumter",children:"Sumter"}),o.jsx("option",{value:"Union",children:"Union"}),o.jsx("option",{value:"Williamsburg",children:"Williamsburg"}),o.jsx("option",{value:"York",children:"York"})]})]}),o.jsx("div",{className:"col-md-4",children:o.jsxs("div",{className:"form-floating mb-3",children:["Zip",o.jsx("input",{type:"text",className:"form-control",name:"zip",value:c.zip,onChange:x,required:!0})]})}),o.jsx("div",{className:"col-md-4",children:o.jsxs("div",{className:"form-floating mb-3",children:["Parcel",o.jsx("input",{type:"text",className:"form-control",name:"parcel",value:c.parcel,onChange:x,required:!0})]})})]}),o.jsxs("div",{className:"row gy-3",children:[o.jsx("div",{className:"col-md-4",children:o.jsxs("div",{className:"form-floating mb-3",children:["Sub division",o.jsx("input",{type:"text",className:"form-control",name:"subdivision",value:c.subdivision,onChange:x,required:!0})]})}),o.jsx("div",{className:"col-md-4",children:o.jsxs("div",{className:"form-floating mb-3",children:["Legal Description",o.jsx("textarea",{type:"text",className:"form-control",name:"legal",value:c.legal,onChange:x,required:!0})]})}),o.jsx("div",{className:"col-md-4",children:o.jsxs("div",{className:"form-floating mb-3",children:["Cost per SQFT",o.jsx("input",{type:"text",className:"form-control",name:"costpersqft",value:c.costpersqft,onChange:x,required:!0})]})})]}),o.jsxs("div",{className:"row gy-3",children:[o.jsxs("div",{className:"col-md-4",children:["Property Type",o.jsxs("select",{className:"form-floating mb-3 form-control",name:"propertyType",value:c.propertyType,onChange:x,required:!0,children:[o.jsx("option",{value:"",children:"Please Select"}),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-md-4",children:o.jsxs("div",{className:"form-floating mb-3",children:["Lot Acres/Sqft",o.jsx("input",{type:"text",className:"form-control",name:"lotacres",value:c.lotacres,onChange:x,required:!0})]})}),o.jsx("div",{className:"col-md-4",children:o.jsxs("div",{className:"form-floating mb-3",children:["Year Build",o.jsx("input",{type:"text",className:"form-control",name:"yearBuild",value:c.yearBuild,onChange:x,required:!0})]})})]}),o.jsxs("div",{className:"row gy-3",children:[o.jsx("div",{className:"col-md-4",children:o.jsxs("div",{className:"form-floating mb-3",children:["Total Living SQFT",o.jsx("input",{type:"text",className:"form-control",name:"totallivingsqft",value:c.totallivingsqft,onChange:x,required:!0})]})}),o.jsx("div",{className:"col-md-4",children:o.jsxs("div",{className:"form-floating mb-3",children:["Beds",o.jsx("input",{type:"text",className:"form-control",name:"beds",value:c.beds,onChange:x,required:!0})]})}),o.jsx("div",{className:"col-md-4",children:o.jsxs("div",{className:"form-floating mb-3",children:["Baths",o.jsx("input",{type:"text",className:"form-control",name:"baths",value:c.baths,onChange:x,required:!0})]})})]}),o.jsxs("div",{className:"row gy-3",children:[o.jsxs("div",{className:"col-md-4",children:["Stories",o.jsxs("select",{className:"form-floating mb-3 form-control",name:"stories",value:c.stories,onChange:x,required:!0,children:[o.jsx("option",{value:"",children:"Please Select"}),o.jsx("option",{value:"0",children:"0"}),o.jsx("option",{value:"1",children:"1"}),o.jsx("option",{value:"2",children:"2"}),o.jsx("option",{value:"3",children:"3"}),o.jsx("option",{value:"4",children:"4"}),o.jsx("option",{value:"5",children:"5"}),o.jsx("option",{value:"6",children:"6"}),o.jsx("option",{value:"7",children:"7"}),o.jsx("option",{value:"8",children:"8"}),o.jsx("option",{value:"9",children:"9"}),o.jsx("option",{value:"10",children:"10"})]})]}),o.jsxs("div",{className:"col-md-4",children:["Garage",o.jsxs("select",{className:"form-floating mb-3 form-control",name:"garage",value:c.garage,onChange:x,required:!0,children:[o.jsx("option",{value:"",children:"Please Select"}),o.jsx("option",{value:"0",children:"0"}),o.jsx("option",{value:"1",children:"1"}),o.jsx("option",{value:"2",children:"2"}),o.jsx("option",{value:"3",children:"3"}),o.jsx("option",{value:"4",children:"4"}),o.jsx("option",{value:"5",children:"5"})]})]}),o.jsx("div",{className:"col-md-4",children:o.jsxs("div",{className:"form-floating mb-3",children:["Garage SQFT",o.jsx("input",{type:"text",className:"form-control",name:"garagesqft",value:c.garagesqft,onChange:x,required:!0})]})})]}),o.jsxs("div",{className:"row gy-3",children:[o.jsxs("div",{className:"col-md-4",children:["Pool/SPA",o.jsxs("select",{className:"form-floating mb-3 form-control",name:"poolspa",value:c.poolspa,onChange:x,required:!0,children:[o.jsx("option",{value:"",children:"Please Select"}),o.jsx("option",{value:"N/A",children:"N/A"}),o.jsx("option",{value:"Yes- Pool Only",children:"Yes- Pool Only"}),o.jsx("option",{value:"Yes- SPA only",children:"Yes- SPA only"}),o.jsx("option",{value:"Yes - Both Pool and SPA",children:"Yes - Both Pool and SPA"}),o.jsx("option",{value:"4",children:"None"})]})]}),o.jsxs("div",{className:"col-md-4",children:["Fire places",o.jsxs("select",{className:"form-floating mb-3 form-control",name:"fireplaces",value:c.fireplaces,onChange:x,required:!0,children:[o.jsx("option",{value:"",children:"Please Select"}),o.jsx("option",{value:"N/A",children:"N/A"}),o.jsx("option",{value:"yes",children:"Yes"}),o.jsx("option",{value:"no",children:"No"})]})]}),o.jsxs("div",{className:"col-md-4",children:["A/C",o.jsxs("select",{className:"form-floating mb-3 form-control",name:"ac",value:c.ac,onChange:x,required:!0,children:[o.jsx("option",{value:"",children:"Please Select"}),o.jsx("option",{value:"N/A",children:"N/A"}),o.jsx("option",{value:"Central",children:"Central"}),o.jsx("option",{value:"Heat Pump",children:"Heat Pump"}),o.jsx("option",{value:"Warm Air",children:"Warm Air"}),o.jsx("option",{value:"Forced Air",children:"Forced Air"}),o.jsx("option",{value:"Gas",children:"Gas"})]})]})]}),o.jsxs("div",{className:"row gy-3",children:[o.jsxs("div",{className:"col-md-4",children:["Heating",o.jsxs("select",{className:"form-floating mb-3 form-control",name:"heating",value:c.heating,onChange:x,required:!0,children:[o.jsx("option",{value:"",children:"Please Select"}),o.jsx("option",{value:"N/A",children:"N/A"}),o.jsx("option",{value:"Central",children:"Central"}),o.jsx("option",{value:"Heat Pump",children:"Heat Pump"}),o.jsx("option",{value:"Warm Air",children:"Warm Air"}),o.jsx("option",{value:"Forced Air",children:"Forced Air"}),o.jsx("option",{value:"Gas",children:"Gas"})]})]}),o.jsxs("div",{className:"col-md-4",children:["Building Style",o.jsxs("select",{className:"form-floating mb-3 form-control",name:"buildingstyle",value:c.buildingstyle,onChange:x,required:!0,children:[o.jsx("option",{value:"",children:"Please Select"}),o.jsx("option",{value:"One Story",children:"One Story"}),o.jsx("option",{value:"Craftsman",children:"Craftsman"}),o.jsx("option",{value:"Log/Cabin",children:"Log/Cabin"}),o.jsx("option",{value:"Split-Level",children:"Split-Level"}),o.jsx("option",{value:"Split-Foyer",children:"Split-Foyer"}),o.jsx("option",{value:"Stick Built",children:"Stick Built"}),o.jsx("option",{value:"Single wide",children:"Single wide"}),o.jsx("option",{value:"Double wide",children:"Double wide"}),o.jsx("option",{value:"Duplex",children:"Duplex"}),o.jsx("option",{value:"Triplex",children:"Triplex"}),o.jsx("option",{value:"Quadruplex",children:"Quadruplex"}),o.jsx("option",{value:"Two Story",children:"Two Story"}),o.jsx("option",{value:"Victorian",children:"Victorian"}),o.jsx("option",{value:"Tudor",children:"Tudor"}),o.jsx("option",{value:"Modern",children:"Modern"}),o.jsx("option",{value:"Art Deco",children:"Art Deco"}),o.jsx("option",{value:"Bungalow",children:"Bungalow"}),o.jsx("option",{value:"Mansion",children:"Mansion"}),o.jsx("option",{value:"Farmhouse",children:"Farmhouse"}),o.jsx("option",{value:"Conventional",children:"Conventional"}),o.jsx("option",{value:"Ranch",children:"Ranch"}),o.jsx("option",{value:"Ranch with Basement",children:"Ranch with Basement"}),o.jsx("option",{value:"Cape Cod",children:"Cape Cod"}),o.jsx("option",{value:"Contemporary",children:"Contemporary"}),o.jsx("option",{value:"Colonial",children:"Colonial"}),o.jsx("option",{value:"Mediterranean",children:"Mediterranean"})]})]}),o.jsxs("div",{className:"col-md-4",children:["Site Vacant",o.jsxs("select",{className:"form-floating mb-3 form-control",name:"sitevacant",value:c.sitevacant,onChange:x,required:!0,children:[o.jsx("option",{value:"",children:"Please select"}),o.jsx("option",{value:"Yes",children:"Yes"}),o.jsx("option",{value:"No",children:"No"})]})]})]}),o.jsxs("div",{className:"row gy-3",children:[o.jsxs("div",{className:"col-md-4",children:["Ext Wall",o.jsxs("select",{className:"form-floating mb-3 form-control",name:"extwall",value:c.extwall,onChange:x,required:!0,children:[o.jsx("option",{value:"",children:"Please Select"}),o.jsx("option",{value:"N/A",children:"N/A"}),o.jsx("option",{value:"Brick",children:"Brick"}),o.jsx("option",{value:"Brick/Vinyl Siding",children:"Brick/Vinyl Siding"}),o.jsx("option",{value:"Wood/Vinyl Siding",children:"Wood/Vinyl Siding"}),o.jsx("option",{value:"Brick/Wood Siding",children:"Brick/Wood Siding"}),o.jsx("option",{value:"Stone",children:"Stone"}),o.jsx("option",{value:"Masonry",children:"Masonry"}),o.jsx("option",{value:"Metal",children:"Metal"}),o.jsx("option",{value:"Fiberboard",children:"Fiberboard"}),o.jsx("option",{value:"Asphalt Siding",children:"Asphalt Siding"}),o.jsx("option",{value:"Concrete Block",children:"Concrete Block"}),o.jsx("option",{value:"Gable",children:"Gable"}),o.jsx("option",{value:"Brick Veneer",children:"Brick Veneer"}),o.jsx("option",{value:"Frame",children:"Frame"}),o.jsx("option",{value:"Siding",children:"Siding"}),o.jsx("option",{value:"Cement/Wood Fiber Siding",children:"Cement/Wood Fiber Siding"}),o.jsx("option",{value:"Fiber/Cement Siding",children:"Fiber/Cement Siding"}),o.jsx("option",{value:"Wood Siding",children:"Wood Siding"}),o.jsx("option",{value:"Vinyl Siding",children:"Vinyl Siding"}),o.jsx("option",{value:"Aluminium Siding",children:"Aluminium Siding"}),o.jsx("option",{value:"Wood/Vinyl Siding",children:"Alum/Vinyl Siding"})]})]}),o.jsxs("div",{className:"col-md-4",children:["Roofing",o.jsxs("select",{className:"form-floating mb-3 form-control",name:"roofing",value:c.roofing,onChange:x,required:!0,children:[o.jsx("option",{value:"",children:"Please Select"}),o.jsx("option",{value:"N/A",children:"N/A"}),o.jsx("option",{value:"Asphalt Shingle",children:"Asphalt Shingle"}),o.jsx("option",{value:"Green Roofs",children:"Green Roofs"}),o.jsx("option",{value:"Built-up Roofing",children:"Built-up Roofing"}),o.jsx("option",{value:"Composition Shingle",children:"Composition Shingle"}),o.jsx("option",{value:"Composition Shingle Heavy",children:"Composition Shingle Heavy"}),o.jsx("option",{value:"Solar tiles",children:"Solar tiles"}),o.jsx("option",{value:"Metal",children:"Metal"}),o.jsx("option",{value:"Stone-coated steel",children:"Stone-coated steel"}),o.jsx("option",{value:"Slate",children:"Slate"}),o.jsx("option",{value:"Rubber Slate",children:"Rubber Slate"}),o.jsx("option",{value:"Clay and Concrete tiles",children:"Clay and Concrete tiles"})]})]}),o.jsx("div",{className:"col-md-4",children:o.jsxs("div",{className:"form-floating mb-3",children:["Total SQFT",o.jsx("input",{type:"text",className:"form-control",name:"totalSqft",value:c.totalSqft,onChange:x,required:!0})]})})]}),o.jsxs("h3",{style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:[o.jsx("br",{}),"Property Tax Information"]}),o.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),c.propertyTaxInfo.map((O,R)=>o.jsxs("div",{className:"row gy-4",children:[o.jsx("div",{className:"col-md-3",children:o.jsxs("div",{className:"form-floating mb-3",children:["Property Tax Owned",o.jsx("input",{type:"text",className:"form-control",name:"propertytaxowned",value:O.propertytaxowned,onChange:L=>x(L,R,"propertyTaxInfo"),required:!0})]})}),o.jsx("div",{className:"col-md-2",children:o.jsxs("div",{className:"form-floating mb-2",children:["Owed Year",o.jsx("input",{type:"text",className:"form-control",name:"ownedyear",value:O.ownedyear,onChange:L=>x(L,R,"propertyTaxInfo"),required:!0})]})}),o.jsx("div",{className:"col-md-2",children:o.jsxs("div",{className:"form-floating mb-2",children:["Tax Assessed",o.jsx("input",{type:"text",className:"form-control",name:"taxassessed",value:O.taxassessed,onChange:L=>x(L,R,"propertyTaxInfo"),required:!0})]})}),o.jsx("div",{className:"col-md-2",children:o.jsxs("div",{className:"form-floating mb-2",children:["Tax Year",o.jsx("input",{type:"text",className:"form-control",name:"taxyear",value:O.taxyear,onChange:L=>x(L,R,"propertyTaxInfo"),required:!0})]})}),o.jsx("div",{className:"col-md-3",children:o.jsxs("div",{className:"form-floating mb-2",children:[o.jsx("br",{}),o.jsx("button",{className:"btn btn-danger",onClick:()=>m(R),style:{height:"25px",width:"35px"},children:"X"})]})})]},R)),o.jsx("button",{className:"btn btn-secondary",onClick:h,children:"+ Add Another Property Tax Info"})]}),o.jsx("button",{className:"btn btn-primary continue",onClick:n,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Continue"})]}),e==="Images"&&o.jsxs("div",{role:"tabpanel",className:"card tab-pane active",children:[o.jsxs("h3",{style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:["Upload Images"," "]}),o.jsxs("form",{children:[c.images.map((O,R)=>o.jsxs("div",{className:"row gy-3 align-items-center",children:[o.jsx("div",{className:"col-md-4",children:o.jsx("input",{type:"text",className:"form-control",value:O.title,placeholder:"Image Title",onChange:L=>j(R,L)})}),o.jsxs("div",{className:"col-md-4 d-flex align-items-center",children:[o.jsx(oh,{multiple:!1,onDone:L=>y(L,R)}),o.jsx("button",{type:"button",className:"btn btn-danger",onClick:()=>v(R),style:{marginLeft:"5px"},children:"Delete"})]}),O.file&&o.jsx("div",{className:"col-md-12",children:o.jsx("img",{src:O.file,alt:"uploaded",style:{width:"150px",height:"150px"}})})]},R)),o.jsx("button",{type:"button",className:"btn btn-primary",onClick:N,style:{backgroundColor:"#fda417",border:"#fda417"},children:"+ Add Image"}),o.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),o.jsxs("div",{className:"mb-3",children:[o.jsx("label",{htmlFor:"googleMapLink",className:"form-label",children:o.jsxs("h3",{style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:["Google Maps Link"," "]})}),o.jsx("input",{type:"text",className:"form-control",name:"googleMapLink",value:c.googleMapLink,onChange:x,placeholder:"Enter Google Maps link"})]}),c.googleMapLink&&o.jsx("iframe",{title:"Google Map",width:"100%",height:"300",src:`https://www.google.com/maps/embed/v1/view?key=YOUR_API_KEY¢er=${c.googleMapLink}&zoom=10`,frameBorder:"0",allowFullScreen:!0})]}),o.jsx("button",{className:"btn btn-primary back",onClick:r,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Go Back"})," ",o.jsx("button",{className:"btn btn-primary continue",onClick:n,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Continue"})]}),e==="Accounting"&&o.jsxs("div",{className:"card",style:{color:"#fda417",border:"1px solid #fda417",padding:"10px",borderRadius:"8px"},children:[o.jsx("br",{}),o.jsxs("div",{className:"row gy-3",children:[o.jsx("div",{className:"col-md-4",children:o.jsx("input",{type:"text",className:"form-control",placeholder:"Close Date A to B",required:!0,disabled:!0})}),o.jsx("div",{className:"col-md-4",children:o.jsx("input",{type:"date",className:"form-control",value:c.closeDataAtoB,onChange:O=>{const R=O.target.value;u({...c,closeDataAtoB:R})},placeholder:"Close Date A to B",style:{textAlign:"right"},required:!0})})]}),o.jsx("br",{}),o.jsxs("div",{className:"row gy-3",children:[o.jsx("div",{className:"col-md-4",children:o.jsx("input",{type:"text",className:"form-control",placeholder:"Close Date B to C",required:!0,disabled:!0})}),o.jsx("div",{className:"col-md-4",children:o.jsx("input",{type:"date",className:"form-control",value:c.closeDataBtoC,onChange:O=>{const R=O.target.value;u({...c,closeDataBtoC:R})},placeholder:"Close Date B to C",style:{textAlign:"right"},required:!0})})]}),o.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),o.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Property Acquisition A to B:"}),o.jsx("br",{}),o.jsxs("div",{className:"row gy-3",children:[o.jsx("div",{className:"col-md-4",children:o.jsx("input",{type:"text",className:"form-control",placeholder:"Purchase Cost",required:!0,disabled:!0})}),o.jsxs("div",{className:"col-md-4",children:[o.jsx("input",{type:"text",className:`form-control ${c.isPurchaseCostInvalid?"is-invalid":""}`,value:c.purchaseCost,onChange:O=>{const R=O.target.value,L=/^\d*\.?\d*$/.test(R);u({...c,purchaseCost:R,isPurchaseCostInvalid:!L})},onKeyPress:O=>{const R=O.charCode;(R<48||R>57)&&R!==46&&(O.preventDefault(),u({...c,isPurchaseCostInvalid:!0}))},placeholder:"Enter Purchase Cost",style:{textAlign:"right"},required:!0}),c.isPurchaseCostInvalid&&o.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),o.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),o.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Costs paid out of Closing Hud A to B:"}),c.costPaidAtoB.map((O,R)=>o.jsxs("div",{className:"row gy-3 align-items-center",children:[o.jsx("div",{className:"col-md-4",children:o.jsx("input",{type:"text",className:"form-control",value:O.title,onChange:L=>w(R,"title",L.target.value),placeholder:"Title",required:!0})}),o.jsxs("div",{className:"col-md-4",children:[o.jsx("input",{type:"text",className:`form-control ${O.isInvalid?"is-invalid":""}`,value:O.price,onChange:L=>b(L,R),placeholder:"Price",style:{textAlign:"right"},required:!0}),O.isInvalid&&o.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),o.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:o.jsx("button",{className:"btn btn-danger",onClick:()=>g(R),style:{marginLeft:"5px"},children:"x"})})]},R)),o.jsx("div",{className:"col-md-4",children:o.jsxs("button",{onClick:f,className:"btn btn-primary back",style:{backgroundColor:"#fda417",border:"#fda417"},children:[o.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Extra Cost"]})}),o.jsxs("div",{className:"row gy-3 align-items-center",children:[o.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Costs to Buy A to B"}),o.jsx("div",{className:"col-md-4",children:o.jsx("input",{type:"text",className:"form-control",name:"totalCostsAtoB",value:E(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},placeholder:"Total Costs to Buy A to B",required:!0})})]}),o.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),o.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Credits received on settlement:"}),c.credits.map((O,R)=>o.jsxs("div",{className:"row gy-3 align-items-center",children:[o.jsx("div",{className:"col-md-4",children:o.jsx("input",{type:"text",className:"form-control",value:O.title,onChange:L=>F(R,"title",L.target.value),placeholder:"credits",required:!0})}),o.jsxs("div",{className:"col-md-4",children:[o.jsx("input",{type:"text",className:`form-control ${O.isInvalid?"is-invalid":""}`,value:O.price,onChange:L=>$(L,R),placeholder:"Price",style:{textAlign:"right"},required:!0}),O.isInvalid&&o.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),o.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:o.jsx("button",{className:"btn btn-danger",onClick:()=>I(R),style:{marginLeft:"5px"},children:"x"})})]},R)),o.jsx("div",{className:"col-md-4",children:o.jsxs("button",{className:"btn btn-primary back",onClick:C,style:{backgroundColor:"#fda417",border:"#fda417"},children:[o.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add credits"]})}),o.jsxs("div",{className:"row gy-3 align-items-center",children:[o.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total credits received on settlement"}),o.jsx("div",{className:"col-md-4",children:o.jsx("input",{type:"text",className:"form-control",name:"totalcredits",value:G(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),o.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),o.jsxs("div",{className:"row gy-3 align-items-center",children:[o.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Costs to Buy A to B After credits"}),o.jsx("div",{className:"col-md-4",children:o.jsx("input",{type:"text",className:"form-control",name:"totalCostsAtoBaftercredits",value:Y(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),o.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),o.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Cash Adjustments:"}),c.cashAdjustments.map((O,R)=>o.jsxs("div",{className:"row gy-3 align-items-center",children:[o.jsx("div",{className:"col-md-4",children:o.jsx("input",{type:"text",className:"form-control",value:O.title,onChange:L=>B(R,"title",L.target.value),placeholder:"Title",required:!0})}),o.jsxs("div",{className:"col-md-4",children:[o.jsx("input",{type:"text",className:`form-control ${O.isInvalid?"is-invalid":""}`,value:O.price,onChange:L=>H(L,R),placeholder:"Price",style:{textAlign:"right"},required:!0}),O.isInvalid&&o.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),o.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:o.jsx("button",{className:"btn btn-danger",onClick:()=>T(R),style:{marginLeft:"5px"},children:"x"})})]},R)),o.jsx("div",{className:"col-md-4",children:o.jsxs("button",{className:"btn btn-primary back",onClick:K,style:{backgroundColor:"#fda417",border:"#fda417"},children:[o.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Cash Adjustments"]})}),o.jsxs("div",{className:"row gy-3 align-items-center",children:[o.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Cash Adjustments on Settlement"}),o.jsx("div",{className:"col-md-4",children:o.jsx("input",{type:"text",className:"form-control",name:"totalcashAdjustments",value:k(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),o.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),o.jsxs("div",{className:"row gy-3 align-items-center",children:[o.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Cash Required/(Surplus) on Settlement"}),o.jsxs("div",{className:"col-md-4",children:[o.jsx("input",{type:"text",className:`form-control ${c.isInvalid?"is-invalid":""}`,name:"totalcashsurplus",value:c.totalcashsurplus,onChange:ch,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},placeholder:"Enter only numbers",required:!0}),c.isInvalid&&o.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),o.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),o.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Incidental Cost:"}),c.incidentalCost.map((O,R)=>o.jsxs("div",{className:"row gy-3 align-items-center",children:[o.jsx("div",{className:"col-md-4",children:o.jsx("input",{type:"text",className:"form-control",value:O.title,onChange:L=>M(R,"title",L.target.value),placeholder:"Title",required:!0})}),o.jsxs("div",{className:"col-md-4",children:[o.jsx("input",{type:"text",className:`form-control ${O.isInvalid?"is-invalid":""}`,value:O.price,onChange:L=>z(L,R),placeholder:"Price",style:{textAlign:"right"},required:!0}),O.isInvalid&&o.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),o.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:o.jsx("button",{className:"btn btn-danger",onClick:()=>D(R),style:{marginLeft:"5px"},children:"x"})})]},R)),o.jsx("div",{className:"col-md-4",children:o.jsxs("button",{className:"btn btn-primary back",onClick:S,style:{backgroundColor:"#fda417",border:"#fda417"},children:[o.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Incidental Cost"]})}),o.jsxs("div",{className:"row gy-3 align-items-center",children:[o.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Incidental Cost"}),o.jsx("div",{className:"col-md-4",children:o.jsx("input",{type:"text",className:"form-control",name:"totalincidentalCost",value:W(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),o.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),o.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Carry Costs:"}),c.utilMaintenance.map((O,R)=>o.jsxs("div",{className:"row gy-3 align-items-center",children:[o.jsx("div",{className:"col-md-4",children:o.jsx("input",{type:"text",className:"form-control",value:O.title,onChange:L=>X(R,"title",L.target.value),placeholder:"Title",required:!0})}),o.jsxs("div",{className:"col-md-4",children:[o.jsx("input",{type:"text",className:`form-control ${O.isInvalid?"is-invalid":""}`,value:O.price,onChange:L=>ee(L,R),placeholder:"Price",style:{textAlign:"right"},required:!0}),O.isInvalid&&o.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),o.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:o.jsx("button",{className:"btn btn-danger",onClick:()=>Q(R),style:{marginLeft:"5px"},children:"x"})})]},R)),o.jsx("div",{className:"col-md-4",children:o.jsxs("button",{className:"btn btn-primary back",onClick:V,style:{backgroundColor:"#fda417",border:"#fda417"},children:[o.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Carry Cost"]})}),o.jsxs("div",{className:"row gy-3 align-items-center",children:[o.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Carry Cost"}),o.jsx("div",{className:"col-md-4",children:o.jsx("input",{type:"text",className:"form-control",name:"totalutilMaintenanceCost",value:re(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),o.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),o.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Renovation and Holding Costs"}),c.renovationCost.map((O,R)=>o.jsxs("div",{className:"row gy-3 align-items-center",children:[o.jsx("div",{className:"col-md-4",children:o.jsx("input",{type:"text",className:"form-control",value:O.title,onChange:L=>we(R,"title",L.target.value),placeholder:"Title",required:!0,style:{fontSize:"10px"}})}),o.jsxs("div",{className:"col-md-4",children:[o.jsx("input",{type:"text",className:`form-control ${O.isInvalid?"is-invalid":""}`,value:O.price,onChange:L=>Kn(L,R),placeholder:"Price",style:{textAlign:"right"},required:!0}),O.isInvalid&&o.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),o.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:o.jsx("button",{className:"btn btn-danger",onClick:()=>ce(R),style:{marginLeft:"5px"},children:"x"})})]},R)),o.jsx("div",{className:"col-md-4",children:o.jsxs("button",{className:"btn btn-primary back",onClick:se,style:{backgroundColor:"#fda417",border:"#fda417"},children:[o.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Renovation and Holding cost"]})}),o.jsxs("div",{className:"row gy-3 align-items-center",children:[o.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Renovation and Holding cost"}),o.jsx("div",{className:"col-md-4",children:o.jsx("input",{type:"text",className:"form-control",name:"totalrenovationCost",value:Qn(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),o.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),o.jsxs("div",{className:"row gy-3 align-items-center",children:[o.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Costs After Property Acquisition"}),o.jsx("div",{className:"col-md-4",children:o.jsx("input",{type:"text",className:"form-control",name:"costsAfterPropertyAcquisition",value:Kc(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),o.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),o.jsxs("div",{className:"row gy-3 align-items-center",children:[o.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Selling Price B to C"}),o.jsxs("div",{className:"col-md-4",children:[o.jsx("input",{type:"text",className:`form-control ${c.isInvalid?"is-invalid":""}`,name:"sellpricebtoc",value:c.sellpricebtoc,onChange:O=>{const R=O.target.value,L=/^\d*\.?\d*$/.test(R);u({...c,sellpricebtoc:R,isInvalid:!L})},onKeyPress:O=>{const R=O.charCode;(R<48||R>57)&&R!==46&&(O.preventDefault(),u({...c,isInvalid:!0}))},placeholder:"Selling Price B to C",style:{textAlign:"right"},required:!0}),c.isInvalid&&o.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),o.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),o.jsxs("div",{className:"col-md-4",children:[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:uh,children:"Submit"})," "]}),o.jsx("br",{})]})]})]})})},Rt="/assets/propertydummy-DhVEZ7jN.jpg",Yj=()=>{var c;const e=St(),{user:t}=Ze(u=>({...u.auth})),{userProperties:n,totalPages:r}=Ze(u=>u.property),[i,l]=P.useState(1),s=5;P.useEffect(()=>{e(To({userId:t.result.userId,page:i,limit:s}))},[e,(c=t==null?void 0:t.result)==null?void 0:c.userId,i]);const a=u=>{l(u)};return o.jsx(o.Fragment,{children:n.length>0?o.jsxs(o.Fragment,{children:[o.jsx("ul",{children:n.map(u=>o.jsx("li",{children:o.jsx("div",{className:"container",children:o.jsx("div",{className:"col-md-12",children:o.jsxs("div",{className:"row p-2 bg-white border rounded mt-2",children:[o.jsx("div",{className:"col-md-3 mt-1",children:o.jsx("img",{src:Rt,className:"w-70",alt:"Img",style:{marginTop:"0px",maxWidth:"200px",maxHeight:"200px"}})}),o.jsxs("div",{className:"col-md-6 mt-1",children:[o.jsxs("h5",{children:[" ",o.jsxs(he,{to:`/property/${u.propertyId}`,target:"_blank",children:[u.address,"....."]})]}),o.jsx("div",{className:"d-flex flex-row"}),o.jsxs("div",{className:"mt-1 mb-1 spec-1",children:[o.jsx("span",{children:"100% cotton"}),o.jsx("span",{className:"dot"}),o.jsx("span",{children:"Light weight"}),o.jsx("span",{className:"dot"}),o.jsxs("span",{children:["Best finish",o.jsx("br",{})]})]}),o.jsxs("div",{className:"mt-1 mb-1 spec-1",children:[o.jsx("span",{children:"Unique design"}),o.jsx("span",{className:"dot"}),o.jsx("span",{children:"For men"}),o.jsx("span",{className:"dot"}),o.jsxs("span",{children:["Casual",o.jsx("br",{})]})]}),o.jsxs("p",{className:"text-justify text-truncate para mb-0",children:["There are many variations of passages of",o.jsx("br",{}),o.jsx("br",{})]})]}),o.jsx("div",{className:"align-items-center align-content-center col-md-3 border-left mt-1",children:o.jsxs("div",{className:"d-flex flex-column mt-4",children:[o.jsx(he,{to:`/property/${u.propertyId}`,target:"_blank",children:o.jsxs("button",{className:"btn btn-outline-primary btn-sm mt-2",type:"button",style:{backgroundColor:"#fda417",border:"#fda417"},children:[o.jsx("span",{className:"fa fa-eye",style:{color:"#F74B02"}})," "," ","View Details"]})}),o.jsx(he,{to:`/editproperty/${u.propertyId}`,children:o.jsxs("button",{className:"btn btn-outline-primary btn-sm mt-2",type:"button",style:{backgroundColor:"#fda417",border:"#fda417"},children:[o.jsx("span",{className:"fa fa-edit",style:{color:"#F74B02"}})," "," ","Edit Details .."]})})]})})]})})})},u._id))}),o.jsxs("div",{className:"pagination",children:[o.jsx("button",{onClick:()=>a(i-1),disabled:i===1,children:"Previous"}),Array.from({length:r},(u,d)=>d+1).map(u=>u===i||u===1||u===r||u>=i-1&&u<=i+1?o.jsx("button",{onClick:()=>a(u),disabled:i===u,children:u},u):u===2||u===r-1?o.jsx("span",{children:"..."},u):null),o.jsx("button",{onClick:()=>a(i+1),disabled:i===r,children:"Next"})]})]}):o.jsx("p",{children:"No active properties found."})})},Kj=()=>{var d,p,y,N,v,j,x,h,m,f,g,w;const{user:e,isLoading:t,error:n}=Ze(b=>b.auth),r=St(),i=Dr(),[l,s]=P.useState({userId:((d=e==null?void 0:e.result)==null?void 0:d.userId)||"",title:((p=e==null?void 0:e.result)==null?void 0:p.title)||"",firstName:((y=e==null?void 0:e.result)==null?void 0:y.firstName)||"",middleName:((N=e==null?void 0:e.result)==null?void 0:N.middleName)||"",lastName:((v=e==null?void 0:e.result)==null?void 0:v.lastName)||"",email:((j=e==null?void 0:e.result)==null?void 0:j.email)||"",aboutme:((x=e==null?void 0:e.result)==null?void 0:x.aboutme)||"",city:((h=e==null?void 0:e.result)==null?void 0:h.city)||"",state:((m=e==null?void 0:e.result)==null?void 0:m.state)||"",county:((f=e==null?void 0:e.result)==null?void 0:f.county)||"",zip:((g=e==null?void 0:e.result)==null?void 0:g.zip)||"",profileImage:((w=e==null?void 0:e.result)==null?void 0:w.profileImage)||""});P.useEffect(()=>{e&&s({userId:e.result.userId,title:e.result.title,firstName:e.result.firstName,middleName:e.result.middleName,lastName:e.result.lastName,email:e.result.email,aboutme:e.result.aboutme,city:e.result.city,state:e.result.state,county:e.result.county,zip:e.result.zip,profileImage:e.result.profileImage})},[e]);const a=b=>{s({...l,[b.target.name]:b.target.value})},c=()=>{s({...l,profileImage:""})},u=b=>{b.preventDefault(),r(ko(l)),i("/login")};return o.jsx(o.Fragment,{children:o.jsxs("form",{onSubmit:u,children:[o.jsxs("div",{className:"col-4",children:["Title",o.jsxs("select",{className:"form-floating mb-3 form-control","aria-label":"Default select example",name:"title",value:l.title,onChange:a,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("div",{className:"col-4",children:o.jsxs("div",{className:"form-floating mb-3",children:["First Name",o.jsx("input",{type:"text",className:"form-control",placeholder:"First Name",required:"required",name:"firstName",value:l.firstName,onChange:a})]})}),o.jsx("div",{className:"col-4",children:o.jsxs("div",{className:"form-floating mb-3",children:["Middle Name",o.jsx("input",{type:"text",className:"form-control",placeholder:"Middle Name",required:"required",name:"middleName",value:l.middleName,onChange:a})]})}),o.jsx("div",{className:"col-4",children:o.jsxs("div",{className:"form-floating mb-3",children:["Last Name",o.jsx("input",{type:"text",className:"form-control",placeholder:"Last Name",required:"required",name:"lastName",value:l.lastName,onChange:a})]})}),o.jsx("div",{className:"col-4",children:o.jsxs("div",{className:"form-floating mb-3",children:["Email",o.jsx("input",{type:"text",className:"form-control",placeholder:"Email",required:"required",name:"email",value:l.email,onChange:a,disabled:!0})]})}),o.jsx("div",{className:"col-4",children:o.jsxs("div",{className:"form-floating mb-3",children:["About me",o.jsx("textarea",{type:"text",id:"aboutme",name:"aboutme",className:"form-control h-100",value:l.aboutme,onChange:a})]})}),o.jsx("div",{className:"col-4",children:o.jsxs("div",{className:"form-floating mb-3",children:["City",o.jsx("input",{type:"text",className:"form-control",name:"city",placeholder:"city",value:l.city,onChange:a,required:!0})]})}),o.jsx("div",{className:"col-md-4",children:o.jsxs("div",{className:"form-floating mb-3",children:["State",o.jsxs("select",{className:"form-floating mb-3 form-control",name:"state",value:l.state,onChange:a,required:!0,children:[o.jsx("option",{value:"",children:"Please Select State"}),o.jsx("option",{value:"Alaska",children:"Alaska"}),o.jsx("option",{value:"Alabama",children:"Alabama"}),o.jsx("option",{value:"Arkansas",children:"Arkansas"}),o.jsx("option",{value:"Arizona",children:"Arizona"}),o.jsx("option",{value:"California",children:"California"}),o.jsx("option",{value:"Colorado",children:"Colorado"}),o.jsx("option",{value:"Connecticut",children:"Connecticut"}),o.jsx("option",{value:"District Of Columbia",children:"District Of Columbia"}),o.jsx("option",{value:"Delaware",children:"Delaware"}),o.jsx("option",{value:"Florida",children:"Florida"}),o.jsx("option",{value:"Georgia",children:"Georgia"}),o.jsx("option",{value:"Hawaii",children:"Hawaii"}),o.jsx("option",{value:"Iowa",children:"Iowa"}),o.jsx("option",{value:"Idaho",children:"Idaho"}),o.jsx("option",{value:"Illinois",children:"Illinois"}),o.jsx("option",{value:"Indiana",children:"Indiana"}),o.jsx("option",{value:"Kansas",children:"Kansas"}),o.jsx("option",{value:"Kentucky",children:"Kentucky"}),o.jsx("option",{value:"Louisiana",children:"Louisiana"}),o.jsx("option",{value:"Massachusetts",children:"Massachusetts"}),o.jsx("option",{value:"Maryland",children:"Maryland"}),o.jsx("option",{value:"Michigan",children:"Michigan"}),o.jsx("option",{value:"Minnesota",children:"Minnesota"}),o.jsx("option",{value:"Missouri",children:"Missouri"}),o.jsx("option",{value:"Mississippi",children:"Mississippi"}),o.jsx("option",{value:"Montana",children:"Montana"}),o.jsx("option",{value:"North Carolina",children:"North Carolina"}),o.jsx("option",{value:"North Dakota",children:"North Dakota"}),o.jsx("option",{value:"Nebraska",children:"Nebraska"}),o.jsx("option",{value:"New Hampshire",children:"New Hampshire"}),o.jsx("option",{value:"New Jersey",children:"New Jersey"}),o.jsx("option",{value:"New Mexico",children:"New Mexico"}),o.jsx("option",{value:"Nevada",children:"Nevada"}),o.jsx("option",{value:"New York",children:"New York"}),o.jsx("option",{value:"Ohio",children:"Ohio"}),o.jsx("option",{value:"Oklahoma",children:"Oklahoma"}),o.jsx("option",{value:"Oregon",children:"Oregon"}),o.jsx("option",{value:"Pennsylvania",children:"Pennsylvania"}),o.jsx("option",{value:"Rhode Island",children:"Rhode Island"}),o.jsx("option",{value:"South Carolina",children:"South Carolina"}),o.jsx("option",{value:"South Dakota",children:"South Dakota"}),o.jsx("option",{value:"Tennessee",children:"Tennessee"}),o.jsx("option",{value:"Texas",children:"Texas"}),o.jsx("option",{value:"Utah",children:"Utah"}),o.jsx("option",{value:"Virginia",children:"Virginia"}),o.jsx("option",{value:"Vermont",children:"Vermont"}),o.jsx("option",{value:"Washington",children:"Washington"}),o.jsx("option",{value:"Wisconsin",children:"Wisconsin"}),o.jsx("option",{value:"West Virginia",children:"West Virginia"}),o.jsx("option",{value:"Wyoming",children:"Wyoming"})]})]})}),o.jsxs("div",{className:"col-md-4",children:["County",o.jsxs("select",{className:"form-floating mb-3 form-control",name:"county",value:l.county,onChange:a,required:!0,children:[o.jsx("option",{value:"",children:"Please Select County"}),o.jsx("option",{value:"Abbeville",children:"Abbeville"}),o.jsx("option",{value:"Aiken",children:"Aiken"}),o.jsx("option",{value:"Allendale",children:"Allendale"}),o.jsx("option",{value:"Anderson",children:"Anderson"}),o.jsx("option",{value:"Bamberg",children:"Bamberg"}),o.jsx("option",{value:"Barnwell",children:"Barnwell"}),o.jsx("option",{value:"Beaufort",children:"Beaufort"}),o.jsx("option",{value:"Berkeley",children:"Berkeley"}),o.jsx("option",{value:"Calhoun",children:"Calhoun"}),o.jsx("option",{value:"Charleston",children:"Charleston"}),o.jsx("option",{value:"Cherokee",children:"Cherokee"}),o.jsx("option",{value:"Chester",children:"Chester"}),o.jsx("option",{value:"Chesterfield",children:"Chesterfield"}),o.jsx("option",{value:"Clarendon",children:"Clarendon"}),o.jsx("option",{value:"Colleton",children:"Colleton"}),o.jsx("option",{value:"Darlington",children:"Darlington"}),o.jsx("option",{value:"Dillon",children:"Dillon"}),o.jsx("option",{value:"Dorchester",children:"Dorchester"}),o.jsx("option",{value:"Edgefield",children:"Edgefield"}),o.jsx("option",{value:"Fairfield",children:"Fairfield"}),o.jsx("option",{value:"Florence",children:"Florence"}),o.jsx("option",{value:"Georgetown",children:"Georgetown"}),o.jsx("option",{value:"Greenville",children:"Greenville"}),o.jsx("option",{value:"Greenwood",children:"Greenwood"}),o.jsx("option",{value:"Hampton",children:"Hampton"}),o.jsx("option",{value:"Horry",children:"Horry"}),o.jsx("option",{value:"Jasper",children:"Jasper"}),o.jsx("option",{value:"Kershaw",children:"Kershaw"}),o.jsx("option",{value:"Lancaster",children:"Lancaster"}),o.jsx("option",{value:"Laurens",children:"Laurens"}),o.jsx("option",{value:"Lee",children:"Lee"}),o.jsx("option",{value:"Lexington",children:"Lexington"}),o.jsx("option",{value:"Marion",children:"Marion"}),o.jsx("option",{value:"Marlboro",children:"Marlboro"}),o.jsx("option",{value:"McCormick",children:"McCormick"}),o.jsx("option",{value:"Newberry",children:"Newberry"}),o.jsx("option",{value:"Oconee",children:"Oconee"}),o.jsx("option",{value:"Orangeburg",children:"Orangeburg"}),o.jsx("option",{value:"Pickens",children:"Pickens"}),o.jsx("option",{value:"Richland",children:"Richland"}),o.jsx("option",{value:"Saluda",children:"Saluda"}),o.jsx("option",{value:"Spartanburg",children:"Spartanburg"}),o.jsx("option",{value:"Sumter",children:"Sumter"}),o.jsx("option",{value:"Union",children:"Union"}),o.jsx("option",{value:"Williamsburg",children:"Williamsburg"}),o.jsx("option",{value:"York",children:"York"})]})]}),o.jsx("div",{className:"col-4",children:o.jsxs("div",{className:"form-floating mb-3",children:["Zip",o.jsx("input",{type:"text",className:"form-control",name:"zip",placeholder:"zip",value:l.zip,onChange:a,required:!0})]})}),o.jsxs("div",{className:"col-4",children:[o.jsx("label",{children:"Profile Image"}),o.jsx("div",{className:"mb-3",children:o.jsx(oh,{type:"file",multiple:!1,onDone:({base64:b})=>s({...l,profileImage:b})})})]}),l.profileImage&&o.jsxs("div",{className:"col-4 mb-3",children:[o.jsx("img",{src:l.profileImage,alt:"Profile Preview",style:{width:"150px",height:"150px",borderRadius:"50%"}}),o.jsx("button",{type:"button",className:"btn btn-danger mt-2",onClick:c,children:"Delete Image"})]}),o.jsx("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"},disabled:t,children:t?"Updating...":"Update"})})}),n&&o.jsx("p",{children:n})]})})},Qj=()=>{const[e,t]=P.useState("dashboard"),{user:n}=Ze(i=>i.auth),r=()=>{switch(e){case"Userdetails":return o.jsx(Kj,{});case"addProperty":return o.jsx(Hj,{});case"activeProperties":return o.jsxs("div",{children:[o.jsx("h3",{children:"Active Properties"}),o.jsx(Yj,{})]});case"closedProperties":return o.jsx("p",{children:"These are your closed properties."});default:return o.jsx(o.Fragment,{})}};return o.jsxs(o.Fragment,{children:[o.jsx(Oe,{}),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:n.result.profileImage||Io,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 ${e==="dashboard"?"active":""}`,onClick:()=>t("dashboard"),children:[o.jsx("i",{className:"fa fa-dashboard",style:{color:"#F74B02"}}),o.jsx("span",{children:"Dashboard"})]}),o.jsxs("button",{className:`btn mt-3 ${e==="Userdetails"?"active":""}`,onClick:()=>t("Userdetails"),children:[o.jsx("span",{className:"fa fa-home",style:{color:"#F74B02"}}),o.jsx("span",{children:"User Profile"})]}),o.jsxs("button",{className:`btn mt-3 ${e==="addProperty"?"active":""}`,onClick:()=>t("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 ${e==="activeProperties"?"active":""}`,onClick:()=>t("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 ${e==="closedProperties"?"active":""}`,onClick:()=>t("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-1",children:[o.jsx("br",{}),o.jsxs("span",{children:["Welcome to"," ",o.jsx("span",{style:{color:"#067ADC"},children:o.jsxs(he,{to:`/profile/${n.result.userId}`,className:"link-primary text-decoration-none",target:"_blank",children:[n.result.title,". ",n.result.firstName," ",n.result.middleName," ",n.result.lastName]})})]}),o.jsx("br",{}),r()]})})]}),o.jsx(ze,{})]})};var lh={exports:{}},Gj="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",Jj=Gj,Xj=Jj;function sh(){}function ah(){}ah.resetWarningCache=sh;var Zj=function(){function e(r,i,l,s,a,c){if(c!==Xj){var u=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 u.name="Invariant Violation",u}}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:ah,resetWarningCache:sh};return n.PropTypes=n,n};lh.exports=Zj();var eN=lh.exports;const tN=Wa(eN),nN=()=>{const[e,t]=P.useState(3),n=Dr();return P.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"]})})},Do=({children:e})=>{const{user:t}=Ze(n=>({...n.auth}));return t?e:o.jsx(nN,{})};Do.propTypes={children:tN.node.isRequired};const rN=()=>{const e=St(),{id:t,token:n}=Mr();return P.useEffect(()=>{e(Po({id:t,token:n}))},[e,t,n]),o.jsxs(o.Fragment,{children:[o.jsx(Oe,{}),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(he,{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(ze,{})]})},iN=()=>{const[e,t]=P.useState(""),[n,r]=P.useState(""),i="http://67.225.129.127:3002",l=async()=>{try{const s=await de.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(Oe,{}),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(he,{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(ze,{})]})]})},oN=()=>{const{userId:e,token:t}=Mr(),[n,r]=P.useState(""),[i,l]=P.useState(""),[s,a]=P.useState(""),c="http://67.225.129.127:3002",u=async()=>{try{if(!n||n.trim()===""){a("Password not entered"),ie.error("Password not entered");return}const d=await de.post(`${c}/users/resetpassword/${e}/${t}`,{userId:e,token:t,password:n});if(n!==i){a("Passwords do not match."),ie.error("Passwords do not match.");return}else a("Password reset successfull"),ie.success(d.data.message)}catch(d){console.error("Reset Password Error:",d)}};return P.useEffect(()=>{ie.dismiss()},[]),o.jsxs(o.Fragment,{children:[o.jsx(Oe,{}),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:u,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Reset Password"}),o.jsx("p",{style:{color:"#067ADC"},className:"card-title text-center",children:s})]})})})}),o.jsx(ze,{})]})},lN=()=>o.jsxs(o.Fragment,{children:[o.jsx(Oe,{}),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(ze,{})]}),sN=()=>{const{id:e}=Mr(),t=St(),{selectedProperty:n,status:r,error:i}=Ze(a=>a.property),[l,s]=P.useState(!0);return P.useEffect(()=>{e&&(t(si(e)),s(!1))},[e,t]),r==="loading"?o.jsx("p",{children:"Loading property details..."}):r==="failed"?o.jsxs("p",{children:["Error loading property: ",i]}):o.jsxs(o.Fragment,{children:[o.jsx(Oe,{}),o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{}),o.jsx("div",{className:"container col-12",children:l?o.jsx("div",{className:"loader",children:"Loading..."}):n?o.jsx("div",{className:"py-3 py-md-5 bg-light",children:o.jsxs("div",{className:"card-header bg-white",children:[o.jsxs("div",{className:"row",children:[o.jsx("div",{className:"col-md-5 mt-3",children:o.jsx("div",{className:"bg-white border",children:n.images&&n.images[0]?o.jsx("img",{src:n.images[0].file||Rt,alt:"Property Thumbnail",style:{marginTop:"0px",maxWidth:"500px",maxHeight:"500px"}}):o.jsx("img",{src:Rt,alt:"Default Property Thumbnail",style:{marginTop:"0px",maxWidth:"500px",maxHeight:"500px"}})})}),o.jsx("div",{className:"col-md-7 mt-3",children:o.jsxs("div",{className:"product-view",children:[o.jsxs("h4",{className:"product-name",style:{color:"#fda417",fontSize:"25px"},children:[n.address,o.jsx("label",{className:"label-stock bg-success",children:"Verified Property"})]}),o.jsx("hr",{}),o.jsxs("p",{className:"product-path",children:[o.jsxs("span",{style:{color:"#fda417",fontSize:"15px"},children:["city:"," "]})," ",n.city," /",o.jsxs("span",{style:{color:"#fda417",fontSize:"15px"},children:["County:"," "]})," ",n.county," /",o.jsxs("span",{style:{color:"#fda417",fontSize:"15px"},children:["State:"," "]})," ",n.state," /",o.jsx("span",{style:{color:"#fda417",fontSize:"15px"},children:"Zipcode:"})," ",n.zip]}),o.jsxs("div",{children:[o.jsxs("span",{className:"selling-price",style:{color:"#fda417",fontSize:"15px"},children:["Total Living Square Foot:"," "]}),n.totallivingsqft,o.jsx("p",{}),o.jsxs("span",{className:"",style:{color:"#fda417",fontSize:"15px"},children:["Cost per Square Foot:"," "]}),"$",n.costpersqft,"/sqft",o.jsx("p",{}),o.jsxs("span",{className:"",style:{color:"#fda417",fontSize:"15px"},children:["Year Built:"," "]}),n.yearBuild]}),o.jsxs("div",{className:"mt-3 card bg-white",children:[o.jsx("h5",{className:"mb-0",style:{color:"#fda417",fontSize:"15px"},children:"Legal Description"}),o.jsx("span",{children:n.legal?n.legal:"No data available"})]})]})})]}),o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-md-12 mt-3",children:o.jsxs("div",{className:"card",children:[o.jsx("div",{className:"card-header bg-white",children:o.jsx("h4",{className:"product-name",style:{color:"#fda417",fontSize:"25px"},children:"Description"})}),o.jsx("div",{className:"card-body",children:o.jsx("p",{children:"Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum."})})]})})})]})}):o.jsx("p",{children:"No property details found."})}),o.jsx(ze,{})]})},aN=()=>{const[e,t]=P.useState([]),[n,r]=P.useState(0),[i,l]=P.useState(0),[s]=P.useState(10),[a,c]=P.useState(""),[u,d]=P.useState(!1),[p,y]=P.useState(!1),N=async()=>{d(!0),y(!1);try{const h=await de.get("http://67.225.129.127:3002/mysql/searchmysql",{params:{limit:s,offset:i*s,search:a},headers:{"Cache-Control":"no-cache"}});t(h.data.data),r(h.data.totalRecords),a.trim()&&y(!0)}catch(h){console.log("Error fetching data:",h)}finally{d(!1)}},v=h=>{c(h.target.value),h.target.value.trim()===""&&(l(0),t([]),r(0),y(!1),N())},j=h=>{h.key==="Enter"&&(h.preventDefault(),N())};P.useEffect(()=>{N()},[a,i]);const x=Math.ceil(n/s);return o.jsxs(o.Fragment,{children:[o.jsx(Oe,{}),o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{}),o.jsxs("div",{className:"container col-12",children:[o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-lg-12 card-margin col-12",children:o.jsx("div",{className:"card search-form col-12",children:o.jsx("div",{className:"card-body p-0",children:o.jsx("form",{id:"search-form",children:o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-12",children:o.jsx("div",{className:"row no-gutters",children:o.jsx("div",{className:"col-lg-8 col-md-6 col-sm-12 p-0",children:o.jsx("input",{type:"text",placeholder:"Enter the keyword and hit ENTER button...",className:"form-control",id:"search",name:"search",value:a,onChange:v,onKeyDown:j})})})})})})})})})}),o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-12",children:o.jsx("div",{className:"card card-margin",children:o.jsxs("div",{className:"card-body",children:[p&&e.length>0&&o.jsxs("div",{children:["Showing search results for the keyword"," ",o.jsx("span",{style:{color:"#fda417",fontSize:"25px"},children:a})]}),o.jsx("div",{className:"table-responsive",children:o.jsxs("table",{className:"table widget-26",children:[o.jsx("thead",{style:{color:"#fda417",fontSize:"15px"},children:o.jsxs("tr",{children:[o.jsx("th",{children:"Details"}),o.jsx("th",{children:"Total Living Square Foot"}),o.jsx("th",{children:"Year Built"}),o.jsx("th",{children:"Cost per Square Foot"})]})}),o.jsx("tbody",{children:e.length>0?e.map((h,m)=>o.jsxs("tr",{children:[o.jsx("td",{children:o.jsxs("div",{className:"widget-26-job-title",children:[o.jsx(he,{to:`/properties/${h.house_id}`,className:"link-primary text-decoration-none",target:"_blank",children:h.address}),o.jsxs("p",{className:"m-0",children:[o.jsxs("span",{className:"employer-name",children:[o.jsx("i",{className:"fa fa-map-marker",style:{color:"#F74B02"}}),h.city,", ",h.county,",",h.state]}),o.jsxs("p",{className:"text-muted m-0",children:["House Id: ",h.house_id]})]})]})}),o.jsx("td",{children:o.jsx("div",{className:"widget-26-job-info",children:o.jsx("p",{className:"m-0",children:h.total_living_sqft})})}),o.jsx("td",{children:o.jsx("div",{className:"widget-26-job-info",children:o.jsx("p",{className:"m-0",children:h.year_built})})}),o.jsx("td",{children:o.jsxs("div",{className:"widget-26-job-salary",children:["$ ",h.cost_per_sqft,"/sqft"]})})]},m)):o.jsx("tr",{children:o.jsx("td",{colSpan:"4",children:"No results found"})})})]})}),o.jsxs("div",{children:[o.jsx("button",{onClick:()=>l(i-1),disabled:i===0||u,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Previous"}),o.jsxs("span",{children:[" ","Page ",i+1," of ",x," "]}),o.jsx("button",{onClick:()=>l(i+1),disabled:i+1>=x||u,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Next"})]})]})})})})]}),o.jsx(ze,{})]})},cN=()=>o.jsxs(o.Fragment,{children:[o.jsx(Oe,{}),o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{}),o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{}),"This page will show the list of services offered by the company",o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{}),o.jsx(ze,{})]}),uN=()=>{const{house_id:e}=Mr();console.log("house_id",e);const[t,n]=P.useState(null),[r,i]=P.useState(!0);return P.useEffect(()=>{(async()=>{try{const s=await de.get(`http://67.225.129.127:3002/mysql/properties/${e}`);n(s.data)}catch(s){console.log("Error fetching property details:",s)}finally{i(!1)}})()},[e]),o.jsxs(o.Fragment,{children:[o.jsx(Oe,{}),o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{}),o.jsx("div",{className:"container col-12",children:r?o.jsx("div",{className:"loader",children:"Loading..."}):t?o.jsx("div",{className:"py-3 py-md-5 bg-light",children:o.jsxs("div",{className:"card-header bg-white",children:[o.jsxs("div",{className:"row",children:[o.jsx("div",{className:"col-md-5 mt-3",children:o.jsx("div",{className:"bg-white border",children:o.jsx("img",{src:Rt,className:"w-70",alt:"Img",style:{marginTop:"0px",maxWidth:"450px",maxHeight:"450px"}})})}),o.jsx("div",{className:"col-md-7 mt-3",children:o.jsxs("div",{className:"product-view",children:[o.jsxs("h4",{className:"product-name",style:{color:"#fda417",fontSize:"25px"},children:[t.address,o.jsx("label",{className:"label-stock bg-success",children:"Verified Property"})]}),o.jsx("hr",{}),o.jsxs("p",{className:"product-path",children:[o.jsxs("span",{style:{color:"#fda417",fontSize:"15px"},children:["city:"," "]})," ",t.city," /",o.jsxs("span",{style:{color:"#fda417",fontSize:"15px"},children:["County:"," "]})," ",t.county," /",o.jsxs("span",{style:{color:"#fda417",fontSize:"15px"},children:["State:"," "]})," ",t.state," /",o.jsx("span",{style:{color:"#fda417",fontSize:"15px"},children:"Zipcode:"})," ",t.zip]}),o.jsxs("div",{children:[o.jsxs("span",{className:"selling-price",style:{color:"#fda417",fontSize:"15px"},children:["Total Living Square Foot:"," "]}),t.total_living_sqft,o.jsx("p",{}),o.jsxs("span",{className:"",style:{color:"#fda417",fontSize:"15px"},children:["Cost per Square Foot:"," "]}),"$",t.cost_per_sqft,"/sqft",o.jsx("p",{}),o.jsxs("span",{className:"",style:{color:"#fda417",fontSize:"15px"},children:["Year Built:"," "]}),t.year_built]}),o.jsxs("div",{className:"mt-3 card bg-white",children:[o.jsx("h5",{className:"mb-0",style:{color:"#fda417",fontSize:"15px"},children:"Legal Summary report"}),o.jsx("span",{children:t.legal_summary_report?t.legal_summary_report:"No data available"})]})]})})]}),o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-md-12 mt-3",children:o.jsxs("div",{className:"card",children:[o.jsx("div",{className:"card-header bg-white",children:o.jsx("h4",{className:"product-name",style:{color:"#fda417",fontSize:"25px"},children:"Description"})}),o.jsx("div",{className:"card-body",children:o.jsx("p",{children:"Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum."})})]})})})]})}):o.jsx("p",{children:"No property details found."})}),o.jsx(ze,{})]})},dN=()=>{const{id:e}=Mr(),t=St(),{selectedProperty:n}=Ze(a=>a.property),[r,i]=P.useState({propertyType:"",yearBuild:"",totalSqft:""});P.useEffect(()=>{t(si(e))},[t,e]),P.useEffect(()=>{n&&i({propertyType:n.propertyType,yearBuild:n.yearBuild,totalSqft:n.totalSqft})},[n]);const l=a=>{i({...r,[a.target.name]:a.target.value})},s=a=>{a.preventDefault(),t(Ro({id:e,propertyData:r}))};return o.jsxs(o.Fragment,{children:[o.jsx(Oe,{}),o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{}),o.jsxs("div",{className:"edit-property-form",children:[o.jsx("h2",{children:"Edit Property"}),o.jsxs("form",{onSubmit:s,children:[o.jsx("div",{children:o.jsxs("select",{className:"form-floating mb-3 form-control",name:"propertyType",value:r.propertyType,onChange:l,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:"yearBuild",value:r.yearBuild,onChange:l,placeholder:"Year build",required:!0}),o.jsx("label",{htmlFor:"yearBuild",className:"form-label",children:"Year Build"})]})}),o.jsxs("div",{className:"form-floating mb-3",children:[o.jsx("input",{type:"text",className:"form-control",name:"totalSqft",value:r.totalSqft,onChange:l,placeholder:"Total SQFT",required:!0}),o.jsx("label",{htmlFor:"totalSqft",className:"form-label",children:"Total SQFT"})]}),o.jsx("button",{type:"submit",children:"Update Property"})]})]}),o.jsx(ze,{})]})},fN=()=>{const e=St(),{properties:t,loading:n,totalPages:r,currentPage:i}=Ze(j=>j.property),[l,s]=P.useState(""),[a,c]=P.useState([]),[u,d]=P.useState(1),p=10;P.useEffect(()=>{e(ai({page:u,limit:p,keyword:l}))},[e,u,l]),P.useEffect(()=>{l.trim()?c(t.filter(j=>j.address.toLowerCase().includes(l.toLowerCase()))):c(t)},[l,t]);const y=j=>{s(j.target.value)},N=j=>{j.preventDefault()},v=j=>{d(j),e(ai({page:j,limit:p,keyword:l}))};return o.jsxs(o.Fragment,{children:[o.jsx(Oe,{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsxs("div",{className:"container col-12",children:[o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-lg-12 card-margin col-12",children:o.jsx("div",{className:"card search-form col-12",children:o.jsx("div",{className:"card-body p-0",children:o.jsx("form",{id:"search-form",onSubmit:N,children:o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-12",children:o.jsx("div",{className:"row no-gutters",children:o.jsx("div",{className:"col-lg-8 col-md-6 col-sm-12 p-0",children:o.jsx("input",{type:"text",value:l,onChange:y,placeholder:"Enter the keyword and hit ENTER button...",className:"form-control"})})})})})})})})})}),o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-12",children:o.jsx("div",{className:"card card-margin",children:o.jsx("div",{className:"card-body",children:n?o.jsx("div",{children:"Loading..."}):o.jsx("div",{className:"table-responsive",children:o.jsxs("table",{className:"table widget-26",children:[o.jsx("thead",{style:{color:"#fda417",fontSize:"15px"},children:o.jsxs("tr",{children:[o.jsx("th",{children:"Image"}),o.jsx("th",{children:"Details"}),o.jsx("th",{children:"Total Living Square Foot"}),o.jsx("th",{children:"Year Built"}),o.jsx("th",{children:"Cost per Square Foot"})]})}),o.jsx("tbody",{children:a.length>0?a.map(j=>o.jsxs("tr",{children:[o.jsx("td",{children:j.images&&j.images[0]?o.jsx("img",{src:j.images[0].file||Rt,alt:"Property Thumbnail",style:{width:"100px",height:"auto"}}):o.jsx("img",{src:Rt,alt:"Default Property Thumbnail",style:{width:"100px",height:"auto"}})}),o.jsx("td",{children:o.jsxs("div",{className:"widget-26-job-title",children:[o.jsx(he,{to:`/property/${j.propertyId}`,className:"link-primary text-decoration-none",target:"_blank",children:j.address}),o.jsxs("p",{className:"m-0",children:[o.jsxs("span",{className:"employer-name",children:[o.jsx("i",{className:"fa fa-map-marker",style:{color:"#F74B02"}}),j.city,", ",j.county,","," ",j.state]}),o.jsxs("p",{className:"text-muted m-0",children:["House Id: ",j.propertyId]})]})]})}),o.jsx("td",{children:j.totallivingsqft}),o.jsx("td",{children:j.yearBuild}),o.jsx("td",{children:j.costpersqft})]},j.id)):o.jsx("tr",{children:o.jsx("td",{colSpan:"5",children:"No properties found."})})})]})})})})})}),o.jsx("nav",{"aria-label":"Page navigation",children:o.jsxs("ul",{className:"pagination justify-content-center",children:[o.jsx("li",{className:`page-item ${i===1?"disabled":""}`,children:o.jsx("button",{className:"page-link",onClick:()=>v(i-1),children:"Previous"})}),Array.from({length:r},(j,x)=>o.jsx("li",{className:`page-item ${i===x+1?"active":""}`,children:o.jsx("button",{className:"page-link",onClick:()=>v(x+1),children:x+1})},x+1)),o.jsx("li",{className:`page-item ${i===r?"disabled":""}`,children:o.jsx("button",{className:"page-link",onClick:()=>v(i+1),children:"Next"})})]})})]}),o.jsx(ze,{})]})},pN=()=>{const{userId:e}=Mr(),t=St(),{user:n,loading:r}=Ze(i=>i.user);return console.log("user",n),P.useEffect(()=>{e&&t(_o(e))},[e,t]),r?o.jsx("div",{children:"Loading..."}):o.jsxs(o.Fragment,{children:[o.jsx(Oe,{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("div",{className:"main-body",children:o.jsxs("div",{className:"row gutters-sm",children:[o.jsx("div",{className:"col-md-4 mb-3",children:o.jsx("div",{className:"card",children:o.jsxs("div",{className:"card-body",children:[o.jsxs("div",{className:"d-flex flex-column align-items-center text-center",children:[o.jsx("img",{src:n.profileImage,alt:"Admin",className:"rounded-circle",width:150}),o.jsxs("h4",{children:[n.title,". ",n.firstName," ",n.middleName," ",n.lastName]}),o.jsxs("span",{className:"text-muted font-size-sm",children:[o.jsx("i",{className:"fa fa-map-marker",style:{color:"#F74B02",fontSize:"20px"}})," ",n.city,", ",n.state,", ",n.county,", ",n.zip]})]}),o.jsx("br",{})]})})}),o.jsx("div",{className:"col-md-4 mb-3",children:o.jsx("div",{className:"card",children:o.jsxs("div",{className:"card-body",children:[o.jsxs("h1",{className:"d-flex align-items-center mb-3",style:{color:"#fda417",fontSize:"26px"},children:[o.jsx("i",{className:"material-icons text-info mr-2",style:{color:"#fda417",fontSize:"26px"},children:"Recent"}),"Project investments"]}),o.jsx("hr",{}),o.jsx("img",{src:Rt,alt:"Admin",className:"rounded-circle",style:{marginRight:"10px",maxWidth:"50px",maxHeight:"50px"}}),o.jsx("small",{children:"Web Design project in California"}),o.jsx("div",{className:"progress",style:{width:"100%",marginTop:"10px"},children:o.jsx("div",{className:"progress-bar",role:"progressbar",style:{width:"25%"},"aria-valuenow":25,"aria-valuemin":0,"aria-valuemax":100,children:"25% completed"})}),o.jsx("hr",{}),o.jsx("img",{src:Rt,alt:"Admin",className:"rounded-circle",style:{marginRight:"10px",maxWidth:"50px",maxHeight:"50px"}}),o.jsx("small",{children:"Web Design project in California"}),o.jsx("div",{className:"progress",style:{width:"100%",marginTop:"10px"},children:o.jsx("div",{className:"progress-bar",role:"progressbar",style:{width:"75%"},"aria-valuenow":75,"aria-valuemin":0,"aria-valuemax":100,children:"75% completed"})})]})})}),o.jsx("div",{className:"col-md-4 mb-3",children:o.jsx("div",{className:"card",children:o.jsxs("div",{className:"card-body",children:[o.jsxs("h1",{className:"d-flex align-items-center mb-3",style:{color:"#fda417",fontSize:"26px"},children:[o.jsx("i",{className:"material-icons text-info mr-2",children:"Projects"}),"Seeking investments"]}),o.jsx("hr",{}),o.jsx("img",{src:Rt,alt:"Admin",className:"rounded-circle",style:{marginRight:"10px",maxWidth:"50px",maxHeight:"50px"}}),o.jsx("small",{children:"Web Design project in California"}),o.jsx("br",{})," ",o.jsx("br",{}),o.jsx("hr",{}),o.jsx("img",{src:Rt,alt:"Admin",className:"rounded-circle",style:{marginRight:"10px",maxWidth:"50px",maxHeight:"50px"}}),o.jsx("small",{children:"Web Design project in California"}),o.jsx("br",{})," ",o.jsx("br",{})]})})}),o.jsx("div",{className:"col-md-4",children:o.jsx("div",{className:"card mb-3",children:o.jsxs("div",{className:"card-body",children:[o.jsxs("h1",{className:"d-flex align-items-center mb-3",style:{color:"#fda417",fontSize:"26px"},children:[o.jsx("i",{className:"material-icons text-info mr-2",style:{color:"#fda417",fontSize:"26px"},children:"About"}),"me :"]})," ",o.jsx("hr",{}),n.aboutme]})})}),o.jsx("div",{className:"col-md-4 mb-3",children:o.jsx("div",{className:"card",children:o.jsxs("div",{className:"card-body",children:[o.jsxs("h1",{className:"d-flex align-items-center mb-3",style:{color:"#fda417",fontSize:"26px"},children:[o.jsx("i",{className:"material-icons text-info mr-2",style:{color:"#fda417",fontSize:"26px"},children:"Willing to"}),"invest:"]}),o.jsx("hr",{}),o.jsx("h2",{className:"d-flex flex-column align-items-center text-center",style:{color:"#fda417",border:"#fda417",fontSize:"60px",fontWeight:"normal"},children:"$ 500,000"}),o.jsx("span",{className:"d-flex flex-column align-items-center text-center",children:o.jsx("button",{className:"btn btn-primary btn-lg ",type:"submit",style:{backgroundColor:"#fda417",border:"#fda417"},children:"Request"})}),o.jsx("hr",{}),o.jsxs("div",{className:"card-body",children:[o.jsxs("div",{className:"row",children:[o.jsx("div",{className:"col-sm-3",children:o.jsx("span",{className:"mb-0",children:"Email"})}),n.email,o.jsx("div",{className:"col-sm-9 text-secondary"})]}),o.jsx("hr",{}),o.jsxs("div",{className:"row",children:[o.jsx("div",{className:"col-sm-3",children:o.jsx("span",{className:"mb-0",children:"Phone"})}),"67656584687",o.jsx("div",{className:"col-sm-9 text-secondary"})]})]})]})})}),o.jsx("div",{className:"col-md-4 mb-3",children:o.jsx("div",{className:"card",children:o.jsxs("div",{className:"card-body",children:[o.jsxs("h1",{className:"d-flex align-items-center mb-3",style:{color:"#fda417",fontSize:"26px"},children:[o.jsx("i",{className:"material-icons text-info mr-2",children:"Suggested"}),"Borrowers"]}),o.jsxs("ul",{className:"list-group list-group-flush",children:[o.jsx("li",{className:"list-group-item d-flex justify-content-between align-items-center flex-wrap",children:o.jsxs("h6",{className:"mb-0",children:[o.jsx("img",{src:Io,style:{marginTop:"0px",maxWidth:"50px",maxHeight:"50px"}}),"Ravichandu"]})}),o.jsx("li",{className:"list-group-item d-flex justify-content-between align-items-center flex-wrap",children:o.jsxs("h6",{className:"mb-0",children:[o.jsx("img",{src:Io,style:{marginTop:"0px",maxWidth:"50px",maxHeight:"50px"}}),"Ravichandu"]})}),o.jsx("li",{className:"list-group-item d-flex justify-content-between align-items-center flex-wrap",children:o.jsxs("h6",{className:"mb-0",children:[o.jsx("img",{src:Io,style:{marginTop:"0px",maxWidth:"50px",maxHeight:"50px"}}),"Ravichandu"]})})]})]})})})]})})]})},mN=()=>o.jsxs(K1,{children:[o.jsx(fj,{}),o.jsxs(B1,{children:[o.jsx(ke,{path:"/",element:o.jsx(mj,{})}),o.jsx(ke,{path:"/about",element:o.jsx(hj,{})}),o.jsx(ke,{path:"/services",element:o.jsx(cN,{})}),o.jsx(ke,{path:"/contact",element:o.jsx(vj,{})}),o.jsx(ke,{path:"/register",element:o.jsx($j,{})}),o.jsx(ke,{path:"/registrationsuccess",element:o.jsx(Do,{children:o.jsx(lN,{})})}),o.jsx(ke,{path:"/login",element:o.jsx(Vj,{})}),o.jsx(ke,{path:"/dashboard",element:o.jsx(Do,{children:o.jsx(Qj,{})})}),o.jsx(ke,{path:"/users/:id/verify/:token",element:o.jsx(rN,{})}),o.jsx(ke,{path:"/forgotpassword",element:o.jsx(iN,{})}),o.jsx(ke,{path:"/users/resetpassword/:userId/:token",element:o.jsx(oN,{})}),o.jsx(ke,{path:"/property/:id",element:o.jsx(sN,{})}),o.jsx(ke,{path:"/properties/:house_id",element:o.jsx(uN,{})}),o.jsx(ke,{path:"/searchmyproperties",element:o.jsx(aN,{})}),o.jsx(ke,{path:"/searchproperties",element:o.jsx(fN,{})}),o.jsx(ke,{path:"/editproperty/:id",element:o.jsx(Do,{children:o.jsx(dN,{})})}),o.jsx(ke,{path:"/profile/:userId",element:o.jsx(pN,{})})]})]});Jp(document.getElementById("root")).render(o.jsx(P.StrictMode,{children:o.jsx(mg,{store:Z0,children:o.jsx(mN,{})})})); + in `+(T||"Unknown")+(B?" (at "+B.fileName.replace(/^.*[\\\/]/,"")+":"+B.lineNumber+")":H?" (created by "+H+")":"")}function u(T){return T==null?"#empty":typeof T=="string"||typeof T=="number"?"#text":typeof T.type=="string"?T.type:T.type.displayName||T.type.name||"Unknown"}function d(T){var B,H=K.getDisplayName(T),k=K.getElement(T),S=K.getOwnerID(T);return S&&(B=K.getDisplayName(S)),l.env.NODE_ENV!=="production"&&w(k,"ReactComponentTreeHook: Missing React element for debugID %s when building stack",T),c(H,k&&k._source,B)}var p,y,N,v,j,x,h,m=i(5),f=i(7),g=i(2),w=i(3),b=typeof Array.from=="function"&&typeof Map=="function"&&s(Map)&&Map.prototype!=null&&typeof Map.prototype.keys=="function"&&s(Map.prototype.keys)&&typeof Set=="function"&&s(Set)&&Set.prototype!=null&&typeof Set.prototype.keys=="function"&&s(Set.prototype.keys);if(b){var E=new Map,C=new Set;p=function(T,B){E.set(T,B)},y=function(T){return E.get(T)},N=function(T){E.delete(T)},v=function(){return Array.from(E.keys())},j=function(T){C.add(T)},x=function(T){C.delete(T)},h=function(){return Array.from(C.keys())}}else{var I={},F={},$=function(T){return"."+T},G=function(T){return parseInt(T.substr(1),10)};p=function(T,B){var H=$(T);I[H]=B},y=function(T){var B=$(T);return I[B]},N=function(T){var B=$(T);delete I[B]},v=function(){return Object.keys(I).map(G)},j=function(T){var B=$(T);F[B]=!0},x=function(T){var B=$(T);delete F[B]},h=function(){return Object.keys(F).map(G)}}var Y=[],K={onSetChildren:function(T,B){var H=y(T);H||(l.env.NODE_ENV!=="production"?g(!1,"Item must have been set"):m("144")),H.childIDs=B;for(var k=0;k1?u-1:0),p=1;p2?d-2:0),y=2;y.")}return E}function u(b,E){if(b._store&&!b._store.validated&&b.key==null){b._store.validated=!0;var C=g.uniqueKey||(g.uniqueKey={}),I=c(E);if(!C[I]){C[I]=!0;var F="";b&&b._owner&&b._owner!==y.current&&(F=" It was passed a child from "+b._owner.getName()+"."),l.env.NODE_ENV!=="production"&&m(!1,'Each child in an array or iterator should have a unique "key" prop.%s%s See https://fb.me/react-warning-keys for more information.%s',I,F,N.getCurrentStackAddendum(b))}}}function d(b,E){if(typeof b=="object"){if(Array.isArray(b))for(var C=0;C1?V-1:0),X=1;X"u"||M===null)return""+M;var z=Y(M);if(z==="object"){if(M instanceof Date)return"date";if(M instanceof RegExp)return"regexp"}return z}function T(M){var z=K(M);switch(z){case"array":case"object":return"an "+z;case"boolean":case"date":case"regexp":return"a "+z;default:return z}}function B(M){return M.constructor&&M.constructor.name?M.constructor.name:S}var H=typeof Symbol=="function"&&Symbol.iterator,k="@@iterator",S="<>",D={array:h("array"),bool:h("boolean"),func:h("function"),number:h("number"),object:h("object"),string:h("string"),symbol:h("symbol"),any:m(),arrayOf:f,element:g(),instanceOf:w,node:I(),objectOf:E,oneOf:b,oneOfType:C,shape:F};return j.prototype=Error.prototype,D.checkPropTypes=d,D.PropTypes=D,D}}).call(r,i(1))},function(n,r){function i(a){var c=/[=:]/g,u={"=":"=0",":":"=2"},d=(""+a).replace(c,function(p){return u[p]});return"$"+d}function l(a){var c=/(=0|=2)/g,u={"=0":"=","=2":":"},d=a[0]==="."&&a[1]==="$"?a.substring(2):a.substring(1);return(""+d).replace(c,function(p){return u[p]})}var s={escape:i,unescape:l};n.exports=s},function(n,r,i){(function(l){var s=i(5),a=i(2),c=function(h){var m=this;if(m.instancePool.length){var f=m.instancePool.pop();return m.call(f,h),f}return new m(h)},u=function(h,m){var f=this;if(f.instancePool.length){var g=f.instancePool.pop();return f.call(g,h,m),g}return new f(h,m)},d=function(h,m,f){var g=this;if(g.instancePool.length){var w=g.instancePool.pop();return g.call(w,h,m,f),w}return new g(h,m,f)},p=function(h,m,f,g){var w=this;if(w.instancePool.length){var b=w.instancePool.pop();return w.call(b,h,m,f,g),b}return new w(h,m,f,g)},y=function(h){var m=this;h instanceof m||(l.env.NODE_ENV!=="production"?a(!1,"Trying to release an instance into a pool of a different type."):s("25")),h.destructor(),m.instancePool.length{const[e,t]=P.useState("propertydetails"),n=()=>{e==="propertydetails"&&t("Images"),e==="Images"&&t("Accounting")},r=()=>{e==="Images"&&t("propertydetails"),e==="Accounting"&&t("Images")},i=St(),{status:l,error:s}=Ze(O=>O.property),{user:a}=Ze(O=>({...O.auth})),[c,u]=P.useState({propertyTaxInfo:[{propertytaxowned:"",ownedyear:"",taxassessed:"",taxyear:""}],images:[{title:"",file:""}],googleMapLink:"",purchaseCost:"",costPaidAtoB:[{title:"Closing Fees - Settlement Fee",price:""},{title:"Closing Fees - Owner's Title Insurance",price:""},{title:"Courier Fees",price:""},{title:"Wire Fee",price:""},{title:"E recording Fee",price:""},{title:"Recording Fee",price:""},{title:"Property Tax",price:""}],credits:[{title:"Credits received on settlement",price:""}],cashAdjustments:[{title:"Credits received on settlement",price:""}],incidentalCost:[{title:"Accounting Fees",price:""},{title:"Bank Charges",price:""},{title:"Legal Fees",price:""},{title:"Property Taxes",price:""},{title:"Travel Expenses",price:""}],utilMaintenance:[{title:"Electricity",price:""},{title:"Water and Sewer",price:""},{title:"Natural Gas",price:""},{title:"Trash and Recycling",price:""},{title:"Internet and Cable",price:""},{title:"Heating Oil/Propane",price:""},{title:"HOA fees",price:""},{title:"Dump fees",price:""},{title:"Insurance",price:""},{title:"Interest on Loans",price:""},{title:"Loan Payment",price:""},{title:"Property Taxes",price:""},{title:"Security",price:""},{title:"Real Estates fees",price:""}],renovationCost:[{title:"Demolition: Removing existing structures or finishes",price:""},{title:"Framing: Making structural changes or additions",price:""},{title:"Plumbing: Installing or modifying plumbing systems",price:""},{title:"Electrical: Updating wiring and fixtures",price:""},{title:"HVAC: Installing or upgrading heating and cooling systems",price:""},{title:"Insulation: Adding or replacing insulation",price:""},{title:"Drywall: Hanging and finishing drywall",price:""},{title:"Interior Finishes: Painting, flooring, cabinetry, and fixtures",price:""},{title:"Exterior Work: Addressing siding, roofing, or landscaping, if applicable",price:""},{title:"Final Inspections: Ensuring everything meets codes",price:""},{title:"Punch List: Completing any remaining task",price:""}]}),[d,p]=P.useState(!1),y=(O,R)=>{const L=[...c.images];L[R].file=O.base64,u({...c,images:L})},N=()=>{u({...c,images:[...c.images,{title:"",file:""}]})},v=O=>{const R=c.images.filter((L,J)=>J!==O);u({...c,images:R})},j=(O,R)=>{const L=[...c.images];L[O].title=R.target.value,u({...c,images:L})},x=(O,R,L)=>{const{name:J,value:Z}=O.target;if(L==="propertyTaxInfo"){const te=[...c.propertyTaxInfo];te[R][J]=Z,u({...c,propertyTaxInfo:te})}else u({...c,[J]:Z})},h=()=>{u({...c,propertyTaxInfo:[...c.propertyTaxInfo,{propertytaxowned:"",ownedyear:"",taxassessed:"",taxyear:""}]})},m=O=>{const R=c.propertyTaxInfo.filter((L,J)=>J!==O);u({...c,propertyTaxInfo:R})},f=()=>{u(O=>({...O,costPaidAtoB:[...O.costPaidAtoB,{title:"",price:""}]}))},g=O=>{const R=c.costPaidAtoB.filter((L,J)=>J!==O);u(L=>({...L,costPaidAtoB:R}))},w=(O,R,L)=>{const J=[...c.costPaidAtoB];J[O][R]=L,u(Z=>({...Z,costPaidAtoB:J}))},b=(O,R)=>{const L=O.target.value;if(/^\d*\.?\d*$/.test(L)||L===""){const Z=c.costPaidAtoB.map((te,fe)=>fe===R?{...te,price:L,isInvalid:!1}:te);u({...c,costPaidAtoB:Z})}else{const Z=c.costPaidAtoB.map((te,fe)=>fe===R?{...te,isInvalid:!0}:te);u({...c,costPaidAtoB:Z})}},E=()=>{const O=c.costPaidAtoB.reduce((L,J)=>{const Z=parseFloat(J.price)||0;return L+Z},0),R=parseFloat(c.purchaseCost)||0;return O+R},C=()=>{u(O=>({...O,credits:[...O.credits,{title:"",price:""}]}))},I=O=>{const R=c.credits.filter((L,J)=>J!==O);u(L=>({...L,credits:R}))},F=(O,R,L)=>{const J=[...c.credits];J[O][R]=L,u(Z=>({...Z,credits:J}))},$=(O,R)=>{const L=O.target.value;if(/^\d*\.?\d*$/.test(L)||L===""){const Z=c.credits.map((te,fe)=>fe===R?{...te,price:L,isInvalid:!1}:te);u({...c,credits:Z})}else{const Z=c.credits.map((te,fe)=>fe===R?{...te,isInvalid:!0}:te);u({...c,credits:Z})}},G=()=>c.credits.reduce((O,R)=>{const L=parseFloat(R.price);return O+(isNaN(L)?0:L)},0),Y=()=>{const O=c.costPaidAtoB.reduce((J,Z)=>{const te=parseFloat(Z.price)||0;return J+te},0),R=c.credits.reduce((J,Z)=>{const te=parseFloat(Z.price)||0;return J+te},0),L=parseFloat(c.purchaseCost)||0;return O+R+L},K=()=>{u(O=>({...O,cashAdjustments:[...O.cashAdjustments,{title:"",price:""}]}))},T=O=>{const R=c.cashAdjustments.filter((L,J)=>J!==O);u(L=>({...L,cashAdjustments:R}))},B=(O,R,L)=>{const J=[...c.cashAdjustments];J[O][R]=L,u(Z=>({...Z,cashAdjustments:J}))},H=(O,R)=>{const L=O.target.value;if(/^\d*\.?\d*$/.test(L)||L===""){const Z=c.cashAdjustments.map((te,fe)=>fe===R?{...te,price:L,isInvalid:!1}:te);u({...c,cashAdjustments:Z})}else{const Z=c.cashAdjustments.map((te,fe)=>fe===R?{...te,isInvalid:!0}:te);u({...c,cashAdjustments:Z})}},k=()=>c.cashAdjustments.reduce((O,R)=>{const L=parseFloat(R.price);return O+(isNaN(L)?0:L)},0),S=()=>{u(O=>({...O,incidentalCost:[...O.incidentalCost,{title:"",price:""}]}))},D=O=>{const R=c.incidentalCost.filter((L,J)=>J!==O);u(L=>({...L,incidentalCost:R}))},M=(O,R,L)=>{const J=[...c.incidentalCost];J[O][R]=L,u(Z=>({...Z,incidentalCost:J}))},z=(O,R)=>{const L=O.target.value;if(/^\d*\.?\d*$/.test(L)||L===""){const Z=c.incidentalCost.map((te,fe)=>fe===R?{...te,price:L,isInvalid:!1}:te);u({...c,incidentalCost:Z})}else{const Z=c.incidentalCost.map((te,fe)=>fe===R?{...te,isInvalid:!0}:te);u({...c,incidentalCost:Z})}},W=()=>c.incidentalCost.reduce((O,R)=>{const L=parseFloat(R.price);return O+(isNaN(L)?0:L)},0),V=()=>{u(O=>({...O,utilMaintenance:[...O.utilMaintenance,{title:"",price:""}]}))},Q=O=>{const R=c.utilMaintenance.filter((L,J)=>J!==O);u(L=>({...L,utilMaintenance:R}))},X=(O,R,L)=>{const J=[...c.utilMaintenance];J[O][R]=L,u(Z=>({...Z,utilMaintenance:J}))},ee=(O,R)=>{const L=O.target.value;if(/^\d*\.?\d*$/.test(L)||L===""){const Z=c.utilMaintenance.map((te,fe)=>fe===R?{...te,price:L,isInvalid:!1}:te);u({...c,utilMaintenance:Z})}else{const Z=c.utilMaintenance.map((te,fe)=>fe===R?{...te,isInvalid:!0}:te);u({...c,utilMaintenance:Z})}},re=()=>c.utilMaintenance.reduce((O,R)=>{const L=parseFloat(R.price);return O+(isNaN(L)?0:L)},0),se=()=>{u(O=>({...O,renovationCost:[...O.renovationCost,{title:"",price:""}]}))},ce=O=>{const R=c.renovationCost.filter((L,J)=>J!==O);u(L=>({...L,renovationCost:R}))},we=(O,R,L)=>{const J=[...c.renovationCost];J[O][R]=L,u(Z=>({...Z,renovationCost:J}))},Kn=(O,R)=>{const L=O.target.value;if(/^\d*\.?\d*$/.test(L)||L===""){const Z=c.renovationCost.map((te,fe)=>fe===R?{...te,price:L,isInvalid:!1}:te);u({...c,renovationCost:Z})}else{const Z=c.renovationCost.map((te,fe)=>fe===R?{...te,isInvalid:!0}:te);u({...c,renovationCost:Z})}},Qn=()=>c.renovationCost.reduce((O,R)=>{const L=parseFloat(R.price);return O+(isNaN(L)?0:L)},0),Kc=()=>{const O=W(),R=re(),L=Qn();return O+R+L},ch=O=>{const R=O.target.value;isNaN(R)?u({...c,isInvalid:!0}):u({...c,totalcashsurplus:R,isInvalid:!1})},uh=()=>{var O,R,L,J,Z,te;if(c.address&&c.city&&c.state&&c.county&&c.zip&&c.parcel&&c.subdivision&&c.legal&&c.costpersqft&&c.propertyType&&c.lotacres&&c.yearBuild&&c.totallivingsqft&&c.beds&&c.baths&&c.stories&&c.garage&&c.garagesqft&&c.poolspa&&c.fireplaces&&c.ac&&c.heating&&c.buildingstyle&&c.sitevacant&&c.extwall&&c.roofing&&c.totalSqft&&c.totalcashsurplus&&c.sellpricebtoc&&c.closeDateAtoB&&c.closeDateBtoC){const fe=E(),dh=Y(),fh=k(),ph=W(),mh=G(),hh=re(),vh=Qn(),yh=Kc(),Kl={...c,userfirstname:(O=a==null?void 0:a.result)==null?void 0:O.firstName,usermiddlename:(R=a==null?void 0:a.result)==null?void 0:R.middleName,userlastname:(L=a==null?void 0:a.result)==null?void 0:L.lastName,usertitle:(J=a==null?void 0:a.result)==null?void 0:J.title,useremail:(Z=a==null?void 0:a.result)==null?void 0:Z.email,userId:(te=a==null?void 0:a.result)==null?void 0:te.userId,totalCostsAtoB:fe,totalcredits:mh,totalCostsAtoBaftercredits:dh,totalcashAdjustments:fh,totalincidentalCost:ph,totalutilMaintenanceCost:hh,totalrenovationCost:vh,costsAfterPropertyAcquisition:yh};Array.isArray(c.propertyTaxInfo)&&c.propertyTaxInfo.length>0?Kl.propertyTaxInfo=c.propertyTaxInfo:Kl.propertyTaxInfo=[],i(Oo(Kl)),p(!0)}else ie.error("Please fill all fields before submitting",{position:"top-right",autoClose:3e3})};return P.useEffect(()=>{d&&(l==="succeeded"?(ie.success("Property submitted successfully!",{position:"top-right",autoClose:3e3}),p(!1)):l==="failed"&&(ie.error(`Failed to submit: ${s}`,{position:"top-right",autoClose:3e3}),p(!1)))},[l,s,d]),o.jsx(o.Fragment,{children:o.jsxs("div",{className:"container tabs-wrap",children:[o.jsx(Oe,{}),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==="Images"?"active tab":"tab",children:o.jsx("a",{onClick:()=>t("Images"),role:"tab",children:"Images, Maps"})}),o.jsx("li",{role:"presentation",className:e==="Accounting"?"active tab":"tab",children:o.jsx("a",{onClick:()=>t("Accounting"),role:"tab",children:"Accounting"})})]}),o.jsxs("div",{className:"tab-content",children:[e==="propertydetails"&&o.jsxs("div",{role:"tabpanel",className:"card tab-pane active",children:[o.jsxs("form",{children:[o.jsx("h3",{style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:"Property Location"}),o.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),o.jsxs("div",{className:"row gy-3",children:[o.jsx("div",{className:"col-md-4",children:o.jsxs("div",{className:"form-floating mb-3",children:["Property Address",o.jsx("input",{type:"text",className:"form-control",name:"address",value:c.address,onChange:x,required:!0})]})}),o.jsx("div",{className:"col-md-4",children:o.jsxs("div",{className:"form-floating mb-3",children:["City",o.jsx("input",{type:"text",className:"form-control",name:"city",value:c.city,onChange:x,required:!0})]})}),o.jsx("div",{className:"col-md-4",children:o.jsxs("div",{className:"form-floating mb-3",children:["State",o.jsxs("select",{className:"form-floating mb-3 form-control",name:"state",value:c.state,onChange:x,required:!0,children:[o.jsx("option",{value:"",children:"Please Select"}),o.jsx("option",{value:"Alaska",children:"Alaska"}),o.jsx("option",{value:"Alabama",children:"Alabama"}),o.jsx("option",{value:"Arkansas",children:"Arkansas"}),o.jsx("option",{value:"Arizona",children:"Arizona"}),o.jsx("option",{value:"California",children:"California"}),o.jsx("option",{value:"Colorado",children:"Colorado"}),o.jsx("option",{value:"Connecticut",children:"Connecticut"}),o.jsx("option",{value:"District Of Columbia",children:"District Of Columbia"}),o.jsx("option",{value:"Delaware",children:"Delaware"}),o.jsx("option",{value:"Florida",children:"Florida"}),o.jsx("option",{value:"Georgia",children:"Georgia"}),o.jsx("option",{value:"Hawaii",children:"Hawaii"}),o.jsx("option",{value:"Iowa",children:"Iowa"}),o.jsx("option",{value:"Idaho",children:"Idaho"}),o.jsx("option",{value:"Illinois",children:"Illinois"}),o.jsx("option",{value:"Indiana",children:"Indiana"}),o.jsx("option",{value:"Kansas",children:"Kansas"}),o.jsx("option",{value:"Kentucky",children:"Kentucky"}),o.jsx("option",{value:"Louisiana",children:"Louisiana"}),o.jsx("option",{value:"Massachusetts",children:"Massachusetts"}),o.jsx("option",{value:"Maryland",children:"Maryland"}),o.jsx("option",{value:"Michigan",children:"Michigan"}),o.jsx("option",{value:"Minnesota",children:"Minnesota"}),o.jsx("option",{value:"Missouri",children:"Missouri"}),o.jsx("option",{value:"Mississippi",children:"Mississippi"}),o.jsx("option",{value:"Montana",children:"Montana"}),o.jsx("option",{value:"North Carolina",children:"North Carolina"}),o.jsx("option",{value:"North Dakota",children:"North Dakota"}),o.jsx("option",{value:"Nebraska",children:"Nebraska"}),o.jsx("option",{value:"New Hampshire",children:"New Hampshire"}),o.jsx("option",{value:"New Jersey",children:"New Jersey"}),o.jsx("option",{value:"New Mexico",children:"New Mexico"}),o.jsx("option",{value:"Nevada",children:"Nevada"}),o.jsx("option",{value:"New York",children:"New York"}),o.jsx("option",{value:"Ohio",children:"Ohio"}),o.jsx("option",{value:"Oklahoma",children:"Oklahoma"}),o.jsx("option",{value:"Oregon",children:"Oregon"}),o.jsx("option",{value:"Pennsylvania",children:"Pennsylvania"}),o.jsx("option",{value:"Rhode Island",children:"Rhode Island"}),o.jsx("option",{value:"South Carolina",children:"South Carolina"}),o.jsx("option",{value:"South Dakota",children:"South Dakota"}),o.jsx("option",{value:"Tennessee",children:"Tennessee"}),o.jsx("option",{value:"Texas",children:"Texas"}),o.jsx("option",{value:"Utah",children:"Utah"}),o.jsx("option",{value:"Virginia",children:"Virginia"}),o.jsx("option",{value:"Vermont",children:"Vermont"}),o.jsx("option",{value:"Washington",children:"Washington"}),o.jsx("option",{value:"Wisconsin",children:"Wisconsin"}),o.jsx("option",{value:"West Virginia",children:"West Virginia"}),o.jsx("option",{value:"Wyoming",children:"Wyoming"})]})]})})]}),o.jsxs("div",{className:"row gy-3",children:[o.jsxs("div",{className:"col-md-4",children:["County",o.jsxs("select",{className:"form-floating mb-3 form-control",name:"county",value:c.county,onChange:x,required:!0,children:[o.jsx("option",{value:"",children:"Please Select"}),o.jsx("option",{value:"Abbeville",children:"Abbeville"}),o.jsx("option",{value:"Aiken",children:"Aiken"}),o.jsx("option",{value:"Allendale",children:"Allendale"}),o.jsx("option",{value:"Anderson",children:"Anderson"}),o.jsx("option",{value:"Bamberg",children:"Bamberg"}),o.jsx("option",{value:"Barnwell",children:"Barnwell"}),o.jsx("option",{value:"Beaufort",children:"Beaufort"}),o.jsx("option",{value:"Berkeley",children:"Berkeley"}),o.jsx("option",{value:"Calhoun",children:"Calhoun"}),o.jsx("option",{value:"Charleston",children:"Charleston"}),o.jsx("option",{value:"Cherokee",children:"Cherokee"}),o.jsx("option",{value:"Chester",children:"Chester"}),o.jsx("option",{value:"Chesterfield",children:"Chesterfield"}),o.jsx("option",{value:"Clarendon",children:"Clarendon"}),o.jsx("option",{value:"Colleton",children:"Colleton"}),o.jsx("option",{value:"Darlington",children:"Darlington"}),o.jsx("option",{value:"Dillon",children:"Dillon"}),o.jsx("option",{value:"Dorchester",children:"Dorchester"}),o.jsx("option",{value:"Edgefield",children:"Edgefield"}),o.jsx("option",{value:"Fairfield",children:"Fairfield"}),o.jsx("option",{value:"Florence",children:"Florence"}),o.jsx("option",{value:"Georgetown",children:"Georgetown"}),o.jsx("option",{value:"Greenville",children:"Greenville"}),o.jsx("option",{value:"Greenwood",children:"Greenwood"}),o.jsx("option",{value:"Hampton",children:"Hampton"}),o.jsx("option",{value:"Horry",children:"Horry"}),o.jsx("option",{value:"Jasper",children:"Jasper"}),o.jsx("option",{value:"Kershaw",children:"Kershaw"}),o.jsx("option",{value:"Lancaster",children:"Lancaster"}),o.jsx("option",{value:"Laurens",children:"Laurens"}),o.jsx("option",{value:"Lee",children:"Lee"}),o.jsx("option",{value:"Lexington",children:"Lexington"}),o.jsx("option",{value:"Marion",children:"Marion"}),o.jsx("option",{value:"Marlboro",children:"Marlboro"}),o.jsx("option",{value:"McCormick",children:"McCormick"}),o.jsx("option",{value:"Newberry",children:"Newberry"}),o.jsx("option",{value:"Oconee",children:"Oconee"}),o.jsx("option",{value:"Orangeburg",children:"Orangeburg"}),o.jsx("option",{value:"Pickens",children:"Pickens"}),o.jsx("option",{value:"Richland",children:"Richland"}),o.jsx("option",{value:"Saluda",children:"Saluda"}),o.jsx("option",{value:"Spartanburg",children:"Spartanburg"}),o.jsx("option",{value:"Sumter",children:"Sumter"}),o.jsx("option",{value:"Union",children:"Union"}),o.jsx("option",{value:"Williamsburg",children:"Williamsburg"}),o.jsx("option",{value:"York",children:"York"})]})]}),o.jsx("div",{className:"col-md-4",children:o.jsxs("div",{className:"form-floating mb-3",children:["Zip",o.jsx("input",{type:"text",className:"form-control",name:"zip",value:c.zip,onChange:x,required:!0})]})}),o.jsx("div",{className:"col-md-4",children:o.jsxs("div",{className:"form-floating mb-3",children:["Parcel",o.jsx("input",{type:"text",className:"form-control",name:"parcel",value:c.parcel,onChange:x,required:!0})]})})]}),o.jsxs("div",{className:"row gy-3",children:[o.jsx("div",{className:"col-md-4",children:o.jsxs("div",{className:"form-floating mb-3",children:["Sub division",o.jsx("input",{type:"text",className:"form-control",name:"subdivision",value:c.subdivision,onChange:x,required:!0})]})}),o.jsx("div",{className:"col-md-4",children:o.jsxs("div",{className:"form-floating mb-3",children:["Legal Description",o.jsx("textarea",{type:"text",className:"form-control",name:"legal",value:c.legal,onChange:x,required:!0})]})}),o.jsx("div",{className:"col-md-4",children:o.jsxs("div",{className:"form-floating mb-3",children:["Cost per SQFT",o.jsx("input",{type:"text",className:"form-control",name:"costpersqft",value:c.costpersqft,onChange:x,required:!0})]})})]}),o.jsxs("div",{className:"row gy-3",children:[o.jsxs("div",{className:"col-md-4",children:["Property Type",o.jsxs("select",{className:"form-floating mb-3 form-control",name:"propertyType",value:c.propertyType,onChange:x,required:!0,children:[o.jsx("option",{value:"",children:"Please Select"}),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-md-4",children:o.jsxs("div",{className:"form-floating mb-3",children:["Lot Acres/Sqft",o.jsx("input",{type:"text",className:"form-control",name:"lotacres",value:c.lotacres,onChange:x,required:!0})]})}),o.jsx("div",{className:"col-md-4",children:o.jsxs("div",{className:"form-floating mb-3",children:["Year Build",o.jsx("input",{type:"text",className:"form-control",name:"yearBuild",value:c.yearBuild,onChange:x,required:!0})]})})]}),o.jsxs("div",{className:"row gy-3",children:[o.jsx("div",{className:"col-md-4",children:o.jsxs("div",{className:"form-floating mb-3",children:["Total Living SQFT",o.jsx("input",{type:"text",className:"form-control",name:"totallivingsqft",value:c.totallivingsqft,onChange:x,required:!0})]})}),o.jsx("div",{className:"col-md-4",children:o.jsxs("div",{className:"form-floating mb-3",children:["Beds",o.jsx("input",{type:"text",className:"form-control",name:"beds",value:c.beds,onChange:x,required:!0})]})}),o.jsx("div",{className:"col-md-4",children:o.jsxs("div",{className:"form-floating mb-3",children:["Baths",o.jsx("input",{type:"text",className:"form-control",name:"baths",value:c.baths,onChange:x,required:!0})]})})]}),o.jsxs("div",{className:"row gy-3",children:[o.jsxs("div",{className:"col-md-4",children:["Stories",o.jsxs("select",{className:"form-floating mb-3 form-control",name:"stories",value:c.stories,onChange:x,required:!0,children:[o.jsx("option",{value:"",children:"Please Select"}),o.jsx("option",{value:"0",children:"0"}),o.jsx("option",{value:"1",children:"1"}),o.jsx("option",{value:"2",children:"2"}),o.jsx("option",{value:"3",children:"3"}),o.jsx("option",{value:"4",children:"4"}),o.jsx("option",{value:"5",children:"5"}),o.jsx("option",{value:"6",children:"6"}),o.jsx("option",{value:"7",children:"7"}),o.jsx("option",{value:"8",children:"8"}),o.jsx("option",{value:"9",children:"9"}),o.jsx("option",{value:"10",children:"10"})]})]}),o.jsxs("div",{className:"col-md-4",children:["Garage",o.jsxs("select",{className:"form-floating mb-3 form-control",name:"garage",value:c.garage,onChange:x,required:!0,children:[o.jsx("option",{value:"",children:"Please Select"}),o.jsx("option",{value:"0",children:"0"}),o.jsx("option",{value:"1",children:"1"}),o.jsx("option",{value:"2",children:"2"}),o.jsx("option",{value:"3",children:"3"}),o.jsx("option",{value:"4",children:"4"}),o.jsx("option",{value:"5",children:"5"})]})]}),o.jsx("div",{className:"col-md-4",children:o.jsxs("div",{className:"form-floating mb-3",children:["Garage SQFT",o.jsx("input",{type:"text",className:"form-control",name:"garagesqft",value:c.garagesqft,onChange:x,required:!0})]})})]}),o.jsxs("div",{className:"row gy-3",children:[o.jsxs("div",{className:"col-md-4",children:["Pool/SPA",o.jsxs("select",{className:"form-floating mb-3 form-control",name:"poolspa",value:c.poolspa,onChange:x,required:!0,children:[o.jsx("option",{value:"",children:"Please Select"}),o.jsx("option",{value:"N/A",children:"N/A"}),o.jsx("option",{value:"Yes- Pool Only",children:"Yes- Pool Only"}),o.jsx("option",{value:"Yes- SPA only",children:"Yes- SPA only"}),o.jsx("option",{value:"Yes - Both Pool and SPA",children:"Yes - Both Pool and SPA"}),o.jsx("option",{value:"4",children:"None"})]})]}),o.jsxs("div",{className:"col-md-4",children:["Fire places",o.jsxs("select",{className:"form-floating mb-3 form-control",name:"fireplaces",value:c.fireplaces,onChange:x,required:!0,children:[o.jsx("option",{value:"",children:"Please Select"}),o.jsx("option",{value:"N/A",children:"N/A"}),o.jsx("option",{value:"yes",children:"Yes"}),o.jsx("option",{value:"no",children:"No"})]})]}),o.jsxs("div",{className:"col-md-4",children:["A/C",o.jsxs("select",{className:"form-floating mb-3 form-control",name:"ac",value:c.ac,onChange:x,required:!0,children:[o.jsx("option",{value:"",children:"Please Select"}),o.jsx("option",{value:"N/A",children:"N/A"}),o.jsx("option",{value:"Central",children:"Central"}),o.jsx("option",{value:"Heat Pump",children:"Heat Pump"}),o.jsx("option",{value:"Warm Air",children:"Warm Air"}),o.jsx("option",{value:"Forced Air",children:"Forced Air"}),o.jsx("option",{value:"Gas",children:"Gas"})]})]})]}),o.jsxs("div",{className:"row gy-3",children:[o.jsxs("div",{className:"col-md-4",children:["Heating",o.jsxs("select",{className:"form-floating mb-3 form-control",name:"heating",value:c.heating,onChange:x,required:!0,children:[o.jsx("option",{value:"",children:"Please Select"}),o.jsx("option",{value:"N/A",children:"N/A"}),o.jsx("option",{value:"Central",children:"Central"}),o.jsx("option",{value:"Heat Pump",children:"Heat Pump"}),o.jsx("option",{value:"Warm Air",children:"Warm Air"}),o.jsx("option",{value:"Forced Air",children:"Forced Air"}),o.jsx("option",{value:"Gas",children:"Gas"})]})]}),o.jsxs("div",{className:"col-md-4",children:["Building Style",o.jsxs("select",{className:"form-floating mb-3 form-control",name:"buildingstyle",value:c.buildingstyle,onChange:x,required:!0,children:[o.jsx("option",{value:"",children:"Please Select"}),o.jsx("option",{value:"One Story",children:"One Story"}),o.jsx("option",{value:"Craftsman",children:"Craftsman"}),o.jsx("option",{value:"Log/Cabin",children:"Log/Cabin"}),o.jsx("option",{value:"Split-Level",children:"Split-Level"}),o.jsx("option",{value:"Split-Foyer",children:"Split-Foyer"}),o.jsx("option",{value:"Stick Built",children:"Stick Built"}),o.jsx("option",{value:"Single wide",children:"Single wide"}),o.jsx("option",{value:"Double wide",children:"Double wide"}),o.jsx("option",{value:"Duplex",children:"Duplex"}),o.jsx("option",{value:"Triplex",children:"Triplex"}),o.jsx("option",{value:"Quadruplex",children:"Quadruplex"}),o.jsx("option",{value:"Two Story",children:"Two Story"}),o.jsx("option",{value:"Victorian",children:"Victorian"}),o.jsx("option",{value:"Tudor",children:"Tudor"}),o.jsx("option",{value:"Modern",children:"Modern"}),o.jsx("option",{value:"Art Deco",children:"Art Deco"}),o.jsx("option",{value:"Bungalow",children:"Bungalow"}),o.jsx("option",{value:"Mansion",children:"Mansion"}),o.jsx("option",{value:"Farmhouse",children:"Farmhouse"}),o.jsx("option",{value:"Conventional",children:"Conventional"}),o.jsx("option",{value:"Ranch",children:"Ranch"}),o.jsx("option",{value:"Ranch with Basement",children:"Ranch with Basement"}),o.jsx("option",{value:"Cape Cod",children:"Cape Cod"}),o.jsx("option",{value:"Contemporary",children:"Contemporary"}),o.jsx("option",{value:"Colonial",children:"Colonial"}),o.jsx("option",{value:"Mediterranean",children:"Mediterranean"})]})]}),o.jsxs("div",{className:"col-md-4",children:["Site Vacant",o.jsxs("select",{className:"form-floating mb-3 form-control",name:"sitevacant",value:c.sitevacant,onChange:x,required:!0,children:[o.jsx("option",{value:"",children:"Please select"}),o.jsx("option",{value:"Yes",children:"Yes"}),o.jsx("option",{value:"No",children:"No"})]})]})]}),o.jsxs("div",{className:"row gy-3",children:[o.jsxs("div",{className:"col-md-4",children:["Ext Wall",o.jsxs("select",{className:"form-floating mb-3 form-control",name:"extwall",value:c.extwall,onChange:x,required:!0,children:[o.jsx("option",{value:"",children:"Please Select"}),o.jsx("option",{value:"N/A",children:"N/A"}),o.jsx("option",{value:"Brick",children:"Brick"}),o.jsx("option",{value:"Brick/Vinyl Siding",children:"Brick/Vinyl Siding"}),o.jsx("option",{value:"Wood/Vinyl Siding",children:"Wood/Vinyl Siding"}),o.jsx("option",{value:"Brick/Wood Siding",children:"Brick/Wood Siding"}),o.jsx("option",{value:"Stone",children:"Stone"}),o.jsx("option",{value:"Masonry",children:"Masonry"}),o.jsx("option",{value:"Metal",children:"Metal"}),o.jsx("option",{value:"Fiberboard",children:"Fiberboard"}),o.jsx("option",{value:"Asphalt Siding",children:"Asphalt Siding"}),o.jsx("option",{value:"Concrete Block",children:"Concrete Block"}),o.jsx("option",{value:"Gable",children:"Gable"}),o.jsx("option",{value:"Brick Veneer",children:"Brick Veneer"}),o.jsx("option",{value:"Frame",children:"Frame"}),o.jsx("option",{value:"Siding",children:"Siding"}),o.jsx("option",{value:"Cement/Wood Fiber Siding",children:"Cement/Wood Fiber Siding"}),o.jsx("option",{value:"Fiber/Cement Siding",children:"Fiber/Cement Siding"}),o.jsx("option",{value:"Wood Siding",children:"Wood Siding"}),o.jsx("option",{value:"Vinyl Siding",children:"Vinyl Siding"}),o.jsx("option",{value:"Aluminium Siding",children:"Aluminium Siding"}),o.jsx("option",{value:"Wood/Vinyl Siding",children:"Alum/Vinyl Siding"})]})]}),o.jsxs("div",{className:"col-md-4",children:["Roofing",o.jsxs("select",{className:"form-floating mb-3 form-control",name:"roofing",value:c.roofing,onChange:x,required:!0,children:[o.jsx("option",{value:"",children:"Please Select"}),o.jsx("option",{value:"N/A",children:"N/A"}),o.jsx("option",{value:"Asphalt Shingle",children:"Asphalt Shingle"}),o.jsx("option",{value:"Green Roofs",children:"Green Roofs"}),o.jsx("option",{value:"Built-up Roofing",children:"Built-up Roofing"}),o.jsx("option",{value:"Composition Shingle",children:"Composition Shingle"}),o.jsx("option",{value:"Composition Shingle Heavy",children:"Composition Shingle Heavy"}),o.jsx("option",{value:"Solar tiles",children:"Solar tiles"}),o.jsx("option",{value:"Metal",children:"Metal"}),o.jsx("option",{value:"Stone-coated steel",children:"Stone-coated steel"}),o.jsx("option",{value:"Slate",children:"Slate"}),o.jsx("option",{value:"Rubber Slate",children:"Rubber Slate"}),o.jsx("option",{value:"Clay and Concrete tiles",children:"Clay and Concrete tiles"})]})]}),o.jsx("div",{className:"col-md-4",children:o.jsxs("div",{className:"form-floating mb-3",children:["Total SQFT",o.jsx("input",{type:"text",className:"form-control",name:"totalSqft",value:c.totalSqft,onChange:x,required:!0})]})})]}),o.jsxs("h3",{style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:[o.jsx("br",{}),"Property Tax Information"]}),o.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),c.propertyTaxInfo.map((O,R)=>o.jsxs("div",{className:"row gy-4",children:[o.jsx("div",{className:"col-md-3",children:o.jsxs("div",{className:"form-floating mb-3",children:["Property Tax Owned",o.jsx("input",{type:"text",className:"form-control",name:"propertytaxowned",value:O.propertytaxowned,onChange:L=>x(L,R,"propertyTaxInfo"),required:!0})]})}),o.jsx("div",{className:"col-md-2",children:o.jsxs("div",{className:"form-floating mb-2",children:["Owed Year",o.jsx("input",{type:"text",className:"form-control",name:"ownedyear",value:O.ownedyear,onChange:L=>x(L,R,"propertyTaxInfo"),required:!0})]})}),o.jsx("div",{className:"col-md-2",children:o.jsxs("div",{className:"form-floating mb-2",children:["Tax Assessed",o.jsx("input",{type:"text",className:"form-control",name:"taxassessed",value:O.taxassessed,onChange:L=>x(L,R,"propertyTaxInfo"),required:!0})]})}),o.jsx("div",{className:"col-md-2",children:o.jsxs("div",{className:"form-floating mb-2",children:["Tax Year",o.jsx("input",{type:"text",className:"form-control",name:"taxyear",value:O.taxyear,onChange:L=>x(L,R,"propertyTaxInfo"),required:!0})]})}),o.jsx("div",{className:"col-md-3",children:o.jsxs("div",{className:"form-floating mb-2",children:[o.jsx("br",{}),o.jsx("button",{className:"btn btn-danger",onClick:()=>m(R),style:{height:"25px",width:"35px"},children:"X"})]})})]},R)),o.jsx("button",{className:"btn btn-secondary",onClick:h,children:"+ Add Another Property Tax Info"})]}),o.jsx("button",{className:"btn btn-primary continue",onClick:n,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Continue"})]}),e==="Images"&&o.jsxs("div",{role:"tabpanel",className:"card tab-pane active",children:[o.jsxs("h3",{style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:["Upload Images"," "]}),o.jsxs("form",{children:[c.images.map((O,R)=>o.jsxs("div",{className:"row gy-3 align-items-center",children:[o.jsx("div",{className:"col-md-4",children:o.jsx("input",{type:"text",className:"form-control",value:O.title,placeholder:"Image Title",onChange:L=>j(R,L)})}),o.jsxs("div",{className:"col-md-4 d-flex align-items-center",children:[o.jsx(oh,{multiple:!1,onDone:L=>y(L,R)}),o.jsx("button",{type:"button",className:"btn btn-danger",onClick:()=>v(R),style:{marginLeft:"5px"},children:"Delete"})]}),O.file&&o.jsx("div",{className:"col-md-12",children:o.jsx("img",{src:O.file,alt:"uploaded",style:{width:"150px",height:"150px"}})})]},R)),o.jsx("button",{type:"button",className:"btn btn-primary",onClick:N,style:{backgroundColor:"#fda417",border:"#fda417"},children:"+ Add Image"}),o.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),o.jsxs("div",{className:"mb-3",children:[o.jsx("label",{htmlFor:"googleMapLink",className:"form-label",children:o.jsxs("h3",{style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:["Google Maps Link"," "]})}),o.jsx("input",{type:"text",className:"form-control",name:"googleMapLink",value:c.googleMapLink,onChange:x,placeholder:"Enter Google Maps link"})]}),c.googleMapLink&&o.jsx("iframe",{title:"Google Map",width:"100%",height:"300",src:`https://www.google.com/maps/embed/v1/view?key=YOUR_API_KEY¢er=${c.googleMapLink}&zoom=10`,frameBorder:"0",allowFullScreen:!0})]}),o.jsx("button",{className:"btn btn-primary back",onClick:r,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Go Back"})," ",o.jsx("button",{className:"btn btn-primary continue",onClick:n,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Continue"})]}),e==="Accounting"&&o.jsxs("div",{className:"card",style:{color:"#fda417",border:"1px solid #fda417",padding:"10px",borderRadius:"8px"},children:[o.jsx("br",{}),o.jsxs("div",{className:"row gy-3",children:[o.jsx("div",{className:"col-md-4",children:o.jsx("input",{type:"text",className:"form-control",placeholder:"Close Date A to B",required:!0,disabled:!0})}),o.jsx("div",{className:"col-md-4",children:o.jsx("input",{type:"date",className:"form-control",name:"closeDateAtoB",value:c.closeDateAtoB,onChange:O=>{const R=O.target.value;u({...c,closeDateAtoB:R})},placeholder:"Close Date A to B",style:{textAlign:"right"},required:!0})})]}),o.jsx("br",{}),o.jsxs("div",{className:"row gy-3",children:[o.jsx("div",{className:"col-md-4",children:o.jsx("input",{type:"text",className:"form-control",placeholder:"Close Date B to C",required:!0,disabled:!0})}),o.jsx("div",{className:"col-md-4",children:o.jsx("input",{type:"date",className:"form-control",name:"closeDateBtoC",value:c.closeDateBtoC,onChange:O=>{const R=O.target.value;u({...c,closeDateBtoC:R})},placeholder:"Close Date B to C",style:{textAlign:"right"},required:!0})})]}),o.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),o.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Property Acquisition A to B:"}),o.jsx("br",{}),o.jsxs("div",{className:"row gy-3",children:[o.jsx("div",{className:"col-md-4",children:o.jsx("input",{type:"text",className:"form-control",placeholder:"Purchase Cost",required:!0,disabled:!0})}),o.jsxs("div",{className:"col-md-4",children:[o.jsx("input",{type:"text",className:`form-control ${c.isPurchaseCostInvalid?"is-invalid":""}`,value:c.purchaseCost,onChange:O=>{const R=O.target.value,L=/^\d*\.?\d*$/.test(R);u({...c,purchaseCost:R,isPurchaseCostInvalid:!L})},onKeyPress:O=>{const R=O.charCode;(R<48||R>57)&&R!==46&&(O.preventDefault(),u({...c,isPurchaseCostInvalid:!0}))},placeholder:"Enter Purchase Cost",style:{textAlign:"right"},required:!0}),c.isPurchaseCostInvalid&&o.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),o.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),o.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Costs paid out of Closing Hud A to B:"}),c.costPaidAtoB.map((O,R)=>o.jsxs("div",{className:"row gy-3 align-items-center",children:[o.jsx("div",{className:"col-md-4",children:o.jsx("input",{type:"text",className:"form-control",value:O.title,onChange:L=>w(R,"title",L.target.value),placeholder:"Title",required:!0})}),o.jsxs("div",{className:"col-md-4",children:[o.jsx("input",{type:"text",className:`form-control ${O.isInvalid?"is-invalid":""}`,value:O.price,onChange:L=>b(L,R),placeholder:"Price",style:{textAlign:"right"},required:!0}),O.isInvalid&&o.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),o.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:o.jsx("button",{className:"btn btn-danger",onClick:()=>g(R),style:{marginLeft:"5px"},children:"x"})})]},R)),o.jsx("div",{className:"col-md-4",children:o.jsxs("button",{onClick:f,className:"btn btn-primary back",style:{backgroundColor:"#fda417",border:"#fda417"},children:[o.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Extra Cost"]})}),o.jsxs("div",{className:"row gy-3 align-items-center",children:[o.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Costs to Buy A to B"}),o.jsx("div",{className:"col-md-4",children:o.jsx("input",{type:"text",className:"form-control",name:"totalCostsAtoB",value:E(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},placeholder:"Total Costs to Buy A to B",required:!0})})]}),o.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),o.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Credits received on settlement:"}),c.credits.map((O,R)=>o.jsxs("div",{className:"row gy-3 align-items-center",children:[o.jsx("div",{className:"col-md-4",children:o.jsx("input",{type:"text",className:"form-control",value:O.title,onChange:L=>F(R,"title",L.target.value),placeholder:"credits",required:!0})}),o.jsxs("div",{className:"col-md-4",children:[o.jsx("input",{type:"text",className:`form-control ${O.isInvalid?"is-invalid":""}`,value:O.price,onChange:L=>$(L,R),placeholder:"Price",style:{textAlign:"right"},required:!0}),O.isInvalid&&o.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),o.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:o.jsx("button",{className:"btn btn-danger",onClick:()=>I(R),style:{marginLeft:"5px"},children:"x"})})]},R)),o.jsx("div",{className:"col-md-4",children:o.jsxs("button",{className:"btn btn-primary back",onClick:C,style:{backgroundColor:"#fda417",border:"#fda417"},children:[o.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add credits"]})}),o.jsxs("div",{className:"row gy-3 align-items-center",children:[o.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total credits received on settlement"}),o.jsx("div",{className:"col-md-4",children:o.jsx("input",{type:"text",className:"form-control",name:"totalcredits",value:G(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),o.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),o.jsxs("div",{className:"row gy-3 align-items-center",children:[o.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Costs to Buy A to B After credits"}),o.jsx("div",{className:"col-md-4",children:o.jsx("input",{type:"text",className:"form-control",name:"totalCostsAtoBaftercredits",value:Y(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),o.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),o.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Cash Adjustments:"}),c.cashAdjustments.map((O,R)=>o.jsxs("div",{className:"row gy-3 align-items-center",children:[o.jsx("div",{className:"col-md-4",children:o.jsx("input",{type:"text",className:"form-control",value:O.title,onChange:L=>B(R,"title",L.target.value),placeholder:"Title",required:!0})}),o.jsxs("div",{className:"col-md-4",children:[o.jsx("input",{type:"text",className:`form-control ${O.isInvalid?"is-invalid":""}`,value:O.price,onChange:L=>H(L,R),placeholder:"Price",style:{textAlign:"right"},required:!0}),O.isInvalid&&o.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),o.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:o.jsx("button",{className:"btn btn-danger",onClick:()=>T(R),style:{marginLeft:"5px"},children:"x"})})]},R)),o.jsx("div",{className:"col-md-4",children:o.jsxs("button",{className:"btn btn-primary back",onClick:K,style:{backgroundColor:"#fda417",border:"#fda417"},children:[o.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Cash Adjustments"]})}),o.jsxs("div",{className:"row gy-3 align-items-center",children:[o.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Cash Adjustments on Settlement"}),o.jsx("div",{className:"col-md-4",children:o.jsx("input",{type:"text",className:"form-control",name:"totalcashAdjustments",value:k(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),o.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),o.jsxs("div",{className:"row gy-3 align-items-center",children:[o.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Cash Required/(Surplus) on Settlement"}),o.jsxs("div",{className:"col-md-4",children:[o.jsx("input",{type:"text",className:`form-control ${c.isInvalid?"is-invalid":""}`,name:"totalcashsurplus",value:c.totalcashsurplus,onChange:ch,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},placeholder:"Enter only numbers",required:!0}),c.isInvalid&&o.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),o.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),o.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Incidental Cost:"}),c.incidentalCost.map((O,R)=>o.jsxs("div",{className:"row gy-3 align-items-center",children:[o.jsx("div",{className:"col-md-4",children:o.jsx("input",{type:"text",className:"form-control",value:O.title,onChange:L=>M(R,"title",L.target.value),placeholder:"Title",required:!0})}),o.jsxs("div",{className:"col-md-4",children:[o.jsx("input",{type:"text",className:`form-control ${O.isInvalid?"is-invalid":""}`,value:O.price,onChange:L=>z(L,R),placeholder:"Price",style:{textAlign:"right"},required:!0}),O.isInvalid&&o.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),o.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:o.jsx("button",{className:"btn btn-danger",onClick:()=>D(R),style:{marginLeft:"5px"},children:"x"})})]},R)),o.jsx("div",{className:"col-md-4",children:o.jsxs("button",{className:"btn btn-primary back",onClick:S,style:{backgroundColor:"#fda417",border:"#fda417"},children:[o.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Incidental Cost"]})}),o.jsxs("div",{className:"row gy-3 align-items-center",children:[o.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Incidental Cost"}),o.jsx("div",{className:"col-md-4",children:o.jsx("input",{type:"text",className:"form-control",name:"totalincidentalCost",value:W(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),o.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),o.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Carry Costs:"}),c.utilMaintenance.map((O,R)=>o.jsxs("div",{className:"row gy-3 align-items-center",children:[o.jsx("div",{className:"col-md-4",children:o.jsx("input",{type:"text",className:"form-control",value:O.title,onChange:L=>X(R,"title",L.target.value),placeholder:"Title",required:!0})}),o.jsxs("div",{className:"col-md-4",children:[o.jsx("input",{type:"text",className:`form-control ${O.isInvalid?"is-invalid":""}`,value:O.price,onChange:L=>ee(L,R),placeholder:"Price",style:{textAlign:"right"},required:!0}),O.isInvalid&&o.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),o.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:o.jsx("button",{className:"btn btn-danger",onClick:()=>Q(R),style:{marginLeft:"5px"},children:"x"})})]},R)),o.jsx("div",{className:"col-md-4",children:o.jsxs("button",{className:"btn btn-primary back",onClick:V,style:{backgroundColor:"#fda417",border:"#fda417"},children:[o.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Carry Cost"]})}),o.jsxs("div",{className:"row gy-3 align-items-center",children:[o.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Carry Cost"}),o.jsx("div",{className:"col-md-4",children:o.jsx("input",{type:"text",className:"form-control",name:"totalutilMaintenanceCost",value:re(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),o.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),o.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Renovation and Holding Costs"}),c.renovationCost.map((O,R)=>o.jsxs("div",{className:"row gy-3 align-items-center",children:[o.jsx("div",{className:"col-md-4",children:o.jsx("input",{type:"text",className:"form-control",value:O.title,onChange:L=>we(R,"title",L.target.value),placeholder:"Title",required:!0,style:{fontSize:"10px"}})}),o.jsxs("div",{className:"col-md-4",children:[o.jsx("input",{type:"text",className:`form-control ${O.isInvalid?"is-invalid":""}`,value:O.price,onChange:L=>Kn(L,R),placeholder:"Price",style:{textAlign:"right"},required:!0}),O.isInvalid&&o.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),o.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:o.jsx("button",{className:"btn btn-danger",onClick:()=>ce(R),style:{marginLeft:"5px"},children:"x"})})]},R)),o.jsx("div",{className:"col-md-4",children:o.jsxs("button",{className:"btn btn-primary back",onClick:se,style:{backgroundColor:"#fda417",border:"#fda417"},children:[o.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Renovation and Holding cost"]})}),o.jsxs("div",{className:"row gy-3 align-items-center",children:[o.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Renovation and Holding cost"}),o.jsx("div",{className:"col-md-4",children:o.jsx("input",{type:"text",className:"form-control",name:"totalrenovationCost",value:Qn(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),o.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),o.jsxs("div",{className:"row gy-3 align-items-center",children:[o.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Costs After Property Acquisition"}),o.jsx("div",{className:"col-md-4",children:o.jsx("input",{type:"text",className:"form-control",name:"costsAfterPropertyAcquisition",value:Kc(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),o.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),o.jsxs("div",{className:"row gy-3 align-items-center",children:[o.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Selling Price B to C"}),o.jsxs("div",{className:"col-md-4",children:[o.jsx("input",{type:"text",className:`form-control ${c.isInvalid?"is-invalid":""}`,name:"sellpricebtoc",value:c.sellpricebtoc,onChange:O=>{const R=O.target.value,L=/^\d*\.?\d*$/.test(R);u({...c,sellpricebtoc:R,isInvalid:!L})},onKeyPress:O=>{const R=O.charCode;(R<48||R>57)&&R!==46&&(O.preventDefault(),u({...c,isInvalid:!0}))},placeholder:"Selling Price B to C",style:{textAlign:"right"},required:!0}),c.isInvalid&&o.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),o.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),o.jsxs("div",{className:"col-md-4",children:[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:uh,children:"Submit"})," "]}),o.jsx("br",{})]})]})]})})},Rt="/assets/propertydummy-DhVEZ7jN.jpg",Yj=()=>{var c;const e=St(),{user:t}=Ze(u=>({...u.auth})),{userProperties:n,totalPages:r}=Ze(u=>u.property),[i,l]=P.useState(1),s=5;P.useEffect(()=>{e(To({userId:t.result.userId,page:i,limit:s}))},[e,(c=t==null?void 0:t.result)==null?void 0:c.userId,i]);const a=u=>{l(u)};return o.jsx(o.Fragment,{children:n.length>0?o.jsxs(o.Fragment,{children:[o.jsx("ul",{children:n.map(u=>o.jsx("li",{children:o.jsx("div",{className:"container",children:o.jsx("div",{className:"col-md-12",children:o.jsxs("div",{className:"row p-2 bg-white border rounded mt-2",children:[o.jsx("div",{className:"col-md-3 mt-1",children:o.jsx("img",{src:Rt,className:"w-70",alt:"Img",style:{marginTop:"0px",maxWidth:"200px",maxHeight:"200px"}})}),o.jsxs("div",{className:"col-md-6 mt-1",children:[o.jsxs("h5",{children:[" ",o.jsxs(he,{to:`/property/${u.propertyId}`,target:"_blank",children:[u.address,"....."]})]}),o.jsx("div",{className:"d-flex flex-row"}),o.jsxs("div",{className:"mt-1 mb-1 spec-1",children:[o.jsx("span",{children:"100% cotton"}),o.jsx("span",{className:"dot"}),o.jsx("span",{children:"Light weight"}),o.jsx("span",{className:"dot"}),o.jsxs("span",{children:["Best finish",o.jsx("br",{})]})]}),o.jsxs("div",{className:"mt-1 mb-1 spec-1",children:[o.jsx("span",{children:"Unique design"}),o.jsx("span",{className:"dot"}),o.jsx("span",{children:"For men"}),o.jsx("span",{className:"dot"}),o.jsxs("span",{children:["Casual",o.jsx("br",{})]})]}),o.jsxs("p",{className:"text-justify text-truncate para mb-0",children:["There are many variations of passages of",o.jsx("br",{}),o.jsx("br",{})]})]}),o.jsx("div",{className:"align-items-center align-content-center col-md-3 border-left mt-1",children:o.jsxs("div",{className:"d-flex flex-column mt-4",children:[o.jsx(he,{to:`/property/${u.propertyId}`,target:"_blank",children:o.jsxs("button",{className:"btn btn-outline-primary btn-sm mt-2",type:"button",style:{backgroundColor:"#fda417",border:"#fda417"},children:[o.jsx("span",{className:"fa fa-eye",style:{color:"#F74B02"}})," "," ","View Details"]})}),o.jsx(he,{to:`/editproperty/${u.propertyId}`,children:o.jsxs("button",{className:"btn btn-outline-primary btn-sm mt-2",type:"button",style:{backgroundColor:"#fda417",border:"#fda417"},children:[o.jsx("span",{className:"fa fa-edit",style:{color:"#F74B02"}})," "," ","Edit Details .."]})})]})})]})})})},u._id))}),o.jsxs("div",{className:"pagination",children:[o.jsx("button",{onClick:()=>a(i-1),disabled:i===1,children:"Previous"}),Array.from({length:r},(u,d)=>d+1).map(u=>u===i||u===1||u===r||u>=i-1&&u<=i+1?o.jsx("button",{onClick:()=>a(u),disabled:i===u,children:u},u):u===2||u===r-1?o.jsx("span",{children:"..."},u):null),o.jsx("button",{onClick:()=>a(i+1),disabled:i===r,children:"Next"})]})]}):o.jsx("p",{children:"No active properties found."})})},Kj=()=>{var d,p,y,N,v,j,x,h,m,f,g,w;const{user:e,isLoading:t,error:n}=Ze(b=>b.auth),r=St(),i=Dr(),[l,s]=P.useState({userId:((d=e==null?void 0:e.result)==null?void 0:d.userId)||"",title:((p=e==null?void 0:e.result)==null?void 0:p.title)||"",firstName:((y=e==null?void 0:e.result)==null?void 0:y.firstName)||"",middleName:((N=e==null?void 0:e.result)==null?void 0:N.middleName)||"",lastName:((v=e==null?void 0:e.result)==null?void 0:v.lastName)||"",email:((j=e==null?void 0:e.result)==null?void 0:j.email)||"",aboutme:((x=e==null?void 0:e.result)==null?void 0:x.aboutme)||"",city:((h=e==null?void 0:e.result)==null?void 0:h.city)||"",state:((m=e==null?void 0:e.result)==null?void 0:m.state)||"",county:((f=e==null?void 0:e.result)==null?void 0:f.county)||"",zip:((g=e==null?void 0:e.result)==null?void 0:g.zip)||"",profileImage:((w=e==null?void 0:e.result)==null?void 0:w.profileImage)||""});P.useEffect(()=>{e&&s({userId:e.result.userId,title:e.result.title,firstName:e.result.firstName,middleName:e.result.middleName,lastName:e.result.lastName,email:e.result.email,aboutme:e.result.aboutme,city:e.result.city,state:e.result.state,county:e.result.county,zip:e.result.zip,profileImage:e.result.profileImage})},[e]);const a=b=>{s({...l,[b.target.name]:b.target.value})},c=()=>{s({...l,profileImage:""})},u=b=>{b.preventDefault(),r(ko(l)),i("/login")};return o.jsx(o.Fragment,{children:o.jsxs("form",{onSubmit:u,children:[o.jsxs("div",{className:"col-4",children:["Title",o.jsxs("select",{className:"form-floating mb-3 form-control","aria-label":"Default select example",name:"title",value:l.title,onChange:a,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("div",{className:"col-4",children:o.jsxs("div",{className:"form-floating mb-3",children:["First Name",o.jsx("input",{type:"text",className:"form-control",placeholder:"First Name",required:"required",name:"firstName",value:l.firstName,onChange:a})]})}),o.jsx("div",{className:"col-4",children:o.jsxs("div",{className:"form-floating mb-3",children:["Middle Name",o.jsx("input",{type:"text",className:"form-control",placeholder:"Middle Name",required:"required",name:"middleName",value:l.middleName,onChange:a})]})}),o.jsx("div",{className:"col-4",children:o.jsxs("div",{className:"form-floating mb-3",children:["Last Name",o.jsx("input",{type:"text",className:"form-control",placeholder:"Last Name",required:"required",name:"lastName",value:l.lastName,onChange:a})]})}),o.jsx("div",{className:"col-4",children:o.jsxs("div",{className:"form-floating mb-3",children:["Email",o.jsx("input",{type:"text",className:"form-control",placeholder:"Email",required:"required",name:"email",value:l.email,onChange:a,disabled:!0})]})}),o.jsx("div",{className:"col-4",children:o.jsxs("div",{className:"form-floating mb-3",children:["About me",o.jsx("textarea",{type:"text",id:"aboutme",name:"aboutme",className:"form-control h-100",value:l.aboutme,onChange:a})]})}),o.jsx("div",{className:"col-4",children:o.jsxs("div",{className:"form-floating mb-3",children:["City",o.jsx("input",{type:"text",className:"form-control",name:"city",placeholder:"city",value:l.city,onChange:a,required:!0})]})}),o.jsx("div",{className:"col-md-4",children:o.jsxs("div",{className:"form-floating mb-3",children:["State",o.jsxs("select",{className:"form-floating mb-3 form-control",name:"state",value:l.state,onChange:a,required:!0,children:[o.jsx("option",{value:"",children:"Please Select State"}),o.jsx("option",{value:"Alaska",children:"Alaska"}),o.jsx("option",{value:"Alabama",children:"Alabama"}),o.jsx("option",{value:"Arkansas",children:"Arkansas"}),o.jsx("option",{value:"Arizona",children:"Arizona"}),o.jsx("option",{value:"California",children:"California"}),o.jsx("option",{value:"Colorado",children:"Colorado"}),o.jsx("option",{value:"Connecticut",children:"Connecticut"}),o.jsx("option",{value:"District Of Columbia",children:"District Of Columbia"}),o.jsx("option",{value:"Delaware",children:"Delaware"}),o.jsx("option",{value:"Florida",children:"Florida"}),o.jsx("option",{value:"Georgia",children:"Georgia"}),o.jsx("option",{value:"Hawaii",children:"Hawaii"}),o.jsx("option",{value:"Iowa",children:"Iowa"}),o.jsx("option",{value:"Idaho",children:"Idaho"}),o.jsx("option",{value:"Illinois",children:"Illinois"}),o.jsx("option",{value:"Indiana",children:"Indiana"}),o.jsx("option",{value:"Kansas",children:"Kansas"}),o.jsx("option",{value:"Kentucky",children:"Kentucky"}),o.jsx("option",{value:"Louisiana",children:"Louisiana"}),o.jsx("option",{value:"Massachusetts",children:"Massachusetts"}),o.jsx("option",{value:"Maryland",children:"Maryland"}),o.jsx("option",{value:"Michigan",children:"Michigan"}),o.jsx("option",{value:"Minnesota",children:"Minnesota"}),o.jsx("option",{value:"Missouri",children:"Missouri"}),o.jsx("option",{value:"Mississippi",children:"Mississippi"}),o.jsx("option",{value:"Montana",children:"Montana"}),o.jsx("option",{value:"North Carolina",children:"North Carolina"}),o.jsx("option",{value:"North Dakota",children:"North Dakota"}),o.jsx("option",{value:"Nebraska",children:"Nebraska"}),o.jsx("option",{value:"New Hampshire",children:"New Hampshire"}),o.jsx("option",{value:"New Jersey",children:"New Jersey"}),o.jsx("option",{value:"New Mexico",children:"New Mexico"}),o.jsx("option",{value:"Nevada",children:"Nevada"}),o.jsx("option",{value:"New York",children:"New York"}),o.jsx("option",{value:"Ohio",children:"Ohio"}),o.jsx("option",{value:"Oklahoma",children:"Oklahoma"}),o.jsx("option",{value:"Oregon",children:"Oregon"}),o.jsx("option",{value:"Pennsylvania",children:"Pennsylvania"}),o.jsx("option",{value:"Rhode Island",children:"Rhode Island"}),o.jsx("option",{value:"South Carolina",children:"South Carolina"}),o.jsx("option",{value:"South Dakota",children:"South Dakota"}),o.jsx("option",{value:"Tennessee",children:"Tennessee"}),o.jsx("option",{value:"Texas",children:"Texas"}),o.jsx("option",{value:"Utah",children:"Utah"}),o.jsx("option",{value:"Virginia",children:"Virginia"}),o.jsx("option",{value:"Vermont",children:"Vermont"}),o.jsx("option",{value:"Washington",children:"Washington"}),o.jsx("option",{value:"Wisconsin",children:"Wisconsin"}),o.jsx("option",{value:"West Virginia",children:"West Virginia"}),o.jsx("option",{value:"Wyoming",children:"Wyoming"})]})]})}),o.jsxs("div",{className:"col-md-4",children:["County",o.jsxs("select",{className:"form-floating mb-3 form-control",name:"county",value:l.county,onChange:a,required:!0,children:[o.jsx("option",{value:"",children:"Please Select County"}),o.jsx("option",{value:"Abbeville",children:"Abbeville"}),o.jsx("option",{value:"Aiken",children:"Aiken"}),o.jsx("option",{value:"Allendale",children:"Allendale"}),o.jsx("option",{value:"Anderson",children:"Anderson"}),o.jsx("option",{value:"Bamberg",children:"Bamberg"}),o.jsx("option",{value:"Barnwell",children:"Barnwell"}),o.jsx("option",{value:"Beaufort",children:"Beaufort"}),o.jsx("option",{value:"Berkeley",children:"Berkeley"}),o.jsx("option",{value:"Calhoun",children:"Calhoun"}),o.jsx("option",{value:"Charleston",children:"Charleston"}),o.jsx("option",{value:"Cherokee",children:"Cherokee"}),o.jsx("option",{value:"Chester",children:"Chester"}),o.jsx("option",{value:"Chesterfield",children:"Chesterfield"}),o.jsx("option",{value:"Clarendon",children:"Clarendon"}),o.jsx("option",{value:"Colleton",children:"Colleton"}),o.jsx("option",{value:"Darlington",children:"Darlington"}),o.jsx("option",{value:"Dillon",children:"Dillon"}),o.jsx("option",{value:"Dorchester",children:"Dorchester"}),o.jsx("option",{value:"Edgefield",children:"Edgefield"}),o.jsx("option",{value:"Fairfield",children:"Fairfield"}),o.jsx("option",{value:"Florence",children:"Florence"}),o.jsx("option",{value:"Georgetown",children:"Georgetown"}),o.jsx("option",{value:"Greenville",children:"Greenville"}),o.jsx("option",{value:"Greenwood",children:"Greenwood"}),o.jsx("option",{value:"Hampton",children:"Hampton"}),o.jsx("option",{value:"Horry",children:"Horry"}),o.jsx("option",{value:"Jasper",children:"Jasper"}),o.jsx("option",{value:"Kershaw",children:"Kershaw"}),o.jsx("option",{value:"Lancaster",children:"Lancaster"}),o.jsx("option",{value:"Laurens",children:"Laurens"}),o.jsx("option",{value:"Lee",children:"Lee"}),o.jsx("option",{value:"Lexington",children:"Lexington"}),o.jsx("option",{value:"Marion",children:"Marion"}),o.jsx("option",{value:"Marlboro",children:"Marlboro"}),o.jsx("option",{value:"McCormick",children:"McCormick"}),o.jsx("option",{value:"Newberry",children:"Newberry"}),o.jsx("option",{value:"Oconee",children:"Oconee"}),o.jsx("option",{value:"Orangeburg",children:"Orangeburg"}),o.jsx("option",{value:"Pickens",children:"Pickens"}),o.jsx("option",{value:"Richland",children:"Richland"}),o.jsx("option",{value:"Saluda",children:"Saluda"}),o.jsx("option",{value:"Spartanburg",children:"Spartanburg"}),o.jsx("option",{value:"Sumter",children:"Sumter"}),o.jsx("option",{value:"Union",children:"Union"}),o.jsx("option",{value:"Williamsburg",children:"Williamsburg"}),o.jsx("option",{value:"York",children:"York"})]})]}),o.jsx("div",{className:"col-4",children:o.jsxs("div",{className:"form-floating mb-3",children:["Zip",o.jsx("input",{type:"text",className:"form-control",name:"zip",placeholder:"zip",value:l.zip,onChange:a,required:!0})]})}),o.jsxs("div",{className:"col-4",children:[o.jsx("label",{children:"Profile Image"}),o.jsx("div",{className:"mb-3",children:o.jsx(oh,{type:"file",multiple:!1,onDone:({base64:b})=>s({...l,profileImage:b})})})]}),l.profileImage&&o.jsxs("div",{className:"col-4 mb-3",children:[o.jsx("img",{src:l.profileImage,alt:"Profile Preview",style:{width:"150px",height:"150px",borderRadius:"50%"}}),o.jsx("button",{type:"button",className:"btn btn-danger mt-2",onClick:c,children:"Delete Image"})]}),o.jsx("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"},disabled:t,children:t?"Updating...":"Update"})})}),n&&o.jsx("p",{children:n})]})})},Qj=()=>{const[e,t]=P.useState("dashboard"),{user:n}=Ze(i=>i.auth),r=()=>{switch(e){case"Userdetails":return o.jsx(Kj,{});case"addProperty":return o.jsx(Hj,{});case"activeProperties":return o.jsxs("div",{children:[o.jsx("h3",{children:"Active Properties"}),o.jsx(Yj,{})]});case"closedProperties":return o.jsx("p",{children:"These are your closed properties."});default:return o.jsx(o.Fragment,{})}};return o.jsxs(o.Fragment,{children:[o.jsx(Oe,{}),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:n.result.profileImage||Io,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 ${e==="dashboard"?"active":""}`,onClick:()=>t("dashboard"),children:[o.jsx("i",{className:"fa fa-dashboard",style:{color:"#F74B02"}}),o.jsx("span",{children:"Dashboard"})]}),o.jsxs("button",{className:`btn mt-3 ${e==="Userdetails"?"active":""}`,onClick:()=>t("Userdetails"),children:[o.jsx("span",{className:"fa fa-home",style:{color:"#F74B02"}}),o.jsx("span",{children:"User Profile"})]}),o.jsxs("button",{className:`btn mt-3 ${e==="addProperty"?"active":""}`,onClick:()=>t("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 ${e==="activeProperties"?"active":""}`,onClick:()=>t("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 ${e==="closedProperties"?"active":""}`,onClick:()=>t("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-1",children:[o.jsx("br",{}),o.jsxs("span",{children:["Welcome to"," ",o.jsx("span",{style:{color:"#067ADC"},children:o.jsxs(he,{to:`/profile/${n.result.userId}`,className:"link-primary text-decoration-none",target:"_blank",children:[n.result.title,". ",n.result.firstName," ",n.result.middleName," ",n.result.lastName]})})]}),o.jsx("br",{}),r()]})})]}),o.jsx(ze,{})]})};var lh={exports:{}},Gj="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",Jj=Gj,Xj=Jj;function sh(){}function ah(){}ah.resetWarningCache=sh;var Zj=function(){function e(r,i,l,s,a,c){if(c!==Xj){var u=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 u.name="Invariant Violation",u}}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:ah,resetWarningCache:sh};return n.PropTypes=n,n};lh.exports=Zj();var eN=lh.exports;const tN=Wa(eN),nN=()=>{const[e,t]=P.useState(3),n=Dr();return P.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"]})})},Do=({children:e})=>{const{user:t}=Ze(n=>({...n.auth}));return t?e:o.jsx(nN,{})};Do.propTypes={children:tN.node.isRequired};const rN=()=>{const e=St(),{id:t,token:n}=Mr();return P.useEffect(()=>{e(Po({id:t,token:n}))},[e,t,n]),o.jsxs(o.Fragment,{children:[o.jsx(Oe,{}),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(he,{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(ze,{})]})},iN=()=>{const[e,t]=P.useState(""),[n,r]=P.useState(""),i="http://67.225.129.127:3002",l=async()=>{try{const s=await de.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(Oe,{}),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(he,{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(ze,{})]})]})},oN=()=>{const{userId:e,token:t}=Mr(),[n,r]=P.useState(""),[i,l]=P.useState(""),[s,a]=P.useState(""),c="http://67.225.129.127:3002",u=async()=>{try{if(!n||n.trim()===""){a("Password not entered"),ie.error("Password not entered");return}const d=await de.post(`${c}/users/resetpassword/${e}/${t}`,{userId:e,token:t,password:n});if(n!==i){a("Passwords do not match."),ie.error("Passwords do not match.");return}else a("Password reset successfull"),ie.success(d.data.message)}catch(d){console.error("Reset Password Error:",d)}};return P.useEffect(()=>{ie.dismiss()},[]),o.jsxs(o.Fragment,{children:[o.jsx(Oe,{}),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:u,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Reset Password"}),o.jsx("p",{style:{color:"#067ADC"},className:"card-title text-center",children:s})]})})})}),o.jsx(ze,{})]})},lN=()=>o.jsxs(o.Fragment,{children:[o.jsx(Oe,{}),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(ze,{})]}),sN=()=>{const{id:e}=Mr(),t=St(),{selectedProperty:n,status:r,error:i}=Ze(a=>a.property),[l,s]=P.useState(!0);return P.useEffect(()=>{e&&(t(si(e)),s(!1))},[e,t]),r==="loading"?o.jsx("p",{children:"Loading property details..."}):r==="failed"?o.jsxs("p",{children:["Error loading property: ",i]}):o.jsxs(o.Fragment,{children:[o.jsx(Oe,{}),o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{}),o.jsx("div",{className:"container col-12",children:l?o.jsx("div",{className:"loader",children:"Loading..."}):n?o.jsx("div",{className:"py-3 py-md-5 bg-light",children:o.jsxs("div",{className:"card-header bg-white",children:[o.jsxs("div",{className:"row",children:[o.jsx("div",{className:"col-md-5 mt-3",children:o.jsx("div",{className:"bg-white border",children:n.images&&n.images[0]?o.jsx("img",{src:n.images[0].file||Rt,alt:"Property Thumbnail",style:{marginTop:"0px",maxWidth:"500px",maxHeight:"500px"}}):o.jsx("img",{src:Rt,alt:"Default Property Thumbnail",style:{marginTop:"0px",maxWidth:"500px",maxHeight:"500px"}})})}),o.jsx("div",{className:"col-md-7 mt-3",children:o.jsxs("div",{className:"product-view",children:[o.jsxs("h4",{className:"product-name",style:{color:"#fda417",fontSize:"25px"},children:[n.address,o.jsx("label",{className:"label-stock bg-success",children:"Verified Property"})]}),o.jsx("hr",{}),o.jsxs("p",{className:"product-path",children:[o.jsxs("span",{style:{color:"#fda417",fontSize:"15px"},children:["city:"," "]})," ",n.city," /",o.jsxs("span",{style:{color:"#fda417",fontSize:"15px"},children:["County:"," "]})," ",n.county," /",o.jsxs("span",{style:{color:"#fda417",fontSize:"15px"},children:["State:"," "]})," ",n.state," /",o.jsx("span",{style:{color:"#fda417",fontSize:"15px"},children:"Zipcode:"})," ",n.zip]}),o.jsxs("div",{children:[o.jsxs("span",{className:"selling-price",style:{color:"#fda417",fontSize:"15px"},children:["Total Living Square Foot:"," "]}),n.totallivingsqft,o.jsx("p",{}),o.jsxs("span",{className:"",style:{color:"#fda417",fontSize:"15px"},children:["Cost per Square Foot:"," "]}),"$",n.costpersqft,"/sqft",o.jsx("p",{}),o.jsxs("span",{className:"",style:{color:"#fda417",fontSize:"15px"},children:["Year Built:"," "]}),n.yearBuild]}),o.jsxs("div",{className:"mt-3 card bg-white",children:[o.jsx("h5",{className:"mb-0",style:{color:"#fda417",fontSize:"15px"},children:"Legal Description"}),o.jsx("span",{children:n.legal?n.legal:"No data available"})]})]})})]}),o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-md-12 mt-3",children:o.jsxs("div",{className:"card",children:[o.jsx("div",{className:"card-header bg-white",children:o.jsx("h4",{className:"product-name",style:{color:"#fda417",fontSize:"25px"},children:"Description"})}),o.jsx("div",{className:"card-body",children:o.jsx("p",{children:"Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum."})})]})})})]})}):o.jsx("p",{children:"No property details found."})}),o.jsx(ze,{})]})},aN=()=>{const[e,t]=P.useState([]),[n,r]=P.useState(0),[i,l]=P.useState(0),[s]=P.useState(10),[a,c]=P.useState(""),[u,d]=P.useState(!1),[p,y]=P.useState(!1),N=async()=>{d(!0),y(!1);try{const h=await de.get("http://67.225.129.127:3002/mysql/searchmysql",{params:{limit:s,offset:i*s,search:a},headers:{"Cache-Control":"no-cache"}});t(h.data.data),r(h.data.totalRecords),a.trim()&&y(!0)}catch(h){console.log("Error fetching data:",h)}finally{d(!1)}},v=h=>{c(h.target.value),h.target.value.trim()===""&&(l(0),t([]),r(0),y(!1),N())},j=h=>{h.key==="Enter"&&(h.preventDefault(),N())};P.useEffect(()=>{N()},[a,i]);const x=Math.ceil(n/s);return o.jsxs(o.Fragment,{children:[o.jsx(Oe,{}),o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{}),o.jsxs("div",{className:"container col-12",children:[o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-lg-12 card-margin col-12",children:o.jsx("div",{className:"card search-form col-12",children:o.jsx("div",{className:"card-body p-0",children:o.jsx("form",{id:"search-form",children:o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-12",children:o.jsx("div",{className:"row no-gutters",children:o.jsx("div",{className:"col-lg-8 col-md-6 col-sm-12 p-0",children:o.jsx("input",{type:"text",placeholder:"Enter the keyword and hit ENTER button...",className:"form-control",id:"search",name:"search",value:a,onChange:v,onKeyDown:j})})})})})})})})})}),o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-12",children:o.jsx("div",{className:"card card-margin",children:o.jsxs("div",{className:"card-body",children:[p&&e.length>0&&o.jsxs("div",{children:["Showing search results for the keyword"," ",o.jsx("span",{style:{color:"#fda417",fontSize:"25px"},children:a})]}),o.jsx("div",{className:"table-responsive",children:o.jsxs("table",{className:"table widget-26",children:[o.jsx("thead",{style:{color:"#fda417",fontSize:"15px"},children:o.jsxs("tr",{children:[o.jsx("th",{children:"Details"}),o.jsx("th",{children:"Total Living Square Foot"}),o.jsx("th",{children:"Year Built"}),o.jsx("th",{children:"Cost per Square Foot"})]})}),o.jsx("tbody",{children:e.length>0?e.map((h,m)=>o.jsxs("tr",{children:[o.jsx("td",{children:o.jsxs("div",{className:"widget-26-job-title",children:[o.jsx(he,{to:`/properties/${h.house_id}`,className:"link-primary text-decoration-none",target:"_blank",children:h.address}),o.jsxs("p",{className:"m-0",children:[o.jsxs("span",{className:"employer-name",children:[o.jsx("i",{className:"fa fa-map-marker",style:{color:"#F74B02"}}),h.city,", ",h.county,",",h.state]}),o.jsxs("p",{className:"text-muted m-0",children:["House Id: ",h.house_id]})]})]})}),o.jsx("td",{children:o.jsx("div",{className:"widget-26-job-info",children:o.jsx("p",{className:"m-0",children:h.total_living_sqft})})}),o.jsx("td",{children:o.jsx("div",{className:"widget-26-job-info",children:o.jsx("p",{className:"m-0",children:h.year_built})})}),o.jsx("td",{children:o.jsxs("div",{className:"widget-26-job-salary",children:["$ ",h.cost_per_sqft,"/sqft"]})})]},m)):o.jsx("tr",{children:o.jsx("td",{colSpan:"4",children:"No results found"})})})]})}),o.jsxs("div",{children:[o.jsx("button",{onClick:()=>l(i-1),disabled:i===0||u,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Previous"}),o.jsxs("span",{children:[" ","Page ",i+1," of ",x," "]}),o.jsx("button",{onClick:()=>l(i+1),disabled:i+1>=x||u,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Next"})]})]})})})})]}),o.jsx(ze,{})]})},cN=()=>o.jsxs(o.Fragment,{children:[o.jsx(Oe,{}),o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{}),o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{}),"This page will show the list of services offered by the company",o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{}),o.jsx(ze,{})]}),uN=()=>{const{house_id:e}=Mr();console.log("house_id",e);const[t,n]=P.useState(null),[r,i]=P.useState(!0);return P.useEffect(()=>{(async()=>{try{const s=await de.get(`http://67.225.129.127:3002/mysql/properties/${e}`);n(s.data)}catch(s){console.log("Error fetching property details:",s)}finally{i(!1)}})()},[e]),o.jsxs(o.Fragment,{children:[o.jsx(Oe,{}),o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{}),o.jsx("div",{className:"container col-12",children:r?o.jsx("div",{className:"loader",children:"Loading..."}):t?o.jsx("div",{className:"py-3 py-md-5 bg-light",children:o.jsxs("div",{className:"card-header bg-white",children:[o.jsxs("div",{className:"row",children:[o.jsx("div",{className:"col-md-5 mt-3",children:o.jsx("div",{className:"bg-white border",children:o.jsx("img",{src:Rt,className:"w-70",alt:"Img",style:{marginTop:"0px",maxWidth:"450px",maxHeight:"450px"}})})}),o.jsx("div",{className:"col-md-7 mt-3",children:o.jsxs("div",{className:"product-view",children:[o.jsxs("h4",{className:"product-name",style:{color:"#fda417",fontSize:"25px"},children:[t.address,o.jsx("label",{className:"label-stock bg-success",children:"Verified Property"})]}),o.jsx("hr",{}),o.jsxs("p",{className:"product-path",children:[o.jsxs("span",{style:{color:"#fda417",fontSize:"15px"},children:["city:"," "]})," ",t.city," /",o.jsxs("span",{style:{color:"#fda417",fontSize:"15px"},children:["County:"," "]})," ",t.county," /",o.jsxs("span",{style:{color:"#fda417",fontSize:"15px"},children:["State:"," "]})," ",t.state," /",o.jsx("span",{style:{color:"#fda417",fontSize:"15px"},children:"Zipcode:"})," ",t.zip]}),o.jsxs("div",{children:[o.jsxs("span",{className:"selling-price",style:{color:"#fda417",fontSize:"15px"},children:["Total Living Square Foot:"," "]}),t.total_living_sqft,o.jsx("p",{}),o.jsxs("span",{className:"",style:{color:"#fda417",fontSize:"15px"},children:["Cost per Square Foot:"," "]}),"$",t.cost_per_sqft,"/sqft",o.jsx("p",{}),o.jsxs("span",{className:"",style:{color:"#fda417",fontSize:"15px"},children:["Year Built:"," "]}),t.year_built]}),o.jsxs("div",{className:"mt-3 card bg-white",children:[o.jsx("h5",{className:"mb-0",style:{color:"#fda417",fontSize:"15px"},children:"Legal Summary report"}),o.jsx("span",{children:t.legal_summary_report?t.legal_summary_report:"No data available"})]})]})})]}),o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-md-12 mt-3",children:o.jsxs("div",{className:"card",children:[o.jsx("div",{className:"card-header bg-white",children:o.jsx("h4",{className:"product-name",style:{color:"#fda417",fontSize:"25px"},children:"Description"})}),o.jsx("div",{className:"card-body",children:o.jsx("p",{children:"Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum."})})]})})})]})}):o.jsx("p",{children:"No property details found."})}),o.jsx(ze,{})]})},dN=()=>{const{id:e}=Mr(),t=St(),{selectedProperty:n}=Ze(a=>a.property),[r,i]=P.useState({propertyType:"",yearBuild:"",totalSqft:""});P.useEffect(()=>{t(si(e))},[t,e]),P.useEffect(()=>{n&&i({propertyType:n.propertyType,yearBuild:n.yearBuild,totalSqft:n.totalSqft})},[n]);const l=a=>{i({...r,[a.target.name]:a.target.value})},s=a=>{a.preventDefault(),t(Ro({id:e,propertyData:r}))};return o.jsxs(o.Fragment,{children:[o.jsx(Oe,{}),o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{}),o.jsxs("div",{className:"edit-property-form",children:[o.jsx("h2",{children:"Edit Property"}),o.jsxs("form",{onSubmit:s,children:[o.jsx("div",{children:o.jsxs("select",{className:"form-floating mb-3 form-control",name:"propertyType",value:r.propertyType,onChange:l,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:"yearBuild",value:r.yearBuild,onChange:l,placeholder:"Year build",required:!0}),o.jsx("label",{htmlFor:"yearBuild",className:"form-label",children:"Year Build"})]})}),o.jsxs("div",{className:"form-floating mb-3",children:[o.jsx("input",{type:"text",className:"form-control",name:"totalSqft",value:r.totalSqft,onChange:l,placeholder:"Total SQFT",required:!0}),o.jsx("label",{htmlFor:"totalSqft",className:"form-label",children:"Total SQFT"})]}),o.jsx("button",{type:"submit",children:"Update Property"})]})]}),o.jsx(ze,{})]})},fN=()=>{const e=St(),{properties:t,loading:n,totalPages:r,currentPage:i}=Ze(j=>j.property),[l,s]=P.useState(""),[a,c]=P.useState([]),[u,d]=P.useState(1),p=10;P.useEffect(()=>{e(ai({page:u,limit:p,keyword:l}))},[e,u,l]),P.useEffect(()=>{l.trim()?c(t.filter(j=>j.address.toLowerCase().includes(l.toLowerCase()))):c(t)},[l,t]);const y=j=>{s(j.target.value)},N=j=>{j.preventDefault()},v=j=>{d(j),e(ai({page:j,limit:p,keyword:l}))};return o.jsxs(o.Fragment,{children:[o.jsx(Oe,{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsxs("div",{className:"container col-12",children:[o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-lg-12 card-margin col-12",children:o.jsx("div",{className:"card search-form col-12",children:o.jsx("div",{className:"card-body p-0",children:o.jsx("form",{id:"search-form",onSubmit:N,children:o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-12",children:o.jsx("div",{className:"row no-gutters",children:o.jsx("div",{className:"col-lg-8 col-md-6 col-sm-12 p-0",children:o.jsx("input",{type:"text",value:l,onChange:y,placeholder:"Enter the keyword and hit ENTER button...",className:"form-control"})})})})})})})})})}),o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-12",children:o.jsx("div",{className:"card card-margin",children:o.jsx("div",{className:"card-body",children:n?o.jsx("div",{children:"Loading..."}):o.jsx("div",{className:"table-responsive",children:o.jsxs("table",{className:"table widget-26",children:[o.jsx("thead",{style:{color:"#fda417",fontSize:"15px"},children:o.jsxs("tr",{children:[o.jsx("th",{children:"Image"}),o.jsx("th",{children:"Details"}),o.jsx("th",{children:"Total Living Square Foot"}),o.jsx("th",{children:"Year Built"}),o.jsx("th",{children:"Cost per Square Foot"})]})}),o.jsx("tbody",{children:a.length>0?a.map(j=>o.jsxs("tr",{children:[o.jsx("td",{children:j.images&&j.images[0]?o.jsx("img",{src:j.images[0].file||Rt,alt:"Property Thumbnail",style:{width:"100px",height:"auto"}}):o.jsx("img",{src:Rt,alt:"Default Property Thumbnail",style:{width:"100px",height:"auto"}})}),o.jsx("td",{children:o.jsxs("div",{className:"widget-26-job-title",children:[o.jsx(he,{to:`/property/${j.propertyId}`,className:"link-primary text-decoration-none",target:"_blank",children:j.address}),o.jsxs("p",{className:"m-0",children:[o.jsxs("span",{className:"employer-name",children:[o.jsx("i",{className:"fa fa-map-marker",style:{color:"#F74B02"}}),j.city,", ",j.county,","," ",j.state]}),o.jsxs("p",{className:"text-muted m-0",children:["House Id: ",j.propertyId]})]})]})}),o.jsx("td",{children:j.totallivingsqft}),o.jsx("td",{children:j.yearBuild}),o.jsx("td",{children:j.costpersqft})]},j.id)):o.jsx("tr",{children:o.jsx("td",{colSpan:"5",children:"No properties found."})})})]})})})})})}),o.jsx("nav",{"aria-label":"Page navigation",children:o.jsxs("ul",{className:"pagination justify-content-center",children:[o.jsx("li",{className:`page-item ${i===1?"disabled":""}`,children:o.jsx("button",{className:"page-link",onClick:()=>v(i-1),children:"Previous"})}),Array.from({length:r},(j,x)=>o.jsx("li",{className:`page-item ${i===x+1?"active":""}`,children:o.jsx("button",{className:"page-link",onClick:()=>v(x+1),children:x+1})},x+1)),o.jsx("li",{className:`page-item ${i===r?"disabled":""}`,children:o.jsx("button",{className:"page-link",onClick:()=>v(i+1),children:"Next"})})]})})]}),o.jsx(ze,{})]})},pN=()=>{const{userId:e}=Mr(),t=St(),{user:n,loading:r}=Ze(i=>i.user);return console.log("user",n),P.useEffect(()=>{e&&t(_o(e))},[e,t]),r?o.jsx("div",{children:"Loading..."}):o.jsxs(o.Fragment,{children:[o.jsx(Oe,{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("div",{className:"main-body",children:o.jsxs("div",{className:"row gutters-sm",children:[o.jsx("div",{className:"col-md-4 mb-3",children:o.jsx("div",{className:"card",children:o.jsxs("div",{className:"card-body",children:[o.jsxs("div",{className:"d-flex flex-column align-items-center text-center",children:[o.jsx("img",{src:n.profileImage,alt:"Admin",className:"rounded-circle",width:150}),o.jsxs("h4",{children:[n.title,". ",n.firstName," ",n.middleName," ",n.lastName]}),o.jsxs("span",{className:"text-muted font-size-sm",children:[o.jsx("i",{className:"fa fa-map-marker",style:{color:"#F74B02",fontSize:"20px"}})," ",n.city,", ",n.state,", ",n.county,", ",n.zip]})]}),o.jsx("br",{})]})})}),o.jsx("div",{className:"col-md-4 mb-3",children:o.jsx("div",{className:"card",children:o.jsxs("div",{className:"card-body",children:[o.jsxs("h1",{className:"d-flex align-items-center mb-3",style:{color:"#fda417",fontSize:"26px"},children:[o.jsx("i",{className:"material-icons text-info mr-2",style:{color:"#fda417",fontSize:"26px"},children:"Recent"}),"Project investments"]}),o.jsx("hr",{}),o.jsx("img",{src:Rt,alt:"Admin",className:"rounded-circle",style:{marginRight:"10px",maxWidth:"50px",maxHeight:"50px"}}),o.jsx("small",{children:"Web Design project in California"}),o.jsx("div",{className:"progress",style:{width:"100%",marginTop:"10px"},children:o.jsx("div",{className:"progress-bar",role:"progressbar",style:{width:"25%"},"aria-valuenow":25,"aria-valuemin":0,"aria-valuemax":100,children:"25% completed"})}),o.jsx("hr",{}),o.jsx("img",{src:Rt,alt:"Admin",className:"rounded-circle",style:{marginRight:"10px",maxWidth:"50px",maxHeight:"50px"}}),o.jsx("small",{children:"Web Design project in California"}),o.jsx("div",{className:"progress",style:{width:"100%",marginTop:"10px"},children:o.jsx("div",{className:"progress-bar",role:"progressbar",style:{width:"75%"},"aria-valuenow":75,"aria-valuemin":0,"aria-valuemax":100,children:"75% completed"})})]})})}),o.jsx("div",{className:"col-md-4 mb-3",children:o.jsx("div",{className:"card",children:o.jsxs("div",{className:"card-body",children:[o.jsxs("h1",{className:"d-flex align-items-center mb-3",style:{color:"#fda417",fontSize:"26px"},children:[o.jsx("i",{className:"material-icons text-info mr-2",children:"Projects"}),"Seeking investments"]}),o.jsx("hr",{}),o.jsx("img",{src:Rt,alt:"Admin",className:"rounded-circle",style:{marginRight:"10px",maxWidth:"50px",maxHeight:"50px"}}),o.jsx("small",{children:"Web Design project in California"}),o.jsx("br",{})," ",o.jsx("br",{}),o.jsx("hr",{}),o.jsx("img",{src:Rt,alt:"Admin",className:"rounded-circle",style:{marginRight:"10px",maxWidth:"50px",maxHeight:"50px"}}),o.jsx("small",{children:"Web Design project in California"}),o.jsx("br",{})," ",o.jsx("br",{})]})})}),o.jsx("div",{className:"col-md-4",children:o.jsx("div",{className:"card mb-3",children:o.jsxs("div",{className:"card-body",children:[o.jsxs("h1",{className:"d-flex align-items-center mb-3",style:{color:"#fda417",fontSize:"26px"},children:[o.jsx("i",{className:"material-icons text-info mr-2",style:{color:"#fda417",fontSize:"26px"},children:"About"}),"me :"]})," ",o.jsx("hr",{}),n.aboutme]})})}),o.jsx("div",{className:"col-md-4 mb-3",children:o.jsx("div",{className:"card",children:o.jsxs("div",{className:"card-body",children:[o.jsxs("h1",{className:"d-flex align-items-center mb-3",style:{color:"#fda417",fontSize:"26px"},children:[o.jsx("i",{className:"material-icons text-info mr-2",style:{color:"#fda417",fontSize:"26px"},children:"Willing to"}),"invest:"]}),o.jsx("hr",{}),o.jsx("h2",{className:"d-flex flex-column align-items-center text-center",style:{color:"#fda417",border:"#fda417",fontSize:"60px",fontWeight:"normal"},children:"$ 500,000"}),o.jsx("span",{className:"d-flex flex-column align-items-center text-center",children:o.jsx("button",{className:"btn btn-primary btn-lg ",type:"submit",style:{backgroundColor:"#fda417",border:"#fda417"},children:"Request"})}),o.jsx("hr",{}),o.jsxs("div",{className:"card-body",children:[o.jsxs("div",{className:"row",children:[o.jsx("div",{className:"col-sm-3",children:o.jsx("span",{className:"mb-0",children:"Email"})}),n.email,o.jsx("div",{className:"col-sm-9 text-secondary"})]}),o.jsx("hr",{}),o.jsxs("div",{className:"row",children:[o.jsx("div",{className:"col-sm-3",children:o.jsx("span",{className:"mb-0",children:"Phone"})}),"67656584687",o.jsx("div",{className:"col-sm-9 text-secondary"})]})]})]})})}),o.jsx("div",{className:"col-md-4 mb-3",children:o.jsx("div",{className:"card",children:o.jsxs("div",{className:"card-body",children:[o.jsxs("h1",{className:"d-flex align-items-center mb-3",style:{color:"#fda417",fontSize:"26px"},children:[o.jsx("i",{className:"material-icons text-info mr-2",children:"Suggested"}),"Borrowers"]}),o.jsxs("ul",{className:"list-group list-group-flush",children:[o.jsx("li",{className:"list-group-item d-flex justify-content-between align-items-center flex-wrap",children:o.jsxs("h6",{className:"mb-0",children:[o.jsx("img",{src:Io,style:{marginTop:"0px",maxWidth:"50px",maxHeight:"50px"}}),"Ravichandu"]})}),o.jsx("li",{className:"list-group-item d-flex justify-content-between align-items-center flex-wrap",children:o.jsxs("h6",{className:"mb-0",children:[o.jsx("img",{src:Io,style:{marginTop:"0px",maxWidth:"50px",maxHeight:"50px"}}),"Ravichandu"]})}),o.jsx("li",{className:"list-group-item d-flex justify-content-between align-items-center flex-wrap",children:o.jsxs("h6",{className:"mb-0",children:[o.jsx("img",{src:Io,style:{marginTop:"0px",maxWidth:"50px",maxHeight:"50px"}}),"Ravichandu"]})})]})]})})})]})})]})},mN=()=>o.jsxs(K1,{children:[o.jsx(fj,{}),o.jsxs(B1,{children:[o.jsx(ke,{path:"/",element:o.jsx(mj,{})}),o.jsx(ke,{path:"/about",element:o.jsx(hj,{})}),o.jsx(ke,{path:"/services",element:o.jsx(cN,{})}),o.jsx(ke,{path:"/contact",element:o.jsx(vj,{})}),o.jsx(ke,{path:"/register",element:o.jsx($j,{})}),o.jsx(ke,{path:"/registrationsuccess",element:o.jsx(Do,{children:o.jsx(lN,{})})}),o.jsx(ke,{path:"/login",element:o.jsx(Vj,{})}),o.jsx(ke,{path:"/dashboard",element:o.jsx(Do,{children:o.jsx(Qj,{})})}),o.jsx(ke,{path:"/users/:id/verify/:token",element:o.jsx(rN,{})}),o.jsx(ke,{path:"/forgotpassword",element:o.jsx(iN,{})}),o.jsx(ke,{path:"/users/resetpassword/:userId/:token",element:o.jsx(oN,{})}),o.jsx(ke,{path:"/property/:id",element:o.jsx(sN,{})}),o.jsx(ke,{path:"/properties/:house_id",element:o.jsx(uN,{})}),o.jsx(ke,{path:"/searchmyproperties",element:o.jsx(aN,{})}),o.jsx(ke,{path:"/searchproperties",element:o.jsx(fN,{})}),o.jsx(ke,{path:"/editproperty/:id",element:o.jsx(Do,{children:o.jsx(dN,{})})}),o.jsx(ke,{path:"/profile/:userId",element:o.jsx(pN,{})})]})]});Jp(document.getElementById("root")).render(o.jsx(P.StrictMode,{children:o.jsx(mg,{store:Z0,children:o.jsx(mN,{})})})); diff --git a/ef-ui/dist/index.html b/ef-ui/dist/index.html index ad61e5f..1a5e776 100644 --- a/ef-ui/dist/index.html +++ b/ef-ui/dist/index.html @@ -45,7 +45,7 @@ - + diff --git a/ef-ui/src/components/Addproperty.jsx b/ef-ui/src/components/Addproperty.jsx index 10bd8c3..39aef62 100644 --- a/ef-ui/src/components/Addproperty.jsx +++ b/ef-ui/src/components/Addproperty.jsx @@ -588,8 +588,8 @@ const Addproperty = () => { formData.totalSqft && formData.totalcashsurplus && formData.sellpricebtoc && - formData.closeDataAtoB && - formData.closeDataBtoC + formData.closeDateAtoB && + formData.closeDateBtoC ) { const totalCostsAtoB = calculateTotalCosts(); const totalCostsAtoBaftercredits = calculateTotalCostsWithCredits(); @@ -1574,12 +1574,13 @@ const Addproperty = () => { { const value = e.target.value; setFormData({ ...formData, - closeDataAtoB: value, + closeDateAtoB: value, }); }} placeholder="Close Date A to B" @@ -1606,12 +1607,13 @@ const Addproperty = () => { { const value = e.target.value; setFormData({ ...formData, - closeDataBtoC: value, + closeDateBtoC: value, }); }} placeholder="Close Date B to C"