1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7881,3920,1109,1978],{11978:function(e,t,o){o.r(t),o.d(t,{default:function(){return u}});var i=o(85893),r=(o(67294),o(45697)),n=o.n(r),a=o(19058),p=o(99226),s=o(90948);const l=(0,s.ZP)(a.ZP)((()=>({zIndex:"1301","& .MuiDrawer-paper":{background:"var(--mui-palette-white-A50)",boxShadow:"0px -10px 20px rgba(0, 0, 0, 0.1)",borderRadius:"24px 24px 0px 0px",padding:"10px 24px 32px 24px",maxHeight:"380px"}}))),d=(0,s.ZP)(p.Z)((()=>({borderRadius:"20px",background:"var(--swiper-theme-color)",width:"50px",height:"4px",margin:"0 auto",position:"fixed",marginTop:"10px",left:"calc(50% - 26px)"}))),x=(0,s.ZP)(p.Z)((()=>({marginTop:"51px"})));function c(e){let{active:t,drawerSlidePosition:o,drawerOnCloseHandler:r,children:n}=e;return(0,i.jsxs)(l,{anchor:o,open:t,onClose:r,children:[(0,i.jsx)(d,{}),(0,i.jsx)(x,{children:n})]})}c.propTypes={active:n().bool.isRequired,children:n().node.isRequired,drawerSlidePosition:n().string.isRequired,drawerOnCloseHandler:n().func.isRequired};var u=c},33892:function(e,t,o){var i=o(85893),r=(o(67294),o(45697)),n=o.n(r),a=o(18843);const p=e=>{let{children:t,...o}=e;return(0,i.jsx)(a.Z,{...o,children:t})};p.propTypes={children:n().node},p.defaultProps={children:(0,i.jsx)(i.Fragment,{})},t.Z=p},51109:function(e,t,o){o.r(t),o.d(t,{default:function(){return p}});var i=o(85893),r=(o(67294),o(45697)),n=o.n(r),a=o(67111);function p(e){let{open:t,onClose:o,children:r,...n}=e;return(0,i.jsx)(a.Z,{open:t,onClose:o,...n,children:r})}p.propTypes={children:n().node,open:n().bool,onClose:n().func},p.defaultProps={children:(0,i.jsx)(i.Fragment,{}),open:!1,onClose:()=>{}}},43527:function(e,t,o){o.d(t,{Z:function(){return a}});var i=o(85893),r=(o(67294),o(56162)),n=o(53640);function a(e){let{size:t,select:o,variant:a,label:p,message:s,value:l,onInputChange:d,placeholder:x,isLabel:c,removeBorder:u=!1,isMultiple:h,isAuto:m,fullWidth:g,focused:f,isError:b,errorMessage:y,isAgency:v,isAgencyHome:w,isMyProperties:j,color:Z,isVideo:C,isHome:k,customHeight:I,formControlStyles:T={},...S}=e;const M=e=>{d(e.target.value)};return h?(0,i.jsx)(n.Z,{fullWidth:g,children:(0,i.jsx)(r.aT,{value:l,select:o,size:t,error:b,variant:a,label:p,helperText:s,placeholder:x,onChange:M,inputProps:{autoComplete:"new-password"},...S})}):c||m?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(n.Z,{fullWidth:g,sx:T,children:c?(0,i.jsx)(r.aT,{value:l,select:o,size:t,error:b,...u?{removeborder:u}:{},variant:a,label:p,helperText:s,placeholder:x,ismyproperties:j,onChange:M,isvideo:C,inputProps:{autoComplete:"new-password"},...S}):(0,i.jsx)(r._y,{sx:v||k?{"& fieldset":{border:"none"},"& input":{paddingLeft:"0px",color:Z||(l?"#E85451":"#737678"),"&::placeholder":{opacity:1,color:"#737678"}}}:w?{"& input":{padding:"0px",color:l?"#E85451":"#737678","&::placeholder":{opacity:1}},"& .MuiOutlinedInput-root:hover":{"& > fieldset":{borderWidth:"1px"}}}:{"& fieldset":{border:"none"}},focus:!!f||void 0,placeholder:x,value:l,onChange:M,isAgency:v,isAgencyHome:w,customHeight:I,isHome:k,inputProps:{autoComplete:"off"},...S})}),y&&(0,i.jsx)(r.Or,{variant:"caption5",children:y})]}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(r.bc,{sx:{"& fieldset":{border:"none"}},placeholder:x,value:l,onChange:M,error:b,color:"secondary",inputProps:{autoComplete:"new-password"},...S}),y&&(0,i.jsx)(r.Or,{variant:"caption5",children:y})]})}a.defaultProps={fullWidth:!0,select:!1,size:"normal",label:"Hello World",variant:"standard",message:"",onInputChange:()=>{},value:"",isLabel:!1,placeholder:"",isAuto:!1,isMultiple:!1}},56162:function(e,t,o){o.d(t,{Or:function(){return l},_y:function(){return s},aT:function(){return d},bc:function(){return p}});var i=o(90948),r=o(49737),n=o(22715),a=o(57709);const p=(0,i.ZP)(a.Z)((e=>{let{theme:t}=e;return{fontWeight:400,fontSize:"11.64px",lineHeight:"19.8px","& .MuiInputBase-root":{height:"80px"}}})),s=(0,i.ZP)(n.Z)((e=>{let{theme:t,focus:o,isAgency:i,isAgencyHome:r,isMyProperties:n,isHome:a,customHeight:p}=e;return{"& .MuiInputBase-root":{height:p||(i||a?"30px":r?"48px":"80px"),width:n?"150px":"100%",backgroundColor:"#ffffff",borderRadius:r?"8px":"16px",fontWeight:"400",fontSize:a?"14px":i?"12.07px":r?"11.64px":"14px",lineHeight:r?"19.8px":"24px",borderBottomLeftRadius:o&&"0px",paddingLeft:a?"16px":i?"0px":r?"20px":"15px",paddingRight:i||a?"0px":r?"63px":"80px"},"& .Mui-focused":{borderBottomLeftRadius:!r&&"0px"},[t.breakpoints.down("sm")]:{"& .MuiInputBase-root":{height:p||"48px",borderRadius:"8px",borderBottomLeftRadius:!r&&o&&"0px"},"& .Mui-focused":{borderBottomLeftRadius:!r&&"0px"}}}})),l=(0,i.ZP)(r.Z)((()=>({color:"var(--mui-palette-error-color)"}))),d=(0,i.ZP)(n.Z)((e=>{let{theme:t,removeborder:o,ismyproperties:i,signUp:r,isvideo:n}=e;return o?{".MuiOutlinedInput-root":{"& > fieldset":{borderWidth:"0px",borderColor:"transparent"}},"& .MuiOutlinedInput-root.Mui-focused":{"& > fieldset":{borderColor:"transparent",borderWidth:"0px"}},"& .MuiOutlinedInput-root:hover":{"& > fieldset":{borderColor:"transparent",borderWidth:"0px"}}}:n?{"& .MuiInputBase-root":{height:"40px",width:"100%",backgroundColor:"#ffffff",fontWeight:"400",fontSize:"12.07px",lineHeight:"20px"},"& .MuiOutlinedInput-root.Mui-focused":{"& > fieldset":{borderColor:"var(--mui-palette-secondary-main)",borderWidth:"1px"}},"& .MuiOutlinedInput-root:hover":{"& > fieldset":{borderColor:"var(--mui-palette-info-main)",borderWidth:"1px"}}}:i?{">div":{borderRadius:r?"4px":"8px","@media (max-width: 600px)":{width:r?"100%":"150px"}},"& .MuiOutlinedInput-root.Mui-focused":{"& > fieldset":{borderColor:"var(--mui-palette-secondary-main)",borderWidth:"1px"}},"& .MuiOutlinedInput-root:hover":{"& > fieldset":{borderColor:"var(--mui-palette-info-main)",borderWidth:"1px"}}}:{".MuiInputLabel-root":{color:"var(--mui-palette-info-main)",fontWeight:"Normal",fontSize:"14px",zIndex:0},"& label.Mui-focused":{color:"var(--mui-palette-info-main)",fontWeight:"Normal",fontSize:"14px",zIndex:0},"& label.MuiOutlinedInput-root:hover":{color:"var(--mui-palette-info-main)",fontWeight:"Normal",fontSize:"14px",zIndex:0},"& .MuiOutlinedInput-root.Mui-focused":{"& > fieldset":{borderColor:"var(--mui-palette-secondary-main)",borderWidth:"1px"}},"& .MuiOutlinedInput-root:hover":{"& > fieldset":{borderColor:"var(--mui-palette-info-main)",borderWidth:"1px"}}}}));(0,i.ZP)(r.Z)((e=>{let{theme:t}=e;return{color:t.palette.grey.A200,fontWeight:"Normal",marginTop:"28px",fontSize:"14px",zIndex:0}}))},18859:function(e,t,o){o.d(t,{Z:function(){return s}});
1var i=o(85893),r=(o(67294),o(38120)),n=o(4323),a=o(49737);const p={amenityContainer:{display:"flex",gap:"5px",alignItems:"center",width:"max-content"},image:{width:"16.11px",height:"13.17px","@media (max-width: 600px)":{width:"15px",height:"15px"}},capatalize:{textTransform:"capitalize"},propertDetailBedBath:{width:"21px",height:"17.16px","@media (max-width: 600px)":{width:"15px",height:"15px"}}};function s(e){let{bed:t,bath:o,value:s=6,unit:l,propertyDetail:d}=e;return(0,i.jsxs)(r.Z,{sx:p.amenityContainer,children:[(0,i.jsx)(n.default,{source:t?"/common/bed.svg":o?"/common/bath.svg":"/common/area.svg",alt:"amenity",sx:d?p.propertDetailBedBath:p.image}),(0,i.jsxs)(a.Z,{color:"black",variant:d?"subtitle2New":"body2New",component:"div",sx:p.capatalize,children:[(t||o)&&10===s?"10+":s," ",l]})]})}},14550:function(e,t,o){o.d(t,{Z:function(){return a}});var i=o(85893),r=(o(67294),o(49737));const n={nameEllipse:{textOverflow:"ellipsis",overflow:"hidden",display:"-webkit-box !important",WebkitLineClamp:"1",WebkitBoxOrient:"vertical",whiteSpace:"normal",textTransform:"capitalize"}};function a(e){let{area:t,city:o}=e;return(0,i.jsxs)(r.Z,{color:"secondary",variant:"subtitle2New",component:"h5",sx:n.nameEllipse,children:[t,", ",o]})}},11041:function(e,t,o){o.d(t,{Z:function(){return l}});var i=o(85893),r=(o(67294),o(38120)),n=o(49737);const a={priceText:{display:"flex",alignItems:"baseline"},priceInnerText:{marginLeft:"5px"},priceTextLayout:{display:"flex",alignItems:"baseline"}};var p=o(87279),s=o(75615);function l(e){let{price:t}=e;return(0,i.jsxs)(r.Z,{sx:a.priceTextLayout,children:[(0,i.jsxs)(n.Z,{color:"secondary",variant:"subtitle1New",component:"div",sx:a.priceText,children:[p.wA," "]}),(0,i.jsx)(n.Z,{color:"secondary",variant:"h4New",component:"div",sx:a.priceInnerText,children:(0,s.convertPrice)(t,p.wA)})]})}},53654:function(e,t,o){o.d(t,{Z:function(){return a}});var i=o(85893),r=(o(67294),o(4323));const n={propsure:{position:"absolute",width:"20.07px",height:"22.36px",right:"10px",top:"9px",zIndex:2,filter:"drop-shadow(0px 0px 35.1274px rgba(0, 0, 0, 0.15))","@media (max-width: 600px)":{width:"22.85px",height:"25.46px",top:"10px",right:"11px",filter:"drop-shadow(0px 0px 40px rgba(0, 0, 0, 0.15))"}},galleryProsureIcon:{position:"absolute",width:"25.07px",height:"27.36px",left:"18px",top:"20px",zIndex:2,filter:"drop-shadow(0px 0px 35.1274px rgba(0, 0, 0, 0.15))","@media (max-width: 600px)":{width:"22.85px",height:"25.46px",top:"14px",right:"11px",filter:"drop-shadow(0px 0px 40px rgba(0, 0, 0, 0.15))"}}};function a(e){let{propTag:t,gallery:o,myProperty:a}=e;return t&&(0,i.jsx)(r.default,{source:"/common/propsureLogo.svg",alt:"propsure",sx:o||a?n.galleryProsureIcon:n.propsure})}},12822:function(e,t,o){o.d(t,{Z:function(){return s}});var i=o(85893),r=(o(67294),o(38120)),n=o(49737);const a={subtype:{textTransform:"capitalize",color:"var(--mui-palette-info-main)"},typeTextBox:{display:"flex",alignItems:"center",gap:"5px"},square:{background:"var(--mui-palette-primary-main)",borderRadius:"1.75637px",width:"8.78px",height:"8.78px","@media (max-width: 600px)":{borderRadius:"2px",width:"10px",height:"10px"}}};var p=o(75615);function s(e){let{subtype:t}=e;return(0,i.jsxs)(r.Z,{sx:a.typeTextBox,children:[(0,i.jsx)(r.Z,{sx:a.square}),(0,i.jsx)(n.Z,{variant:"body2New",component:"div",sx:a.subtype,children:(0,p.getSpacedCamelCase)(t)})]})}},13920:function(e,t,o){o.r(t),o.d(t,{default:function(){return d}});var i=o(85893);o(67294);const r={backButtonWrapper:{display:"flex",justifyContent:"flex-start",alignItems:"center",gap:"10px",paddingLeft:"10px",boxSizing:"border-box",width:"100%",left:"0px",background:"var(--mui-palette-modal-background)",borderBottom:"1px solid var(--mui-palette-unselected-button-border)"},backButtonImage:{width:"18px",height:"18px",marginRight:"10px",cursor:"pointer"},backButtonContent:{marginTop:"2px",width:"100%",height:"24px",fontWeight:600,fontSize:"16px",lineHeight:"24px",letterSpacing:"-0 0.025em",color:"var(--mui-palette-secondary-main)"}};var n=o(45697),a=o.n(n),p=o(38120),s=o(4323),l=o(49737);function d(e){let{title:t,handleBackButton:o,height:n}=e;return(0,i.jsxs)(p.Z,{style:{...r.backButtonWrapper,height:n},children:[(0,i.jsx)(s.default,{sx:r.backButtonImage,source:"/common/backArrow.svg",alt:"icons",onClick:()=>o()}),(0,i.jsx)(l.Z,{sx:r.backButtonContent,children:t})]})}d.propTypes={title:a().string,handleBackButton:a().func,height:a().string},d.defaultProps={height:"59px"}},44741:function(e,t,o){o.d(t,{Z:function(){return Y}});var i=o(85893),r=o(67294),n=o(38120),a=o(4323);const p={amenitiesLayout:{display:"flex",alignItems:"center",gap:"20px"},main:{display:"flex",padding:"12px",border:"1px solid #F2F2F2",borderRadius:"8px",position:"relative",gap:"8px"},flex:{display:"flex"}
1,image:{height:"150px",width:"150px",borderRadius:"4px",cursor:"pointer","@media (max-width: 600px)":{height:"130px",width:"120px"}},innerContainer:{display:"flex",flexDirection:"column",gap:"5px"},displayLink:{textDecoration:"none"},hideLink:{display:"none"},clickAble:{gap:"6px",display:"grid",cursor:"pointer"},cursorNone:{cursor:"default"}};var s=o(45697),l=o.n(s),d=o(87279),x=o(18859),c=o(11041),u=o(12822),h=o(14550),m=o(49737);const g={moreContainer:{position:"absolute",top:"10px",right:"10px"},moreButton:{display:"flex",gap:"8px","@media (max-width: 600px)":{border:"none",padding:0,minWidth:0,":hover":{border:"none"}}},moreIcon:{width:"24px",height:"24px","@media (max-width: 600px)":{transform:"rotate(90deg)"}},moreText:{"@media (max-width: 600px)":{display:"none"}},listContainer:{position:"relative"},list:{backgroundColor:"white",position:"absolute",top:0,right:0,zIndex:5,padding:0,filter:"drop-shadow(0px 2px 10px rgba(0, 0, 0, 0.1))",width:"173px"},icon:{width:"14px",height:"14px"},listButton:{padding:"16px",gap:"10px","@media (max-width: 600px)":{padding:"0px"}},noDecoration:{textDecoration:"none",color:"var(--mui-palette-secondary-main)"}};var f=o(96046),b=o(33892),y=o(98619),v=o(68061),w=o(20847),j=o(45993),Z=o(51109);const C={modalMain:{justifyContent:"center",alignItems:"center",display:"flex"},mainBox:{background:"white",width:"642px",position:"relative",boxShadow:"0px 0px 20px rgba(0, 0, 0, 0.1)",borderRadius:"16px",padding:"100px 85px 41px 85px","@media (max-width: 600px)":{width:"326px",borderRadius:"8px",padding:"48px 18px 26px 18px"}},crossIcon:{height:"24px",width:"24px",position:"absolute",right:"10px",top:"10px",cursor:"pointer"},innerBox:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",textAlign:"center",gap:"10px","@media (max-width: 600px)":{gap:"5px"}},image:{width:"212px",height:"138px","@media (max-width: 600px)":{width:"117.27px",height:"76.53px"}},title:{width:"400px",marginTop:"20px","@media (max-width: 600px)":{width:"300px",marginTop:"5px",fontSize:"1.3rem"}},modalContainer:{width:"100%"},button:{marginTop:"10px",border:"none",width:"156px",height:"43px",":hover":{boxShadow:"none"},"@media (max-width: 600px)":{width:"100%",height:"54px"}},reportModalLabel:{margin:"0px !important",gap:"14px"},reportModalLabelBold:{margin:"0px !important",gap:"14px"},RadioBtnNoneActive:{color:"#37474F !important",width:"16px",height:"16px",border:"2px solid red var(--mui-palette-info-main)"},RadioAndTextContainer:{marginTop:"20px",gap:"20px","@media (max-width: 600px)":{marginTop:"18px",gap:"15px"}}};var k=o(71278);function I(e){let{optionOnMore:t,open:o,radioBtnValue:r,handleChange:p,onConfirm:s,setOpen:l,setOtherText:d,otherText:x}=e;return(0,i.jsx)(Z.default,{sx:C.modalMain,open:o,children:(0,i.jsxs)(n.Z,{sx:C.mainBox,children:[(0,i.jsx)(a.default,{source:"/wanted/cross-circle.svg",alt:"cross",sx:C.crossIcon,onClick:()=>l(!1)}),(0,i.jsxs)(n.Z,{sx:C.innerBox,children:[(0,i.jsx)(a.default,{source:"/common/homeModal.svg",alt:"home",sx:C.image}),(0,i.jsx)(m.Z,{variant:"h3New",sx:C.title,children:"Please tell us why you want to remove the property?"}),(0,i.jsx)(n.Z,{sx:C.modalContainer,children:(0,i.jsx)(v.Z,{sx:C.RadioAndTextContainer,children:null===t||void 0===t?void 0:t.map(((e,t)=>(0,i.jsx)(w.Z,{sx:r===e?C.reportModalLabelBold:C.reportModalLabel,value:e,checked:r===e,onChange:e=>{p(e.target.value)},control:(0,i.jsx)(j.Z,{sx:C.RadioBtnNoneActive}),label:(0,i.jsx)(m.Z,{variant:r===e?"subtitle1New":"subtitle2New",children:e})},t)))})}),"Others"==r?(0,i.jsx)(k.vc,{variant:"outlined",isLabel:!0,label:"Reason (Optional)",color:"secondary",value:x,onInputChange:e=>d(e)}):null,(0,i.jsx)(f.Z,{sx:C.button,color:"secondary",onClick:()=>s(),disabled:!r,children:"Remove"})]})]})})}var T=o(89967);const S={modalMain:{justifyContent:"center",alignItems:"center",display:"flex"},mainBox:{background:"white",width:"642px",position:"relative",boxShadow:"0px 0px 20px rgba(0, 0, 0, 0.1)",borderRadius:"16px",padding:"50px 70px 75px 70px",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",gap:"15p
1x","@media (max-width: 600px)":{width:"326px",padding:"25px 16px",borderRadius:"8px"}},image:{width:"185px",height:"225px","@media (max-width: 600px)":{width:"102.86px",height:"125.02px"}},button:{marginTop:"10px",border:"none",width:"156px",height:"43px",":hover":{boxShadow:"none"},"@media (max-width: 600px)":{width:"100%",height:"54px"}},title:{textAlign:"center","@media (max-width: 600px)":{fontSize:"1.3rem",width:"230px"}}};function M(e){let{open:t,setOpen:o,priceValue:r,setPriceValue:p}=e;return(0,i.jsx)(Z.default,{sx:S.modalMain,open:t,children:(0,i.jsxs)(n.Z,{sx:S.mainBox,children:[(0,i.jsx)(a.default,{source:"/common/successHomeModal.svg",alt:"home",sx:S.image}),(0,i.jsx)(m.Z,{variant:"h3New",component:"h3",sx:S.title,children:"Congratulation on selling your property"}),(0,i.jsx)(m.Z,{variant:"subtitle2New",children:"Please let us know the sale price (Optional)"}),(0,i.jsx)(k.vc,{variant:"outlined",isLabel:!0,label:"PKR",color:"secondary",onInputChange:p,value:r,type:"number"}),(0,i.jsx)(f.Z,{sx:S.button,color:"secondary",onClick:()=>o(),children:"Done"})]})})}var B=o(41664),W=o.n(B),R=o(75615),N=o(31380),O=o(11978),z=o(2734),L=o(98396),P=o(11163);const A=["Sold","Not selling property anymore","Not satisfied with agent","Not satisfied with response","Others"];function D(e){let{city:t,area:o,areaSize:p,sizeUnit:s,subtype:l,purpose:d,id:x,status:c,expiryDate:u}=e;const[h,v]=(0,r.useState)(!1),[w,j]=(0,r.useState)(!1),[Z,C]=(0,r.useState)(""),[k,S]=(0,r.useState)(!1),[B,D]=(0,r.useState)(!1),[H,F]=(0,r.useState)(""),[q,E]=(0,r.useState)(),U=(0,z.Z)(),V=(0,L.Z)(U.breakpoints.down("sm")),_=new Date,K=(0,P.useRouter)(),G=async()=>{await(0,N.jX)(x,Z,q,H)&&(F(""),E(0))},X=()=>(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(W(),{href:"/property/".concat((0,R.getPropertyURL)(t,o,p,s,l,d,x)),prefetch:!1,style:g.noDecoration,children:(0,i.jsxs)(y.Z,{sx:g.listButton,children:[(0,i.jsx)(a.default,{source:"/common/eyeOutlined.svg",alt:"icon",sx:g.icon}),(0,i.jsx)(m.Z,{variant:"body2New",color:"secondary",children:"View"})]})}),"removed"!==c&&_.toISOString()<u&&null!==u?(0,i.jsx)(W(),{href:"/edit-property?id=".concat(x),prefetch:!1,style:g.noDecoration,children:(0,i.jsxs)(y.Z,{sx:g.listButton,children:[(0,i.jsx)(a.default,{source:"/common/edit.svg",alt:"icon",sx:g.icon}),(0,i.jsx)(m.Z,{variant:"body2New",color:"secondary",children:"Edit"})]})}):null,(0,i.jsx)(W(),{href:"/add-property?id=".concat(x,"&type=duplicate"),prefetch:!1,style:g.noDecoration,children:(0,i.jsxs)(y.Z,{sx:g.listButton,children:[(0,i.jsx)(a.default,{source:"/common/duplicate.svg",alt:"icon",sx:g.icon}),(0,i.jsx)(m.Z,{variant:"body2New",color:"secondary",children:"Duplicate Property"})]})}),"removed"!==c&&_.toISOString()<u&&null!==u?(0,i.jsxs)(y.Z,{sx:g.listButton,onClick:()=>j(!0),children:[(0,i.jsx)(a.default,{source:"/common/bin.svg",alt:"icon",sx:g.icon}),(0,i.jsx)(m.Z,{variant:"body2New",color:"secondary",children:"Remove"})]}):null]});return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(n.Z,{sx:g.moreContainer,children:[(0,i.jsxs)(f.Z,{variant:"outlined",color:"secondary",sx:g.moreButton,onMouseEnter:()=>v(!0),onMouseLeave:()=>v(!1),children:[(0,i.jsx)(m.Z,{variant:"body1New",component:"h6",sx:g.moreText,children:"MORE"}),(0,i.jsx)(a.default,{source:"/common/menuDots.svg",alt:"more-dots",sx:g.moreIcon})]}),h&&!V?(0,i.jsx)("div",{style:g.listContainer,onMouseEnter:()=>v(!0),onMouseLeave:()=>v(!1),children:(0,i.jsx)(b.Z,{sx:g.list,children:(0,i.jsx)(X,{})})}):null]}),(0,i.jsx)(O.default,{active:h&&V,drawerSlidePosition:"bottom",drawerOnCloseHandler:()=>v(!1),children:(0,i.jsxs)(n.Z,{sx:{display:"flex",flexDirection:"column",gap:"32px"},children:[(0,i.jsx)(m.Z,{variant:"h6New",children:"Options"}),(0,i.jsx)(X,{})]})}),(0,i.jsx)(T.Z,{open:B,onButtonClick:()=>{D(!1),K.push("/my-properties?status=removed")},success:!0,buttonText:"Done",message:"Property Removed",details:"Thank you for your valuable feedback"}),(0,i.jsx)(M,{open:k,setOpen:()=>{G(),S(!1),K.push("/my-properties?status=removed")},setPriceValue:e=>{e<99999999999&&E(e)},priceValue:q}),(0,i.jsx)(I,{optionOnMore:A,open:w,setOpen:j,radioBtnValue:Z,handleChange:e=>{C(e)},setOtherText:e=>{F(e)},otherText:H,onConfirm:()=>{j(!1),"Sold"==Z?S(!0):(G(),D(!0))}})]})}const H={greyText:{color:"var(--mui-palette-info-main)",width:"max-content",flex:"1"},renewText:{color:"var(--mui-palette-secondary)"},reNewContainer:{display:"flex",alignItems:"center",gap:"10px","@media (max-width: 600px)":{gap:"0px",textTransform:"uppercase"}},reNewButton:{display:"flex",gap:"8px",border:"none",":hover":{border:"none",backgroundColor:"initial"}},icon:{width:"14px",height:"14px",cursor:"pointer"}};var F=o(22054),q=o(59288);const E={confirmationModalContainer:{},modalContentWrapper:{top:"50%",left:"50%",width:"312px",height:"241px",position:"absolute",padding:"34px 24px 36px 34px",borderRadius:"10px !important",transform:"translate(-50%,-50%)",background:"var(--mui-palette-white-A50)",boxShadow:"0px 0px 20px rgba(0, 0, 0, 0.1)"}
1,modalContentWrapperMobile:{top:"50%",left:"50%",width:"248px",height:"231px",position:"absolute",padding:"34px 24px 36px 34px",borderRadius:"10px !important",transform:"translate(-50%,-50%)",background:"var(--mui-palette-white-A50)",boxShadow:"0px 0px 20px rgba(0, 0, 0, 0.1)"},iconWarning:{width:"64px",height:"64px"},iconWrapper:{display:"flex",alignItems:"center",justifyContent:"center"},btnWrapper:{display:"flex",justifyContent:"flex-end"},finishButton:{width:"109px"},textWrapper:{margin:"16px 0px 28px 0px"},noText:{marginRight:"35px"}},U=e=>{let{active:t,content:o,closeText:r,onCloseHandler:p,actionFinishText:s,finishBtnDisabled:l,onFinishActionHandler:d}=e;var x;const c=(0,z.Z)(),u=(0,L.Z)(null===c||void 0===c||null===(x=c.breakpoints)||void 0===x?void 0:x.down("sm"));return(0,i.jsx)(Z.default,{open:t,children:(0,i.jsxs)(n.Z,{sx:u?E.modalContentWrapperMobile:E.modalContentWrapper,children:[(0,i.jsx)(n.Z,{sx:E.iconWrapper,children:(0,i.jsx)(a.default,{source:"/common/warningSymbol.svg",sx:E.iconWarning})}),(0,i.jsx)(n.Z,{sx:E.textWrapper,children:(0,i.jsx)(m.Z,{variant:"body2New",children:o})}),(0,i.jsxs)(n.Z,{sx:E.btnWrapper,children:[(0,i.jsx)(f.Z,{variant:"text",sx:E.noText,color:"secondary",onClick:p,children:r}),(0,i.jsx)(f.Z,{sx:E.finishButton,loading:l,disabled:l,onClick:d,children:s})]})]})})};U.propTypes={closeText:l().string,finishBtnDisabled:l().bool,active:l().bool.isRequired,content:l().string.isRequired,onCloseHandler:l().func.isRequired,actionFinishText:l().string.isRequired,onFinishActionHandler:l().func.isRequired},U.defaultProps={closeText:"No"};var V=U;function _(e){let{addedTime:t,status:o,propertyId:p,getDataCount:s,getDataList:l}=e;const[x,c]=(0,r.useState)(!1),[u,h]=(0,r.useState)(""),[g,b]=(0,r.useState)(!1),[y,v]=(0,r.useState)(!1);return(0,i.jsxs)(n.Z,{sx:H.reNewContainer,children:[(0,i.jsx)(m.Z,{variant:"body1New",component:"h6",sx:H.greyText,children:x?(0,i.jsx)(F.Z,{variant:"rounded",height:"10px",width:"119px"}):"".concat("draft"===o?"Edited":"pending"===o||"inprogress"===o?"Submitted":"removed"===o?"Removed":"rejected"===o?"Rejected":"Expires in"," ").concat("published"===o?u||t:"".concat(t," ago"))}),"published"===o&&(0,i.jsxs)(f.Z,{variant:"outlined",color:"secondary",sx:H.reNewButton,onClick:()=>{(async()=>{c(!0);const e=await(0,N.$c)(p);var t;(null===e||void 0===e?void 0:e.success)&&(h(null===e||void 0===e||null===(t=e.data)||void 0===t?void 0:t.expiredIn),c(!1))})()},children:[(0,i.jsx)(a.default,{source:"/common/reNewArrow.svg",alt:"renew",sx:H.icon}),(0,i.jsx)(m.Z,{variant:"body1New",component:"h6",sx:H.renewText,children:"RENEW"})]}),"draft"===o&&(0,i.jsx)(a.default,{source:"/my-property-images/deleteProperty.svg",alt:"renew",sx:{...H.icon},onClick:e=>{(async()=>{v(!0)})()}}),(0,i.jsx)(V,{active:y,actionFinishText:"Delete",finishBtnDisabled:g,onCloseHandler:()=>{v(!1)},onFinishActionHandler:async()=>{b(!0);try{const e=await(0,N.E2)(p);(null===e||void 0===e?void 0:e.data.sucess)&&(l("draft"),s()),b(!1),v(!1)}catch(e){(0,q.T)(e,d.Nm.ERROR,"Error in function renew/onFinishDraftActionHandler")}},content:"Are you sure you want to delete this property?"})]})}const K={InquiryContainer:{position:"absolute",width:"33.77px",height:"22px",gap:"4px",display:"flex",alignItems:"center",background:"#202020",opacity:"0.5",borderRadius:"4px",paddingLeft:"6px",bottom:"20px",left:"60px","@media (max-width: 600px)":{gap:"2px",bottom:"20px",left:"45px",width:"30.39px",height:"18px"}},inquiryIcon:{width:"11.14px",height:"8.33px"}};var G=e=>{let{noOfinquiries:t}=e;return(0,i.jsxs)(n.Z,{sx:K.InquiryContainer,children:[(0,i.jsx)(a.default,{source:"/my-property-images/mailIcon.svg",sx:K.inquiryIcon,alt:"views"}),(0,i.jsx)(m.Z,{variant:"captionNew",color:"white",children:t})]})};const X={container:{position:"absolute",width:"35px",height:"22px",gap:"5.8px",display:"flex",alignItems:"center",background:"#202020",opacity:"0.5",borderRadius:"4px",paddingLeft:"6px",bottom:"20px",left:"110px","@media (max-width: 600px)":{width:"38.02px",height:"18px",bottom:"20px",left:"85px"}},viewsIcon:{width:"10px",height:"7.37px"}};var $=e=>{let{views:t}=e;return(0,i.jsxs)(n.Z,{sx:X.container,children:[(0,i.jsx)(a.default,{source:"/my-property-images/viewesIcon.svg",sx:X.viewsIcon,alt:"views"}),(0,i.jsx)(m.Z,{variant:"captionNew",color:"white",children:t})]})},J=o(53654);const Q="/common/notFound.svg";
1function Y(e){let{bed:t,id:o,area:r,city:s,bath:l,type:m,image:g,purpose:f,price:b,subtype:y,propTag:v,areaSize:w,sizeUnit:j,addedTime:Z,expiryDate:C,propertyTracking:k,status:I,views:T,noOfinquiries:S,getDataCount:M,getDataList:B}=e;const W=(0,P.useRouter)();return(0,i.jsxs)(n.Z,{sx:{...p.main,width:k?"100%":"392px"},children:[(0,i.jsx)(a.default,{source:g&&(0,R.generateImageUrl)(g)||Q,alt:"property",objectFit:"cover",sx:k?{...p.image,...p.cursorNone}:p.image,onClick:()=>k?null:W.push("draft"===I?"edit-property?id=".concat(o):"my-properties/".concat(o))}),(0,i.jsx)(J.Z,{propTag:v,myProperty:!0}),(0,i.jsxs)(n.Z,{sx:p.innerContainer,children:[(0,i.jsxs)(n.Z,{sx:k?{...p.clickAble,...p.cursorNone}:p.clickAble,onClick:()=>k?null:W.push("draft"===I?"edit-property?id=".concat(o):"my-properties/".concat(o)),children:[(0,i.jsx)(c.Z,{price:b}),(0,i.jsx)(u.Z,{subtype:y}),(0,i.jsxs)(n.Z,{sx:p.amenitiesLayout,children:[m!==d.e_.PLOT&&(0,i.jsx)(x.Z,{bed:!0,value:-1===t?"Studio":t}),m!==d.e_.PLOT&&-1!==l&&(0,i.jsx)(x.Z,{bath:!0,value:l}),(0,i.jsx)(x.Z,{value:w,unit:j})]}),(0,i.jsx)(h.Z,{area:r,city:s})]}),(0,i.jsx)(_,{addedTime:Z,expiryDate:C,status:I,propertyId:o,getDataCount:M,getDataList:B})]}),k||"draft"===I?null:(0,i.jsx)(G,{noOfinquiries:S}),k||"draft"===I?null:(0,i.jsx)($,{views:T}),k?(0,i.jsx)(D,{city:s,area:r,areaSize:w,sizeUnit:j,subtype:y,purpose:f,id:o,status:I,expiryDate:C}):null]})}Y.propTypes={id:l().number,image:l().string,price:l().string,area:l().string,city:l().string,bed:l().number,bath:l().number,areaSize:l().number,type:l().string,subtype:l().string,addedTime:l().string,sizeUnit:l().string},Y.defaultProps={id:1,image:Q,price:"2",area:"G-10",city:"Islamabad",bed:6,bath:8,areaSize:2,type:"residential",subtype:"Upper Portion",addedTime:"2022-04-30T00:00:00.000Z",sizeUnit:"Kanal"}},58617:function(e,t,o){o.d(t,{Z:function(){return p}});var i=o(85893),r=o(17691),n=o(38120);const a={propertySkeletonCardBoundary:{width:"392px",height:"175.83px",border:"1px solid var(--mui-palette-grey-A300)",borderRadius:"8px",padding:"15px 14px"},boxSkeletonWrapper:{"&.MuiSkeleton-rectangular":{background:"linear-gradient(0deg, var(--mui-palette-white-A60), var(--mui-palette-white-A60)), var(--mui-palette-skeleton-background);",borderRadius:"4.11765px"}},rightSkeleton:{"&.MuiSkeleton-text":{background:"var(--mui-palette-skeleton-background)",borderRadius:"96px"},"&.MuiSkeleton-root":{borderRadius:"96px"}},propertySkeletonFlexWrapper:{display:"flex",gap:"18px"},boxRightWrapper:{display:"flex",flexDirection:"column",gap:"16px",position:"relative",flex:1},circularSkeletonWrapper:{marginTop:"44px ",position:"absolute",bottom:"0px",right:"0px"}};var p=()=>(0,i.jsx)(n.Z,{sx:a.propertySkeletonCardBoundary,children:(0,i.jsxs)(n.Z,{sx:a.propertySkeletonFlexWrapper,children:[(0,i.jsx)(r.Z,{variant:"rectangular",sx:a.boxSkeletonWrapper,width:144,height:144}),(0,i.jsxs)(n.Z,{sx:a.boxRightWrapper,children:[(0,i.jsx)(n.Z,{children:(0,i.jsx)(r.Z,{sx:a.rightSkeleton,width:100,height:8})}),(0,i.jsx)(n.Z,{children:(0,i.jsx)(r.Z,{sx:a.rightSkeleton,width:69,height:8})}),(0,i.jsx)(n.Z,{children:(0,i.jsx)(r.Z,{sx:a.rightSkeleton,width:165,height:8})}),(0,i.jsx)(n.Z,{children:(0,i.jsx)(r.Z,{sx:a.rightSkeleton,width:121,height:8})}),(0,i.jsx)(n.Z,{sx:a.circularSkeletonWrapper,children:(0,i.jsx)(r.Z,{sx:a.rightSkeleton,width:13,height:12,variant:"circular"})})]})]})})},80486:function(e,t,o){o.d(t,{Z:function(){return l}});var i=o(85893),r=o(49737),n=o(96046),a=o(4323),p=o(38120);const s={messageContainer:{display:"flex",flexFlow:"column",justifyContent:"space-around","@media (max-width: 600px)":{width:"calc(100% - 32px)",marginTop:"10vh",marginLeft:"16px",marginRight:"16px"}},checkOrCrossIconContainer:{display:"flex",justifyContent:"center",alignItems:"center"},checkOrCrossIcon:{height:"70px",width:"70px"},messageContent:{color:"var(--mui-palette-success-failure-message-black)",display:"flex",justifyContent:"center",alignItems:"center"},messageDetails:{color:"var(--mui-palette-info-main)",display:"flex",justifyContent:"center",alignItems:"center"},buttonWrapper:{width:"100%",display:"flex",justifyContent:"center",alignItems:"center"},button:{marginTop:"20px",width:"156px",height:"44px",display:"flex",justifyContent:"center",alignItems:"center","@media (max-width: 600px)":{marginTop:"40vh",alignSelf:"center",width:"100%"}}};o(67294);var l=e=>{let{success:t,message:o,details:l,buttonText:d,onButtonClick:x}=e;return(0,i.jsxs)(p.Z,{sx:s.messageContainer,children:[(0,i.jsx)(p.Z,{style:s.checkOrCrossIconContainer,children:t?(0,i.jsx)(a.default,{sx:s.checkOrCrossIcon,source:"/common/green-check.svg",alt:"check icon"}):(0,i.jsx)(a.default,{sx:s.checkOrCrossIcon,source:"/common/red-cross.svg",alt:"check icon"})}),(0,i.jsx)(r.Z,{style:s.messageContent,component:"h1",variant:"h3New",children:o}),l&&(0,i.jsx)(r.Z,{component:"h5",variant:"subtitle2New",style:s.messageDetails,children:l}),(0,i.jsx)(p.Z,{style:s.buttonWrapper,children:(0,i.jsx)(n.Z,{sx:s.button,color:"secondary",onClick:x,children:d||"OK"})})]})}},89967:function(e,t,o){o.d(t,{Z:function(){return s}});var i=o(85893);o(67294);const r={modalWrapper:{minWidth:"438px",backgroundColor:"var(--mui-palette-white-A50)",to
1p:"50%",left:"50%",transform:"translate(-50%, -50%)",position:"absolute",borderRadius:"16px",boxShadow:"0px 10px 20px rgba(0, 0, 0, 0.1)",borderRadius:"16px"},closeButton:{position:"absolute",top:"16px",right:"16px",height:"24px",width:"24px","&:hover":{cursor:"pointer"}},modalBodyWrapper:{padding:"79px 51px 63px 51px"},modalTitleWrapper:{color:"var(--mui-palette-tertiary-black)"},modalSubTitleWrapper:{color:"var(--mui-palette-gray-60)"},footerWrapper:{marginTop:"32px",textAlign:"center",marginBottom:"29px"},footerTextModal:{textAlign:"center",color:"var(--mui-palette-secondary-main)",cursor:"pointer",fontWeight:"400",fontSize:"11.64px",lineHeight:"19.8px",textDecorationLine:"underline"}};var n=o(51109),a=o(38120),p=o(80486);var s=e=>{let{open:t,onButtonClick:o,success:s,buttonText:l,message:d,details:x}=e;return(0,i.jsx)(n.default,{open:t,children:(0,i.jsx)(a.Z,{sx:r.modalWrapper,children:(0,i.jsx)(a.Z,{sx:r.modalBodyWrapper,children:(0,i.jsx)(p.Z,{success:s,buttonText:l,message:d,details:x,onButtonClick:o})})})})}},71278:function(e,t,o){o.d(t,{W2:function(){return p},tH:function(){return a},vc:function(){return n}});var i=o(90948),r=o(43527);const n=(0,i.ZP)(r.Z)((e=>{let{theme:t,areaField:o}=e;return{".MuiInputBase-root, .MuiInputLabel-root":{fontSize:t.typography.body2New.fontSize,fontWeight:t.typography.body2New.fontWeight,zIndex:0,color:"var(--mui-palette-text-primary)"},".MuiFormHelperText-root":{marginLeft:"1px",color:o?"":"var(--mui-palette-text-primary)"},".MuiInputLabel-root.Mui-disabled":{color:"var(--mui-palette-text-primary)"},".MuiFormHelperText-root.Mui-disabled":{color:"var(--mui-palette-text-primary)"},"& input:hover":{cursor:"pointer"}}})),a=(0,i.ZP)(r.Z)((e=>{let{theme:t,areaField:o}=e;return{".MuiInputBase-root, .MuiInputLabel-root":{fontSize:t.typography.body2New.fontSize,fontWeight:t.typography.body2New.fontWeight,zIndex:0},".MuiFormHelperText-root":{marginLeft:"1px",color:o?"":"var(--mui-palette-text-primary)"},".MuiInputLabel-root.Mui-disabled":{color:"var(--mui-palette-text-primary)"},".MuiFormHelperText-root.Mui-disabled":{color:"var(--mui-palette-text-primary)"},"& input:hover":{},".MuiOutlinedInput-root .MuiAutocomplete-input":{},".MuiInputLabel-root":{paddingTop:"2px"}}})),p={arrow:{width:"29.06px",height:"26.88px",position:"absolute",left:"90%",bottom:"24%",cursor:"pointer","@media (max-width: 600px)":{left:"89%"}},propertyType:{width:"100%",position:"absolute",zIndex:1001,top:"100%",marginTop:"10px",background:"var(--mui-palette-white-A50)",boxShadow:"0px 0px 20px rgba(0, 0, 0, 0.1)",borderRadius:"8px",padding:"0px 0px 24px 14px "},container:{position:"relative"}}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.