PageSourceSearch

https://assetmart.global/_next/static/chunks/pages/buy/[[...landingpage]]-43ca3848532bb428.js

js assetmart.global collected 2026-10-04 20:11:44 UTC 65,860 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2384,3632,5967,746],{3410:function(e,a,l){(window.__NEXT_P=window.__NEXT_P||[]).push(["/buy/[[...landingpage]]",function(){return l(5849)}])},445:function(e,a,l){"use strict";l.d(a,{Z:function(){return HorizontalScrollSection}});var n=l(5893),i=l(1664),t=l.n(i),s=l(719),r=l(1166);let LeftButton=e=>{let{onClick:a,className:l}=e;return(0,n.jsx)("svg",{onClick:a,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"absolute -left-3 top-1/2 block h-auto w-12 cursor-pointer opacity-40 ".concat(l),children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.75 19.5L8.25 12l7.5-7.5"})})},RightButton=e=>{let{onClick:a,className:l}=e;return(0,n.jsx)("svg",{onClick:a,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"absolute -right-3 top-1/2 block h-auto w-12 cursor-pointer opacity-40 ".concat(l),children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8.25 4.5l7.5 7.5-7.5 7.5"})})},o={0:"",1:"gap-1",2:"gap-2",3:"gap-3",4:"gap-4",5:"gap-5"};function HorizontalScrollSection(e){let{title:a,children:l,seeAllLinkText:i,seeAllLinkUrl:d,gap:u=2,className:c=""}=e,{scrollPos:m,horizontalScroll:v,handleLeft:g,handleRight:_}=(0,r.Z)({scrollAmount:170});return(0,n.jsxs)("div",{className:"relative ".concat(c),children:[a&&(0,n.jsx)("h2",{className:"text-left sm:text-center",children:a}),(0,n.jsxs)("div",{id:"arrow-container",className:"relative mx-auto max-w-fit",children:[(0,n.jsx)("div",{ref:v,className:"scrollbar-hide relative snap-x snap-mandatory overflow-x-auto pb-1",children:(0,n.jsx)("div",{className:"relative flex h-[100%] child:min-w-[12rem] child:max-w-xs child:flex-shrink-0 child:snap-start ".concat(o[u]),children:l})}),(0,n.jsx)(LeftButton,{className:"start"===m||"none"===m?"invisible":"",onClick:g}),(0,n.jsx)(RightButton,{className:"end"===m||"none"===m?"invisible":"",onClick:_})]}),i&&d&&(0,n.jsx)(t(),{href:d,passHref:!0,children:(0,n.jsxs)("button",{type:"button",className:"button-primary-outlined mx-auto mt-sm",children:[i," ",(0,n.jsx)(s.LZ,{className:"h-6 w-6"})]})})]})}},135:function(e,a,l){"use strict";l.d(a,{Z:function(){return PreviewSection}});var n=l(5893),i=l(1664),t=l.n(i),s=l(719);let r={2:"grid-cols-2 sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-5",3:"grid-cols-3 md:grid-cols-6"},o={0:"",1:"gap-1",2:"gap-2",3:"gap-3",4:"gap-4",5:"gap-5"};function PreviewSection(e){let{title:a,children:l,seeAllLinkText:i,seeAllLinkUrl:d,grid:u,gap:c,className:m}=e;return(0,n.jsxs)("div",{className:"container-section-full-mobile ".concat(m),children:[a&&(0,n.jsx)("h2",{className:"px-0 text-left sm:text-center",children:a}),(0,n.jsx)("div",{className:"relative mx-auto grid ".concat(o[c]," ").concat(r[u]),children:l}),i&&d&&(0,n.jsx)(t(),{href:d,passHref:!0,legacyBehavior:!0,children:(0,n.jsx)("a",{children:(0,n.jsxs)("button",{type:"button",className:"button-primary-outlined mx-auto mt-sm",children:[i," ",(0,n.jsx)(s.LZ,{className:"h-6 w-6"})]})})})]})}},746:function(e,a,l){"use strict";l.r(a);var n=l(5893),i=l(5245),t=l(445);a.default=e=>{var a,l;let{reviews:s}=e;return s&&(null==s?void 0:null===(a=s.data)||void 0===a?void 0:a.length)>0&&(0,n.jsx)("div",{className:"container-section",children:(0,n.jsx)(t.Z,{title:"What Customers Say About Assetmart Global",children:null==s?void 0:null===(l=s.data)||void 0===l?void 0:l.map(e=>{var a,l;return(0,n.jsx)(i.Z,{title:e.title,rating:e.rating,message:e.message,name:e.customer_name,reviewed_date:e.date_of_review,imageSrc:null==e?void 0:null===(a=e.image)||void 0===a?void 0:a.url,imageAlt:null==e?void 0:null===(l=e.image)||void 0===l?void 0:l.alternativeText},e.id)})})})}},3632:function(e,a,l){"use strict";l.r(a),l.d(a,{default:function(){return ProjectCard}});var n=l(5893),i=l(5675),t=l.n(i),s=l(1664),r=l.n(s),o=l(824),d=l(719),u=l(9756),c=l(1214),m=l(2397),v=l(9810);function ProjectCard(e){let{item:a}=e,{imgUrl:l,title:i,propertyType:s,location:g,priceRange:_,slug:p,developmentStatus:A,condition:b}=a||{},N=(0,u.Z)({cta:"Project Card"}),h=(0,c.TL)(),y=(0,v.Z)(e=>e.authenticatedUser),{referrerCode:x}=y||{};return(0,n.jsx)("div",{className:"relative min-w-[10rem] flex-1 p-1",children:(0,n.jsxs)("div",{className:"flex h-full flex-col justify-between overflow-hidden rounded shadow-sharp",children:[(0,n.jsx)(r(),{href:"/projects/".concat(p),legacyBehavior:!0,children:(0,n.jsxs)("div",{className:"flex h-full cursor-pointer flex-col",children:[(0,n.jsx)("div",{className:"relative aspect-video overflow-hidden",children:(0,n.jsx)(t(),{alt:"project card",className:"object-cover",src:l||o.Z,fill:!0,sizes:"(max-width: 768px) 50vw, (max-width: 1200px) 25vw, 20vw"})}),(0,n.jsxs)("div",{className:"p-2",children:[(0,n.jsx)("h3",{className:"card-h3 min-h-[3rem]",children:i}),(0,n.jsxs)("div",{className:"flex items-center pb-xs",children:[(0,n.jsx)(d.rm,{className:"card-h4 mr-1 h-3.5 w-3.5 shrink-0 p-[1px]"}),(0,n.jsx)("h4",{className:"card-h4",children:_})]}),(0,n.jsxs)("ul",{className:"m-0 list-none p-0 child:flex child:items-start",children:[g&&"null"!==g&&(0,n.jsxs)("li",{className:"pb-xs",children:[(0,n.jsx)(d._t,{className:"card-h5 mr-1 h-3 w-3 shrink-0"}),(0,n.jsx)("h5",{className:"card-h5",children:g})]}),(s||A||b)&&(0,n.jsxs)("li",{children:[(0,n.jsx)(d._h,{className:"card-h5 mr-1 h-3 w-3 shrink-0"}),(0,n.jsx)("h5",{className:"card-h5",children:[s,A,b].join(", ")})]})]})]})]})}),(0,n.jsxs)("div",{className:"flex h-16 justify-around border-t-2",children:[(0,n.jsx)("button",{type:"button",className:"flex flex-col items-center justify-center p-0",onClick:()=>{N("".concat(i," | ").concat(_))},children:(0,n.jsx)(d.G5,{className:"h-5 w-5 flex-shrink-0 ".concat(x?"text-gray-400":"text-tertiary")})}),(0,n.jsx)("button",{type:"button",className:"flex flex-col items-center justify-center p-0",onClick:()=>{h((0,m.Jv)(0)),h((0,m.VO)(["./shareModals/".concat(x?"ShareWithReferrerCode":"ShareNormal",".tsx")])),h((0,m.So)([{slug:p,url:"/projects/".concat(p),title:i,imageUrl:l||o.Z}])),h((0,m.LV)("h-fit w-fit")),h((0,m.UL)(!0))},children:x?(0,n.jsx)("img",{src:d.Ly.src,alt:"aplus-share"}):(0,n.jsx)(d.HE,{className:"h-5 w-5 flex-shrink-0 text-gray-400"})})]})]})})}},5967:function(e,a,l){"use strict";l.r(a),l.d(a,{default:function(){return LearnMoreSection}});var n=l(5893),i=l(719),ui_CheckList=e=>{var a;let{list:l}=e;return(0,n.jsx)("ul",{className:"m-0 grid grid-cols-1 gap-4 p-0 sm:grid-cols-2 md:grid-cols-3",children:null==l?void 0:null===(a=l.map)||void 0===a?void 0:a.call(l,e=>{let{label:a,description:l}=e;return(0,n.jsxs)("li",{className:"flex items-start p-0",children:[(0,n.jsx)("div",{className:"mr-4 inline-flex min-w-fit",children:(0,n.jsx)(i.rE,{className:"mt-1.5 h-4 w-4 text-primary"})}),(0,n.jsxs)("div",{className:"w-full",children:[(0,n.jsx)("h5",{className:"mb-0 font-medium leading-md",children:a}),(0,n.jsx)("p",{className:" text-sm font-medium text-regularBlack-lighter",children:l})]})]},a)})})};let t=[{label:"Thousands of properties available + yours.",description:"Buy from different developers, multiple projects across the Philippines, in one brokerage. Don’t be limited by what your agent has available."},{label:"Best promos & discounts",description:"We offer the deepest discounts and most exciting promos among all brokers and developers, so buy only from Assetmart Global"},{label:"No additional fees",description:"We get our commissions from sellers, so you don’t pay extra vs. going direct."},{label:"Full Service Philippine Real Estate Brokerage",description:"We have the expertise to help you find and buy that dream home or investment easily and painlessly."},{label:"Licensed, trustworthy, professional advisers and brokers",description:"No scams, just properties."}];function LearnMoreSection(e){let{list:a=t,title:l="Why Choose Assetmart Global?"}=e;return(0,n.jsx)("div",{className:"container-section max-w-screen-lg",children:(0,n.jsxs)("div",{className:"w-full rounded-sm border border-solid border-primary bg-grayArticleBG p-sm",children:[(0,n.jsx)("h2",{className:"text-left sm:text-center",children:l}),(0,n.jsx)(ui_CheckList,{list:a})]})})}},3933:function(e,a,l){"use strict";var n=l(5893),i=l(1664),t=l.n(i),s=l(5522),r=l(719);a.Z=e=>{let{currentPage:a,totalPages:l,paginate:i,page:o,scrollToTop:d=!1}=e,u=(0,s.Z)(5,+a,l),c="".concat(o).concat(i?"?".concat(i):""),m="".concat(o).concat(i?"?".concat(i,"&page=").concat(l):"?page=".concat(l)),v="".concat(o).concat(i?"?".concat(i).c
1oncat(2==+a?"":"&page=".concat(+a-1)):"".concat(2==+a?"":"?page=".concat(+a-1))),g="".concat(o).concat(i?"?".concat(i).concat("&page=".concat(+a+1)):"".concat("?page=".concat(+a+1)));return(0,n.jsx)("div",{className:"mb-4 mt-8 flex w-full justify-center ".concat(l<=1?"hidden":""),children:(0,n.jsxs)("div",{className:"flex","aria-label":"Pagination",children:[1!=+a&&(0,n.jsxs)(t(),{scroll:d,href:v,className:"relative mx-1 inline-flex h-8 w-8 items-center justify-center self-center rounded-full  hover:bg-gray-50 focus:z-20 focus:outline-offset-0",children:[(0,n.jsx)("span",{className:"sr-only",children:"Previous"}),(0,n.jsx)(r.Y4,{className:"mx-auto"})]}),!u.some(e=>e<=1)&&(0,n.jsx)(t(),{scroll:d,href:c,"aria-current":"page",className:"relative mx-1 inline-flex h-8 w-8 items-center justify-center self-center rounded-full  bg-white text-sm font-semibold text-gray-900 transition-colors duration-300 hover:bg-gray-100 focus:z-20 focus:outline-offset-0",children:"1"}),!u.some(e=>e<=2)&&(0,n.jsx)("span",{className:"mx-1",children:"..."}),u.map(e=>{let s="".concat(o).concat(i?"?".concat(i).concat(1===e||0===e||e===l+1?"":"&page=".concat(e)):"".concat(1===e||0===e||e===l+1?"":"?page=".concat(e)));return(0,n.jsx)(t(),{scroll:d,href:s,"aria-current":"page",className:"relative mx-1 inline-flex h-8 w-8 items-center justify-center self-center rounded-full  text-sm font-semibold transition-colors duration-300 focus:z-20 focus:outline-offset-0 ".concat(e===+a?"bg-secondary text-white hover:bg-secondary-light":"bg-white text-gray-900 hover:bg-gray-100"),children:e},e)}),!u.some(e=>e>=l-1)&&(0,n.jsx)("span",{className:"mx-1",children:"..."}),!u.some(e=>e>=l)&&(0,n.jsx)(t(),{scroll:d,href:m,"aria-current":"page",className:"relative mx-1 inline-flex h-8 w-8 items-center justify-center self-center rounded-full  bg-white text-sm font-semibold text-gray-900 transition-colors duration-300 hover:bg-gray-100 focus:z-20 focus:outline-offset-0",children:l}),+a!==l&&(0,n.jsxs)(t(),{scroll:d,href:g,className:"relative mx-1 inline-flex h-8 w-8 items-center justify-center self-center rounded-full hover:bg-gray-50 focus:z-20 focus:outline-offset-0",children:[(0,n.jsx)("span",{className:"sr-only",children:"Next"}),(0,n.jsx)(r.LZ,{className:"mx-auto"})]})]})})}},5522:function(e,a,l){"use strict";function generateArray(e,a,l){let n=1;switch(a){case 1:case 2:n=1;break;case e<=l&&l:case e<=l&&l-1:n=l-4;break;default:n=l<5?1:a-2}return Array.from({length:e<l?e:l},(e,a)=>a+n)}l.d(a,{Z:function(){return generateArray}})},5245:function(e,a,l){"use strict";l.d(a,{Z:function(){return o}});var n=l(5893),i=l(7294),t=l(5675),s=l.n(t),r=l(719),ui_Rating=e=>{let{rating:a}=e,l=Array(Math.round(5)).fill(0);return(0,n.jsx)("div",{className:"mt-3 flex justify-center",children:null==l?void 0:l.map((e,l)=>(0,n.jsx)(r.r7,{className:l<Math.round(a)?"text-primary":"text-gray-300"},l))})};let ReviewCard=e=>{let{rating:a=3,message:l,name:t,reviewed_date:o,title:d,imageAlt:u,imageSrc:c}=e,[m,v]=(0,i.useState)(!1);return(0,n.jsxs)("div",{className:"flex flex-col justify-between rounded-sm border px-3 py-3 shadow-sharp transition-all duration-300",children:[(0,n.jsxs)("div",{children:[(0,n.jsx)("div",{className:"relative aspect-video pb-[56.25%]",children:c&&(0,n.jsx)(s(),{src:c,alt:u||d||l||"reviewing our services",className:"rounded object-contain",fill:!0,sizes:"100vw"})}),a&&(0,n.jsx)(ui_Rating,{rating:a}),(d||l)&&(0,n.jsxs)("div",{className:"flex flex-col",children:[(0,n.jsx)(r.BS,{className:"text-gray-400"}),(0,n.jsxs)("div",{className:"text-center",children:[(0,n.jsx)("h4",{className:"mt-2",children:d}),l&&(0,n.jsx)("p",{className:"body2 mt-2 text-start",children:m?(0,n.jsxs)("span",{children:[l," ",(0,n.jsx)("span",{children:(0,n.jsx)("button",{type:"button",className:"uppercase text-primary underline",onClick:()=>v(!1),children:"Read less"})})]}):(0,n.jsxs)(n.Fragment,{children:[l.slice(0,200),l.length>200&&(0,n.jsxs)("span",{children:["... ",(0,n.jsx)("button",{type:"button",className:"uppercase text-primary underline",onClick:()=>v(!0),children:"Read more"})]})]})})]}),(0,n.jsx)(r.Iq,{className:"self-end text-gray-400"})]})]}),(0,n.jsxs)("p",{className:"body2 mt-2 text-center",children:[t&&(0,n.jsxs)("strong",{children:["– ",t]})," on"," ",o&&(e=>
1{let a=new Date(e),l=a.toLocaleString("default",{month:"short"}),n=a.toLocaleString("default",{day:"2-digit"}),i=a.toLocaleString("default",{year:"numeric"});return"".concat(l," ").concat(n,", ").concat(i)})(o)]})]})};ReviewCard.defaultProps={title:"",imageSrc:"",rating:null,message:"",imageAlt:""};var o=ReviewCard},5849:function(e,a,l){"use strict";l.r(a),l.d(a,{__N_SSG:function(){return h},default:function(){return y}});var n=l(5893),i=l(7294),t=l(1163),s=l(1664),r=l.n(s),o=l(2962),d=l(9669),u=l.n(d),c=JSON.parse('[{"id":1,"name":"REGION X","provinces":[{"id":8,"name":"MISAMIS ORIENTAL","slug":"misamis-oriental-8","label":"Misamis Oriental"},{"id":7,"name":"MISAMIS OCCIDENTAL","slug":"misamis-occidental-7","label":"Misamis Occidental"},{"id":6,"name":"LANAO DEL NORTE","slug":"lanao-del-norte-6","label":"Lanao Del Norte"},{"id":5,"name":"CAMIGUIN","slug":"camiguin-5","label":"Camiguin"},{"id":4,"name":"BUKIDNON","slug":"bukidnon-4","label":"Bukidnon"}],"slug":"region-x-1"},{"id":2,"name":"REGION XI","provinces":[{"id":91,"name":"DAVAO DEL NORTE","slug":"davao-del-norte-91","label":"Davao Del Norte"},{"id":13,"name":"DAVAO ORIENTAL","slug":"davao-oriental-13","label":"Davao Oriental"},{"id":12,"name":"DAVAO OCCIDENTAL","slug":"davao-occidental-12","label":"Davao Occidental"},{"id":11,"name":"DAVAO DEL SUR","slug":"davao-del-sur-11","label":"Davao Del Sur"},{"id":9,"name":"COMPOSTELA VALLEY","slug":"compostela-valley-9","label":"Compostela Valley"}],"slug":"region-xi-2"},{"id":3,"name":"REGION XII","provinces":[{"id":17,"name":"SULTAN KUDARAT","slug":"sultan-kudarat-17","label":"Sultan Kudarat"},{"id":16,"name":"SOUTH COTABATO","slug":"south-cotabato-16","label":"South Cotabato"},{"id":15,"name":"SARANGANI","slug":"sarangani-15","label":"Sarangani"},{"id":14,"name":"COTABATO","slug":"cotabato-14","label":"Cotabato"}],"slug":"region-xii-3"},{"id":4,"name":"REGION XIII","provinces":[{"id":22,"name":"SURIGAO DEL SUR","slug":"surigao-del-sur-22","label":"Surigao Del Sur"},{"id":21,"name":"SURIGAO DEL NORTE","slug":"surigao-del-norte-21","label":"Surigao Del Norte"},{"id":20,"name":"DINAGAT ISLANDS","slug":"dinagat-islands-20","label":"Dinagat Islands"},{"id":19,"name":"AGUSAN DEL SUR","slug":"agusan-del-sur-19","label":"Agusan Del Sur"},{"id":18,"name":"AGUSAN DEL NORTE","slug":"agusan-del-norte-18","label":"Agusan Del Norte"}],"slug":"region-xiii-4"},{"id":5,"name":"REGION I","provinces":[{"id":26,"name":"PANGASINAN","slug":"pangasinan-26","label":"Pangasinan"},{"id":25,"name":"LA UNION","slug":"la-union-25","label":"La Union"},{"id":24,"name":"ILOCOS SUR","slug":"ilocos-sur-24","label":"Ilocos Sur"},{"id":23,"name":"ILOCOS NORTE","slug":"ilocos-norte-23","label":"Ilocos Norte"}],"slug":"region-i-5"},{"id":6,"name":"REGION II","provinces":[{"id":31,"name":"QUIRINO","slug":"quirino-31","label":"Quirino"},{"id":30,"name":"NUEVA VIZCAYA","slug":"nueva-vizcaya-30","label":"Nueva Vizcaya"},{"id":29,"name":"ISABELA","slug":"isabela-29","label":"Isabela"},{"id":28,"name":"CAGAYAN","slug":"cagayan-28","label":"Cagayan"},{"id":27,"name":"BATANES","slug":"batanes-27","label":"Batanes"}],"slug":"region-ii-6"},{"id":7,"name":"REGION III","provinces":[{"id":38,"name":"ZAMBALES","slug":"zambales-38","label":"Zambales"},{"id":37,"name":"TARLAC","slug":"tarlac-37","label":"Tarlac"},{"id":36,"name":"PAMPANGA","slug":"pampanga-36","label":"Pampanga"},{"id":35,"name":"NUEVA ECIJA","slug":"nueva-ecija-35","label":"Nueva Ecija"},{"id":34,"name":"BULACAN","slug":"bulacan-34","label":"Bulacan"},{"id":33,"name":"BATAAN","slug":"bataan-33","label":"Bataan"},{"id":32,"name":"AURORA","slug":"aurora-32","label":"Aurora"}],"slug":"region-iii-7"},{"id":8,"name":"REGION IV-A","provinces":[{"id":43,"name":"RIZAL","slug":"rizal-43","label":"Rizal"},{"id":42,"name":"QUEZON PROVINCE","slug":"quezon-province-42","label":"Quezon Province"},{"id":41,"name":"LAGUNA","slug":"laguna-41","label":"Laguna"},{"id":40,"name":"CAVITE","slug":"cavite-40","label":"Cavite"},{"id":39,"name":"BATANGAS","slug":"batangas-39","label":"Batangas"}],"slug":"region-iv-a-8"},{"id":9,"name":"REGION IV-B","provinces":[{"id":48,"name":"ROMBLON","slug":"romblon-48","label":"Romblon"},{"id":47,"name":"PALAWAN","slug":"palawan-47","label":"Palawan"},{"id":46,"name":"ORIENTAL MINDORO","slug":"oriental-mindoro-46","label":"Oriental Mindoro"},{"id":45,"name":"OCCIDENTAL MINDORO","slug":"occidental-mindoro-45","label":"Occidental Mindoro"},{"id":44,"name":"MARINDUQUE","slug":"marinduque-44","label":"Marinduque"}],"slug":"region-iv-b-9"},{"id":10,"name":"REGION V","provinces":[{"id":54,"name":"SORSOGON","slug":"sorsogon-54","label":"Sorsogon"},{"id":53,"name":"MASBATE","slug":"masbate-53","label":"Masbate"},{"id":52,"name":"CATANDUANES","slug":"catanduanes-52","label":"Catanduanes"},{"id":51,"name":"CAMARINES SUR","slug":"camarines-sur-51","label":"Camarines Sur"},{"id":50,"name":"CAMARINES NORTE","slug":"camarines-norte-50","label":"Camarines Norte"},{"id":49,"name":"ALBAY","slug":"albay-49","label":"Albay"}],"slug":"region-v-10"},{"id":11,"name":"REGION VI","provinces":[{"id":60,"name":"NEGROS OCCIDENTAL","slug":"negros-occidental-60","label":"Negros Occidental"},{"id":59,"name":"ILOILO","slug":"iloilo-59","label":"Iloilo"},{"id":58,"name":"GUIMARAS","slug":"guimaras-58","label":"Guimaras"},{"id":57,"name":"CAPIZ","slug":"capiz-57","label":"Capiz"},{"id":56,"name":"ANTIQUE","slug":"antique-56","label":"Antique"},{"id":55,"name":"AKLAN","slug":"aklan-55","label":"Aklan"}],"slug":"region-vi-11"},{"id":12,"name":"REGION VII","provinces":[{"id":64,"name":"SIQUIJOR","slug":"siquijor-64","label":"Siquijor"},{"id":63,"name":"NEGROS ORIENTAL","slug":"negros-oriental-63","label":"Negros Oriental"},{"id":62,"name":"CEBU","slug":"cebu-62","label":"Cebu"},{"id":61,"name":"BOHOL","slug":"bohol-61","label":"Bohol"}],"slug":"region-vii-12"},{"id":13,"name":"REGION VIII","provinces":[{"id":70,"name":"SOUTHERN LEYTE","slug":"southern-leyte-70","label":"Southern Leyte"},{"id":69,"name":"WESTERN SAMAR","slug":"western-samar-69","label":"Western Samar"},{"id":68,"name":"NORTHERN SAMAR","slug":"northern-samar-68","label":"Northern Samar"},{"id":67,"name":"LEYTE","slug":"leyte-67","label":"Leyte"},{"id":66,"name":"EASTERN SAMAR","slug":"eastern-samar-66","label":"Eastern Samar"},{"id":65,"name":"BILIRAN","slug":"biliran-65","label":"Biliran"}],"slug":"region-viii-13"},{"id":14,"name":"REGION IX","provinces":[{"id":73,"name":"ZAMBOANGA SIBUGAY","slug":"zamboanga-sibugay-73","label":"Zamboanga Sibugay"},{"id":72,"name":"ZAMBOANGA DEL SUR","slug":"zamboanga-del-sur-72","label":"Zamboanga Del Sur"},{"id":71,"name":"ZAMBOANGA DEL NORTE","slug":"zamboanga-del-norte-71","label":"Zamboanga Del Norte"}],"slug":"region-ix-14"},{"id":15,"name":"BARMM","provinces":[{"id":78,"name":"TAWI-TAWI","slug":"tawi-tawi-78","label":"Tawi-tawi"},{"id":77,"name":"SULU","slug":"sulu-77","label":"Sulu"},{"id":76,"name":"MAGUINDANAO","slug":"maguindanao-76","label":"Maguindanao"},{"id":75,"name":"LANAO DEL SUR","slug":"lanao-del-sur-75","label":"Lanao Del Sur"},{"id":74,"name":"BASILAN","slug":"basilan-74","label":"Basilan"}],"slug":"barmm-15"},{"id":16,"name":"CAR","provinces":[{"id":84,"name":"MOUNTAIN PROVINCE","slug":"mountain-province-84","label":"Mountain Province"},{"id":83,"name":"KALINGA","slug":"kalinga-83","label":"Kalinga"},{"id":82,"name":"IFUGAO","slug":"ifugao-82","label":"Ifugao"},{"id":81,"name":"BENGUET","slug":"benguet-81","label":"Benguet"},{"id":80,"name":"APAYAO","slug":"apayao-80","label":"Apayao"},{"id":79,"name":"ABRA","slug":"abra-79","label":"Abra"}],"slug":"car-16"},{"id":17,"name":"NCR","provinces":[{"id":1,"name":"METRO MANILA","slug":"metro-manila-1","label":"Metro Manila"}],"slug":"ncr-17"}]'),m=JSON.parse('[{"id":1,"name":"METRO MANILA","cities":[{"id":68,"province_id":1,"alternative_name":null,"state_id":1,"name":"CALOOCAN","slug":"caloocan-68","label":"Caloocan"},{"id":92,"province_id":1,"alternative_name":null,"state_id":1,"name":"PASIG","slug":"pasig-92","label":"Pasig"},{"id":8,"province_id":1,"alternative_name":null,"state_id":1,"name":"TAGUIG","slug":"taguig-8","label":"Taguig"},{"id":6,"province_id":1,"alternative_name":null,"state_id":1,"name":"MAKATI","slug":"makati-6","label":"Makati"},{"id":9,"province_id":1,"alternative_name":null,"state_id":1,"name":"PARANAQUE","slug":"paranaque-9","label":"Paranaque"},{"id":95,"province_id":1,"alternative_name":null,"state_id":1,"name":"QUE
1ZON CITY","slug":"quezon-city-95","label":"Quezon City"},{"id":17,"province_id":1,"alternative_name":"MUNTINLUPA CITY","state_id":1,"name":"MUNTINLUPA","slug":"muntinlupa-17","label":"Muntinlupa"},{"id":79,"province_id":1,"alternative_name":null,"state_id":1,"name":"MANDALUYONG","slug":"mandaluyong-79","label":"Mandaluyong"},{"id":61,"province_id":1,"alternative_name":null,"state_id":1,"name":"PASAY","slug":"pasay-61","label":"Pasay"},{"id":33,"province_id":1,"alternative_name":"LAS PINAS CITY","state_id":1,"name":"LAS PINAS","slug":"las-pinas-33","label":"Las Pinas"},{"id":40,"province_id":1,"alternative_name":null,"state_id":1,"name":"MANILA","slug":"manila-40","label":"Manila"},{"id":78,"province_id":1,"alternative_name":null,"state_id":1,"name":"SAN JUAN","slug":"san-juan-78","label":"San Juan"},{"id":75,"province_id":1,"alternative_name":null,"state_id":1,"name":"VALENZUELA","slug":"valenzuela-75","label":"Valenzuela"},{"id":96,"province_id":1,"alternative_name":null,"state_id":1,"name":"MARIKINA","slug":"marikina-96","label":"Marikina"},{"id":262,"province_id":1,"alternative_name":null,"state_id":1,"name":"QUEZON","slug":"quezon-262","label":"Quezon"},{"id":235,"province_id":1,"alternative_name":null,"state_id":1,"name":"MALABON","slug":"malabon-235","label":"Malabon"}],"slug":"metro-manila-1","label":"Metro Manila"},{"id":34,"name":"BULACAN","cities":[{"id":2,"province_id":34,"alternative_name":"SAN JOSE DEL MONTE CITY","state_id":1,"name":"SAN JOSE DEL MONTE","slug":"san-jose-del-monte-2","label":"San Jose Del Monte"},{"id":25,"province_id":34,"alternative_name":null,"state_id":1,"name":"PLARIDEL","slug":"plaridel-25","label":"Plaridel"},{"id":48,"province_id":34,"alternative_name":null,"state_id":1,"name":"BALIUAG","slug":"baliuag-48","label":"Baliuag"},{"id":71,"province_id":34,"alternative_name":null,"state_id":1,"name":"PANDI","slug":"pandi-71","label":"Pandi"},{"id":81,"province_id":34,"alternative_name":null,"state_id":1,"name":"BULAKAN","slug":"bulakan-81","label":"Bulakan"},{"id":82,"province_id":34,"alternative_name":null,"state_id":1,"name":"SAN ILDEFONSO","slug":"san-ildefonso-82","label":"San Ildefonso"},{"id":87,"province_id":34,"alternative_name":null,"state_id":1,"name":"STA. MARIA","slug":"sta.-maria-87","label":"Sta. Maria"},{"id":102,"province_id":34,"alternative_name":null,"state_id":1,"name":"PULILAN","slug":"pulilan-102","label":"Pulilan"},{"id":147,"province_id":34,"alternative_name":null,"state_id":1,"name":"BUSTOS","slug":"bustos-147","label":"Bustos"},{"id":52,"province_id":34,"alternative_name":null,"state_id":1,"name":"GUIGUINTO","slug":"guiguinto-52","label":"Guiguinto"},{"id":148,"province_id":34,"alternative_name":null,"state_id":1,"name":"MALOLOS","slug":"malolos-148","label":"Malolos"},{"id":149,"province_id":34,"alternative_name":null,"state_id":1,"name":"SAN RAFAEL","slug":"san-rafael-149","label":"San Rafael"},{"id":171,"province_id":34,"alternative_name":null,"state_id":1,"name":"HAGONOY","slug":"hagonoy-171","label":"Hagonoy"},{"id":172,"province_id":34,"alternative_name":null,"state_id":1,"name":"MARILAO","slug":"marilao-172","label":"Marilao"},{"id":173,"province_id":34,"alternative_name":null,"state_id":1,"name":"BALAGTAS","slug":"balagtas-173","label":"Balagtas"},{"id":201,"province_id":34,"alternative_name":null,"state_id":1,"name":"BOCAUE","slug":"bocaue-201","label":"Bocaue"},{"id":250,"province_id":34,"alternative_name":null,"state_id":1,"name":"CALUMPIT","slug":"calumpit-250","label":"Calumpit"},{"id":251,"province_id":34,"alternative_name":null,"state_id":1,"name":"MEYCAUAYAN","slug":"meycauayan-251","label":"Meycauayan"},{"id":273,"province_id":34,"alternative_name":null,"state_id":1,"name":"SAN MIGUEL","slug":"san-miguel-273","label":"San Miguel"}],"slug":"bulacan-34","label":"Bulacan"},{"id":40,"name":"CAVITE","cities":[{"id":3,"province_id":40,"alternative_name":null,"state_id":1,"name":"TANZA","slug":"tanza-3","label":"Tanza"},{"id":5,"province_id":40,"alternative_name":"GENERAL TRIAS CITY","state_id":1,"name":"GENERAL TRIAS","slug":"general-trias-5","label":"General Trias"},{"id":14,"province_id":40,"alternative_name":null,"state_id":1,"name":"SILANG","slug":"silang-14","label":"Silang"},{"id":19,"province_id":40,"alternative_name":"DASMARINAS CITY","state_id":1,"name":"DASMARINAS","slug":"dasmarinas-19","label":"Dasmarinas"},{"id":20,"province_id":40,"alternative_name":null,"state_id":1,"name":"NAIC","slug":"naic-20","label":"Naic"},{"id":22,"province_id":40,"alternative_name":"BACOOR CITY","state_id":1,"name":"BACOOR","slug":"bacoor-22","label":"Bacoor"},{"id":26,"province_id":40,"alternative_name":null,"state_id":1,"name":"ALFONSO","slug":"alfonso-26","label":"Alfonso"},{"id":70,"province_id":40,"alternative_name":"TAGAYTAY CITY","state_id":1,"name":"TAGAYTAY","slug":"tagaytay-70","label":"Tagaytay"},{"id":73,"province_id":40,"alternative_name":"IMUS CITY","state_id":1,"name":"IMUS","slug":"imus-73","label":"Imus"},{"id":83,"province_id":40,"alternative_name":null,"state_id":1,"name":"TRECE MARTIRES","slug":"trece-martires-83","label":"Trece Martires"},{"id":130,"province_id":40,"alternative_name":null,"state_id":1,"name":"CARMONA","slug":"carmona-130","label":"Carmona"},{"id":131,"province_id":40,"alternative_name":null,"state_id":1,"name":"TERNATE","slug":"ternate-131","label":"Ternate"},{"id":157,"province_id":40,"alternative_name":null,"state_id":1,"name":"AMADEO","slug":"amadeo-157","label":"Amadeo"},{"id":161,"province_id":40,"alternative_name":null,"state_id":1,"name":"GENERAL MARIANO ALVAREZ","slug":"general-mariano-alvarez-161","label":"General Mariano Alvarez"},{"id":176,"province_id":40,"alternative_name":null,"state_id":1,"name":"KAWIT","slug":"kawit-176","label":"Kawit"},{"id":177,"province_id":40,"alternative_name":null,"state_id":1,"name":"INDANG","slug":"indang-177","label":"Indang"}],"slug":"cavite-40","label":"Cavite"},{"id":43,"name":"RIZAL","cities":[{"id":80,"province_id":43,"alternative_name":null,"state_id":1,"name":"CAINTA","slug":"cainta-80","label":"Cainta"},{"id":21,"province_id":43,"alternative_name":null,"state_id":1,"name":"PILILLA","slug":"pililla-21","label":"Pililla"},{"id":24,"province_id":43,"alternative_name":null,"state_id":1,"name":"BINANGONAN","slug":"binangonan-24","label":"Binangonan"},{"id":38,"province_id":43,"alternative_name":null,"state_id":1,"name":"MONTALBAN","slug":"montalban-38","label":"Montalban"},{"id":76,"province_id":43,"alternative_name":null,"state_id":1,"name":"TAYTAY","slug":"taytay-76","label":"Taytay"},{"id":85,"province_id":43,"alternative_name":null,"state_id":1,"name":"BARAS","slug":"baras-85","label":"Baras"},{"id":137,"province_id":43,"alternative_name":null,"state_id":1,"name":"RODRIGUEZ","slug":"rodriguez-137","label":"Rodriguez"},{"id":138,"province_id":43,"alternative_name":null,"state_id":1,"name":"TERESA","slug":"teresa-138","label":"Teresa"},{"id":145,"province_id":43,"alternative_name":null,"state_id":1,"name":"SAN MATEO","slug":"san-mateo-145","label":"San Mateo"},{"id":259,"province_id":43,"alternative_name":null,"state_id":1,"name":"ANGONO","slug":"angono-259","label":"Angono"},{"id":261,"province_id":43,"alternative_name":null,"state_id":1,"name":"ANTIPOLO CITY","slug":"antipolo-city-261","label":"Antipolo City"}],"slug":"rizal-43","label":"Rizal"},{"id":38,"name":"ZAMBALES","cities":[{"id":15,"province_id":38,"alternative_name":null,"state_id":1,"name":"SUBIC","slug":"subic-15","label":"Subic"}],"slug":"zambales-38","label":"Zambales"},{"id":36,"name":"PAMPANGA","cities":[{"id":16,"province_id":36,"alternative_name":null,"state_id":1,"name":"BACOLOR","slug":"bacolor-16","label":"Bacolor"},{"id":143,"province_id":36,"alternative_name":null,"state_id":1,"name":"SAN FERNANDO","slug":"san-fernando-143","label":"San Fernando"},{"id":97,"province_id":36,"alternative_name":null,"state_id":1,"name":"ANGELES","slug":"angeles-97","label":"Angeles"},{"id":90,"province_id":36,"alternative_name":null,"state_id":1,"name":"MAGALANG ","slug":"magalang--90","label":"Magalang"},{"id":144,"province_id":36,"alternative_name":null,"state_id":1,"name":"SANTA ANA","slug":"santa-ana-144","label":"Santa Ana"},{"id":151,"province_id":36,"alternative_name":null,"state_id":1,"name":"MEXICO","slug":"mexico-151","label":"Mexico"},{"id":160,"province_id":36,"alternative_name":null,"state_id":1,"name":"MABALACAT","slug":"mabalacat-160","label":"Mabalacat"},{"id":183,"province_id":36,"alternative_name":null,"state_id":1,"name":"APALIT","slug":"apalit-183","label":"Apalit"},{"id":210,"province_id":36,"alternative_name":null,"state_id":1,"name":"LUBAO","slug":"lubao-210","label":"Lubao"},{"id":211,"province_id":36,"alternative_name":null,"state_id":1,"name":"DOLORES","slug":"dolores-211","label":"Dolores"},{"id":230,"province_id":36,"alternative_name":null,"state_id":1,"name":"ARAYAT","slug":"arayat-230","label":"Arayat"},{"id":256,"province_id":36,"alternative_name":null,"state_id":1,"name":"PORAC","slug":"porac-256","label":"Porac"},{"id":260,"province_id":36,"alternative_name":null,"state_id":1,"name":"SAN SIMON","slug":"san-simon-260","label":"San Simon"},{"id":263,"province_id":36,"alternative_name":null,"state_id":1,"name":"FLORIDABLANCA","slug":"floridablanca-263","label":"Floridablanca"},{"id":264,"province_id":36,"alternative_name":null,"state_id":1,"name":"MASANTOL","slug":"masantol-264","label":"Masantol"}],"slug":"pampanga-36","label":"Pampanga"},{"id":29,"name":"ISABELA","cities":[{"id":18,"province_id":29,"alternative_name":"ILAGAN CITY","state_id":1,"name":"ILAGAN","slug":"ilagan-18","label":"Ilagan"},{"id":114,"province_id":29,"alternative_name":null,"state_id":1,"name":"SANTIAGO","slug":"santiago-114","label":"Santiago"},{"id":116,"province_id":29,"alternative_name":null,"state_id":1,"name":"CAUAYAN","slug":"cauayan-116","label":"Cauayan"},{"id":203,"province_id":29,"alternative_name":null,"state_id":1,"name":"NAGUILIAN","slug":"naguilian-203","label":"Naguilian"},{"id":204,"province_id":29,"alternative_name":null,"state_id":1,"name":"ALICIA","slug":"alicia-204","label":"Alicia"},{"id":224,"province_id":29,"alternative_name":null,"state_id":1,"name":"ROXAS","slug":"roxas-224","label":"Roxas"},{"id":225,"province_id":29,"alternative_name":null,"state_id":1,"name":"RAMON","slug":"ramon-225","label":"Ramon"},{"id":226,"province_id":29,"alternative_name":null,"state_id":1,"name":"AURORA","slug":"aurora-226","label":"Aurora"}],"slug":"isabela-29","label":"Isabela"},{"id":41,"name":"LAGUNA","cities":[{"id":53,"province_id":41,"alternative_name":null,"state_id":1,"name":"CALAMBA","slug":"calamba-53","label":"Calamba"},{"id":28,"province_id":41,"alternative_name":null,"state_id":1,"name":"SANTA ROSA","slug":"santa-rosa-28","label":"Santa Rosa"},{"id":29,"province_id":41,"alternative_name":"CABUYAO CITY","state_id":1,"name":"CABUYAO","slug":"cabuyao-29","label":"Cabuyao"},{"id":141,"province_id":41,"alternative_name":null,"state_id":1,"name":"SAN PABLO","slug":"san-pablo-141","label":"San Pablo"},{"id":122,"province_id":41,"alternative_name":null,"state_id":1,"name":"BAY","slug":"bay-122","label":"Bay"},{"id":132,"province_id":41,"alternative_name":null,"state_id":1,"name":"BINAN","slug":"binan-132","label":"Binan"},{"id":133,"province_id":41,"alternative_name":null,"state_id":1,"name":"KALAYAAN","slug":"kalayaan-133","label":"Kalayaan"},{"id":134,"province_id":41,"alternative_name":null,"state_id":1,"name":"LUM
1BAN","slug":"lumban-134","label":"Lumban"},{"id":135,"province_id":41,"alternative_name":null,"state_id":1,"name":"SAN PEDRO","slug":"san-pedro-135","label":"San Pedro"},{"id":136,"province_id":41,"alternative_name":null,"state_id":1,"name":"STA. CRUZ","slug":"sta.-cruz-136","label":"Sta. Cruz"},{"id":142,"province_id":41,"alternative_name":null,"state_id":1,"name":"SANTA CRUZ","slug":"santa-cruz-142","label":"Santa Cruz"},{"id":179,"province_id":41,"alternative_name":null,"state_id":1,"name":"CALAUAN","slug":"calauan-179","label":"Calauan"},{"id":180,"province_id":41,"alternative_name":null,"state_id":1,"name":"PILA","slug":"pila-180","label":"Pila"},{"id":181,"province_id":41,"alternative_name":null,"state_id":1,"name":"PAGSANJAN","slug":"pagsanjan-181","label":"Pagsanjan"},{"id":182,"province_id":41,"alternative_name":null,"state_id":1,"name":"MAJAYJAY","slug":"majayjay-182","label":"Majayjay"},{"id":205,"province_id":41,"alternative_name":null,"state_id":1,"name":"LOS BANOS","slug":"los-banos-205","label":"Los Banos"},{"id":248,"province_id":41,"alternative_name":null,"state_id":1,"name":"ALAMINOS","slug":"alaminos-248","label":"Alaminos"}],"slug":"laguna-41","label":"Laguna"},{"id":37,"name":"TARLAC","cities":[{"id":36,"province_id":37,"alternative_name":null,"state_id":1,"name":"CAPAS","slug":"capas-36","label":"Capas"},{"id":156,"province_id":37,"alternative_name":null,"state_id":1,"name":"TARLAC","slug":"tarlac-156","label":"Tarlac"},{"id":193,"province_id":37,"alternative_name":null,"state_id":1,"name":"LA PAZ","slug":"la-paz-193","label":"La Paz"},{"id":194,"province_id":37,"alternative_name":null,"state_id":1,"name":"PURA","slug":"pura-194","label":"Pura"},{"id":195,"province_id":37,"alternative_name":null,"state_id":1,"name":"SANTA IGNACIA","slug":"santa-ignacia-195","label":"Santa Ignacia"},{"id":196,"province_id":37,"alternative_name":null,"state_id":1,"name":"CONCEPCION","slug":"concepcion-196","label":"Concepcion"},{"id":219,"province_id":37,"alternative_name":null,"state_id":1,"name":"PANIQUI","slug":"paniqui-219","label":"Paniqui"},{"id":220,"province_id":37,"alternative_name":null,"state_id":1,"name":"GERONA","slug":"gerona-220","label":"Gerona"},{"id":221,"province_id":37,"alternative_name":null,"state_id":1,"name":"RAMOS","slug":"ramos-221","label":"Ramos"},{"id":222,"province_id":37,"alternative_name":null,"state_id":1,"name":"MAYANTOC","slug":"mayantoc-222","label":"Mayantoc"},{"id":232,"province_id":37,"alternative_name":null,"state_id":1,"name":"VICTORIA","slug":"victoria-232","label":"Victoria"},{"id":233,"province_id":37,"alternative_name":null,"state_id":1,"name":"SAN CLEMENTE","slug":"san-clemente-233","label":"San Clemente"}],"slug":"tarlac-37","label":"Tarlac"},{"id":11,"name":"DAVAO DEL SUR","cities":[{"id":39,"province_id":11,"alternative_name":null,"state_id":1,"name":"DAVAO","slug":"davao-39","label":"Davao"}],"slug":"davao-del-sur-11","label":"Davao Del Sur"},{"id":39,"name":"BATANGAS","cities":[{"id":86,"province_id":39,"alternative_name":null,"state_id":1,"name":"LIPA","slug":"lipa-86","label":"Lipa"},{"id":43,"province_id":39,"alternative_name":null,"state_id":1,"name":"SAN JUAN","slug":"san-juan-43","label":"San Juan"},{"id":44,"province_id":39,"alternative_name":null,"state_id":1,"name":"CALATAGAN","slug":"calatagan-44","label":"Calatagan"},{"id":84,"province_id":39,"alternative_name":null,"state_id":1,"name":"BATANGAS","slug":"batangas-84","label":"Batangas"},{"id":118,"province_id":39,"alternative_name":null,"state_id":1,"name":"MALVAR","slug":"malvar-118","label":"Malvar"},{"id":121,"province_id":39,"alternative_name":null,"state_id":1,"name":"TAAL","slug":"taal-121","label":"Taal"},{"id":126,"province_id":39,"alternative_name":null,"state_id":1,"name":"CALACA","slug":"calaca-126","label":"Calaca"},{"id":127,"province_id":39,"alternative_name":null,"state_id":1,"name":"LAUREL","slug":"laurel-127","label":"Laurel"},{"id":128,"province_id":39,"alternative_name":null,"state_id":1,"name":"TALISAY","slug":"talisay-128","label":"Talisay"},{"id":140,"province_id":39,"alternative_name":null,"state_id":1,"name":"SANTO TOMAS","slug":"santo-tomas-140","label":"Santo Tomas"},{"id":165,"province_id":39,"alternative_name":null,"state_id":1,"name":"LEMERY","slug":"lemery-165","label":"Lemery"},{"id":166,"province_id":39,"alternative_name":null,"state_id":1,"name":"SAN PASCUAL","slug":"san-pascual-166","label":"San Pascual"},{"id":167,"province_id":39,"alternative_name":null,"state_id":1,"name":"PADRE GARCIA","slug":"padre-garcia-167","label":"Padre Garcia"},{"id":168,"province_id":39,"alternative_name":null,"state_id":1,"name":"ROSARIO","slug":"rosario-168","label":"Rosario"},{"id":169,"province_id":39,"alternative_name":null,"state_id":1,"name":"BAUAN","slug":"bauan-169","label":"Bauan"},{"id":197,"province_id":39,"alternative_name":null,"state_id":1,"name":"NASUGBU","slug":"nasugbu-197","label":"Nasugbu"},{"id":199,"province_id":39,"alternative_name":null,"state_id":1,"name":"TANAUAN","slug":"tanauan-199","label":"Tanauan"}],"slug":"batangas-39","label":"Batangas"},{"id":62,"name":"CEBU","cities":[{"id":72,"province_id":62,"alternative_name":null,"state_id":1,"name":"BOGO","slug":"bogo-72","label":"Bogo"},{"id":100,"province_id":62,"alternative_name":null,"state_id":1,"name":"CEBU","slug":"cebu-100","label":"Cebu"},{"id":103,"province_id":62,"alternative_name":null,"state_id":1,"name":"LAPU-LAPU","slug":"lapu-lapu-103","label":"Lapu-lapu"},{"id":106,"province_id":62,"alternative_name":null,"state_id":1,"name":"MANDAUE","slug":"mandaue-106","label":"Mandaue"},{"id":162,"province_id":62,"alternative_name":null,"state_id":1,"name":"LILOAN","slug":"liloan-162","label":"Liloan"},{"id":234,"province_id":62,"alternative_name":null,"state_id":1,"name":"CORDOVA","slug":"cordova-234","label":"Cordova"},{"id":242,"province_id":62,"alternative_name":null,"state_id":1,"name":"NAGA (CEBU)","slug":"naga-(cebu)-242","label":"Naga (cebu)"},{"id":254,"province_id":62,"alternative_name":null,"state_id":1,"name":"MINGLANILLA","slug":"minglanilla-254","label":"Minglanilla"}],"slug":"cebu-62","label":"Cebu"},{"id":91,"name":"DAVAO DEL NORTE","cities":[{"id":88,"province_id":91,"alternative_name":null,"state_id":1,"name":"TAGUM","slug":"tagum-88","label":"Tagum"},{"id":244,"province_id":91,"alternative_name":null,"state_id":1,"name":"NEW CORELLA","slug":"new-corella-244","label":"New Corella"}],"slug":"davao-del-norte-91","label":"Davao Del Norte"},{"id":35,"name":"NUEVA ECIJA","cities":[{"id":89,"province_id":35,"alternative_name":null,"state_id":1,"name":"SAN JOSE","
1slug":"san-jose-89","label":"San Jose"},{"id":94,"province_id":35,"alternative_name":null,"state_id":1,"name":"CABANATUAN","slug":"cabanatuan-94","label":"Cabanatuan"},{"id":150,"province_id":35,"alternative_name":null,"state_id":1,"name":"CABIAO","slug":"cabiao-150","label":"Cabiao"},{"id":206,"province_id":35,"alternative_name":null,"state_id":1,"name":"GENERAL TINIO","slug":"general-tinio-206","label":"General Tinio"},{"id":207,"province_id":35,"alternative_name":null,"state_id":1,"name":"GUIMBA","slug":"guimba-207","label":"Guimba"},{"id":208,"province_id":35,"alternative_name":null,"state_id":1,"name":"GAPAN","slug":"gapan-208","label":"Gapan"},{"id":209,"province_id":35,"alternative_name":null,"state_id":1,"name":"JAEN","slug":"jaen-209","label":"Jaen"},{"id":228,"province_id":35,"alternative_name":null,"state_id":1,"name":"GABALDON","slug":"gabaldon-228","label":"Gabaldon"},{"id":229,"province_id":35,"alternative_name":null,"state_id":1,"name":"SANTO DOMINGO","slug":"santo-domingo-229","label":"Santo Domingo"},{"id":266,"province_id":35,"alternative_name":null,"state_id":1,"name":"SAN LEONARDO","slug":"san-leonardo-266","label":"San Leonardo"},{"id":280,"province_id":35,"alternative_name":null,"state_id":1,"name":"BONGABON","slug":"bongabon-280","label":"Bongabon"}],"slug":"nueva-ecija-35","label":"Nueva Ecija"},{"id":33,"name":"BATAAN","cities":[{"id":91,"province_id":33,"alternative_name":null,"state_id":1,"name":"ORANI","slug":"orani-91","label":"Orani"},{"id":146,"province_id":33,"alternative_name":null,"state_id":1,"name":"BALANGA","slug":"balanga-146","label":"Balanga"},{"id":139,"province_id":33,"alternative_name":null,"state_id":1,"name":"PILAR","slug":"pilar-139","label":"Pilar"},{"id":164,"province_id":33,"alternative_name":null,"state_id":1,"name":"LIMAY","slug":"limay-164","label":"Limay"},{"id":198,"province_id":33,"alternative_name":null,"state_id":1,"name":"MORONG","slug":"morong-198","label":"Morong"},{"id":227,"province_id":33,"alternative_name":null,"state_id":1,"name":"MARIVELES","slug":"mariveles-227","label":"Mariveles"},{"id":267,"province_id":33,"alternative_name":null,"state_id":1,"name":"HERMOSA","slug":"hermosa-267","label":"Hermosa"}],"slug":"bataan-33","label":"Bataan"},{"id":23,"name":"ILOCOS NORTE","cities":[{"id":107,"province_id":23,"alternative_name":null,"state_id":1,"name":"LAOAG","slug":"laoag-107","label":"Laoag"}],"slug":"ilocos-norte-23","label":"Ilocos Norte"},{"id":16,"name":"SOUTH COTABATO","cities":[{"id":108,"province_id":16,"alternative_name":null,"state_id":1,"name":"GENERAL SANTOS","slug":"general-santos-108","label":"General Santos"},{"id":245,"province_id":16,"alternative_name":null,"state_id":1,"name":"LAKE SEBU","slug":"lake-sebu-245","label":"Lake Sebu"},{"id":246,"province_id":16,"alternative_name":null,"state_id":1,"name":"KORONADAL","slug":"koronadal-246","label":"Koronadal"},{"id":247,"province_id":16,"alternative_name":null,"state_id":1,"name":"SANTO NINO","slug":"santo-nino-247","label":"Santo Nino"}],"slug":"south-cotabato-16","label":"South Cotabato"},{"id":8,"name":"MISAMIS ORIENTAL","cities":[{"id":74,"province_id":8,"alternative_name":null,"state_id":1,"name":"CAGAYAN DE ORO","slug":"cagayan-de-oro-74","label":"Cagayan De Oro"},{"id":270,"province_id":8,"alternative_name":null,"state_id":1,"name":"EL SALVADOR","slug":"el-salvador-270","label":"El Salvador"},{"id":271,"province_id":8,"alternative_name":null,"state_id":1,"name":"VILLANUEVA","slug":"villanueva-271","label":"Villanueva"}],"slug":"misamis-oriental-8","label":"Misamis Oriental"},{"id":54,"name":"SORSOGON","cities":[{"id":109,"province_id":54,"alternative_name":null,"state_id":1,"name":"SORSOGON","slug":"sorsogon-109","label":"Sorsogon"},{"id":218,"province_id":54,"alternative_name":null,"state_id":1,"name":"GUBAT","slug":"gubat-218","label":"Gubat"}],"slug":"sorsogon-54","label":"Sorsogon"},{"id":18,"name":"AGUSAN DEL NORTE","cities":[{"id":110,"province_id":18,"alternative_name":null,"state_id":1,"name":"BUTUAN","slug":"butuan-110","label":"Butuan"}],"slug":"agusan-del-norte-18","label":"Agusan Del Norte"},{"id":26,"name":"PANGASINAN","cities":[{"id":111,"province_id":26,"alternative_name":null,"state_id":1,"name":"URDANETA","slug":"urdaneta-111","label":"Urdaneta"},{"id":112,"province_id":26,"alternative_name":null,"state_id":1,"name":"SANTA BARBARA","slug":"santa-barbara-112","label":"Santa Barbara"},{"id":185,"province_id":26,"alternative_name":null,"state_id":1,"name":"SAN JACINTO","slug":"san-jacinto-185","label":"San Jacinto"},{"id":186,"province_id":26,"alternative_name":null,"state_id":1,"name":"SAN CARLOS","slug":"san-carlos-186","label":"San Carlos"},{"id":187,"province_id":26,"alternative_name":null,"state_id":1,"name":"ASINGAN","slug":"asingan-187","label":"Asingan"},{"id":188,"province_id":26,"alternative_name":null,"state_id":1,"name":"ALAMINOS","slug":"alaminos-188","label":"Alaminos"},{"id":189,"province_id":26,"alternative_name":null,"state_id":1,"name":"POZORRUBIO","slug":"pozorrubio-189","label":"Pozorrubio"},{"id":190,"province_id":26,"alternative_name":null,"state_id":1,"name":"DAGUPAN","slug":"dagupan-190","label":"Dagupan"},{"id":212,"province_id":26,"alternative_name":null,"state_id":1,"name":"ROSALES","slug":"rosales-212","label":"Rosales"},{"id":213,"province_id":26,"alternative_name":null,"state_id":1,"name":"URBIZTONDO","slug":"urbiztondo-213","label":"Urbiztondo"},{"id":214,"province_id":26,"alternative_name":null,"state_id":1,"name":"UMINGAN","slug":"umingan-214","label":"Umingan"},{"id":215,"province_id":26,"alternative_name":null,"state_id":1,"name":"MALASIQUI","slug":"malasiqui-215","label":"Malasiqui"},{"id":231,"province_id":26,"alternative_name":null,"state_id":1,"name":"DASOL","slug":"dasol-231","label":"Dasol"},{"id":274,"province_id":26,"alternative_name":null,"state_id":1,"name":"BINMALEY","slug":"binmaley-274","label":"Binmaley"},{"id":275,"province_id":26,"alternative_name":null,"state_id":1,"name":"SAN MANUEL","slug":"san-manuel-275","label":"San Manuel"}],"slug":"pangasinan-26","label":"Pangasinan"},{"id":49,"name":"ALBAY","cities":[{"id":113,"province_id":49,"alternative_name":null,"state_id":1,"name":"LEGAZPI","slug":"legazpi-113","label":"Legazpi"},{"id":268,"province_id":49,"alternative_name":null,"state_id":1,"name":"TABACO","slug":"tabaco-268","label":"Tabaco"},{"id":272,"province_id":49,"alternative_name":null,"state_id":1,"name":"DARAGA","slug":"daraga-272","label":"Daraga"}],"slug":"albay-49","label":"Albay"},{"id":59,"name":"ILOILO","cities":[{"id":115,"province_id":59,"alternative_name":null,"state_id":1,"name":"ILOILO","slug":"iloilo-115","label":"Iloilo"},{"id":152,"province_id":59,"alternative_name":null,"state_id":1,"name":"OTON","slug":"oton-152","label":"Oton"},{"id":239,"province_id":59,"alternative_name":null,"state_id":1,"name":"SAN ENRIQUE","slug":"san-enrique-239","label":"San Enrique"},{"id":241,"province_id":59,"alternative_name":null,"state_id":1,"name":"LAMBUNAO","slug":"lambunao-241","label":"Lambunao"},{"id":269,"province_id":59,"alternative_name":null,"state_id":1,"name":"JARO","slug":"jaro-269","label":"Jaro"}],"slug":"iloilo-59","label":"Iloilo"},{"id":24,"name":"ILOCOS SUR","cities":[{"id":117,"province_id":24,"alternative_name":null,"state_id":1,"name":"BANTAY","slug":"bantay-117","label":"Bantay"},{"id":178,"province_id":24,"alternative_name":null,"state_id":1,"name":"SANTA MARIA","slug":"santa-maria-178","label":"Santa Maria"}],"slug":"ilocos-sur-24","label":"Ilocos Sur"},{"id":51,"name":"CAMARINES SUR","cities":[{"id":119,"province_id":51,"alternative_name":null,"state_id":1,"name":"PILI","slug":"pili-119","label":"Pili"},{"id":129,"province_id":51,"alternative_name":null,"state_id":1,"name":"NAGA","slug":"naga-129","label":"Naga"}],"slug":"camarines-sur-51","label":"Camarines Sur"},{"id":47,"name":"PALAWAN","cities":[{"id":120,"province_id":47,"alternative_name":null,"state_id":1,"name":"PUERTO PRINCESA","slug":"puerto-princesa-120","label":"Puerto Princesa"},{"id":255,"province_id":47,"alternative_name":null,"state_id":1,"name":"CORON","slug":"coron-255","label":"Coron"}],"slug":"palawan-47","label":"Palawan"}
1,{"id":102,"name":"QUEZON","cities":[{"id":123,"province_id":102,"alternative_name":null,"state_id":1,"name":"TAYABAS","slug":"tayabas-123","label":"Tayabas"}],"slug":"quezon-102","label":"Quezon"},{"id":42,"name":"QUEZON PROVINCE","cities":[{"id":45,"province_id":42,"alternative_name":"LUCENA CITY","state_id":1,"name":"LUCENA","slug":"lucena-45","label":"Lucena"},{"id":191,"province_id":42,"alternative_name":null,"state_id":1,"name":"TIAONG","slug":"tiaong-191","label":"Tiaong"},{"id":192,"province_id":42,"alternative_name":null,"state_id":1,"name":"CALAUAG","slug":"calauag-192","label":"Calauag"},{"id":216,"province_id":42,"alternative_name":null,"state_id":1,"name":"CANDELARIA","slug":"candelaria-216","label":"Candelaria"},{"id":217,"province_id":42,"alternative_name":null,"state_id":1,"name":"SARIAYA","slug":"sariaya-217","label":"Sariaya"}],"slug":"quezon-province-42","label":"Quezon Province"},{"id":67,"name":"LEYTE","cities":[{"id":154,"province_id":67,"alternative_name":null,"state_id":1,"name":"PAVIA","slug":"pavia-154","label":"Pavia"}],"slug":"leyte-67","label":"Leyte"},{"id":60,"name":"NEGROS OCCIDENTAL","cities":[{"id":155,"province_id":60,"alternative_name":null,"state_id":1,"name":"VICTORIAS","slug":"victorias-155","label":"Victorias"},{"id":236,"province_id":60,"alternative_name":null,"state_id":1,"name":"TALISAY","slug":"talisay-236","label":"Talisay"},{"id":237,"province_id":60,"alternative_name":null,"state_id":1,"name":"KABANKALAN","slug":"kabankalan-237","label":"Kabankalan"},{"id":238,"province_id":60,"alternative_name":null,"state_id":1,"name":"ISABELA","slug":"isabela-238","label":"Isabela"},{"id":240,"province_id":60,"alternative_name":null,"state_id":1,"name":"SILAY","slug":"silay-240","label":"Silay"},{"id":253,"province_id":60,"alternative_name":null,"state_id":1,"name":"HINIGARAN","slug":"hinigaran-253","label":"Hinigaran"}],"slug":"negros-occidental-60","label":"Negros Occidental"},{"id":21,"name":"SURIGAO DEL NORTE","cities":[{"id":158,"province_id":21,"alternative_name":null,"state_id":1,"name":"SAN ISIDRO","slug":"san-isidro-158","label":"San Isidro"},{"id":243,"province_id":21,"alternative_name":null,"state_id":1,"name":"SURIGAO","slug":"surigao-243","label":"Surigao"},{"id":258,"province_id":21,"alternative_name":null,"state_id":1,"name":"SISON","slug":"sison-258","label":"Sison"}],"slug":"surigao-del-norte-21","label":"Surigao Del Norte"},{"id":81,"name":"BENGUET","cities":[{"id":170,"province_id":81,"alternative_name":null,"state_id":1,"name":"BAGUIO","slug":"baguio-170","label":"Baguio"},{"id":200,"province_id":81,"alternative_name":null,"state_id":1,"name":"TUBA","slug":"tuba-200","label":"Tuba"}],"slug":"benguet-81","label":"Benguet"},{"id":28,"name":"CAGAYAN","cities":[{"id":174,"province_id":28,"alternative_name":null,"state_id":1,"name":"APARRI","slug":"aparri-174","label":"Aparri"},{"id":175,"province_id":28,"alternative_name":null,"state_id":1,"name":"LASAM","slug":"lasam-175","label":"Lasam"},{"id":223,"province_id":28,"alternative_name":null,"state_id":1,"name":"TUAO","slug":"tuao-223","label":"Tuao"},{"id":265,"province_id":28,"alternative_name":null,"state_id":1,"name":"IGUIG","slug":"iguig-265","label":"Iguig"}],"slug":"cagayan-28","label":"Cagayan"},{"id":4,"name":"BUKIDNON","cities":[{"id":249,"province_id":4,"alternative_name":null,"state_id":1,"name":"VALENCIA","slug":"valencia-249","label":"Valencia"}],"slug":"bukidnon-4","label":"Bukidnon"},{"id":25,"name":"LA UNION","cities":[{"id":257,"province_id":25,"alternative_name":null,"state_id":1,"name":"ARINGAY","slug":"aringay-257","label":"Aringay"},{"id":276,"province_id":25,"alternative_name":null,"state_id":1,"name":"BACNOTAN","slug":"bacnotan-276","label":"Bacnotan"}],"slug":"la-union-25","label":"La Union"},{"id":103,"name":"DAVAO DE ORO","cities":[{"id":277,"province_id":103,"alternative_name":null,"state_id":1,"name":"MACO","slug":"maco-277","label":"Maco"},{"id":278,"province_id":103,"alternative_name":null,"state_id":1,"name":"MONKAYO","slug":"monkayo-278","label":"Monkayo"}],"slug":"davao-de-oro-103","label":"Davao De Oro"},{"id":32,"name":"AURORA","cities":[{"id":279,"province_id":32,"alternative_name":null,"state_id":1,"name":"CASIGURAN","slug":"casiguran-279","label":"Casiguran"}],"slug":"aurora-32","label":"Aurora"}]'),v=JSON.parse('[{"property_category_id":1,"property_category_name":"Condominium","property_category_label":"Condominium","is_active":1},{"property_category_id":2,"property_category_name":"House and Lot","property_category_label":"House and Lot","is_active":1},{"property_category_id":4,"property_category_name":"Residential Lot","property_category_label":"Residential Lot","is_active":1},{"property_category_id":6,"property_category_name":"Lot Only","property_category_label":"Lot Only","is_active":1},{"property_category_id":7,"property_category_name":"Townhouse","property_category_label":"Townhouse","is_active":1},{"property_category_id":8,"property_category_name":"Commercial Space","property_category_label":"Commercial Space","is_active":1},{"property_category_id":9,"property_category_name":"Parking Lot","property_category_label":"Parking Lot","
1is_active":1},{"property_category_id":10,"property_category_name":"Industrial Lot","property_category_label":"Industrial Lot","is_active":1},{"property_category_id":16,"property_category_name":"Industrial Lot with Building","property_category_label":"Industrial Lot with Building","is_active":1},{"property_category_id":17,"property_category_name":"Industrial Building","property_category_label":"Industrial Building","is_active":1}]');let getGeoLocationTree=async()=>{let e=c.filter(e=>null!==e.provinces),a=m.filter(e=>null!==e.cities),l=null==e?void 0:e.map(e=>({id:e.id,name:e.name,label:e.name,slug:e.slug.replace("--","-"),provinces:e.provinces.map(e=>{var l,n;return{id:e.id,name:e.name,label:e.label,slug:e.slug.replace("--","-"),cities:null==a?void 0:null===(n=a.find(a=>a.id===e.id))||void 0===n?void 0:null===(l=n.cities)||void 0===l?void 0:l.map(e=>({id:null==e?void 0:e.id,name:null==e?void 0:e.name,label:e.label,slug:null==e?void 0:e.slug.replace("--","-")}))}}).filter(e=>!!e.cities)}));return l};async function getLandingPageRoutes(e){var a,l,n;let i=await getGeoLocationTree(),t=[],s=[];null===(l=[{property_category_id:null,property_category_name:"Properties",property_category_label:"Properties",is_active:1}].concat(v))||void 0===l||null===(a=l.map)||void 0===a||a.call(l,e=>s.push({title:e.property_category_name,searching_tags:[e.property_category_name.toLowerCase()],url:"".concat(e.property_category_name.trim().replaceAll(" ","-").replaceAll("_","-").toLocaleLowerCase()).concat(e.property_category_id?"-".concat(e.property_category_id):"").replaceAll("--","-")})),t.push(...s);let r=[];if(null==s||null===(n=s.map)||void 0===n||n.call(s,e=>{var a,l;let n=e.title,t=null===(a=e.title)||void 0===a?void 0:a.toLowerCase();return null==i?void 0:null===(l=i.map)||void 0===l?void 0:l.call(i,a=>{var l,i,s;let o=null===(l=a.name)||void 0===l?void 0:l.toLowerCase();return null===(s=a.provinces)||void 0===s?void 0:null===(i=s.map)||void 0===i?void 0:i.call(s,l=>{var i,s,d;let u=l.label,c=null===(i=l.name)||void 0===i?void 0:i.toLowerCase();return r.push({title:"".concat(n," in ").concat(u),searching_tags:[t,o,c],url:"".concat(e.url,"/").concat(a.slug,"/").concat(l.slug)}),null==l?void 0:null===(d=l.cities)||void 0===d?void 0:null===(s=d.map)||void 0===s?void 0:s.call(d,i=>{var s;let d=i.label,m=null===(s=i.name)||void 0===s?void 0:s.toLowerCase();return r.push({title:"".concat(n," in ").concat(d,", ").concat(u),searching_tags:[t,o,c,m],url:"".concat(e.url,"/").concat(a.slug,"/").concat(l.slug,"/").concat(i.slug)})})})})}),t.push(...r),console.log({routesLength:t.length}),e){let e=[];for(let a=0;a<t.length;a+=100)e=[...e,t.slice(a,a+100)];console.log("Sending /buy routes to Typesense for Matching Pages...",null==t?void 0:t.length);try{let a=e.map(async e=>{let a=await u().post("".concat("https://ms-search.qmarketz.com","/typesense/seed?collection_name=matching_pages"),e);return a}),l=await Promise.all(a);console.log("Typesense POST success. ",{res:l},"done","matching pages length: ",null==t?void 0:t.length)}catch(e){console.log("Failed to send /buy routes to Typesense. Error: ",e.message)}}return t}var g=l(3933),_=l(746),p=l(3632),A=l(5967),b=l(135),N=l(9756);function SiteMap(){let[e,a]=(0,i.useState)([]);return(0,i.useEffect)(()=>{let getRoute=async()=>{let e=await getLandingPageRoutes();a(e)};getRoute()},[]),(0,n.jsxs)("div",{children:[(0,n.jsx)("h1",{children:"Available Links"}),e&&e.map(e=>{let{url:a}=e;return(0,n.jsx)(r(),{href:"/buy/".concat(a),passHref:!0,legacyBehavior:!0,children:(0,n.jsx)("button",{type:"button",className:"my-2 flex self-start text-left font-normal capitalize",children:a})},a)})]})}function LandingPage(e){var a,l,s,r,d,u,c,m,v,h,y,x;let{meta:O,reviews:S,buyOnly:I,featuredItems:L}=e;if(I)return(0,n.jsx)(SiteMap,{});let[f,R]=(0,i.useState)([]),[C,E]=(0,i.useState)(""),j=(0,t.useRouter)(),{query:T,asPath:M}=j,{page:U,...P}=T,B=(0,N.Z)({cta:"Hero Card"});(0,i.useEffect)(()=>{var e,a;let l=[];return null===(a=Object.keys(T))||void 0===a||null===(e=a.map)||void 0===e||e.call(a,e=>(["page","city_id","property_category_id","landingpage"].includes(e)||l.push("".concat(e,"=").concat(T[e])),null)),E(l.join("&")),()=>{E("")}},[T,j]);let getMeta=()=>{var e,a,l;let n=null!==(l=null==O?void 0:O.types)&&void 0!==l?l:void 0,shouldUpperCase=e=>["ncr"].includes(e.toLowerCase())?e.toUpperCase():e,propertyType=()=>{var e,a,l,n,i,t,s,r;let getPluralNames=e=>{let a={"House And Lot":"Houses & Lots","Lot Only":"Lots"};return a[e]?a[e]:"".concat(e,"s")};return(null==O?void 0:null===(e=O.types)||void 0===e?void 0:e.length)===2?"".concat(getPluralNames(null==O?void 0:null===(n=O.types)||void 0===n?void 0:null===(l=n[0])||void 0===l?void 0:l.name)," and ").concat(getPluralNames(null==O?void 0:null===(t=O.types)||void 0===t?void 0:null===(i=t[1])||void 0===i?void 0:i.name)):(null==O?void 0:null===(a=O.types)||void 0===a?void 0:a.length)>2?"Multiple Properties":getPluralNames(null==O?void 0:null===(r=O.types)||void 0===r?void 0:null===(s=r[0])||void 0===s?void 0:s.name)||"Properties"},i=(null==O?void 0:O.cities)&&(null==O?void 0:null===(e=O.cities)||void 0===e?void 0:e.length)>0||(null==O?void 0:O.provinces)&&(null==O?void 0:null===(a=O.provinces)||void 0===a?void 0:a.length)>0,location=()=>{var e,a,l,n,i,t,s,r,o,d,u,c,m,v,g,_,p,A,b,N,h,y,x,S;let I=(null==O?void 0:O.cities)&&(null==O?void 0:O.provinces)&&(null==O?void 0:null===(e=O.cities)||void 0===e?void 0:e.length)===2&&(null==O?void 0:null===(a=O.provinces)||void 0===a?void 0:a.length)===2,L=(null==O?void 0:O.cities)&&(null==O?void 0:O.provinces)&&(null==O?void 0:null===(l=O.cities)||void 0===l?void 0:l.length)===2&&(null==O?void 0:null===(n=O.provinces)||void 0===n?void 0:n.length)===1,f=(null==O?void 0:O.cities)&&(null==O?void 0:O.provinces)&&(null==O?void 0:null===(i=O.cities)||void 0===i?void 0:i.length)===1&&(null==O?void 0:null===(t=O.provinces)||void 0===t?void 0:t.length)===2,R=(null==O?void 0:O.cities)&&(null==O?void 0:O.provinces)&&(null==O?void 0:null===(s=O.cities)||void 0===s?void 0:s.length)===1&&(null==O?void 0:null===(r=O.provinces)||void 0===r?void 0:r.length)===1,C=(null==O?void 0:O.cities)===void 0&&(null==O?void 0:O.provinces)&&(null==O?void 0:null===(o=O.provinces)||void 0===o?void 0:o.length)>0;return I?"Multiple Locations":L?"".concat(null==O?void 0:null===(d=O.cities)||void 0===d?void 0:d[0].name," and ").concat(null==O?void 0:null===(u=O.cities)||void 0===u?void 0:u[1].name):R?"".concat(null==O?void 0:null===(c=O.cities)||void 0===c?void 0:c[0].name,", ").concat(shouldUpperCase(null==O?void 0:null===(m=O.provinces)||void 0===m?void 0:m[0].name)):f?(null==O?void 0:null===(v=O.cities)||void 0===v?void 0:v[0].name.toLowerCase().includes("city"))?"".concat(null==O?void 0:null===(g=O.cities)||void 0===g?void 0:g[0].name," and ").concat(shouldUpperCase(null==O?void 0:null===(_=O.provinces)||void 0===_?void 0:_[1].name)):"".concat(null==O?void 0:null===(p=O.cities)||void 0===p?void 0:p[0].name,", ").concat(shouldUpperCase(null==O?void 0:null===(A=O.provinces)||void 0===A?void 0:A[0].name)," and ").concat(shouldUpperCase(null==O?void 0:null===(b=O.provinces)||void 0===b?void 0:b[1].name)):C?(null===(N=O.provinces)||void 0===N?void 0:N.length)===1?"".concat(shouldUpperCase(null==O?void 0:null===(y=O.provinces)||void 0===y?void 0:y[0].name)):(null===(h=O.provinces)||void 0===h?void 0:h.length)===2?"".concat(shouldUpperCase(null==O?void 0:null===(x=O.provinces)||void 0===x?void 0:x[0].name)," and ").concat(shouldUpperCase(null==O?void 0:null===(S=O.provinces)||void 0===S?void 0:S[1].name)):"Multiple Provinces":"Multiple Locations"},t="".concat(n?propertyType():"Properties"," ").concat(i?"in ".concat(location()):"for Sale"),s="Promos and Discounts available! Invest in ".concat(n?propertyType():"Properties"," located ").concat(i?"in ".concat(location()):"for Sale","! Chat with us to get more info, quotes, and schedule site viewings.");return{title:t,desc:s}};return(0,i.useEffect)(()=>{let getData=async()=>{var e,a,l,n;let i={limit:12};(null==O?void 0:null===(e=O.types)||void 0===e?void 0:e.length)&&(i.property_category_id=O.types.map(e=>e.id).join(",")),(null==O?void 0:null===(a=O.cities)||void 0===a?void 0:a.length)&&(i.city_id=O.cities.map(e=>e.id).join(",")),(null==O?void 0:null===(l=O.provinces)||void 0===l?void 0:l.length)&&!(null==O?void 0:null===(n=O.cities)||void 0===n?void 0:n.length)&&(i.province_id=O.provinces.map(e=>
1e.id).join(",")),Object.keys(P).forEach(e=>{["price_min","price_max","lot_area_min","lot_area_max","floor_area_min","floor_area_max","number_of_bedrooms","number_of_bathrooms","developer_id"].includes(e)&&(i[e]=P[e])}),U?i.page=U:i.page=1;let t=Object.keys(i).map(e=>"".concat(encodeURIComponent(e),"=").concat(encodeURIComponent(i[e]))).join("&"),s="".concat("https://api.assetmart.global","/property-projects?").concat(t),r=await fetch(s),o=await r.json();R(o)};getData()},[O]),(0,n.jsxs)("div",{className:"flex flex-col items-center",children:[(0,n.jsx)(o.PB,{title:"".concat(getMeta().title," | Assetmart.Global"),description:getMeta().desc,openGraph:{type:"website",title:"".concat(getMeta().title," | Assetmart.Global"),description:getMeta().desc,locale:"en_PH",url:"https://assetmart.global".concat(M),site_name:"Assetmart.Global"}}),(0,n.jsx)("img",{className:"h-full max-h-[480px] min-h-[298px] w-full object-cover object-left lg:h-[480px]",src:"/Hero_Photos/Home_Page/412.webp",srcSet:"/Hero_Photos/Home_Page/412.webp 412w, /Hero_Photos/Home_Page/768.webp 768w, /Hero_Photos/Home_Page/1024.webp 1024w, /Hero_Photos/Home_Page/1280.webp 1280w, /Hero_Photos/Home_Page/1600.webp 1600w, /Hero_Photos/Home_Page/1920.webp 1920w",alt:"hero"}),(0,n.jsx)("div",{className:"absolute right-0 top-0 hidden h-[480px] p-md lg:block",children:(0,n.jsx)("div",{className:"flex w-[360px] flex-col justify-between rounded-sm bg-secondary p-sm",children:(0,n.jsxs)("div",{children:[(0,n.jsx)("h1",{className:"mb-0 text-white",children:getMeta().title||"Find Your New Home Or Investment"}),(0,n.jsxs)("div",{className:"flex justify-around py-5",children:[(null==f?void 0:null===(a=f.meta)||void 0===a?void 0:a.totalItems)>0&&(0,n.jsxs)("div",{className:"flex flex-col items-center justify-between",children:[(0,n.jsx)("h3",{className:"text-xxxl text-tertiary",children:null==f?void 0:null===(l=f.meta)||void 0===l?void 0:l.totalItems}),(0,n.jsx)("p",{className:"body font-semibold text-secondary-light ",children:"Properties Available"})]}),(null==f?void 0:null===(s=f.meta)||void 0===s?void 0:s.priceRange)&&(0,n.jsxs)("div",{className:"flex flex-col items-center justify-between",children:[(0,n.jsx)("h4",{className:"text-tertiary",children:null==f?void 0:null===(r=f.meta)||void 0===r?void 0:r.priceRange}),(0,n.jsx)("p",{className:"body font-semibold text-secondary-light ",children:"Price Range"})]})]}),(0,n.jsx)("button",{type:"button",className:"button-primary mb-sm tracking-[0.25rem]",onClick:()=>B(),children:"Chat with adviser"})]})})}),(0,n.jsx)("div",{className:"relative mb-lg w-full bg-secondary",children:(0,n.jsxs)("div",{className:"p-sm lg:hidden",children:[(0,n.jsx)("h1",{className:"text-white sm:text-center",children:getMeta().title||"Find Your New Home Or Investment"}),(0,n.jsxs)("div",{className:"flex justify-around py-sm",children:[(null==f?void 0:null===(d=f.meta)||void 0===d?void 0:d.totalItems)>0&&(0,n.jsxs)("div",{className:"flex flex-col items-center justify-between",children:[(0,n.jsx)("h3",{className:"text-xxxl text-tertiary",children:null==f?void 0:null===(u=f.meta)||void 0===u?void 0:u.totalItems}),(0,n.jsx)("p",{className:"body font-semibold text-secondary-light ",children:"Properties Available"})]}),(null==f?void 0:null===(c=f.meta)||void 0===c?void 0:c.priceRange)&&(0,n.jsxs)("div",{className:"flex flex-col items-center justify-between",children:[(0,n.jsx)("h4",{className:"text-tertiary",children:null==f?void 0:null===(m=f.meta)||void 0===m?void 0:m.priceRange}),(0,n.jsx)("p",{className:"body font-semibold text-secondary-light ",children:"Price Range"})]})]})]})}),(0,n.jsx)("div",{className:"w-full",children:(null==f?void 0:null===(v=f.meta)||void 0===v?void 0:v.totalItems)>0?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:"relative mx-auto grid grid-cols-2 p-4 sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-5",children:f&&(null==f?void 0:f.data)&&(null==f?void 0:null===(h=f.data)||void 0===h?void 0:h.map(e=>(0,n.jsx)(p.default,{item:e},e.id)))}),(0,n.jsx)(g.Z,{scrollToTop:!0,currentPage:+f.meta.currentPage,totalPages:f.meta.totalPages,paginate:C,page:null===(x=j.asPath)||void 0===x?void 0:null===(y=x.split("?"))||void 0===y?void 0:y[0]})]}):L&&L.length>0&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("h2",{className:"text-center",children:["Found 0 ",getMeta().title,(0,n.jsx)("br",{}),"Check out these properties instead."]}),(0,n.jsx)(b.Z,{gap:0,grid:2,children:null==L?void 0:L.map(e=>(0,n.jsx)(p.default,{item:e},e.id))})]})}),(0,n.jsx)(_.default,{reviews:S}
1),(0,n.jsx)(A.default,{})]})}var h=!0,y=LandingPage;LandingPage.defaultProps={meta:{},reviews:{},buyOnly:!1}}},function(e){e.O(0,[9669,9774,2888,179],function(){return e(e.s=3410)}),_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.