1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1885],{8428:(e,i,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/condominios/components/pieces/list/ListPiecesCondominio",function(){return t(9303)}])},9303:(e,i,t)=>{"use strict";t.r(i),t.d(i,{__N_SSP:()=>x,default:()=>N});var r=t(37876),o=t(90744),s=t(18847),_=t.n(s),n=t(14232),l=t(96815),a=t(54733),d=t(68252),c=t(13648),p=t(96500),m=t.n(p),u=t(17996),P=t.n(u);let g=_()(()=>Promise.all([t.e(3778),t.e(9175),t.e(3371),t.e(7671),t.e(956),t.e(4587),t.e(8230),t.e(7236),t.e(108)]).then(t.bind(t,87236)),{loadableGenerated:{webpack:()=>[87236]},ssr:!1}),v=_()(()=>Promise.all([t.e(3778),t.e(9154),t.e(3371),t.e(956),t.e(4587),t.e(8230),t.e(7360),t.e(7727)]).then(t.bind(t,57360)),{loadableGenerated:{webpack:()=>[57360]},ssr:!1}),L=_()(()=>Promise.all([t.e(3778),t.e(9154),t.e(3371),t.e(956),t.e(4587),t.e(8230),t.e(4586),t.e(6888)]).then(t.bind(t,64586)),{loadableGenerated:{webpack:()=>[64586]},ssr:!1}),h=_()(()=>Promise.all([t.e(3778),t.e(1291),t.e(3371),t.e(956),t.e(4587),t.e(8230),t.e(9947),t.e(5346)]).then(t.bind(t,39947)),{loadableGenerated:{webpack:()=>[39947]},ssr:!1}),b=_()(()=>Promise.all([t.e(3778),t.e(1070),t.e(4587),t.e(8230),t.e(3650)]).then(t.bind(t,43650)),{loadableGenerated:{webpack:()=>[43650]},ssr:!1}),f=[],y=[],j=()=>{},S=(e,i,t,r,o)=>{var s,_;if(t&&Number(t)>0)return(0,c.oy)("/empreendimento/".concat(t),r,o);let n=(null==e?void 0:null===(_=e.transacoes)||void 0===_?void 0:null===(s=_[0])||void 0===s?void 0:s.toLowerCase())||"venda",l=(0,d.qs)(String(i||"-")).toLowerCase().replaceAll("/","-").replaceAll("?","-").replaceAll(".","-").replaceAll("\n","-").replaceAll(" ","-");return(0,c.oy)("/imoveis/".concat(n,"/-/-/").concat(l||"-","/-"),r,o)};var x=!0;let N=e=>{let{allCompany:i,site:t,allCities:s,origin:_,codsite:c,isHorizontal:p,onLoadMore:u,hasMore:x,loadingMore:N,loadingInitial:C,temFiltro:k,onLimparFiltros:w}=e,M=(0,n.useRef)(null),V=(0,n.useRef)(!1),q=(0,d.GM)(null==t?void 0:t.cor5)?(null==t?void 0:t.cor11)||"#111827":(null==t?void 0:t.cor13)||"#ffffff",R=(0,n.useMemo)(()=>({...t,marca_dagua:{...null==t?void 0:t.marca_dagua,ativada:!1}}),[t]),E=(0,n.useMemo)(()=>(i||[]).map(e=>({slide:(0,a.IZ)(e,s),modoEmpreendimento:{href:S(t,null==e?void 0:e.nome,Number(null==e?void 0:e.id),c,_),rotulo:(0,a.o5)(e,s),precoPrefixo:a.tV,botao:a.Cv}})),[s,i,c,_,t]);(0,n.useEffect)(()=>{N||(V.current=!1)},[N]),(0,n.useEffect)(()=>{if(!x||!u||N)return;let e=M.current;if(!e)return;let i=new IntersectionObserver(e=>{let i=e[0];(null==i?void 0:i.isIntersecting)&&!V.current&&(V.current=!0,u())},{rootMargin:"700px 0px"});return i.observe(e),()=>i.disconnect()},[null==i?void 0:i.length,x,N,u]);let G=!C&&!N&&!x&&0===E.length;return(0,r.jsxs)(r.Fragment,{children:[!C&&E.length>0?(0,r.jsxs)("div",{className:m().container,children:[p?E.map((e,i)=>{let{slide:t,modoEmpreendimento:s}=e;return(0,r.jsx)(o.P.div,{initial:{opacity:0,y:50},animate:{opacity:1,y:0},transition:{duration:.5,delay:i%12*.2},className:m().card_horizontal1,children:(0,r.jsx)(h,{slide:t,i:i,site:R,stylesCard:m().card_horizontal,allViewProperties:f,favorito:y,setFavorito:j,modoEmpreendimento:s})},(null==t?void 0:t.id)||i)}):E.map((e,i)=>{let{slide:s,modoEmpreendimento:_}=e;return(0,r.jsx)(o.P.div,{initial:{opacity:0,y:50},animate:{opacity:1,y:0},transition:{duration:.5,delay:i%12*.2},className:(null==t?void 0:t.modelo_card)>1?m().card11:m().card1,children:(null==t?void 0:t.modelo_card)==4?(0,r.jsx)(b,{slide:s,i:i,site:R,allViewProperties:f,favorito:y,codsite:c,modoEmpreendimento:_}):(null==t?void 0:t.modelo_card)==2?(0,r.jsx)(v,{slide:s,i:i,site:R,stylesCard:m().card3,allViewProperties:f,favorito:y,codsite:c,modoEmpreendimento:_}):(null==t?void 0:t.modelo_card)==1?(0,r.jsx)(g,{slide:s,i:i,site:R,stylesCard:m().card2,allViewProperties:f,favorito:y,codsite:c,modoEmpreendimento:_}):(0,r.jsx)(L,{slide:s,i:i,site:R,stylesCard:m().card2,allViewProperties:f,favorito:y,codsite:c,modoEmpreendimento:_})},(null==s?void 0:s.id)||i)}),N?(0,r.jsx)("div",{className:P().loadingMessage,children:"Buscando mais resultados..."}):null,x?(0,r.jsx)("div",{ref:M,className:P().scrollSentinel}):null,x?null:(0,r.jsx)("div",{className:P().endMessage,style:{color:q},children:"Voc\xea chegou ao fim da lista."})]}):null,G?(0,r.jsx)("div",{className:m().empty_state,children:(0,r.jsxs)("div",{className:m().empty_card,style:{background:(0,d.j5)(null==t?void 0:t.cor2,.06),borderColor:(0,d.j5)(null==t?void 0:t.cor2,.22)},children:[(0,r.jsx)("div",{className:m().empty_icon,style:{background:(0,d.j5)(null==t?void 0:t.cor2,.12),color:null==t?void 0:t.cor2},children:(0,r.jsxs)("svg",{width:"40",height:"40",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,r.jsx)("circle",{cx:"11",cy:"11",r:"7"}),(0,r.jsx)("line",{x1:"21",y1:"21",x2:"16.65",y2:"16.65"}),(0,r.jsx)("line",{x1:"8",y1:"11",x2:"14",y2:"11"})]})}),(0,r.jsx)("p",{className:m().empty_title,style:{color:q},children:"Nenhum empreendimento encontrado"}
1),(0,r.jsx)("p",{className:m().empty_subtitle,style:{color:(0,d.j5)(q,.72)},children:k?"N\xe3o encontramos empreendimentos para os filtros selecionados. Tente ajustar a busca.":"Ainda n\xe3o h\xe1 empreendimentos cadastrados para esta p\xe1gina."}),k&&w?(0,r.jsx)("button",{"aria-label":"Bot\xe3o para limpar os filtros",title:"Clique para limpar os filtros",type:"button",onClick:w,className:m().ver_todos_btn,style:{backgroundColor:null==t?void 0:t.cor2,color:(0,d.GM)(null==t?void 0:t.cor2)?null==t?void 0:t.cor11:null==t?void 0:t.cor13},children:"Limpar filtros"}):null]})}):C?(0,r.jsx)("div",{className:m().adjust_loading,children:(0,r.jsx)(l.pf,{color:"rgb(195, 167, 96)",height:80,width:80})}):null]})}},17996:e=>{e.exports={loadingMessage:"ListPiecesCondominio_loadingMessage__t1RVq",scrollSentinel:"ListPiecesCondominio_scrollSentinel__3V14O",endMessage:"ListPiecesCondominio_endMessage__0GxMm"}},54733:(e,i,t)=>{"use strict";t.d(i,{Cv:()=>s,Gp:()=>n,IZ:()=>c,o5:()=>d,tV:()=>o});var r=t(68252);let o="A partir de",s="Ver empreendimento",_=e=>{if(null==e)return;let i=Number(String(e).replace(",",".").replace(/[^\d.]/g,""));if(!Number.isNaN(i)&&!(i<=0))return i},n=e=>{let i=Number(null==e?void 0:e.min),t=Number(null==e?void 0:e.max),r=Number.isFinite(i)&&i>=0?i:0,o=Number.isFinite(t)&&t>=r?t:r;return{min:r,max:o}},l=e=>{var i;let t=String((null==e?void 0:null===(i=e.categoria_empreendimento)||void 0===i?void 0:i.nome)||"").trim(),o=String((null==e?void 0:e.situacao)||"").trim(),s=(0,r.qs)("".concat(t," ").concat(o)).toLowerCase();return s.includes("planta")?"Na planta":s.includes("lanc")?"Lan\xe7amento":s.includes("pronto")?"Pronto novo":""},a=(e,i)=>{var t;let r="string"==typeof(null==e?void 0:e.cidade)?e.cidade:null==e?void 0:null===(t=e.cidade)||void 0===t?void 0:t.nome;if(r)return String(r).trim();if((null==e?void 0:e.id_cidade)&&Array.isArray(i)){let t=i.find(i=>(null==i?void 0:i.id)==(null==e?void 0:e.id_cidade));return String((null==t?void 0:t.nome)||"").trim()}return""},d=(e,i)=>{let t=String((null==e?void 0:e.nome)||"Empreendimento").trim(),r=l(e),o=[String((null==e?void 0:e.bairro)||"").trim(),a(e,i)].filter(Boolean).join(", ");return"".concat(t).concat(r?" - ".concat(r):"").concat(o?" em ".concat(o):"")},c=(e,i)=>{var t;let r=(Array.isArray(null==e?void 0:e.fotos)?e.fotos:[]).filter(e=>null==e?void 0:e.url_foto),o=r.find(e=>(null==e?void 0:e.destaque)===!0||1===Number(null==e?void 0:e.destaque))||r[0],s=String((null==e?void 0:e.nome)||"").trim(),n=a(e,i),d=String((null==e?void 0:e.bairro)||"").trim(),c=_(null!==(t=null==e?void 0:e.area_privativa_min)&&void 0!==t?t:null==e?void 0:e.are_privativa_min);return{id:Number(null==e?void 0:e.id)||0,titulo:s,cidade:n?{nome:n}:void 0,bairro:d?{nome:d}:void 0,descricao:(null==e?void 0:e.descricao)||"",dormitorios:Number(null==e?void 0:e.dormitorios)||void 0,suites:Number(null==e?void 0:e.suites)||void 0,garagems:Number(null==e?void 0:e.vagas)||void 0,vagas:Number(null==e?void 0:e.vagas)||void 0,area_total:c||void 0,preco_venda:Number(null==e?void 0:e.preco_min)||void 0,fotos:o?{url_foto:o.url_foto}:void 0,mini_banner_texto:l(e)||void 0}}},96500:e=>{e.exports={container:"ListPiecesProperties_container__IFi_7",button_delete:"ListPiecesProperties_button_delete__nSqqD",mapa_button:"ListPiecesProperties_mapa_button__bqf29",info_manager:"ListPiecesProperties_info_manager__Q8JtR",img:"ListPiecesProperties_img__KVbCP",info:"ListPiecesProperties_info__sO1Na",creci:"ListPiecesProperties_creci__rRtqC",network:"ListPiecesProperties_network__Mab7I",manager:"ListPiecesProperties_manager__2pxSZ",name:"ListPiecesProperties_name__Ekhas",geral:"ListPiecesProperties_geral__9RkxX",container_company:"ListPiecesProperties_container_company___W_Wv",container_all_list:"ListPiecesProperties_container_all_list__ZqPqY",adjust_loading:"ListPiecesProperties_adjust_loading__DNBtG",texto:"ListPiecesProperties_texto__xrfWe",clique_aqui:"ListPiecesProperties_clique_aqui__oUbYi",ver_todos_btn:"ListPiecesProperties_ver_todos_btn__NVVvg",empty_state:"ListPiecesProperties_empty_state__ChRGJ",empty_card:"ListPiecesProperties_empty_card__lzEQx",empty_icon:"ListPiecesProperties_empty_icon___1TjY",empty_title:"ListPiecesProperties_empty_title__Ot37t",empty_subt
1itle:"ListPiecesProperties_empty_subtitle__jgqxS",empty_suggestions:"ListPiecesProperties_empty_suggestions__7Q5IR",empty_sugg_title:"ListPiecesProperties_empty_sugg_title__UrVtd",empty_sugg_grid:"ListPiecesProperties_empty_sugg_grid__RuLfQ",container_header:"ListPiecesProperties_container_header___iw5d",container_filter:"ListPiecesProperties_container_filter__VHNP3",title_select:"ListPiecesProperties_title_select__M1T0U",adjust_select:"ListPiecesProperties_adjust_select__dL1Jk",adjust_select_p:"ListPiecesProperties_adjust_select_p__VaMiS",adjust_select_price1:"ListPiecesProperties_adjust_select_price1__Qab9L",select:"ListPiecesProperties_select__RbJL9",select_order:"ListPiecesProperties_select_order__t4Btk",input:"ListPiecesProperties_input__le0O3",adjust_slider:"ListPiecesProperties_adjust_slider__YjBlf",adjust_select_price:"ListPiecesProperties_adjust_select_price__r61NA",adjust_prices:"ListPiecesProperties_adjust_prices__ZcMR9",title_filter_number:"ListPiecesProperties_title_filter_number__o7rw9",flex:"ListPiecesProperties_flex__1dig2",price:"ListPiecesProperties_price__tFhkt",button_number:"ListPiecesProperties_button_number__7Cd5u",button_number_active:"ListPiecesProperties_button_number_active__5VdzZ",card:"ListPiecesProperties_card__xexCI",card2:"ListPiecesProperties_card2__snwAm",card3:"ListPiecesProperties_card3__2VKmE",card1:"ListPiecesProperties_card1__DWORG",card11:"ListPiecesProperties_card11__MULT1",card_horizontal:"ListPiecesProperties_card_horizontal__KsWQN",card_horizontal1:"ListPiecesProperties_card_horizontal1__5R4Gi",card_company:"ListPiecesProperties_card_company__2_2BM",card_company1:"ListPiecesProperties_card_company1__2SmjL",header_box:"ListPiecesProperties_header_box__fvRif",header_box_company:"ListPiecesProperties_header_box_company__qCsvG",paginationSite2507:"ListPiecesProperties_paginationSite2507__qHVaf",adjust_tags:"ListPiecesProperties_adjust_tags__8mmSK",adjust_tags_filter:"ListPiecesProperties_adjust_tags_filter__k3zhp",tags:"ListPiecesProperties_tags__W3cmm",tags1:"ListPiecesProperties_tags1__EYqC3",tags_picker:"ListPiecesProperties_tags_picker__01j3W",container_select:"ListPiecesProperties_container_select__4GvcI",empreendimentoSpotlight:"ListPiecesProperties_empreendimentoSpotlight__aZNFf",empreendimentoSpotlightMedia:"ListPiecesProperties_empreendimentoSpotlightMedia__rF3Xh",empreendimentoSpotlightImage:"ListPiecesProperties_empreendimentoSpotlightImage__4lO0L",empreendimentoSpotlightBadge:"ListPiecesProperties_empreendimentoSpotlightBadge__Pe3Wy",empreendimentoSpotlightContent:"ListPiecesProperties_empreendimentoSpotlightContent__bbqfW",empreendimentoSpotlightTitle:"ListPiecesProperties_empreendimentoSpotlightTitle__y_y1p",empreendimentoSpotlightLocation:"ListPiecesProperties_empreendimentoSpotlightLocation__msfuz",empreendimentoSpotlightDescription:"ListPiecesProperties_empreendimentoSpotlightDescription__RZ8Wi",empreendimentoSpotlightCategory:"ListPiecesProperties_empreendimentoSpotlightCategory__T_zbn",empreendimentoSpotlightFeatureList:"ListPiecesProperties_empreendimentoSpotlightFeatureList__jJCIZ",empreendimentoSpotlightFeatureTag:"ListPiecesProperties_empreendimentoSpotlightFeatureTag__u_t6z",empreendimentoSpotlightHighlights:"ListPiecesProperties_empreendimentoSpotlightHighlights__Nx_HJ",empreendimentoSpotlightHighlightItem:"ListPiecesProperties_empreendimentoSpotlightHighlightItem__62q1v",empreendimentoSpotlightHighlightIcon:"ListPiecesProperties_empreendimentoSpotlightHighlightIcon__H0_p6",empreendimentoSpotlightStats:"ListPiecesProperties_empreendimentoSpotlightStats__N48R_",empreendimentoSpotlightStat:"ListPiecesProperties_empreendimentoSpotlightStat__RH_GT",empreendimentoSpotlightLabel:"ListPiecesProperties_empreendimentoSpotlightLabel__dH3Q9",adjust_select_order:"ListPiecesProperties_adjust_select_order___iRPM",adjust_select_order_open:"ListPiecesProperties_adjust_select_order_open__dt_8U",cards_interaction_locked:"ListPiecesProperties_cards_interaction_locked__75mPH",adjust_header_tabs:"ListPiecesProperties_adjust_header_tabs__VWMkU",header_tab:"ListPiecesProperties_header_tab__3hBc_",header_tab_focus:"ListPiecesProperties_header_tab_focus__VY868",container_button_filter:"ListPiecesProperties_container_button_filter__skBiM",container_large_filter:"ListPiecesProperties_container_large_filter__eRN1j",adjust_flex:"ListPiecesProperties_adjust_flex__32nf3",numeros_filtro:"ListPiecesProperties_numeros_filtro__LLhlL",button_concluded:"ListPiecesProperties_button_concluded__MMjoV",closed_modal:"ListPiecesProperties_closed_modal__6oeYZ"}}},e=>{var i=i=>e(e.s=i);e.O(0,[1215,744,427,8621,636,6593,8792],()=>i(8428)),_N_E=e.O()}]); 2//# sourceMappingURL=ListPiecesCondominio-38f1893c4647c3f7.js.map
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.