PageSourceSearch

https://myside.com.br/_next/static/chunks/3818.1a66e56e90494069.js

js myside.com.br collected 2026-09-24 20:10:25 UTC 22,333 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:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="8d616a3f-5b3a-4365-b575-7364f8f0e506",e._sentryDebugIdIdentifier="sentry-dbid-8d616a3f-5b3a-4365-b575-7364f8f0e506")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3818,7212],{13818:(e,t,a)=>{a.r(t),a.d(t,{default:()=>eu});var l=a(19962),n=a(65394),s=a(3530),i=a(23670),o=a(63631),r=a(35990),c=a(7719),d=a(56240),u=a(54409),h=a.n(u),m=a(21893),A=a.n(m);let L=(0,n.memo)(function(e){return(0,l.jsx)("div",{...e,children:(0,l.jsx)(A(),{alt:"Icon",width:17.5,height:17.5,quality:100,objectFit:"cover",src:"/public-web/assets/icons/searchIcon.svg"})})});var M=a(43215),_=a(21052),S=a.n(_);let x=(0,n.memo)(function(e){let{setTerm:t,placeholder:a,className:s,clearInput:i,searchInputRef:o,...r}=e,{isDesktop:c}=(0,M.A)(),[d,u]=(0,n.useState)("");(0,n.useEffect)(()=>{(!i||d)&&t(d)},[d,t,i]),(0,n.useEffect)(()=>{o.current&&c&&o.current.focus()},[o,c]),(0,n.useEffect)(()=>{i&&u("")},[i]);let m=(0,n.useCallback)(()=>{var e;null==(e=o.current)||e.blur()},[o]);return(0,n.useEffect)(()=>{let e=o.current;if(e)return e.addEventListener("search",m),()=>{e.removeEventListener("search",m)}},[o,m]),(0,l.jsxs)("div",{className:S().wrapper,"aria-label":"Campo de busca de empreendimentos",children:[(0,l.jsx)(L,{className:S().icon,"aria-hidden":!0}),(0,l.jsx)("input",{ref:o,type:"search",value:d,placeholder:a,className:h()(S().input,s),onChange:e=>u(e.target.value),id:"search-input",name:"search-input","data-lpignore":"true","data-testid":"search-input",...r})]})});var b=a(79973);let E=(0,n.memo)(function(){return(0,l.jsx)(b.default,{src:"/public-web/assets/icons/Road.svg",alt:"Rua",width:20,height:20})});var v=a(57212),O=a(34245),p=a(36189),D=a(93353),N=a(56204),C=a(45965),j=a(42814),f=a(32196),I=a(56671),T=a(17161),g=a(47735),y=a(93752),R=a(68428),P=a(59862),w=a.n(P);let k=(0,n.memo)(function(e){let{text:t,description:a,icon:n,term:s,isRegion:i=!1}=e,o=(0,R.Hb)(t,s,i),{width:r}=(0,M.A)(),c=(0,R.$e)(o,r),{primaryLabel:d,secondaryLabel:u,thirdLabel:m}=(0,R.ts)(o,r);return(0,l.jsxs)("article",{className:h()(w().container,{[w().containerDescription]:!!a}),children:[(0,l.jsx)("i",{className:w().containerIcon,"aria-hidden":"true",children:n}),(0,l.jsx)("header",{className:w().containerInfos,children:(0,l.jsx)("h2",{className:w().name,children:c?(0,l.jsxs)("div",{className:w().wrapperEllipsis,"data-testid":"wrapper-ellipsis",children:[(0,l.jsx)("span",{children:(0,y.Ay)(d)}),(0,l.jsxs)("div",{className:w().ellipsis,children:[(0,l.jsx)("span",{children:(0,y.Ay)(u)}),(0,l.jsx)("span",{children:(0,y.Ay)(m)})]})]}):(0,l.jsxs)("span",{"data-testid":"text-without-ellipsis",children:[(0,y.Ay)(o),(0,l.jsx)("p",{className:w().description,children:a})]})})})]})});var G=a(17588),F=a.n(G);let Y=(0,n.memo)(function(e){let{developmentText:t,onClick:a,icon:n,index:s,title:i,description:o,term:r,isRegion:c=!1}=e;return(0,l.jsxs)("section",{className:F().container,"data-testid":"address-list",children:[0===s&&(0,l.jsx)("h2",{className:F().title,children:i}),(0,l.jsx)("button",{type:"button",className:F().button,onClick:a,"aria-label":t,children:(0,l.jsx)(k,{text:t,description:o,icon:n,term:r,isRegion:c})})]})});var H=a(43685),z=a.n(H),Z=a(26635),B=a.n(Z);let U=(0,n.memo)(function(e){let{siteUrl:t,icon:a,name:n,index:s,title:i,term:o,setClearInput:r}=e;return(0,l.jsxs)("div",{className:B().container,"data-testid":"development-list",children:[0===s&&(0,l.jsx)("h2",{className:B().title,children:i}),t&&n&&(0,l.jsx)(z(),{href:t,className:B().link,title:n,target:"_blank","aria-label":"Link para ".concat(n),onClick:()=>r(!0),children:(0,l.jsx)(k,{text:n,icon:a,term:o})})]})});var V=a(56329),J=a(52457),K=a(21523),W=a.n(K);let q=(0,n.memo)(function(e){let{filteredLabels:t,handleDeleteFilter:a,setFilteredLabels:s,hasResearch:i,setHasResearch:o,regions:r,regionIdsByLabel:c}
1=e,[d,u]=(0,n.useState)(!1),[m,A]=(0,n.useState)(!1),[L,M]=(0,n.useState)(!1),_=(null==t||t.length,2);(0,n.useEffect)(()=>{t.length<=2&&(u(!1),M(!1))},[t]);let S=d&&!i?t:null==t?void 0:t.slice(0,_),x=(0,n.useMemo)(()=>d&&!i?"Ver menos":"Ver mais (+".concat(t.length-2,")"),[t.length,d,i]),b=t.length>2&&(0,l.jsx)("button",{type:"button",className:W().button,onClick:e=>{var t;"Ver menos"===(null==e||null==(t=e.currentTarget)?void 0:t.textContent)?(o(!0),u(!1),M(!0),A(!1)):(o(!1),u(!0),A(!0),M(!1))},"aria-expanded":d,"aria-label":x,children:x});return(0,l.jsxs)("section",{className:W().container,"data-testid":"search-address-and-developments",children:[(0,l.jsxs)("header",{className:W().selectionHeader,children:[(0,l.jsx)("span",{className:W().selectionTitle,children:"Selecionados"}),(0,l.jsx)("button",{type:"button",className:W().clearSelectionButton,onClick:()=>s([]),"aria-label":"Limpar tudo",children:"Limpar tudo"})]}),(0,l.jsxs)("ul",{className:h()(W().selectionContainer,{[W().selectionContainerExpanded]:m,[W().selectionContainerCollapsed]:L}),"data-testid":"selection-container",children:[null==t?void 0:t.map((e,t)=>{let n=(0,J.yP)(e,r,c),s=(0,R.f1)(e,n);return(0,l.jsx)("li",{children:(0,l.jsxs)("button",{type:"button",className:h()(W().button,{[W().visible]:null==S?void 0:S.includes(e),[W().hidden]:!(null==S?void 0:S.includes(e))}),onClick:e=>a(e,t),"aria-label":"Remover filtro ".concat(e),children:[(0,l.jsx)("div",{children:(0,l.jsx)(V.lKK,{size:24})}),s&&(0,l.jsxs)("div",{className:W().containerStreet,"data-region":n,children:[(0,l.jsx)("span",{children:s.primaryLabel}),(null==s?void 0:s.secondaryLabel)&&(0,l.jsx)("span",{className:W().secondaryLabel,"data-testid":"secondary-label",children:s.secondaryLabel})]})]},e)},e)}),b]})]})}),X={src:"/_next/static/media/map-icon-with-pin.3a42c47c.svg",height:32,width:32,blurWidth:0,blurHeight:0};var Q=a(33293),$=a.n(Q);let ee=(0,n.memo)(function(e){let{filteredLabels:t}=e;return(0,l.jsxs)("section",{className:h()($().container,{[$().containerWithLabel]:0!==t.length}),"aria-label":"Se\xe7\xe3o de dica de busca","data-testid":"search-hint",children:[(0,l.jsx)("figure",{className:$().containerImage,children:(0,l.jsx)(b.default,{src:X,alt:"\xcdcone de localiza\xe7\xe3o",className:$().image,width:32,height:32})}),(0,l.jsxs)("h3",{className:$().title,children:["Voc\xea pode buscar por ",(0,l.jsx)("strong",{children:"regi\xe3o"}),", ",(0,l.jsx)("strong",{children:"cidade"}),",",(0,l.jsx)("strong",{children:" bairro"}),", ",(0,l.jsx)("strong",{children:"rua"})," ou"," ",(0,l.jsx)("strong",{children:"condom\xednio"}),"."]})]})});var et=a(1916),ea=a(13644),el=a.n(ea);let en=(0,n.memo)(function(){return(0,l.jsxs)("div",{className:el().container,"data-testid":"search-loading",children:[(0,l.jsx)(et.A,{className:el().loading}),(0,l.jsx)("p",{className:el().text,children:"Procurando..."})]})});var es=a(42342),ei=a(79739),eo=a.n(ei);let er=function(e){let{term:t}=e;return(0,l.jsx)("main",{className:eo().container,children:(0,l.jsxs)("div",{className:eo().wrapper,children:[(0,l.jsx)("div",{className:eo().containerImage,children:(0,l.jsx)(es.Jru,{size:36})}),(0,l.jsx)("h3",{className:eo().title,children:"Nenhum resultado encontrado"}),(0,l.jsxs)("p",{className:eo().subtitle,children:["N\xe3o encontramos nenhuma regi\xe3o, cidade, bairro, rua ou condom\xednio com o termo"," ",(0,l.jsx)("span",{className:eo().term,children:'"'.concat(t,'"')}),". Verifique sua busca e tente novamente."]})]})})};var ec=a(72753),ed=a.n(ec);let eu=(0,n.memo)(function(e){let{modal:t}=e,a=(0,o.d4)(T.L),u=(0,o.d4)(g.w),h=(0,o.wA)(),m=(0,r.usePathname)(),{localization:A}=(0,n.useContext)(p.xt),[L,M]=(0,n.useState)(!0),[_,S]=(0,n.useState)("go"),[b,y]=(0,n.useState)(!1),{filters:P}=(0,n.useContext)(O.th),w=(0,n.useMemo)(()=>(0,c.LV)(P,"locations"),[P]),k=(0,n.useCallback)(()=>(0,R.yF)(A,w),[A,w]),[G,F]=(0,n.useState)([]);(0,n.useEffect)(()=>{(null==A?void 0:A.city)&&F(k())},[k,A]);let[H,z]=(0,n.useState)(""),[Z,B]=(0,n.useState)([]),[V,K]=(0,n.useState)([]),[W,X]=(0,n.useState)(!1),[Q,$]=(0,n.useState)(A),et=(0,D.A)(H,1e3),ea=(0,R.cW)(G,a),el=(0,R.fB)(ea),es=(0,J.IS)({regions:u,labels:G}),ei=(0,J.BA)(es),{city:eo,state:ec}=(0,R.BX)(el,Q),eu=(0,n.useMemo)(()=>{var e;return{...P,locations:(null==P?void 0:P.locations)===void 0?[]:null==P||null==(e=P.locations)?void 0:e.filter(e=>!(null==e?void 0:e.address_city))}},[P]),eh=(0,n.useCallback)(()=>{let e=(0,J.Xh)({filteredLabels:G,developments:Z,filters:P,citiesList:a,localization:Q,pathname:m,streetArray:V,regions:u});return e.shouldClearSearch?(B([]),z(""),X(!0),""):e.url},[G,Z,P,a,Q,m,V,u]),em=()=>G&&(null==G?void 0:G.length)>0?eh():(0,J.aQ)({filteredLabels:G,filtersWithoutCity:eu,city:eo,state:ec,citiesList:a}
1),[eA,eL]=(0,n.useState)(em()),[eM,e_]=(0,n.useState)(!1),[eS,ex]=(0,n.useState)(""),[eb,eE]=(0,n.useState)(!1),[ev,eO]=(0,n.useState)(!0),[ep,eD]=(0,n.useState)(!1),eN=(0,R.KO)(H),eC=(0,R.U)(Z,eN),ej=(0,R.Sb)(el),ef=(0,J.HL)({cityIds:ej,cityIdsByRegion:ei});(0,n.useEffect)(()=>{e_(!1);let e=JSON.stringify({term:eN,locations:ef,get_cities:!0,get_regions:!0}),t=async()=>{try{let t=await fetch("/api/imobles-web/rocket/location-search-modal",{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:e,cache:"force-cache",next:{revalidate:900}}),a=await t.json();eO(!0),eE(!1),B(a)}catch(t){(0,C.A)({level:"error",tags:["modal","LocationSearchModal"],params:{message:"An error occurred in the request to obtain city locations",error:t instanceof Error?t:Error(String(t))},context:{payload:e}})}};(null==H?void 0:H.length)>=3&&eE(!0),(null==H?void 0:H.length)>=3&&et&&(e_(!0),eD(!0),eO(!0),M(!1),t()),(null==H?void 0:H.length)<=2&&(eE(!1),B([])),X(!1)},[et]),(0,n.useEffect)(()=>{eL(em()),(null==G?void 0:G.length)===0&&eD(!1)},[G,V]),(0,n.useEffect)(()=>{var e,a,l;if(!(null==t?void 0:t.visible)){$(A),ex("");return}(null==A?void 0:A.city)&&(F(k()),eL("/apartamentos-venda-".concat(null==A||null==(e=A.city)?void 0:e.cityAlias,"-").concat(null==A||null==(l=A.state)||null==(a=l.stateAbbreviation)?void 0:a.toLowerCase())))},[null==t?void 0:t.visible,A,k]),(0,n.useEffect)(()=>{var e;S(null==A||null==(e=A.state)?void 0:e.stateAbbreviation),""!==eS&&($(null==a?void 0:a.find(e=>{var t;return(null==e||null==(t=e.city)?void 0:t.cityAlias)===eS})),eL("/apartamentos-venda-".concat(eS,"-").concat(_)),(null==eo?void 0:eo.toLowerCase())!==(null==eS?void 0:eS.toLowerCase())&&F([]))},[eS]);let eI=(0,n.useCallback)(e=>{(null==G?void 0:G.includes(e))||F([...G,e]),X(!0)},[G]),eT=(0,n.useCallback)((e,t)=>{M(!1);let a=null==G?void 0:G.filter((e,a)=>a!==t);K(null==V?void 0:V.filter(e=>e!==G[t])),F(a)},[G,V]),eg=(0,R.xU)(eC,G),ey=(0,R.tr)(eg,eN),eR=(0,R.Ok)(ey,"city"),eP=(0,R.Ok)(ey,"region"),ew=(0,R.Ok)(ey,"development"),ek=(0,R.Ok)(ey,"street"),eG=(0,R.Ok)(ey,"neighborhood"),eF=(0,R.uy)(eR,a),eY=(0,R.Uz)(eR,eP,ek,ew,eG)&&(null==eC?void 0:eC.length)===0,eH=(0,n.useMemo)(()=>(0,f.U4)(m,eA),[m,eA]),ez=(0,n.useCallback)(()=>{y(!0),requestAnimationFrame(()=>{if(eH)return t.hide();h((0,I.wE)()),t.hide(),y(!1)})},[h,t,eH]),eZ=eH?"":eA,eB=eM&&eY&&(null==H?void 0:H.length)!==0&&!eb,eU=L||0===G.length,eV=!ep||H.length<3,eJ=eP&&eP.length>0,eK=eF&&eF.length>0,eW=eG&&eG.length>0,eq=ek&&ek.length>0,eX=ew&&ew.length>0;(0,N.A)(t);let eQ=(0,n.useRef)(null),e$=(0,n.useRef)(null),e0=(0,n.useRef)(null),[e1,e3]=(0,n.use
1State)(null),e2=(0,n.useCallback)(e=>{let t=e.touches[0];e3({x:t.clientX,y:t.clientY})},[e3]),e6=(0,n.useCallback)(e=>{if(!e1)return;let t=e.touches[0],a=t.clientX-e1.x,l=t.clientY-e1.y;if(Math.abs(a)>10||Math.abs(l)>10){let e=e0.current;e&&e===document.activeElement&&e.blur(),e3(null)}},[e3,e1]);return(null==t?void 0:t.visible)?(0,l.jsx)(v.default,{modal:t,windowTitle:"Adicionar localiza\xe7\xf5es",theme:"modalLocation",onTouchStart:e2,onTouchMove:e6,ref:eQ,children:(0,l.jsxs)("main",{className:ed().container,children:[(0,l.jsxs)("div",{className:ed().contentArea,children:[(0,l.jsx)(x,{placeholder:"Digite um local",setTerm:z,clearInput:W,searchInputRef:e0}),(0,l.jsx)("div",{className:ed().wrapperScroll,children:(0,l.jsxs)("section",{className:ed().section,children:[(null==G?void 0:G.length)!==0&&(0,l.jsx)(q,{filteredLabels:G,handleDeleteFilter:eT,setFilteredLabels:F,hasResearch:ev,setHasResearch:eO,regions:u}),eU&&eV&&(0,l.jsx)(ee,{filteredLabels:G}),eb?(0,l.jsx)(en,{}):!eY&&(0,l.jsx)("div",{className:ed().content,children:(0,l.jsx)("div",{children:(0,l.jsxs)("section",{className:ed().developmentsAndneighborhoodContainer,children:[eJ&&(0,l.jsx)("ul",{children:null==eP?void 0:eP.map((e,t)=>{var a,n,s;let o=null!=(s=null==e||null==(a=e.region_details)?void 0:a.description)?s:null==e||null==(n=e.region_details)?void 0:n.region_name;return(0,l.jsx)("li",{children:(0,l.jsx)(Y,{developmentText:(0,R.tJ)(e),onClick:()=>{eI((0,R.tJ)(e))},icon:(0,l.jsx)(i.Cud,{size:"20",className:ed().colorIcon}),title:"Regi\xf5es",description:o,term:eN,index:t,isRegion:!0})},"".concat(null==e?void 0:e.text,"_").concat(t+1))})}),eK&&(0,l.jsx)("ul",{children:null==eF?void 0:eF.map((e,t)=>(0,l.jsx)("li",{children:(0,l.jsx)(Y,{developmentText:(0,R.tJ)(e),onClick:()=>{eI((0,R.tJ)(e))},icon:(0,l.jsx)(i.Cud,{size:"20",className:ed().colorIcon}),index:t,title:"Cidades",term:eN})},"".concat(null==e?void 0:e.text,"_").concat(t+1)))}),eW&&(0,l.jsx)("ul",{children:null==eG?void 0:eG.map((e,t)=>(0,l.jsx)("li",{children:(0,l.jsx)(Y,{developmentText:(0,j.W_)((0,R.tJ)(e)),onClick:()=>{eI((0,R.tJ)(e))},icon:(0,l.jsx)(i.Cud,{size:"20",className:ed().colorIcon}),index:t,title:"Bairros",term:eN})},"".concat(null==e?void 0:e.text,"_").concat(t+1)))}),eq&&(0,l.jsx)("ul",{children:null==ek?void 0:ek.map((e,t)=>(0,l.jsx)("li",{children:(0,l.jsx)(Y,{developmentText:(0,j.W_)((0,R.tJ)(e)),onClick:()=>{var t;K([...V,t=(0,R.tJ)(e)]),eI(t)},icon:(0,l.jsx)(E,{}),index:t,title:"Rua",term:eN})},"".concat(null==e?void 0:e.text,"_").concat(t+1)))}),eX&&(0,l.jsx)("ul",{children:null==ew?void 0:ew.map((e,t)=>{var a,n;return(0,l.jsx)("li",{children:(0,l.jsx)(U,{siteUrl:null==e||null==(a=e.development_details)?void 0:a.site_url,icon:(0,l.jsx)(s.HaR,{size:"20",className:ed().colorIcon}),name:null==e||null==(n=e.development_details)?void 0:n.name,index:t,title:"Empreendimentos",term:eN,setClearInput:X})},"".concat(null==e?void 0:e.text,"_").concat(t+1))})})]})})}),eB&&(0,l.jsx)(er,{term:H})]})})]}),(0,l.jsx)("div",{className:ed().buttonArea,children:(0,l.jsx)("footer",{className:ed().footer,ref:e$,children:0===G.length?(0,l.jsx)(d.A,{className:ed().buttonDisabled,classNameParagraph:ed().classNameParagraphDisabled,text:"Escolha uma localiza\xe7\xe3o"}):(0,l.jsx)(d.A,{className:ed().button,classNameParagraph:ed().classNameParagraph,text:b?"":"Ver empreendimentos",to:eZ,prefetch:!0,handleSubmit:ez,hasIconLoading:b,spinnerClassname:ed().spinner})})})]})}):null})},57212:(e,t,a)=>{a.r(t),a.d(t,{THEME:()=>b,default:()=>E});var l=a(19962),n=a(65394),s=a(15975),i=a(54409),o=a.n(i),r=a(16979),c=a(36189),d=a(1361),u=a(99446),h=a(63634),m=a(44699),A=a(39766),L=a.n(A);let M=(0,n.memo)(function(e){let{modal:t,theme:a,noPlanSelectionMode:s,handleSubmitted:i,onClose:r,setIsModalOpen:c,setStep:d}=e,[A,M]=(0,n.useState)(!1),_=(0,n.useCallback)(()=>{d&&s&&d(1),d&&d(0)},[s,d]),S=(0,n.useCallback)(()=>{A||(M(!0),requestAnimationFrame(()=>{c(!1),t.hide(),_(),r&&r(),M(!1)}))},[_,t,r,c,A]),x=(0,n.useCallback)(()=>{c(!1),t.hide(),_(),i&&i(),r&&r()},[c,t,_,i,r]);return i?(0,l.jsx)(h.$,{"data-testid":"button-with-handle",onClick:x,"aria-label":"Fechar modal",className:L().buttonHide,children:(0,l.jsx)(u.dCQ,{size:24,className:o()(L().iconClose,{[L().iconCloseDesktopGalleryModal]:a===b.MODAL_GALLERY_DESKTOP})})}):A?(0,l.jsx)(m.A,{size:20,color:"#6c7179",className:L().spinner}):(0,l.jsx)(h.$,{"data-testid":"button-without-handle",onClick:S,className:L().buttonHide,"aria-label":"Fechar modal",children:(0,l.jsx)(u.dCQ,{size:24,"data-testid":"iconClose",className:o()(L().iconClose,{[L().iconCloseDesktopGalleryModal]:a===b.MODAL_GALLERY_DESKTOP,[L().iconClosePersonalizedAnalysis]:a===b.MODAL_PERSONALIZED_ANALYSIS||a===b.MODAL_PERSONALIZED_ANALYSIS_SUCCESS})})})});var _=a(60779),S=a.n(_);let x=(0,s.default)(()=>Promise.all([a.e(1869),a.e(4997),a.e(7486),a.e(6988),a.e(8270),a.e(3532),a.e(9186),a.e(1662),a.e(3153),a.e(7226),a.e(2174),a.e(4465),a.e(7270),a.e(4023)]).then(a.bind(a,37281)),{loadableGenerated:{webpack:()=>[37281]},ssr:!1}),b={MODAL_FILTER:"modalFilter",MODAL_LOCATION:"modalLocation",MODAL_PLANT_ZOOM_IMAGE:"modalPlantZoomImage",MODAL_DETAILS:"modalDetails",MODAL_GALLERY_MOBILE:"modalGalleryMobile",MODAL_GALLERY_DESKTOP:"modalGalleryDesktop",MODAL_CHARACTERISTICS:"modalCharacteristics",MODAL_CHARACTERISTICS_MOBILE:"modalCharacteristicsMobile",MODAL_MOBILE_GALLERY:"modalMobileGallery",MODAL_DEVELOPMENT_MAP:"modalDevelopmentMap",MODAL_FIND_APARTMENT_FOR_ME:"modalFindApartamentForMe",MODAL_PRE_LAUNCH_STAGE:"modalPreLaunchStage",MODAL_PERSONALIZED_ANALYSIS:"modalPersonalizedAnalysis",MODAL_PERSONALIZED_ANALYSIS_SUCCESS:"modalPersonalizedAnalysisSuccess",MODAL_CUSTOM_PRE_ANALYSIS:"modalCustomPreAnalysis"},E=(0,n.memo)(function(e){var t;let{icon:a,title:s,setStep:i,windowTitle:u,modal:h,children:m,className:A,handleSubmitted:L,noPlanSelectionMode:_,theme:E,setFilteredGallery:v,desktopGalleryModal:O,medias:p,JSXElementAsHeadline:D,ariaLabel:N,windowTitleClassName:C,finalFocusRef:j,headLineClassName:f,bodyClassName:I,titleClassName:T,onClose:g,dataTestId:y,onTouchStart:R,onTouchMove:P,ref:w,modalRef:k,classNameContent:G,modalAttribute:F,bodyAttribute:Y,contentAttribute:H}
1=e,[z,Z]=(0,n.useState)(!1),{setIsModalOpen:B}=(0,n.useContext)(c.Vs);return(0,n.useEffect)(()=>((null==h?void 0:h.visible)&&(document.body.style.overflow="hidden"),()=>{document.body.style.overflow="unset"}),[null==h?void 0:h.visible]),(0,d.g)(()=>{B(!1)}),(0,l.jsx)(r.l,{...h,tabIndex:0,"aria-label":null!=(t=null!=N?N:u)?t:"Default Modal",className:o()(S().defaultModalWrapper,A),"data-testid":y||"default-modal",preventBodyScroll:!1,onClick:e=>{var t,a;"object"!=typeof(null==e||null==(t=e.target)?void 0:t.className)&&(null==e||null==(a=e.target)?void 0:a.className.includes(S().defaultModalWrapper))&&(B(!1),null==h||h.hide())},unstable_finalFocusRef:j,hideOnClickOutside:!1,onTouchStart:e=>{R&&R(e)},onTouchMove:e=>{P&&P(e)},ref:w,"data-modal-attribute":F,children:(0,l.jsxs)("div",{"data-testid":"content",ref:k,"data-content-attribute":H,className:o()(S().content,G,{[S().contentFilterModal]:E===b.MODAL_FILTER,[S().contentZoomPlantImage]:E===b.MODAL_PLANT_ZOOM_IMAGE,[S().contentMoreDetailsModal]:E===b.MODAL_DETAILS,[S().contentMobileGalleryModal]:E===b.MODAL_GALLERY_MOBILE,[S().contentDesktopGalleryModal]:E===b.MODAL_GALLERY_DESKTOP,[S().contentModalCharacteristicMobile]:E===b.MODAL_CHARACTERISTICS_MOBILE,[S().contentModalCharacteristic]:E===b.MODAL_CHARACTERISTICS,[S().contentDevelopmentMapModal]:E===b.MODAL_DEVELOPMENT_MAP,[S().contentLocationSearchModal]:E===b.MODAL_LOCATION,[S().contentPersonalizedAnalysis]:E===b.MODAL_PERSONALIZED_ANALYSIS||b.MODAL_PERSONALIZED_ANALYSIS_SUCCESS,[S().customPreAnalysisModalContent]:E===b.MODAL_CUSTOM_PRE_ANALYSIS}),children:[(0,l.jsxs)("div",{"data-testid":"headline",className:o()(S().headline,f,{[S().headlineMoreDetailsModal]:E===b.MODAL_DETAILS,[S().headlineMobileGalleryModal]:E===b.MODAL_GALLERY_MOBILE,[S().headlineDesktopGalleryModal]:E===b.MODAL_GALLERY_DESKTOP&&z,[S().characteristicsHeadLine]:E===b.MODAL_CHARACTERISTICS_MOBILE,[S().headlineDesktopGalleryModalNoTag]:E===b.MODAL_GALLERY_DESKTOP&&!1===z,[S().headlineDevelopmentMapModal]:E===b.MODAL_DEVELOPMENT_MAP,[S().headlinePreLaunchStageModal]:E===b.MODAL_PRE_LAUNCH_STAGE,[S().headlinePersonalizedAnalysis]:E===b.MODAL_PERSONALIZED_ANALYSIS||b.MODAL_PERSONALIZED_ANALYSIS_SUCCESS}),children:[O&&p&&v&&(0,l.jsx)(x,{medias:p,setFilteredGallery:v,setHasAtLeastOneTag:Z}),a&&(0,l.jsx)(a,{className:o()(S().icon,{[S().iconMoreDetails]:E===b.MODAL_DETAILS,[S().characteristicsHeadLine]:E===b.MODAL_CHARACTERISTICS,[S().iconFindApartamentForMe]:E===b.MODAL_FIND_APARTMENT_FOR_ME}),"data-testid":"icon"}),D&&D,(0,l.jsx)("h4",{"data-testid":"title",className:o()(S().windowTitle,a&&S().windowTitleWithIcon,C&&C,{[S().windowTitleLocation]:E===b.MODAL_LOCATION,[S().windowTitleZoomPlant]:E===b.MODAL_PLANT_ZOOM_IMAGE,[S().windowTitleMobileGalleryModal]:E===b.MODAL_GALLERY_MOBILE,[S().windowTitleCharacteristics]:E===b.MODAL_CHARACTERISTICS,[S().windowTitleCharacteristicsMobile]:E===b.MODAL_CHARACTERISTICS_MOBILE,[S().windowTitleDetails]:E===b.MODAL_DETAILS,[S().windowTitleFindApartamentForMe]:E===b.MODAL_FIND_APARTMENT_FOR_ME,[S().windowTitlePersonalizedAnalysis]:E===b.MODAL_PERSONALIZED_ANALYSIS||b.MODAL_PERSONALIZED_ANALYSIS_SUCCESS}),children:(0,l.jsx)("span",{"data-testid":"windowTitle",children:"Popup da p\xe1gina de busca"===u?"":u})}),(0,l.jsx)(M,{modal:h,theme:E,noPlanSelectionMode:_,handleSubmitted:L,onClose:g,setIsModalOpen:B,setStep:i})]}),(0,l.jsxs)("div",{"data-testid":"bodyContainer","data-body-attribute":Y,className:o()(S().body,I,{[S().bodyFilterModal]:E===b.MODAL_FILTER,[S().bodyLocationSearchModal]:E===b.MODAL_LOCATION,[S().bodyZoomPlantImage]:E===b.MODAL_PLANT_ZOOM_IMAGE,[S().bodyMoreDetailsModal]:E===b.MODAL_DETAILS,[S().bodyMobileGalleryModal]:E===b.MODAL_GALLERY_MOBILE,[S().bodyDesktopGalleryModal]:E===b.MODAL_GALLERY_DESKTOP,[S().bodyCharacteristicsModalMobile]:E===b.MODAL_CHARACTERISTICS_MOBILE,[S().bodyCharacteristicsModal]:E===b.MODAL_CHARACTERISTICS,[S().bodyDevelopmentMapModal]:E===b.MODAL_DEVELOPMENT_MAP,[S().bodyFindApartamentForMe]:E===b.MODAL_FIND_APARTMENT_FOR_ME,[S().bodyPreLaunchStageModal]:E===b.MODAL_PRE_LAUNCH_STAGE,[S().bodyPersonalizedAnalysis]:E===b.MODAL_PERSONALIZED_ANALYSIS||E===b.MODAL_PERSONALIZED_ANALYSIS_SUCCESS}),children:[s&&(0,l.jsx)("h5",{"data-testid":"h5-title",className:o()(S().title,T),children:s}
1),(0,l.jsx)("div",{className:o()(S().form,{[S().imagePlantCentered]:E===b.MODAL_PLANT_ZOOM_IMAGE,[S().formModalCharacteristics]:E===b.MODAL_CHARACTERISTICS_MOBILE}),children:m})]})]})})})},93353:(e,t,a)=>{a.d(t,{A:()=>n});var l=a(65394);let n=function(e,t){let[a,n]=(0,l.useState)(!1);return(0,l.useEffect)(()=>{let e=setTimeout(()=>{n(!0)},t);return()=>{clearTimeout(e),n(!1)}},[e,t]),a}}}]);

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.