1 2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="83779905-68d4-5e25-b880-608b3b67b280")}catch(e){}}(); 3import{a as wt,b as Ce,c as Pt,d as St,g as Ot,h as Tt}from"./chunk-6KJDOSTX.js";import{a as dt}from"./chunk-NXL4ZUVU.js";import{a as ft}from"./chunk-G3KSLHFG.js";import{a as yt,h as Mt}from"./chunk-BBYNNFKC.js";import{c as gt}from"./chunk-VH46NIJH.js";import{a as he,g as ht,h as Ct,i as bt}from"./chunk-UNM7TFZU.js";import{a as le}from"./chunk-XMP6ID7O.js";import{e as Qe,m as Xe}from"./chunk-43C6U4ML.js";import{a as ut}from"./chunk-OWZZPBIJ.js";import{a as _e,d as ge,e as pt}from"./chunk-23RARBKC.js";import{a as mt,b as fe}from"./chunk-3NGZ3XC6.js";import"./chunk-IXUPVEZM.js";import"./chunk-EITKZAJN.js";import{b as B,e as Ye}from"./chunk-LTXWB32O.js";import"./chunk-JF6DG5E4.js";import{a as _t}from"./chunk-HLGUP77Y.js";import{a as st}from"./chunk-KESPYMVB.js";import{e as xt,f as vt}from"./chunk-2MJQPP5C.js";import"./chunk-7EXVEIJ6.js";import{S as R,V as Ze,W as et,Y as ae,_ as tt,ba as nt,ka as it}from"./chunk-CQGAJZWQ.js";import"./chunk-CYNQZEUP.js";import{a as D}from"./chunk-QQEWTEID.js";import{a as rt}from"./chunk-7YPDHZMQ.js";import{a as ie}from"./chunk-MSGCYC2M.js";import{a as ct}from"./chunk-MZH6D3E5.js";import{c as ot}from"./chunk-DJ4JV4CK.js";import{a as z}from"./chunk-5L3YV3XP.js";import{g as Je,i as Ke}from"./chunk-A4XRKRHG.js";import{d as ue,l as qe}from"./chunk-DYGYYVEU.js";import{a as ee,b as te,c as at,d as lt,e as ne}from"./chunk-5FWVAO4C.js";import{Ac as O,Ad as He,Bc as A,Cd as We,Dc as Re,Fa as ye,Fb as g,Fc as ze,Hb as u,Hc as w,Ia as Ge,Ic as J,J as Ve,Ja as $,Jb as se,Jc as je,Lc as T,Mb as p,Mc as re,Nb as F,Pa as $e,Pb as E,Qb as k,Rb as a,Sb as c,Tb as f,Wb as oe,Xb as y,_b as v,a as j,ac as s,b as U,cb as Fe,db as Be,dc as Me,ea as Y,fb as ce,hc as we,ib as l,ic as Pe,ja as N,jb as P,jc as Se,ka as X,ma as S,nc as Z,ob as De,oc as d,pa as Ae,pc as b,qc as M,r as Ie,rc as Ne,rd as de,sd as Ue,vb as W,vd as me,wa as h,xa as C,xd as pe,y as Le,ya as V,za as H}from"./chunk-B4GESCXH.js";function zt(i,o){if(i&1&&(a(0,"li",1)(1,"p",2),d(2),c(),a(3,"p",3),d(4),c()(),f(5,"div",4)),i&2){let e=o.$implicit;l(2),b(e==null?null:e.name),l(2),b(e==null?null:e.value)}}var Et=(()=>{let o=class o{constructor(){this.attributes=[]}};o.\u0275fac=function(n){return new(n||o)},o.\u0275cmp=S({type:o,selectors:[["lps-attributes-bar"]],inputs:{attributes:"attributes"},standalone:!0,features:[O],decls:3,vars:0,consts:[[1,"attributes-responsive"],[1,"item"],[1,"item__title"],[1,"item__value"],[1,"bar"]],template:function(n,r){n&1&&(a(0,"ul",0),E(1,zt,6,2,null,null,F),c()),n&2&&(l(),k(r.attributes))},styles:[`@keyframes _ngcontent-%COMP%_skeleton-loading{0%{background-color:#c2cfd6}to{background-color:#f0f3f5}}.attributes-responsive[_ngcontent-%COMP%]{height:100px;margin-bottom:16px;display:flex;justify-content:space-evenly;border:1px solid #bdbdbd;border-radius:8px}.attributes-responsive[_ngcontent-%COMP%] .item[_ngcontent-%COMP%]{flex:1 1 auto;text-align:center;margin:0 8px;display:flex;flex-direction:column;justify-content:space-evenly}.attributes-responsive[_ngcontent-%COMP%] .item__title[_ngcontent-%COMP%]{color:#484848cc;font-size:14px}.attributes-responsive[_ngcontent-%COMP%] .item__value[_ngcontent-%COMP%]{font-weight:700;font-size:16px}.attributes-responsive[_ngcontent-%COMP%] .bar[_ngcontent-%COMP%]{width:1px;height:65%;background-color:#bdbdbd;align-self:center}.attributes-responsive[_ngcontent-%COMP%] .bar[_ngcontent-%COMP%]:last-child{display:none}@media (max-width: 860px){.attributes-responsive[_ngcontent-%COMP%]{flex-wrap:wrap;height:auto;gap:12px;border:none}.attributes-responsive[_ngcontent-%COMP%] .item[_ngcontent-%COMP%]{flex:1 1 48%;height:100px;margin:0;padding:10px;border:1px solid #bdbdbd;border-radius:8px;min-inline-size:fit-content}.attributes-responsive[_ngcontent-%COMP%] .bar[_ngcontent-%COMP%]{display:none}}@media screen and (max-width: 414px){.attributes-responsive[_ngcontent-%COMP%] .item[_ngcontent-%COMP%]{flex:1 1 auto;min-width:48%}} 4/*# sourceMappingURL=/v2/attributes-bar.component-673JPWLU.css.map */`]});let i=o;return i})();var xe=(()=>{let o=class o{transform(t){let n="";return t.addressType&&t.address&&(n+=`${t.addressType} ${t.address}, `),t.neighborhood&&(n+=`${t.neighborhood} - `),t.city&&(n+=`${t.city} - `),t.uf&&(n+=`${t.uf}`),n.trim().replace(/,\s*$/,"").replace(/-\s*$/,"").replace(/ \s*$/,"")}};o.\u0275fac=function(n){return new(n||o)}
4,o.\u0275pipe=Ae({name:"cardAddress",type:o,pure:!0,standalone:!0});let i=o;return i})();var jt=(i,o)=>o.name;function Ut(i,o){if(i&1&&(a(0,"h2",5),d(1),c()),i&2){let e,t=s(2);l(),b((e=t.product())==null?null:e.name)}}function Ht(i,o){if(i&1&&(a(0,"div",6)(1,"div")(2,"span"),d(3,"Venda:"),c(),a(4,"h5"),d(5),w(6,"currency"),c()(),a(7,"div")(8,"span"),d(9,"Aluguel total:"),c(),a(10,"p",16),d(11),w(12,"currency"),c()()()),i&2){let e,t,n=s(2);l(5),M("",T(6,2,(e=n.product())==null||e.prices==null?null:e.prices.sale,"BRL","symbol","1.0-0")," "),l(6),M("",T(12,7,(t=n.product())==null||t.prices==null?null:t.prices.fullMonthlyPrice,"BRL","symbol","1.0-0"),"/m\xEAs")}}function Wt(i,o){if(i&1&&(a(0,"h4"),d(1),w(2,"currency"),c()),i&2){let e,t=s(2);l(),M("Total ",T(2,1,(e=t.product())==null||e.prices==null?null:e.prices.fullMonthlyPrice,"BRL","symbol","1.0-0"),"/m\xEAs")}}function qt(i,o){if(i&1&&(a(0,"h4"),d(1),w(2,"currency"),c()),i&2){let e=s(2);l(),b(T(2,1,e.productPrice,"BRL","symbol","1.0-0"))}}function Qt(i,o){if(i&1&&(a(0,"span"),d(1),w(2,"titlecase"),c()),i&2){let e=s().$implicit;l(),M("",J(2,1,e==null?null:e.name),": ")}}function Xt(i,o){if(i&1&&(a(0,"li")(1,"p"),g(2,Qt,3,3,"span"),d(3),c()()),i&2){let e=o.$implicit,t=s(3);l(2),p(t.isPrimaryMarket?2:-1),l(),Ne(" ",e==null?null:e.value," ",t.isPrimaryMarket?"":e==null?null:e.name," ")}}function Jt(i,o){if(i&1&&(a(0,"ul",12),E(1,Xt,4,3,"li",null,jt),c()),i&2){let e=s(2);l(),k(e.attributes)}}function Kt(i,o){if(i&1&&(a(0,"li"),d(1),w(2,"currency"),c()),i&2){let e,t=s(3);l(),M(" Aluguel: ",T(2,1,(e=t.product())==null||e.prices==null?null:e.prices.rent,"R$","symbol","1.0-0")," ")}}function Yt(i,o){if(i&1&&(a(0,"span"),d(1),w(2,"currency"),c()),i&2){let e,t=s(4);l(),M(" Condo.: ",T(2,1,(e=t.product())==null||e.prices==null?null:e.prices.condominium,"BRL","symbol","1.0-0"),"")}}function Zt(i,o){i&1&&(a(0,"span",17),d(1," + "),c())}function en(i,o){if(i&1&&(a(0,"span"),d(1),w(2,"currency"),c()),i&2){let e,t=s(4);l(),M(" IPTU: ",T(2,1,(e=t.product())==null||e.prices==null?null:e.prices.property,"BRL","symbol","1.0-0")," ")}}function tn(i,o){if(i&1&&(a(0,"li"),g(1,Yt,3,6,"span")(2,Zt,2,0,"span",17)(3,en,3,6,"span"),c()),i&2){let e,t,n,r=s(3);l(),p(!((e=r.product())==null||e.prices==null)&&e.prices.condominium?1:-1),l(),p(!((t=r.product())==null||t.prices==null)&&t.prices.condominium&&(!((t=r.product())==null||t.prices==null)&&t.prices.property)?2:-1),l(),p(!((n=r.product())==null||n.prices==null)&&n.prices.property?3:-1)}}function nn(i,o){if(i&1&&(a(0,"ul",13),g(1,Kt,3,6,"li")(2,tn,4,3,"li"),c()),i&2){let e,t,n=s(2);l(),p(!((e=n.product())==null||e.prices==null)&&e.prices.rent?1:-1),l(),p(!((t=n.product())==null||t.prices==null)&&t.prices.condominium||!((t=n.product())==null||t.prices==null)&&t.prices.property?2:-1)}}function on(i,o){if(i&1&&(a(0,"div",14),V(),a(1,"svg",9),f(2,"circle",10),c(),H(),a(3,"p"),d(4),w(5,"cardAddress"),c()()),i&2){let e=s(2);l(4),b(J(5,1,e.product().locations[0]))}}function rn(i,o){if(i&1){let e=y();a(0,"lps-link-card",0),f(1,"lps-carousel",1),a(2,"article",2)(3,"div",3)(4,"div",4),g(5,Ut,2,1,"h2",5)(6,Ht,13,12,"div",6)(7,Wt,3,6,"h4")(8,qt,3,6,"h4"),c(),a(9,"lps-bookmark",7),v("click",function(n){h(e);let r=s();return C(r.stopPropagation(n))}),c()(),a(10,"div",8),V(),a(11,"svg",9),f(12,"circle",10),c(),H(),a(13,"p",11),d(14),c(),a(15,"p"),d(16),c()(),g(17,Jt,3,0,"ul",12)(18,nn,3,2,"ul",13)(19,on,6,3,"div",14),a(20,"p",15),d(21),c()()()}if(i&2){let e,t,n,r,m=s();u("productCard",m.product())("target","_blank")("gridName",m.gridName()),l(),u("photos",m.product().photos)("position",m.position()||0),l(4),p((e=m.product())!=null&&e.name&&m.isPrimaryMarket?5:-1),l(),p(m.isRentMarket&&m.isSaleMarket?6:m.isRentMarket&&!m.isSaleMarket?7:m.productPrice?8:-1),l(3),u("productId",m.product().id),l(5),b(m.dealType),l(2),M("- ",m.product().divisionUnitType,""),l(),p(m.attributes.length?17:-1),l(),p(!m.isPrimaryMarket&&(!((t=m.product())==null||t.prices==null)&&t.prices.rent||!((t=m.product())==null||t.prices==null)&&t.prices.condominium||!((t=m.product())==null||t.prices==null)&&t.prices.property)?18:-1),l(),p((n=m.product())!=null&&n.locations&&m.product().locations.length>0?19:-1),l(2),b((r=m.product())==null?null:r.description)}}var kt=(()=>{let o=class o{constructor(){this.product=$.required(),this.position=$(),this.gridName=$(""),this.dealType="",this.isPrimaryMarket=!1,this.isRentMarket=!1,this.isSaleMarket=!1,this.attributes=[]}ngOnInit(){this.isPrimaryMarket=mt.isPrimaryMarket(this.product()?.type),this.productPrice
4=this.product()?.prices?.sale,this.initDealTypes(),!this.isPrimaryMarket&&!this.isSaleMarket&&this.isRentMarket&&this.product()?.prices?.rent&&(this.isRentMarket=!0,this.productPrice=this.product()?.prices?.rent),this.setAttributes()}initDealTypes(){let t=this.product()?.dealTypes.map(r=>r.toLocaleLowerCase())||[];this.isRentMarket=t?.includes(ie.Rent),this.isSaleMarket=t?.includes(ie.Sale);let n="Aluguel";this.isSaleMarket&&this.isRentMarket?n="Venda ou Aluguel":this.isSaleMarket&&(n="Venda"),this.dealType=n}stopPropagation(t){t.preventDefault(),t.stopPropagation()}setAttributes(){if(!this.product()?.attributes)return;if(this.attributes=this.product()?.attributes,this.isPrimaryMarket){this.attributes=this.attributes.filter(n=>D.removeAccentuation(n.name).toLocaleLowerCase().includes("area")||D.removeAccentuation(n.name).toLocaleLowerCase().includes("estagio"));return}let t=this.attributes.find(n=>D.removeAccentuation(n.name).toLocaleLowerCase().includes("area"));t&&(t.name="")}};o.\u0275fac=function(n){return new(n||o)},o.\u0275cmp=S({type:o,selectors:[["lps-condominium-product-card-new"]],inputs:{product:[1,"product"],position:[1,"position"],gridName:[1,"gridName"]},standalone:!0,features:[O],decls:1,vars:1,consts:[[3,"productCard","target","gridName"],[1,"card__img",3,"photos","position"],[1,"card-content"],[1,"card-content__header"],[1,"card-content__header-title"],[1,"name"],[1,"card-content__header-both-prices"],[3,"click","productId"],[1,"card-content__deal-type-container"],["xmlns","http://www.w3.org/2000/svg","width","4","height","4","viewBox","0 0 8 8","fill","none"],["cx","4","cy","4","r","4","fill","#EB194B"],[1,"deal-type"],[1,"card-content__attributes"],[1,"card-content__subprices"],[1,"card-content__location"],[1,"card-content__description"],[1,"rent-price"],[1,"subprice__include"]],template:function(n,r){n&1&&g(0,rn,22,14,"lps-link-card",0),n&2&&p(r.product()?0:-1)},dependencies:[ge,_e,Ce,me,Ue,xe],styles:[`@keyframes _ngcontent-%COMP%_skeleton-loading{0%{background-color:#c2cfd6}to{background-color:#f0f3f5}}.card-content[_ngcontent-%COMP%]{margin:15px 18px;display:flex;flex:1;gap:8px;flex-direction:column;position:relative;color:#484848;line-height:16px;font-size:12px}.card-content__header[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.card-content__header-title[_ngcontent-%COMP%]{align-items:center;font-size:14px;margin-bottom:8px;line-height:18px;width:calc(100% - 40px);-webkit-box-orient:vertical;line-clamp:1;overflow:hidden;display:-webkit-box}.card-content__header-title[_ngcontent-%COMP%] .name[_ngcontent-%COMP%]{font-weight:700}.card-content__header-both-prices[_ngcontent-%COMP%]{display:flex;align-items:center;flex-wrap:wrap}.card-content__header-both-prices[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{display:flex;align-items:center;gap:4px;flex-wrap:wrap}.card-content__header-both-prices[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:12px;color:#707070bf}.card-content__header-both-prices[_ngcontent-%COMP%] h5[_ngcontent-%COMP%]{font-size:14px;font-weight:700;line-height:24px;margin-right:6px}.card-content__header-both-prices[_ngcontent-%COMP%] .rent-price[_ngcontent-%COMP%]{font-size:12px}.card-content[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{font-size:14px;font-weight:700;line-height:19px}.card-content__deal-type-container[_ngcontent-%COMP%]{display:flex;align-items:center;gap:4px}.card-content__deal-type-container[_ngcontent-%COMP%] .deal-type[_ngcontent-%COMP%]{height:18px;color:#eb194b}.card-content__attributes[_ngcontent-%COMP%]{display:flex;flex-direction:row;flex-wrap:wrap;height:21px;overflow:hidden;font-size:12px;row-gap:5px}.card-content__attributes[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{display:inline-flex}.card-content__attributes[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:not(:first-child){border-left:1px solid #eb194b;margin-left:6px;padding-left:6px;height:-moz-fit-content;height:fit-content}.card-content__subprices[_ngcontent-%COMP%]{gap:8px;display:flex;flex-direction:column}.card-content__location[_ngcontent-%COMP%]{display:flex}.card-content__location[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{margin-top:7px;flex:none}.card-content__location[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin-left:4px}.card-content__description[_ngcontent-%COMP%]{display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;line-height:16px;overflow:hidden;text-overflow:ellipsis;color:#484848cc;font-size:12px;max-height:80px} 5/*# sourceMappingURL=/v2/condominium-product-card-new.component-FQ37OIOW.css.map */`]});let i=o;return i})();function an(i,o){if(i&1&&(a(0,"div")(1,"span"),d(2,"Venda:"),c(),a(3,"h5"),d(4),w(5,"currency"),c()(),a(6,"div")(7,"span"),d(8,"Aluguel total:"),c(),a(9,"p"),d(10),w(11,"currency"),c()()),i&2){let e=s(2);l(4),M("",T(5,2,e.product==null||e.product.prices==null?null:e.product.prices.sale,"BRL","symbol","1.0-0")," "),l(6),M("",T(11,7,e.product==null||e.product.prices==null?null:e.product.prices.fullMonthlyPrice,"BRL","symbol","1.0-0"),"/m\xEAs")}}function ln(i,o){if(i&1&&(a(0,"h5"),d(1),w(2,"currency"),c()),i&2){let e=s(3);l(),b(T(2,1,e.product==null||e.product.prices==null?null:e.product.prices.sale,"BRL","symbol","1.0-0"))}}function cn(i,o){if(i&1&&(a(0,"span",15),d(1),c()),i&2){let e=s(3);l(),b(e.product.name)}}
5function sn(i,o){if(i&1&&g(0,ln,3,6,"h5")(1,cn,2,1,"span",15),i&2){let e=s(2);p(!(e.product==null||e.product.prices==null)&&e.product.prices.sale&&e.product.prices.sale>0?0:1)}}function dn(i,o){if(i&1&&(a(0,"h5"),d(1),w(2,"currency"),c()),i&2){let e=s(2);l(),M("",T(2,1,e.product==null||e.product.prices==null?null:e.product.prices.fullMonthlyPrice,"BRL","symbol","1.0-0"),"/m\xEAs")}}function mn(i,o){if(i&1&&(a(0,"p"),d(1),w(2,"currency"),c()),i&2){let e=s(3);l(),M("Aluguel: ",T(2,1,e.product==null||e.product.prices==null?null:e.product.prices.rent,"BRL","symbol","1.0-0"),"")}}function pn(i,o){if(i&1&&(a(0,"p"),d(1),w(2,"currency"),c()),i&2){let e=s(3);l(),M("Condom\xEDnio: ",T(2,1,e.product==null||e.product.prices==null?null:e.product.prices.condominium,"BRL","symbol","1.0-0"),"")}}function un(i,o){if(i&1&&(a(0,"p"),d(1),w(2,"currency"),c()),i&2){let e=s(3);l(),M("IPTU: ",T(2,1,e.product==null||e.product.prices==null?null:e.product.prices.property,"BRL","symbol","1.0-0"),"")}}function _n(i,o){if(i&1&&(a(0,"div",11),g(1,mn,3,6,"p")(2,pn,3,6,"p")(3,un,3,6,"p"),c()),i&2){let e=s(2);l(),p(!(e.product==null||e.product.prices==null)&&e.product.prices.rent&&e.product.prices.rent>0?1:-1),l(),p(!(e.product==null||e.product.prices==null)&&e.product.prices.condominium&&e.product.prices.condominium>0?2:-1),l(),p(!(e.product==null||e.product.prices==null)&&e.product.prices.property&&e.product.prices.property>0?3:-1)}}function gn(i,o){if(i&1&&(a(0,"p",12),d(1),w(2,"cardAddress"),c()),i&2){let e=s(2);l(),b(J(2,1,e.product.locations[0]))}}function fn(i,o){if(i&1){let e=y();a(0,"lps-link-card",0),f(1,"lps-carousel",1),a(2,"article",2)(3,"div",3)(4,"div",4),V(),a(5,"svg",5),f(6,"circle",6),c(),H(),a(7,"p",7),d(8),c(),a(9,"p",8),d(10),c()(),a(11,"lps-bookmark",9),v("click",function(n){h(e);let r=s();return C(r.stopPropagation(n))}),c()(),a(12,"div",10),g(13,an,12,12)(14,sn,2,1)(15,dn,3,6,"h5"),c(),g(16,_n,4,3,"div",11)(17,gn,3,3,"p",12),a(18,"p",13),d(19),c(),f(20,"lps-attributes",14),c()()}if(i&2){let e=s();u("productCard",e.product)("target","_blank")("gridName",e.gridName),l(),u("photos",e.product.photos)("position",e.position),l(7),b(e.dealType),l(2),M("- ",e.product.divisionUnitType,""),l(),u("productId",e.product.id),l(2),p(e.forSale&&e.forRent?13:e.forSale?14:e.forRent?15:-1),l(3),p(e.hasPrice?16:-1),l(),p(e.product!=null&&e.product.locations&&e.product.locations.length>0?17:-1),l(2),b(e.product.description),l(),u("attributes",e.product.attributes)}}var It=(()=>{let o=class o{constructor(){this.gridName="",this.dealType="",this.forSale=!1,this.forRent=!1,this.hasPrice=!0}ngOnInit(){this.initDealTypes(),this.getHasPrice()}initDealTypes(){let t=this.product?.dealTypes.map(r=>r.toLocaleLowerCase())||[];t.length&&(this.forSale=t?.includes(ie.Sale),this.forRent=t?.includes(ie.Rent));let n="Aluguel";this.forSale&&this.forRent?n="Venda ou Aluguel":this.forSale&&(n="Venda"),this.dealType=n}getHasPrice(){let t=this.product?.prices?.rent&&this.product.prices.rent>0,n=this.product?.prices?.condominium&&this.product.prices.condominium>0,r=this.product?.prices?.property&&this.product.prices.property>0;this.hasPrice=!!(t||n||r)}stopPropagation(t){t.preventDefault(),t.stopPropagation()}};o.\u0275fac=function(n){return new(n||o)},o.\u0275cmp=S({type:o,selectors:[["lps-condominium-product-card"]],inputs:{product:"product",position:"position",gridName:"gridName"},standalone:!0,features:[O],decls:1,vars:1,consts:[[3,"productCard","target","gridName"],[1,"card__img",3,"photos","position"],[1,"card-content"],[1,"card-content__header"],[1,"card-content__header-title"],["xmlns","http://www.w3.org/2000/svg","width","6","height","6","viewBox","0 0 8 8","fill","none"],["cx","4","cy","4","r","4","fill","#EB194B"],[1,"card-content__deal-type"],[1,"card-content__unit-type"],[3,"click","productId"],[1,"card-content__price"],[1,"card-content__taxes"],[1,"card-content__address"],[1,"card-content__description"],[1,"card-content__attributes",3,"attributes"],[1,"card-content__price__name"]],template:function(n,r){n&1&&g(0,fn,21,13,"lps-link-card",0),n&2&&p(r.product?0:-1)},dependencies:[ge,_e,Ce,me,xe,Mt],styles:[`@keyframes _ngcontent-%COMP%_skeleton-loading{0%{background-color:#c2
5cfd6}to{background-color:#f0f3f5}}.card-content[_ngcontent-%COMP%]{margin:15px 18px;display:flex;flex:1;gap:8px;flex-direction:column;position:relative}.card-content__header[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.card-content__header-title[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:4px;align-items:center;font-size:12px;line-height:16px}.card-content__deal-type[_ngcontent-%COMP%]{height:18px;color:#eb194b}.card-content__price[_ngcontent-%COMP%]{display:flex;align-items:center;flex-wrap:wrap}.card-content__price[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{display:flex;align-items:center;gap:4px;flex-wrap:wrap}.card-content__price[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:12px;color:#707070bf}.card-content__price[_ngcontent-%COMP%] h5[_ngcontent-%COMP%]{font-size:16px;font-weight:700;line-height:24px;margin-right:6px}.card-content__price__name[_ngcontent-%COMP%]{font-size:14px!important;color:#2a2a2a!important;font-weight:500!important}.card-content__taxes[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;font-size:12px;line-height:16px;color:#707070bf;gap:8px}.card-content__address[_ngcontent-%COMP%]{font-size:12px}.card-content__description[_ngcontent-%COMP%]{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;line-height:16px;overflow:hidden;text-overflow:ellipsis;color:#707070bf;font-size:12px;max-height:80px}.card-content__attributes[_ngcontent-%COMP%]{margin-top:auto} 6/*# sourceMappingURL=/v2/condominium-product-card.component-3PHC66NW.css.map */`]});let i=o;return i})();var ve=(()=>{let o=class o{static createGridStructure(t){let{photos:n,videos:r}=t,m=r.length>0,_=Math.min(n.length,m?this.MAX_PHOTOS_WITH_VIDEO:this.MAX_ITEMS_GRID),x=this.addPhotos(n,_);m&&(x=this.addVideo(x,r[0].url));let q=x.length===this.MAX_ITEMS_GRID&&n.length>_,Q=x.length===this.MAX_ITEMS_GRID-1;if(q){let L=this.MAX_ITEMS_GRID-1,G=n.length-_+1;x[L]=this.createMoreItem(n[L],G)}else Q&&x.push(this.createMoreItemWithMedia(n[0]));return x}static addPhotos(t,n){return t.slice(0,n).map(r=>U(j({},r),{type:"photo"}))}static addVideo(t,n){let r={type:"video",url:n};return t.length<=3?t.push(r):t.length===4&&t.splice(3,0,r),t}static createMoreItem(t,n){return U(j({},t),{type:"more",name:"Ver mais fotos",quantity:n})}static createMoreItemWithMedia(t){return U(j({},t),{type:"more",name:"Ver mais m\xEDdias"})}};o.MAX_PHOTOS_WITH_VIDEO=4,o.MAX_ITEMS_GRID=5;let i=o;return i})();var Lt=()=>({blur:!1});function hn(i,o){if(i&1){let e=y();a(0,"div",1)(1,"img",4),w(2,"imageUrl"),v("error",function(n){h(e);let r=s(3);return C(r.onImgError(n,"contain"))})("click",function(){h(e);let n=s(),r=n.$implicit,m=n.$index,_=s(2);return C(_.handleClick(r,m))})("keydown",function(n){h(e);let r=s(),m=r.$implicit,_=r.$index,x=s(2);return C(x.onKeyDown(n,m,_))}),c()()}if(i&2){let e=s(),t=e.$implicit,n=e.$index,r=s(2);l(),u("ngSrc",J(2,5,t.url))("alt",t.alternativeText)("placeholder",r.defaultImage)("placeholderConfig",A(7,Lt))("priority",n<3)}}function Cn(i,o){if(i&1){let e=y();a(0,"div",2),f(1,"iframe",5),a(2,"div",6),v("click",function(){h(e);let n=s().$implicit,r=s(2);return C(r.handleClick(n))})("keydown",function(n){h(e);let r=s(),m=r.$implicit,_=r.$index,x=s(2);return C(x.onKeyDown(n,m,_))}),c()()}if(i&2){let e=s().$index,t=s(2);l(),u("src",t.safeUrlVideo,Be),l(),u("tabindex",e)}}function xn(i,o){if(i&1&&(a(0,"span"),d(1),c()),i&2){let e=s(2).$implicit;l(),M("+",e.quantity,"")}}function vn(i,o){if(i&1){let e=y();a(0,"div",7),v("click",function(){h(e);let n=s().$implicit,r=s(2);return C(r.handleClick(n))})("keydown",function(n){h(e);let r=s(),m=r.$implicit,_=r.$index,x=s(2);return C(x.onKeyDown(n,m,_))}),a(1,"div",8),g(2,xn,2,1,"span"),a(3,"lps-ui-button",9),d(4),c()(),a(5,"img",10),w(6,"imageUrl"),v("error",function(n){h(e);let r=s(3);return C(r.onImgError(n,"contain"))}),c()()}if(i&2){let e=s(),t=e.$implicit,n=e.$index,r=s(2);u("tabindex",n),l(2),p(t.quantity?2:-1),l(2),b(t.name),l(),u("ngSrc",je(6,8,t.url,"sml"))("alt",t.alternativeText)("placeholder",r.defaultImage)("placeholderConfig",A(11,Lt))("priority",n<3)}}function bn(i,o){if(i&1&&g(0,hn,3,8,"div",1)(1,Cn,3,2,"div",2)(2,vn,7,12,"div",3),i&2){let e=o.$implicit;p(e.type==="photo"?0:e.type==="video"?1:e.type==="more"?2:-1)}}function yn(i,o){if(i&1&&(a(0,"div",0),E(1,bn,3,1,null,null,F),c()),i&2){let e=s();l(),k(e.items)}}var Vt=(()=>{let o=class o{constructor(t,n){this.sanitizer=t,this.dialog=n,this.items=[],this.defaultImage=Tt,this.safeUrlVideo="",this.onImgError=yt}ngOnInit(){this.items=ve.createGridStructure(this.galleryItems),this.items.find(t=>{t.type==="video"&&(this.safeUrlVideo=this.sanitizeUrl(St(t.url)))})}sanitizeUrl(t){return this.sanitizer.bypassSecurityTrustResourceUrl(t)}
6handleClick(t,n=0){let r=t.type,m=n;r==="more"&&(r="photo",m=this.galleryItems.photos.findIndex(_=>_.url===t.url)),this.dialog.open(Ot,{width:"100%",height:"100%",maxHeight:"100%",maxWidth:"100%",panelClass:"gallery-dialog",data:{type:r,items:this.galleryItems,indexSelected:m}})}onKeyDown(t,n,r){(t.key==="Enter"||t.key===" ")&&(t.preventDefault(),this.handleClick(n,r))}};o.\u0275fac=function(n){return new(n||o)(P(qe),P(ht))},o.\u0275cmp=S({type:o,selectors:[["lps-gallery-grid"]],inputs:{galleryItems:"galleryItems"},standalone:!0,features:[O],decls:1,vars:1,consts:[[1,"items-grid"],[1,"item"],[1,"item","item-iframe"],[1,"item","more",3,"tabindex"],["draggable","false","fill","",3,"error","click","keydown","ngSrc","alt","placeholder","placeholderConfig","priority"],["title","V\xEDdeos condom\xEDnio","allow","accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture","sandbox","allow-scripts allow-same-origin","allowfullscreen","",3,"src"],[1,"item-iframe__backdrop",3,"click","keydown","tabindex"],[1,"item","more",3,"click","keydown","tabindex"],[1,"more__details"],["size","md","type","flat","color","primary"],["fill","",3,"error","ngSrc","alt","placeholder","placeholderConfig","priority"]],template:function(n,r){n&1&&g(0,yn,3,0,"div",0),n&2&&p(r.items.length?0:-1)},dependencies:[We,Ct,B,wt],styles:[`@keyframes _ngcontent-%COMP%_skeleton-loading{0%{background-color:#c2cfd6}to{background-color:#f0f3f5}}.items-grid[_ngcontent-%COMP%]{display:grid;gap:10px;width:100%;height:416px}.items-grid[_ngcontent-%COMP%] .item[_ngcontent-%COMP%]{position:relative;border-radius:8px;cursor:pointer;overflow:auto;background-color:#f2f2f2}.items-grid[_ngcontent-%COMP%] .item-iframe[_ngcontent-%COMP%]{width:100%;height:100%;overflow:hidden}.items-grid[_ngcontent-%COMP%] .item-iframe__backdrop[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%;background:transparent}.items-grid[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;height:100%;object-fit:cover}.items-grid[_ngcontent-%COMP%] iframe[_ngcontent-%COMP%]{width:inherit;height:100%;border-radius:8px}.items-grid[_ngcontent-%COMP%] .more__details[_ngcontent-%COMP%]{width:100%;height:100%;position:absolute;z-index:1;display:flex;flex-direction:column;align-items:center;justify-content:center;font-size:56px;font-weight:700;color:#fff;background:#3c3c3c99}.items-grid[_ngcontent-%COMP%] .item[_ngcontent-%COMP%]:nth-child(1){grid-area:item1}.items-grid[_ngcontent-%COMP%] .item[_ngcontent-%COMP%]:nth-child(2){grid-area:item2}.items-grid[_ngcontent-%COMP%] .item[_ngcontent-%COMP%]:nth-child(3){grid-area:item3}.items-grid[_ngcontent-%COMP%] .item[_ngcontent-%COMP%]:nth-child(4){grid-area:item4}.items-grid[_ngcontent-%COMP%] .item[_ngcontent-%COMP%]:nth-child(5){grid-area:item5}@media screen and (max-width: 1280px){.items-grid[_ngcontent-%COMP%]{height:420px}}@media screen and (max-width: 480px){.items-grid[_ngcontent-%COMP%]{height:600px}.items-grid[_ngcontent-%COMP%] .more__details[_ngcontent-%COMP%]{font-size:32px;gap:16px}}.items-grid[_ngcontent-%COMP%]:has(.item:nth-child(1)){grid-template-areas:"item1";grid-template-columns:1fr;grid-template-rows:1fr}.items-grid[_ngcontent-%COMP%]:has(.item:nth-child(2)){grid-template-areas:"item1 item2";grid-template-columns:1fr 1fr;grid-template-rows:1fr}.items-grid[_ngcontent-%COMP%]:has(.item:nth-child(3)){grid-template-areas:"item1 item2" "item1 item3";grid-template-columns:2fr 1fr;grid-template-rows:1fr 1fr}.items-grid[_ngcontent-%COMP%]:has(.item:nth-child(4)){grid-template-areas:"item1 item2 item3" "item1 item4 item5";grid-template-columns:2fr 1fr 1fr;grid-template-rows:1fr 1fr}.items-grid[_ngcontent-%COMP%]:has(.item:nth-child(5)){grid-template-areas:"item1 item2 item3" "item1 item4 item5";grid-template-columns:2fr 1fr 1fr;grid-template-rows:1fr 1fr}@media screen and (max-width: 480px){.items-grid[_ngcontent-%COMP%]:has(.item:nth-child(1)){grid-template-areas:"item1";grid-template-columns:1fr;grid-template-rows:1fr}.items-grid[_ngcontent-%COMP%]:has(.item:nth-child(2)){grid-template-areas:"item1" "item2";grid-template-columns:1fr;grid-template-rows:1fr 1fr}.items-grid[_ngcontent-%COMP%]:has(.item:nth-child(3)){grid-template-areas:"item1 item1" "item2 item3";grid-template-columns:1fr 1fr;grid-template-rows:2fr 1fr}.items-grid[_ngcontent-%COMP%]:has(.item:nth-child(4)){grid-template-areas:"item1 item1" "item2 item3" "item4 item5";grid-template-columns:1fr 1fr;grid-template-rows:2fr 1fr 1fr}.items-grid[_ngcontent-%COMP%]:has(.item:nth-child(5)){grid-template-areas:"item1 item1" "item2 item3" "item4 item5";grid-template-columns:1fr 1fr;grid-template-rows:2fr 1fr 1fr}} 7/*# sourceMappingURL=/v2/gallery-grid.component-SHXJZRMJ.css.map */`]});let i=o;return i})();var Pn=(i,o)=>({product:i,position:o});function Sn(i,o){i&1&&oe(0)}function On(i,o){if(i&1&&(a(0,"li"),g(1,Sn,1,0,"ng-container",2),c()),i&2){let e=o.$implicit,t=o.$index,n=s();l(),u("ngTemplateOutlet",n.productTemplate)("ngTemplateOutletContext",Re(2,Pn,e,t))}}function Tn(i,o){if(i&1){let e=y();a(0,"lps-ui-button",3),v("click",function(){h(e);let n=s();return C(n.showMore())}),d(1,"Carregar mais"),c()}}var At=(()=>{let o=class o{constructor(t){this.deviceService=t,this.cards=[],this.handleGridLoaded=new ye,this.buttonMoreHandle=new ye,this.sizeCards=3,this.isMobile=!1,this.setIsMobile()}ngOnInit(){this.handleGridLoaded.emit(this.cards.slice(0,this.sizeCards))}showMore(){this.sizeCards+=3,this.buttonMoreHandle.emit(),this.handleGridLoaded.emit(this.cards.slice(0,this.sizeCards))}setIsMobile(){this.isMobile=this.deviceService.isMobile()}};o.\u0275fac=function(n){return new(n||o)(P(fe))}
7,o.\u0275cmp=S({type:o,selectors:[["lps-condominium-grid-cards"]],hostBindings:function(n,r){n&1&&v("resize",function(){return r.setIsMobile()},!1,ce)},inputs:{cards:"cards",productTemplate:"productTemplate"},outputs:{handleGridLoaded:"handleGridLoaded",buttonMoreHandle:"buttonMoreHandle"},standalone:!0,features:[O],decls:5,vars:3,consts:[[1,"grid-cards"],["size","md","type","stroked","color","primary",1,"grid-cards__more"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["size","md","type","stroked","color","primary",1,"grid-cards__more",3,"click"]],template:function(n,r){n&1&&(a(0,"div")(1,"ul",0),E(2,On,2,5,"li",null,F),c()(),g(4,Tn,2,0,"lps-ui-button",1)),n&2&&(se("mobile-scroll",r.isMobile),l(2),k(r.isMobile?r.cards:r.cards.slice(0,r.sizeCards)),l(2),p(!r.isMobile&&r.sizeCards<r.cards.length?4:-1))},dependencies:[pe,de,B],styles:[`@keyframes _ngcontent-%COMP%_skeleton-loading{0%{background-color:#c2cfd6}to{background-color:#f0f3f5}}.mobile-scroll[_ngcontent-%COMP%]{display:block;overflow:auto;margin:0 -24px;padding:0 24px}.mobile-scroll[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}.grid-cards[_ngcontent-%COMP%]{display:grid;margin:0 auto;min-width:min-content;width:100%;grid-gap:16px;grid-template-columns:repeat(3,1fr)}.grid-cards[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{min-width:230px}.grid-cards__more[_ngcontent-%COMP%]{margin-top:32px;display:flex;justify-content:center}@media screen and (max-width: 768px){.grid-cards[_ngcontent-%COMP%]{grid-template-columns:none;grid-auto-flow:column}.grid-cards[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{min-width:330px}} 8/*# sourceMappingURL=/v2/condominium-grid-cards.component-YTOX5VQ7.css.map */`]});let i=o;return i})();function En(i,o){i&1&&(a(0,"div",5),d(1,"N\xE3o informado."),c())}function kn(i,o){if(i&1&&(a(0,"li",5),d(1),c(),g(2,En,2,0,"div",5)),i&2){let e=o.$implicit,t=s();l(),M(" ",e," "),l(),p(t.items!=null&&t.items.length?-1:2)}}function In(i,o){if(i&1){let e=y();a(0,"div",4)(1,"lps-ui-button",6),v("click",function(){h(e);let n=s();return C(n.toggle())}),d(2),c()()}if(i&2){let e=s();l(2),M(" ",e.showAll?e.showMoreText.less:e.showMoreText.more," ")}}var Gt=(()=>{let o=class o{constructor(){this.items=[],this.title="",this.itemsLimit=12,this.isMobile=!1,this.showMoreText={more:"Ver mais",less:"Ver menos"},this.visibleItems=[],this.showAll=!1}ngOnInit(){this.handleVisibility()}toggle(){this.showAll=!this.showAll,this.handleVisibility()}handleVisibility(){this.visibleItems=this.items?this.items.slice(0,this.showAll?this.items.length:this.itemsLimit):[]}};o.\u0275fac=function(n){return new(n||o)},o.\u0275cmp=S({type:o,selectors:[["lps-simple-grid"]],inputs:{items:"items",title:"title",itemsLimit:"itemsLimit",isMobile:"isMobile",showMoreText:"showMoreText"},standalone:!0,features:[O],decls:8,vars:4,consts:[[1,"simple-grid"],[1,"simple-grid__title"],[3,"side","size"],[1,"simple-grid__content"],[1,"simple-grid__controller"],[1,"simple-grid__item"],["size","md","type","raw","color","primary",3,"click"]],template:function(n,r){n&1&&(a(0,"div",0)(1,"h2",1),d(2),c(),f(3,"lps-divider",2),a(4,"ul",3),E(5,kn,3,2,null,null,F),c(),g(7,In,3,1,"div",4),c()),n&2&&(l(2),b(r.title),l(),u("side","bottom")("size",r.isMobile?"md":"lg"),l(2),k(r.visibleItems),l(2),p(r.items&&r.items.length>r.itemsLimit?7:-1))},dependencies:[he,B],styles:[`@keyframes _ngcontent-%COMP%_skeleton-loading{0%{background-color:#c2cfd6}to{background-color:#f0f3f5}}.simple-grid__title[_ngcontent-%COMP%]{font-size:24px;font-weight:700;margin-bottom:8px}.simple-grid__content[_ngcontent-%COMP%]{margin-bottom:12px;display:grid;gap:10px;grid-template-columns:repeat(auto-fit,minmax(24%,1fr))}.simple-grid__item[_ngcontent-%COMP%]{font-size:16px;padding:10px;border:1px solid #bdbdbd;border-radius:8px;text-align:center;align-content:center;min-height:59px}@media (min-width: 768px){.simple-grid__item[_ngcontent-%COMP%]:first-child:last-child{width:33%}}@media (max-width: 768px){.simple-grid__content[_ngcontent-%COMP%]{grid-template-columns:repeat(auto-fit,minmax(40%,1fr))}.simple-grid__title[_ngcontent-%COMP%]{font-size:20px}} 9/*# sourceMappingURL=/v2/simple-grid.component-6XEGTHI6.css.map */`]});let i=o;return i})();var Ln=["sliderContainer"],Vn=["cardItem"];function An(i,o){if(i&1){let e=y();a(0,"button",7),v("click",function(){h(e);let n=s();return C(n.onPreviousClick())}),V(),a(1,"svg",8),f(2,"path",9),c()()}}function Gn(i,o){if(i&1){let e=y();a(0,"a",10,1),v("click",function(){h(e);let n=s();return C(n.sendAnalyticsEvent())}),a(2,"p",11),d(3),c(),a(4,"p",12),d(5),c()()}if(i&2){let e=o.$implicit,t=s();Me("href",e.url,Fe),Me("target",t.target()),l(3),b(e.name),l(2),b(e.address)}}function $n(i,o){if(i&1){let e=y();a(0,"button",13),v("click",function(){h(e);let n=s();return C(n.onNextClick())}),V(),a(1,"svg",8),f(2,"path",9),c()()}}var Ft=(()=>{let o=class o{constructor(t){this.googleTagManagerService=t,this.items=$([]),this.target=$("_blank"),this.itemsPerPage=4,this.currentIndex=0}
9sendAnalyticsEvent(){this.googleTagManagerService.pushTag({event:z.Event,codigodedisparo:"1.002.018.001.308"})}onPreviousClick(){this.currentIndex>0&&(this.currentIndex=Math.max(0,this.currentIndex-this.itemsPerPage),this.scrollToCard(this.currentIndex))}onNextClick(){let t=this.items().length-this.itemsPerPage;this.currentIndex<t&&(this.currentIndex=Math.min(t,this.currentIndex+this.itemsPerPage),this.scrollToCard(this.currentIndex))}scrollToCard(t){let n=this.cardItems.toArray();n[t]&&n[t].nativeElement.scrollIntoView({behavior:"smooth",block:"nearest",inline:"start"})}stopPropagation(t){t.preventDefault(),t.stopPropagation()}};o.\u0275fac=function(n){return new(n||o)(P(ne))},o.\u0275cmp=S({type:o,selectors:[["lps-summary-cards"]],viewQuery:function(n,r){if(n&1&&(we(Ln,5),we(Vn,5)),n&2){let m;Pe(m=Se())&&(r.sliderContainer=m.first),Pe(m=Se())&&(r.cardItems=m)}},inputs:{items:[1,"items"],target:[1,"target"]},standalone:!0,features:[O],decls:7,vars:2,consts:[["sliderContainer",""],["cardItem",""],[1,"summary-cards"],[1,"control","control--prev"],[1,"summary-cards__container"],[3,"href","target"],[1,"control","control--next"],[1,"control","control--prev",3,"click"],["viewBox","0 0 8 12","width","8","height","12","fill","currentColor","xmlns","http://www.w3.org/2000/svg"],["d","M0.59 10.59L2 12L8 6L2 -5.24537e-07L0.590001 1.41L5.17 6L0.59 10.59Z"],[3,"click","href","target"],[1,"summary-cards__container__name"],[1,"summary-cards__container__address"],[1,"control","control--next",3,"click"]],template:function(n,r){n&1&&(a(0,"div",2),g(1,An,3,0,"button",3),a(2,"div",4,0),E(4,Gn,6,4,"a",5,F),c(),g(6,$n,3,0,"button",6),c()),n&2&&(l(),p(r.currentIndex>0?1:-1),l(3),k(r.items()),l(2),p(r.currentIndex<r.items().length-r.itemsPerPage?6:-1))},styles:[`@keyframes _ngcontent-%COMP%_skeleton-loading{0%{background-color:#c2cfd6}to{background-color:#f0f3f5}}.summary-cards[_ngcontent-%COMP%]{width:100%;display:flex;align-items:center;position:relative;margin:-6px 0}.summary-cards[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{position:absolute;z-index:1}.summary-cards__container[_ngcontent-%COMP%]{display:flex;overflow:hidden;gap:16px;width:100%;transition:transform .3s ease;padding:6px 0}.summary-cards[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{flex:0 0 calc(25% - 12px);display:flex;gap:8px;padding:16px;background:#fafafa;border:1px solid #dbdbdb;border-radius:8px;flex-direction:column;transition:all .2s ease}.summary-cards[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{transform:translateY(-4px);box-shadow:0 4px 8px #00000026}.summary-cards[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{color:#252525;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;line-height:160%}.summary-cards__container__name[_ngcontent-%COMP%]{font-weight:700;font-size:16px}.summary-cards__container__address[_ngcontent-%COMP%]{font-size:12px;font-weight:400}@media (max-width: 768px){.summary-cards[_ngcontent-%COMP%]{display:block;overflow:auto;margin:0 -24px;padding:0 24px;width:auto}.summary-cards[_ngcontent-%COMP%] [_ngcontent-%COMP%]::-webkit-scrollbar{display:none}.summary-cards[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{display:none}.summary-cards__container[_ngcontent-%COMP%]{min-width:min-content;overflow:visible}}.summary-cards[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}.control[_ngcontent-%COMP%]{background-color:#fff;border-radius:50%;border:none;box-shadow:0 2px 3px #0000004d;color:#eb194b;cursor:pointer;height:24px;outline:none;padding:0;display:flex;align-items:center;justify-content:center;width:24px}.control[_ngcontent-%COMP%]:hover{background:#f9f9f9;border:2px solid #ffffff;box-sizing:border-box}.control--prev[_ngcontent-%COMP%]{left:-12px;transform:rotateY(180deg)}.control--next[_ngcontent-%COMP%]{right:-10px} 10/*# sourceMappingURL=/v2/summary-cards.component-SVQ2SC2V.css.map */`]});let i=o;return i})();var Bt=(()=>{let o=class o{constructor(t,n,r){this.httpClient=t,this.googleTagManagerService=n,this.platformId=r}sendLead(t){return this.httpClient.post(`${ee.bffPortalLeadV2}leads/condominium`,t)}sendLeadEvent(t){this.googleTagManagerService.pushTag({event:z.Event,codigodedisparo:t})}sendLeadEventInterest(t){this.googleTagManagerService.pushTag({event:z.Event,codigodedisparo:"51.002.018.001.307","opcao-selecionada":t})}sendLeadEventWithEcommerce(t,n,r){let m={purchase:{actionField:{id:r,revenue:"1"},products:[this.condominiumForEvent(t)]}};this.googleTagManagerService.pushTag({event:z.Purchase,dimension6:"Condom\xEDnio",codigodedisparo:"9.002.018.001.045","codigo-imovel":t.id,email:n.email,nome:n.name,celular:n.phone,"versao-da-pagina":bt.FixedDesktop,ecommerce:m})}condominiumForEvent(t){let n=t.address;return{dimension7:this.formattedAddressInBase64(n),id:t.id,name:t.name,price:"1",category:"Pronto",brand:"Consierge",variant:`${n.state}/${n.city}/${n.neighborhood}`,quantity:"1"}}formattedAddressInBase64(t){return He(this.platformId)?Buffer.from(`BR/${t.state}/${t.city}/${t.street}`,"binary").toString("base64"):btoa(`BR/${t.state}/${t.city}/${t.street}`)}};o.\u0275fac=function(n){return new(n||o)(N(ue),N(ne),N($e))}
10,o.\u0275prov=Y({token:o,factory:o.\u0275fac,providedIn:"root"});let i=o;return i})();function Dn(i,o){if(i&1){let e=y();a(0,"form",3)(1,"lps-input",6),v("handleInput",function(){h(e);let n=s();return C(n.handleInputName())})("handleBlur",function(){h(e);let n=s();return C(n.handleBlurName())}),c(),a(2,"lps-input",7),v("handleBlur",function(){h(e);let n=s();return C(n.handleBlurEmail())}),c(),a(3,"lps-input",8),v("handleInput",function(){h(e);let n=s();return C(n.handleBlurPhone())}),c(),a(4,"lps-select",9),v("handleOption",function(n){h(e);let r=s();return C(r.handleInterest(n))}),c(),a(5,"lps-ui-button",10),v("click",function(){h(e);let n=s();return C(n.submit())}),d(6," Enviar "),c()()}if(i&2){let e=s();u("formGroup",e.formLead()),l(),u("control",e.formLead().controls.name),l(),u("control",e.formLead().controls.email)("max",50),l(),u("control",e.formLead().controls.phone),l(),u("control",e.formLead().controls.interest)("options",e.interests),l(),u("size",e.isModal()?"lg":"md")("fullWidth",!0)}}function Nn(i,o){i&1&&(a(0,"div",4)(1,"div",11),V(),a(2,"svg",12),f(3,"path",13),c()(),H(),a(4,"p",14),d(5,"Solicita\xE7\xE3o de contato enviada!"),c()())}function Rn(i,o){i&1&&(a(0,"div",5)(1,"div",11),V(),a(2,"svg",15),f(3,"path",16),c()(),H(),a(4,"p",14),d(5,"Solicita\xE7\xE3o de contato falhou!"),c()())}var Oe=(()=>{let o=class o{constructor(t,n){this.browserStorageService=t,this.condominiumLeadService=n,this.platformService=X(te),this.isModal=$(!1),this.condominium=$.required(),this.close=Ge(),this.formLead=W(new et({name:new ae("",{nonNullable:!0,validators:[R.required,R.pattern(le.ONLY_LETTERS),R.maxLength(100)]}),email:new ae("",{nonNullable:!0,validators:[R.required,R.pattern(le.EMAIL)]}),phone:new ae("",{nonNullable:!0,validators:[R.required,R.pattern(le.PHONE)]}),interest:new ae(void 0,{nonNullable:!0,validators:[R.required]})})),this.submitInProgress=W(!1),this.formSubmited=W(!1),this.submitError=W(!1),this.interests=[{id:"Comprar",description:"Comprar"},{id:"Alugar",description:"Alugar"},{id:"Vender",description:"Vender"},{id:"Outros",description:"Outros"}],this.oldName="",this.hasAlreadySendFormGAEvent={name:!1,email:!1,phone:!1,interest:!1}}ngOnInit(){this.getLeadStorage()}getLeadStorage(){let t=this.browserStorageService.getItem("condominium_lead");if(t)try{let n=JSON.parse(t||"{}");this.formLead().patchValue(U(j({},n),{interest:this.interests?.find(r=>r.id===n.interest)}))}catch{}}setLeadStorage(){if(this.formLead().valid){let t=this.formLead().get("interest")?.value?.id;this.browserStorageService.setItem("condominium_lead",JSON.stringify(U(j({},this.formLead().value),{interest:t})))}}submit(){if(this.formLead().invalid||this.submitInProgress()){this.formLead().markAllAsTouched();return}this.submitInProgress.set(!0);let t=this.formLead().getRawValue(),n="",r="";this.platformService.isCSR()&&(n=window.location.origin,r=window.location.pathname);let m=U(j({},t),{interest:t?.interest.id,url:n+r});this.condominiumLeadService.sendLead(m).subscribe({next:_=>{this.formSubmited.set(!0),this.condominiumLeadService.sendLeadEventWithEcommerce(this.condominium(),m,_?.taskId)},error:_=>{this.formSubmited.set(!0),this.submitError.set(!0),this.sendToSentry(_)}}),this.setLeadStorage()}handleInputName(){let t=this.formLead().get("name");if(t){let n=t.value?.replace(le.ONLY_LETTERS_FILTER,"")||"";t.value!==n&&t.setValue(n,{emitEvent:!1})}}handleBlurName(){let t=this.formLead().get("name")?.value;t?.trim().length!==0&&t!=this.oldName&&!this.hasAlreadySendFormGAEvent.name&&(this.condominiumLeadService.sendLeadEvent("51.002.018.001.060"),this.hasAlreadySendFormGAEvent.name=!0,this.oldName=t||"")}handleBlurEmail(){this.formLead().get("email")?.value?.trim().length!==0&&!this.hasAlreadySendFormGAEvent.email&&(this.condominiumLeadService.sendLeadEvent("51.002.018.001.030"),this.hasAlreadySendFormGAEvent.email=!0)}handleBlurPhone(){this.formLead().get("phone")?.value?.trim().length!==0&&!this.hasAlreadySendFormGAEvent.phone&&(this.hasAlreadySendFormGAEvent.phone=!0,this.condominiumLeadService.sendLeadEvent("51.002.018.001.082"))}
10handleInterest(t){this.hasAlreadySendFormGAEvent.interest||(this.condominiumLeadService.sendLeadEventInterest(t.description),this.hasAlreadySendFormGAEvent.interest=!0)}sendToSentry(t){Qe(n=>{n.setTag("module","ProductLead"),n.setTag("codigodedisparo","49.002.027.001.284"),n.setExtra("errorDetails",t),n.setLevel("error"),Xe(t)})}};o.\u0275fac=function(n){return new(n||o)(P(rt),P(Bt))},o.\u0275cmp=S({type:o,selectors:[["lps-condominium-lead"]],inputs:{isModal:[1,"isModal"],condominium:[1,"condominium"]},outputs:{close:"close"},standalone:!0,features:[O],decls:9,vars:6,consts:[[1,"header"],[1,"header__title"],[1,"header__subtitle"],[3,"formGroup"],[1,"feedback","success"],[1,"feedback","error"],["name","nome","label","Nome","placeholder","Digite seu nome",3,"handleInput","handleBlur","control"],["name","e-mail","label","E-mail","type","email","placeholder","Digite seu e-mail",3,"handleBlur","control","max"],["name","telefone","label","Telefone","type","tel","mask","(00) 00000-0000","placeholder","(xx) xxxxx-xxxx",3,"handleInput","control"],["label","Interesse","name","interesse","placeholder","Selecione",1,"interest-select",3,"handleOption","control","options"],["type","flat","color","primary",1,"button",3,"click","size","fullWidth"],[1,"icon"],["width","18","height","13","viewBox","0 0 18 13","fill","none","alt","icone de sucesso","xmlns","http://www.w3.org/2000/svg"],["d","M6.99999 10.172L16.192 0.979004L17.607 2.393L6.99999 13L0.635986 6.636L2.04999 5.222L6.99999 10.172Z","fill","#00866E"],[1,"title"],["width","14","height","14","viewBox","0 0 14 14","fill","none","alt","icone de error","xmlns","http://www.w3.org/2000/svg"],["d","M14 1.41L12.59 0L7 5.59L1.41 0L0 1.41L5.59 7L0 12.59L1.41 14L7 8.41L12.59 14L14 12.59L8.41 7L14 1.41Z","fill","#C71515"]],template:function(n,r){n&1&&(a(0,"div")(1,"div",0)(2,"p",1),d(3,"Fale com um corretor"),c(),a(4,"p",2),d(5,"Preencha os campos abaixo com seus dados e um de nossos corretores entrar\xE1 em contato. "),c()(),g(6,Dn,7,9,"form",3)(7,Nn,6,0,"div",4)(8,Rn,6,0,"div",5),c()),n&2&&(se("content",!r.isModal())("modal",r.isModal()),l(6),p(r.formLead()&&!r.formSubmited()&&!r.submitError()?6:-1),l(),p(r.formSubmited()&&!r.submitError()?7:r.submitError()?8:-1))},dependencies:[it,tt,Ze,nt,xt,vt,B],styles:[`@keyframes _ngcontent-%COMP%_skeleton-loading{0%{background-color:#c2cfd6}to{background-color:#f0f3f5}}[_nghost-%COMP%]{height:inherit}[_nghost-%COMP%] .modal[_ngcontent-%COMP%]{height:inherit}[_nghost-%COMP%] .modal[_ngcontent-%COMP%] .feedback[_ngcontent-%COMP%]{height:60%;align-content:center}[_nghost-%COMP%] .modal[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{margin-bottom:16px}.header[_ngcontent-%COMP%]{font-size:16px;margin-bottom:32px}.header__title[_ngcontent-%COMP%]{font-weight:700;margin-bottom:8px}.header__subtitle[_ngcontent-%COMP%]{font-weight:400;line-height:24px}.interest-select[_ngcontent-%COMP%]{width:100%!important;max-width:100%;margin-bottom:17px;display:block}.content[_ngcontent-%COMP%]{background-color:#fafafa;border:1px solid #bdbdbd;padding:32px 32px 15px;border-radius:7px;color:#2a2a2a}.content[_ngcontent-%COMP%] form[_ngcontent-%COMP%]{display:flex;gap:16px}.content[_ngcontent-%COMP%] form[_ngcontent-%COMP%] .button[_ngcontent-%COMP%]{align-content:center;width:144px;flex:none;padding-top:4px}.content[_ngcontent-%COMP%] .feedback[_ngcontent-%COMP%]{display:flex;justify-content:center;margin:0 16px 16px;gap:16px;align-items:anchor-center}.feedback[_ngcontent-%COMP%]{text-align:center}.feedback[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{border-radius:25px;width:40px;height:40px;justify-content:center;display:flex;align-items:center;place-self:center}.feedback[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{font-size:16px;line-height:24px;text-align:center;font-weight:700}.success[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{background-color:#cde0dd}.success[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{color:#066554}.error[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{background-color:#fbd1db}.error[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{color:#cb000c} 11/*# sourceMappingURL=/v2/condominium-lead.component-OQO6HX6J.css.map */`]});let i=o;return i})();var be=class{static createDescription(o){let e="",t=this.createLocation(o?.name,o?.address),n=this.createAttributes(o?.enrichedInfo?.attributes),r
11=this.createAmenities(o?.enrichedInfo?.amenities),m=this.createPoi(o?.pois);return e+=t,e+=n,e+=r,e+=m,e}static createLocation(o,e){try{let t=this.createFormmatedAddress(e);if(!t)return"";let{street:n,neighborhood:r,city:m}=t;return`O ${o} est\xE1 localizado em <a target="_blank" href="${n.url}">${e?.type} ${n.name}</a>, no bairro <a target="_blank" href="${r.url}">${r.name}</a> na cidade de <a target="_blank" href="${m.url}">${m.name}</a>. `}catch{return""}}static createFormmatedAddress(o){try{if(!o)return null;let{street:e,neighborhood:t,city:n,state:r}=o,m=D.removeAccentuation(r).toLowerCase().replace(/\ /g,"-"),_=D.removeAccentuation(n).toLowerCase().replace(/\ /g,"-"),x=D.removeAccentuation(t).toLowerCase().replace(/\ /g,"-"),q=D.removeAccentuation(e).toLowerCase().replace(/\ /g,"-"),Q=`/busca/venda/br/${m}`,L="tipo/apartamento",G=`${Q}/${_}`,ke=`${G}/${x}`,Rt=`${ke}/${q}`;return{city:{url:`${G}/${L}`,name:n},street:{url:`${Rt}/${L}`,name:e},neighborhood:{url:`${ke}/${L}`,name:t}}}catch{return null}}static createAttributes(o){let e=Object.values(o||{});return e?.length?`Seus im\xF3veis tem ${e.map(this.createFormattedAttributes).join(", ")}. `:""}static createFormattedAttributes({name:o,value:e}){let t=e.split("a"),n=o.toLowerCase()==="\xE1rea",r=o.toLowerCase()==="constru\xE7\xE3o",m=Number(t[0])||(n?t[0]:1),_=n?"de \xE1rea":o.toLowerCase();if(r)return`${_} em ${m}`;if(t.length<=1)return`${m} ${_}`;let x=Number(t[1])||t[1];return m===x?`${x} ${_}`:m===0?`1 e ${x} ${_}`:`${m} e ${x} ${_}`}static createAmenities(o){if(!o?.length)return"";let e=["piscina adulto descoberta","churrasqueira","academia de ginastica","playground","quadra poliesportiva","salao de jogos","portaria","elevador"],t=8,n=[],r=[];for(let _ of o){let x=D.removeAccentuation(_);if(e.includes(x)&&!n.includes(_)){n.push(_);continue}r.includes(_)||r.push(_)}if(n.length<t){let _=r.slice(0,t-n.length);n.push(..._)}return`Conta com instala\xE7\xF5es como ${[...new Set(n)].join(", ")}. `}static createPoi(o){if(!o?.length)return"";let e=["leisure","education","health_and_wellness"],t=[],n=[],r=0;for(let{type:_,places:x}of o)if(x.length){if(!e.includes(_)){n.push(...x.slice(0,2));continue}if(t.push(...x.slice(0,2)),x.length<2){r++;continue}}return t.push(...n.slice(0,r)),t.length?`Nos arredores do condom\xEDnio h\xE1 diversos pontos de interesse com destaque para ${t.map(({name:_})=>_).join(", ")}. `:""}};var Dt=(()=>{let o=class o{constructor(t,n){this.platformService=t,this.renderer=n.createRenderer(null,null)}loadScript(){if(this.platformService.isCSR()&&!this.scriptElement&&!document?.querySelector('script[src*="pagead2.googlesyndication.com"]')){let t=this.renderer?.createElement("script");t.src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-8655688825290364",t.async=!0,t.crossOrigin="anonymous",this.scriptElement=t,this.renderer.appendChild(document.body,t)}}removeScript(){this.scriptElement&&(this.renderer.removeChild(document.body,this.scriptElement),this.scriptElement=void 0)}};o.\u0275fac=function(n){return new(n||o)(N(te),N(De))},o.\u0275prov=Y({token:o,factory:o.\u0275fac,providedIn:"root"});let i=o;return i})();var K=()=>[],jn=(i,o,e,t,n)=>({map:i,photos:o,plans:e,videos:t,tour360:n});function Un(i,o){i&1&&(a(0,"p",5),d(1," Ocorreu um erro inesperado, "),a(2,"a"),d(3,"voltar"),c(),d(4,". "),c())}function Hn(i,o){if(i&1&&(a(0,"div",12),f(1,"lps-attributes-bar",24),a(2,"p")(3,"span"),d(4,"*"),c(),a(5,"strong"),d(6,"Pre\xE7os vari\xE1veis:"),c(),d(7," Os valores baseados em unidades espec\xEDficas podem diferir dos valores exibidos. Reservamos o direito de alterar pre\xE7os sem aviso pr\xE9vio. "),c()()),i&2){let e=s(2);l(),u("attributes",e.attributes)}}function Wn(i,o){if(i&1&&f(0,"lps-condominium-lead",13),i&2){let e=s(2);u("condominium",e.condominium)}}function qn(i,o){i&1&&oe(0)}function Qn(i,o){if(i&1&&(a(0,"div",14)(1,"h2",25),d(2),c(),f(3,"lps-divider",26),g(4,qn,1,0,"ng-container",27),c()),i&2){let e=s(2),t=Z(7),n=Z(9);l(2),b(!(e.condominium==null||e.condominium.products==null)&&e.condominium.products.length?"Im\xF3veis dispon\xEDveis":"Im\xF3veis pr\xF3ximos"),l(),u("side","bottom")("size",e.isMobile?"md":"lg"),l(),u("ngTemplateOutlet",!(e.condominium==null||e.condominium.products==null)&&e.condominium.products.length?t:n)}}function Xn(i,o){i&1&&(a(0,"div",15),f(1,"ins",28),c())}function Jn(i,o){if(i&1&&f(0,"lps-simple-grid",17),i&2){let e=s(2);u("title","\xC1reas comuns")("items",e.condominium.enrichedInfo.amenities)("isMobile",e.isMobile)}}function Kn(i,o){if(i&1&&(a(0,"div",18)(1,"h2",29),d(2,"Condom\xEDnios pr\xF3ximos"),c(),f(3,"lps-divider",19)(4,"lps-summary-cards",30),c()),i&2){let e=s(2);l(3),u("size",e.isMobile?"md":"lg"),l(),u("items",e.condominium.nearbyCondominiums)}}function Yn(i,o){i&1&&oe(0)}function Zn(i,o){if(i&1&&(a(0,"div",14)(1,"h2",25),d(2,"Im\xF3veis pr\xF3ximos"),c(),f(3,"lps-divider",19),g(4,Yn,1,0,"ng-container",27),c()),i&2){let e=s(2),t=Z(9);l(3),u("size",e.isMobile?"md":"lg"),l(),u("ngTemplateOutlet",t)}}function ei(i,o){if(i&1&&f(0,"lps-widget-links",23),i&2){let e=s(2);u("widgetLinks",(e.condominium==null?null:e.condominium.widgets)||A(2,K))("title","Continue procurando")}}function ti(i,o){if(i&1){let e=y();a(0,"div",9)(1,"div",10)(2,"h1"),d(3),c(),a(4,"h4"),d(5),c()(),f(6,"lps-gallery-grid",11),g(7,Hn,8,1,"div",12),c(),g(8,Wn,1,1,"lps-condominium-lead",13)(9,Qn,5,4,"div",14)(10,Xn,2,0,"div",15),a(11,"lps-expansive-text",16),v("showingAllChange",function(n){h(e);let r=s();return C(r.handleDescriptionGAEvent(n))}),c(),g(12,Jn,1,3,"lps-simple-grid",17)(13,Kn,5,2,"div",18),a(14,"div"),f(15,"lps-divider",19),a(16,"div",20)(17,"p"),d(18,"Anuncie tamb\xE9m o seu im\xF3vel com a Lopes"),c(),a(19,"lps-ui-link",21),v("click",function(){h(e);let n=s();return C(n.handleAdvertiseLink())}),d(20,"Anunciar im\xF3vel"),c()(),f(21,"lps-divider",22),c(),g(22,Zn,5,2,"div",14)(23,ei,1,3,"lps-widget-links",23)}if(i&2){let e=s();l(3),b(e.seo==null||e.seo.headingTag==null?null:e.seo.headingTag.title),l(2),b(e.condominium==null||e.condominium.address==null?null:e.condominium.address.formatted),l(),u("galleryItems",ze(22,jn,e.condominium.map||A(17,K),e.condominium.photos||A(18,K),e.condominium.plans||A(19,K),e.condominium.videos||A(20,K),e.condominium.tour360||A(21,K))),l(),p(e.attributes!=null&&e.attributes.length?7:-1),l(),p(!e.isMobile&&e.toggleCondominiumLead?8:-1),l(),p(!(e.condominium==null||e.condominium.products==null)&&e.condominium.products.length||!(e.condominium==null||e.condominium.nearbyProducts==null)&&e.condominium.nearbyProducts.length?9:-1),l(),p(e.toggleAdCondominium?10:-1),l(),u("title","Sobre o condom\xEDnio")("text",e.condominiumDescriptionAbout)("isMobile",e.isMobile),l(),p(!(e.condominium==null||e.condominium.enrichedInfo==null||e.condominium.enrichedInfo.amenities==null)&&e.condominium.enrichedInfo.amenities.length?12:-1),l(),p(!(e.condominium==null||e.condominium.nearbyCondominiums==null)&&e.condominium.nearbyCondominiums.length?13:-1),l(2),u("size",e.isMobile?"md":"lg"),l(4),u("fullWidth",!0),l(2),u("size",e.isMobile?"md":"lg"),l(),p(!(e.condominium==null||e.condominium.products==null)&&e.condominium.products.length&&(!(e.condominium==null||e.condominium.nearbyProducts==null)&&e.condominium.nearbyProducts.length)?22:-1),l(),p(e.condominium!=null&&e.condominium.widgets&&(!(e.condominium==null||e.condominium.widgets==null)&&e.condominium.widgets.length)?23:-1)}}function ni(i,o){if(i&1){let e=y();a(0,"div",8)(1,"lps-ui-button",31),v("click",function(){h(e);let n=s();return C(n.openBottomSheetLead())}),d(2,"Entrar em contato"),c()()}}function ii(i,o){if(i&1&&f(0,"lps-condominium-product-card-new",33),i&2){let e=s(),t=e.product,n=e.position;u("product",t)("position",n)("gridName","produto:condom\xEDnios")}}function oi(i,o){if(i&1&&f(0,"lps-condominium-product-card",33),i&2){let e=s(),t=e.product,n=e.position;u("product",t)("position",n)("gridName","produto:condom\xEDnios")}}function ri(i,o){if(i&1&&g(0,ii,1,3,"lps-condominium-product-card-new",33)(1,oi,1,3,"lps-condominium-product-card",33),i&2){let e=s(2);p(e.toggleNewCardsCondominium?0:1)}}function ai(i,o){if(i&1){let e=y();a(0,"lps-condominium-grid-cards",32),v("buttonMoreHandle",function(){h(e);let n=s();return C(n.handleGridShowMoreEvent("condom\xEDnios","1.002.018.001.300"))})("handleGridLoaded",function(n){h(e);let r=s();return C(r.handleGridImpressionEvent(n,"condom\xEDnios","23.002.001.001.243"))}),c(),g(1,ri,2,1,"ng-template",null,2,re)}if(i&2){let e=Z(2),t=s();u("cards",t.condominium.products)("productTemplate",e)}}function li(i,o){if(i&1&&f(0,"lps-condominium-product-card-new",33),i&2){let e=s(),t=e.product,n=e.position;u("product",t)("position",n)("gridName","produto:prox-condom\xEDnios")}}function ci(i,o){if(i&1&&f(0,"lps-condominium-product-card",33),i&2){let e=s(),t=e.product,n=e.position;u("product",t)("position",n)("gridName","produto:prox-condom\xEDnios")}}function si(i,o){if(i&1&&g(0,li,1,3,"lps-condominium-product-card-new",33)(1,ci,1,3,"lps-condominium-product-card",33),i&2){let e=s(2);p(e.toggleNewCardsCondominium?0:1)}}function di(i,o){if(i&1){let e=y();a(0,"lps-condominium-grid-cards",32),v("buttonMoreHandle",function(){h(e);let n=s();return C(n.handleGridShowMoreEvent("produto:prox-condom\xEDnios","1.002.018.001.300"))})("handleGridLoaded",function(n){h(e);let r=s();return C(r.handleGridImpressionEvent(n,"produto:prox-condom\xEDnios","23.002.001.001.243"))}),c(),g(1,si,2,1,"ng-template",null,3,re)}if(i&2){let e=Z(2),t=s();u("cards",t.condominium.nearbyProducts)("productTemplate",e)}}var Te=(()=>
11{let o=class o{constructor(t,n,r,m,_,x,q,Q,L){if(this.pageSeoService=t,this.deviceService=n,this.activatedRoute=r,this.googleTagManagerService=m,this.hostService=_,this.impressionCardsService=x,this.toggleService=q,this.adsenseService=Q,this.bottomSheet=L,this.galleryItems=[],this.attributes=[],this.condominiumDescriptionAbout="",this.pageHasError=!1,this.isMobile=!1,this.toggleAdCondominium=!1,this.toggleCondominiumLead=!1,this.toggleImprovedDescription=!1,this.toggleNewCardsCondominium=!0,this.activatedRoute.snapshot&&this.activatedRoute.snapshot.data.condominiumResponse==null){this.pageHasError=!0;return}let G=this.activatedRoute.snapshot.data.condominiumResponse;this.condominium=G?.condominium,this.seo=G?.seo,this.attributes=this.getAttributesStructure(this.condominium?.enrichedInfo?.attributes),this.toggleNewCardsCondominium=this.toggleService.getValue("toggle-frontend-new-cards-condominium"),this.toggleImprovedDescription=this.toggleService.isActive("toggle-frontend-condominium-improved-description"),this.condominiumDescriptionAbout=this.toggleImprovedDescription&&this.condominium?.improvedDescription?this.condominium?.improvedDescription:be.createDescription(this.condominium),this.galleryItems=ve.createGridStructure(this.condominium),this.condominium&&this.updateSeo()}ngOnInit(){this.googleTagManagerService.addNewPageViewCode("8.002.018.025.040"),this.setIsMobile(),this.setNoIndexTag(),this.toggleAdCondominium=this.toggleService.isActive("toggle-frontend-ad-condominium"),this.toggleCondominiumLead=this.toggleService.isActive("toggle-frontend-condominium-lead"),this.toggleAdCondominium&&this.adsenseService.loadScript()}ngAfterViewInit(){this.toggleAdCondominium&&setTimeout(()=>{try{(window.adsbygoogle=window.adsbygoogle||[]).push({})}catch{}},500)}ngOnDestroy(){this.toggleAdCondominium&&this.adsenseService.removeScript()}getAttributesStructure(t){return Object.values(t)}handleAdvertiseLink(){this.googleTagManagerService.pushTag({event:z.Event,eventCategory:lt.Announce,eventAction:at.Clicked,eventLabel:"Condom\xEDnio: link para home do anuncie",codigodedisparo:"1.002.027.001.251"})}setIsMobile(){this.isMobile=this.deviceService.isMobile()}updateSeo(){this.pageSeoService.updatePageTitle(this.seo?.title),this.pageSeoService.updateMetaDescription(this.seo?.metaDescription),this.pageSeoService.canonicalTagFor(`${ee.portalUrl}${this.seo?.url}`)}setNoIndexTag(){this.hostService.getFranchiseDomain()!==""&&this.pageSeoService.setRobotsTag("noindex")}handleDescriptionGAEvent(t){t&&this.googleTagManagerService.pushTag({event:z.Event,codigodedisparo:"1.002.018.001.295"})}handleGridShowMoreEvent(t,n){this.googleTagManagerService.pushTag({codigodedisparo:n,"nome-lista":t})}handleGridImpressionEvent(t,n,r){this.impressionCardsService.sendImpressionCardsEvent(t,n,r)}openBottomSheetLead(){this.bottomSheet.open(ft,{panelClass:"bottom-sheet-default",data:{component:Oe,inputs:{isModal:W(!0),condominium:W(this.condominium)}}})}};o.\u0275fac=function(n){return new(n||o)(P(st),P(fe),P(Je),P(ne),P(ct),P(pt),P(ot),P(Dt),P(gt))},o.\u0275cmp=S({type:o,selectors:[["lps-condominium"]],hostBindings:function(n,r){n&1&&v("resize",function(){return r.setIsMobile()},!1,ce)},standalone:!0,features:[O],decls:10,vars:4,consts:[["gridProductTemplate",""],["gridNearbyProductTemplate",""],["productTemplate",""],["nearbyProductTemplate",""],[1,"condominium"],[1,"condominium__error"],[1,"condominium__breadcrumbs"],[3,"links"],[1,"button-wrapper"],[1,"condominium__details"],[1,"condominium__title"],[1,"condominium__grid",3,"galleryItems"],[1,"condominium__attributes"],[3,"condominium"],[1,"grid-cards"],[1,"card-adsense"],[3,"showingAllChange","title","text","isMobile"],[3,"title","items","isMobile"],[1,"nearby-condominiums"],["side","bottom",3,"size"],[1,"condominium__announce"],["size","lg","type","stroked","href","https://www.lopes.com.br/paginas/anuncie-seu-imovel",1,"link",3,"click","fullWidth"],["side","top",3,"size"],[1,"condominium__widgets",3,"widgetLinks","title"],[3,"attributes"],[1,"grid-cards__title"],[3,"side","size"],[4,"ngTemplateOutlet"],["id","adsense-ad","data-ad-client","ca-pub-8655688825290364","data-ad-slot","8888214156",1,"adsbygoogle","ads",2,"display","inline-block"],[1,"nearby-condominiums__title"],[3,"items"],["size","md","type","flat","color","primary",3,"click"],[3,"buttonMoreHandle","handleGridLoaded","cards","productTemplate"],[3,"product","position","gridName"]],template:function(n,r){n&1&&(a(0,"div",4),g(1,Un,5,0,"p",5)(2,ti,24,28),a(3,"div",6),f(4,"lps-breadcrumb",7),c()(),g(5,ni,3,0,"div",8)(6,ai,3,2,"ng-template",null,0,re)(8,di,3,2,"ng-template",null,1,re)),n&2&&(l(),p(r.pageHasError?1:2),l(3),u("links",(r.seo==null?null:r.seo.breadcrumbs)||A(3,K)),l(),p(r.isMobile&&r.toggleCondominiumLead?5:-1))},dependencies:[pe,de,he,It,kt,Vt,Et,At,Pt,Ye,B,Gt,ut,_t,Oe,Ft],styles:[`@keyframes _ngcontent-%COMP%_skeleton-loading{0%{background-color:#c2
11cfd6}to{background-color:#f0f3f5}}.condominium[_ngcontent-%COMP%]{max-width:1380px;display:flex;flex-direction:column;gap:64px;margin:0 auto;padding:24px 80px 0}.condominium__title[_ngcontent-%COMP%]{margin-bottom:26px}.condominium__title[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font-size:32px;font-weight:700;line-height:100%;margin-bottom:16px;color:#2a2a2a}.condominium__title[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{font-size:24px;font-weight:600;color:#707070bf}.condominium__grid[_ngcontent-%COMP%]{display:block;margin-bottom:26px}.condominium__attributes[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:14px}.condominium__attributes[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#eb194b}.condominium__attributes[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{font-weight:700}.condominium__announce[_ngcontent-%COMP%]{display:flex;font-size:16px;align-items:center;font-weight:700}.condominium__announce[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{text-align:center;margin-right:16px}.condominium__announce[_ngcontent-%COMP%] .link[_ngcontent-%COMP%]{width:230px}@media screen and (max-width: 480px){.condominium__announce[_ngcontent-%COMP%]{flex-direction:column}.condominium__announce[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin-right:0;margin-bottom:16px}.condominium__announce[_ngcontent-%COMP%] .link[_ngcontent-%COMP%]{width:100%}}.condominium__breadcrumbs[_ngcontent-%COMP%]{border-top:1px solid #f2f2f2}.grid-cards__title[_ngcontent-%COMP%], .nearby-condominiums__title[_ngcontent-%COMP%]{font-size:24px;font-weight:700;margin-bottom:8px}@media screen and (max-width: 1080px){.condominium[_ngcontent-%COMP%]{gap:40px;padding:40px 24px 0}.condominium__title[_ngcontent-%COMP%]{margin-bottom:24px}.condominium__title[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font-size:24px;margin-bottom:16px}.condominium__title[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{font-size:16px}.condominium__grid[_ngcontent-%COMP%]{margin-bottom:26px}.grid-cards__title[_ngcontent-%COMP%]{font-size:20px}.condominium__breadcrumbs[_ngcontent-%COMP%]{padding:0}}.button-wrapper[_ngcontent-%COMP%]{display:flex;position:fixed;bottom:0;width:100%;height:68px;background-color:#fafafa;border-top:1px solid #bdbdbd;align-items:center;justify-content:center;z-index:1}.card-adsense[_ngcontent-%COMP%]{height:100%!important;width:100%;display:flex;margin:0 auto;align-items:center;align-self:center;overflow:hidden}.card-adsense[_ngcontent-%COMP%] .ads[_ngcontent-%COMP%]{width:970px;height:90px;margin:0 auto}@media (max-width: 1024px){.card-adsense[_ngcontent-%COMP%] .ads[_ngcontent-%COMP%]{width:300px;height:250px}}.condominium__widgets[_ngcontent-%COMP%]{display:block;margin-bottom:82px} 12/*# sourceMappingURL=/v2/condominium.component-FGQWNN6W.css.map */`]});let i=o;return i})();var Nt=(()=>{let o=class o{constructor(t){this.httpClient=t}getById(t){return this.httpClient.get(`${ee.bffCondominiumV2}/condos/${t}`)}};o.\u0275fac=function(n){return new(n||o)(N(ue))},o.\u0275prov=Y({token:o,factory:o.\u0275fac,providedIn:"root"});let i=o;return i})();var Ee=i=>{let o=X(Nt),e=X(dt),t=X(Ke),n=X(te),r=i.params,{id:m}=r;return o.getById(m).pipe(Ve(_=>(t.navigateByUrl("/paginas/nao-existe",{skipLocationChange:!0}),Ie(_))),Le(_=>{if(!_){t.navigateByUrl("/paginas/nao-existe",{skipLocationChange:!0});return}let x=_?.seo?.url||"",q=i,[Q,L]=q._routerState.url?.split("?")||{},G=L?`?${L}`:"";if(Q!==x)if(n.isSSR()){e.setRedirect(`${x}${G}`);return}else t.navigateByUrl(`${x}${G}`);return _}))};var br=[{path:":state/:city/:neighborhood/:id/:alias",component:Te,resolve:{condominiumResponse:Ee}},{path:":state/:city/:neighborhood/:id/",component:Te,resolve:{condominiumResponse:Ee}}];export{br as routes}; 13//# 14 15//#
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.