1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9836],{9836:function(o,e,i){"use strict";i.r(e);var s=i(85893),n=i(67294),r=i(39447),a=i(63224),c=i(25675),d=i.n(c),l=i(41664),t=i.n(l),_=i(11163),m=i(83570),h=i(65797),u=i.n(h);let x={"#000000":"#1a1a1a","#1e293b":"#334155","#0f172a":"#1e293b"},v=o=>{let{paginas:e,primaryColor:i,fontFamily:a,pageBackground:c,total:l,page:h,limit:v,busca:p}=o,j=function(o){var e;let i=(o||"#ffffff").toLowerCase(),s=null!==(e=x[i])&&void 0!==e?e:"#ffffff",n=parseInt(s.slice(1,3),16),r=parseInt(s.slice(3,5),16),a=parseInt(s.slice(5,7),16),c=(.299*n+.587*r+.114*a)/255<.5;return{cardBg:s,dark:c,nameColor:c?"#ffffff":"#222222",secondaryColor:c?"rgba(255,255,255,0.7)":"#555555",strongColor:c?"#ffffff":"#333333",borderColor:c?"rgba(255,255,255,0.12)":"#f0f0f0",shadow:c?"0 2px 12px rgba(0,0,0,0.4)":"0 2px 12px rgba(0,0,0,0.08)",shadowHover:c?"0 6px 24px rgba(0,0,0,0.6)":"0 6px 24px rgba(0,0,0,0.14)"}}(c),y=(0,_.useRouter)(),f=Math.ceil(l/v),b=(0,n.useRef)(null),C=(0,n.useRef)(null),[k,N]=(0,n.useState)(p||""),[P,S]=(0,n.useState)(!1);(0,n.useEffect)(()=>{N(p||"")},[p]),(0,n.useEffect)(()=>()=>clearTimeout(b.current),[]);let w=o=>y.push({query:{...y.query,page:o}},void 0,{scroll:!1}),L=o=>{let e=o.target.value;N(e),S(!0),b.current&&clearTimeout(b.current),b.current=setTimeout(()=>{S(!1),y.push({query:{busca:e||void 0,page:1}},void 0,{scroll:!1}).then(()=>{var o;return null===(o=C.current)||void 0===o?void 0:o.focus()})},400)},T=[];for(let o=1;o<=f;o++)T.push(o);let B=(0,n.useState)(()=>({$:[,,,,]}))[0],q=u().searchWrap,I=u().searchIcon,W=(0,r.r)((0,s.jsx)("input",{ref:C,name:"busca",type:"text",className:u().searchInput,placeholder:"Buscar por nome do condom\xednio ou bairro...",value:k,onChange:L}),!1,B.$,0,!0),H=(0,r.r)(P&&(0,s.jsx)("span",{className:u().searchSpinner,"aria-label":"Buscando..."}),!1,B.$,1,!0),V=u().listingSection,A=(0,r.r)(0===e.length?(0,s.jsx)("p",{className:u().empty,children:"Nenhum condom\xednio encontrado."}):(0,s.jsx)("div",{className:u().grid,children:e.map(o=>(0,s.jsxs)(t(),{href:"/paginas-condominios/".concat(o.slug),className:u().card,style:{background:j.cardBg,boxShadow:j.shadow},children:[(0,s.jsx)("div",{className:u().cardPhoto,children:o.fotos&&o.fotos[0]?(0,s.jsx)(d(),{src:o.fotos[0],alt:o.nome,fill:!0,style:{objectFit:"cover"},unoptimized:!0}):(0,s.jsx)("div",{className:u().cardPhotoPlaceholder,style:{backgroundColor:j.dark?"rgba(255,255,255,0.06)":"".concat(i,"18")},children:(0,s.jsxs)("svg",{width:"48",height:"48",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5","aria-hidden":"true",children:[(0,s.jsx)("rect",{x:"3",y:"3",width:"18",height:"18",rx:"2"}),(0,s.jsx)("circle",{cx:"8.5",cy:"8.5",r:"1.5"}),(0,s.jsx)("polyline",{points:"21 15 16 10 5 21"})]})})}),(0,s.jsxs)("div",{className:u().cardBody,children:[(0,s.jsx)("h3",{className:u().cardName,style:{fontFamily:a,color:j.nameColor},children:o.nome}),(o.endereco||o.bairro||o.cidade)&&(0,s.jsxs)("div",{className:u().cardAddress,style:{color:j.secondaryColor},children:[(0,s.jsxs)("svg",{width:"13",height:"13",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,s.jsx)("path",{d:"M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z"}),(0,s.jsx)("circle",{cx:"12",cy:"10",r:"3"})]}),(0,s.jsx)("span",{children:[o.endereco,o.bairro,o.cidade,o.estado].filter(Boolean).join(", ")})]}),(0,s.jsxs)("div",{className:u().cardStats,children:[(null!=o.area_min||null!=o.area_max)&&(0,s.jsxs)("div",{className:u().cardStat,style:{color:j.secondaryColor},children:[(0,s.jsxs)("svg",{width:"13",height:"13",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,s.jsx)("polyline",{points:"15 3 21 3 21 9"}),(0,s.jsx)("polyline",{points:"9 21 3 21 3 15"}),(0,s.jsx)("line",{x1:"21",y1:"3",x2:"14",y2:"10"}),(0,s.jsx)("line",{x1:"3",y1:"21",x2:"10",y2:"14"})]}),(0,s.jsx)("span",{children:(0,s.jsx)("strong",{style:{color:j.strongColor},children:(0,m.nS)(o.area_min,o.area_max," m\xb2")})})]}),(null!=o.quartos_min||null!=o.quartos_max)&&(0,s.jsxs)("div",{className:u().cardStat,style:{color:j.secondaryColor},children:[(0,s.jsxs)("svg",{width:"13",height:"13",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,s.jsx)("path",{d:"M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"}),(0,s.jsx)("polyline",{points:"9 22 9 12 15 12 15 22"})]}),(0,s.jsxs)("span",{children:[(0,s.jsx)("strong",{style:{color:j.strongColor},children:(0,m.nS)(o.quartos_min,o.quartos_max)})," ","quarto",1!==o.quartos_max?"s":""]})]}),(null!=o.banheiros_min||null!=o.banheiros_max)&&(0,s.jsxs)("div",{className:u().cardStat,style:{color:j.secondaryColor},children:[(0,s.jsxs)("svg",{width:"13",height:"13",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,s.jsx)("path",{d:"M4 12h16a1 1 0 0 1 1 1v3a4 4 0 0 1-4 4H7a4 4 0 0 1-4-4v-3a1 1 0 0 1 1-1z"}),(0,s.jsx)("path",{d:"M6 12V5a2 2 0 0 1 2-2h3v2.25"})]}),(0,s.jsxs)("span",{children:[(0,s.jsx)("strong",{style:{color:j.strongColor},children:(0,m.nS)(o.banheiros_min,o.banheiros_max)}
1)," ","banheiro",1!==o.banheiros_max?"s":""]})]}),(null!=o.vagas_min||null!=o.vagas_max)&&(0,s.jsxs)("div",{className:u().cardStat,style:{color:j.secondaryColor},children:[(0,s.jsxs)("svg",{width:"13",height:"13",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,s.jsx)("rect",{x:"1",y:"3",width:"15",height:"13",rx:"2"}),(0,s.jsx)("path",{d:"M16 8h4l3 3v5h-7V8z"}),(0,s.jsx)("circle",{cx:"5.5",cy:"18.5",r:"2.5"}),(0,s.jsx)("circle",{cx:"18.5",cy:"18.5",r:"2.5"})]}),(0,s.jsxs)("span",{children:[(0,s.jsx)("strong",{style:{color:j.strongColor},children:(0,m.nS)(o.vagas_min,o.vagas_max)})," ","vaga",1!==o.vagas_max?"s":""]})]})]}),(o.preco_venda_min||o.preco_locacao_min)&&(0,s.jsxs)("div",{className:u().cardPrices,style:{borderTopColor:j.borderColor},children:[o.preco_venda_min&&(0,s.jsxs)("div",{className:u().cardPriceLine,style:{color:j.secondaryColor},children:["Venda a partir de"," ",(0,s.jsx)("strong",{style:{color:j.nameColor},children:(0,m.o_)(o.preco_venda_min)})]}),o.preco_locacao_min&&(0,s.jsxs)("div",{className:u().cardPriceLine,style:{color:j.secondaryColor},children:["Loca\xe7\xe3o a partir de"," ",(0,s.jsxs)("strong",{style:{color:j.nameColor},children:[(0,m.o_)(o.preco_locacao_min),"/m\xeas"]})]})]})]})]},o.id))}),!1,B.$,2,!0),G=(0,r.r)(f>1&&(0,s.jsxs)("div",{className:u().pagination,children:[(0,s.jsx)("button",{onClick:()=>w(h-1),disabled:h<=1,children:"Anterior"}),T.map(o=>(0,s.jsx)("button",{onClick:()=>w(o),className:o===h?u().active:void 0,children:o},o)),(0,s.jsx)("button",{onClick:()=>w(h+1),disabled:h>=f,children:"Pr\xf3xima"})]}),!1,B.$,3,!0);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(g,{_:q,_2:I,_3:W,_4:H,_5:V,_6:A,_7:G}),B.$.map(o=>o.portal)]})},g=(0,a.Ge)(o=>{let{_:e,_2:i,_3:n,_4:r,_5:a,_6:c,_7:d}=o;return(0,s.jsxs)("slot",{children:[(0,s.jsxs)("div",{className:e,children:[(0,s.jsx)("span",{className:i,children:(0,s.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,s.jsx)("circle",{cx:"11",cy:"11",r:"8"}),(0,s.jsx)("line",{x1:"21",y1:"21",x2:"16.65",y2:"16.65"})]})}),n,r]}),(0,s.jsxs)("div",{className:a,children:[c,d]})]})},{svg:!1,shouldUpdate:(o,e)=>(null==o?void 0:o._)!==(null==e?void 0:e._)||(null==o?void 0:o._2)!==(null==e?void 0:e._2)||(null==o?void 0:o._3)!==(null==e?void 0:e._3)||(null==o?void 0:o._4)!==(null==e?void 0:e._4)||(null==o?void 0:o._5)!==(null==e?void 0:e._5)||(null==o?void 0:o._6)!==(null==e?void 0:e._6)||(null==o?void 0:o._7)!==(null==e?void 0:e._7)});e.default=v},65797:function(o){o.exports={page:"condominios_page__rFqdg",breadcrumb:"condominios_breadcrumb__MdrNw",cover:"condominios_cover__DbQ8s",coverImage:"condominios_coverImage__skSk_",coverOverlay:"condominios_coverOverlay__sTZoR",coverContent:"condominios_coverContent__ux57g",coverTitle:"condominios_coverTitle__2J924",coverSubtitle:"condominios_coverSubtitle__8ho1f",searchWrap:"condominios_searchWrap__PJcF2",listingSection:"condominios_listingSection__kIIZa",listingHeader:"condominios_listingHeader__ZrVsg",grid:"condominios_grid__iHV5i",card:"condominios_card__HzvEF",cardPhoto:"condominios_cardPhoto__Y4egB",cardPhotoPlaceholder:"condominios_cardPhotoPlaceholder__koBVE",cardBody:"condominios_cardBody__jXugC",cardName:"condominios_cardName__210g5",cardAddress:"condominios_cardAddress__12M9w",cardStats:"condominios_cardStats__nLqdW",cardStat:"condominios_cardStat__nNj9T",cardPrices:"condominios_cardPrices__JwloP",cardPriceLine:"condominios_cardPriceLine__VmCgk",pagination:"condominios_pagination__qllaO",active:"condominios_active__ludWv",empty:"condominios_empty__aVR5o",detailPage:"condominios_detailPage__aOFCn",detailHeader:"condominios_detailHeader__3_6dz",detailName:"condominios_detailName__0aYgG",detailAddress:"condominios_detailAddress__crJf9",detailLayout:"condominios_detailLayout__x51Mv",gallery:"condominios_gallery__j_Hnb",galleryMain:"condominios_galleryMain__yC9qv",galleryArrow:"condominios_galleryArrow__7ngl9",galleryCounter:"condominios_galleryCounter__PLHZx",galleryThumbs:"condominios_galleryThumbs__41BcV",galleryThumb:"condominios_galleryThumb__OGwBY",statsCard:"condominios_statsCard__eG4vo",
1statsGrid:"condominios_statsGrid__qESqf",statItem:"condominios_statItem__TDRH1",statLabel:"condominios_statLabel__7eZ5E",statValue:"condominios_statValue__Fp_Iy",statsDivider:"condominios_statsDivider__8juJ1",statsPrice:"condominios_statsPrice__u_Pdk",statsPriceLine:"condominios_statsPriceLine__e3c9C",statsPriceLabel:"condominios_statsPriceLabel__a_Hf_",statsPriceValue:"condominios_statsPriceValue__XDPWk",statsCta:"condominios_statsCta__jFWmI",descSection:"condominios_descSection__sZAqC",sectionTitle:"condominios_sectionTitle__5yfBs",descText:"condominios_descText__psO7E",descToggle:"condominios_descToggle___0ar3",imoveisSection:"condominios_imoveisSection__kPZgd",tabs:"condominios_tabs__tCIcq",tab:"condominios_tab__g_303",imoveisGrid:"condominios_imoveisGrid__TEzon",viewAllLink:"condominios_viewAllLink__CbGCv",noImoveis:"condominios_noImoveis__2j4jC",comodidadesSection:"condominios_comodidadesSection__De08i",comodidadesGrid:"condominios_comodidadesGrid__o95cS",comodidadeItem:"condominios_comodidadeItem__q0Ri1"}}}]);
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.