PageSourceSearch

https://myside.com.br/_next/static/chunks/4946-e79f9102e83d014a.js

js myside.com.br collected 2026-10-02 06:31:20 UTC 31,220 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},l=(new e.Error).stack;l&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[l]="ce50fb5b-9358-49ad-8a4b-d4d0898b75f3",e._sentryDebugIdIdentifier="sentry-dbid-ce50fb5b-9358-49ad-8a4b-d4d0898b75f3")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4946],{7719:(e,l,n)=>{n.d(l,{KV:()=>p,LV:()=>M,Os:()=>_,SS:()=>y,_i:()=>A,kS:()=>g,oO:()=>S,qI:()=>I,rp:()=>L,xl:()=>b});var t,o,i=n(68428),a=n(18366),r=n(57723),u=n(44432);n(45908);var c=n(42814),d=n(72884),s=n(32196),v=n(81384);null===v.mN||void 0===v.mN||v.mN.reduce((e,l)=>({...e,[(0,s.Ot)(v.Z3[l],!1)]:l}),{}),null==(t=Object.entries(v.Zl))||t.reduce((e,l)=>{let[n,t]=l;return{...e,[(0,s.Ot)(t,!1)]:n}},{}),null==(o=Object.entries(v.a1))||o.reduce((e,l)=>{let[n,t]=l;return{...e,[(0,s.Ot)(null==t?void 0:t.replace(" -",""),!1)]:n}},{});let m=e=>{var l;let n=[void 0,null,[],""];return null==(l=Object.keys(e))?void 0:l.reduce((l,t)=>{let o=e[t];return t===v.sS.PRICE_MIN||t===v.sS.PRICE_MAX||t===v.sS.AREA_MIN||t===v.sS.AREA_MAX?null==o||""===o?l:{...l,[t]:o}:n.includes(o)||Array.isArray(o)&&0===o.length?l:{...l,[t]:o}},{})},p=(e,l,n,t,o,i,a,r)=>{var d,s,v,m;let p=null==l?void 0:l.filter(e=>null==e?void 0:e.includes("quarto")),g=null==p||null==(s=p[0])||null==(d=s.split("-"))?void 0:d[0],y=(null==p?void 0:p.length)||0,f=null==p||null==(m
1=p[(null==p?void 0:p.length)-1])||null==(v=m.split("-"))?void 0:v[0],{cityArticle:h}=i;return({title:"".concat((0,c.mM)(Number(n),"Apartamento",!1)," de ").concat(y>1?"".concat(g," a ").concat(f," quartos"):"".concat((0,c.mM)(Number(g),"quarto"))," \xe0 venda ").concat(h," ").concat(t,", ").concat(o," | MySide"),heading:"".concat((0,c.mM)(Number(n),"Apartamento",!1)," de ").concat(y>1?"".concat(g," a ").concat(f," quartos"):"".concat((0,c.mM)(Number(g),"quarto"))," \xe0 venda ").concat(h," ").concat(t,", ").concat(o,"."),description:"Na MySide temos ".concat((0,c.mM)(Number(n),"edif\xedcio")," com mais de ").concat(r&&(0,c.mM)(r.toLocaleString("pt-BR"),"apartamento")," \xe0 venda de ").concat(y>1?"".concat(g," a ").concat(f," quartos"):"".concat((0,c.mM)(Number(g),"quarto"))," ").concat(h," ").concat(t,", ").concat(o,". Confira plantas e fotos. Pre\xe7os a partir de ").concat((0,u.lq)(a),"."),breadcrumb:"".concat((0,c.mM)(Number(n),"Apartamento",!1)," de ").concat(y>1?"".concat(g," a ").concat(f," quartos"):"".concat((0,c.mM)(Number(g),"quarto"))," \xe0 venda ").concat(h," ").concat(t)})[e]},g=e=>!!e&&/-area-[a-z0-9-]+$/.test(e),y=function(e,l,n,t,o,i){var a,u,d,s,v,m;
1let g=arguments.length>6&&void 0!==arguments[6]?arguments[6]:[],y=arguments.length>7?arguments[7]:void 0,f=arguments.length>8?arguments[8]:void 0,h=arguments.length>9?arguments[9]:void 0,b=(null==e?void 0:e.includes("/"))?null==e||null==(a=e.split("/"))?void 0:a.filter(Boolean):[e],N=null==b?void 0:b[0],_=null==b||null==(u=b[0])?void 0:u.split("-"),A=Number(null==_?void 0:_.filter(e=>1===e.length)),L=(null==g?void 0:g.length)-1==1?"local":"locais",S=(0,c.mM)(Number(l),"edif\xedcio"),I=(null==g?void 0:g.length)-1,{cityArticle:M,neighborhoodArticle:E}=y;if(h){let l=(0,r.d)({slug:e,filteredLocations:g}),n=(null==g?void 0:g.length)>1?" e mais ".concat(I," ").concat(L):"";return"Apartamentos \xe0 venda em ".concat(S," ").concat(l).concat(n)}if(f)return"Apartamentos \xe0 venda em ".concat(S," ").concat(M," ").concat(t,", ").concat(o," e mais ").concat(I," ").concat(L);if((null==i?void 0:i.length)===1)return"Apartamentos ".concat(E," ").concat(null==i||null==(v=i[0])?void 0:v.address_neighborhood," \xe0 venda em ").concat((0,c.mM)(Number(l),"edif\xedcio")," ").concat(M," ").concat(t,", ").concat(o);
1if(e&&(null==e||null==(s=e.split("/"))||null==(d=s.filter(Boolean))?void 0:d.length)>1&&!(null==e?void 0:e.includes("quarto")))return"Apartamentos \xe0 venda em ".concat((0,c.mM)(Number(l),"edif\xedcio")," ").concat(M," ").concat(t,", ").concat(o);if((null==e?void 0:e.includes("ate-1-milhao"))||(null==e?void 0:e.includes("0-1000000-reais")))return"Apartamentos \xe0 venda at\xe9 R$ 1 milh\xe3o em ".concat((0,c.mM)(Number(l),"edif\xedcio")," ").concat(M," ").concat(t,", ").concat(o);if((null==e?void 0:e.includes("ate-300-mil"))||(null==e?void 0:e.includes("ate-500-mil"))||(null==e?void 0:e.includes("ate-700-mil"))){let e=null==N?void 0:N.match(/\d+/);return"Apartamentos \xe0 venda at\xe9 R$ ".concat(e," mil em ").concat((0,c.mM)(Number(l),"edif\xedcio")," ").concat(M," ").concat(t,", ").concat(o)}if(null==e?void 0:e.includes("a-partir-1-milhao"))return"Apartamentos \xe0 venda a partir de R$ 1 milh\xe3o em ".concat((0,c.mM)(Number(l),"edif\xedcio")," ").concat(M," ").concat(t,", ").concat(o);if((null==e?void 0:e.includes("quarto"))&&(null==e?void 0:e.includes("apartamentos")))return A?"Apartamentos de ".concat((0,c.mM)(Number(A),"quarto")," \xe0 venda em ").concat((0,c.mM)(Number(l),"edif\xedcio")," ").concat(M," ").concat(t,", ").concat(o):p("heading",b,l,t,o,y);if(null==e?void 0:e.includes("na-planta"))return"Apartamentos na planta \xe0 venda em ".concat((0,c.mM)(Number(l),"edif\xedcio")," ").concat(M," ").concat(t,", ").concat(o);if(null==e?void 0:e.includes("prontos-para-morar"))return"Apartamentos prontos para morar \xe0 venda em ".concat((0,c.mM)(Number(l),"edif\xedcio")," ").concat(M," ").concat(t,", ").concat(o);if(null==e?void 0:e.includes("usados"))return"Apartamentos usados \xe0 venda em ".concat((0,c.mM)(Number(l),"edif\xedcio")," ").concat(M," ").concat(t,", ").concat(o);if(null==e?void 0:e.includes("novos"))return"Apartamentos novos \xe0 venda em ".concat((0,c.mM)(Number(l),"edif\xedcio")," ").concat(M," ").concat(t,", ").concat(o);if(null==e?void 0:e.includes("construtora")){let e=n?null==n||null==(m=n[0])?void 0:m.constructionCompany:null;return e?"Apartamentos \xe0 venda da construtora ".concat(e," em ").concat((0,c.mM)(Number(l),"edif\xedcio")," ").concat(M," ").concat(t,", ").concat(o):"Nenhum empreendimento dispon\xedvel para essa construtora ".concat(M," ").concat(t,", ").concat(o)}return((null==e?void 0:e.includes("apartamentos-venda"))||(null==e?void 0:e.includes("venda-apartamentos")))&&!(null==e?void 0:e.includes("setor"))&&!(null==e?void 0:e.includes("construtora"))?"Apartamentos \xe0 venda em ".concat((0,c.mM)(Number(l),"edif\xedcio")," ").concat(M," ").concat(t,", ").concat(o):"Apartamentos \xe0 venda ".concat(M," ").concat(t,", ").concat(o)},f=e=>e.map(e=>Object.entries(e).map(e=>{let[l,n]=e;return l.includes("address_state")&&n||l.includes("address_city")&&n||l.includes("address_log")&&n||l.includes("address_neighborhood")&&n?(0,s.Ot)(n,!1):l.includes("developmentName")&&n||l.includes("developmentIds")&&n?(0,s.Ot)("".concat(n),!1):null}).filter(Boolean).join("/")).join("/"),h=(e,l,n)=>{var t,o,a;let r=null==(t=(0,i.fQ)(null!=l?l:""))?void 0:t.replace(/\s+/g,"-"),u=null==n?void 0:n.toLowerCase(),c="".concat(r,"/").concat(u),d=RegExp("/".concat(c,"(?:/|$)"),"g");return null==e||null==(a=e.replace(d,"/"))||null==(o=a.replace(/\/{2,}/g,"/"))?void 0:o.replace(/\/$/,"")},b=e=>{var l;return(null==(l=(0,i.fQ)(e))?void 0:l.replace(/ /g,"-"))||""},N=e=>{var l;let n=null==(l=e[v.sS.LOCATION])?void 0:l.filter(e=>((null==e?void 0:e.address_neighborhood)&&""!==e.address_neighborhood.trim()||(null==e?void 0:e.address_city)&&""!==e.address_city.trim())&&!(null==e?void 0:e.address_region)&&!(null==e?void 0:e.region_id)&&!(null==e?void 0:e.region_name));if(!n||0===n.length)return"";let t=n.filter(e=>(null==e?void 0:e.address_neighborhood)||e.address_city).filter(Boolean);if(0===t.length)return"";let o=f(t);return"/".concat(o)},_=e=>{var l,n,t,o,a,r;let{payload:u,city:d,state:p,citiesList:g,cityRemoved:y}=e;if(!Object.keys(m(u)).length)return"/apartamentos-venda-".concat(d,"-").concat(p,"/");let _=(null==u?void 0:u.locations)||[],A=(e=>(null==e?void 0:e.filter(e=>
1(null==e?void 0:e.address_region)||(null==e?void 0:e.region_id)))||[])(_),L=(e=>{let{regions:l,fallbackCity:n,fallbackState:t}=e;return l.length>0?(e=>{if(0===e.length)return"";let l=(e=>{let l=new Set;return e.filter(e=>{let n=b(e.region_name||e.address_region||"");return!l.has(n)&&(l.add(n),!0)})})(e),n=l[0],t=n.region_name||n.address_region||"",o="apartamentos-venda-area-".concat(b(t));if(l.length>1){let e=l.slice(1).map(e=>{let l=e.region_name||e.address_region||"";return"area-".concat(b(l))});o+="/".concat(e.join("/"))}return o})(l):"apartamentos-venda-".concat(n,"-").concat(t,"/")})({regions:A,fallbackCity:d,fallbackState:p});if(u[v.sS.LOCATION]){let e=null==(a=u[v.sS.LOCATION])?void 0:a[0];if((null==(r=u[v.sS.LOCATION])?void 0:r.length)>=1&&!y&&(L+=N(u)),y&&e){let l=(e=>{var l;let n=null==e?void 0:e.replace(/\s+[A-Z]{2}$/,"");return(null==(l=(0,i.fQ)(null==n?void 0:n.toLowerCase()))?void 0:l.replace(/\s+/g,"-"))||""})(e.address_city||""),n=(e=>{let l=null==e?void 0:e.match(/\s+([A-Z]{2})$/),n=l?l[1]:e;return(0,i.fQ)(null==n?void 0:n.toLowerCase())||""})(e.address_state||"");l&&n&&(L="apartamentos-venda-".concat(l,"-").concat(n)),L+=N(u),L="".concat(h(L,l,n))}}L=((e,l)=>{let n=l;return Object.entries(m(e)).forEach(e=>{let[l,t]=e;if(v.mN.includes(l)&&t.forEach(e=>{n+="/".concat(e,"-").concat(v.Z3[l].toLowerCase())}),l===(null===v.sS||void 0===v.sS?void 0:v.sS.PARKING_SPACES)&&t.length&&t.forEach(e=>{n+="/".concat(e,"-").concat(v.Z3[l].toLowerCase())}),l===v.sS.CONSTRUCTION_STATUS&&t.length&&t.forEach(e=>{var l;n+="/".concat((0,s.Ot)(null==(l=v.a1[e])?void 0:l.replace(" -","")))}),l===v.sS.AMENITIES&&t.length>0){let e=t.map(e=>Number(e));n+="/amenities".concat(JSON.stringify(e))}}),n})(u,L),L=((e,l)=>{var n,t,o,i,a,r,u,c;let d=l;if((null==e?void 0:e[v.sS.AMENITIES_IDS])&&!(null==e?void 0:e[v.sS.AMENITIES])){let l=null==d||null==(i=d.split("/"))||null==(o=i.filter(e=>!e.includes("amenities")))||null==(t=o.filter(Boolean))?void 0:t.join("/"),n=null==(a=e[v.sS.AMENITIES_IDS])?void 0:a.map(e=>Number(e));d="".concat(l,"/amenities").concat(JSON.stringify(n))}if(null==e?void 0:e[v.sS.OFFERS]){let e=null==d||null==(c=d.split("/"))||null==(u=c.filter(e=>!e.includes("ofertas")))||null==(r=u.filter(Boolean))?void 0:r.join("/");d="".concat(e,"/ofertas")}if((null==e||null==(n=e[v.sS.ORDER_BY])?void 0:n.length)&&(d+="/".concat((0,s.Ot)(v.Zl[e[v.sS.ORDER_BY]]))),(null==e?void 0:e[v.sS.PRICE_MAX])||(null==e?void 0:e[v.sS.PRICE_MIN])){let l=e[v.sS.PRICE_MIN],n=e[v.sS.PRICE_MAX];(0!==l||5e6!==n)&&(d+="/".concat(null!=l&&""!==l?l:0,"-").concat(null!=n&&""!==n?n:5e6,"-reais"))}if((null==e?void 0:e[v.sS.AREA_MAX])||(null==e?void 0:e[v.sS.AREA_MIN])){let l=e[v.sS.AREA_MIN],n=e[v.sS.AREA_MAX];(0!==l||400!==n)&&(d+="/".concat(null!=l&&""!==l?l:0,"-").concat(null!=n&&""!==n?n:400,"-m2"))}return d})(u,L);let S=((e,l)=>{var n;return!l&&(null==(n=e[v.sS.DEVELOPMENTS])?void 0:n.length)>0?"".concat(v.bw.DEVELOPMENTS,"/").concat(f(e[v.sS.DEVELOPMENTS])):""})(u,_.length>0);if(S&&(L=S),"/"===L)return"";let I=L;(null==A?void 0:A.length)||(I=h(L,d,p));let M="/".concat(null==(o=(0,c.Oo)(I))||null==(t=o.replace(/\/([a-z]{2})(?=\/|$)/g,"-$1"))||null==(n=t.split("/"))||null==(l=n.filter(Boolean))?void 0:l.join("/")),E=null==g?void 0:g.map(e=>{var l,n,t;return"".concat(null==e||null==(l=e.city)?void 0:l.cityAlias,"-").concat(null==e||null==(t=e.state)||null==(n=t.stateAbbreviation)?void 0:n.toLocaleLowerCase())}),O=((e,l)=>null==e?void 0:e.filter((e,n,t)=>!!e&&(null==l||!l.some(l=>e===l)||t.indexOf(e)===n)))(null==M?void 0:M.split("/"),E);return"/".concat(null==O?void 0:O.join("/"))},A=(e,l,n,t)=>{var o,i,a,r,u,c,d,s;return null==l||null==(u=l.replace("{{CITY}}",null!=(d=null==e||null==(c=e.city)?void 0:c.cityName)?d:""))||null==(a=u.replace("{{STATE}}",null!=(s=null==e||null==(r=e.state)?void 0:r.stateAbbreviation)?s:""))||null==(o=a.replace("{{NEIGHBORHOOD}},","".concat((null==n?void 0:n.length)>0?"".concat(null==n||null==(i=n[0])?void 0:i.address_neighborhood,","):"")))?void 0:o.replace("{{TOTAL_RESULTS}}","".concat(null==t?void 0:t.totalCount))},L=(e,l,n,t)=>{let o=(0,d.hj)(l,"minValue"),i=o>0?((e,l,n)=>{let t=(0,u.aQ)(e,0);return"1"!==l||n?e:null==t?void 0:t.minValue})(o,t,n):0;return({pre_launch:{priceText:"Breve lan\xe7amento"},has_no_ri:{priceText:"Pr\xe9-reserva"},price_on_request:{priceText:"Pre\xe7o sob consulta"},undisclosed_price:{priceText:"Pre\xe7o n\xe3o divulgado"},default:{priceText:i&&(0,a.mP)(i)||"Nenhuma unidade dispon\xedvel"}})[e||"default"].priceText},S=(e,l)=>{var n,t;return e&&(null==e||null==(t=e.locations)||null==(n=t.filter(e=>null==e?void 0:e.address_neighborhood))?void 0:n.map((e,n)=>0===n?{...e,address_neighborhood:l||(null==e?void 0:e.address_neighborhood)}:e))},I=e=>new Set(null==e?void 0:e.map(e=>{let{address_city:l,address_state:n}=e;return"".concat(l,"-").concat(n)})).size>1,M=(e,l)=>{let n=null==e?void 0:e[l];return Array.isArray(n)&&n.length>0&&!n.every(e=>"number"==typeof e)&&!n.every(e=>"string"==typeof e)&&!n.every(e=>e&&"object"==typeof e&&"href"in e&&"pathname"in e)&&n.every(e=>"object"==typeof e&&("address_city"in e&&"address_state"in e||"region_id"in e&&"region_name"in e))?null==n?void 0:n.filter(e=>"object"==typeof e&&("address_city"in e&&"address_state"in e||"region_id"in e&&"region_name"in e)):[]}},18366:(e,l,n)=>{n.d(l,{EF:()=>d,ES:()=>a,Zv:()=>i,mP:()=>u,r_:()=>c});var t=n(82671),o=n(24617);let i=e=>e.includes(" mil")?100:e.includes(" M")?90:"Sob consulta"===e?115:"Pr\xe9-lan\xe7amento"===e?130:"Nenhuma unidade dispon\xedvel"===e?210:135,a=e=>{let l=new google.maps.LatLngBounds;
1return null==e||e.forEach(e=>{var n,t,o,i,a,r,u,c;(null==(t=e.geometry)||null==(n=t.location)?void 0:n.lat)&&(null==e||null==(i=e.geometry)||null==(o=i.location)?void 0:o.lng)&&l.extend(new window.google.maps.LatLng(null==e||null==(r=e.geometry)||null==(a=r.location)?void 0:a.lat,null==e||null==(c=e.geometry)||null==(u=c.location)?void 0:u.lng))}),l},r=(e,l,n)=>{var t;return null==(t="R$ ".concat((1e-6*Math.round(e)).toFixed(l)).concat(n))?void 0:t.replace(".",",")},u=e=>{if(7e6===e||6e6===e||5e6===e||4e6===e||3e6===e||2e6===e||1e6===e||999999===e)return r(e,0," M");if(e&&e>=1e6)return r(e,1," M");if(e&&e>=1e3){let l=+(.001*Math.round(e)).toFixed(0);return 1e3===l?"R$ 1,0 M":"R$ ".concat(l," mil")}return null==e?void 0:e.toLocaleString("pt-BR",{style:"currency",currency:"BRL"})},c=e=>{let l=[];return null==e?void 0:e.map(e=>{var n,t,o,i;let a=((e,l)=>{var n,t,o,i,a,r,u,c,d,s,v;let m=4*Math.random()+1,p="".concat(null==e||null==(t=e.geometry)||null==(n=t.location)?void 0:n.lat,",").concat(null==e||null==(i=e.geometry)||null==(o=i.location)?void 0:o.lng);if(null==l?void 0:l.includes(p)){let l=(null!=(s=null==e||null==(r=e.geometry)||null==(a=r.location)?void 0:a.lat)?s:0)+2e-5*Math.random()*m,n=(null!=(v=null==e||null==(c=e.geometry)||null==(u=c.location)?void 0:u.lng)?v:0)+2e-5*Math.random()*m;return{...e,geometry:{...null==e?void 0:e.geometry,location:{...null==e||null==(d=e.geometry)?void 0:d.location,lat:l,lng:n}}}}return e})(e,l),r="".concat(null==a||null==(t=a.geometry)||null==(n=t.location)?void 0:n.lat,",").concat(null==a||null==(i=a.geometry)||null==(o=i.location)?void 0:o.lng);return l.push(r),a})},d=e=>{if(null==e?void 0:e.preLaunch)return"pre_launch";let l=(0,o.h$)(null==e?void 0:e.developmentPriceType,null==e?void 0:e.hasNoRi,null==e?void 0:e.costPrice),n=(0,t._I)("".concat(null==e?void 0:e.initSales));return(!l&&(null==e?void 0:e.hasNoRi)==="1"||!!n)&&"has_no_ri"}},52457:(e,l,n)=>{n.d(l,{BA:()=>v,HL:()=>m,IS:()=>s,Xh:()=>c,aQ:()=>d,yP:()=>r});var t=n(32196),o=n(7719),i=n(45965),a=n(68428);let r=(e,l,n)=>!!e&&(!!n&&e in n||!!l&&l.some(l=>(null==l?void 0:l.regionName)===e));function u(e){let{filteredLabels:l,filters:n,citiesList:t,localization:i,regions:r}=e,u=(0,a.pv)(n,l),c=(0,a.cW)(l,t),d=(0,a.fB)(c),{city:s,state:v}=(0,a.BX)(d,i),m=(0,a.OW)(l,r),p=(0,a.D7)(m,s,v),g=(e=>{let{categorizedLocations:l,city:n}=e,t=l.some(e=>"region"===e.type),o=(0,a.fH)(l,n);return t?l:o})({categorizedLocations:m,city:s}),y=(0,a.Oi)(g),f=(0,a.bI)(y),h=(e=>{let{categorizedLocations:l,groupedLocationsByCity:n,filteredLocationsByCityAndStatePage:t}=e,o=l.some(e=>"region"===e.type),i=t.concat(n);return o?n:i})({categorizedLocations:m,groupedLocationsByCity:(0,a.ar)(f),filteredLocationsByCityAndStatePage:p}).map(e=>(0,a.Y7)(e));return{url:(0,o.Os)({payload:{...u,locations:h},city:s,state:v,citiesList:t})}}function c(e){let{filteredLabels:l,filters:n,regions:o,regionIdsByLabel:c}=e;if(!(null==l?void 0:l.length))return{url:"",shouldClearSearch:!0};if((null==n?void 0:n.filterNumbers)>=1||(null==n?void 0:n.order_by))return u(e);try{let e=l.map(e=>{var l,n,t,i;if(r(e,o,c))return{type:"region",value:e,regionName:o?((e,l,n)=>{let t=l.find(l=>(null==l?void 0:l.regionName)===e);if(null==t?void 0:t.regionName)return t.regionName;let o=null==n?void 0:n[e];if(o){let e=l.find(e=>(null==e?void 0:e.regionId)===o);if(null==e?void 0:e.regionName)return e.regionName}return e})(e,o,c):e};let u=e.match(/^([^,]+),\s*([A-Z]{2})$/);if(u)return{type:"city",value:e,cityName:u[1].trim(),stateName:u[2].trim()};if((0,a.uQ)(e)){let l=e.split(",").map(e=>e.trim());return{type:"street",value:e,cityName:null==(t=l[2])?void 0:t.split(" - ")[0],stateName:null==(i=l[2])?void 0:i.split(" - ")[1]}}let d=e.split(",").map(e=>e.trim());return{type:"neighborhood",value:e,cityName:null==(l=d[1])?void 0:l.split(" - ")[0],stateName:null==(n=d[1])?void 0:n.split(" - ")[1]}}),n=function(e){let l={regions:[],cities:[]};e.filter(e=>"region"===e.type).forEach(e=>{e.regionName&&l.regions.push("area-".concat((0,t.Ot)(e.regionName,!1)))});let n=new Map;return e.forEach(e=>{if(!e.cityName||!e.stateName)return;let l="".concat(e.cityName,"-").concat(e.stateName);n.has(l)||n.set(l,{name:e.cityName,state:e.stateName,neighborhoods:[],streets:[]});let o=n.get(l);if("neighborhood"===e.type){let l=e.value.split(",")[0].trim();o.neighborhoods.push((0,t.Ot)(l,!1))}if("street"===e.type){let l=e.value.split(",").map(e=>e.trim()),n=l[0],i=l[1];o.streets.push({name:(0,t.Ot)(n,!1),neighborhood:i?(0,t.Ot)(i,!1):void 0})}}),l.cities=Array.from(n.values()),l}(e),i=function(e){let l=[];
1return l.push(...e.regions),e.cities.forEach(e=>{let n="".concat((0,a._M)(e.name),"-").concat(e.state.toLowerCase());l.push(n),l.push(...e.neighborhoods),e.streets.forEach(e=>{l.push(e.name),e.neighborhood&&l.push(e.neighborhood)})}),l.length>0?"/apartamentos-venda-".concat(l.join("/")):""}(n);return{url:i||"",shouldClearSearch:!i}}catch(l){return(0,i.A)({level:"error",tags:["locationSearchModal","buildLocationSearchUrl"],params:{message:"Error building URL from pattern",error:l instanceof Error?l:Error(String(l))}}),u(e)}}let d=e=>{let{filteredLabels:l,filtersWithoutCity:n,city:t,state:i,citiesList:a}=e;return(null==l?void 0:l.length)?(0,o.Os)({payload:{...n,locations:[]},city:t,state:i,citiesList:a}):""},s=e=>{let{regions:l,labels:n,regionIdsByLabel:t}=e;return l?l.filter(e=>n.some(l=>e.regionName===l||(null==t?void 0:t[l])&&e.regionId===t[l])):[]},v=e=>e?e.flatMap(e=>e.cities.map(e=>({cityId:e.cityId}))):[],m=e=>{let{cityIds:l,cityIdsByRegion:n}=e;return[...new Set([...l.map(e=>{let{city_id:l}=e;return l}),...n.map(e=>{let{cityId:l}=e;return l})])].filter(e=>e).map(e=>({city_id:e}))}},57723:(e,l,n)=>{n.d(l,{d:()=>o});var t=n(7719);let o=e=>{let{slug:l,filteredLocations:n}=e;if(!l)return"Regi\xe3o n\xe3o encontrada";let o=l.split("-area-").pop(),i=null==n?void 0:n.find(e=>!!(null==e?void 0:e.region_name)&&(0,t.xl)(null==e?void 0:e.region_name)===o),a=null==i?void 0:i.region_name,r=null==i?void 0:i.region_preposition;return a?r?"".concat(r.toLocaleLowerCase()," ").concat(a):a:"Regi\xe3o n\xe3o encontrada"}},68428:(e,l,n)=>{n.d(l,{$e:()=>D,BX:()=>M,D7:()=>C,Hb:()=>u,KO:()=>$,OW:()=>L,Oi:()=>x,Ok:()=>a,Sb:()=>y,U:()=>v,Uz:()=>f,Y7:()=>g,_M:()=>q,ar:()=>T,bI:()=>R,cW:()=>S,f1:()=>P,fB:()=>I,fH:()=>w,fQ:()=>r,pv:()=>Z,tJ:()=>c,tr:()=>s,ts:()=>j,uQ:()=>m,uy:()=>p,xU:()=>d,yF:()=>O}),n(81384);var t=n(45908),o=n(42814),i=n(52457);let a=(e,l)=>null==e?void 0:e.filter(e=>(null==e?void 0:e.type)===l),r=e=>{var l;return e?null==(l=(0,o.Oo)(e))?void 0:l.toLocaleLowerCase():""},u=function(e,l){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!l)return e;let t=r(e),o=r(l);if(n)return"<strong>".concat(e,"</strong>");let i=null==t?void 0:t.indexOf(o);if(-1===i)return e;let a=i+o.length,u=null==e?void 0:e.slice(i,a);return"".concat(null==e?void 0:e.slice(0,i)," <strong>").concat(u,"</strong>").concat(e.slice(a)," ")},c=e=>{var l,n,t,o,i;let a=null==e||null==(l=e.city_details)?void 0:l.city_name,r=null==e||null==(n=e.region_details)?void 0:n.region_name,u=null==e||null==(t=e.city_details)?void 0:t.state_name,c=null==e||null==(o=e.street_details)?void 0:o.neighborhood,d=null==e||null==(i=e.street_details)?void 0:i.street;return(null==e?void 0:e.type)==="city"?"".concat(a,", ").concat(u):(null==e?void 0:e.type)==="region"&&r?r:(null==e?void 0:e.type)==="neighborhood"?"".concat(null==e?void 0:e.text,", ").concat(a," - ").concat(u):"".concat(d,", ").concat(c,", ").concat(a," - ").concat(u)},d=(e,l)=>{let n=null==l?void 0:l.map(e=>r(e));return null==e?void 0:e.filter(e=>!(null==n?void 0:n.includes(r(c(e)))))},s=(e,l)=>null==e?void 0:e.sort((e,n)=>{var t,o,i;let a=null==(t=r(null==e?void 0:e.text))?void 0:t.startsWith(null==l?void 0:l.toLowerCase()),u=null==(o=r(null==n?void 0:n.text))?void 0:o.startsWith(null==l?void 0:l.toLowerCase());return a&&!u?-1:!a&&u?1:null==(i=r(null==e?void 0:e.text))?void 0:i.localeCompare(r(null==n?void 0:n.text))}),v=(e,l)=>{if(!Array.isArray(e))return[];let n=r(null==l?void 0:l.trim());return null==e?void 0:e.filter(e=>{let l=r(null==e?void 0:e.text),t=null==l?void 0:l.split(" "),o=null==n?void 0:n.split(" ");return null==t?void 0:t.some((e,l)=>null==o?void 0:o.every((e,n)=>{var o;return null==(o=r(t[l+n]))?void 0:o.startsWith(e)}))})},m=e=>{var l,n;return(null==e||null==(l=e.toLowerCase())?void 0:l.startsWith("rua"))||(null==e||null==(n=e.toLowerCase())?void 0:n.startsWith("av"))},p=(e,l)=>l?null==e?void 0:e.filter(e=>null==l?void 0:l.find(l=>{var n,t,o,i;return(null==l||null==(n=l.city)?void 0:n.cityName)===(null==e||null==(t=e.city_details)?void 0:t.city_name)&&(null==l||null==(o=l.state)?void 0:o.stateAbbreviation)===(null==e||null==(i=e.city_details)?void 0:i.state_name)})):[],g=e=>(null==e?void 0:e.type)==="city"?{address_city:e.cityName,address_state:e.stateAbbreviation}:(null==e?void 0:e.type)==="neighborhood"?{address_neighborhood:null==e?void 0:e.neighborhood,address_city:void 0,address_log:void 0,address_regi
1on:void 0,address_state:void 0,region_id:void 0,region_name:void 0}:(null==e?void 0:e.type)==="region"?{address_log:void 0,address_region:void 0,address_city:"",address_state:"",address_neighborhood:void 0,region_id:e.regionId,region_name:e.regionName}:{address_log:e.street,address_region:e.regionName,address_city:e.cityName,address_state:e.stateAbbreviation,address_neighborhood:e.neighborhood,region_id:e.regionId,region_name:e.regionName},y=e=>null==e?void 0:e.reduce((e,l)=>((null==e?void 0:e.some(e=>(null==e?void 0:e.city_id)===(null==l?void 0:l.cityId)))||null==e||e.push({city_id:(null==l?void 0:l.cityId)||""}),e),[]),f=(e,l,n,t,o)=>(null==e?void 0:e.length)===0&&(null==l?void 0:l.length)===0&&(null==n?void 0:n.length)===0&&(null==t?void 0:t.length)===0&&(null==o?void 0:o.length)===0;function h(e){var l,n;let t=null==e?void 0:e.split(",");return{type:"city",name:e,cityName:null==t||null==(l=t[0])?void 0:l.trim(),stateAbbreviation:null==t||null==(n=t[1])?void 0:n.trim(),neighborhood:"",street:""}}function b(e){var l,n,t;let o=null==e?void 0:e.split(","),i=null==o||null==(l=o[0])?void 0:l.trim(),a=null==o||null==(n=o[1])?void 0:n.trim(),r=null==o||null==(t=o[2])?void 0:t.trim(),[u,c]=(null==r?void 0:r.split(" - "))||["",""];return{type:"street",name:e,street:i,neighborhood:a,cityName:u,stateAbbreviation:c}}function N(e,l){let n=null==l?void 0:l.find(l=>(null==l?void 0:l.regionName)===e);return n?{type:"region",name:e,regionName:(null==n?void 0:n.regionName)||"",regionId:(null==n?void 0:n.regionId)||"",neighborhood:"",street:"",cityName:"",stateAbbreviation:""}:{type:"region",name:"",regionName:"",regionId:"",neighborhood:"",street:"",cityName:"",stateAbbreviation:""}}function _(e){var l,n;let t=null==e?void 0:e.split(","),o=null==t||null==(l=t[0])?void 0:l.trim(),i=null==t||null==(n=t[1])?void 0:n.trim(),[a,r]=(null==i?void 0:i.split(" - "))||["",""];return{type:"neighborhood",name:e,neighborhood:o,street:"",cityName:a,stateAbbreviation:r}}let A=(e,l)=>{let n=(0,i.yP)(e,l),t=/^[A-Za-zÀ-ÿ\s]+, [A-Z]{2}$/,o=/^\d{1,2}[ªº]?\s?(Rua|Avenida)|^(Rua|Avenida)\s+/;return(null==t?void 0:t.test(e))?h(e):(null==o?void 0:o.test(e))?b(e):n?N(e,l):_(e)},L=(e,l)=>null==e?void 0:e.map(e=>{if("object"==typeof e&&e.type){let{value:n,type:t}=e;switch(t){case"city":return h(n);case"street":return b(n);case"region":return N(n,l);case"neighborhood":return _(n);default:return A(n,l)}}return A("string"==typeof e?e:e.value,l)}),S=(e,l)=>l?null==e?void 0:e.map(e=>{var n,t,o,i,a,r,u,c;let d=null==e||null==(t=e.split(", "))||null==(n=t.pop())?void 0:n.split(" - ");if((null==d?void 0:d.length)===1){let n=null==e?void 0:e.split(", "),t=null==l?void 0:l.find(e=>{var l,t,o,i;let{city:a,state:r}=e;return(null==a||null==(l=a.cityName)?void 0:l.trim())===(null==n||null==(t=n[0])?void 0:t.trim())&&(null==r||null==(o=r.stateAbbreviation)?void 0:o.trim())===(null==n||null==(i=n[1])?void 0:i.trim())});return{cityId:null==t||null==(r=t.city)?void 0:r.cityId,cityName:null==t||null==(u=t.city)?void 0:u.cityName,stateAbbreviation:null==t||null==(c=t.state)?void 0:c.stateAbbreviation}}let s=null==l?void 0:l.find(e=>{var l,n,t,o;let{city:i,state:a}=e;return(null==i||null==(l=i.cityName)?void 0:l.trim())===(null==d||null==(n=d[0])?void 0:n.trim())&&(null==a||null==(t=a.stateAbbreviation)?void 0:t.trim())===(null==d||null==(o=d[1])?void 0:o.trim())});return{cityId:null==s||null==(o=s.city)?void 0:o.cityId,cityName:null==s||null==(i=s.city)?void 0:i.cityName,stateAbbreviation:null==s||null==(a=s.state)?void 0:a.stateAbbreviation}}):[],I=e=>null==e?void 0:e.filter((e,l,n)=>l===(null==n?void 0:n.findIndex(l=>(null==l?void 0:l.cityId)===(null==e?void 0:e.cityId)&&(null==l?void 0:l.cityName)===(null==e?void 0:e.cityName)&&(null==l?void 0:l.stateAbbreviation)===(null==e?void 0:e.stateAbbreviation)))),M=(e,l)=>{var n,t,o,i,a,u,c;return{city:(null==(t=r((null==e||null==(n=e[0])?void 0:n.cityName)||""))?void 0:t.replace(/ /g,"-"))||(null==l||null==(o=l.city)?void 0:o.cityAlias)||"goiania",state:(null==e||null==(a=e[0])||null==(i=a.stateAbbreviation)?void 0:i.toLocaleLowerCase())||(null==l||null==(c=l.state)||null==(u=c.stateAbbreviation)?void 0:u.toLowerCase())||"go"}},E=e=>e.replace(/\b\w/g,e=>e).replace(/\b(Da|Do|Dos|Das|De)\b/g,e=>e.toLowerCase()),O=(e,l)=>{var n,t;if(!(null==e?void 0:e.city))return[];if(!l||(null==l?void 0:l.length)===0&&e)return["".concat(null==e||null==(n=e.city)?void 0:n.cityName,", ").concat(null==e||null==(t=e.state)?void 0:t.stateAbbreviation)];let o=null==l?void 0:l.map(e=>{let{address_city:l,address_state:n,address_neighborhood:t,address_log:o,region_name:i}=e;if(i)return i;let a=null==n?void 0:n.toLocaleUpperCase();return(null==t?void 0:t.trim())||!l?(null==t?void 0:t.trim())&&!(null==o?void 0:o.trim())?"".concat(E(t),", ").concat(l," - ").concat(a):(null==t?void 0:t.trim())&&(null==o?void 0:o.trim())?"".concat(E(o),", ").concat(E(t),", ").concat(l," - ").concat(a):null:"".concat(l,", ").concat(a)});
1return null==o?void 0:o.filter(Boolean)},C=(e,l,n)=>null==e?void 0:e.filter(e=>{var t,o;let i=null==(t=r(null==e?void 0:e.cityName))?void 0:t.replace(/ /g,"-"),a=null==e||null==(o=e.stateAbbreviation)?void 0:o.toLocaleLowerCase();return i===r(l)&&a===(null==n?void 0:n.toLocaleLowerCase())}),w=(e,l)=>null==e?void 0:e.filter(e=>{var n;return(null==(n=r(null==e?void 0:e.cityName))?void 0:n.replace(/ /g,"-"))!==r(l)}),R=e=>{var l;return null==e||null==(l=e.slice())?void 0:l.sort((e,l)=>{var n;let t=r(null==e?void 0:e.cityName),o=r(null==l?void 0:l.cityName);return t?o?null==(n=r(t))?void 0:n.localeCompare(r(o)):-1:1})},T=e=>{let l=null==e?void 0:e.filter(e=>(null==e?void 0:e.type)==="city"||(null==e?void 0:e.type)==="region"),n=null==e?void 0:e.filter(e=>(null==e?void 0:e.type)==="neighborhood"),t=null==e?void 0:e.filter(e=>(null==e?void 0:e.type)==="street");return null==l?void 0:l.reduce((e,l)=>{null==e||e.push(l);let o=n.filter(e=>(null==e?void 0:e.cityName)===(null==l?void 0:l.cityName)),i=t.filter(e=>(null==e?void 0:e.cityName)===(null==l?void 0:l.cityName));return e.push(...o,...i),e},[])},x=e=>{var l;let n=new Set(null==e||null==(l=e.filter(e=>(null==e?void 0:e.type)==="city"))?void 0:l.map(e=>null==e?void 0:e.cityName)),t=new Set,o=null==e?void 0:e.filter(e=>!((null==e?void 0:e.type)==="region"||(null==e?void 0:e.type)!=="neighborhood"&&(null==e?void 0:e.type)!=="street"||null==e||!e.cityName||null==e||!e.stateAbbreviation||(null==n?void 0:n.has(null==e?void 0:e.cityName))||(null==t?void 0:t.has(null==e?void 0:e.cityName)))&&(null==t||t.add(null==e?void 0:e.cityName),!0));return[...e,...null==o?void 0:o.map(e=>({type:"city",name:"".concat(null==e?void 0:e.cityName," - ").concat(null==e?void 0:e.stateAbbreviation),neighborhood:"",street:"",cityName:null==e?void 0:e.cityName,stateAbbreviation:null==e?void 0:e.stateAbbreviation}))]},B=e=>{var l;if(!e)return"";let n=null==e?void 0:e.split(","),t=null==n||null==(l=n[2])?void 0:l.trim();return", ".concat(t)},P=(e,l)=>{if(!e)return{primaryLabel:"",secondaryLabel:""};let n=e.trim();if((0,t.L$)(n))return{primaryLabel:(e=>{if(!e)return"";let[l="",n=""]=e.split(",").map(e=>e.trim());return(0,o.W_)("".concat(l,", ").concat(n))})(n),secondaryLabel:B(n)};if(/^[a-zà-ÿA-ZÀ-ÿ]+(?: [a-zà-ÿA-ZÀ-ÿ]+)*,?\s?[a-zA-Z]{2}$/.test(n)){let{city:e,state:l}=(e=>{let[l,n]=e.split(",").map(e=>e.trim());return{city:l,state:n}})(n);return{primaryLabel:e,secondaryLabel:l?", ".concat(l):""}}if(l)return{primaryLabel:e};let[i,a]=n.split(",").map(e=>e.trim());if(a){let[e,l]=a.split(" - ").map(e=>e.trim());return{primaryLabel:i,secondaryLabel:", ".concat(e).concat(l?" - ".concat(l):"")}}return{primaryLabel:n,secondaryLabel:""}},j=(e,l)=>{let n=(e=>{if(!e)return"";let l=e.split(",");return"".concat(l.slice(0,2).join(","),",")})(e),t=B(e);return e.length>35&&l<412?{primaryLabel:n.slice(0,35),secondaryLabel:n.slice(35),thirdLabel:t}:e.length>42&&l>=412&&l<768?{primaryLabel:n.slice(0,42),secondaryLabel:n.slice(42),thirdLabel:t}:e.length>62&&l>=768?{primaryLabel:n.slice(0,62),secondaryLabel:n.slice(62),thirdLabel:t}:{primaryLabel:e,secondaryLabel:"",thirdLabel:""}},D=(e,l)=>Object.values({mobile:{maxWidth:412,textLimit:70},tablet:{maxWidth:768,textLimit:78},desktop:{maxWidth:1/0,textLimit:128}}).some(n=>{let{maxWidth:t,textLimit:o}=n;return l<t&&e.length>o}),$=e=>{let l=e.trim();return l.length>3?l:e},q=e=>null==e?void 0:e.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/\s+/g,"-").replace(/-+/g,"-"),Z=(e,l)=>({...e,locations:((null==e?void 0:e.locations)||[]).filter(e=>(null==e||!e.address_city)&&(null==e||!e.region_name||l.includes(e.region_name)))})}}]);

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.