PageSourceSearch

https://thecapitaldubai.com/_next/static/chunks/pages/properties-2c3ac5a545997753.js

js thecapitaldubai.com collected 2026-10-04 06:45:01 UTC 10,892 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7322],{2203:function(e,t,r){"use strict";r.d(t,{Z:function(){return u}});var a=r(7039),n=r.n(a),i=r(1664),s=r.n(i),l=r(702),c=r(7294),o=r(1163),d=r(5893);function u(e){var t,r=e.page,a=e.type,i=e.divider,u=e.setBreadcrumbsJson,p=e.project,m=void 0===p?{}:p,h=e.layout,j=void 0===h?{}:h,v=e.developer;e.area;var g=(0,l.$G)().t,x=(0,o.useRouter)(),b="en"===x.locale?"/":"/"+x.locale+"/",y="property"===a?Object.keys(j).length?"".concat(0===(t=j.bedrooms)?g("filter.studio"):1===t?t+" "+g("project.Bedroom"):[2,3,4].includes(t)?t+" "+g("project.Bedroom-2"):t+" "+g("project.Bedroom-5")," ").concat(j.property_type.title," ").concat(g("project.in")," ").concat(m.title,", ").concat(m.district.title):"".concat(m.title,", ").concat(m.district.title):"";return(0,c.useEffect)(function(){var e;u((e=[{"@type":"ListItem",position:1,item:{"@id":"https://thecapitaldubai.com".concat(b),name:g("header.Main")}},{"@type":"ListItem",position:2,item:{"@id":"https://thecapitaldubai.com".concat(b).concat(r,"/"),name:g("titles."+r)}}],"project"===a&&e.push({"@type":"ListItem",position:3,item:{"@id":"https://thecapitaldubai.com".concat(b,"developers/").concat(m.developer.slug,"/"),name:m.developer.title}},{"@type":"ListItem",position:4,item:{"@id":"https://thecapitaldubai.com".concat(b,"projects/").concat(m.slug,"/"),name:m.title}}),"property"===a&&e.push({"@type":"ListItem",position:3,item:{"@id":"https://thecapitaldubai.com".concat(b,"projects/").concat(m.slug,"/"),name:m.title}},{"@type":"ListItem",position:4,item:{"@id":"https://thecapitaldubai.com".concat(b,"projects/").concat(m.slug,"/").concat(j.slug,"/"),name:y}}),"area"===a&&e.push({"@type":"ListItem",position:3,item:{"@id":"https://thecapitaldubai.com".concat(b,"areas/").concat(m.slug,"/"),name:m.title}}),{__html:'{\n                        "@context": "https://schema.org",\n                        "@type": "BreadcrumbList",\n                        "itemListElement": '.concat(JSON.stringify(e),"\n                    }\n    ")}))},[]),(0,d.jsxs)(d.Fragment,{children:[!0==i?(0,d.jsx)("div",{className:n().divider}):(0,d.jsx)(d.Fragment,{}),(0,d.jsxs)("ol",{className:n().breadcrumbs,children:[(0,d.jsx)("li",{children:(0,d.jsxs)(s(),{href:"/",children:["/   ",g("header.Main"),"   /   "]})}),(0,d.jsx)("li",{children:"listing"==a?g("titles."+r):(0,d.jsxs)(s(),{href:"/".concat(r),children:[g("titles."+r),"   /   "]})}),"project"==a?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("li",{children:(0,d.jsxs)(s(),{href:"/developers/".concat(m.developer.slug),children:[m.developer.title,"   /   "]})}),(0,d.jsx)("li",{children:m.title})]}):"property"==a?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("li",{children:(0,d.jsxs)(s(),{className:n().property,href:"/projects/".concat(m.slug),children:[m.title,"   /   "]})}),(0,d.jsx)("li",{children:y})]}):"area"==a?(0,d.jsx)(d.Fragment,{children:(0,d.jsx)("li",{children:m.title})}):"blog"==a?(0,d.jsx)(d.Fragment,{children:(0,d.jsx)("li",{children:m.title})}):"developer"==a?(0,d.jsx)(d.Fragment,{children:(0,d.jsx)("li",{children:(void 0===v?{}:v).title})}):(0,d.jsx)(d.Fragment,{})]})]})}},6860:function(e,t,r){"use strict";r.d(t,{Z:function(){return _}});var a=r(9499),n=r(29),i=r(7794),s=r.n(i),l=r(702),c=r(1248),o=r(5148),d=r(554),u=r(7536),p=r(1336),m=r(7294),h=r(6835),j=r(7041),v=r(1163),g=r(8278);r(426);var x=r(3802),b=r(5893);function y(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,a)}return r}function f(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?y(Object(r),!0).forEach(function(t){(0,a.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):y(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function _(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=(0,c.I0)(),r=(0,l.$G)().t,a=(0,u.cI)(),i=a.control,y=a.register,_=a.handleSubmit,N=a.formState.errors;(0,m.useRef)(null);var O=(0,m.useState)(!1);O[0],O[1];var P=[{id:1,name:r("modal.Select budget"),unavailable:!1},{id:2,name:"200 000 - 300 000$",unavailable:!1},{id:3,name:"300 000 - 500 000$",unavailable:!1},{id:4,name:"500 000 - 1 000 000$",unavailable:!1},{id:5,name:"> 1 000 000$",unavailable:!1}],w=(0,m.useState)(P[0]),F=w[0],S=w[1],I=1!=F.id?F.name:"",E=function(e,t){var r,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",i=(0,j.getCookies)(),l=(0,v.useRouter)(),d=(0,m.useState)(""),u=d[0],p=d[1],x=(0,m.useRef)(null),b=(0,c.v9)(o.Ru),y=(0,c.v9)(o.FV);return{handleFormPj:(r=(0,n.Z)(s().mark(function r(n,c){var o,d,u,p,m,j,v,x,f,_,N,O,P,w,F;return s().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return o=document.getElementById("success_pj"),d=document.getElementById("loader_request_pj"),u=document.getElementById("form_cover_pj"),p=c.target.phone?c.target.phone.value.replace(/\s/g,""):"",m=c.target.name?c.target.name.value:"",j=c.target.email?c.target.email.value:"",v=c.target.country?c.target.country.value:"",x=c.target.message?c.target.message.value:"",f="/areas/[slug]"==l.pathname?String(l.query.slug).replaceAll("-"," "):"",_="/developers/[slug]"==l.pathname?String(l.query.slug).replaceAll("-"," "):"",N="/projects/[slug]/[layout]"==l.pathname?b:"",O=null!=y?y:"",f&&(x+=" Area: "+f),_&&(x+=" Developer: "+_),N&&(x+=" Object: "+N),P={form_name:e,page_url:"https://thecapitaldubai.com"+l.asPath,page_title:document.title,info:{"Form name":e,phone:p,name:m,email:j,budget:a||"",message:x,country:v,clientIp:O}},Object.keys(i).length&&Object.entries(i).map(function(e){var t=(0,h.Z)(e,2),r=t[0],a=t[1];r.includes("utm")&&(P.info[r]=a)}),!0==(w=!0)&&(u&&(u.style.filter="blur(4px)"),d.style.display="flex",c.target.setAttribute("disabled","true")),r.next=22,(0,g.C)("https://api.thecapitaldubai.com/api/lead",P,l.locale);case 22:200==(F=r.sent).status&&null!==t?(w=!1,gtag("event","conversion",{send_to:"AW-11056981005/TReyCNey7oYYEI3IsJgp",transaction_id:""}),gtag("event","submit_form_lead",{event_category:"Request Project Form",event_label:"Request Project Form",value:"Request Project Form"})):200==F.status&&null===t&&(w=!1,c.target.reset(),c.target.style.display="none",o&&(o.style.display="block")),!1===w&&(d&&(d.style.display="none"),u&&(u.style.display="none"),o&&(o.style.display="block"));case 25:case"end":return r.stop()}},r)})),function(e,t){return r.apply(this,arguments)}),ref:x,phone:u,setPhone:p}}(e.type?e.type:"",function(){return t((0,o.Z7)(!1))},I).handleFormPj;return(0,b.jsxs)("div",{className:"request_wrap_project",children:[(0,b.jsxs)("form",{className:"form_request_project",id:"form_cover_pj",onSubmit:_(E),children:[(0,b.jsxs)("div",{className:"input_wrap",children:[(0,b.jsx)("input",f(f({type:"text",name:"name",placeholder:r("main.Name"),title:r("main.Name")}
1,y("name")),y("name",{validate:{invalid:function(e){return/^[a-zA-Zа-яА-ЯёЁіІїЇєЄ](?:[a-zA-Zа-яА-ЯёЁіІїЇєЄ\-_\'ʼʺ]{1,20}\s?){1,3}$/.test(e)}}}))),N.name&&"required"===N.name.type&&(0,b.jsx)("div",{className:"error",children:r("modal.Field is required")}),N.name&&"invalid"===N.name.type&&(0,b.jsx)("div",{className:"error",children:r("modal.Field is invalid")})]}),(0,b.jsxs)("div",{className:"input_wrap",children:[(0,b.jsx)(u.Qr,{control:i,name:"phone",rules:{validate:function(e){return Boolean(e)&&(0,p.tm)(e)}},render:function(e){var t=e.field;return(0,b.jsx)(d.Z,f(f({},t),{},{countryCode:!0}))}}),N.phone&&(0,b.jsx)("div",{className:"error error_phone",children:r("modal.Field is invalid")})]}),(0,b.jsxs)("div",{className:"input_wrap",children:[(0,b.jsx)("input",f(f({type:"text",name:"email",placeholder:r("header.Email"),title:r("header.Email")},y("email")),y("email",{validate:{invalid:function(e){return/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}$/i.test(e)}}}))),N.email&&"required"===N.email.type&&(0,b.jsx)("div",{className:"error",children:r("modal.Field is required")}),N.email&&"invalid"===N.email.type&&(0,b.jsx)("div",{className:"error",children:r("modal.Field is invalid")})]}),(0,b.jsx)("div",{className:"input_wrap",children:(0,b.jsxs)(x.R,{value:F,onChange:S,children:[(0,b.jsx)(x.R.Button,{className:"buget_button",children:1==F.id?r("modal.Select budget"):F.name}),(0,b.jsx)(x.R.Options,{className:"buget_list",children:P.map(function(e){return(0,b.jsx)(x.R.Option,{value:e,disabled:e.unavailable,children:e.name},e.id)})})]})}),(0,b.jsx)("button",{type:"submit",className:"form2send",children:(0,b.jsx)("span",{children:r("modal.Send")})})]}),(0,b.jsx)("div",{id:"loader_request_pj",className:"preloader_wrap",children:(0,b.jsx)("div",{className:"spinner"})}),(0,b.jsx)("div",{className:"success",id:"success_pj",children:r("main.Send success")})]})}},6798:function(e,t,r){"use strict";r.r(t),r.d(t,{__N_SSP:function(){return b}});var a=r(7294),n=r(9008),i=r.n(n),s=r(2306),l=r(1248),c=r(5148),o=r(702),d=r(6026),u=r(4210),p=r(4163),m=r(3023),h=r.n(m),j=r(6860),v=r(2203),g=r(7001),x=r(5893),b=!0;t.default=function(e){var t=(0,l.I0)(),r=(0,o.$G)().t,n=r("meta.Properties.h1"),m=(0,u.j)().propertiesMeta,b=(0,a.useState)({__html:""}),y=b[0],f=b[1];return(0,a.useEffect)(function(){t((0,c.Ep)(e.isMobile)),t((0,d.Qp)(e.districts)),t((0,d.Op)(e.developers)),t((0,d.Ix)(e.cities))},[e.layouts]),(0,x.jsxs)(x.Fragment,{children:[(0,x.jsxs)(i(),{children:[(0,x.jsx)("title",{children:m("title","",e.currentPage)}),(0,x.jsx)("meta",{name:"description",content:m("desc",e.totalCount,e.currentPage)}),(0,x.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:y},"breadcrumbs-jsonld")]}),(0,x.jsxs)(s.Z,{children:[(0,x.jsxs)("div",{className:"list_title",children:[(0,x.jsx)("h1",{className:"main_title",children:r("meta.Properties.h1")}),(0,x.jsx)("div",{className:"breadcrumbs_wrap",children:(0,x.jsx)(v.Z,{page:"properties",type:"listing",divider:!1,setBreadcrumbsJson:f})})]}),(0,x.jsx)("div",{className:"search_wrap",children:(0,x.jsx)(g.Z,{})}),(0,x.jsx)(p.Z,{layouts:e.layouts,currentPage:e.currentPage,pageCount:e.pageCount,perPage:e.perPage,h1:n,totalCount:e.totalCount}),(0,x.jsxs)("section",{className:"request_pj",children:[(0,x.jsx)("h2",{children:(0,x.jsx)("span",{children:r("header.Request a call")})}),(0,x.jsx)(j.Z,{type:"Object"})]}),e.meta&&1===e.currentPage&&e.meta.content?(0,x.jsx)("div",{className:"seo_text content",children:h()(e.meta.content)}):(0,x.jsx)(x.Fragment,{})]})]})}},9583:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/properties",function(){return r(6798)}])},7039:function(e){e.exports={divider:"breadcrumbs_divider__YJNoj",breadcrumbs:"breadcrumbs_breadcrumbs__VWd_d"}}},function(e){e.O(0,[8394,3023,3253,7333,7710,7310,2306,2878,4163,9774,2888,179],function(){return e(e.s=9583)}),_N_E=e.O()}]);

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.