PageSourceSearch

https://remax.pt/_next/static/chunks/pages/[locale]/agences-f4eba04dcf1f63fa.js

js remax.pt collected 2026-10-02 04:09:07 UTC 5,616 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7384],{91630:function(e,t,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/[locale]/agences",function(){return i(93096)}])},44850:function(e,t,i){"use strict";i.d(t,{Z:function(){return R}});var n=i(47568),r=i(26042),a=i(69396),s=i(34051),o=i.n(s),l=i(85893),c=i(9008),d=i.n(c),u=i(35281),f=i(87870),v=i(70705),h=i(67294),p=i(76705),m=i(36608),g=i(33630),x=function(){var e,t,i=(0,h.useContext)(p.Z).searchResultsInfo,n=(0,u.$G)("office-search").t;return(0,l.jsxs)("div",{className:"pl-0",children:[(0,l.jsx)("h2",{className:"sr-only",children:n("offices-list")}),(0,l.jsx)("div",{className:"grid ".concat("grid-cols-1 gap-y-6 gap-x-5 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 2xl:grid-cols-4"),children:0==(null===i||void 0===i||null===(e=i.results)||void 0===e?void 0:e.length)||void 0==(null===i||void 0===i?void 0:i.results)?Array(v.ABW).fill(1).map((function(e,t){return(0,l.jsx)(m.Z,{item:null,index:t},"office-placeholder-".concat(t))})):null===i||void 0===i||null===(t=i.results)||void 0===t?void 0:t.map((function(e,t){var i=e;return(0,l.jsx)(g.Z,{item:i,index:t},null===i||void 0===i?void 0:i.officeNumber)}))})]})},w=i(11163),j=i(58091),S=i(23675),y=i(34940),b=i(56129),N=i(11849),F=i(29895),_=i(61768),Z=i(15940);function R(e){var t=e.filters,i=e.initialSearchResultsInfo,s=e.initialSearchFilters,c=e.initialUriSearchFilters,p=e.seoMetadata,m=e.banner,g=(0,u.$G)(["navbar","office-search"]).i18n,R=(0,w.useRouter)(),E=(0,h.useState)(s||{}),P=E[0],I=E[1],C=(0,h.useState)(c||{filters:{}}),O=C[0],k=C[1],L=(0,h.useState)(void 0),T=L[0],M=L[1],Q=(0,h.useState)(!0),U=Q[0],A=Q[1],G=(0,h.useState)(void 0),B=G[0],z=G[1],W=(0,h.useContext)(_.Z).isReady;(0,h.useEffect)((function(){P&&T&&A(!1)}),[P,T]),(0,h.useEffect)((function(){R.isReady&&U&&X()}),[R.isReady,U]),(0,h.useEffect)((function(){B&&A(!0)}),[B]),(0,h.useEffect)((function(){R.beforePopState((function(e){var t,i,n=e.as,r=e.url,a=null!==(i=null===(t=n.match(/\/([a-z,A-Z]*)\//))||void 0===t?void 0:t[1])&&void 0!==i?i:"";if(a&&g.changeLanguage(a),!r.startsWith("/[locale]"+j.F.OfficeSearch))return!0;if(n!==R.asPath)if("web"===F.dV.getPlatform())R.reload();else{var s=new URLSearchParams(window.location.search),o=Object.fromEntries(s.entries());z(null===o||void 0===o?void 0:o[f.v1])}return!0}));var e=new URLSearchParams(window.location.search);return!R.isReady||e.has(f.v1)||e.has(f.be)||A(!0),function(){R.beforePopState((function(){return!0}))}}),[R]);var X=function(){var e=(0,n.Z)(o().mark((function e(){var t,i,n,s,l,d,u,v,h,p,m,g,x;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:l=new URLSearchParams(window.location.search),d=(null===(t=l.get(f.v1))||void 0===t?void 0:t.toString())||"{}",v=null!==(u=null===(i=l.get(f.jO))||void 0===i?void 0:i.toString())&&void 0!==u?u:void 0,h=c?JSON.stringify(c.filters):void 0,(p=v?(0,S.M_)(v):(0,S.fh)(d,h))&&(k((0,a.Z)((0,r.Z)({},O),{filters:p})),m=(0,y.dG)(p,(0,N.bQ)()),(null===p||void 0===p?void 0:p.regionType)&&(m.regionId.field=m.regionId.field.replace("{{id}}",null===p||void 0===p?void 0:p.regionType.charAt((null===p||void 0===p?void 0:p.regionType.length)-3))),I(m)),x=parseInt(null!==(g=null===(n=R.query)||void 0===n||null===(s=n[f.be])||void 0===s?void 0:s.toString())&&void 0!==g?g:"1"),M(x),z(void 0);case 12:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)(d(),{children:[(null===p||void 0===p?void 0:p.title)&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("title",{children:p.title},"title"),(0,l.jsx)("meta",{name:"og:title",property:"og:title",content:p.title},"og:title"),(0,l.jsx)("meta",{name:"twitter:title",property:"twitter:title",content:p.title},"twitter:title")]}),(null===p||void 0===p?void 0:p.description)&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("meta",{name:"description",property:"description",content:p.description},"description"),(0,l.jsx)("meta",{name:"og:description",property:"og:description",content:p.description},"og:description"),(0,l.jsx)("meta",{name:"twitter:description",property:"twitter:description",content:p.description},"twitter:description")]})]}),(0,l.jsx)("div",{className:"relative z-10 pb-0 bg-white w-full mx-auto",children:W&&(0,l.jsxs)("div",{className:"sm:text-center lg:text-left",children:[U&&(0,l.jsx)("span",{className:"h-[500px] w-full flex bg-white animate-pulse transition-opacity duration-300"}),!U&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(b.Z,{titleTranslationKey:"office-search:search-offices-title",pagination:!0,mixFilters:(0,a.Z)((0,r.Z)({},v.PQi.OFFICE.mixFilters),{filters:t||{}}),initialSearchResultsInfo:i,initialPage:null!==T&&void 0!==T?T:1,initialSearchFilters:P,initialSort:v.QlN.id,initialUriSearchFilters:O,entityName:v.PQi.OFFICE.name,searchBarClassName:v.PQi.OFFICE.searchBarClassName,isLoading:U,seoMetadata:p||{},helperData:void 0,children:(0,l.jsx)(x,{})}),m&&(0,l.jsx)(Z.Z,{data:m,containerClassName:"w-full px-3 md:px-10 mb-6 md:mb-12"})]})]})})]})}},93096:function(e,t,i){"use strict";i.r(t),i.d(t,{__N_SSG:function(){return s},default:function(){return o}});var n=i(85893),r=i(64512),a=i(44850),s=!0;function o(e){var t=e.filters,i=e.initialSearchResultsInfo,r=e.seoMetadata,s=e.banner;return(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(a.Z,{filters:t,initialSearchResultsInfo:i,seoMetadata:r,banner:s})})}o.getLayout=function(e){return(0,n.jsx)(r.Z,{skipIsReady:!0,children:e})}}},function(e){e.O(0,[9834,2607,9919,5927,7945,7342,1849,9109,6111,3276,6129,9774,2888,179],(function(){return t=91630,e(e.s=t);var t}));var t=e.O();_N_E=t}]);

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.