1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4707],{11639:function(e,t,n){n.d(t,{Z:function(){return r}});var l=n(57437);n(2265);var a=n(33145),i=n(85577);function r(e){let{text:t,icon:n}=e;return(0,l.jsxs)("div",{className:"tw-flex tw-min-h-[100px] tw-w-full tw-items-center tw-justify-center tw-gap-1.5 tw-p-4",children:[n?(0,l.jsx)(a.default,{src:n,alt:"location",width:16,height:16}):null,(0,l.jsx)("span",{className:"tw-text-body-2 ".concat(i.PC),children:t})]})}},85577:function(e,t,n){n.d(t,{Lf:function(){return i},PC:function(){return l},WQ:function(){return r},Y9:function(){return u},YZ:function(){return a},aw:function(){return o}});let l="tw-text-numeral-300",a="tw-h-[20vh]",i={borderBottom:"1px solid #E5E7EB"},r="tw-relative tw-flex tw-cursor-pointer tw-items-center tw-gap-1.5 tw-border-0 tw-bg-transparent tw-mr-5 tw-px-0 tw-py-3 tw-text-xs tw-transition-colors",o={color:"#111827",fontWeight:600},u={color:"#9ca3af",fontWeight:400}},36370:function(e,t,n){n.d(t,{T:function(){return g},O7:function(){return m},WJ:function(){return d},EK:function(){return p},J7:function(){return f},Yz:function(){return s},My:function(){return v},_O:function(){return c}});var l=n(7234),a=n(83302),i=n(21340),r=n(71632),o=n(8946),u=n(11937);let d=function(e,t){arguments.length>2&&void 0!==arguments[2]&&arguments[2];let n=arguments.length>3?arguments[3]:void 0,u=arguments.length>4?arguments[4]:void 0,d=arguments.length>5?arguments[5]:void 0,c=arguments.length>6?arguments[6]:void 0,s=arguments.length>7?arguments[7]:void 0,p=u.pagination.pageSize,m=u.pagination.current,g=(0,o.omitBy)((0,o.mapValues)((0,o.get)(e,"sort",{created_at:"desc"}),e=>"ascend"===e||"asc"===e?"asc":"descend"===e||"desc"===e?"desc":null),o.isNull),v=JSON.parse((0,o.get)(t,"filter","{}")),f={or:[{field:"agent_id",op:"in",value:Array.isArray(n)?n:[n]}]},h=null;Array.isArray(d)&&d.length>0&&(h=d.some(e=>(null==e?void 0:e.toLowerCase())==="unknown")?{field:"status",op:"=",value:null}:{field:"status",op:"in",value:d}),(null==v?void 0:v.and)?v.and.push(f):v.and=[f],d.length>0&&h&&v.and.push(h),(null==c?void 0:c.length)>0&&v.and.push({or:[{field:"sale_listing_id",value:c},{field:"rent_listing_id",value:c}]}),(null==s?void 0:s.length)>
10&&v.and.push({field:"prop_id",value:s});let y=new i.zk().addInclude(i.zk.withRelation("customer").select(["id","name","email","phone"])).addInclude(i.zk.withRelation("seller_lead").select(["max_budget","id","type","status","state","enquiry_source"]).addInclude(i.zk.withRelation("listing").select(["id","sub_type","visibility_status"]))).addInclude(i.zk.withRelation("landlord_lead").select(["max_budget","id","type","status","state","enquiry_source"]).addInclude(i.zk.withRelation("listing").select(["id","sub_type","visibility_status"]))).addInclude(i.zk.withRelation("prop").addInclude(i.zk.withRelation("images").limit(1).sort({order:"asc"}).select(["url","resource_type","resource_id","id"])).addInclude(i.zk.withRelation("tags").select(["name"])));y.page=m,y.limit=p,(0,o.isEmpty)(g)||y.sort(g),(0,o.isEmpty)(v)||y.filter(v);let w=y.toParams(),{isLoading:b,isFetching:P,isPlaceholderData:_,data:E,error:R,refetch:S,isRefetching:k}=(0,r.a)({queryKey:[l.bV.MYPROPERTIES,w,d,c,s],enabled:!!n,queryFn:async()=>{let{data:e}=await (0,a.kE)("".concat(l.bV.MYPROPERTIES),w);return{data:e.data,meta:e.meta}},staleTime:12e4,gcTime:12e4,placeholderData:e=>e});return{myPropertiesLoading:b||P&&_,myPropertiesData:null==E?void 0:E.data,myPropertiesError:R,refetchMyProperties:S,isRefetchingMyProperties:k,myPropertiesMetaData:null==E?void 0:E.meta}},c=(e,t)=>{var n,i,o,u,d;let{status:c,dateRange:s}=null!=t?t:{},p={filter:JSON.stringify({and:[{field:"agent_id",op:"in",value:[e]},...c?[{field:"status",value:c}]:[],...s?[{field:"created_at",op:">=",value:s.startDate},{field:"created_at",op:"<=",value:s.endDate}]:[]]}),include:JSON.stringify([{name:"customer",select:["id","name","email","phone"]},{name:"seller_lead",select:["id","type","status","state"]},{name:"landlord_lead",select:["id","type","status","state"]}]),page:1,limit:100},{isLoading:m,data:g,error:v}=(0,r.a)({queryKey:[l.bV.MYPROPERTIES,"owner-leads-drilldown",e,t],enabled:!!e,queryFn:async()=>{let{data:e}=await (0,a.kE)("".concat(l.bV.MYPROPERTIES),p);return{data:e.data,meta:e.meta}}});return{ownerLeadsCoreDrilldownLoading:m,ownerLeadsCoreDrilldownData:null!==(o=null==g?void 0:g.data)&&void 0!==o?o:[],ownerLeadsCoreDrilldownTotal:Math.min(null!==(d=null==g?void 0:null===(n=g.meta)||void 0===n?void 0:n.total)&&void 0!==d?d:null!==(u=null==g?void 0:null===(i=g.data)||void 0===i?void 0:i.length)&&void 0!==u?u:0,100),ownerLeadsCoreDrilldownError:v}},s=function(e,t){let n,u=!(arguments.length>2)||void 0===arguments[2]||arguments[2],d=arguments.length>3?arguments[3]:void 0,c=arguments.length>4?arguments[4]:void 0,s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:1,p=arguments.length>6&&void 0!==arguments[6]?arguments[6]:20,m=arguments.length>7?arguments[7]:void 0,g=arguments.length>8?arguments[8]:void 0,v=(0,o.omitBy)((0,o.mapValues)((0,o.get)(e,"sort",{created_at:"desc"}),e=>"ascend"===e||"asc"===e?"asc":"descend"===e||"desc"===e?"desc":null),o.isNull),f=JSON.parse((0,o.get)(t,"filter","{}")),h={or:[{field:"agent_id",op:"in",value:Array.isArray(d)?d:[d]}]};n="Unknown"===c?{or:[{field:"status",op:"=",value:null}]}:{field:"status",op:"=",value:c},(null==f?void 0:f.and)?f.and.push(h):f.and=[h],c&&f.and.push(n),(null==m?void 0:m.length)>0&&f.and.push({or:[{field:"sale_listing_id",value:m},{field:"rent_listing_id",value:m}]}),(null==g?void 0:g.length)>
10&&f.and.push({field:"prop_id",value:g});let y=new i.zk().addInclude(i.zk.withRelation("agent")).addInclude(i.zk.withRelation("customer").select(["id","name","email","phone"])).addInclude(i.zk.withRelation("seller_lead").addInclude(i.zk.withRelation("listing").select(["id","sub_type","visibility_status"]))).addInclude(i.zk.withRelation("landlord_lead").addInclude(i.zk.withRelation("listing").select(["id","sub_type","visibility_status"]))).addInclude(i.zk.withRelation("prop").addInclude(i.zk.withRelation("tags")));y.page=s,y.limit=p,y.sort((0,o.isEmpty)(v)?{created_at:"desc"}:v),(0,o.isEmpty)(f)||y.filter(f);let w=y.toParams(),{isLoading:b,data:P,error:_,refetch:E,isRefetching:R}=(0,r.a)({queryKey:[l.bV.MYPROPERTIES,c,w,s,m,g],enabled:!!d&&u,refetchOnWindowFocus:!1,queryFn:async()=>{let{data:e}=await (0,a.kE)("".concat(l.bV.MYPROPERTIES),w);return{data:e.data,meta:e.meta}},placeholderData:e=>e});return{myPropertiesKanbanLoading:b,myPropertiesKanbanData:null==P?void 0:P.data,myPropertiesKanbanError:_,refetchMyPropertiesKanban:E,isRefetchingMyPropertiesKanban:R,myPropertiesKanbanMetaData:null==P?void 0:P.meta}},p=(e,t,n,u,d)=>{let c=JSON.parse((0,o.get)(n,"filter","{}")),s={or:[{field:"agent_id",op:"in",value:Array.isArray(e)?e:[e]}]};(null==c?void 0:c.and)?c.and.push(s):c.and=[s],(null==u?void 0:u.length)>0&&c.and.push({or:[{field:"sale_listing_id",value:u},{field:"rent_listing_id",value:u}]}),(null==d?void 0:d.length)>0&&c.and.push({field:"prop_id",value:d});let p=new i.zk;(0,o.isEmpty)(c)||p.filter(c);let m=p.toParams(),{isLoading:g,data:v,error:f,refetch:h,isRefetching:y}=(0,r.a)({queryKey:[l.bV.MYPROPERTIES,m,u,d],queryFn:async()=>{let{data:e}=await (0,a.kE)("".concat(l.bV.MYPROPERTIES,'/stats?aggregate_field=id&aggregate_type=count&group_by=["status"]'),m);return{data:e.data,meta:e.meta}},refetchOnWindowFocus:!1,staleTime:12e4,gcTime:12e4});return{myPropertiesCountDataLoading:g,myPropertiesCountData:null==v?void 0:v.data,myPropertiesCountMetaData:null==v?void 0:v.meta,myPropertiesCountDataError:f,myPropertiesCountDataRefetch:h,myPropertiesCountRefetching:y}},m=(e,t,n)=>{let u=JSON.parse((0,o.get)(t,"filter","{}")),d={or:[{field:"agent_id",op:"in",value:Array.isArray(e)?e:[e]}]};(null==u?void 0:u.and)?u.and.push(d):u.and=[d];let c=new i.zk;(0,o.isEmpty)(u)||c.filter(u);let s=c.toParams(),{isLoading:p,data:m,error:g,refetch:v,isRefetching:f}=(0,r.a)({queryKey:[l.bV.MYPROPERTIES,s,n],queryFn:async()=>{let{data:e}=await (0,a.kE)("".concat(l.bV.MYPROPERTIES,'/stats?aggregate_field=id&aggregate_type=count&group_by=["status"]'),s);return{data:e.data,meta:e.meta}},refetchOnWindowFocus:!1,staleTime:12e4,gcTime:12e4});return{dashboardPropertiesCountDataLoading:p,dashboardPropertiesCountData:null==m?void 0:m.data,dashboardPropertiesCountMetaData:null==m?void 0:m.meta,dashboardPropertiesCountDataError:g,dashboardPropertiesCountDataRefetch:v,dashboardPropertiesCountRefetching:f}},g=function(e,t,n){let d=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"team",c=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0,p=JSON.parse((0,o.get)(t,"filter","{}")),m=(0,u.fG)(e,d,c,s);(null==p?void 0:p.and)?p.and.push(m):p.and=[m];let g=new i.zk;(0,o.isEmpty)(p)||g.filter(p);let v=g.toParams(),{isLoading:f,data:h,error:y,refetch:w,isRefetching:b}=(0,r.a)({queryKey:[l.bV.MYPROPERTIES,"manager-pipeline",v,n,e,d],enabled:!(0,o.isEmpty)(e),queryFn:async()=>{let{data:e}=await (0,a.kE)("".concat(l.bV.MYPROPERTIES,'/stats?aggregate_field=id&aggregate_type=count&group_by=["status"]'),v);return{data:e.data,meta:e.meta}},refetchOnWindowFocus:!1,staleTime:12e4,gcTime:12e4});return{dashboardManagerPropertiesPipelineCountDataLoading:f,dashboardManagerPropertiesPipelineCountData:null==h?void 0:h.data,dashboardManagerPropertiesPipelineCountMetaData:null==h?void 0:h.meta,dashboardManagerPropertiesPipelineCountDataError:y,dashboardManagerPropertiesPipelineCountDataRefetch:w,dashboardManagerPropertiesPipelineCountRefetching:b}},v=function(e,t){arguments.length>2&&void 0!==arguments[2]&&arguments[2];let n=arguments.length>3?arguments[3]:void 0,u=arguments.length>4?arguments[4]:void 0,d=arguments.length>5?arguments[5]:void 0,c=arguments.length>6?arguments[6]:void 0,s=arguments.length>7?arguments[7]:void 0,p=u.pagination.pageSize,m=u.pagination.current,g=(0,o.omitBy)((0,o.mapValues)((0,o.get)(e,"sort",{created_at:"desc"}),e=>"ascend"===e||"asc"===e?"asc":"descend"===e||"desc"===e?"desc":null),o.isNull),v=JSON.parse((0,o.get)(t,"filter","{}")),f={or:[{field:"agent_id",op:"in",value:Array.isArray(n)?n:[n]}]},h=null;Array.isArray(d)&&d.length>0&&(h=d.some(e=>(null==e?void 0:e.toLowerCase())==="unknown")?{field:"status",op:"=",value:null}:{field:"status",op:"in",value:d}),(null==v?void 0:v.and)?v.and.push(f):v.and=[f],d.length>0&&h&&v.and.push(h),(null==c?void 0:c.length)>0&&v.and.push({or:[{field:"sale_listing_id",value:c},{field:"rent_listing_id",value:c}]}),(null==s?void 0:s.length)>
10&&v.and.push({field:"prop_id",value:s});let y=new i.zk().addInclude(i.zk.withRelation("customer").select(["id","name","email","phone"])).addInclude(i.zk.withRelation("seller_lead").select(["max_budget","id","type","status","state","enquiry_source"]).addInclude(i.zk.withRelation("listing").select(["id","sub_type","visibility_status"]))).addInclude(i.zk.withRelation("landlord_lead").select(["max_budget","id","type","status","state","enquiry_source"]).addInclude(i.zk.withRelation("listing").select(["id","sub_type","visibility_status"]))).addInclude(i.zk.withRelation("prop").addInclude(i.zk.withRelation("images").limit(1).sort({order:"asc"}).select(["url","resource_type","resource_id","id"])).addInclude(i.zk.withRelation("tags").select(["name"])));y.page=m,y.limit=p,(0,o.isEmpty)(g)||y.sort(g),(0,o.isEmpty)(v)||y.filter(v);let w=y.toParams(),{isLoading:b,isFetching:P,isPlaceholderData:_,data:E,error:R,refetch:S,isRefetching:k}=(0,r.a)({queryKey:[l.t5.BASE,w,d,c,s],enabled:!!n,queryFn:async()=>{let{data:e}=await (0,a.kE)("".concat(l.t5.BASE),w);return{data:e.data,meta:e.meta}},staleTime:12e4,gcTime:12e4,placeholderData:e=>e});return{myPropertiesLoading:b||P&&_,myPropertiesData:null==E?void 0:E.data,myPropertiesError:R,refetchMyProperties:S,isRefetchingMyProperties:k,myPropertiesMetaData:null==E?void 0:E.meta}},f=(e,t,n,u,d)=>{let c=JSON.parse((0,o.get)(n,"filter","{}")),s={or:[{field:"agent_id",op:"in",value:Array.isArray(e)?e:[e]}]};(null==c?void 0:c.and)?c.and.push(s):c.and=[s],(null==u?void 0:u.length)>0&&c.and.push({or:[{field:"sale_listing_id",value:u},{field:"rent_listing_id",value:u}]}),(null==d?void 0:d.length)>0&&c.and.push({field:"prop_id",value:d});let p=new i.zk;(0,o.isEmpty)(c)||p.filter(c);let m=p.toParams(),{isLoading:g,data:v,error:f,refetch:h,isRefetching:y}=(0,r.a)({queryKey:[l.t5.BASE,m,u,d],queryFn:async()=>{let{data:e}=await (0,a.kE)("".concat(l.t5.BASE,'/stats?aggregate_field=id&aggregate_type=count&group_by=["status"]'),m);return{data:e.data,meta:e.meta}},refetchOnWindowFocus:!1,staleTime:12e4,gcTime:12e4});return{myPropertiesCountDataLoading:g,myPropertiesCountData:null==v?void 0:v.data,myPropertiesCountMetaData:null==v?void 0:v.meta,myPropertiesCountDataError:f,myPropertiesCountDataRefetch:h,myPropertiesCountRefetching:y}}},95049:function(e,t,n){n.d(t,{$G:function(){return i},$X:function(){return f},CU:function(){return o},D8:function(){return D},IQ:function(){return S},Mt:function(){return T},SK:function(){return b},Se:function(){return P},T4:function(){return a},U8:function(){return k},Vb:function(){return d},Xw:function(){return s},YN:function(){return m},dN:function(){return M},g7:function(){return p},ie:function(){return r},ig:function(){return v},k:function(){return _},kC:function(){return c},kn:function(){return E},o0:function(){return g},re:function(){return u},uf:function(){return h},yZ:function(){return R}});var l=n(5375);let a=e=>{if(e>=1e9){let t=(e/1e9).toFixed(1);return t.endsWith(".0")?"".concat((e/1e9).toFixed(0),"B"):"".concat(t,"B")}if(e>=1e6){let t=(e/1e6).toFixed(2);return t.endsWith(".00")?"".concat((e/1e6).toFixed(0),"M"):"".concat(t,"M")}if(!(e>=1e3))return null==e?void 0:e.toString();{let t=(e/1e3).toFixed(1);return t.endsWith(".0")?"".concat((e/1e3).toFixed(0),"K"):"".concat(t,"K")}},i=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10;return e?(null==e?void 0:e.length)<=t?e:"".concat(null==e?void 0:e.slice(0,t),"..."):""},r=e=>{if(!e)return"-";let t=new Date(e),n=t.toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"}),l=t.toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit",hour12:!1});return"".concat(n,", ").concat(l)};function o(e,t,n){let l=null==e?void 0:e.replace(/[^\d+]/g,""),a="",[i,r]=(null==t?void 0:t.split("@"))||["",""];if((null==i?void 0:i.length)<=3)a=t?(null==i?void 0:i[0])+"@"+r:"";else{let e=null==i?void 0:i.slice(0,3);a=t?"".concat(e+"***","@").concat(r):""}if(n)return{phoneNumber:"".concat(null==l?void 0:l[0]).concat(null==l?void 0:l[1]).concat(null==l?void 0:l[2]).concat((null==l?void 0:l[3])||""," **** ****"),email:"********"};{let e=null==l?void 0:l.slice(0,4),t=null==l?void 0:l.slice(-4);return{phoneNumber:"".concat(e||""," **** ").concat(t||""),email:a}}}let u=e=>{let t=Math.floor(60*e);return e<1?"".concat(t%60,"s"):e<60?"".concat(Math.floor(e),"m:").concat((t%60).toString().padStart(2,"0"),"s"):e<1440?"".concat(Math.floor(e/60),"h:").concat(Math.floor(e%60).toString().padStart(2,"0"),"m"):"".concat(Math.floor(e/1440),"d ").concat(Math.floor(e%1440/60),"h")},d=(e,t)=>{let n="".concat(e,"-").concat(t," Beds");return e===t&&null==e?n="-":e===t&&0===e?n="Studio":e===t?n="".concat(e," Bed").concat(e>1?"s":""):null==t?n="".concat(e," Beds"):null==e&&(n="".concat(t," Beds")),n},c=e=>{var t;return e?e.charAt(0).toUpperCase()+(null===(t=e.slice(1))||void 0===t?void 0:t.toLowerCase()):""};function s(e){let t={minBathrooms:"baths",maxBathrooms:"baths",bathrooms:"baths",maxBedrooms:"beds",minBedrooms:"beds",bedrooms:"beds",minArea:"sqft",totalArea:"sqft",maxArea:"sqft",minPrice:"AED",price:"AED",maxPrice:"AED",dataSourceCreatedAt:"",dataSourceUpdatedAt:""},n=e;for(let e in t)n=n.replace(RegExp(e,"g"),t[e]);return n}let p=e=>{let t=[null==e?void 0:e.community,null==e?void 0:e.subLocation,null==e?void 0:e.location].filter(e=>null!=e&&"null"!==e&&""!==e.trim()).join(", ");return{label:(null==e?void 0:e.community)&&(null==e?void 0:e.community)!=="null"?null==e?void 0:e.community:(null==e?void 0:e.subLocation)&&(null==e?void 0:e.subLocation)!=="null"?null==e?void 0:e.subLocation:(null==e?void 0:e.location)&&(null==e?void 0:e.location)!=="null"?null==e?void 0:e.location:"",labelFull:t}};function m(e){let t="";for(let w in e){var n,i,r,o,u,d,c,s,p,m,g,v,f,h,y;"agents"===w?t+="".concat(null===(n=e.agents)||void 0===n?void 0:n.reduce((e,t)=>
1e+t.name+", ","")):"marketingAgent"===w?t+="".concat(null===(i=e.marketingAgent)||void 0===i?void 0:i.reduce((e,t)=>e+t.name+", ","")):"listings"===w?t+="".concat(null===(r=e.listings)||void 0===r?void 0:r.reduce((e,t)=>e+t.reference+", ","")):"activityType"===w?t+=((null===(u=e.activityType)||void 0===u?void 0:null===(o=u.$in)||void 0===o?void 0:o.filter(e=>/^[A-Z]/.test(e)))||[]).join(", ")+", ":"activityStatus"===w?t+=((null==e?void 0:null===(d=e.activityStatus)||void 0===d?void 0:d.$in)||[]).map(e=>"closed"===e.toLowerCase()?"Completed":e.charAt(0).toUpperCase()+e.slice(1)).join(", ")+", ":"locations"===w?t+="".concat(null===(c=e.locations)||void 0===c?void 0:c.reduce((e,t)=>e+t.label+", ","")):"price"===w||"minPrice"===w||"maxPrice"===w?"object"==typeof e[w]?(e[w].hasOwnProperty("$gte")&&(t+="".concat(a(null===(s=e[w])||void 0===s?void 0:s.$gte),"- ")),e[w].hasOwnProperty("$lte")&&(t+="".concat(a(null===(p=e[w])||void 0===p?void 0:p.$lte)," AED, "))):"number"==typeof e[w]&&(t+="".concat(a(e[w]),", ")):"string"==typeof e[w]||"number"==typeof e[w]?t+="".concat(e[w],", "):("object"==typeof e[w]&&e[w].hasOwnProperty("$in")&&(t+="".concat(null===(g=e[w])||void 0===g?void 0:null===(m=g.$in)||void 0===m?void 0:m.reduce((e,t)=>e+", ".concat(t)),", ")),"object"==typeof e[w]&&e[w].hasOwnProperty("$gte")&&(t+="".concat("createdAt"===w||"updatedAt"===w||"dataSourceCreatedAt"===w||"dataSourceUpdatedAt"===w?(0,l.Z)(null===(v=e[w])||void 0===v?void 0:v.$gte).format("DD/MM/YYYY"):null===(f=e[w])||void 0===f?void 0:f.$gte," ").concat(w," ")),"object"==typeof e[w]&&e[w].hasOwnProperty("$lte")&&(t+="to ".concat("createdAt"===w||"updatedAt"===w||"dataSourceCreatedAt"===w||"dataSourceUpdatedAt"===w?(0,l.Z)(null===(h=e[w])||void 0===h?void 0:h.$lte).format("DD/MM/YYYY"):null===(y=e[w])||void 0===y?void 0:y.$lte," ").concat(w,", ")))}return t}let g=e=>{if(!e||!(0,l.Z)(e).isValid())return"--";let t=l.Z.utc(e).local().format("MMM DD, YYYY"),n=l.Z.utc(e).local().format("HH:mm");return"".concat(t,", ").concat(n)};function v(e,t,n){let l=null==e?void 0:e.replace(/[^\d+]/g,""),a="",[i,r]=(null==t?void 0:t.split("@"))||["",""];if((null==i?void 0:i.length)<=3)a=t?(null==i?void 0:i[0])+"@"+r:"";else{let e=null==i?void 0:i.slice(0,3);a=t?"".concat(e+"***","@").concat(r):""}if(n)return{phoneNumber:"".concat(null==l?void 0:l[0]).concat(null==l?void 0:l[1]).concat(null==l?void 0:l[2]).concat((null==l?void 0:l[3])||""," **** ****"),email:"********"};{let e=null==l?void 0:l.slice(0,4),t=null==l?void 0:l.slice(-4);return{phoneNumber:"".concat(e," **** ").concat(t),email:a}}}let f=e=>{if(e)return(0,l.Z)(e).utc().format("YYYY-MM-DDTHH:mm:ss[Z]")},h=e=>{let t=y(e);return null===t?"-":new Intl.NumberFormat("en-US").format(t)};function y(e){if(null==e||""===e)return null;if("number"==typeof e)return Number.isFinite(e)?e:null;let t=String(e).replace(/,/g,"").trim();if(!t)return null;let n=Number(t);return Number.isFinite(n)?n:null}function w(e,t){var n,l;let a=y(e);if(null===a)return null!==(n=null==t?void 0:t.fallback)&&void 0!==n?n:"-";let i=null!==(l=null==t?void 0:t.decimals)&&void 0!==l?l:0;return i>0?new Intl.NumberFormat("en-US",{minimumFractionDigits:i,maximumFractionDigits:i}).format(a):new Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(Math.round(a))}function b(e,t){var n;return w(e,{decimals:null!==(n=null==t?void 0:t.decimals)&&void 0!==n?n:0,fallback:null})}function P(e,t){var n,l,a;let i=w(e,{decimals:null!==(n=null==t?void 0:t.decimals)&&void 0!==n?n:0,fallback:null});if(null===i)return null!==(l=null==t?void 0:t.fallback)&&void 0!==l?l:null;let r=null!==(a=null==t?void 0:t.unit)&&void 0!==a?a:"sq.ft.";return"".concat(i," ").concat(r)}function _(e,t){if(null==t?void 0:t.priceOnRequest)return"Price on request";let n=w(e,{fallback:null});if(null===n)return null;let l="AED ".concat(n);return(null==t?void 0:t.rent)?"".concat(l,"/year"):l}function E(e,t,n){var l;let a=y(e),i=y(t);if(null===a&&null===i)return null;let r=null!==(l=null==n?void 0:n.unit)&&void 0!==l?l:"sqft";if(null!==a&&null!==i)return a===i?"".concat(w(a)," ").concat(r):"".concat(w(a)," - ").concat(w(i)," ").concat(r);let o=null!=a?a:i;return null===o?null:"".concat(w(o)," ").concat(r)}let R=e=>"Rent"===e?"Tenant":"Buyer",S=e=>"Rent"===e?"Landlord":"Seller",k={Rent:{customer:"Tenant",owner:"Landlord",customerSide:"Tenant",ownerSide:"Landlord",customerPlural:"Tenants",ownerPlural:"Landlords"},Sale:{customer:"Buyer",owner:"Seller",customerSide:"Buying",ownerSide:"Selling",customerPlural:"Buyers",ownerPlural:"Sellers"},Selling:{Rent:"Leasing",Sale:"Selling"},Buying:{Rent:"Renting",Sale:"Buying"}},D=function(e){var t,n,l,a;let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(!(null==e?void 0:e.images)||!Array.isArray(e.images)||0===e.images.length)return null;for(let l=i;l<e.images.length;l++){let a=null===(n=e.images[l])||void 0===n?void 0:null===(t=n.original)||void 0===t?void 0:t.url;if(a)return a}for(let t=0;t<i;t++){let n=null===(a=e.images[t])||void 0===a?void 0:null===(l=a.original)||void 0===l?void 0:l.url;if(n)return n}return null},M=e=>
1(Number(e)||0).toLocaleString(void 0,{minimumFractionDigits:2,maximumFractionDigits:2}),C=/<\/?[a-z][^>]*>/i,A={nbsp:" ",amp:"&",lt:"<",gt:">",quot:'"',apos:"'",hellip:"â¦",mdash:"â",ndash:"â",lsquo:"â",rsquo:"â",ldquo:"â",rdquo:"â",bull:"â¢",middot:"\xb7"};function I(e){return C.test(e)?e.replace(/<\s*(script|style)[^>]*>[\s\S]*?<\s*\/\s*\1\s*>/gi,"").replace(/<\s*br\s*\/?\s*>/gi,"\n").replace(/<\s*\/\s*(p|div|li|tr|h[1-6]|blockquote|section)\s*>/gi,"\n").replace(/<[^>]*>/g,""):e}function z(e){return e.replace(/&(#x[0-9a-f]+|#[0-9]+|[a-z][a-z0-9]*);/gi,(e,t)=>{if("#"===t[0]){let n="x"===t[1]||"X"===t[1]?parseInt(t.slice(2),16):parseInt(t.slice(1),10);if(!Number.isFinite(n)||n<=0||n>1114111)return e;let l=String.fromCodePoint(n);return"\xa0"===l?" ":l}let n=A[t.toLowerCase()];return void 0===n?e:n})}function T(e){if("string"!=typeof e||!e)return"";let t=z(I(e));return/^\s*<\s*[a-z]/i.test(t)&&(t=z(I(t))),t.replace(/\u00a0/g," ").replace(/\r\n?/g,"\n").replace(/[ \t]+\n/g,"\n").replace(/\n{3,}/g,"\n\n").trim()}},93063:function(e,t,n){var l=n(8946);n.o(l,"replace")&&n.d(t,{replace:function(){return l.replace}})}}]);
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.