1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7518,5977],{67518:function(e,t,l){l.d(t,{Z:function(){return property_ListingPage}});var n=l(85893),i=l(67294),r=l(11163),a=l(5152),o=l.n(a),s=l(9008),c=l.n(s),d=l(94786),u=l(94447),m=l(42413),p=l(2537),h=l(95215),f=l(31955),g=l(25675),y=l.n(g),x=l(94268),v=l(52535),b=l(25752);l(5977);var w=l(92007),j=l(99261);function LazyGalleryImage(e){let{src:t,enabled:l=!0,priority:r=!1,className:a,imgClassName:o,alt:s="",sizes:c="(max-width: 991px) 100vw, 50vw",fetchPriority:d=r?"high":"low"}=e,[u,m]=(0,i.useState)(!1),p=(0,i.useCallback)(()=>{m(!0)},[]);return((0,i.useEffect)(()=>{if(!l||!t){m(!1);return}let e=!1;m(!1);let handleLoaded=()=>{e||m(!0)},n=new window.Image;return n.onload=handleLoaded,n.onerror=handleLoaded,n.src=t,n.complete&&handleLoaded(),()=>{e=!0,n.onload=null,n.onerror=null}},[t,l]),l&&t)?(0,n.jsxs)("div",{className:(0,v.cn)("lazy-gallery-image-wrap relative h-full w-full overflow-hidden",a),children:[(0,n.jsx)("noscript",{children:(0,n.jsx)("style",{children:'\n .lazy-gallery-image-wrap img {\n opacity: 1 !important;\n }\n .lazy-gallery-image-wrap [data-slot="skeleton"] {\n display: none !important;\n }\n '})}),u?null:(0,n.jsx)(j.O,{className:"absolute inset-0 z-[1] h-full w-full animate-pulse rounded-none","aria-hidden":!0}),(0,n.jsx)(y(),{src:t,alt:s,fill:!0,sizes:c,priority:r,loading:r?void 0:"lazy",fetchPriority:r?"high":d,decoding:"async",onLoad:p,onLoadingComplete:p,className:(0,v.cn)("z-[2] object-cover transition-opacity duration-300",u?"opacity-100":"opacity-0",o)},t)]}):(0,n.jsx)(j.O,{className:(0,v.cn)("h-full w-full animate-pulse rounded-none",a),"aria-hidden":!0})}let _=[1,2,3,4],N="grid w-full min-w-0 max-w-full gap-3 overflow-hidden rounded-[20px] max-[991px]:grid-cols-1 max-[991px]:grid-rows-[320px] max-[991px]:gap-0",S="".concat(N," grid-cols-[2fr_1fr_1fr] grid-rows-[repeat(2,minmax(190px,260px))]"),C="".concat(N," grid-cols-2 grid-rows-[minmax(320px,520px)]"),k="relative m-0 block h-full min-h-0 w-full cursor-pointer appearance-none border-0 bg-transparent p-0 text-left";function HeroGalleryBannerSkeleton(){return(0,n.jsxs)("div",{className:S,"aria-hidden":!0,"aria-busy":"true",children:[(0,n.jsx)(j.O,{className:"col-[1/2] row-[1/3] h-full min-h-[320px] w-full rounded-none max-[991px]:row-[1/2]"}),_.map(e=>(0,n.jsx)(j.O,{className:"h-full min-h-[190px] w-full rounded-none max-[991px]:hidden"},e))]})}let handleTileKeyDown=(e,t,l)=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),null==l||l(t))};function HeroGalleryBanner(e){let{images:t=[],onImageClick:l,imageAlt:r="Property photo"}=e,a=Array.isArray(t)?t.filter(Boolean):[],[o,s]=(0,i.useState)(!1),c=2===a.length,d=a[0]||"";return((0,i.useEffect)(()=>{s(!1);let enable=()=>s(!0);if("function"==typeof window.requestIdleCallback){let e=window.requestIdleCallback(enable,{timeout:2500});return()=>window.cancelIdleCallback(e)}let e=window.setTimeout(enable,150);return()=>window.clearTimeout(e)},[d]),a.length)?(0,n.jsxs)("div",{className:"".concat(c?C:S," relative"),children:[(0,n.jsx)("button",{type:"button",onClick:()=>null==l?void 0:l(0),className:c?"".concat(k," min-h-[320px] max-[991px]:min-h-[320px]"):"".concat(k," col-[1/2] row-[1/3] min-h-[320px] max-[991px]:row-[1/2] max-[991px]:min-h-[320px]"),onKeyDown:e=>handleTileKeyDown(e,0,l),"aria-label":"View property photos",children:(0,n.jsx)(LazyGalleryImage,{src:a[0],priority:!0,className:"pointer-events-none h-full w-full",alt:r,sizes:"(max-width: 991px) 100vw, 50vw"})}),c?(0,n.jsx)("button",{type:"button",onClick:()=>null==l?void 0:l(1),className:"".concat(k," min-h-[320px] max-[991px]:hidden"),onKeyDown:e=>handleTileKeyDown(e,1,l),"aria-label":"View property photo 2",children:(0,n.jsx)(LazyGalleryImage,{src:a[1],enabled:o,fetchPriority:"low",className:"pointer-events-none h-full min-h-[320px]",alt:"".concat(r," 2"),sizes:"50vw"})}):_.filter(e=>a[e]).map(e=>(0,n.jsx)("button",{type:"button",onClick:()=>null==l?void 0:l(e),className:"".concat(k," max-[991px]:hidden"),onKeyDown:t=>handleTileKeyDown(t,e,l),"aria-label":"View property photo ".concat(e+1),children:(0,n.jsx)(LazyGalleryImage,{src:a[e],enabled:o,fetchPriority:"low",className:"pointer-events-none h-full min-h-[190p
1x]",alt:"".concat(r," ").concat(e+1),sizes:"25vw"})},"".concat(a[e],"-").concat(e))),(0,n.jsx)("button",{type:"button",onClick:()=>null==l?void 0:l(0),className:"absolute bottom-6 right-6 z-10 tag-blur tag blur-white cursor-pointer",children:"View All Photos"})]}):null}var A=l(10139),z=l(67141),L=l(52600),P=l(57307),I=l(54976),q=l(13742),E=l(72161),D=l(81037),B=l(64697),M=l(8350),G=l(33514);let Z=o()(()=>Promise.all([l.e(4751),l.e(4463)]).then(l.bind(l,68995)),{loadableGenerated:{webpack:()=>[68995]},loading:()=>(0,n.jsx)("div",{className:"h-80 w-full animate-pulse rounded bg-neutral-200 md:h-[620px]","aria-hidden":!0}),ssr:!1}),O=o()(()=>Promise.resolve().then(l.bind(l,39621)),{loadableGenerated:{webpack:()=>[39621]}}),T=o()(()=>Promise.all([l.e(674),l.e(5898),l.e(2420),l.e(7574)]).then(l.bind(l,92420)),{loadableGenerated:{webpack:()=>[92420]},ssr:!1,loading:()=>(0,n.jsx)("div",{className:"h-40 w-full animate-pulse rounded bg-neutral-200","aria-hidden":!0})}),F=o()(()=>l.e(9427).then(l.bind(l,59427)),{loadableGenerated:{webpack:()=>[59427]},ssr:!1}),R=o()(()=>l.e(7392).then(l.bind(l,17392)),{loadableGenerated:{webpack:()=>[17392]},ssr:!1,loading:()=>(0,n.jsx)(BlockSkeleton,{className:"h-[420px] w-full"})});o()(()=>l.e(6908).then(l.bind(l,22502)),{loadableGenerated:{webpack:()=>[22502]}}),o()(()=>l.e(6315).then(l.bind(l,26315)),{loadableGenerated:{webpack:()=>[26315]}}),o()(()=>Promise.resolve().then(l.bind(l,5977)),{loadableGenerated:{webpack:()=>[5977]}});let V=o()(()=>Promise.resolve().then(l.bind(l,17337)),{loadableGenerated:{webpack:()=>[17337]}}),U=o()(()=>Promise.all([l.e(674),l.e(5898),l.e(7152)]).then(l.bind(l,97191)),{loadableGenerated:{webpack:()=>[97191]},ssr:!1});o()(()=>l.e(2880).then(l.bind(l,30539)),{loadableGenerated:{webpack:()=>[30539]}});let W=o()(()=>Promise.all([l.e(3029),l.e(8451)]).then(l.bind(l,98451)),{loadableGenerated:{webpack:()=>[98451]},ssr:!1});o()(()=>Promise.all([l.e(4386),l.e(3029),l.e(82)]).then(l.bind(l,90082)),{loadableGenerated:{webpack:()=>[90082]}});let H=o()(()=>Promise.all([l.e(2004),l.e(2634),l.e(1125),l.e(4381)]).then(l.bind(l,29694)),{loadableGenerated:{webpack:()=>[29694]},ssr:!1}),Y=o()(()=>Promise.all([l.e(7398),l.e(4903)]).then(l.bind(l,24903)),{loadableGenerated:{webpack:()=>[24903]}}),K="https://www1.luxuryproperty.com/",J="https://www.luxuryproperty.com/",Q="default_button --outline w-[33.33%] max-w-full mx-2";function BlockSkeleton(e){let{className:t="h-9 w-full"}=e;return(0,n.jsx)("div",{className:(0,v.cn)("animate-pulse rounded bg-neutral-200",t),"aria-hidden":!0})}function ListingModal(e){let{open:t,onClose:l,children:i,panelClassName:r="",describedBy:a,labelledBy:o,bottomSheetOnMobile:s=!1}=e;return t?(0,n.jsxs)("div",{className:"fixed inset-0 z-[10000] flex items-end justify-center p-0 md:items-center md:p-4",role:"dialog","aria-modal":"true","aria-labelledby":o,"aria-describedby":a,children:[(0,n.jsx)("button",{type:"button",className:"absolute inset-0 bg-black/40",onClick:l,"aria-label":"Close dialog"}),(0,n.jsxs)("div",{className:(0,v.cn)("relative z-10 max-h-[90vh] w-full overflow-y-auto bg-white p-6 shadow-2xl outline-none",s?"max-w-[95vw] rounded-t-2xl md:max-w-xl md:rounded-2xl":"max-w-[25rem] rounded-2xl",r),onClick:e=>e.stopPropagation(),children:[(0,n.jsx)("button",{type:"button",onClick:l,className:"absolute top-4 right-4 z-10 cursor-pointer text-2xl leading-none text-[#151515] hover:opacity-70","aria-label":"Close",children:"\xd7"}),i]})]}):null}function getListingVideoUrl(e){if(!e||"object"!=typeof e)return"";let t=[e.video,e.video_url,e.youtube_url,e.youtube];for(let e of t)if("string"==typeof e&&e.trim())return e.trim();return""}function getYoutubeVideoId(e){if(!e||"string"!=typeof e)return null;let t=e.match(/(?:youtu\.be\/|v=|\/shorts\/|\/embed\/)([^&?/]+)/);return t?t[1]:null}function formatListingGalleryUrl(e){let t=String(e||"").trim();return t?/^https?:\/\//i.test(t)?t.includes("?")?t:"".concat(t,"?nowm"):"".concat(K).concat(t.replace(/^\/+/,""),"?nowm"):""}function hasListingImages(e){let t=null==e?void 0:e.listing_images;return Array.isArray(t)?t.filter(Boolean).length>0:"string"==typeof t&&t.trim().length>0}function titleCaseAmenityLabel(e){return String(null!=e?e:"").trim().replace(/_/g," ").replace(/\b\w/g,(e,t,l)=>{let n=l[t-1];return"'"===n||"â"===n?e.toLowerCase():e.toUpperCase()})}function splitAmenityListString(e){let t=String(null!=e?e:"").trim();if(!t)return[];let l=(t.match(/,/g)||[]).length,n=(t.match(/\|/g)||[]).length;return l>0&&l>
1=n?t.split(",").map(titleCaseAmenityLabel).filter(Boolean):n>0?t.split("|").map(titleCaseAmenityLabel).filter(Boolean):[titleCaseAmenityLabel(t)]}function resolveFaqData(){var e;let{faq:t,details:l,detailsData:n,apiResponse:i}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=[t,null==i?void 0:i.faq,null==l?void 0:l.faq,null==n?void 0:n.faq,null==i?void 0:null===(e=i.listing_details)||void 0===e?void 0:e.faq];for(let e of r)if(Array.isArray(e)&&e.length>0)return e;return[]}function normalizeListingRefno(e){return String(null!=e?e:"").trim().toUpperCase()}var property_ListingPage=e=>{var t,l,a,o,s,g,j,_,N,S;let{listingDetailData:C,relatedPropertiesData:k,show_image:$,title:X,details:ee,seoData:et,faq:el}=e,[en,ei]=(0,i.useState)(ee||{}),[er,ea]=(0,i.useState)(()=>resolveFaqData({faq:el,details:ee})),[eo,es]=(0,i.useState)([]),[ec,ed]=(0,i.useState)(!1),[eu,em]=(0,i.useState)(!1),ep=(0,i.useRef)(null),eh=(0,i.useMemo)(()=>(function(e,t){let l=[],n=new Set;for(let i of e||[]){if(!i||t&&i&&normalizeListingRefno(i.refno)===t)continue;let e=normalizeListingRefno(i.refno)||i.slug||i.id;!e||n.has(e)||(n.add(e),l.push(i))}return l.slice(0,6)})(function(e){let{relatedPropertiesData:t,details:l,detailsData:n}=e;for(let e of[t,n,l]){let t=e?Array.isArray(e)?e.filter(Boolean):Array.isArray(e.related_properties)?e.related_properties.filter(Boolean):[]:[];if(t.length)return t}return[]}({relatedPropertiesData:k,details:ee,detailsData:en}),normalizeListingRefno((null==en?void 0:en.refno)||(null==ee?void 0:ee.refno)||C)),[k,ee,en,C]);(0,i.useEffect)(()=>{if(eu)return;let enable=()=>em(!0);if("function"==typeof window.requestIdleCallback){let e=window.requestIdleCallback(enable,{timeout:3e3});return()=>window.cancelIdleCallback(e)}let e=window.setTimeout(enable,500);return()=>window.clearTimeout(e)},[eu]),(0,i.useEffect)(()=>{if(eu)return;let e=ep.current;if(!e||void 0===window.IntersectionObserver)return;let t=new IntersectionObserver(e=>{e.some(e=>e.isIntersecting)&&em(!0)},{rootMargin:"240px 0px"});return t.observe(e),()=>t.disconnect()},[eu,eh.length]),(0,i.useEffect)(()=>{eu&&function(e,t,l){let n=e.slice(0,6);if(!n.length){t([]),l(!1);return}if(1===n.length){t(n),l(!1);return}t([n[0]]),l(!0),requestAnimationFrame(()=>{t(n),l(!1)})}(eh,es,ed)},[eu,eh]),(0,i.useEffect)(()=>{ea(resolveFaqData({faq:el,details:ee,detailsData:en}))},[el,ee,en]),(0,i.useEffect)(()=>{if(!C||(null==ee?void 0:ee.refno)||(null==ee?void 0:ee.title))return;let e=!0;return x.Z.fetchPropertyDetailData(C).then(t=>{var l,n,i;if(e&&(null==t?void 0:null===(l=t.data)||void 0===l?void 0:l.listing_details)){let e=(null==t?void 0:null===(n=t.data)||void 0===n?void 0:n.related_properties)||(null===(i=t.data.listing_details)||void 0===i?void 0:i.related_properties)||[],l=e.length?{...t.data.listing_details,related_properties:e}:t.data.listing_details;ei(l),ea(resolveFaqData({faq:el,details:ee,detailsData:l,apiResponse:t.data}))}}).catch(()=>{}),()=>{e=!1}},[C,null==ee?void 0:ee.refno,null==ee?void 0:ee.title,el]);let[ef,eg]=(0,i.useState)(!1),[ey,ex]=(0,i.useState)(""),[ev,eb]=(0,i.useState)(!1),[ew,ej]=(0,i.useState)(!1),[e_,eN]=(0,i.useState)(""),[eS,eC]=(0,i.useState)(!1),[ek,eA]=(0,i.useState)(!1),ez=(0,r.useRouter)(),eL=ez.asPath,[eP,eI]=(0,i.useState)(!1),[eq,eE]=(0,i.useState)(0),[eD,eB]=(0,i.useState)(!1),[eM,eG]=(0,i.useState)(0),[eZ,eO]=(0,i.useState)(!1),[eT,eF]=(0,i.useState)(""),[eR,eV]=(0,i.useState)(""),[eU,eW]=(0,i.useState)(""),[eH,eY]=(0,i.useState)(""),[eK,eJ]=(0,i.useState)(""),[eQ,e$]=(0,i.useState)(!1),[eX,e0]=(0,i.useState)({name:"",email:"",phone:"",message:""}),[e1,e2]=(0,i.useState)("GB"),[e5,e3]=(0,i.useState)(""),[e4,e9]=(0,i.useState)(!1),e6=(0,i.useRef)(null),e8=(0,i.useRef)(null);(0,i.useEffect)(()=>{if(!ee||"object"!=typeof ee||Array.isArray(ee))return;let e=ee.refno||ee.slug||ee.title;if(!e)return;let t=null!=e6.current&&e6.current!==ez.asPath;e6.current=ez.asPath,ei(ee),ea(resolveFaqData({faq:el,details:ee})),t&&(e9(!0),eO(!1),eE(0),eG(0),eI(!1),eB(!1),em(!1),es([]),ed(!1))},[ez.asPath,null==ee?void 0:ee.refno,null==ee?void 0:ee.slug,el]);let trimContact=e=>null!=e&&""!==String(e).trim()?String(e).trim():"",e7=trimContact((null==en?void 0:null===(t=en.company)||void 0===t?void 0:t.company_phone)||(null==en?void 0:en.company_phone)),te=(0,B.GO)(en),tt=trimContact((null==en?void 0:en.mobile)||(null==en?void 0:en.agent_phone)||(null==en?void 0:en.phone)),tl=(te?e7:tt)||"+44 203 442 8504",tn="tel:".concat(String(tl).replace(/[^\d+]/g,"")||"+442034428504"),ti=String(tl).replace(/\D/g,"")||"442034428504",tr=(0,B.MS)(en),ta=(0,i.useMemo)(()=>(0,B.zk)(en,{type:"property"}),[en]),to=trimContact(null==en?void 0:null===(l=en.company)||void 0===l?void 0:l.company_name)||trimContact(tr)||"Luxury Property";null!==(_=null==en?void 0:en.property_for)&&void 0!==_||null==C||C.property_for;let ts=(0,i.useCallback)(e=>{eN(e),eb(!0)},[]);(0,i.useEffect)(()=>
1{if("1"!==ez.query.show_pop)return;let e=setTimeout(()=>{eN("Messageus"),eF(""),eb(!0)},5e3);return()=>clearTimeout(e)},[ez.query.show_pop]);let tc=(0,i.useCallback)(()=>{eb(!1)},[]),handleOpenBrochure=()=>{eA(!0)},handleCloseBrochure=()=>{eA(!1)},openDrawer=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;eE(e),eI(!0)},openModal=e=>{eG(e),eB(!0)};(0,i.useEffect)(()=>{window.gtag_report_conversion=function(e){return"function"==typeof window.gtag&&(gtag("event","conversion",{send_to:"AW-827451961/OgA3CJq7lcoZELnUx4oD",event_callback:function(){}}),!1)}},[]),(0,i.useEffect)(()=>{window.adrollscript=function(){if(!document.querySelector("#adroll-script")){let e=document.createElement("script");e.id="adroll-script",e.type="text/javascript",e.text='\n try {\n __adroll.record_user({"adroll_segments": "b3f1b773"});\n } catch(err) {}\n ',document.body.appendChild(e)}}},[]),(0,i.useEffect)(()=>(ew?(document.body.style.overflow="hidden",document.body.style.paddingRight="17px"):(document.body.style.overflow="auto",document.body.style.paddingRight=""),()=>{document.body.style.overflow="auto",document.body.style.paddingRight=""}),[ew]);let[td,tu]=(0,i.useState)(!1);isNaN(en.bedrooms)?en.bedrooms:Number(en.bedrooms),en.bathrooms;let tm=null==er?void 0:er.filter(e=>e.question&&""!==e.question.trim()),tp=X||(null==en?void 0:en.meta_title)||(null==en?void 0:en.title)||"",th=(null==en?void 0:en.meta_desc)||(null==en?void 0:en.meta_description)||((null==en?void 0:en.description)?en.description.replace(/<[^>]+>/g,"").replace(/\s+/g," ").trim().slice(0,300):""),tf=(null==ee?void 0:ee.listing_images)?ee:en,tg=(0,u.o8)(tf),ty=(eL||"").split("?")[0],tx=ty?"https://www.luxuryproperty.com".concat(ty.startsWith("/")?ty:"/".concat(ty)):(null==en?void 0:en.slug)?"https://www.luxuryproperty.com/".concat(String(en.slug).replace(/^\//,"")):"https://www.luxuryproperty.com",tv=(null==en?void 0:en.slug)?"https://www.luxuryproperty.com/".concat(String(en.slug).replace(/^\/+/,"")):tx,tb=[null==en?void 0:en.property,null==en?void 0:en.sub_community,null==en?void 0:en.community,1===Number(null==en?void 0:en.international)?null==en?void 0:en.country:null==en?void 0:en.city].filter(Boolean).join(", "),tw=(0,i.useMemo)(()=>({phone:tl,address:tb||"Address available on request"}),[tl,tb]),tj=(0,i.useMemo)(()=>(function(e,t,l){let trim=e=>null!=e&&""!==String(e).trim()?String(e).trim():"",n=(null==e?void 0:e.property_title)||(null==e?void 0:e.title)||"",i=(null==e?void 0:e.refno)||"",r=(null==e?void 0:e.currency)||"AED",a=null==e?void 0:e.price,o=null!=a&&""!==a?"".concat(r," ").concat(String(a).replace(/\B(?=(\d{3})+(?!\d))/g,",")):"",s=trim(null==e?void 0:e.slug),c=(t||"").split("?")[0],d=s?"https://www.luxuryproperty.com/".concat(s.replace(/^\//,"")):c&&"/"!==c?"https://www.luxuryproperty.com".concat(c.startsWith("/")?c:"/".concat(c)):i?"https://www.luxuryproperty.com/".concat(String(i).toLowerCase()):"https://www.luxuryproperty.com",u=trim(l)||"Luxury Property",m=["Hi ".concat(u,","),"","I am interested in this property:","*Property:* ".concat(n)];return o&&m.push("*Price:* ".concat(o)),i&&m.push("*Reference:* ".concat(i)),m.push("Link: ".concat(d)),m.join("\n")})(en,eL,to),[en,eL,to]),submitSidebarInquiry=async e=>{var t,l,n,i,r,a,o;e.preventDefault();let s={name:"",email:"",phone:"",message:""},c=String(eR||"").trim(),d=String(eU||"").trim(),m=String(eH||"").trim(),p=String(eK||"").trim();if(c||(s.name="Name is required"),d?/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(d)||(s.email="Enter a valid email address"):s.email="Email is required",m||(s.phone="Phone is required"),p||(s.message="Message is required"),e0(s),s.name||s.email||s.phone||s.message)return;let g={};try{g=JSON.parse(f.Z.get("campaignCookie")||"{}")}catch(e){g={}}let y={name:eR,phone:eH,url:eL,email:eU,ip:e5,refno:(null==en?void 0:en.refno)||C,comment:eK||"I'd like to have more information about this property.",hash:(0,u.by)(),utm_campaign:null!==(t=g.utm_campaign)&&void 0!==t?t:"",utm_source:null!==(l=g.utm_source)&&void 0!==l?l:"",keyword:null!==(n=g.keyword)&&void 0!==n?n:"",campaignid:null!==(i=g.campaignid)&&void 0!==i?i:"",adgroupid:null!==(r=g.adgroupid)&&void 0!==r?r:"",referral:"undefined"!=typeof document?document.referrer:"",device:null!==(a=g.device)&&void 0!==a?a:""};try{let e=await h.Z.postSendAnEnquiry(y);if(null==e?void 0:null===(o=e.data)||void 0===o?void 0:o.success){"function"==typeof window.gtag_report_conversion&&window.gtag_report_conversion(eL),eV(""),eW(""),eY
1("");let e=null==en?void 0:en.title;eJ(e?"I'd like to have more information about ".concat(e,"."):""),e$(!1),e0({name:"",email:"",phone:"",message:""}),alert("Enquiry submitted successfully")}}catch(e){alert("Unable to submit enquiry right now")}};(0,i.useEffect)(()=>{let run=()=>(0,p.w)(e3,e2);if("function"==typeof window.requestIdleCallback){let e=window.requestIdleCallback(run,{timeout:3e3});return()=>window.cancelIdleCallback(e)}let e=window.setTimeout(run,1500);return()=>window.clearTimeout(e)},[]),(0,i.useEffect)(()=>{let e=null==en?void 0:en.title;e&&eJ(t=>t.trim()?t:"I'd like to have more information about ".concat(e,"."))},[null==en?void 0:en.title]);let t_=(0,u.pX)(null==en?void 0:en.price_reduction),tN=hasListingImages(en),tS=!tN&&hasListingImages(en),tC=hasListingImages(en),tk=(null!==(N=null==en?void 0:null===(a=en.description)||void 0===a?void 0:a.length)&&void 0!==N?N:0)>400,tA=(0,i.useMemo)(()=>(function(e){let t=null==e?void 0:e.listing_images,l=[];return Array.isArray(t)?l=t:"string"==typeof t&&t.trim()&&(l=t.split(",").map(e=>e.trim()).filter(Boolean)),l.map(formatListingGalleryUrl).filter(Boolean)})(en),[null==en?void 0:en.listing_images]),tz=(0,i.useMemo)(()=>Array.isArray(tA)?tA.slice(0,5):[],[tA]),tL=tz[0]||"";(0,i.useEffect)(()=>{if(!tL){e9(!1),e8.current=null;return}let e=e8.current,t=null!=e&&e!==tL;if(e8.current=tL,!t&&!e4)return;let l=!1,n=new window.Image,finish=()=>{l||e9(!1)};return n.onload=finish,n.onerror=finish,n.src=tL,n.complete&&finish(),()=>{l=!0}},[tL,e4]);let tP=tA.length>1?1:0,tI=(0,i.useMemo)(()=>tA.length<=1?[]:tA.slice(tP,tP+4),[tA,tP]),tq=(0,i.useMemo)(()=>{var e,t;return function(e){if(null==e||""===e)return[];let t=e;if("string"==typeof t){let e=t.trim();if(!e)return[];if(!e.startsWith("["))return splitAmenityListString(e);try{t=JSON.parse(e)}catch(t){return splitAmenityListString(e)}}return Array.isArray(t)?t.flatMap(e=>"string"==typeof e?splitAmenityListString(e):e&&"object"==typeof e?splitAmenityListString(e.label||e.name||e.value||""):[]):[]}(null!==(t=null==en?void 0:en.amenities)&&void 0!==t?t:null==en?void 0:null===(e=en.listing_details)||void 0===e?void 0:e.amenities)},[null==en?void 0:en.amenities,null==en?void 0:null===(o=en.listing_details)||void 0===o?void 0:o.amenities]),tE=tq.map(e=>({"@type":"LocationFeatureSpecification",name:e,value:!0})),tD=(0,i.useMemo)(()=>{let e=function(e){if(null==e||""===e)return[];if(Array.isArray(e))return e.filter(e=>null!=e&&""!==e);if("string"==typeof e){let t=e.trim();if(!t)return[];if(t.startsWith("["))try{let e=JSON.parse(t);return Array.isArray(e)?e.filter(e=>null!=e&&""!==e):[]}catch(e){}return t.split(",").map(e=>e.trim()).filter(Boolean)}return[e]}(null==en?void 0:en.curation),t=e.map(m.tx).filter(Boolean);return[...new Set(t)]},[null==en?void 0:en.curation]),tB=(0,i.useMemo)(()=>{let e=null==en?void 0:en.lifestyle;if(null==e||""===e)return"";let t=String(Array.isArray(e)?e[0]:e).trim(),l={8:"Waterfront Properties",9:"Downtown Living",10:"Marina Living",11:"Residential Communities",12:"Luxury Penthouse",13:"Golf Estates",14:"Beachfront"};return l[t]||l[Number(t)]||""},[null==en?void 0:en.lifestyle]),tM=tD.length>0||!!tB,tG=(0,i.useMemo)(()=>{let e=String((null==en?void 0:en.completed_status)||"").trim();if(!e||["YES","Y"].includes(e.toUpperCase()))return!1;let t=e.toLowerCase().replace(/[\s-]+/g,"_").replace(/_+/g,"_");return"offplan_primary"!==t&&"offplan_secondary"!==t&&"off_plan_primary"!==t&&"off_plan_secondary"!==t||!tM},[null==en?void 0:en.completed_status,tM]),tZ=function(){let[e,t]=(0,i.useState)(!1);return(0,i.useEffect)(()=>{let enable=()=>{"function"==typeof window.requestIdleCallback?window.requestIdleCallback(()=>t(!0),{timeout:2e3}):window.setTimeout(()=>t(!0),0)};if("complete"===document.readyState){enable();return}return window.addEventListener("load",enable,{once:!0}),()=>window.removeEventListener("load",enable)},[]),e}(),tO=function(){let[e,t]=(0,i.useState)(!1);return(0,i.useEffect)(()=>(0,A.T)(()=>t(!0)),[]),e}(),tT=tA[0]||(["Villa","Townhouse"].includes(null==en?void 0:en.property_category)?"".concat(J,"ctm-villa.webp"):["Apartment","Penthouse"].includes(null==en?void 0:en.property_category)?"".concat(J,"ctm-apartment.webp"):""),tF=(null==en?void 0:en.listing_images_alt)||(null==en?void 0:en.title)||"Property photo",tR=getListingVideoUrl(en);return(0,i.useEffect)(()=>{eG(e=>tA.length?e>=tA.length?tA.length-1:e:0)},[tA.length]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(c(),{children:[(0,n.jsx)("title",{children:tp}),th?(0,n.jsx)("meta",{name:"description",content:th}):null,(0,n.jsx)("meta",{property:"og:type",content:"website"}),(0,n.jsx)("meta",{property:"og:url",content:tx}),tp?(0,n.jsx)("meta",{property:"og:title",content:tp}):null,th?(0,n.jsx)("meta",{property:"og:description",content:th}):null,(0,n.jsx)("meta",{property:"og:image",content:tg}),(0,n.jsx)("meta",{property:"og:image:secure_url",content:tg}),(0,n.jsx)("meta",{property:"og:image:type",content:"image/jpeg"}),(0,n.jsx)("meta",{property:"og:image:alt",content:tp||"Property listing"}),(0,n.jsx)("link",{rel:"image_src",href:tg}),(0,n.jsx)("meta",{name:"twitter:card",content:"summary_large_image"}),tp?(0,n.jsx)("meta",{name:"twitter:title",content:tp}):null,th?(0,n.jsx)("meta",{name:"twitter:description",content:th}):null,(0,n.jsx)("meta",{name:"twitter:image",content:tg}),(null==en?void 0:en.title)&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify({"@context":"https://schema.org","@type":"SingleFamilyResidence",name:en.title,de
1scription:null===(g=en.description)||void 0===g?void 0:null===(s=g.replace(/<[^>]+>/g,""))||void 0===s?void 0:s.slice(0,300),url:tv,address:{"@type":"PostalAddress",streetAddress:"".concat((null==en?void 0:en.sub_community)||"",", ").concat((null==en?void 0:en.community)||""),addressLocality:"Dubai",addressRegion:"Dubai",addressCountry:{"@type":"Country",name:"AE"}},geo:{"@type":"GeoCoordinates",latitude:(null==en?void 0:en.latitude)||25.112,longitude:(null==en?void 0:en.longitude)||55.1386},numberOfRooms:(null==en?void 0:en.bedrooms)||0,numberOfBathroomsTotal:(null==en?void 0:en.bathrooms)||0,floorSize:{"@type":"QuantitativeValue",value:parseInt(null==en?void 0:null===(j=en.bua)||void 0===j?void 0:j.replace(/,/g,""))||0,unitCode:"SQF"},image:(()=>{let e=null==en?void 0:en.listing_images,t="https://www1.luxuryproperty.com/";return Array.isArray(e)?e.slice(0,20).map(e=>"".concat(t).concat(e)):"string"==typeof e?e.split(",").slice(0,20).map(e=>"".concat(t).concat(e)):[]})(),amenityFeature:tE,offers:{"@type":"Offer",price:(null==en?void 0:en.price)||0,priceCurrency:(null==en?void 0:en.currency)||"AED",availability:"https://schema.org/InStock",url:tv,seller:{"@type":"RealEstateAgent",name:"LuxuryProperty.com",url:"https://www.luxuryproperty.com",telephone:"+971 4 563 5900",email:"[email protected]"}}})}}),(null==tm?void 0:tm.length)>0&&(0,n.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify({"@context":"https://schema.org","@type":"FAQPage",mainEntity:er.filter(e=>e.question&&""!==e.question.trim()).map(e=>({"@type":"Question",name:e.question,acceptedAnswer:{"@type":"Answer",text:e.answer||""}}))})}}),getListingVideoUrl(en)&&(()=>{let e=getListingVideoUrl(en),t=function(e){let t=getYoutubeVideoId(e);return t?"https://img.youtube.com/vi/".concat(t,"/hqdefault.jpg"):null}(e);return(0,n.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify({"@context":"https://schema.org","@type":"VideoObject",name:en.title,description:(en.description||en.meta_description||"").replace(/<[^>]+>/g,"").replace(/\s+/g," ").trim(),...t?{thumbnailUrl:[t]}:{},uploadDate:(null==en?void 0:en.created_at)?new Date(en.created_at).toISOString():void 0,duration:"PT2M15S",embedUrl:e,contentUrl:e,url:e,publisher:{"@type":"Organization",name:"LuxuryProperty.com",logo:{"@type":"ImageObject",url:J+"LP-NExa-Black-MWebsite.svg"}}})}})})()]}),et&&et.length>0&&et.robots&&(0,n.jsx)("meta",{name:"robots",content:""}),(0,n.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"})]}),(0,n.jsx)(d.Z,{headerClassName:"property-header",children:(0,n.jsx)("div",{className:"default_section pt-6 pb-0",children:(0,n.jsxs)("div",{className:"default_container",children:[(0,n.jsxs)("div",{className:"flex flex-col md:flex-row justify-between items-center gap-6 mb-6",children:[(0,n.jsx)("div",{className:"md:w-6/12 w-full",children:(0,n.jsx)(w.Z,{labelMap:{[String((null==en?void 0:en.sub_community)||"")]:null==en?void 0:en.sub_community,[String((null==en?void 0:en.community)||"")]:null==en?void 0:en.community,[String((null==en?void 0:en.title)||"")]:null==en?void 0:en.title}})}),(0,n.jsx)("div",{className:"md:w-6/12 w-full",children:(0,n.jsxs)("div",{className:"flex justify-end gap-4",children:[(0,n.jsx)(z.default,{listing:en,text:"SAVE"}),(0,n.jsxs)(L.z,{type:"button",onClick:e=>{e.preventDefault(),ej(!0)},variant:"outline",size:"small",className:"color-text font-size-xsmall p-2 py-1",children:[(0,n.jsx)(P.Z,{className:"size-3","aria-hidden":!0}),(0,n.jsx)("span",{className:"uppercase font-medium font-size-xsmall",children:"Share"})]})]})})]}),tN?e4?(0,n.jsx)(HeroGalleryBannerSkeleton,{}):(0,n.jsx)(HeroGalleryBanner,{images:tz,onImageClick:openModal,imageAlt:tF},(null==en?void 0:en.refno)||(null==en?void 0:en.slug)||ez.asPath):null,(0,n.jsxs)("div",{className:"mt-8 grid min-w-0 max-w-full grid-cols-12 gap-6 lg:gap-12",children:[(0,n.jsxs)("div",{className:"col-span-12 min-h-0 min-w-0 lg:col-span-8 xl:col-span-9",children:[(0,n.jsxs)("div",{className:"mb-3 flex flex-row flex-wrap items-center gap-2",children:[en.property_for?(0,n.jsx)("div",{className:"tag dark",children:en.property_for}):null,tG?(0,n.jsx)("div",{className:"tag border",children:String(null!=(S=en.completed_status)?S:"").trim().replace(/_/g," ")}):null,tD.map((e,t)=>(0,n.jsx)("div",{className:"tag border",children:e},"".concat(e,"-").concat(t))),tB?(0,n.jsx)("div",{className:"tag border",children:tB}):null]}),(0,n.jsxs)("div",{className:"grid grid-cols-12 gap-6 lg:gap-2",children:[(0,n.jsxs)("div",{className:"col-span-12 min-w-0 lg:col-span-8",children:[(0,n.jsx)("h1",{className:"default_title",children:en.title}),(0,n.jsxs)("p",{className:"font-size-body color-text flex items-center gap-2 mt-2",children:[(0,n.jsx)(I.Z,{className:"mt-0.5 size-5 color-primary"}),tb]})]}),(0,n.jsxs)("div",{className:"col-span-12 min-w-0 lg:col-span-4",children:[(0,n.jsxs)("h2",{className:"font-size-h4 font-primary justify-start lg:justify-end flex flex-row flex-wrap items-center gap-1.5",children:[(0,n.jsx)("span",{className:"flex items-center gap-1.5",children:"Y"===en.poa||0===en.price||"0"===en.price||null==en.price?"Price on Application":"AED"===en.currency?(0,u.O2)(en.price):(0,u.T4)(en.price,en.currency)}),t_?(0,n.jsxs)("span",{className:"inline-flex items-center gap-1 font-size-medium font-semibold leading-none text-[#c62828]","aria-label":"Price reduced by ".concat(t_),children:[(0,n.jsx)(y(),{src:"/reduce-arrow.png",alt:"",width:11,height:22,className:"h-[0.95em] w-auto object-contain","aria-hidden":!0}),(0,n.jsx)("span",{children:t_})]}):null]}),(0,n.jsx)(G.Z,{listing:en,className:"mt-1.5 justify-start lg:justify-end"})]})]}),(0,n.jsx)(E.Z,{className:"my-4"}),(0,n.jsx)("div",{className:"flex flex-col md:flex-row items-start md:items-center justify-start gap-4 md:gap-12",children:[{label:"Property Type",value:en.property_category},{label:"Bedrooms",value:en.bedrooms},{label:"Bathrooms",value:en.bathrooms},{label:"Built-Up Area",value:en.bua},{label:"Refno:",value:en.refno}].filter(e=>!!e.value).map(e=>(0,n.jsxs)("div",{className:"flex flex-col",children:[(0,n.jsx)("span",{className:"font-size-body color-text",children:e.label}),(0,n.jsx)("span",{className:"font-size-body color-primary font-medium",children:e.value})]},e.label))}),(0,n.jsx)(E.Z,{className:"mt-4 mb-8"}),(0,n.jsx)("h2",{className:"default_title --small mb-2",children:"About this property"}),en.description?(0,n.jsxs)(n.Fragment,{children:[tk?(0,n.jsx)("noscript",{children:(0,n.jsx)("style",{children:"\n .js-description-content .listing-description-body {\n display: block !important;\n overflow: visible !important;\n -webkit-line-clamp: unset !important;\n -webkit-box-orient: initial !important;\n }\n .js-description-toggle {\n display: none !important;\n }\n "})}):null,(0,n.jsxs)("div",{className:"space-y-3 description_content js-description-content",children:[(0,n.jsx)("div",{className:"listing-description-body font-size-body color-text break-words ".concat(tk&&!eZ?"line-clamp-[6]":""),dangerouslySetInnerHTML:{__html:en.description}}),tk?(0,n.jsx)("button",{type:"button",className:"show_content_button js-description-toggle",onClick:()=>eO(e=>!e),children:eZ?"Show less":"Show more"}):null]})]}):(0,n.jsx)("p",{className:"font-size-body color-text",children:"N/A"}),tq.length>0?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(E.Z,{className:"my-8"}),(0,n.jsx)("h2",{className:"default_title --small mb-4",children:"Features & Amenities"}),(0,n.jsx)("div",{className:"overflow-hidden rounded-[var(--border-radius-medium)] border border-solid border-[var(--color-bg-light)]",children:(0,n.jsx)("div",{className:"grid grid-cols-1 gap-px sm:grid-cols-2 md:grid-cols-3",children:tq.map((e,t)=>(0,n.jsxs)("div",{className:"flex items-center gap-3 bg-white px-4 py-2",children:[(0,n.jsx)("span",{className:"flex h-6 w-6 shrink-0 items-center justify-center rounded-full bg-[var(--color-bg-light)]","aria-hidden":!0,
1children:(0,n.jsx)(q.Z,{className:"h-3 w-3 text-[#25D366]",strokeWidth:2.5})}),(0,n.jsx)("span",{className:"font-size-small font-medium color-text",children:e})]},"".concat(e,"-").concat(t)))})})]}):null,tN&&tz.length>0?null:(0,n.jsxs)("div",{className:"relative mt-8 h-80 overflow-hidden lg:h-[38.75rem]",children:[tT?(0,n.jsx)("noscript",{children:(0,n.jsx)("img",{src:tT,alt:tF,style:{width:"100%",height:"100%",objectFit:"cover"}})}):null,tS&&(0,n.jsx)("button",{type:"button",className:"absolute z-[9] bg-white text-[#151515] h-9 md:h-[46px] md:pt-1 px-4 rounded-full capitalize bottom-2 left-2 border border-[rgba(21,21,21,0.16)] text-sm hover:bg-[#f0f0f0] hover:text-black cursor-pointer",onClick:()=>openDrawer(0),children:"Show All Photos"}),(0,n.jsx)(Z,{data:en,style:{marginBottom:"1rem"},show_image:$})]}),tN&&tI.length>0&&(0,n.jsxs)("div",{className:"mt-8 min-w-0 max-w-full",children:[(0,n.jsx)("div",{className:"flex min-w-0 max-w-full gap-3 max-md:overflow-x-auto max-md:snap-x max-md:pb-1",children:tI.map((e,t)=>(0,n.jsx)("button",{type:"button",onClick:()=>openModal(tP+t),className:"aspect-[16/9] min-w-0 flex-1 overflow-hidden rounded-[10px] border-0 bg-transparent p-0 max-md:min-w-[72%] max-md:flex-none max-md:snap-center","aria-label":"View property photo ".concat(tP+t+1),children:(0,n.jsx)(LazyGalleryImage,{src:e,enabled:tZ,className:"h-full w-full",alt:"".concat(tF," ").concat(tP+t+1),sizes:"(max-width: 767px) 72vw, 22vw"})},"".concat(e,"-").concat(t)))}),(0,n.jsxs)("div",{className:"mt-4 flex min-w-0 max-w-full flex-row flex-wrap gap-4",children:[(0,n.jsx)(L.z,{type:"button",variant:"outline",onClick:()=>openModal(0),children:"Show All Photos"}),(0,n.jsx)(L.z,{type:"button",variant:"outline",onClick:()=>ts("floorplan"),children:"Request Floor Plan"})]})]}),tO&&tR?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(E.Z,{className:"my-8"}),(0,n.jsxs)("div",{className:"border-t border-[rgba(21,21,21,0.06)] mx-auto flex flex-col gap-4",children:[(0,n.jsx)("h3",{className:"default_title --small m-0",children:"Video Tour"}),(0,n.jsx)("div",{className:"relative aspect-video w-full overflow-hidden rounded-[var(--border-radius-medium)] border border-solid border-[var(--color-border)] bg-black",children:/\.(mp4|webm|ogg)(\?|$)/i.test(String(tR||"").trim())?(0,n.jsx)("video",{src:tR,controls:!0,playsInline:!0,className:"h-full w-full object-contain",title:"Property video tour"}):(0,n.jsx)("iframe",{src:function(e){let t=String(e||"").trim();if(!t)return"";let l=getYoutubeVideoId(t);if(l)return"https://www.youtube.com/embed/".concat(l);let n=t.match(/vimeo\.com\/(?:video\/)?(\d+)/i);return n?"https://player.vimeo.com/video/".concat(n[1]):t}(tR),title:"Property video tour",className:"absolute inset-0 h-full w-full border-0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",allowFullScreen:!0})})]})]}):null,(0,n.jsx)(E.Z,{className:"my-8"}),(0,n.jsxs)("div",{className:"flex flex-col md:flex-row justify-between mt-8 gap-12",children:[(0,n.jsxs)("div",{className:"w-full md:w-7/12",children:[(0,n.jsxs)("div",{className:"flex flex-col justify-between gap-3 mb-6",children:[(0,n.jsx)("h3",{className:"default_title --small mb-3",children:"Ask a question"}),(0,n.jsx)(V,{...ta,fullDetail:!0})]}),(0,n.jsxs)("div",{className:"",children:[(0,n.jsx)("label",{htmlFor:"listing-agent-message",className:"sr-only",children:"Ask the agent for more information"}),(0,n.jsx)(M.g,{id:"listing-agent-message",rows:2,className:"",placeholder:"Ask the agent for more information",onChange:e=>eF(e.target.value)}),(0,n.jsx)(L.z,{type:"button",className:"mt-4",size:"small",onClick:()=>ts("question"),children:"Ask A Question"})]})]}),tC&&(0,n.jsx)("div",{className:"w-full md:w-4/12 ml-auto",children:(0,n.jsxs)("div",{className:"flex flex-col justify-between gap-6 h-full",children:[(0,n.jsxs)("div",{className:"relative",children:[(0,n.jsx)("h3",{className:"default_title --small mb-3",children:"PDF brochure"}),(0,n.jsx)("p",{className:"mt-2 font-size-small color-text",children:"All the details you need about your favorite property, neatly packed into one handy file."})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)(y(),{src:J+"/images/PropertyBrochure1.jpg",width:300,height:150,className:"cursor-pointer border border-[rgba(21,21,21,0.16)] object-cover mb-6",alt:en.title,loading:"lazy",onClick:handleOpenBrochure}),(0,n.jsx)(L.z,{type:"button",size:"small",onClick:handleOpenBrochure,children:"Download Brochure"})]})]})})]})]}),(0,n.jsx)("div",{className:"col-span-12 min-w-0 lg:col-span-4 xl:col-span-3",children:(0,n.jsxs)("div",{className:"flex flex-col gap-8 lg:sticky lg:top-6",children:[(0,n.jsx)(D.Z,{listing:en,dealerData:tw,dealerWhatsAppPhone:function(e){let t=null!=e?String(e).trim():"";if(!t)return"";let l=t.replace(/[^\d+]/g,"");return l.startsWith("+")?l.slice(1).replace(/\+/g,""):l.replace(/\+/g,"")}(tl),whatsAppMessage:tj,callButtonLabel:"Call Agent",className:"max-md:hidden"}),(0,n.jsx)(R,{listingKind:"property",onSubmit:submitSidebarInquiry,inquiryName:eR,setInquiryName:eV,inquiryEmail:eU,setInquiryEmail:eW,inquiryPhone:eH,setInquiryPhone:eY,inquiryMessage:eK,setInquiryMessage:eJ,inquiryAlerts:eQ,setInquiryAlerts:e$,inquiryErrors:eX,setInquiryErrors:e0,phoneDefaultCountry:e1}),en&&(null==en?void 0:en.international)=="0"&&(0,n.jsxs)("div",{className:"flex flex-col items-center justify-center",children:[(0,n.jsxs)("div",{className:"mb-4 flex flex-row items-center gap-2",children:[(0,n.jsx)("span",{className:"font-semibold",children:"DLD Permit Number:"}),(0,n.jsx)("span",{className:"group relative inline-flex cursor-help",title:"Issued to RERA registered companies and Dubai developers as confirmation of their right to advertise properties.",children:(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"
1currentColor",className:"h-5 w-5 opacity-80 group-hover:opacity-60","aria-hidden":!0,children:(0,n.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z"})})})]}),(null==en?void 0:en.qr)==""||(null==en?void 0:en.qr)==null?(0,n.jsx)("img",{src:"/LP-Traskheesi-default.png",width:160,height:160,alt:"Trakheesi RERA Issued No ".concat((null==en?void 0:en.reference_number)||(null==en?void 0:en.refno)||"")}):(0,n.jsx)("img",{src:K+(null==en?void 0:en.qr),width:160,height:160,alt:"Trakheesi RERA Issued No ".concat((null==en?void 0:en.reference_number)||(null==en?void 0:en.refno)||"")})]})]})})]}),(0,n.jsx)(E.Z,{className:"my-8"}),tO?(0,n.jsx)(i.Suspense,{fallback:(0,n.jsx)(BlockSkeleton,{}),children:(0,n.jsx)(Y,{data:er})}):null,(0,n.jsx)(E.Z,{className:"my-8"}),eh.length>0&&(0,n.jsx)("div",{ref:ep,className:"flex w-full flex-col border-0 py-6 pb-12 shadow-none",children:eu?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("h2",{className:"font-semibold mb-4",children:"You might also like"}),(0,n.jsxs)("div",{className:"grid grid-cols-1 items-stretch gap-6 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4",children:[0===eo.length&&ec?(0,n.jsx)("div",{className:"flex h-full min-h-0 min-w-0 flex-col",children:(0,n.jsx)(b.Z,{})}):eo.map((e,t)=>(0,n.jsx)("div",{className:"flex h-full min-h-0 min-w-0 flex-col",children:(0,n.jsx)(b.C,{item:function(e){var t,l,n;if(!e||"object"!=typeof e)return e;let i={...e};if("string"==typeof i.image&&i.image.includes(",")){let e=null===(t=i.image.split(",")[0])||void 0===t?void 0:t.trim();e&&(i.image=e)}let r="Y"===String(null!==(l=i.poa)&&void 0!==l?l:"").toUpperCase(),a=String(null!==(n=i.status)&&void 0!==n?n:"Y").toUpperCase(),o=i.price;return(r||"Y"!==a||null==o||""===o||0===Number(o))&&(i.price=null),i}(e),listingType:"realestate",imageLoading:"lazy",imageSizes:"(max-width: 639px) 100vw, (max-width: 1023px) 50vw, 33vw"})},(null==e?void 0:e.refno)||(null==e?void 0:e.slug)||(null==e?void 0:e.web_id)||(null==e?void 0:e.id)||"related-".concat(t))),eo.length>0&&ec&&Array.from({length:Math.max(0,6-eo.length)}).map((e,t)=>(0,n.jsx)("div",{className:"flex h-full min-h-0 min-w-0 flex-col",children:(0,n.jsx)(b.Z,{})},"related-skeleton-".concat(t)))]})]}):(0,n.jsx)("div",{className:"min-h-[1px]","aria-hidden":!0})}),ef&&(0,n.jsxs)("div",{className:"fixed top-4 right-4 z-[10001] flex max-w-sm items-center gap-3 rounded-lg bg-[#151515] px-4 py-3 text-sm text-white shadow-lg",role:"status",children:[(0,n.jsx)("span",{children:ey}),(0,n.jsx)("button",{type:"button",onClick:()=>{eg(!1)},className:"ml-2 text-white/80 hover:text-white","aria-label":"Dismiss",children:"\xd7"})]})]})})}),tO?(0,n.jsx)(O,{}):null,(0,n.jsx)(ListingModal,{open:ev,onClose:tc,labelledBy:"listing-data-grab",describedBy:"listing-data-grab-lead",panelClassName:"md:max-w-[35rem]",children:ev?(0,n.jsx)(U,{data:en,message:e_,content:eT}):null}),(0,n.jsxs)(ListingModal,{open:eS,onClose:()=>{eC(!1)},labelledBy:"listing-call-grab",describedBy:"listing-call-grab-lead",bottomSheetOnMobile:!0,panelClassName:"md:max-w-[35rem]",children:[(0,n.jsx)("h2",{className:"text-lg md:text-[26px] font-semibold my-4",children:"Contact Agent"}),(0,n.jsx)(V,{...ta,style:{margin:"1rem 0"}}),(0,n.jsxs)("div",{className:"my-6 flex flex-row items-center gap-2",children:[(0,n.jsx)(y(),{src:"/svg/call.svg",width:17,height:17,alt:""}),(0,n.jsx)("a",{href:tn,className:"font-semibold text-[#151515] text-[1.4rem]",children:tl})]}),(0,n.jsxs)("p",{className:"text-sm",children:["Kindly mention reference number ",(0,n.jsx)("span",{className:"font-bold",children:en.refno})," when reaching out to us."]})]}),(0,n.jsx)(ListingModal,{open:ew,onClose:()=>{ej(!1)},labelledBy:"share-listing",describedBy:"share-listing-property",children:ew&&(0,n.jsx)(W,{refno:en.refno,title:en.title})}),(0,n.jsx)(ListingModal,{open:ek,onClose:handleCloseBrochure,labelledBy:"listing-brochure-grab",describedBy:"listing-brochure-grab-lead",bottomSheetOnMobile:!0,panelClassName:"h-[25rem] overflow-hidden md:max-w-[35vw] md:min-w-[320px]",children:ek?(0,n.jsx)(T,{data:en,onFormSubmit:handleCloseBrochure}):null}),eD?(0,n.jsx)(F,{open:eD,onClose:()=>eB(!1),images:tA,selectedIndex:eM,title:(null==en?void 0:en.title)||X||"Property"}):null,eP?(0,n.jsx)(H,{isOpen:eP,onClose:()=>{eI(!1)},data:en,preindex:eq}):null,(0,n.jsxs)("div",{className:"md:hidden fixed bottom-0 z-[9999] flex h-[90px] w-full max-w-full flex-row items-center justify-between border-t border-[rgba(21,21,21,0.6)] bg-white px-[1.2rem]
1shadow-[0_0_15px_rgba(21,21,21,0.2)]",children:[(0,n.jsx)("button",{type:"button",className:(0,v.cn)(Q,"bg-[#151515] text-white hover:bg-[#151515] hover:text-white"),"aria-label":"Email",children:"Email"}),(0,n.jsx)("a",{href:tn,className:Q,children:"Call"}),(0,n.jsx)("button",{type:"button",className:"default_button --outline w-[33.33%] max-w-full mx-2 bg-[#25d366] text-white",onClick:function(e){e.preventDefault(),"function"==typeof window.gtag_report_conversion&&window.gtag_report_conversion(eL);let t=(null==en?void 0:en.property_title)||(null==en?void 0:en.title)||"",l=(null==en?void 0:en.refno)||"",n=(null==en?void 0:en.currency)||"AED",i=null==en?void 0:en.price,r=null!=i&&""!==i?"".concat(n," ").concat(String(i).replace(/\B(?=(\d{3})+(?!\d))/g,",")):"",a=trimContact(null==en?void 0:en.slug),o=(eL||"").split("?")[0],s=a?"https://www.luxuryproperty.com/".concat(a.replace(/^\//,"")):o&&"/"!==o?"https://www.luxuryproperty.com".concat(o.startsWith("/")?o:"/".concat(o)):l?"https://www.luxuryproperty.com/".concat(String(l).toLowerCase()):"https://www.luxuryproperty.com",c=trimContact(to)||"Luxury Property",d=["Hi ".concat(c,","),"","I am interested in this property:","*Property:* ".concat(t)];r&&d.push("*Price:* ".concat(r)),l&&d.push("*Reference:* ".concat(l)),d.push("Link: ".concat(s)),window.open("https://wa.me/".concat(ti||"442034428504","?text=").concat(encodeURIComponent(d.join("\n"))),"_blank")},children:"WhatsApp"})]})]})}},5977:function(e,t,l){l.r(t),l.d(t,{listingHasFeatureItems:function(){return listingHasFeatureItems}});var n=l(85893);l(67294);var i=l(51233),r=l(87357),a=l(15861);let o=[{key:"view",title:"View"},{key:"outdoor",title:"Outdoor"},{key:"indoor",title:"Indoor"},{key:"lot_features",title:"Lot features"}];function normalizeFeatureSections(e){var t,l;if(!e||"object"!=typeof e)return[];let n=null!==(l=null===(t=e.listing_details)||void 0===t?void 0:t.features)&&void 0!==l?l:e.features;
1if(Array.isArray(n))return[{title:null,items:n.filter(Boolean)}];let i=n&&"object"==typeof n&&!Array.isArray(n)?n:null!=e.view||null!=e.outdoor||null!=e.indoor||null!=e.lot_features?e:null;if(!i||"object"!=typeof i)return[];if(Array.isArray(i.features))return[{title:null,items:i.features.filter(Boolean)}];let r=[];for(let{key:e,title:t}of o){let l=i[e];Array.isArray(l)&&l.length>0&&r.push({title:t,items:l.map(e=>String(e).trim()).filter(Boolean)})}if(0===r.length)for(let[e,t]of Object.entries(i))"features"!==e&&"object"==typeof t&&Array.isArray(t)&&t.length>0&&r.push({title:String(e).replace(/_/g," ").replace(/\b\w/g,e=>e.toUpperCase()),items:t.map(e=>String(e).trim()).filter(Boolean)});return r}function listingHasFeatureItems(e){return normalizeFeatureSections(e).length>0}let s={m:0,pl:2.25,listStyleType:"disc",listStylePosition:"outside",color:"rgba(21,21,21,0.88)",display:"grid",gridTemplateColumns:{xs:"1fr",sm:"repeat(2, 1fr)",md:"repeat(3, 1fr)"},columnGap:3,rowGap:.375,"& li":{display:"list-item",fontSize:"0.875rem",lineHeight:1.5,paddingLeft:"0.35rem"}};t.default=e=>{let t=normalizeFeatureSections(e.features);return t.length?(0,n.jsx)(i.Z,{spacing:3,sx:{width:"100%"},children:t.map((e,t)=>{var l,i;return(null===(l=e.items)||void 0===l?void 0:l.length)?(0,n.jsxs)(r.Z,{children:[e.title&&(0,n.jsx)(a.Z,{variant:"subtitle2",component:"h3",sx:{fontSize:{xs:"0.75rem",md:"0.8125rem"},letterSpacing:"0.12em",textTransform:"uppercase",color:"rgba(21,21,21,0.45)",fontWeight:600,mb:1.25},children:e.title}),(0,n.jsx)(r.Z,{component:"ul",sx:s,children:e.items.map((e,l)=>(0,n.jsx)(r.Z,{component:"li",children:e},"".concat(t,"-").concat(l,"-").concat(e.slice(0,32))))})]},null!==(i=e.title)&&void 0!==i?i:"section-".concat(t)):null})}):null}},81037:function(e,t,l){l.d(t,{Z:function(){return ListingDealerContactCard}});var n=l(85893),i=l(67294),r=l(19769),a=l(5097),o=l(17337);l(75439);var s=l(52600),c=l(52535),d=l(64697);let trimOrEmpty=e=>null!=e&&""!==String(e).trim()?String(e).trim():"",firstContactValue=function(){for(var e=arguments.length,t=Array(e),l=0;l<e;l++)t[l]=arguments[l];for(let e of t){let t=trimOrEmpty(e);if(t)return t}return""},toWhatsAppPhone=e=>{let t=null!=e?String(e).trim():"";if(!t)return"";let l=t.replace(/[^\d+]/g,"");return l.startsWith("+")?l.slice(1).replace(/\+/g,""):l.replace(/\+/g,"")},hasCompanyDetail=e=>{if(!e)return!1;let t=e.company;return!!(trimOrEmpty((null==t?void 0:t.company_logo)||e.company_logo)||trimOrEmpty(null==t?void 0:t.company_name)||trimOrEmpty((null==t?void 0:t.company_email)||e.company_email)||trimOrEmpty((null==t?void 0:t.company_phone)||e.company_phone))};function ListingDealerContactCard(e){let{listing:t,dealerData:l,dealerWhatsAppPhone:u,whatsAppMessage:m,callButtonLabel:p="Call Agent",comfortableSpacing:h=!1,className:f}=e,{callPhone:g,whatsappPhone:y}=(0,i.useMemo)(()=>{var e;let n=(null==t?void 0:t.user)&&"object"==typeof t.user?t.user:null,i=firstContactValue(null==t?void 0:null===(e=t.company)||void 0===e?void 0:e.company_phone,null==t?void 0:t.company_phone),r=firstContactValue(null==t?void 0:t.mobile,null==t?void 0:t.agent_phone,null==t?void 0:t.phone,null==n?void 0:n.mobile,null==n?void 0:n.agent_phone,null==n?void 0:n.phone,null==n?void 0:n.phone_number,null==l?void 0:l.phone),a=firstContactValue(null==t?void 0:t.call_number,null==n?void 0:n.call_number,null==l?void 0:l.call_number,i,r),o=firstContactValue(null==t?void 0:t.whatsapp_number,null==n?void 0:n.whatsapp_number,null==l?void 0:l.whatsapp_number,i,r);return{callPhone:a,whatsappPhone:o}},[t,l]),x=g?"tel:".concat(g):void 0,v=toWhatsAppPhone(y)||u||"",b=v&&m?"https://wa.me/".concat(v,"?text=").concat(encodeURIComponent(m)):void 0;(0,i.useMemo)(()=>!!(t&&hasCompanyDetail(t)),[t]),(0,i.useMemo)(()=>{if(t){let e=t.international;return"Y"===e||"y"===e||1===e||"1"===e||!0===e}return!!(null==l?void 0:l.isIntl)},[t,null==l?void 0:l.isIntl]);let w=(0,i.useMemo)(()=>t?(0,d.zk)(t,{fullDetail:!0,type:"listing"}):(0,d.o9)(l,{fullDetail:!0,type:"listing"}),[t,l]);return(0,n.jsxs)("div",{className:(0,c.cn)("card --border flex flex-col gap-3 p-3 md:p-6",f),children:[(0,n.jsx)("div",{className:"w-full mb-6",children:(0,n.jsx)(o.default,{...w})}),(0,n.jsxs)(s.z,{type:"button",variant:"solid",withIcon:!0,className:"min-w-0 flex-1 !max-w-none font-size-small md:w-full md:flex-none",disabled:!x,onClick:()=>{x&&(window.location.href=x)},children:[(0,n.jsx)(r.Z,{size:16}),p]}),(0,n.jsxs)(s.z,{type:"button",variant:"solid",withIcon:!0,className:"min-w-0 flex-1 !max-w-none font-size-small md:w-full md:flex-none !border-[#25D366] !bg-[#25D366] !text-[var(--color-white)] hover:!bg-[#1fb85a]",disabled:!b,onClick:()=>{b&&(window.location.href=b)},children:[(0,n.jsx)(a.Z,{size:16}),"Chat via WhatsApp"]})]})}},75439:function(e,t,l){l.d(t,{C:function(){return Badge}});var n=l(85893);l(67294);var i=l(12003),r=l(88426),a=l(52535);let o=(0,i.j)("group/badge inline-flex h-5 w-fit shrink-0 items-center justify-center gap-1 overflow-hidden border border-transparent px-2 py-0.5 font-size-xsmall capitalize rounded-[4px] font-medium whitespace-nowrap transition-all focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3!",{variants:{variant:{default:"bg-primary color-white [a]:hover:bg-primary/80",secondary:"bg-secondary text-secondary-foreground [a]:hover:bg-secondary/80",draft:"bg-bg-light color-text [a]:hover:bg-bg-light/80",outline:"border-border text-foreground [a]:hover:bg-muted [a]:hover:text-muted-foreground",pending:"bg-yellow-500 color-white [a]:hover:bg-yellow-500/80",published:"bg-green-500 color-white [a]:hover:bg-green-500/80",expired:"bg-red-500 color-white [a]:hover:bg-red-500/80",cancelled:"bg-red-500 color-white [a]:hover:bg-red-500/80"}},defaultVariants:{variant:"default"}});function Badge(e){let{className:t,variant:l="default",asChild:i=!1,...s}=e,c=i?r.fC:"span";return(0,n.jsx)(c,{"data-slot":"badge","data-variant":l,className:(0,a.cn)(o({variant:l}),t),...s})}},8350:function(e,t,l){l.d(t,{g:function(){return a}});var n=l(85893),i=l(67294),r=l(52535);let a=i.forwardRef(function(e,t){let{className:l,...i}=e;return(0,n.jsx)("textarea",{ref:t,"data-slot":"textarea",className:(0,r.cn)("default_textarea",l),...i})});a.displayName="Textarea"},2537:function(e,t,l){l.d(t,{w:function(){return detectPhoneGeoCountry}});var n=l(6154);function applyGeo(e,t,l,n){n&&e(n),l&&/^[A-Za-z]{2}$/.test(String(l))&&t(String(l).toUpperCase())}function detectPhoneGeoCountry(e,t){(async()=>{try{let l=await fetch("/api/geo/country",{credentials:"same-origin"}),n=await l.json();if(null==n?void 0:n.countryCode){applyGeo(e,t,n.countryCode,n.ip);return}}catch(e){}try{let{data:l}=await n.Z.get("https://ipapi.co/json/",{timeout:8e3});if(applyGeo(e,t,null==l?void 0:l.country_code,null==l?void 0:l.ip),null==l?void 0:l.country_code)return}catch(e){}try{let{data:l}=await n.Z.get("https://ipwho.is/",{timeout:8e3});if((null==l?void 0:l.success)&&(applyGeo(e,t,null==l?void 0:l.country_code,null==l?void 0:l.ip),null==l?void 0:l.country_code))return}catch(e){}try{let{data:t}=await n.Z.get("https://api.ipify.org?format=json",{timeout:8e3});(null==t?void 0:t.ip)&&e(t.ip)}catch(e){console.error("Error fetching IP address:",e)}})()}},94268:function(e,t,l){var n=l(20362);t.Z={detail_endpoint:"/v1/listing-details",fetchPropertyDetailData(e){return n.Z.get("".concat(this.detail_endpoint,"/").concat(e))}}},95215:function(e,t,l){var n=l(20362);t.Z={option_endpoint:"/v1/addlead",option_endpoint_for_update:"/v1/updatelead",postSendAnEnquiry(e){return n.Z.post("".concat(this.option_endpoint),e)},postUpdateAnEnquiry(e){return n.Z.post("".concat(this.option_endpoint_for_update),e)}}}}]);
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.