PageSourceSearch

https://www.holimoveis.com/chunk-QG5HQCS7.js

js holimoveis.com collected 2026-10-04 08:41:01 UTC 224,797 bytes, 10 lines download raw bytes

1import{a as kn,b as Dn}from"./chunk-3H5CDGEZ.js";import{a as Bn}from"./chunk-MNI4DHSP.js";import{a as Ot}from"./chunk-JXWPSJ6Z.js";import{a as Tn}from"./chunk-TACYX6XL.js";import{a as xn,b as Kt}from"./chunk-3HPQAB42.js";import{a as On}from"./chunk-RZAXQ6WQ.js";import{a as wn}from"./chunk-UFCFVEHC.js";import{a as Sn}from"./chunk-SALTVC4S.js";import{a as Xt}from"./chunk-D43CZYKC.js";import{a as vt}from"./chunk-5AZI7URQ.js";import{e as qt}from"./chunk-LFIN7AMS.js";import{a as Zt,b as vn}from"./chunk-VELFSOC5.js";import"./chunk-2MA4PKRS.js";import"./chunk-MQENSMVN.js";import"./chunk-LW6UBSXN.js";import{a as q}from"./chunk-2ITU7562.js";import{b as Gt}from"./chunk-PO3UNCIB.js";import{c as xt}from"./chunk-5UNYVIIL.js";import{a as Ut,c as sn,e as dn,f as mn}from"./chunk-W5YMMA2R.js";import{a as Pn,b as fn}from"./chunk-IR6E334L.js";import"./chunk-ETNVXSJZ.js";import{a as Ct}from"./chunk-UTK4KZA3.js";import{a as Yt}from"./chunk-TQNSHKDH.js";import{e as Mn}from"./chunk-7R6CGIMZ.js";import"./chunk-Z3HRNYT2.js";import"./chunk-BJ6I4SQM.js";import"./chunk-Q6Z5PMGJ.js";import"./chunk-Y4UEUGBK.js";import{a as Q}from"./chunk-UJYMJQZB.js";import{i as bn}from"./chunk-IWAWM5X7.js";import{a as it,c as lt}from"./chunk-YDXYDHVT.js";import{c as et}from"./chunk-57BBKKDM.js";import{H as Wt,N as _t,O as Ht,R as gn,S as _n,_ as un,a as Nt,b as Rt,c as tt,ja as Cn,la as mt,ma as yn,na as Qt,oa as hn}from"./chunk-BDBNNF5F.js";import"./chunk-BMNDREH6.js";import{c as N}from"./chunk-IQLQCF3X.js";import{a as ln,b as Lt}from"./chunk-HU7SHZ2P.js";import"./chunk-WKTS323O.js";import"./chunk-G5C4E5SZ.js";import"./chunk-JFOVODTQ.js";import{d as cn,f as $t,g as jt}from"./chunk-HHMUAAKH.js";import{a as H}from"./chunk-KX3MZ4HX.js";import{a as pn}from"./chunk-CPVTU5XS.js";import{f as on,m as an,s as rn}from"./chunk-EUZLHDMR.js";import{c as tn,d as en,e as nn}from"./chunk-LSHSIR26.js";import{b as U}from"./chunk-BTO3RYRP.js";import{b as Je}from"./chunk-OYMZJ57R.js";import"./chunk-3W7VWIDZ.js";import{Fa as z,W as qe,ga as Ft,ia as Ye,ka as Mt,m as At,na as Ke,ra as Ze,wa as Xe}from"./chunk-OOUYCANI.js";import{Ac as We,Ca as F,Cb as $e,Eb as je,Hc as A,Ib as Tt,Ic as $,Jb as ht,Jc as Ge,Kb as m,Kc as He,Lb as g,Lc as ct,Mb as Z,Mc as Vt,Nb as E,O as Ee,Ob as v,Pb as O,Qb as u,Qc as l,Rb as a,Rc as s,Sb as r,Sc as G,Tb as y,Ua as Ve,Ub as S,Uc as ft,V as zt,Va as T,Vb as k,Wa as Ae,Wb as X,Ya as Et,Yb as w,Za as o,Zb as K,_,_c as L,cd as Y,d as De,dc as b,dd as C,e as ze,ea as f,ec as bt,ed as J,fa as M,fb as Fe,fc as p,gc as Le,gd as Dt,hc as Ue,ib as Ne,mc as ot,nb as P,nc as at,oc as dt,pb as It,qc as R,ra as Be,rd as Qe,sc as rt,ta as nt,tb as gt,tc as d,ua as Ie,ub as Re,uc as x,vc as D,wc as W,xa as yt,xc as Pt}from"./chunk-WXYLEQT5.js";import"./chunk-C6Q5SG76.js";var Jt=class n{comeBack=Y();onComeBack(){this.comeBack.emit(!0)}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=P({type:n,selectors:[["imobzi-button-comeback"]],outputs:{comeBack:"comeBack"},decls:3,vars:0,consts:[["title","Voltar","aria-label","Voltar",1,"btn-icon","background-trans","color-light","come_back","col-xs-2","col-sm-2","col-md-2","col-lg-2","col-xl-2",3,"click"],["aria-label","Previous",1,"material-symbols-rounded"]],template:function(t,i){t&1&&(a(0,"button",0),b("click",function(){return i.onComeBack()}),a(1,"mat-icon",1),d(2,"keyboard_backspace"),r()())},dependencies:[H],styles:[".come_back[_ngcontent-%COMP%]{display:none}@media(max-width:767px){.come_back[_ngcontent-%COMP%]{display:inherit;position:absolute;top:20px;border:none;z-index:99;opacity:1}.come_back[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%]{width:32px;height:32px;font-size:32px}}@media(min-width:768px)and (max-width:1023px){.come_back[_ngcontent-%COMP%]{display:inherit;position:absolute;top:20px;border:none;z-index:99;opacity:1}.come_back[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%]{width:48px;height:48px;font-size:48px}}"]})};function En(n,e){if(n&1){let t=w();S(0,"figure")(1,"img",2),l(2,"translate"),l(3,"formatTitle"),l(4,"translate"),l(5,"formatTitle"),bt("error",function(c){f(t);let h=p(2);return M(h.realtorImgErrorHandler(c))}),k()()}if(n&2){let t=p(2);o(),K("src",t.realtorImage(),T)("alt",s(3,5,s(2,3,"Corretor {{listingBroker().name}}")))("title",s(5,9,s(4,7,"Corretor {{listingBroker().name}}")))}}function In(n,e){if(n&1&&(S(0,"h2"),d(1),k()),n&2){let t=p(2);o(),x(t.realtorName())}}function Vn(n,e){if(n&1&&(S(0,"p",1),d(1),k()),n&2){let t=p(2);o(),D("CRECI ",t.listingBroker().license)}}function An(n,e){if(n&1&&(m(0,En,6,11,"figure"),m(1,In,2,1,"h2"),m(2,Vn,2,1,"p",1)),n&2){let t=p();g(t.realtorImage()?0:-1),o(),g(t.realtorName()?1:-1),o(),g(t.listingBroker().license?2:-1)}}var te=class n{appService=_(U);homeService=_(Q);listingBroker=C(void 0);parameters=C(void 0);clientBucketPath=this.appService.clientBucketPath();layoutBucketPath=this.appService.layoutBucketPath();siteConfiguration=this.homeService.getSiteConfiguration();realtorImgErrorHandler(e){if(this.siteConfiguration()?.details_page?.realtors_avatar==="display_logo"){e.target.style.display="none";return}e.target.onerror=null,e.target.src=`${this.appService.layoutBucketPath()}realtor.png`}realtorImage(){return Qt(this.siteConfiguration()?.details_page?.realtors_avatar,this.parameters()?.logotype_image_url,this.listingBroker()?.profile_image_url,`${this.appService.layoutBucketPath()}realtor.png`)}realtorName(){return hn(this.siteConfiguration()?.details_page?.realtors_avatar,this.parameters()?.company_name,this.listingBroker()?.name)}
1static \u0275fac=function(t){return new(t||n)};static \u0275cmp=P({type:n,selectors:[["imobzi-listing-broker"]],inputs:{listingBroker:[1,"listingBroker"],parameters:[1,"parameters"]},decls:2,vars:1,consts:[["id","listing-broker"],[1,"h3"],["loading","lazy","decoding","async",3,"error","src","alt","title"]],template:function(t,i){if(t&1&&(S(0,"section",0),m(1,An,3,3),k()),t&2){let c;o(),g(i.listingBroker()&&((c=i.listingBroker())!=null&&c.license||i.parameters().realtor.show_owner_phone||i.parameters().realtor.show_owner_whatsapp)&&((c=i.siteConfiguration())==null||c.details_page==null?null:c.details_page.realtors_avatar)!=="not_display"?1:-1)}},dependencies:[N,q],styles:["#listing-broker[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{color:var(--title)}#listing-broker[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{color:var(--subtitle)}#listing-broker[_ngcontent-%COMP%]   figure[_ngcontent-%COMP%]{position:relative;border-radius:50%;border:1px solid var(--inactive);margin:auto;margin-bottom:1vh}#listing-broker[_ngcontent-%COMP%]   figure[_ngcontent-%COMP%]{width:64px}@media screen and (min-width:992px){#listing-broker[_ngcontent-%COMP%]   figure[_ngcontent-%COMP%]{width:calc(64px + 36 * (100vw - 992px) / 928)}}@media screen and (min-width:1920px){#listing-broker[_ngcontent-%COMP%]   figure[_ngcontent-%COMP%]{width:100px}}#listing-broker[_ngcontent-%COMP%]   figure[_ngcontent-%COMP%]{height:64px}@media screen and (min-width:992px){#listing-broker[_ngcontent-%COMP%]   figure[_ngcontent-%COMP%]{height:calc(64px + 36 * (100vw - 992px) / 928)}}@media screen and (min-width:1920px){#listing-broker[_ngcontent-%COMP%]   figure[_ngcontent-%COMP%]{height:100px}}#listing-broker[_ngcontent-%COMP%]   figure[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{position:absolute;border-radius:50%;object-fit:cover}#listing-broker[_ngcontent-%COMP%]   figure[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:64px}@media screen and (min-width:992px){#listing-broker[_ngcontent-%COMP%]   figure[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:calc(64px + 36 * (100vw - 992px) / 928)}}@media screen and (min-width:1920px){#listing-broker[_ngcontent-%COMP%]   figure[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:100px}}#listing-broker[_ngcontent-%COMP%]   figure[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{height:64px}@media screen and (min-width:992px){#listing-broker[_ngcontent-%COMP%]   figure[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{height:calc(64px + 36 * (100vw - 992px) / 928)}}@media screen and (min-width:1920px){#listing-broker[_ngcontent-%COMP%]   figure[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{height:100px}}#listing-broker[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%], #listing-broker[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{text-align:center}"]})};var wt=class n{state=new ze(!1);constructor(){}getState(){return this.state.asObservable()}setState(e){return this.state.next(e)}static \u0275fac=function(t){return new(t||n)};static \u0275prov=zt({token:n,factory:n.\u0275fac,providedIn:"root"})};var St=class n{property=C(void 0);static \u0275fac=function(t){return new(t||n)};static \u0275cmp=P({type:n,selectors:[["imobzi-property-title"]],inputs:{property:[1,"property"]},decls:10,vars:10,consts:[[1,"property-title"],[1,"display-h3"],[1,"display-h3","subtitle"],[1,"code"]],template:function(t,i){t&1&&(S(0,"div",0)(1,"h1",1),d(2),l(3,"translate"),l(4,"formatTitle"),S(5,"span",2)(6,"span",3),d(7),l(8,"translate"),l(9,"formatTitle"),k()()()()),t&2&&(o(2),D(" ",s(4,4,s(3,2,i.property().site_title))," "),o(5),x(s(9,8,s(8,6,"- C\xF3d."+i.property().code))))},dependencies:[N,q],styles:["@media(max-width:767px){.property-title[_ngcontent-%COMP%]   h1[_ngcontent-%COMP%]{color:var(--title)!important}}@media(min-width:768px)and (max-width:1023px){.property-title[_ngcontent-%COMP%]   h1[_ngcontent-%COMP%]{color:var(--title)!important}}@media(min-width:1024px)and (max-width:1199px){.property-title[_ngcontent-%COMP%]   h1[_ngcontent-%COMP%]{color:var(--title)!important}}@media(min-width:1200px)and (max-width:1399px){.code[_ngcontent-%COMP%]{display:none}}@media(min-width:1399px){.code[_ngcontent-%COMP%]{display:none}}.property-title[_ngcontent-%COMP%]   h1[_ngcontent-%COMP%]{color:var(--color-items)}"]})};var kt=class n{address;adr=C(void 0);nbh=C(void 0);cit=C(void 0);stt=C(void 0);showAddressOption=C(void 0);constructor(){}ngOnInit(){this.showAddress()}showAddress(){let e=this.adr();e?e&&this.showAddressOption()=="full_address_site"?this.address=`${e} - ${this.nbh()} - ${this.cit()} - ${this.stt()}`:this.address=`${e.split(", ",1)} - ${this.nbh()} - ${this.cit()} - ${this.stt()}`:this.address=""}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=P({type:n,selectors:[["imobzi-location"]],inputs:{adr:[1,"adr"],nbh:[1,"nbh"],cit:[1,"cit"],stt:[1,"stt"],showAddressOption:[1,"showAddressOption"]},decls:3,vars:1,consts:[[1,"property-location"],[1,"display-h3","subtitle"]],template:function(t,i){t&1&&(S(0,"div",0)(1,"p",1),d(2),k()()),t&2&&(o(2),x(i.address))},styles:["p[_ngcontent-%COMP%]{color:#424242}p[_ngcontent-%COMP%]{font-size:18px!important}@media screen and (min-width:320px){p[_ngcontent-%COMP%]{font-size:calc(18px + .0125*(100vw - 320px))!important}}@media screen and (min-width:1920px){p[_ngcontent-%COMP%]{font-size:38px!important}}.subtitle[_ngcontent-%COMP%]{font-family:Montserrat,sans-serif;font-weight:400;font-size:18px!important;color:#fff}@media(max-width:1199px){.subtitle[_ngcontent-%COMP%]{font-family:Montserrat,sans-serif;font-weight:400;font-size:12px!important;color:#8d8d8d}}"]})};var ee=class n{elementRef=_(yt);overlay=_(rn);vcr=_(Ne);popoverService=_(wt);popoverTrigger=C.required();clicked(){this.attachOverlay()}unsubscribe=new De;overlayRef;ngOnInit(){this.createOverlay(),this.popoverService.getState().subscribe(e=>{e&&this.detachOverlay()})}ngOnDestroy(){this.detachOverlay(),this.unsubscribe.next(null),this.unsubscribe.complete()}attachOverlay(){if(!this.overlayRef.hasAttached()){let e=new on(this.popoverTrigger(),this.vcr);this.overlayRef.attach(e)}}detachOverlay(){this.overlayRef.hasAttached()&&this.overlayRef.detach()}createOverlay(){let e=this.overlay.scrollStrategies.close(),t=this.overlay.position().flexibleConnectedTo(this.elementRef).withPositions([new an({originX:"start",originY:"top"},{overlayX:"start",overlayY:"bottom"},0,0,"popover-directive-container")]);this.overlayRef=this.overlay.create({positionStrategy:t,scrollStrategy:e,hasBackdrop:!0,backdropClass:""}),this.overlayRef.backdropClick().pipe(Ee(this.unsubscribe)).subscribe(()=>{this.detachOverlay()})}static \u0275fac=function(t){return new(t||n)};static \u0275dir=It({type:n,selectors:[["","popoverTrigger",""]],hostBindings:function(t,i){t&1&&b("click",function(){return i.clicked()})},inputs:{popoverTrigger:[1,"popoverTrigger"]}})};var Fn=["*"],ne=class n{constructor(){}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=P({type:n,selectors:[["imobzi-popover"]],ngContentSelectors:Fn,decls:2,vars:0,consts:[[1,"popover-container"]],template:function(t,i){t&1&&(Le(),S(0,"div",0),Ue(1),k())},styles:[".popover-container[_ngcontent-%COMP%]{background-color:#fff;max-width:350px;width:calc(100vw - 20px);border-radius:20px;padding:20px;z-index:99999;box-shadow:3px 3px 5px #77777780}"]})};function Nn(n,e){if(n&1&&y(0,"imobzi-location",4),n&2){let t,i=p();u("adr",i.property().address)("nbh",i.property().neighborhood)("cit",i.property().city)("stt",i.property().state)("showAddressOption",(t=i.parameters())==null?null:t.site_show_address_options)}}function Rn(n,e){if(n&1&&(a(0,"p",8),d(1),l(2,"customCurrency"),r()),n&2){let t=p(2);o(),x(G(2,1,t.property().sale_value,!0))}}function $n(n,e){n&1&&(a(0,"p",8),d(1),l(2,"translate"),l(3,"formatTitle"),r()),n&2&&(o(),x(s(3,3,s(2,1,"Consulte"))))}function jn(n,e){if(n&1&&(a(0,"div",5)(1,"p",8),d(2),l(3,"translate"),l(4,"formatTitle"),r(),m(5,Rn,3,4,"p",8)(6,$n,4,5,"p",8),r()),n&2){let t=p();o(2),D(" ",s(4,4,s(3,2,t.isReleaseStage(t.property().stage,null,!!t.property().building_name)?"Venda a partir de:":"Comprar"))," "),o(3),g(t.property().sale_value>0&&t.property().site_publish_price?5:6)}}function Ln(n,e){if(n&1&&(a(0,"p",9),d(1),l(2,"customCurrency"),r()),n&2){let t=p(2).$implicit;o(),D(" ",G(2,1,t.value,!0)," ")}}function Un(n,e){if(n&1&&(a(0,"div",5)(1,"p",9),d(2),l(3,"translate"),r(),m(4,Ln,3,4,"p",9),r()),n&2){let t=p().$implicit,i=p(2);o(2),x(s(3,2,t.key)),o(2),g(i.property().site_publish_price?4:-1)}}function Wn(n,e){if(n&1&&m(0,Un,5,4,"div",5),n&2){let t=e.$implicit,i=p(2);g(i.removeItens.indexOf(t.key)===-1?0:-1)}}function Gn(n,e){if(n&1&&(v(0,Wn,1,1,null,null,Z),l(2,"keyvalue")),n&2){let t=p();O(s(2,0,t.additional_values))}}function Hn(n,e){n&1&&y(0,"hr")}function Qn(n,e){if(n&1&&(a(0,"p",8),d(1),l(2,"customCurrency"),r()),n&2){let t=p(2);o(),x(G(2,1,t.property().rental_value,!0))}}function qn(n,e){n&1&&(a(0,"p",8),d(1),l(2,"translate"),l(3,"formatTitle"),r()),n&2&&(o(),x(s(3,3,s(2,1,"Consulte"))))}function Yn(n,e){if(n&1&&(a(0,"div",5)(1,"p",8),d(2),l(3,"translate"),l(4,"formatTitle"),r(),m(5,Qn,3,4,"p",8)(6,qn,4,5,"p",8),r()),n&2){let t=p();o(2),x(s(4,4,s(3,2,"Loca\xE7\xE3o"))),o(3),g(t.property().site_publish_price&&t.property().rental_value>0?5:6)}}function Kn(n,e){}function Zn(n,e){if(n&1&&(a(0,"p",8),d(1),l(2,"customCurrency"),r()),n&2){let t=p(2);o(),x(G(2,1,t.totalVacation,!0))}}function Xn(n,e){if(n&1&&(a(0,"div",6),gt(1,Kn,0,0,"ng-template",10),a(2,"div",11),y(3,"hr"),r(),a(4,"p",8),d(5),l(6,"translate"),l(7,"formatTitle"),r(),m(8,Zn,3,4,"p",8),r()),n&2){let t=p(),i=dt(11);o(),u("ngTemplateOutlet",i),o(4),x(s(7,5,s(6,3,"Total"))),o(3),g(t.property().site_publish_price?8:-1)}}function Jn(n,e){if(n&1&&(a(0,"p",9),d(1),l(2,"customCurrency"),r()),n&2){let t=p().$implicit;o(),D(" ",G(2,1,t.value,!0)," ")}}function ti(n,e){if(n&1&&(a(0,"div",5)(1,"p",9),d(2),l(3,"translate"),r(),m(4,Jn,3,4,"p",9),r()),n&2){let t=e.$implicit,i=p(2);o(2),x(s(3,2,t.key)),o(2),g(i.property().site_publish_price?4:-1)}}function ei(n,e){if(n&1&&(v(0,ti,5,4,"div",5,Z),l(2,"keyvalue")),n&2){let t=p();O(s(2,0,t.additional_values))}}function ni(n,e){if(n&1&&(a(0,"p",8),d(1),l(2,"customCurrency"),r()),n&2){let t=p(2);o(),x(G(2,1,t.totalValue,!0))}}function ii(n,e){if(n&1&&(a(0,"div",5)(1,"p",8),d(2),l(3,"translate"),l(4,"formatTitle"),r(),m(5,ni,3,4,"p",8),r()),n&2){let t=p();o(2),x(s(4,4,s(3,2,"Total"))),o(3),g(t.property().site_publish_price?5:-1)}}function oi(n,e){if(n&1&&(a(0,"span",16),d(1),r()),n&2){let t=p(2);o(),x(t.convertDateStringToFullDate(t.startDateSelected(),"abbreviatedDate"))}}function ai(n,e){n&1&&(a(0,"mat-icon",17),d(1,"close"),r())}function ri(n,e){n&1&&(a(0,"mat-icon",17),d(1,"expand_more"),r())}function ci(n,e){if(n&1&&(a(0,"span",16),d(1),r()),n&2){let t=p(2);o(),x(t.convertDateStringToFullDate(t.endDateSelected(),"abbreviatedDate"))}}function li(n,e){n&1&&(a(0,"mat-icon",17),d(1,"close"),r())}function pi(n,e){n&1&&(a(0,"mat-icon",17),d(1,"expand_more"),r())}function si(n,e){if(n&1){let t=w();a(0,"imobzi-calendar-availability",23),b("searchDates",function(c){f(t);let h=p(2);return M(h.onSearchDates(c))})("closeDialog",function(){f(t);let c=p(2);return M(c.closeDialog())}),r()}if(n&2){let t=p(2);u("startDateSelected",t.startDateSelected())("endDateSelected",t.endDateSelected())("calendarAvailability",t.calendarAvailability)("displayModal",t.displayModal)("singleCalendar",!0)("stayNightsByDay",t.property().stay_nights_by_days)("propertyCalendar",t.property().calendar)("showBorder",!0)}}function di(n,e){if(n&1&&(a(0,"span",16),d(1),l(2,"translate"),l(3,"translate"),r()),n&2){let t=p(2);o(),W(" ",t.adultsSelected()+t.childrenSelected()," ",t.adultsSelected()+t.childrenSelected()>1?s(2,2,"h\xF3spedes"):s(3,4,"h\xF3spede")," ")}}function mi(n,e){n&1&&(a(0,"mat-icon",17),d(1,"expand_more"),r())}function gi(n,e){n&1&&(a(0,"mat-icon",17),d(1,"close"),r())}function _i(n,e){if(n&1){let t=w();a(0,"imobzi-guests-counter",24),b("searchAdults",function(c){f(t);let h=p(2);return M(h.onSearchAdults(c))})("searchChildren",function(c){f(t);let h=p(2);return M(h.onSearchChildren(c))}),r()}if(n&2){let t=p(2);u("maxGuests",t.property().vacation_rental_guests)("adultsSelected",t.adultsSelected())("childrenSelected",t.childrenSelected())}}function ui(n,e){if(n&1&&(a(0,"div",22)(1,"p",9),d(2),l(3,"translate"),l(4,"formatTitle"),r(),a(5,"p",9),d(6),l(7,"customCurrency"),r()()),n&2){let t=p(2);o(2),x(s(4,4,s(3,2,"Taxa de limpeza"))),o(4),D(" ",G(7,6,t.property().cleaning_fee,!0)," ")}}function Ci(n,e){if(n&1&&(a(0,"div",22)(1,"p",9),d(2),l(3,"translate"),l(4,"formatTitle"),r(),a(5,"p",9),d(6),l(7,"customCurrency"),r()()),n&2){let t=p(2);o(2),x(s(4,4,s(3,2,"Taxa de servi\xE7o"))),o(4),x(G(7,6,t.serviceFee,!0))}}function yi(n,e){if(n&1&&(a(0,"div",22)(1,"p",25),d(2),l(3,"translate"),l(4,"formatTitle"),r(),a(5,"p",9),d(6),l(7,"customCurrency"),r()()),n&2){let t=p(2),i=dt(13);o(),u("popoverTrigger",i),o(),W(" ",t.additionalGuests()," ",t.additionalGuests()>1?"h\xF3spedes adicionais":s(4,6,s(3,4,"h\xF3spede adicional"))," "),o(4),D(" ",G(7,8,t.property().vacation_additional_value_guest*t.additionalGuests()*t.numberOfNights,!0)," ")}}function hi(n,e){if(n&1){let t=w();a(0,"div",12)(1,"div",13)(2,"div",14),b("click",function(){f(t);let c=p();return M(c.showCalendar("start"))}),a(3,"div")(4,"p",15),d(5),l(6,"translate"),r(),m(7,oi,2,1,"span",16),r(),m(8,ai,2,0,"mat-icon",17)(9,ri,2,0,"mat-icon",17),r()(),a(10,"div",13)(11,"div",14),b("click",function(){f(t);let c=p();return M(c.showCalendar("end"))}),a(12,"div")(13,"p",15),d(14),l(15,"translate"),r(),m(16,ci,2,1,"span",16),r(),m(17,li,2,0,"mat-icon",17)(18,pi,2,0,"mat-icon",17),r()(),m(19,si,1,8,"imobzi-calendar-availability",18),a(20,"div",19)(21,"div",20)(22,"div",14),b("click",function(){f(t);let c=p();return M(c.showGuestsCounter())}),a(23,"div")(24,"p",15),d(25),l(26,"translate"),r(),m(27,di,4,6,"span",16),r(),m(28,mi,2,0,"mat-icon",17),m(29,gi,2,0,"mat-icon",17),r()()(),m(30,_i,1,3,"imobzi-guests-counter",7),r(),a(31,"div",21)(32,"div",22)(33,"p",8),d(34),l(35,"customCurrency"),l(36,"translate"),l(37,"formatTitle"),r(),a(38,"p",8),d(39),l(40,"customCurrency"),r()(),m(41,ui,8,9,"div",22),m(42,Ci,8,9,"div",22),m(43,yi,8,11,"div",22),r()}if(n&2){let t=p();o(5),x(s(6,19,"CHECK-IN")),o(2),g(t.startDateSelected()&&t.startDateSelected()!==""?7:-1),o(),g(t.startCalendarVisible?8:9),o(6),x(s(15,21,"CHECKOUT")),o(2),g(t.endD
1ateSelected()&&t.endDateSelected()!==""?16:-1),o(),g(t.endCalendarVisible?17:18),o(2),g(t.startCalendarVisible||t.endCalendarVisible?19:-1),o(6),x(s(26,23,"H\xD3SPEDES")),o(2),g(t.adultsSelected()+t.childrenSelected()>0?27:-1),o(),g(t.changeExpandedCloseGuests()?-1:28),o(),g(t.changeExpandedCloseGuests()?29:-1),o(),g(t.guestCounterVisible?30:-1),o(4),Pt(" ",G(35,25,t.valueByNight,!0)," x ",t.numberOfNights," ",t.numberOfNights>1?"noites":s(37,30,s(36,28,"noite"))," "),o(5),x(G(40,32,t.valueByNight*t.numberOfNights,!0)),o(2),g(t.property().cleaning_fee?41:-1),o(),g(t.serviceFee?42:-1),o(),g(t.property().vacation_additional_value_guest>0&&t.additionalGuests()>0?43:-1)}}function bi(n,e){if(n&1){let t=w();a(0,"imobzi-popover")(1,"mat-icon",26),b("click",function(){f(t);let c=p();return M(c.closePopover())}),d(2,"close"),r(),a(3,"div",22)(4,"p",9),d(5),l(6,"translate"),l(7,"formatTitle"),l(8,"customCurrency"),l(9,"translate"),l(10,"formatTitle"),l(11,"customCurrency"),r()()()}if(n&2){let t=p();o(5),We(" ",t.additionalGuests()," ",t.additionalGuests()>1?"h\xF3spedes adicionais":s(7,8,s(6,6,"h\xF3spede adicional"))," x ",G(8,10,t.property().vacation_additional_value_guest,!0),"/h\xF3spede x ",t.numberOfNights," ",t.numberOfNights>1?"noites":s(10,15,s(9,13,"noite"))," = ",G(11,17,t.property().vacation_additional_value_guest*t.additionalGuests()*t.numberOfNights,!0)," ")}}function Pi(n,e){if(n&1){let t=w();a(0,"imobzi-guests-counter-mobile",27),b("searchAdults",function(c){f(t);let h=p();return M(h.onSearchAdults(c))})("searchChildren",function(c){f(t);let h=p();return M(h.onSearchChildren(c))})("closeCounter",function(){f(t);let c=p();return M(c.showGuestsCounterMobile())}),r()}if(n&2){let t=p();u("maxGuests",t.property().vacation_rental_guests)("adultsSelected",t.adultsSelected())("childrenSelected",t.childrenSelected())}}var ie=class n{isReleaseStage=un;popoverService=_(wt);propertyService=_(Yt);platformId=_(F);calendarService=_(xt);guestService=_(Zt);property=C(void 0);parameters=C(void 0);vacationRentalUrl=Y();stayNightsByDay=C();removeItens=["Seguro inc\xEAndio (aprox.)","Seguro inc\xEAndio","Taxa de limpeza","Taxa de servi\xE7o","IPTU (aprox.)"];startDateSelected=Dt(void 0);endDateSelected=Dt(void 0);startCalendarVisible;endCalendarVisible;calendarAvailability;numberOfNights;adultsSelected=Dt(0);childrenSelected=Dt(0);guestCounterVisible;guestCounterMobileVisible;valueByNight;valueByNightsTotal;totalVacation;serviceFee;totalValue;sumAdditionalValues=0;additional_values;displayModal;insuredValueForFire;constructor(){nt(()=>{let e=this.calendarService.dateSignal();e.dates[0]?(this.numberOfNights=e.nights,this.startDateSelected.set(e.dates[0]),this.endDateSelected.set(e.dates[1])):(this.startDateSelected.set(""),this.endDateSelected.set(""),this.numberOfNights=this.getMinimumNights()),this.calculateTotalVacation()}),nt(()=>{let e=this.guestService.guestsSignal(),t=typeof e.adults=="number"&&e.adults>0,i=typeof e.children=="number"&&e.children>=0;t&&i?(this.adultsSelected.set(e.adults),this.childrenSelected.set(e.children)):(this.adultsSelected.set(1),this.childrenSelected.set(0))})}ngOnInit(){this.displayModal=!1,this.calculateTotalValue(),this.calculateTotalVacation()}closePopover(){this.popoverService.setState(!0)}convertDateStringToFullDate=(e,t)=>Cn(e,t);onSearchDates(e){this.startDateSelected.set(e[0]),this.endDateSelected.set(e[1]),this.calendarService.updateCalendar([this.startDateSelected(),this.endDateSelected()]),e[1]?(this.startCalendarVisible=!1,this.endCalendarVisible=!1):(this.calendarAvailability="end",this.showCalendar(this.calendarAvailability),this.startCalendarVisible=!1,this.endCalendarVisible=!0),this.calculateTotalVacation()}showCalendar(e){e==="start"?(this.startCalendarVisible=!this.startCalendarVisible,this.endCalendarVisible=!1,this.calendarAvailability="start"):this.startDateSelected()?(this.endCalendarVisible=!this.endCalendarVisible,this.startCalendarVisible=!1,this.calendarAvailability="end"):(this.startCalendarVisible=!0,this.calendarAvailability="start")}closeDialog(){this.startCalendarVisible=!1,this.endCalendarVisible=!1}onSearchAdults(e){this.adultsSelected.set(e),this.calculateTotalVacation(),this.guestService.updateGuests(e,this.childrenSelected())}onSearchChildren(e){this.childrenSelected.set(e),this.calculateTotalVacation(),this.guestService.updateGuests(this.adultsSelected(),e)}showGuestsCounter(){this.endCalendarVisible=!1,this.startCalendarVisible=!1,window.innerWidth<=1024?(this.guestCounterVisible=!1,this.guestCounterMobileVisible=!this.guestCounterMobileVisible):(this.guestCounterMobileVisible=!1,this.guestCounterVisible=!this.guestCounterVisible)}changeExpandedCloseGuests(){return z(this.platformId)&&window.innerWidth<=1024?this.guestCounterMobileVisible:this.guestCounterVisible}additionalGuests(){return this.adultsSelected()+this.childrenSelected()-this.property().vacation_charge_additional_guests}showGuestsCounterMobile(){this.guestCounterMobileVisible=!this.guestCounterMobileVisible}async calculateTotalVacation(){let e=this.additionalGuests()>0?(this.property().vacation_additional_value_guest||0)*this.additionalGuests():0;this.valueByNight=await this.getValueByNight(),this.valueByNightsTotal=(this.valueByNight+e)*this.numberOfNights,this.totalVacation=this.valueByNightsTotal+(this.property().cleaning_fee||0),this.serviceFee=this.totalVacation*((this.property().service_fee||0)/100),this.totalVacation+=this.serviceFee,this.getVactionUrl()}getVactionUrl(){let e=new Je().set("start_at",this.startDateSelected()??"").set("end_at",this.endDateSelected()??"").set("adults",this.adultsSelected().toString()).set("children",this.childrenSelected().toString()),t="";z(this.platformId)&&(t=document.location.hostname.replace("www.","")),this.vacationRentalUrl.emit(`https://app.${t}/reserva/confirme/imovel/${this.property().code}?${e.toString()}`)}getValueByNight(){return new Promise(e=>{let t=this.startDateSelected(),i=this.endDateSelected();t&&i?this.propertyService.getVacationValues(t,i,this.property().db_id).subscribe(c=>e(c.rental_value),()=>e(this.property().rental_value||0)):e(this.property().rental_value||0)})}getMinimumNights(){if(!this.property()?.stay_nights_by_days)return 1;let e=Object.values(this.property()?.stay_nights_by_days).filter(t=>typeof t=="number");return e.length?Math.min(...e):1}calculateTotalValue(){this.additional_values=this.property().fields.additional_values.reduce((e,t)=>
1{let{name:i,value:c}=t[0];return(Number(c)||0)>0&&(e[i]=c),e},{});for(let e of["Seguro inc\xEAndio","approx_fire_insurance_value","Valor anual do IPTU"])if(e in this.additional_values){if(e==="Seguro inc\xEAndio")this.additional_values["Seguro inc\xEAndio (aprox.)"]=this.property().rental_value*.24/11,delete this.additional_values[e];else if(e==="approx_fire_insurance_value")this.additional_values["Seguro inc\xEAndio (aprox.)"]=this.additional_values[e],delete this.additional_values[e];else if(e==="Valor anual do IPTU"&&this.property().rental_value>0){let t=this.property();this.additional_values["IPTU (aprox.)"]=this.additional_values[e]/(t.iptu_installments?t.iptu_installments:12),delete this.additional_values[e]}}this.totalValue=this.property().rental_value;for(let e of Object.keys(this.additional_values))this.totalValue+=this.additional_values[e]}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=P({type:n,selectors:[["imobzi-property-widget"]],inputs:{property:[1,"property"],parameters:[1,"parameters"],stayNightsByDay:[1,"stayNightsByDay"],startDateSelected:[1,"startDateSelected"],endDateSelected:[1,"endDateSelected"],adultsSelected:[1,"adultsSelected"],childrenSelected:[1,"childrenSelected"]},outputs:{vacationRentalUrl:"vacationRentalUrl",startDateSelected:"startDateSelectedChange",endDateSelected:"endDateSelectedChange",adultsSelected:"adultsSelectedChange",childrenSelected:"childrenSelectedChange"},decls:15,vars:10,consts:[["vacation_rental",""],["popover",""],["id","property-widget"],[3,"property"],[3,"adr","nbh","cit","stt","showAddressOption"],[1,"property-price"],[1,"property-price-vacation-rental"],[3,"maxGuests","adultsSelected","childrenSelected"],[1,"h3"],[1,"h3","price_additional"],[3,"ngTemplateOutlet"],["width-100",""],[1,"class","calendar-guests-container","col-xs-12","col-sm-12","col-md-12","col-lg-12","col-xl-12"],[1,"calendar-guests-content","col-xs-6","col-sm-6","col-md-6","col-lg-6","col-xl-6"],[1,"h3","clickable-option",3,"click"],[1,"h3","vacation-h3"],[1,"color-title"],[1,"material-symbols-outlined"],[1,"calendar-guests-content","col-xs-6","col-sm-6","col-md-6","col-lg-12","col-xl-12",3,"startDateSelected","endDateSelected","calendarAvailability","displayModal","singleCalendar","stayNightsByDay","propertyCalendar","showBorder"],[1,"calendar-guests-content","col-xs-12","col-sm-12","col-md-12","col-lg-12","col-xl-12"],[1,"vacation-rental-option-search","col-xs-12","col-sm-12","col-md-12","col-lg-12","col-xl-12"],[1,"price-container","col-xs-12","col-sm-12","col-md-12","col-lg-12","col-xl-12"],[1,"price-group"],[1,"calendar-guests-content","col-xs-6","col-sm-6","col-md-6","col-lg-12","col-xl-12",3,"searchDates","closeDialog","startDateSelected","endDateSelected","calendarAvailability","displayModal","singleCalendar","stayNightsByDay","propertyCalendar","showBorder"],[3,"searchAdults","searchChildren","maxGuests","adultsSelected","childrenSelected"],[1,"h3","price_additional","clickable",3,"popoverTrigger"],[1,"material-symbols-outlined","popover-close-button",3,"click"],[3,"searchAdults","searchChildren","closeCounter","maxGuests","adultsSelected","childrenSelected"]],template:function(t,i){if(t&1&&(a(0,"section",2),y(1,"imobzi-property-title",3),m(2,Nn,1,5,"imobzi-location",4),m(3,jn,7,6,"div",5),m(4,Gn,3,2),m(5,Hn,1,0,"hr"),m(6,Yn,7,6,"div",5),m(7,Xn,9,7,"div",6),m(8,ei,3,2),m(9,ii,6,6,"div",5),r(),gt(10,hi,44,35,"ng-template",null,0,ft)(12,bi,12,20,"ng-template",null,1,ft),m(14,Pi,1,3,"imobzi-guests-counter-mobile",7)),t&2){let c,h,V,j;o(),u("property",i.property()),o(),g(i.property()&&((c=i.parameters())==null?null:c.site_show_address_options)!=="dont_show"?2:-1),o(),g(i.property().tags.indexOf("sale")!==-1?3:-1),o(),g(i.property().sale_value&&i.property().rental_value===0&&((h=i.property().fields)!=null&&h.additional_values)&&i.property().fields.additional_values.length>0?4:-1),o(),g(i.property().sale_value||i.property().tags.indexOf("sale")!==-1?5:-1),o(),g(i.property().tags.indexOf("rent")!==-1?6:-1),o(),g(i.property().rental_value&&i.property().tags.indexOf("vacation_rental")!==-1?7:-1),o(),g(i.property().rental_value&&i.property().sale_value>=0&&!i.property().vacation_rental&&((V=i.property().fields)!=null&&V.additional_values)&&i.property().fields.additional_values.length>0?8:-1),o(),g(i.property().rental_value&&i.property().tags.indexOf("rent")!==-1&&((j=i.property().fields)!=null&&j.additional_values)&&((j=i.property().fields)==null?null:j.additional_values.length)>0?9:-1),o(5),g(i.guestCounterMobileVisible?14:-1)}},dependencies:[St,kt,H,Gt,ee,ne,vn,kn,Xe,Ft,Ct,Ze,N,q],styles:["#property-widget[_ngcontent-%COMP%]   .property-price-vacation-rental[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center}#property-widget[_ngcontent-%COMP%]   .property-price[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center}#property-widget[_ngcontent-%COMP%]   .calendar-guests-container[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;border:1px solid var(--inactive);border-radius:10px}#property-widget[_ngcontent-%COMP%]   .calendar-guests-container[_ngcontent-%COMP%]   .clickable-option[_ngcontent-%COMP%]{cursor:pointer;display:flex;justify-content:space-between;align-items:center;width:100%}#property-widget[_ngcontent-%COMP%]   .calendar-guests-container[_ngcontent-%COMP%]   .calendar-guests-content[_ngcontent-%COMP%]:first-child{border-right:solid 1px var(--inactive)}
1#property-widget[_ngcontent-%COMP%]   .calendar-guests-container[_ngcontent-%COMP%]   .calendar-guests-content[_ngcontent-%COMP%]:nth-child(3n){border-top:solid 1px var(--inactive)}#property-widget[_ngcontent-%COMP%]   .calendar-guests-container[_ngcontent-%COMP%]   .calendar-guests-content[_ngcontent-%COMP%]{padding:16px;display:flex;flex-wrap:wrap;align-items:center}#property-widget[_ngcontent-%COMP%]   [width-100][_ngcontent-%COMP%]{width:100%}#property-widget[_ngcontent-%COMP%]   .vacation-h3[_ngcontent-%COMP%]{font-size:14px}#property-widget[_ngcontent-%COMP%]   .price-container[_ngcontent-%COMP%]{margin-top:16px}#property-widget[_ngcontent-%COMP%]   .price-container[_ngcontent-%COMP%]   .price-group[_ngcontent-%COMP%]{display:flex;justify-content:space-between}#property-widget[_ngcontent-%COMP%]   .price-container[_ngcontent-%COMP%]   .clickable[_ngcontent-%COMP%]{text-decoration:underline;cursor:pointer}#property-widget[_ngcontent-%COMP%]   .clickable-option[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%], #property-widget[_ngcontent-%COMP%]   .color-title[_ngcontent-%COMP%]{color:var(--title)!important}#property-widget[_ngcontent-%COMP%]   .btn-disabled-2[_ngcontent-%COMP%]{color:#8d8d8d;cursor:default}#property-widget[_ngcontent-%COMP%]   .btn-disabled-2[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{color:#8d8d8d!important}#property-widget[_ngcontent-%COMP%]   p.h3[_ngcontent-%COMP%]{color:var(--title);font-weight:700}#property-widget[_ngcontent-%COMP%]   .price_additional[_ngcontent-%COMP%]{font-weight:200}#property-widget[_ngcontent-%COMP%]     .property-title{margin:0 0 9px}#property-widget[_ngcontent-%COMP%]     .property-title h3{color:var(--title)!important}#property-widget[_ngcontent-%COMP%]     .property-title h3{font-size:18px!important}@media screen and (min-width:320px){#property-widget[_ngcontent-%COMP%]     .property-title h3{font-size:calc(18px + .0125*(100vw - 320px))!important}}@media screen and (min-width:1920px){#property-widget[_ngcontent-%COMP%]     .property-title h3{font-size:38px!important}}#property-widget[_ngcontent-%COMP%]     .property-title .subtitle{font-family:Montserrat,sans-serif;font-weight:400;font-size:12px!important;color:var(--subtitle)!important}#property-widget[_ngcontent-%COMP%]     .property-location .subtitle{color:var(--subtitle)!important;margin-bottom:25px}imobzi-property-title[_ngcontent-%COMP%], imobzi-location[_ngcontent-%COMP%]{display:none}imobzi-popover[_ngcontent-%COMP%]     .popover-container .price-group .price_additional{color:#000!important}.popover-close-button[_ngcontent-%COMP%]{float:right;cursor:pointer}imobzi-calendar-availability[_ngcontent-%COMP%]{width:100%}imobzi-calendar-availability[_ngcontent-%COMP%]     imobzi-calendar{width:100%}imobzi-calendar-availability[_ngcontent-%COMP%]     #calendar{box-shadow:none!important}imobzi-calendar-availability[_ngcontent-%COMP%]     #calendar table tbody tr td div{padding:0;width:30px;height:30px;display:flex;align-items:center;justify-content:center}imobzi-calendar-availability[_ngcontent-%COMP%]     .calendar-container{margin:0!important}imobzi-calendar-availability[_ngcontent-%COMP%]     .calendar-container mat-card{box-shadow:none!important;padding:0!important}imobzi-calendar-availability[_ngcontent-%COMP%]     .calendar-container mat-card mat-card-header{margin:1.1vh 0!important}imobzi-calendar-availability[_ngcontent-%COMP%]     .calendar-container mat-card mat-card-content{padding:0!important}imobzi-guests-counter[_ngcontent-%COMP%]{width:100%}imobzi-guests-counter[_ngcontent-%COMP%]     #guests-counter{box-shadow:none!important;padding:16px!important}imobzi-guests-counter[_ngcontent-%COMP%]     #guests-counter span{color:var(--title)!important}imobzi-guests-counter[_ngcontent-%COMP%]     #guests-counter .counter-container .h3{color:var(--title)!important}imobzi-guests-counter[_ngcontent-%COMP%]     #guests-counter .counter-container .h3 .h4{color:var(--subtitle)!important}imobzi-guests-counter[_ngcontent-%COMP%]     #guests-counter .counter-container .counter{grid-gap:10px}imobzi-guests-counter-mobile[_ngcontent-%COMP%]     #guests-counter span{color:var(--title)!important}imobzi-guests-counter-mobile[_ngcontent-%COMP%]     #guests-counter .counter-container .h3{color:var(--title)!important}imobzi-guests-counter-mobile[_ngcontent-%COMP%]     #guests-counter .counter-container .h3 .h4{color:var(--subtitle)!important}.guests-total[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.guests-total[_ngcontent-%COMP%]   p.h3[_ngcontent-%COMP%]{color:#000}@media(max-width:767px){  .popover-directive-container{bottom:0!important;left:0!important;right:0!important}  .popover-directive-container imobzi-popover{width:100%}  .popover-directive-container imobzi-popover .popover-container{width:100%;max-width:none;border-radius:0!important}imobzi-property-title[_ngcontent-%COMP%], imobzi-location[_ngcontent-%COMP%]{display:block}}@media(min-width:768px)and (max-width:1023px){  .popover-directive-container{bottom:0!important;left:0!important;right:0!important}  .popover-directive-container imobzi-popover{width:100%}  .popover-directive-container imobzi-popover .popover-container{width:100%;max-width:none;border-radius:0!important}imobzi-property-title[_ngcontent-%COMP%], imobzi-location[_ngcontent-%COMP%]{display:block}}@media(min-width:1024px)and (max-width:1199px){imobzi-calendar-availability[_ngcontent-%COMP%]     #calendar table tbody tr td div{border-radius:15px;width:100%;height:50px}imobzi-property-title[_ngcontent-%COMP%], imobzi-location[_ngcontent-%COMP%]{display:block}}"]})};function fi(n,e){if(n&1&&(S(0,"section",0)(1,"a",1),d(2),l(3,"translate"),k()()),n&2){let t=p();o(),rt("btn btn-md full-width vacation-button "+t.customButtonClass()),K("href",t.redirect(),T),o(),D(" ",s(3,4,t.label())," ")}}var oe=class n{property=C(void 0);vacationRentalUrl=C(void 0);_calendarService=_(xt);_guestService=_(Zt);platformConfig={airbnb:{match:"airbnb",label:"RESERVAR NO AIRBNB",class:"btn-airbnb",params:{checkin:"check_in",checkout:"check_out",adults:"adults",children:"children"}},vrbo:{match:"vrbo",label:"RESERVAR NO VRBO",class:"btn-vrbo",params:{checkin:"startDate",checkout:"endDate",adults:"adults",children:"children"}},booking:{match:"booking",label:"RESERVAR NO BOOKING",class:"btn-booking",params:{checkin:"checkin",checkout:"checkout",adults:"group_adults",children:"group_children"}}};platform=L(()=>{let e=this.property()?.platform_listing_url;if(!e)return null;let t=new URL(e).hostname;return Object.values(this.platformConfig).find(i=>t.includes(i.match))});label=L(()=>this.platform()?.label??"RESERVAR");customButtonClass=L(()=>` ${this.platform()?.class}`);redirect(){let e=this.platform(),t=this.property().platform_listing_url;if(!t||!e)return"";let i=this._calendarService.dateSignal(),c=this._guestService.guestsSignal(),[h,V]=i.dates,j=c.adults,st=c.children,ut=new URL(t);return h&&ut.searchParams.set(e.params.checkin,h),V&&ut.searchParams.set(e.params.checkout,V),j&&ut.searchParams.set(e.params.adults,j.toString()),st&&ut.searchParams.set(e.params.children,st.toString()),ut.toString()}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=P({type:n,selectors:[["imobzi-platforms-vacation-rental"]],inputs:{property:[1,"property"],vacationRentalUrl:[1,"vacationRentalUrl"]},decls:1,vars:1,consts:[[1,"platform-vacation-rental"],["target","_blank",1,"btn","btn-md","full-width","vacation-button","platform-vacation-rental",3,"href"]],template:function(t,i){t&1&&m(0,fi,4,6,"section",0),t&2&&g(i.platform()?0:-1)},dependencies:[N],styles:[".platform-vacation-rental[_ngcontent-%COMP%]{width:100%;display:flex;flex-wrap:wrap;margin-bottom:5px}.platform-vacation-rental[_ngcontent-%COMP%]   .vacation-button[_ngcontent-%COMP%]{width:100%}.platform-vacation-rental[_ngcontent-%COMP%]   .vacation-button[_ngcontent-%COMP%]:hover{background-color:var(--secondary-background)}.platform-vacation-rental[_ngcontent-%COMP%]   .btn-airbnb[_ngcontent-%COMP%]{background:#ff385c;color:#fff}.platform-vacation-rental[_ngcontent-%COMP%]   .btn-vrbo[_ngcontent-%COMP%]{background:#1b75bb;color:#fff}.platform-vacation-rental[_ngcontent-%COMP%]   .btn-booking[_ngcontent-%COMP%]{background:#003580;color:#fff}"]})};var Mi=n=>["/corretor",n];function xi(n,e){if(n&1&&(a(0,"a",5),d(1),l(2,"uppercase"),l(3,"translate"),r()),n&2){let t=p();rt($("margin-bottom-10 btn btn-md ",t.buttonClass," button-action")),u("routerLink",Vt(9,Mi,t.listingBroker.nickname)),o(),D(" ",s(3,7,s(2,5,"Veja todos meus im\xF3veis ("+(t.listingBroker.count||0)+")"))," ")}}function vi(n,e){if(n&1){let t=w();a(0,"button",6),b("click",function(){f(t);let c=p();return M(c.btnChanged("rent_online"))}),d(1),l(2,"uppercase"),l(3,"translate"),r()}
1n&2&&(o(),D(" ",s(3,3,s(2,1,"Alugue Online"))," "))}function Oi(n,e){if(n&1&&y(0,"imobzi-phone-numbers",3),n&2){let t=p();u("customClass",t.buttonClass+" phone-numbers")("parameters",t.parameters())("showWhatsapp",!0)("showPhone",!0)("property",t.property())}}function wi(n,e){if(n&1&&y(0,"imobzi-platforms-vacation-rental",4),n&2){let t=p();u("vacationRentalUrl",t.vacationRentalUrl)("property",t.property())}}function Si(n,e){if(n&1&&y(0,"imobzi-custom-button",7),n&2){let t=p().$implicit,i=p();u("customClass","btn btn-md full-width "+i.buttonClass)("vacationRentalUrl",i.vacationRentalUrl())("customButton",t)}}function ki(n,e){if(n&1&&y(0,"imobzi-custom-button",7),n&2){let t=p().$implicit,i=p();u("customClass","btn btn-md full-width btn-primary-1")("vacationRentalUrl",i.vacationRentalUrl())("customButton",t)}}function Bi(n,e){if(n&1&&m(0,Si,1,3,"imobzi-custom-button",7)(1,ki,1,3,"imobzi-custom-button",7),n&2){let t=e.$implicit,i=p();g(t.action.modal_type!=="reserve"?0:i.property().vacation_rental?1:-1)}}var ae=class n{_appService=_(U);_parametersService=_(et);_homeService=_(Q);_integrationsService=_(qt);property=C(void 0);vacationRentalUrl=C(void 0);btnAction=Y();siteConfiguration=this._homeService.getSiteConfiguration();parameters=this._parametersService.getParameters();hasVacationRentalPlatforms=this._integrationsService.getHasVacationRentalPlatforms();customButtons=L(()=>this.siteConfiguration()?.custom_buttons.widget);layoutBucketPath=this._appService.layoutBucketPath();isDark=L(()=>{let e=this.siteConfiguration()?.theme?.card_color?.trim()||"#ffffff";return mt(e)});listingBroker;buttons;ngOnInit(){this.listingBroker=this.property().listing_broker}btnChanged(e){this.btnAction.emit(e)}realtorImgErrorHandler(e){e.target.onerror=null,e.target.src=`${this._appService.layoutBucketPath()}realtor.png`}get buttonClass(){return this.isDark()?"btn-light-1":"btn-primary-2"}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=P({type:n,selectors:[["imobzi-buttons-actions"]],inputs:{property:[1,"property"],vacationRentalUrl:[1,"vacationRentalUrl"]},outputs:{btnAction:"btnAction"},decls:7,vars:4,consts:[[1,"buttons-actions-section"],[3,"class","routerLink"],[1,"margin-bottom-10","relative","btn","btn-md","btn-primary-1","button-action"],[1,"button-action",3,"customClass","parameters","showWhatsapp","showPhone","property"],[1,"button-action",3,"vacationRentalUrl","property"],[3,"routerLink"],[1,"margin-bottom-10","relative","btn","btn-md","btn-primary-1","button-action",3,"click"],[1,"button-action",3,"customClass","vacationRentalUrl","customButton"]],template:function(t,i){if(t&1&&(a(0,"section",0),m(1,xi,4,11,"a",1),m(2,vi,4,5,"button",2),m(3,Oi,1,5,"imobzi-phone-numbers",3),m(4,wi,1,2,"imobzi-platforms-vacation-rental",4),v(5,Bi,2,1,null,null,Z),r()),t&2){let c;o(),g(i.listingBroker!=null&&i.listingBroker.nickname&&((c=i.siteConfiguration())==null||c.details_page==null?null:c.details_page.realtors_avatar)!=="not_display"&&((c=i.siteConfiguration())==null||c.details_page==null?null:c.details_page.site_show_all_properties_button)!==!1?1:-1),o(),g(i.property().available_digital_real_estate&&!i.property().vacation_rental?2:-1),o(),g(i.property()&&i.parameters()?3:-1),o(),g(i.property()&&i.hasVacationRentalPlatforms()?4:-1),o(),O(i.customButtons())}},dependencies:[xn,vt,oe,jt,Mt,N],styles:[".buttons-actions-section[_ngcontent-%COMP%]{width:100%;display:flex;flex-wrap:wrap}.buttons-actions-section[_ngcontent-%COMP%]   .button-action[_ngcontent-%COMP%]{width:100%}  .phone-numbers{margin:0 0 10px!important}  imobzi-custom-button:not(:last-child) .btn{margin-bottom:10px}  .full-width{width:100%}  imobzi-platforms-vacation-rental{width:100%}@media(min-width:768px)and (max-width:1023px){.buttons-actions-section[_ngcontent-%COMP%]{column-gap:10px}.buttons-actions-section[_ngcontent-%COMP%]   .button-action[_ngcontent-%COMP%]{width:calc(50% - 5px)}}.margin-bottom-10[_ngcontent-%COMP%]{margin-bottom:10px}"]})};function Ti(n,e){if(n&1&&(S(0,"figure"),X(1,"img",1),k(),S(2,"h2"),d(3),k()),n&2){let t=e;o(),K("alt",$("Imobili\xE1ria ",t.trade_mark))("title",$("Imobili\xE1ria ",t.trade_mark))("src",t.logotype_image_url,T),o(2),x(t.trade_mark)}}var re=class n{homeService=_(Q);property=C(void 0);parameters=C(void 0);siteConfiguration=this.homeService.getSiteConfiguration();static \u0275fac=function(t){return new(t||n)};static \u0275cmp=P({type:n,selectors:[["imobzi-real-estate"]],inputs:{property:[1,"property"],parameters:[1,"parameters"]},decls:2,vars:1,consts:[["id","real-estate"],["loading","lazy","decoding","async",3,"src","alt","title"]],template:function(t,i){if(t&1&&(S(0,"section",0),m(1,Ti,4,6),k()),t&2){let c;o(),g((c=(c=i.property())==null?null:c.real_estate)?1:-1,c)}},styles:["#real-estate[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{color:var(--title)}#real-estate[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{color:var(--subtitle)}#real-estate[_ngcontent-%COMP%]   figure[_ngcontent-%COMP%]{position:relative;border-radius:50%;border:1px solid var(--inactive);margin:auto;margin-bottom:1vh}#real-estate[_ngcontent-%COMP%]   figure[_ngcontent-%COMP%]{width:64px}@media screen and (min-width:992px){#real-estate[_ngcontent-%COMP%]   figure[_ngcontent-%COMP%]{width:calc(64px + 36 * (100vw - 992px) / 928)}}@media screen and (min-width:1920px){#real-estate[_ngcontent-%COMP%]   figure[_ngcontent-%COMP%]{width:100px}}#real-estate[_ngcontent-%COMP%]   figure[_ngcontent-%COMP%]{height:64px}@media screen and (min-width:992px){#real-estate[_ngcontent-%COMP%]   figure[_ngcontent-%COMP%]{height:calc(64px + 36 * (100vw - 992px) / 928)}}@media screen and (min-width:1920px){#real-estate[_ngcontent-%COMP%]   figure[_ngcontent-%COMP%]{height:100px}}#real-estate[_ngcontent-%COMP%]   figure[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{position:absolute;border-radius:50%;object-fit:cover}#real-estate[_ngcontent-%COMP%]   figure[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:64px}@media screen and (min-width:992px){#real-estate[_ngcontent-%COMP%]   figure[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:calc(64px + 36 * (100vw - 992px) / 928)}}@media screen and (min-width:1920px){#real-estate[_ngcontent-%COMP%]   figure[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:100px}}#real-estate[_ngcontent-%COMP%]   figure[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{height:64px}@media screen and (min-width:992px){#real-estate[_ngcontent-%COMP%]   figure[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{height:calc(64px + 36 * (100vw - 992px) / 928)}}@media screen and (min-width:1920px){#real-estate[_ngcontent-%COMP%]   figure[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{height:100px}}#real-estate[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%], #real-estate[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{text-align:center}"]})};function Di(n,e){if(n&1){let t=w();a(0,"imobzi-property-widget",4),b("vacationRentalUrl",function(c){f(t);let h=p();return M(h.changeVacationRentalUrl(c))}),r()}if(n&2){let t=p();u("startDateSelected",t.startDateSelected)("endDateSelected",t.endDateSelected)("adultsSelected",t.adultsSelected)("childrenSelected",t.childrenSelected)("parameters",t.parameters())("property",t.property())}}function zi(n,e){if(n&1&&y(0,"imobzi-listing-broker",5),n&2){let t=p(2);u("listingBroker",t.property().listing_broker)("parameters",t.parameters())}}function Ei(n,e){if(n&1&&y(0,"imobzi-real-estate",6),n&2){let t=p(2);u("property",t.property())}}function Ii(n,e){if(n&1&&m(0,zi,1,2,"imobzi-listing-broker",5)(1,Ei,1,1,"imobzi-real-estate",6),n&2){let t=p();g(t.property().listing_broker&&!t.property().member_register_code?0:t.property().member_register_code?1:-1)}}function Vi(n,e){if(n&1){let t=w();a(0,"imobzi-buttons-actions",7),b("btnAction",function(c){f(t);let h=p();return M(h.openContactBrokerDialog(c))}),r()}if(n&2){let t=p();u("vacationRentalUrl",t.vacationRentalUrl)("property",t.property())}}var Bt=class n{dialog=_(tt);property=C(void 0);parameters=C(void 0);saveSearchParams=C({});hostname;vacationRentalUrl;startDateSelected="";endDateSelected="";adultsSelected;childrenSelected;ngOnInit(){let e=this.saveSearchParams();e&&(e.dates&&(Array.isArray(e.dates[0])?(this.startDateSelected=e.dates[0][0]??"",this.endDateSelected=e.dates[0][1]??""):(this.startDateSelected=e.dates[0]??"",this.endDateSelected=e.dates[1]??"")),this.adultsSelected=Number(e.adults??1),this.childrenSelected=Number(e.children??0))}changeVacationRentalUrl(e){this.vacationRentalUrl=e}openContactBrokerDialog(e){if(e!=="rent_online"){let t;e==="schedule_visit"||e==="reserve"?t=!0:t=!1,this.dialog.open(Kt,{panelClass:"custom-dialog-container",id:e,data:{property:this.property(),parameters:this.parameters(),formType:e,stepVisit:t,dates:this.saveSearchParams().dates}})}else this.hostname=document.location.hostname.replace("www.",""),this.hostname==="127.0.0.1"&&(this.hostname="localhost"),window.open(`https://app.${this.hostname}/visita/agendamento/imovel/${this.property().code}`,"_blank")}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=P({type:n,selectors:[["imobzi-widget-card"]],inputs:{property:[1,"property"],parameters:[1,"parameters"],saveSearchParams:[1,"saveSearchParams"]},decls:7,vars:3,consts:[[1,"card-content"],[1,"col-xs-12","col-sm-12","col-md-12","col-lg-12","col-xl-12"],[1,"col-xs-12","col-sm-12","col-md-12","col-lg-12","col-xl-12",3,"startDateSelected","endD
1ateSelected","adultsSelected","childrenSelected","parameters","property"],[3,"vacationRentalUrl","property"],[1,"col-xs-12","col-sm-12","col-md-12","col-lg-12","col-xl-12",3,"vacationRentalUrl","startDateSelected","endDateSelected","adultsSelected","childrenSelected","parameters","property"],[1,"col-xs-12","col-sm-12","col-md-12","col-lg-12","col-xl-12",3,"listingBroker","parameters"],[3,"property"],[3,"btnAction","vacationRentalUrl","property"]],template:function(t,i){t&1&&(a(0,"mat-card",0)(1,"mat-card-header",1),m(2,Di,1,6,"imobzi-property-widget",2),r(),a(3,"mat-card-content",1),m(4,Ii,2,1),r(),a(5,"mat-card-actions",1),m(6,Vi,1,2,"imobzi-buttons-actions",3),r()()),t&2&&(o(2),g(i.property()?2:-1),o(2),g(i.property()?4:-1),o(2),g(i.property()&&i.parameters()?6:-1))},dependencies:[te,Ut,mn,ie,sn,dn,ae,re],styles:[".card-content[_ngcontent-%COMP%]{padding:2vh 3vh;background-color:#fff;border-radius:10px;display:flex;flex-direction:column;justify-content:space-between}.mat-mdc-card-actions[_ngcontent-%COMP%]{padding:0}.mat-mdc-card-content[_ngcontent-%COMP%]{margin-bottom:1vh}imobzi-buttons-actions[_ngcontent-%COMP%]{width:100%}@media(max-width:767px){.card-content[_ngcontent-%COMP%]{border-radius:10px}}@media(min-width:1024px)and (max-width:1199px){imobzi-buttons-actions[_ngcontent-%COMP%]{display:flex}}.mat-mdc-card-actions[_ngcontent-%COMP%]{min-height:0!important}"]})};function Ai(n,e){if(n&1&&y(0,"imobzi-custom-button",4),n&2){let t=e.$implicit;u("customClass","btn btn-md btn-light-1")("customButton",t)}}function Fi(n,e){if(n&1&&(a(0,"div",3),v(1,Ai,1,2,"imobzi-custom-button",4,Z),r()),n&2){let t=p();o(),O(t.customButtons())}}var ce=class n{platformId=_(F);_parametersService=_(et);_homeService=_(Q);property=C(void 0);saveSearchParams=C({});siteConfiguration=this._homeService.getSiteConfiguration();parameters=this._parametersService.getParameters();customButtons=L(()=>this.siteConfiguration()?.custom_buttons.widget_share);windowScrolled;windowScrolledBottom;setScroll=480;onWindowScroll(){z(this.platformId)&&(window.pageYOffset>this.setScroll||document.documentElement.scrollTop>this.setScroll||document.body.scrollTop>this.setScroll?this.windowScrolled=!0:(this.windowScrolled&&window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop<this.setScroll)&&(this.windowScrolled=!1),window.innerHeight+window.scrollY+341>=document.body.offsetHeight?this.windowScrolledBottom=!0:this.windowScrolledBottom=!1)}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=P({type:n,selectors:[["imobzi-widget-container"]],hostBindings:function(t,i){t&1&&b("scroll",function(){return i.onWindowScroll()},Et)},inputs:{property:[1,"property"],saveSearchParams:[1,"saveSearchParams"]},decls:4,vars:10,consts:[["id","widget-container",1,"col-xs-11","col-sm-12","col-md-9","col-lg-9","col-xl-9"],[1,"card-container"],[3,"property","saveSearchParams","parameters"],[1,"card-sharing"],[1,"btn-card-sharing",3,"customClass","customButton"]],template:function(t,i){if(t&1&&(a(0,"aside",0)(1,"mat-card",1),y(2,"imobzi-widget-card",2),m(3,Fi,3,0,"div",3),r()()),t&2){let c,h;o(),R("scroll",i.windowScrolled===!0)("scrollBottom",i.windowScrolledBottom===!0),o(),R("widget-card-border",((c=i.customButtons())==null?null:c.length)===0),u("property",i.property())("saveSearchParams",i.saveSearchParams())("parameters",i.parameters()),o(),g(((h=i.customButtons())==null?null:h.length)>0?3:-1)}},dependencies:[vt,Ut,Bt],styles:["#widget-container[_ngcontent-%COMP%]{position:relative;display:flex;z-index:99;transition:1s cubic-bezier(0,-.24,1,1.36)}#widget-container[_ngcontent-%COMP%]   .card-container[_ngcontent-%COMP%]{position:absolute;margin-left:11px;padding:0;border-radius:10px;z-index:99;background-color:var(--primary-background)}#widget-container[_ngcontent-%COMP%]   .card-sharing[_ngcontent-%COMP%]{background-color:var(--primary-background);display:flex;flex-direction:column;align-items:center;padding:2vh 3vh;border-bottom-left-radius:10px;border-bottom-right-radius:10px}#widget-container[_ngcontent-%COMP%]   .card-sharing[_ngcontent-%COMP%]   .btn-card-sharing[_ngcontent-%COMP%]{width:100%}.scroll[_ngcontent-%COMP%]{position:fixed!important;top:50%;transform:translateY(-50%);transition:1s cubic-bezier(0,-.24,1,1.36)}.scrollBottom[_ngcontent-%COMP%]{top:100px!important}.widget-card-border[_ngcontent-%COMP%]     .card-content{border-radius:10px!important}@media(max-width:767px){#widget-container[_ngcontent-%COMP%]{position:absolute;top:76px!important}#widget-container[_ngcontent-%COMP%]   .card-container[_ngcontent-%COMP%]{max-width:100%}#widget-container[_ngcontent-%COMP%]   imobzi-listing-broker[_ngcontent-%COMP%], #widget-container[_ngcontent-%COMP%]   .card-sharing[_ngcontent-%COMP%]{display:none}.scroll[_ngcontent-%COMP%]{position:absolute!important;transition:none!important}.scrollBottom[_ngcontent-%COMP%]{top:76px!important;transition:none!important}}@media(min-width:1200px)and (max-width:1399px){#widget-container[_ngcontent-%COMP%]{top:87vh}#widget-container[_ngcontent-%COMP%]   .card-container[_ngcontent-%COMP%]{min-width:300px;max-width:310px}#widget-container[_ngcontent-%COMP%]   imobzi-listing-broker[_ngcontent-%COMP%], #widget-container[_ngcontent-%COMP%]   .card-sharing[_ngcontent-%COMP%]{display:block}.scrollBottom[_ngcontent-%COMP%]{top:4vh!important}}@media(min-width:1399px){#widget-container[_ngcontent-%COMP%]{top:85vh}#widget-container[_ngcontent-%COMP%]   .card-container[_ngcontent-%COMP%]{min-width:380px;max-width:398px}#widget-container[_ngcontent-%COMP%]   imobzi-listing-broker[_ngcontent-%COMP%]{display:block}#widget-container[_ngcontent-%COMP%]   .card-sharing[_ngcontent-%COMP%]{display:flex}.scrollBottom[_ngcontent-%COMP%]{top:100px!important}}"]})};var Ni=["thumb"],Ri=["galleryContainer"];function $i(n,e){if(n&1&&(a(0,"div",12),y(1,"img",13),r()),n&2){let t=p(2),i=t.$implicit,c=t.$index,h=p();
1o(),u("id",$("img-",c))("src",A(h.galleryPhotoUrl(i.url)),T)("alt",A(i.description))("title",A(i.description))}}function ji(n,e){if(n&1&&m(0,$i,2,8,"div",12),n&2){let t=p().$index,i=p();g(i.visiblePhotos(t)?0:-1)}}function Li(n,e){if(n&1&&y(0,"iframe",11),n&2){let t=p().$implicit,i=p();u("src",i.sanitizeUrl(t.embedUrl||t.url),Ae)}}function Ui(n,e){if(n&1&&(a(0,"swiper-slide",4),m(1,ji,1,1)(2,Li,1,1,"iframe",11),r()),n&2){let t=e.$implicit;o(),g(t.category==="photos"?1:2)}}var pt=class n{dialogRef=_(Nt);breakpointsService=_(lt);sanitizer=_(nn);platformId=_(F);data=_(Rt);windowSize=10;currentIndex=0;thumb=J("thumb");galleryContainer=J("galleryContainer");displayMidia;displayAction;galleryTop={spaceBetween:10,slidesPerView:"1",lazy:!1,effect:"slide",slideToClickedSlide:!1,loop:!0,watchOverflow:!0,speed:600,direction:"horizontal",pagination:{el:".gallery-pagination",type:"fraction",clickable:!0,renderFraction(e,t){return'<span class="'+e+'"></span> / <span class="'+t+'"></span>'}}};constructor(){this.getBreakpoints()}sanitizeUrl(e){if(e&&e.changingThisBreaksApplicationSecurity){if(typeof e.changingThisBreaksApplicationSecurity=="string")return this.sanitizer.bypassSecurityTrustResourceUrl(e.changingThisBreaksApplicationSecurity);let t=e.changingThisBreaksApplicationSecurity;if(t.changingThisBreaksApplicationSecurity)return this.sanitizer.bypassSecurityTrustResourceUrl(t.changingThisBreaksApplicationSecurity)}return this.sanitizer.bypassSecurityTrustResourceUrl(e)}ngOnInit(){this.galleryTop.loopedSlides=this.data.path.midia.length,this.data.path.midia.forEach((e,t)=>{t<1?this.displayAction=!0:this.displayAction=!1,e.category==="videos"||e.category==="v\xEDdeos"||e.category==="virtual_tour"?this.displayMidia=!0:(e.category="photos",this.displayMidia=!1)})}ngAfterViewInit(){this.galleryContainer().nativeElement.swiper.slideTo(this.data.path.index,0),this.getImgSize(this.data.path.index)}getImgSize(e){typeof e!="number"&&(e=e.detail[0].activeIndex);let t=document.getElementById(`img-${e}`);if(t!==null){let i=t.naturalWidth,c=t.naturalHeight,h=(i/c).toFixed(2),V=(t.parentElement.clientWidth/t.parentElement.clientHeight).toFixed(2);if(i>c&&h!=="1.33"){document.documentElement.style.setProperty("--object-fit","fill");let j=Number((Number(V)-Number(h)).toFixed(2));.25>=j&&j>=-.25&&i>=t.parentElement.clientWidth-300?this.removeClassInHtmlElement(`#img-${e}`,"image-natural-size"):this.addClassInHtmlElement(`#img-${e}`,"image-natural-size")}else document.documentElement.style.setProperty("--object-fit","contain")}}addClassInHtmlElement(e,t){document.querySelectorAll(e).forEach(i=>{i.classList.contains(t)||i.classList.add(t)})}removeClassInHtmlElement(e,t){document.querySelectorAll(e).forEach(i=>{i.classList.contains(t)&&i.classList.remove(t)})}getBreakpoints(){z(this.platformId)&&this.setPortraitLayout(this.breakpointsService.isInViewPort(it)())}setPortraitLayout(e){e?document.documentElement.style.setProperty("--display","none"):document.documentElement.style.setProperty("--display","flex")}visiblePhotos(e){let t=this.currentIndex+this.windowSize,i=this.currentIndex-this.windowSize;return e>=i&&e<=t}onSlideChange(){this.currentIndex=this.galleryContainer()?.nativeElement.swiper.realIndex||0}swipePrev(){this.galleryContainer().nativeElement.swiper.slidePrev()}swipeNext(){this.galleryContainer().nativeElement.swiper.slideNext()}closeModal(){this.dialogRef.close()}isMobile=this.breakpointsService.isInViewPort(it);galleryPhotoUrl(e){return this.isMobile()?e:Ht(e)}setPhotoUrlResize(e,t){return _t(e,t)}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=P({type:n,selectors:[["imobzi-gallery-modal"]],viewQuery:function(t,i){t&1&&ot(i.thumb,Ni,5)(i.galleryContainer,Ri,5),t&2&&at(2)},decls:14,vars:6,consts:[["galleryContainer",""],[3,"onModalChanged","closeIconColor"],["id","gallery-modal",1,"mat-dialog-content"],["appSwiper","",1,"gallery-container",3,"swiperslidechange","config"],[1,"gallery-slide"],[1,"gallery-pagination"],[1,"actions-container"],["type","button","aria-label","Button Previous Page","mat-icon-button","",1,"btn-icon","btn-light-1","btn-lg-64","swiper-prev","shadow",3,"click"],["aria-hidden","true","aria-label","Previous",1,"material-symbols-rounded"],["type","button","aria-label","Button Next Page","mat-icon-button","",1,"btn-icon","btn-light-1","btn-lg-64","swiper-next","shadow",3,"click"],["aria-hidden","true","aria-label","Next",1,"material-symbols-rounded"],["frameborder","0","auto
1play","","webkitallowfullscreen","","mozallowfullscreen","","allowfullscreen","",1,"gallery-video","img-responsive","img-rounded",3,"src"],[1,"img-responsive","img-rounded","image-container-responsive"],[1,"gallery-image","img-responsive","img-rounded",3,"id","src","alt","title"]],template:function(t,i){t&1&&(a(0,"imobzi-modal",1),b("onModalChanged",function(){return i.closeModal()}),a(1,"section",2)(2,"swiper-container",3,0),b("swiperslidechange",function(){return i.onSlideChange()}),v(4,Ui,3,1,"swiper-slide",4,E),y(6,"div",5),r(),a(7,"div",6)(8,"button",7),b("click",function(){return i.swipePrev()}),a(9,"mat-icon",8),d(10," chevron_left "),r()(),a(11,"button",9),b("click",function(){return i.swipeNext()}),a(12,"mat-icon",10),d(13," chevron_right "),r()()()()()),t&2&&(u("closeIconColor","#fff"),o(),R("fullModal",!i.displayMidia),o(),u("config",i.galleryTop),o(2),O(i.data.path.midia),o(3),R("displayNone",i.displayAction))},dependencies:[Wt,Ot,H],styles:["[_ngcontent-%COMP%]:root{--object-fit: contain;--display: flex;--height-tab: 100vh}.fullModal[_ngcontent-%COMP%]{width:100vw}imobzi-modal[_ngcontent-%COMP%]{max-height:100vh;max-width:100vw}.actions-container[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center}.actions-container[_ngcontent-%COMP%]   .swiper-prev[_ngcontent-%COMP%], .actions-container[_ngcontent-%COMP%]   .swiper-next[_ngcontent-%COMP%]{width:24px}@media screen and (min-width:320px){.actions-container[_ngcontent-%COMP%]   .swiper-prev[_ngcontent-%COMP%], .actions-container[_ngcontent-%COMP%]   .swiper-next[_ngcontent-%COMP%]{width:calc(24px + .025*(100vw - 320px))}}@media screen and (min-width:1920px){.actions-container[_ngcontent-%COMP%]   .swiper-prev[_ngcontent-%COMP%], .actions-container[_ngcontent-%COMP%]   .swiper-next[_ngcontent-%COMP%]{width:64px}}.actions-container[_ngcontent-%COMP%]   .swiper-prev[_ngcontent-%COMP%], .actions-container[_ngcontent-%COMP%]   .swiper-next[_ngcontent-%COMP%]{height:24px}@media screen and (min-width:320px){.actions-container[_ngcontent-%COMP%]   .swiper-prev[_ngcontent-%COMP%], .actions-container[_ngcontent-%COMP%]   .swiper-next[_ngcontent-%COMP%]{height:calc(24px + .025*(100vw - 320px))}}@media screen and (min-width:1920px){.actions-container[_ngcontent-%COMP%]   .swiper-prev[_ngcontent-%COMP%], .actions-container[_ngcontent-%COMP%]   .swiper-next[_ngcontent-%COMP%]{height:64px}}.actions-container[_ngcontent-%COMP%]   .swiper-prev[_ngcontent-%COMP%]:hover, .actions-container[_ngcontent-%COMP%]   .swiper-next[_ngcontent-%COMP%]:hover{border-color:#fff;background-color:transparent}.actions-container[_ngcontent-%COMP%]   .btn-icon[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{color:#fff;background:#0000001a;border-radius:50%}.actions-container[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%]{width:22px}@media screen and (min-width:320px){.actions-container[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%]{width:calc(22px + .02375*(100vw - 320px))}}@media screen and (min-width:1920px){.actions-container[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%]{width:60px}}.actions-container[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%]{height:22px}@media screen and (min-width:320px){.actions-container[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%]{height:calc(22px + .02375*(100vw - 320px))}}@media screen and (min-width:1920px){.actions-container[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%]{height:60px}}.actions-container[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%]{font-size:22px!important}@media screen and (min-width:320px){.actions-container[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%]{font-size:calc(22px + .02375*(100vw - 320px))!important}}@media screen and (min-width:1920px){.actions-container[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%]{font-size:60px!important}}#gallery-modal[_ngcontent-%COMP%]{width:100vw;height:100vh;background-color:#000}#gallery-modal[_ngcontent-%COMP%]   .gallery-container[_ngcontent-%COMP%]{height:100%}#gallery-modal[_ngcontent-%COMP%]   .gallery-container[_ngcontent-%COMP%]   .gallery-slide[_ngcontent-%COMP%]{border-radius:0}#gallery-modal[_ngcontent-%COMP%]   .gallery-container[_ngcontent-%COMP%]   .gallery-image[_ngcontent-%COMP%]{margin:20px 0}#gallery-modal[_ngcontent-%COMP%]   .displayNone[_ngcontent-%COMP%]{display:none!important}.image-container-responsive[_ngcontent-%COMP%]{display:flex;justify-content:center;padding:20px 0;
1height:100%}img.image-natural-size[_ngcontent-%COMP%]{width:unset!important;height:auto!important;max-height:100%!important}swiper-container[_ngcontent-%COMP%]::part(pagination){position:absolute;left:95%;bottom:37px;z-index:99;color:#fff;background-color:#000;width:44px;height:18px;border-radius:10px;text-align:center}@media(max-width:767px){.fullModal[_ngcontent-%COMP%]{height:100vh}#gallery-modal[_ngcontent-%COMP%]{position:relative;background-color:#000}#gallery-modal[_ngcontent-%COMP%]   .gallery-container[_ngcontent-%COMP%]   .gallery-slide[_ngcontent-%COMP%]   .gallery-video[_ngcontent-%COMP%], #gallery-modal[_ngcontent-%COMP%]   .gallery-container[_ngcontent-%COMP%]   .gallery-slide[_ngcontent-%COMP%]   .gallery-image[_ngcontent-%COMP%]{object-fit:contain}#gallery-modal[_ngcontent-%COMP%]   swiper-container[_ngcontent-%COMP%]::part(pagination){position:absolute;left:80vw;bottom:15px;width:60px}#gallery-modal[_ngcontent-%COMP%]   swiper-slide[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center}#gallery-modal[_ngcontent-%COMP%]   swiper-slide[_ngcontent-%COMP%]   iframe[_ngcontent-%COMP%]{width:100%;height:100%;border-radius:0%}#gallery-modal[_ngcontent-%COMP%]   .actions-container[_ngcontent-%COMP%]{position:absolute;width:100%;top:50%;transform:translateY(-50%);z-index:99}#gallery-modal[_ngcontent-%COMP%]   .actions-container[_ngcontent-%COMP%]   .swiper-prev[_ngcontent-%COMP%], #gallery-modal[_ngcontent-%COMP%]   .actions-container[_ngcontent-%COMP%]   .swiper-next[_ngcontent-%COMP%]{position:absolute}#gallery-modal[_ngcontent-%COMP%]   .actions-container[_ngcontent-%COMP%]   .swiper-next[_ngcontent-%COMP%]{right:10px}#gallery-modal[_ngcontent-%COMP%]   .actions-container[_ngcontent-%COMP%]   .swiper-prev[_ngcontent-%COMP%]{left:10px}}@media(min-width:768px)and (max-width:1023px){.fullModal[_ngcontent-%COMP%]{height:100vh}#gallery-modal[_ngcontent-%COMP%]{position:relative;background-color:#000!important;height:100vh}#gallery-modal[_ngcontent-%COMP%]   .gallery-container[_ngcontent-%COMP%]   .gallery-slide[_ngcontent-%COMP%]   .gallery-image[_ngcontent-%COMP%]{object-fit:var(--object-fit)}#gallery-modal[_ngcontent-%COMP%]   .gallery-container[_ngcontent-%COMP%]   .gallery-slide[_ngcontent-%COMP%]   .gallery-video[_ngcontent-%COMP%]{width:100%;height:100%;margin:auto;object-fit:var(--object-fit)}#gallery-modal[_ngcontent-%COMP%]   swiper-container[_ngcontent-%COMP%]::part(pagination){left:85vw;bottom:37px}#gallery-modal[_ngcontent-%COMP%]   .actions-container[_ngcontent-%COMP%]{position:absolute;width:100%;top:50vh;z-index:99}#gallery-modal[_ngcontent-%COMP%]   .actions-container[_ngcontent-%COMP%]   .swiper-prev[_ngcontent-%COMP%], #gallery-modal[_ngcontent-%COMP%]   .actions-container[_ngcontent-%COMP%]   .swiper-next[_ngcontent-%COMP%]{position:absolute}#gallery-modal[_ngcontent-%COMP%]   .actions-container[_ngcontent-%COMP%]   .swiper-next[_ngcontent-%COMP%]{right:10px}#gallery-modal[_ngcontent-%COMP%]   .actions-container[_ngcontent-%COMP%]   .swiper-prev[_ngcontent-%COMP%]{left:10px}}@media(min-width:1024px)and (max-width:1199px){.fullModal[_ngcontent-%COMP%]{height:100vh}section[_ngcontent-%COMP%]{background-color:#000!important}#gallery-modal[_ngcontent-%COMP%]{position:relative;background-color:#000!important}#gallery-modal[_ngcontent-%COMP%]   .gallery-container[_ngcontent-%COMP%]   .gallery-slide[_ngcontent-%COMP%]   .gallery-image[_ngcontent-%COMP%]{object-fit:var(--object-fit)}#gallery-modal[_ngcontent-%COMP%]   .gallery-container[_ngcontent-%COMP%]   .gallery-slide[_ngcontent-%COMP%]   .gallery-video[_ngcontent-%COMP%]{width:100%;height:100%;margin:auto;object-fit:var(--object-fit)}#gallery-modal[_ngcontent-%COMP%]   .actions-container[_ngcontent-%COMP%]{position:absolute;width:100%;top:calc(50% - 65px);z-index:99}#gallery-modal[_ngcontent-%COMP%]   .actions-container[_ngcontent-%COMP%]   .swiper-prev[_ngcontent-%COMP%], #gallery-modal[_ngcontent-%COMP%]   .actions-container[_ngcontent-%COMP%]   .swiper-next[_ngcontent-%COMP%]{position:absolute}#gallery-modal[_ngcontent-%COMP%]   .actions-container[_ngcontent-%COMP%]   .swiper-next[_ngcontent-%COMP%]{right:30px}#gallery-modal[_ngcontent-%COMP%]   .actions-container[_ngcontent-%COMP%]   .swiper-prev[_ngcontent-%COMP%]{left:30px}}@media(min-width:1200px)and (max-width:1399px){#gallery-modal[_ngcontent-%COMP%]{position:relative;max-height:calc(100vh - 16px);background-color:transparent}#gallery-modal[_ngcontent-%COMP%]   .gallery-container[_ngcontent-%COMP%]   .gallery-slide[_ngcontent-%COMP%]   .gallery-image[_ngcontent-%COMP%]{object-fit:var(--object-fit)}#gallery-modal[_ngcontent-%COMP%]   .gallery-container[_ngcontent-%COMP%]   .gallery-slide[_ngcontent-%COMP%]   .gallery-video[_ngcontent-%COMP%]{width:100%;height:100%;margin:auto;object-fit:var(--object-fit)}#gallery-modal[_ngcontent-%COMP%]   .actions-container[_ngcontent-%COMP%]{position:absolute;width:100%;top:calc(50% - 65px);z-index:99}#gallery-modal[_ngcontent-%COMP%]   .actions-container[_ngcontent-%COMP%]   .swiper-prev[_ngcontent-%COMP%], #gallery-modal[_ngcontent-%COMP%]   .actions-container[_ngcontent-%COMP%]   .swiper-next[_ngcontent-%COMP%]{position:absolute}#gallery-modal[_ngcontent-%COMP%]   .actions-container[_ngcontent-%COMP%]   .swiper-next[_ngcontent-%COMP%]{right:30px}#gallery-modal[_ngcontent-%COMP%]   .actions-container[_ngcontent-%COMP%]   .swiper-prev[_ngcontent-%COMP%]{left:30px}}@media(min-width:1200px)and (max-width:1399px){#gallery-modal[_ngcontent-%COMP%]{position:relative;max-height:100vh}#gallery-modal[_ngcontent-%COMP%]   .gallery-container[_ngcontent-%COMP%]   .gallery-slide[_ngcontent-%COMP%]   .gallery-image[_ngcontent-%COMP%]{object-fit:var(--object-fit)}#gallery-modal[_ngcontent-%COMP%]   .gallery-container[_ngcontent-%COMP%]   .gallery-slide[_ngcontent-%COMP%]   .gallery-video[_ngcontent-%COMP%]{width:100%;height:100%;margin:auto;object-fit:var(--object-fit)}#gallery-modal[_ngcontent-%COMP%]   .gallery-container[_ngcontent-%COMP%]   .gallery-pagination[_ngcontent-%COMP%]{position:absolute;
1left:95%;bottom:37px;z-index:99;color:#fff;background-color:#000;width:44px;height:18px;border-radius:10px;text-align:center}#gallery-modal[_ngcontent-%COMP%]   .actions-container[_ngcontent-%COMP%]{position:absolute;width:100%;top:calc(50% - 65px);z-index:99}#gallery-modal[_ngcontent-%COMP%]   .actions-container[_ngcontent-%COMP%]   .swiper-prev[_ngcontent-%COMP%], #gallery-modal[_ngcontent-%COMP%]   .actions-container[_ngcontent-%COMP%]   .swiper-next[_ngcontent-%COMP%]{position:absolute}#gallery-modal[_ngcontent-%COMP%]   .actions-container[_ngcontent-%COMP%]   .swiper-next[_ngcontent-%COMP%]{right:30px}#gallery-modal[_ngcontent-%COMP%]   .actions-container[_ngcontent-%COMP%]   .swiper-prev[_ngcontent-%COMP%]{left:30px}}@media(min-width:1399px){#gallery-modal[_ngcontent-%COMP%]{position:relative;max-height:100vh}#gallery-modal[_ngcontent-%COMP%]   .gallery-container[_ngcontent-%COMP%]   .gallery-slide[_ngcontent-%COMP%]   .gallery-image[_ngcontent-%COMP%]{object-fit:var(--object-fit)}#gallery-modal[_ngcontent-%COMP%]   .gallery-container[_ngcontent-%COMP%]   .gallery-slide[_ngcontent-%COMP%]   .gallery-video[_ngcontent-%COMP%]{width:100%;height:100%;margin:auto;object-fit:var(--object-fit)}#gallery-modal[_ngcontent-%COMP%]   .actions-container[_ngcontent-%COMP%]{position:absolute;width:100%;top:calc(50% - 65px);z-index:99}#gallery-modal[_ngcontent-%COMP%]   .actions-container[_ngcontent-%COMP%]   .swiper-prev[_ngcontent-%COMP%], #gallery-modal[_ngcontent-%COMP%]   .actions-container[_ngcontent-%COMP%]   .swiper-next[_ngcontent-%COMP%]{position:absolute}#gallery-modal[_ngcontent-%COMP%]   .actions-container[_ngcontent-%COMP%]   .swiper-next[_ngcontent-%COMP%]{right:30px}#gallery-modal[_ngcontent-%COMP%]   .actions-container[_ngcontent-%COMP%]   .swiper-prev[_ngcontent-%COMP%]{left:30px}}"],changeDetection:0})};var Wi=["swiper"];function Gi(n,e){if(n&1){let t=w();a(0,"swiper-slide",5)(1,"nav",9)(2,"img",10),b("click",function(){let c=f(t).$implicit,h=p();return M(h.selectCategory(c.name))}),r(),d(3),l(4,"translate"),r()()}if(n&2){let t=e.$implicit;o(2),u("alt",A(t.name))("src",t.photoUrl,T),o(),D(" ",t.name==="photos"?s(4,4,"Fotos"):t.name," ")}}function Hi(n,e){if(n&1){let t=w();a(0,"img",10),b("click",function(c){let h=f(t).$implicit,V=p(2);return M(V.openDialogGallery(c,V.data.photos,V.data.photos.indexOf(h)))}),r()}if(n&2){let t=e.$implicit;u("alt",A(t.description))("src",t.url,T)}}function Qi(n,e){if(n&1&&(a(0,"div",8)(1,"h3"),d(2),l(3,"translate"),r(),a(4,"div",11),v(5,Hi,1,3,"img",12,Z),r()()),n&2){let t=e.$implicit,i=p();u("id",t.name),o(2),x(t.name==="photos"?s(3,2,"Fotos"):t.name),o(3),O(i.PhotosByCategory[t.name])}}var le=class n{dialog=_(tt);multiDialogRef=_(Nt);data=_(Rt);_homeService=_(Q);closeIconColor=this._homeService.getIconColorByBackground();swiper=J("swiper");categories=[];filteredPhotos=[];dialogRef;indexSlider=0;PhotosByCategory;swiperCategories;parametersService=_(et);buttonText="Fale Conosco";parameters=this.parametersService.getParameters();ngOnInit(){this.orderCategory()}ngOnChanges(){this.swiperCategories={a11y:!0,direction:"horizontal",slidesPerView:2,keyboard:!1,mousewheel:!1,scrollbar:!0,navigation:!0,pagination:!1,initialSlide:0,effect:"slide",spaceBetween:2,autoHeight:!1,loopedSlides:2,loop:!1,watchOverflow:!0,preventClicksPropagation:!1,simulateTouch:!1}}orderCategory(){let e=new Map;this.PhotosByCategory={},this.data.photos.forEach(t=>{this.PhotosByCategory[t.category]||(this.PhotosByCategory[t.category]=[]),this.PhotosByCategory[t.category].push(t),e.has(t.category)||e.set(t.category,t.url)}),this.categories=Array.from(e.entries()).map(([t,i])=>({name:t,photoUrl:i}))}selectCategory(e){this.filteredPhotos=this.data.photos.filter(t=>t.category===e),this.scrollToCategory(e)}openDialogGallery(e,t,i){e?.preventDefault(),e?.stopPropagation();let c=i;this.dialogRef=this.dialog.open(pt,{panelClass:["custom-dialog-container"],data:{path:{midia:t,index:c}}})}scrollToCategory(e){let t=document.getElementById(e);t&&t.scrollIntoView({behavior:"smooth"})}closeDialog(){this.multiDialogRef.close()}onPhoneClicked(){let e=this.parameters().phone.find(t=>t.type.toLowerCase()==="whatsapp");e?_n(e,this.dialog,this.parameters()):this.dialog.open(Mn,{panelClass:"custom-dialog-container"})}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=P({type:n,selectors:[["imobzi-multi-media-dialog"]],viewQuery:function(t,i){t&1&&ot(i.swiper,Wi,5),t&2&&at()},features:[Ie],decls:14,vars:7,consts:[["swiper",""],[3,"onModalChanged","closeIconColor"],[1,"multimedia-container"],[1,"multi-media-header"],["appSwiper","",1,"swiper-container",3,"config"],[1,"swiper-slide"],[1,"button-content"],[1,"btn","btn-md","btn-primary-2",3,"click"],[1,"container-image",3,"id"],[1,"multi-media-itens"],[3,"click","
1src","alt"],[1,"grid-container"],[3,"src","alt"]],template:function(t,i){t&1&&(a(0,"imobzi-modal",1),b("onModalChanged",function(){return i.closeDialog()}),a(1,"section",2)(2,"header",3)(3,"swiper-container",4,0),v(5,Gi,5,6,"swiper-slide",5,Z),r(),a(7,"div",6)(8,"button",7),b("click",function(){return i.onPhoneClicked()}),d(9),l(10,"uppercase"),l(11,"translate"),r()()(),v(12,Qi,7,4,"div",8,Z),r()()),t&2&&(u("closeIconColor",i.closeIconColor()),o(3),u("config",i.swiperCategories),o(2),O(i.categories),o(4),D(" ",s(11,5,s(10,3,i.buttonText))," "),o(3),O(i.categories))},dependencies:[Ot,Wt,Mt,N],styles:["[_nghost-%COMP%]   .button-content[_ngcontent-%COMP%]{padding:20px;background-color:var(--background-page)}[_nghost-%COMP%]   .button-content[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{position:relative;z-index:99;padding:20px;margin:10px 20px 10px 10px}[_nghost-%COMP%]   .multimedia-container[_ngcontent-%COMP%]{padding:0!important;background-color:var(--background-page);overflow:auto}[_nghost-%COMP%]   .multimedia-container[_ngcontent-%COMP%]   .multi-media-header[_ngcontent-%COMP%]{display:flex;width:100%;box-sizing:border-box;background-color:var(--background-page);z-index:10;position:sticky;top:0}[_nghost-%COMP%]   .multimedia-container[_ngcontent-%COMP%]   .multi-media-header[_ngcontent-%COMP%]   .swiper-container[_ngcontent-%COMP%]{display:flex;padding:20px;width:80%;margin:0;background-color:var(--background-page)}[_nghost-%COMP%]   .multimedia-container[_ngcontent-%COMP%]   .multi-media-header[_ngcontent-%COMP%]   .swiper-container[_ngcontent-%COMP%]   .swiper-slide[_ngcontent-%COMP%]{width:140px!important}[_nghost-%COMP%]   .multimedia-container[_ngcontent-%COMP%]   .multi-media-header[_ngcontent-%COMP%]   .multi-media-itens[_ngcontent-%COMP%]{width:135px;height:100px;display:flex;flex-direction:column;align-items:center;text-align:center;cursor:pointer;color:var(--title)}[_nghost-%COMP%]   .multimedia-container[_ngcontent-%COMP%]   .multi-media-header[_ngcontent-%COMP%]   .multi-media-itens[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:100%;height:100%;max-height:80px;object-fit:cover;border-radius:10px}[_nghost-%COMP%]   .multimedia-container[_ngcontent-%COMP%]   .container-image[_ngcontent-%COMP%]{margin-top:15px;padding:20px}[_nghost-%COMP%]   .multimedia-container[_ngcontent-%COMP%]   .container-image[_ngcontent-%COMP%]   .grid-container[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}[_nghost-%COMP%]   .multimedia-container[_ngcontent-%COMP%]   .container-image[_ngcontent-%COMP%]   .grid-container[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:100%;height:230px;display:block;object-fit:cover}[_nghost-%COMP%]   .multimedia-container[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-bottom:10px;text-align:center;color:var(--title)}[_nghost-%COMP%]   img[_ngcontent-%COMP%], [_nghost-%COMP%]   .multi-media-header[_ngcontent-%COMP%]   .multi-media-itens[_ngcontent-%COMP%]{cursor:pointer}@media(max-width:767px){[_nghost-%COMP%]   .button-content[_ngcontent-%COMP%]{display:flex;justify-content:center;width:100%}[_nghost-%COMP%]   .button-content[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{position:static}[_nghost-%COMP%]   .grid-container[_ngcontent-%COMP%]{grid-template-columns:1fr!important}[_nghost-%COMP%]   .multi-media-header[_ngcontent-%COMP%]{width:100%;position:relative!important;flex-wrap:wrap}[_nghost-%COMP%]   .multi-media-header[_ngcontent-%COMP%]   .swiper-container[_ngcontent-%COMP%]{max-width:100%!important}[_nghost-%COMP%]   .multimedia-container[_ngcontent-%COMP%]{max-height:100vh;height:100vh;width:100vw}[_nghost-%COMP%]   .multimedia-container[_ngcontent-%COMP%]   .container-image[_ngcontent-%COMP%]:nth-of-type(1){margin-top:0!important}}@media(min-width:768px)and (max-width:1023px){[_nghost-%COMP%]   .button-content[_ngcontent-%COMP%]{display:flex;justify-content:center;width:100%}[_nghost-%COMP%]   .button-content[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{position:static}[_nghost-%COMP%]   .grid-container[_ngcontent-%COMP%]{grid-template-columns:repeat(2,1fr)!important}[_nghost-%COMP%]   .multimedia-container[_ngcontent-%COMP%]{height:100vh;width:100vw}[_nghost-%COMP%]   .multimedia-container[_ngcontent-%COMP%]   .container-image[_ngcontent-%COMP%]:nth-of-type(1){margin-top:0!important}}@media(min-width:1024px)and (max-width:1199px){[_nghost-%COMP%]   .button-content[_ngcontent-%COMP%]{display:flex;justify-content:center;width:100%}[_nghost-%COMP%]   .button-content[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{position:static}[_nghost-%COMP%]   .grid-container[_ngcontent-%COMP%]{grid-template-columns:repeat(2,1fr)!important}[_nghost-%COMP%]   .multimedia-container[_ngcontent-%COMP%]{width:900px;max-height:1000px}[_nghost-%COMP%]   .multimedia-container[_ngcontent-%COMP%]   .container-image[_ngcontent-%COMP%]:nth-of-type(1){margin-top:0!important}imobzi-modal[_ngcontent-%COMP%]{max-width:90vw;max-height:90vh}.multimedia-container[_ngcontent-%COMP%]{width:90vw;height:90vh}}@media(min-width:1200px)and (max-width:1399px){imobzi-modal[_ngcontent-%COMP%]{max-width:90vw;max-height:90vh}.button-content[_ngcontent-%COMP%]{display:flex;justify-content:center;width:100%}.button-content[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{position:static}.multimedia-container[_ngcontent-%COMP%]{width:90vw;height:90vh}}@media(min-width:1399px){imobzi-modal[_ngcontent-%COMP%]{max-width:90vw;max-height:90vh}.multimedia-container[_ngcontent-%COMP%]{width:90vw;height:90vh}}"]})};var pe=class n{elementoRef=_(yt);onLoad(){this.getImgSize()}
1getImgSize(){let e=this.elementoRef.nativeElement,t=e.naturalWidth,i=e.naturalHeight;t>i?e.style.setProperty("--object-fit","cover"):e.style.setProperty("--object-fit","contain")}static \u0275fac=function(t){return new(t||n)};static \u0275dir=It({type:n,selectors:[["","imobziImgSize",""]],hostBindings:function(t,i){t&1&&b("load",function(){return i.onLoad()})}})};var qi=["gallerySwiper"];function Yi(n,e){if(n&1){let t=w();a(0,"a",8),b("click",function(c){f(t);let h=p(2);return M(h.openDialog(c))}),y(1,"img",9),r()}if(n&2){let t=p(),i=t.$implicit,c=t.$index,h=p();o(),u("id",$("gallery-img-",c))("alt",A(i.description))("title",A(i.description))("src",h.galleryPhotoUrl(i.url),T),ht("loading",c===0?"eager":"lazy")("fetchpriority",c===0?"high":"low")("decoding",c===0?"sync":"async")}}function Ki(n,e){if(n&1&&(a(0,"swiper-slide"),m(1,Yi,2,10,"a"),r()),n&2){let t=e.$index,i=p();o(),g(i.visiblePhotos(t)?1:-1)}}function Zi(n,e){if(n&1){let t=w();a(0,"swiper-slide")(1,"a",8),b("click",function(){f(t);let c=p(2);return M(c.openDialogGallery(c.videos))}),y(2,"img",10)(3,"img",11),r()()}if(n&2){let t=e.$implicit,i=p(2);o(2),u("alt",A(t.description))("title",A(t.description))("src",t.thumbnail,T),o(),u("src",i.layoutBucketPath+"play.svg",T)}}function Xi(n,e){if(n&1&&v(0,Zi,4,6,"swiper-slide",null,E),n&2){let t=p();O(t.videos)}}function Ji(n,e){if(n&1){let t=w();a(0,"swiper-slide")(1,"a",8),b("click",function(c){f(t);let h=p(2);return M(h.openDialogGallery(h.virtualTours,c))}),y(2,"img",10)(3,"img",11),r()()}if(n&2){let t=e.$implicit,i=p(2);o(2),u("alt",A(t.description))("title",A(t.description))("src",t.thumbnail,T),o(),u("src",i.layoutBucketPath+"play.svg",T)}}function to(n,e){if(n&1&&v(0,Ji,4,6,"swiper-slide",null,E),n&2){let t=p();O(t.virtualTours)}}var se=class n{appService=_(U);dialog=_(tt);breakpointsService=_(lt);platformId=_(F);gallerySwiper=J("gallerySwiper");photos=C(void 0);multimidias=C(void 0);valueButton=C(void 0);indexSlider=0;dialogRef;layoutBucketPath=this.appService.layoutBucketPath();clientBucketPath=this.appService.clientBucketPath();displayMidia;displayAction;videos=[];virtualTours=[];windowSize=10;currentIndex=0;isMobile=this.breakpointsService.isInViewPort(it);galleryConfig={initialSlide:0,slidesPerView:"auto",effect:"slide",lazy:!1,spaceBetween:16,slideToClickedSlide:!0,observer:!0,loop:!1,speed:600,direction:"horizontal",watchOverflow:!0};constructor(){nt(()=>{z(this.platformId)&&this.setPortraitLayout(this.isMobile())})}ngOnInit(){let e=this.multimidias();e?e.forEach((i,c)=>{i.category==="videos"?this.videos.push(i):i.category==="virtual_tour"&&(i.embedUrl=i.url,this.virtualTours.push(i)),(i.category==="videos"||i.category==="v\xEDdeos"||i.category==="virtual_tour")&&(this.displayMidia=!0),c<1&&(this.displayAction=!0)}):this.galleryConfig.loopedSlides=this.photos().length;let t=this.valueButton();t==="video"?this.galleryConfig.loopedSlides=this.videos.length:t==="tour"&&(this.galleryConfig.loopedSlides=this.virtualTours.length)}visiblePhotos(e){let t=this.currentIndex+this.windowSize,i=this.currentIndex-this.windowSize;return e>=i&&e<=t}swipePrev(){this.gallerySwiper().nativeElement.swiper.slidePrev()}swipeNext(){this.gallerySwiper().nativeElement.swiper.slideNext()}onSlideChange(){this.currentIndex=this.gallerySwiper()?.nativeElement.swiper.realIndex||0}setPortraitLayout(e){e?(document.documentElement.style.setProperty("--gallery-mob","54vh"),document.documentElement.style.setProperty("--gallery-content-mob","68vh")):(document.documentElement.style.setProperty("--gallery-mob","30vh"),document.documentElement.style.setProperty("--gallery-tab","44vh"),document.documentElement.style.setProperty("--gallery-content-mob","38vh"),document.documentElement.style.setProperty("--gallery-content-tab","48vh"))}openDialogGallery(e,t){t?.preventDefault(),t?.stopPropagation();let i=this.indexSlider;this.dialogRef=this.dialog.open(pt,{panelClass:["custom-dialog-container"],data:{path:{midia:e,index:i}}})}openDialog(e){e?.preventDefault(),this.dialog.open(le,{panelClass:"media-dialog-container",data:{photos:this.photos(),multimidias:this.multimidias()}})}setPhotoUrlResize(e,t){return _t(e,t)}galleryPhotoUrl(e){return this.isMobile()?e:Ht(e)}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=P({type:n,selectors:[["imobzi-gallery"]],viewQuery:function(t,i){t&1&&ot(i.gallerySwiper,qi,5),t&2&&at()},inputs:{photos:[1,"photos"],multimidias:[1,"multimidias"],valueButton:[1,"valueButton"]},decls:14,vars:4,consts:[["gallerySwiper",""],["id","gallery"],["appSwiper","",1,"gallery-content",3,"swiperslidechange","config"],[1,"actions-container"],["type","button","aria-label","Button Previous Page","mat-icon-button","",1,"btn-icon","btn-light-1","swiper-prev","shadow",3,"click"],["aria-hidden","true","aria-label","Previous",1,"material-symbols-rounded"],["type","button","aria-label","Button Next Page","mat-icon-button","",1,"btn-icon","btn-light-1","swiper-next","shadow",3,"click"],["aria-hidden","true","aria-label","Next",1,"material-symbols-rounded"],[3,"click"],["imobziImgSize","",1,"gallery-image","img-responsive",3,"id","src","alt","title"],["loading","lazy","fetchpriority","low","decoding","async",1,"gallery-image","img-responsive",3,"src","alt","title"],["alt","play","loading","lazy","decoding","async",1,"play-video",3,"src"]],template:function(t,i){t&1&&(a(0,"section",1)(1,"swiper-container",2,0),b("swiperslidechange",function(){return i.onSlideChange()}),v(3,Ki,2,1,"swiper-slide",null,E),m(5,Xi,2,0)(6,to,2,0),r(),a(7,"div",3)(8,"button",4),b("click",function(){return i.swipePrev()}),a(9,"mat-icon",5),d(10," chevron_left "),r()(),a(11,"button",6),b("click",function(){return i.swipeNext()}),a(12,"mat-icon",7),d(13," chevron_right "),r()()()()),t&2&&(o(),u("config",i.galleryConfig),o(2),O(i.photos()),o(2),g(i.valueButton()==="video"?5:6),o(2),R("displayNone",i.displayAction))},dependencies:[Ot,pe,H],styles:["#gallery[_ngcontent-%COMP%]{position:relative;height:48vw;margin-top:-1px}#gallery[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{touch-action:none}#gallery[_ngcontent-%COMP%]   .displayNone[_ngcontent-%COMP%]{display:none!important}#gallery[_ngcontent-%COMP%]   .come_back[_ngcontent-%COMP%]{display:none;opacity:0}
1#gallery[_ngcontent-%COMP%]   swiper-container[_ngcontent-%COMP%]:not(:defined){display:block;overflow:hidden}#gallery[_ngcontent-%COMP%]   swiper-container[_ngcontent-%COMP%]:not(:defined)   swiper-slide[_ngcontent-%COMP%]{display:none}#gallery[_ngcontent-%COMP%]   swiper-container[_ngcontent-%COMP%]:not(:defined)   swiper-slide[_ngcontent-%COMP%]:first-child{display:block;height:100%}#gallery[_ngcontent-%COMP%]   .gallery-content[_ngcontent-%COMP%]{height:48vw}#gallery[_ngcontent-%COMP%]   .gallery-content[_ngcontent-%COMP%]   .gallery-image[_ngcontent-%COMP%]{margin:auto;width:100%;height:100%;object-fit:var(--object-fit, cover);background-color:#000}#gallery[_ngcontent-%COMP%]   .gallery-content[_ngcontent-%COMP%]   .gallery-video[_ngcontent-%COMP%]{width:100%;height:100%}#gallery[_ngcontent-%COMP%]   .gallery-content[_ngcontent-%COMP%]   .play-video[_ngcontent-%COMP%]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);height:85px}#gallery[_ngcontent-%COMP%]   .actions-container[_ngcontent-%COMP%]{position:absolute;width:100%;top:50%;left:50%;transform:translate(-50%,-50%);z-index:98;display:flex;justify-content:space-between;align-items:center}#gallery[_ngcontent-%COMP%]   .actions-container[_ngcontent-%COMP%]   .swiper-prev[_ngcontent-%COMP%], #gallery[_ngcontent-%COMP%]   .actions-container[_ngcontent-%COMP%]   .swiper-next[_ngcontent-%COMP%]{position:absolute}#gallery[_ngcontent-%COMP%]   .actions-container[_ngcontent-%COMP%]   .swiper-prev[_ngcontent-%COMP%], #gallery[_ngcontent-%COMP%]   .actions-container[_ngcontent-%COMP%]   .swiper-next[_ngcontent-%COMP%]{width:34px}@media screen and (min-width:320px){#gallery[_ngcontent-%COMP%]   .actions-container[_ngcontent-%COMP%]   .swiper-prev[_ngcontent-%COMP%], #gallery[_ngcontent-%COMP%]   .actions-container[_ngcontent-%COMP%]   .swiper-next[_ngcontent-%COMP%]{width:calc(34px + .01875*(100vw - 320px))}}@media screen and (min-width:1920px){#gallery[_ngcontent-%COMP%]   .actions-container[_ngcontent-%COMP%]   .swiper-prev[_ngcontent-%COMP%], #gallery[_ngcontent-%COMP%]   .actions-container[_ngcontent-%COMP%]   .swiper-next[_ngcontent-%COMP%]{width:64px}}#gallery[_ngcontent-%COMP%]   .actions-container[_ngcontent-%COMP%]   .swiper-prev[_ngcontent-%COMP%], #gallery[_ngcontent-%COMP%]   .actions-container[_ngcontent-%COMP%]   .swiper-next[_ngcontent-%COMP%]{height:34px}@media screen and (min-width:320px){#gallery[_ngcontent-%COMP%]   .actions-container[_ngcontent-%COMP%]   .swiper-prev[_ngcontent-%COMP%], #gallery[_ngcontent-%COMP%]   .actions-container[_ngcontent-%COMP%]   .swiper-next[_ngcontent-%COMP%]{height:calc(34px + .01875*(100vw - 320px))}}@media screen and (min-width:1920px){#gallery[_ngcontent-%COMP%]   .actions-container[_ngcontent-%COMP%]   .swiper-prev[_ngcontent-%COMP%], #gallery[_ngcontent-%COMP%]   .actions-container[_ngcontent-%COMP%]   .swiper-next[_ngcontent-%COMP%]{height:64px}}#gallery[_ngcontent-%COMP%]   .actions-container[_ngcontent-%COMP%]   .swiper-prev[_ngcontent-%COMP%]:hover, #gallery[_ngcontent-%COMP%]   .actions-container[_ngcontent-%COMP%]   .swiper-next[_ngcontent-%COMP%]:hover{border-color:#fff;background-color:transparent}#gallery[_ngcontent-%COMP%]   .actions-container[_ngcontent-%COMP%]   .btn-icon[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{color:#fff;background:#0000001a;border-radius:50%}#gallery[_ngcontent-%COMP%]   .actions-container[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%]{width:22px}@media screen and (min-width:320px){#gallery[_ngcontent-%COMP%]   .actions-container[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%]{width:calc(22px + .02375*(100vw - 320px))}}@media screen and (min-width:1920px){#gallery[_ngcontent-%COMP%]   .actions-container[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%]{width:60px}}#gallery[_ngcontent-%COMP%]   .actions-container[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%]{height:22px}@media screen and (min-width:320px){#gallery[_ngcontent-%COMP%]   .actions-container[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%]{height:calc(22px + .02375*(100vw - 320px))}}@media screen and (min-width:1920px){#gallery[_ngcontent-%COMP%]   .actions-container[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%]{height:60px}}#gallery[_ngcontent-%COMP%]   .actions-container[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%]{font-size:22px!important}@media screen and (min-width:320px){#gallery[_ngcontent-%COMP%]   .actions-container[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%]{font-size:calc(22px + .02375*(100vw - 320px))!important}}@media screen and (min-width:1920px){#gallery[_ngcontent-%COMP%]   .actions-container[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%]{font-size:60px!important}}@media(max-width:767px){#gallery[_ngcontent-%COMP%]{height:37vh}#gallery[_ngcontent-%COMP%]   .gallery-content[_ngcontent-%COMP%]{height:42vh}#gallery[_ngcontent-%COMP%]   .actions-container[_ngcontent-%COMP%]   .swiper-next[_ngcontent-%COMP%]{right:10px;box-shadow:-2px 0 20px 3px #000}#gallery[_ngcontent-%COMP%]   .actions-container[_ngcontent-%COMP%]   .swiper-prev[_ngcontent-%COMP%]{left:10px;box-shadow:-2px 0 20px 3px #000}}@media(min-width:768px)and (max-width:1023px){#gallery[_ngcontent-%COMP%]{height:44vh}#gallery[_ngcontent-%COMP%]   .gallery-content[_ngcontent-%COMP%]{height:49vh}#gallery[_ngcontent-%COMP%]   .swiper-next[_ngcontent-%COMP%]{right:60px;box-shadow:-2px 0 20px 3px #000}#gallery[_ngcontent-%COMP%]   .swiper-prev[_ngcontent-%COMP%]{left:60px;box-shadow:-2px 0 20px 3px #000}}@media(min-width:1024px)and (max-width:1199px){#gallery[_ngcontent-%COMP%]{height:73vh}#gallery[_ngcontent-%COMP%]   .gallery-content[_ngcontent-%COMP%]{height:78vh}#gallery[_ngcontent-%COMP%]   .swiper-next[_ngcontent-%COMP%]{right:60px;box-shadow:-2px 0 20px 3px #000}#gallery[_ngcontent-%COMP%]   .swiper-prev[_ngcontent-%COMP%]{left:60px;box-shadow:-2px 0 20px 3px #000}}@media(min-width:1200px)and (max-width:1399px){#gallery[_ngcontent-%COMP%]{height:87vh}#gallery[_ngcontent-%COMP%]   .gallery-content[_ngcontent-%COMP%]{height:92vh}#gallery[_ngcontent-%COMP%]   .swiper-next[_ngcontent-%COMP%]{right:108px;box-shadow:-2px 0 20px 3px #000}#gallery[_ngcontent-%COMP%]   .swiper-prev[_ngcontent-%COMP%]{left:108px;box-shadow:-2px 0 20px 3px #000}}@media(min-width:1399px){#gallery[_ngcontent-%COMP%]{height:84vh}#gallery[_ngcontent-%COMP%]   .gallery-content[_ngcontent-%COMP%]{height:90vh}#gallery[_ngcontent-%COMP%]   .swiper-next[_ngcontent-%COMP%]{right:140px;box-shadow:-2px 0 20px 3px #000}#gallery[_ngcontent-%COMP%]   .swiper-prev[_ngcontent-%COMP%]{left:140px;box-shadow:-2px 0 20px 3px #000}}@media(min-width:1920px){#gallery[_ngcontent-%COMP%]{height:86vh}#gallery[_ngcontent-%COMP%]   .gallery-content[_ngcontent-%COMP%]{height:92vh}}"]})};var eo=["location"],de=class n{appService=_(U);platformId=_(F);gmapElement=J("location");address=C(void 0);neighborhood=C(void 0);city=C(void 0);state=C(void 0);longitude=C(void 0);latitude=C(void 0);img=C(void 0);map;infowindow;showAddressComplete=!0;zoom=15;center=new google.maps.LatLng(-15.106507,-53.169738);options;ngOnInit(){this.infowindow=new google.maps.InfoWindow({content:"carregando..."}),z(this.platformId)&&(this.initMap(),window.scroll(0,1))}initMap(){this.options={zoom:this.zoom,center:this.center,scrollwheel:!0,fullscreenControl:!1,mapTypeControl:!1,zoomControl:!0,streetViewControl:!1,mapTypeId:google.maps.MapTypeId.ROADMAP},this.map=new google.maps.Map(this.gmapElement().nativeElement,this.options),this.insertMarker()}insertMarker(){let e=new google.maps.LatLng(this.latitude(),this.longitude());this.address()&&this.bindEvent(new google.maps.Marker({position:e,map:this.map,title:"",animation:google.maps.Animation.DROP,icon:`${this.appService.clientBucketPath()}/pin.png`})),this.map.setCenter(e)}bindEvent(e){google.maps.event.addListener(e,"click",()=>{this.infowindow.open(this.map,e),this.createContent(this.infowindow)})}createContent(e){let t=this.showAddressComplete?this.address():this.address().split(", ",1)[0],c=`
2            <div class="map-info-window">
3                ${this.img()?`<img src="${this.img()}" class="map-img" />`:""}
4                <div class="map-text">
5                    <p class="neighborhood">${this.neighborhood()}</p>
6                    <p class="address">${t} - ${this.city()} - ${this.state()}</p>
7                </div>
8            </div>
9        `;e.setContent(c)}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=P({type:n,selectors:[["imobzi-maps"]],viewQuery:function(t,i){t&1&&ot(i.gmapElement,eo,5),t&2&&at()},inputs:{address:[1,"address"],neighborhood:[1,"neighborhood"],city:[1,"city"],state:[1,"state"],longitude:[1,"longitude"],latitude:[1,"latitude"],img:[1,"img"]},decls:3,vars:0,consts:[["location",""],["id","maps"],[1,"map-container"]],template:function(t,i){t&1&&(S(0,"section",1),X(1,"div",2,0),k())},styles:["#maps[_ngcontent-%COMP%]{position:relative}  .poi-info-window{padding:20px}  .gm-style-iw-chr{height:0!important;z-index:20!important}  .gm-style-iw{max-width:420px!important;padding:0!important;border-radius:8px!important}  .gm-style-iw button.gm-ui-hover-effect{color:#fff}  .gm-style-iw button.gm-ui-hover-effect>span{background:#0009!important;color:#fff;background-color:light-dark(white,white)!important}  .gm-style-iw-d{overflow:hidden!important;padding:0!important;max-height:none!important}  .map-info-window{position:relative;width:420px;height:290px}  .map-info-window .map-img{width:100%;height:100%;object-fit:cover;display:block}  .map-info-window .map-text{position:absolute;bottom:0;left:0;right:0;padding:12px;background:linear-gradient(transparent,#000c);color:#fff}  .map-info-window .map-text p{margin:0;line-height:1.4}  .map-info-window .map-text .neighborhood{font-weight:700;font-size:15px;margin-bottom:2px}@media(max-width:767px){#maps[_ngcontent-%COMP%]{height:30vh}#maps[_ngcontent-%COMP%]   .map-container[_ngcontent-%COMP%]{height:42vh}  .gm-style-iw{max-width:280px!important;max-height:200px!important}  .map-text{display:block!important;padding:8px!important}  .map-info-window{width:280px!important;height:180px!important}}@media(min-width:768px)and (max-width:1023px){#maps[_ngcontent-%COMP%]{height:44vh}#maps[_ngcontent-%COMP%]   .map-container[_ngcontent-%COMP%]{height:48vh}}@media(min-width:1024px)and (max-width:1199px){#maps[_ngcontent-%COMP%]{height:72vh}#maps[_ngcontent-%COMP%]   .map-container[_ngcontent-%COMP%]{height:78vh!important}}@media(min-width:1200px)and (max-width:1399px){#maps[_ngcontent-%COMP%]{height:66vh}#maps[_ngcontent-%COMP%]   .map-container[_ngcontent-%COMP%]{height:92vh!important}}@media(min-width:1399px){#maps[_ngcontent-%COMP%]{height:76vh}#maps[_ngcontent-%COMP%]   .map-container[_ngcontent-%COMP%]{height:90vh!important}}@media(min-width:1920px){#maps[_ngcontent-%COMP%]{height:78vh}#maps[_ngcontent-%COMP%]   .map-container[_ngcontent-%COMP%]{height:92vh!important}}"]})};var no=["location"],io=["street_view"],me=class n{breakpointsService=_(lt);platformId=_(F);gmapElement=J("location");streetView=J("street_view");longitude=C(void 0);latitude=C(void 0);map;options;zoom=15;center=new google.maps.LatLng(-15.106507,-53.169738);
9constructor(){this.getBreakpoints()}ngOnInit(){this.options={zoom:this.zoom,center:this.center,scrollwheel:!1,mapTypeId:google.maps.MapTypeId.ROADMAP},this.map=new google.maps.Map(this.gmapElement().nativeElement,this.options),this.setStreetView(),z(this.platformId)&&window.scroll(0,1)}getBreakpoints(){if(z(this.platformId)){let e=this.breakpointsService.isInViewPort(it)();this.setPortraitLayout(e)}}setPortraitLayout(e){e?(document.documentElement.style.setProperty("--street-mob","54vh"),document.documentElement.style.setProperty("--street-content-mob","68vh")):(document.documentElement.style.setProperty("--street-mob","30vh"),document.documentElement.style.setProperty("--street-content-mob","38vh"))}setStreetView(){let e=new google.maps.LatLng(this.latitude(),this.longitude());this.map.setStreetView(new google.maps.StreetViewPanorama(this.streetView().nativeElement,{position:e,pov:{heading:34,pitch:10}}))}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=P({type:n,selectors:[["imobzi-street-view"]],viewQuery:function(t,i){t&1&&ot(i.gmapElement,no,5)(i.streetView,io,5),t&2&&at(2)},inputs:{longitude:[1,"longitude"],latitude:[1,"latitude"]},decls:5,vars:0,consts:[["location",""],["street_view",""],["id","maps"],[1,"map","map-container"],[1,"map-container"]],template:function(t,i){t&1&&(S(0,"section",2),X(1,"div",3,0)(3,"div",4,1),k())},styles:['[_ngcontent-%COMP%]:root{--street-mob: "30vh";--street-content-mob: "42vh";--street-tab: "44vh";--street-content-tab: "48vh"}.map[_ngcontent-%COMP%]{display:none}@media(max-width:767px){#maps[_ngcontent-%COMP%]{height:var(--street-mob)}#maps[_ngcontent-%COMP%]   .map-container[_ngcontent-%COMP%]{height:var(--street-content-mob)}}@media(min-width:768px)and (max-width:1023px){#maps[_ngcontent-%COMP%]{height:var(--street-tab)}#maps[_ngcontent-%COMP%]   .map-container[_ngcontent-%COMP%]{height:var(--street-content-tab)}}@media(min-width:1024px)and (max-width:1199px){#maps[_ngcontent-%COMP%]{height:72vh}#maps[_ngcontent-%COMP%]   .map-container[_ngcontent-%COMP%]{height:78vh!important}}@media(min-width:1200px)and (max-width:1399px){#maps[_ngcontent-%COMP%]{height:66vh}#maps[_ngcontent-%COMP%]   .map-container[_ngcontent-%COMP%]{height:92vh!important}}@media(min-width:1399px){#maps[_ngcontent-%COMP%]{height:76vh}#maps[_ngcontent-%COMP%]   .map-container[_ngcontent-%COMP%]{height:90vh!important}}@media(min-width:1920px){#maps[_ngcontent-%COMP%]{height:78vh}#maps[_ngcontent-%COMP%]   .map-container[_ngcontent-%COMP%]{height:92vh!important}}']})};function oo(n,e){if(n&1&&(a(0,"mat-button-toggle",7),l(1,"translate"),a(2,"span"),d(3),l(4,"translate"),r()()),n&2){let t=p();R("btn-primary-2",t.btnPrimary()&&t.valueButton()!=="photo"),Tt("aria-label",s(1,5,"Fotos")),u("checked",t.valueButton()==="photo"),o(3),x(s(4,7,"Fotos"))}}function ao(n,e){if(n&1&&(a(0,"mat-button-toggle",8)(1,"span"),d(2),l(3,"translate"),r()()),n&2){let t=p();R("btn-primary-2",t.btnPrimary()&&t.valueButton()!=="tour"),o(2),x(s(3,3,"360\xBA"))}}function ro(n,e){if(n&1&&(a(0,"mat-button-toggle",9),l(1,"translate"),a(2,"span"),d(3),l(4,"translate"),r()()),n&2){let t=p();R("btn-primary-2",t.btnPrimary()&&t.valueButton()!=="video"),Tt("aria-label",s(1,5,"V\xEDdeo")),u("checked",t.valueButton()==="video"),o(3),x(s(4,7,"V\xEDdeo"))}}function co(n,e){if(n&1){let t=w();a(0,"mat-button-toggle",10),l(1,"translate"),b("click",function(){f(t);let c=p();return M(c.openStreetView(c.property().latitude,c.property().longitude))}),a(2,"span"),d(3),l(4,"translate"),l(5,"formatTitle"),r()()}if(n&2){let t=p();R("btn-primary-2",t.btnPrimary()&&t.valueButton()!=="street_view"),u("value",t.haveMaps?"street_view":"photo"),Tt("aria-label",s(1,5,"Vista da rua")),o(3),x(s(5,9,s(4,7,"Vista da rua")))}}var ge=class n{appComponent=_(Xt);property=C(void 0);parameters=C(void 0);valueButton=C(void 0);btnPrimary=C(!1);valueChange=Y();videos=!1;virtualTour=!1;haveMaps=!!this.appComponent.googleMaps?.api_key&&this.appComponent.googleMaps?.active===!0;showAddress=L(()=>!!this.parameters()&&this.parameters()?.site_show_address_options!=="dont_show");ngOnInit(){let e=this.property();e&&e.multimidias.forEach(t=>{t.category==="videos"?this.videos=!0:this.virtualTour=!0})}valueChanged(e){this.valueChange.emit(e)}openStreetView(e,t){if(!this.haveMaps){let i=`https://www.google.com/maps/@?api=1&map_action=pano&viewpoint=${e},${t}&heading=100&pitch=0&fov=90`;window.open(i,"_blank")}}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=P({type:n,selectors:[["imobzi-button-toggle-category"]],inputs:{property:[1,"property"],parameters:[1,"parameters"],valueButton:[1,"valueButton"],btnPrimary:[1,"btnPrimary"]},outputs:{valueChange:"valueChange"},decls:11,vars:13,consts:[["group","matButtonToggleGroup"],["hideSingleSelectionIndicator","",3,"change"],["value","photo",1,"btn","col-xs-12","col-sm-12","col-md-12","col-lg-12","col-xl-12",3,"btn-primary-2","aria-label","checked"],["value","tour","aria-label","360\xBA",1,"btn","col-xs-12","col-sm-12","col-md-12","col-lg-12","col-xl-12",3,"btn-primary-2"],["value","video",1,"btn","col-xs-12","col-sm-12","col-md-12","col-lg-12","col-xl-12",3,"btn-primary-2","aria-label","checked"],["value","maps",1,"btn","col-xs-12","col-sm-12","col-md-12","col-lg-12","col-xl-12",3,"aria-label","checked"],[1,"btn","street_view","col-xs-12","col-sm-12","col-md-12","col-lg-12","col-xl-12",3,"btn-primary-2","value","aria-label"],["value","photo",1,"btn","col-xs-12","col-sm-12","col-md-12","col-lg-12","col-xl-12",3,"aria-label","checked"],["value","tour","aria-label","360\xBA",1,"btn","col-xs-12","col-sm-12","col-md-12","col-lg-12","col-xl-12"],["value","video",1,"btn","col-xs-12","col-sm-12","col-md-12","col-lg-12","col-xl-12",3,"aria-label","checked"],[1,"btn","street_view","col-xs-12","col-sm-12","col-md-12","col-lg-12","col-xl-12",3,"click","value","aria-label"]],template:function(t,i){if(t&1){let c=w();a(0,"mat-button-toggle-group",1,0),b("change",function(){f(c);let V=dt(1);return M(i.valueChanged(V.value))}),m(2,oo,5,9,"mat-button-toggle",2),m(3,ao,4,5,"mat-button-toggle",3),m(4,ro,5,9,"mat-button-toggle",4),a(5,"mat-button-toggle",5),l(6,"translate"),a(7,"span"),d(8),l(9,"translate"),r()(),m(10,co,6,11,"mat-button-toggle",6),r()}t&2&&(o(2),g(i.property().photos&&i.property().photos.length>0?2:-1),o(),g(i.virtualTour?3:-1),o(),g(i.videos?4:-1),o(),R("btn-primary-2",i.btnPrimary()&&i.valueButton()!=="maps"),Tt("aria-label",s(6,9,"Mapas")),u("checked",i.valueButton()==="maps"),o(3),x(s(9,11,"Mapa")),o(2),g(i.property().address?10:-1))},dependencies:[Pn,fn,N,q],styles:[".mat-button-toggle-group[_ngcontent-%COMP%]{position:relative;display:grid;grid-template-columns:repeat(12,1fr);grid-gap:16px}.mat-button-toggle-group[_ngcontent-%COMP%]   .mat-button-toggle[_ngcontent-%COMP%]{height:36px}@media screen and (min-width:320px){.mat-button-toggle-group[_ngcontent-%COMP%]   .mat-button-toggle[_ngcontent-%COMP%]{height:calc(36px + .0075*(100vw - 320px))}}@media screen and (min-width:1920px){.mat-button-toggle-group[_ngcontent-%COMP%]   .mat-button-toggle[_ngcontent-%COMP%]{height:48px}}.mat-button-toggle-group[_ngcontent-%COMP%]   .mat-button-toggle[_ngcontent-%COMP%]:first-child{grid-column-start:2;grid-column-end:2}.mat-button-toggle-group-appearance-standard[_ngcontent-%COMP%]{border:none}.mat-button-toggle-group-appearance-standard[_ngcontent-%COMP%]   .mat-button-toggle[_ngcontent-%COMP%]{background-color:#fff;border:2px solid #ffffff;z-index:99;padding:0 10px}.mat-button-toggle-group-appearance-standard[_ngcontent-%COMP%]   .mat-button-toggle[_ngcontent-%COMP%]:hover{background-color:var(--secondary-background);border:2px solid var(--secondary-background);color:#fff}.btn[_ngcontent-%COMP%]{background-color:#fff;color:#000!important}.btn[_ngcontent-%COMP%]:hover{border:2px solid var(--secondary-background)!important;background-color:var(--secondary-background)!important;color:#fff!important}  .mat-button-toggle-checked.mat-button-toggle-appearance-standard{border:2px solid var(--secondary-background)!important;background-color:var(--secondary-background)!important;color:#fff!important}  .mat-button-toggle-checked.mat-button-toggle-appearance-standard:hover{background-color:var(--secondary-background)!important}  .mat-button-toggle-label-content{line-height:100%!important;padding:0!important}  .mat-button-toggle-focus-overlay{border-bottom:solid 60px!important}  .mat-button-toggle-button{height:100%}  .mat-button-toggle .mat-button-toggle-ripple{border-radius:60px}@media(max-width:767px){.displayNone[_ngcontent-%COMP%]{display:none}.mat-button-toggle-group[_ngcontent-%COMP%]{grid-gap:10px}}@media(min-width:768px)and (max-width:1023px){.mat-button-toggle[_ngcontent-%COMP%]:first-child{grid-column-start:2!important;grid-column-end:4!important}.mat-button-toggle[_ngcontent-%COMP%]:nth-child(n+2){grid-column-start:4!important;grid-column-end:6!important}.mat-button-toggle[_ngcontent-%COMP%]:nth-child(n+3){grid-column-start:6!important;grid-column-end:8!important}.mat-button-toggle[_ngcontent-%COMP%]:nth-child(n+4){grid-column-start:8!important;grid-column-end:10!important}.mat-button-toggle[_ngcontent-%COMP%]:nth-child(n+5){grid-column-start:10!important;grid-column-end:12!important}}@media(min-width:1024px)and (max-width:1199px){.mat-button-toggle[_ngcontent-%COMP%]:first-child{grid-column-start:2!important;grid-column-end:4!important}.mat-button-toggle[_ngcontent-%COMP%]:nth-child(n+2){grid-column-start:4!important;grid-column-end:6!important}.mat-button-toggle[_ngcontent-%COMP%]:nth-child(n+3){grid-column-start:6!important;grid-column-end:8!important}.mat-button-toggle[_ngcontent-%COMP%]:nth-child(n+4){grid-column-start:8!important;grid-column-end:10!important}.mat-button-toggle[_ngcontent-%COMP%]:nth-child(n+5){grid-column-start:10!important;grid-column-end:12!important}}.btn-primary-2[_ngcontent-%COMP%]{border-color:var(--primary-background)!important;color:var(--primary-background)!important}"]})};function lo(n,e){if(n&1){let t=w();a(0,"img",7),b("error",function(c){f(t);let h=p(6);return M(h.realtorImgErrorHandler(c))}),r()}if(n&2){let t=p(6);u("title",$("Corretor ",t.listingBroker().name))("alt","Corretor "+t.listingBroker().name)("src",t.realtorImage(t.listingBroker()),T)}}function po(n,e){if(n&1&&m(0,lo,1,4,"img",6),n&2){let t=p(5);g(t.realtorImage(t.listingBroker())?0:-1)}}function so(n,e){if(n&1){let t=w();a(0,"img",9),b("error",function(c){f(t);let h=p(6);return M(h.realtorImgErrorHandler(c))}),r()}if(n&2){let t=p(6);u("src",t.realtorImage(),T)}}function mo(n,e){if(n&1&&m(0,so,1,1,"img",8),n&2){let t=p(5);g(t.realtorImage()?0:-1)}}function go(n,e){if(n&1&&m(0,po,1,1)(1,mo,1,1),n&2){let t,i=p(4);g(i.listingBroker&&((t=i.listingBroker())!=null&&t.license||i.parameters().realtor.show_owner_whatsapp||i.parameters().realtor.show_owner_phone)?0:1)}}function _o(n,e){if(n&1&&(a(0,"div",5),m(1,go,2,1),r()),n&2){let t,i=p().$implicit,c=p(2);o(),g(i.id===1&&((t=c.siteConfiguration())==null||t.details_page==null?null:t.details_page.realtors_avatar)!=="not_display"?1:-1)}}function uo(n,e){if(n&1){let t=w();a(0,"button",4),b("click",function(){let c=f(t).$implicit,h=p(2);return M(h.btnChanged(c.modal))}),m(1,_o,2,1,"div",5),d(2),l(3,"uppercase"),l(4,"translate"),r()}if(n&2){let t=e.$implicit,i=p(2);rt($("listingBroker shadow relative btn btn-md border-primary-2 ",t.style)),o(),g(i.activateLayout()?
9-1:1),o(),D(" ",s(4,7,s(3,5,t.value))," ")}}function Co(n,e){if(n&1&&v(0,uo,5,9,"button",3,E),n&2){let t=p();O(t.buttons)}}var _e=class n{appService=_(U);homeService=_(Q);listingBroker=C(void 0);activateLayout=C(void 0);parameters=C(void 0);btnFloatingAction=Y();comeBack=Y();clientBucketPath=this.appService.clientBucketPath();layoutBucketPath=this.appService.layoutBucketPath();siteConfiguration=this.homeService.getSiteConfiguration();buttons;ngOnInit(){let e=this.parameters();this.buttons=[{id:1,value:e.realtor.show_owner_whatsapp||e.realtor.show_owner_phone?"Fale com o propriet\xE1rio":"Fale com o Corretor",style:"btn-secondary-1",modal:"contact_broker"}]}onComeBack(){this.comeBack.emit()}get hasContactBroker(){return(this.siteConfiguration()?.custom_buttons?.widget??[]).some(t=>t.type==="modal"&&t.action?.modal_type==="contact_broker")}btnChanged(e){this.btnFloatingAction.emit(e)}realtorImgErrorHandler(e){if(this.siteConfiguration()?.details_page?.realtors_avatar==="display_logo"){e.target.style.display="none";return}e.target.onerror=null,e.target.src=`${this.appService.layoutBucketPath()}realtor.png`}realtorImage(e){return Qt(this.siteConfiguration()?.details_page?.realtors_avatar,this.parameters()?.logotype_image_url,e?.profile_image_url,`${this.appService.layoutBucketPath()}realtor.png`)}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=P({type:n,selectors:[["imobzi-button-floating"]],inputs:{listingBroker:[1,"listingBroker"],activateLayout:[1,"activateLayout"],parameters:[1,"parameters"]},outputs:{btnFloatingAction:"btnFloatingAction",comeBack:"comeBack"},decls:7,vars:7,consts:[[1,"group_btn","col-xs-11","col-sm-10","col-md-10","col-lg-11","col-xl-11"],[1,"btn-icon","shadow","btn-secondary-1","come_back","col-xs-2","col-sm-2","col-md-2","col-lg-2","col-xl-2",3,"click","title"],["aria-label","Previous",1,"material-symbols-rounded"],[3,"class"],[3,"click"],[1,"img-realtors","absolute"],["loading","lazy","decoding","async",1,"img-circle","img-responsive","img-broker",3,"alt","src","title"],["loading","lazy","decoding","async",1,"img-circle","img-responsive","img-broker",3,"error","alt","src","title"],["alt","Imobiliaria","title","Imobiliaria","loading","lazy","decoding","async",1,"img-circle","img-responsive",3,"src"],["alt","Imobiliaria","title","Imobiliaria","loading","lazy","decoding","async",1,"img-circle","img-responsive",3,"error","src"]],template:function(t,i){t&1&&(a(0,"div",0)(1,"button",1),l(2,"translate"),l(3,"translate"),b("click",function(){return i.onComeBack()}),a(4,"mat-icon",2),d(5,"keyboard_backspace"),r()(),m(6,Co,2,0),r()),t&2&&(o(),u("title",s(2,3,"Voltar")),ht("aria-label",s(3,5,"Voltar")),o(5),g(i.hasContactBroker?6:-1))},dependencies:[H,Mt,N],styles:[".group_btn[_ngcontent-%COMP%]{position:fixed;bottom:60px;z-index:99;display:flex;justify-content:space-between;align-items:center}.group_btn[_ngcontent-%COMP%]   .btn-icon[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{color:#fff}.group_btn[_ngcontent-%COMP%]   .img-realtors[_ngcontent-%COMP%]{width:48px;left:-3px}.group_btn[_ngcontent-%COMP%]   .img-realtors[_ngcontent-%COMP%]   .img-broker[_ngcontent-%COMP%]{width:48px;height:48px;object-fit:cover}.group_btn[_ngcontent-%COMP%]   .come_back[_ngcontent-%COMP%]{width:36px;height:36px}.group_btn[_ngcontent-%COMP%]   .come_back[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%]{width:14px;height:14px;font-size:14px}.group_btn[_ngcontent-%COMP%]   .listingBroker[_ngcontent-%COMP%]{justify-content:flex-end;padding:0 20px 0 55px}"]})};var ue=class n{dialog=_(tt);location=_(At);router=_($t);platformId=_(F);property=C(void 0);parameters=C(void 0);saveSearchParams=C({});windowScrolled;windowScrolledBottom;setScroll=700;onWindowScroll(){z(this.platformId)&&(window.pageYOffset>this.setScroll||document.documentElement.scrollTop>this.setScroll||document.body.scrollTop>this.setScroll?this.windowScrolled=!0:(this.windowScrolled&&window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop<this.setScroll)&&(this.windowScrolled=!1),window.innerHeight+window.scrollY+200>=document.body.offsetHeight?this.windowScrolledBottom=!0:this.windowScrolledBottom=!1)}openContactBrokerDialog(e){this.dialog.open(Kt,{panelClass:"custom-dialog-container",id:e,data:{property:this.property(),parameters:this.parameters(),formType:e,stepVisit:!1}})}comeBack(){let e=this.property();history.state.navigationId>1?this.location.back():this.router.navigate(["/buscar"],{queryParams:{cursor:"",availability:e.tags[0]==="sale"?"buy":e.tags[0],property_type:this.property().property_type}})}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=P({type:n,selectors:[["imobzi-widget-mobile-container"]],hostBindings:function(t,i){t&1&&b("scroll",function(){return i.onWindowScroll()},Et)},inputs:{property:[1,"property"],parameters:[1,"parameters"],saveSearchParams:[1,"saveSearchParams"]},decls:2,vars:9,consts:[[3,"property","saveSearchParams","parameters"],[3,"btnFloatingAction","comeBack","listingBroker","parameters"]],template:function(t,i){t&1&&(y(0,"imobzi-widget-card",0),a(1,"imobzi-button-floating",1),b("btnFloatingAction",function(h){return i.openContactBrokerDialog(h)})("comeBack",function(){return i.comeBack()}),r()),t&2&&(u("property",i.property())("saveSearchParams",i.saveSearchParams())("parameters",i.parameters()),o(),R("windowScrolled",i.windowScrolled)("scrollBottom",i.windowScrolledBottom===!0),u("listingBroker",i.property().listing_broker)("parameters",i.parameters()))},dependencies:[Bt,_e],styles:["imobzi-button-floating[_ngcontent-%COMP%]{opacity:0;pointer-events:none;transition:opacity 2s ease-in-out}.windowScrolled[_ngcontent-%COMP%]{opacity:1;pointer-events:auto}.scrollBottom[_ngcontent-%COMP%]{display:none}"],changeDetection:0})};function yo(n,e){if(n&1&&(S(0,"span",2),d(1),l(2,"translate"),l(3,"formatTitle"),S(4,"a",3),l(5,"translate"),l(6,"formatTitle"),d(7),k()()),n&2){let t=p(2).$implicit;o(),D(" ",s(3,7,s(2,5,t.name)),": "),o(3),K("href",$("mailto:",t.value),T)("title",s(6,11,s(5,9,t.name))),o(3),x(t.value)}}function ho(n,e){if(n&1&&(S(0,"span",2),d(1),l(2,"translate"),l(3,"formatTitle"),S(4,"a",4),d(5),k()()),n&2){let t=p(2).$implicit;o(),D(" ",s(3,8,s(2,6,t.name)),": "),o(3),K("title",A(t.name))("href",A(t.value),T),o(),x(t.value)}}function bo(n,e){if(n&1&&(S(0,"span",2),d(1),l(2,"translate"),l(3,"formatTitle"),l(4,"date"),k()),n&2){let t=p(2).$implicit;o(),W(" ",s(3,4,s(2,2,t.name)),": ",G(4,6,t.value,"d/M/yyyy")," ")}}function Po(n,e){if(n&1&&(S(0,"span",2),d(1),l(2,"translate"),l(3,"formatTitle"),k()),n&2){let t=p(2).$implicit;o(),W(" ",s(3,4,s(2,2,t.name)),": ",t.value," ")}}function fo(n,e){if(n&1&&m(0,yo,8,13,"span",2)(1,ho,6,10,"span",2)(2,bo,5,9,"span",2)(3,Po,4,6,"span",2),n&2){let t,i=p().$implicit;g((t=i.type)==="email"?0:t==="url"?1:t==="date"?2:3)}}function Mo(n,e){if(n&1&&m(0,fo,4,1),n&2){let t=e.$implicit;g(t.value?0:-1)}}var Ce=class n{otherInformationsProperty=C(void 0);otherInformations;sortFieldByPosition=(e,t)=>e.position.localeCompare(t.position,"pt-BR",{numeric:!0});ngOnInit(){this.setOtherInformations()}setOtherInformations(){this.otherInformations=this.otherInformationsProperty().map(e=>e[0]),this.otherInformations=this.otherInformations.sort(this.sortFieldByPosition),this.otherInformations=this.otherInformations.reduce((e,t)=>
9(Array.isArray(t.value)&&t.value.length===0||(t.type=this.checkFieldType(t),t.value&&e.push(t)),e),[])}checkFieldType(e){let t=new RegExp("[A-Za-z0-9._-]+@((?:[-a-z0-9]+.)+[a-z]{1,})[^s]"),i=/https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_\+.~#?&\//=]*)/;switch(e.configuration.typevalue){case"date":return"date";case"float":return"string";case"long":return"string";case"string":return t.test(String(e.value))?"email":i.test(String(e.value))?"url":"string";default:return"string"}}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=P({type:n,selectors:[["imobzi-other-informations"]],inputs:{otherInformationsProperty:[1,"otherInformationsProperty"]},decls:7,vars:5,consts:[[1,"other-information-container"],[1,"col-xs-12","col-sm-12","col-md-12","col-lg-12","col-xl-12"],[1,"item","col-xs-12","col-sm-12","col-md-6","col-lg-6","col-xl-6"],["aria-label","E-mail","rel","noopener",3,"href","title"],["target","_blank","rel","noopener noreferrer",3,"title","href"]],template:function(t,i){t&1&&(S(0,"section",0)(1,"h2",1),d(2),l(3,"translate"),l(4,"formatTitle"),k(),v(5,Mo,1,1,null,null,E),k()),t&2&&(o(2),x(s(4,3,s(3,1,"Outras informa\xE7\xF5es"))),o(3),O(i.otherInformations))},dependencies:[Ke,N,q],styles:[".other-information-container[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap}.other-information-container[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]{flex-grow:1;margin:10px 0;text-overflow:ellipsis;overflow:hidden}.other-information-container[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{text-decoration:underline}@media(min-width:1024px)and (max-width:1199px){.other-information-container[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]{margin-bottom:20px!important;padding-right:30px!important}}@media(min-width:1399px){.other-information-container[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]{margin-bottom:20px!important;padding-right:30px!important}}"]})};var ye=class n{site_description=C.required();static \u0275fac=function(t){return new(t||n)};static \u0275cmp=P({type:n,selectors:[["imobzi-property-description"]],inputs:{site_description:[1,"site_description"]},decls:2,vars:3,consts:[["appTranslate","",1,"html-reset",3,"innerHtml"]],template:function(t,i){t&1&&(y(0,"div",0),l(1,"sanitizedHtml")),t&2&&u("innerHtml",s(1,1,i.site_description()),Ve)},dependencies:[ln,pn],styles:[`:host{display:block}
10`],encapsulation:3})};var xo=n=>({titleView:n});function vo(n,e){n&1&&y(0,"div",3)}function Oo(n,e){n&1&&y(0,"div",4)}function wo(n,e){n&1&&y(0,"div",6)}function So(n,e){}function ko(n,e){}function Bo(n,e){if(n&1&&gt(0,ko,0,0,"ng-template",7),n&2){p(2);let t=dt(2);u("ngTemplateOutlet",t)}}function To(n,e){}function Do(n,e){if(n&1&&(a(0,"div",9),gt(1,To,0,0,"ng-template",7),r()),n&2){p(2);let t=dt(2);o(),u("ngTemplateOutlet",t)}}function zo(n,e){if(n&1&&(a(0,"section",2),m(1,vo,1,0,"div",3)(2,Oo,1,0,"div",4),a(3,"div",5),m(4,wo,1,0,"div",6),gt(5,So,0,0,"ng-template",7),y(6,"imobzi-widget-mobile-container",8),m(7,Bo,1,1,null,7),r(),m(8,Do,2,1,"div",9),r()),n&2){let t,i=p(),c=dt(4);o(),g((t=i.parameters().site_property_details.property_details_background)==="full"?1:t==="none"?2:-1),o(2),R("background-none-colors",i.parameters().site_property_details.property_details_background==="none")("background-partial-colors",i.parameters().site_property_details.property_details_background==="partial")("background-full-colors",i.parameters().site_property_details.property_details_background==="full")("partial-header-layout",i.parameters().site_property_details.property_details_background==="partial"),o(),g(i.parameters().site_property_details.property_details_background==="partial"?4:-1),o(),u("ngTemplateOutlet",c),o(),R("widget-partial",i.parameters().site_property_details.property_details_background==="partial"),u("property",i.property())("saveSearchParams",i.saveSearchParams())("parameters",i.parameters()),o(),g(i.parameters().site_property_details.property_details_background!=="partial"?7:-1),o(),g(i.parameters().site_property_details.property_details_background==="partial"?8:-1)}}function Eo(n,e){if(n&1&&(a(0,"p",10),d(1),l(2,"translate"),l(3,"formatTitle"),r()),n&2){let t=p(2);o(),W(" ",s(3,4,s(2,2,"Dimens\xF5es do Lote/Terreno:"))," ",t.property().property_dimension," ")}}function Io(n,e){if(n&1&&(a(0,"div",14),y(1,"imobzi-property-description",15),l(2,"translate"),r()),n&2){let t=p(2);R("partial-description",t.parameters().site_property_details.property_details_background==="partial"),o(),u("site_description",s(2,3,t.property().site_description))}}function Vo(n,e){if(n&1&&y(0,"imobzi-other-informations",12),n&2){let t=p(2);u("otherInformationsProperty",t.property().fields.other_information)}}function Ao(n,e){if(n&1){let t=w();a(0,"div",13)(1,"a",16),b("click",function(){f(t);let c=p(2);return M(c.openBuilding())}),d(2),l(3,"translate"),l(4,"formatTitle"),a(5,"span"),d(6),l(7,"translate"),l(8,"formatTitle"),r()()()}if(n&2){let t=p(2);o(2),D(" ",s(4,4,s(3,2,"Veja mais op\xE7\xF5es de"))," "),o(4),D(" ",s(8,8,s(7,6,t.property().building_name)))}}function Fo(n,e){if(n&1&&(m(0,Eo,4,6,"p",10),m(1,Io,3,5,"div",11),m(2,Vo,1,1,"imobzi-other-informations",12),m(3,Ao,9,10,"div",13)),n&2){let t,i=p();g(i.property().property_dimension?0:-1),o(),g(i.property().site_description?1:-1),o(),g(((t=i.property())==null||t.fields==null||t.fields.other_information==null?null:t.fields.other_information.length)>0?2:-1),o(),g(i.property().building_name?3:-1)}}function No(n,e){if(n&1&&(a(0,"p",19),d(1),l(2,"translate"),l(3,"formatTitle"),r()),n&2){let t=p(2);o(),x(s(3,3,s(2,1,"C\xF3d: "+t.property().code)))}}function Ro(n,e){if(n&1&&(a(0,"p",19),d(1),l(2,"translate"),l(3,"formatTitle"),r(),a(4,"p",19),d(5),l(6,"translate"),l(7,"formatTitle"),r()),n&2){let t=p(2);o(),D(" ",s(3,4,s(2,2,"C\xF3d. Portal: "+t.property().member_register_code))," "),o(4),D(" ",s(7,8,s(6,6,"C\x
10F3d. Anunciante: "+t.property().code))," ")}}function $o(n,e){if(n&1&&y(0,"imobzi-location",22),n&2){let t,i=p(2);u("adr",i.property().address)("nbh",i.property().neighborhood)("cit",i.property().city)("stt",i.property().state)("showAddressOption",(t=i.parameters())==null?null:t.site_show_address_options)}}function jo(n,e){if(n&1&&(a(0,"p",24),l(1,"translate"),d(2),l(3,"translate"),l(4,"formatTitle"),l(5,"translate"),l(6,"formatTitle"),r()),n&2){let t=p(2);u("title",s(1,3,"H\xF3spedes")),o(2),W(" ",t.property().vacation_rental_guests," ",t.property().vacation_rental_guests>1?s(4,7,s(3,5,"H\xF3spedes")):s(6,11,s(5,9,"H\xF3spede"))," ")}}function Lo(n,e){if(n&1&&(a(0,"p",24),l(1,"translate"),d(2),l(3,"translate"),l(4,"formatTitle"),l(5,"translate"),l(6,"formatTitle"),r()),n&2){let t=p(2);u("title",s(1,3,"Quartos")),o(2),W(" ",t.property().bedroom," ",t.property().bedroom>1?s(4,7,s(3,5,"Quartos")):s(6,11,s(5,9,"Quarto"))," ")}}function Uo(n,e){if(n&1&&(a(0,"p",24),l(1,"translate"),d(2),l(3,"translate"),l(4,"formatTitle"),l(5,"translate"),l(6,"formatTitle"),r()),n&2){let t=p(2);u("title",s(1,3,t.property().bathroom>1?"Banheiros":"Banheiro")),o(2),W(" ",t.property().bathroom," ",t.property().bathroom>1?s(4,7,s(3,5,"Banheiros")):s(6,11,s(5,9,"Banheiro"))," ")}}function Wo(n,e){if(n&1&&(a(0,"p",24),l(1,"translate"),l(2,"formatTitle"),d(3),l(4,"translate"),l(5,"formatTitle"),l(6,"translate"),l(7,"formatTitle"),r()),n&2){let t=p(2);u("title",s(2,5,s(1,3,t.property().suite>1?"Su\xEDtes":"Su\xEDte"))),o(3),W(" ",t.property().suite," ",t.property().suite>1?s(5,9,s(4,7,"Su\xEDtes")):s(7,13,s(6,11,"Su\xEDte"))," ")}}function Go(n,e){if(n&1&&(a(0,"p",24),l(1,"translate"),l(2,"formatTitle"),d(3),l(4,"translate"),l(5,"formatTitle"),l(6,"translate"),l(7,"formatTitle"),r()),n&2){let t=p(2);u("title",s(2,5,s(1,3,"Vagas"))),o(3),W(" ",t.property().garage," ",t.property().garage>1?s(5,9,s(4,7,"Vagas")):s(7,13,s(6,11,"Vaga"))," ")}}function Ho(n,e){if(n&1&&(a(0,"p",27),l(1,"translate"),l(2,"formatTitle"),d(3),l(4,"customCurrency"),l(5,"lowercase"),l(6,"translate"),l(7,"formatTitle"),r()),n&2){let t=p(3);u("title",s(2,6,s(1,4,"\xC1rea \xDAtil"))),o(3),Pt(" ",s(4,8,t.property().useful_area)," ",s(5,10,t.property().measure_type)," ",s(7,14,s(6,12,"\xC1rea \xFAtil"))," ")}}function Qo(n,e){if(n&1&&(a(0,"p",27),l(1,"translate"),l(2,"formatTitle"),d(3),l(4,"customCurrency"),l(5,"lowercase"),l(6,"translate"),l(7,"formatTitle"),r()),n&2){let t=p(3);u("title",s(2,6,s(1,4,"\xC1rea do Terreno"))),o(3),Pt(" ",s(4,8,t.property().lot_area)," ",s(5,10,t.property().measure_type)," ",s(7,14,s(6,12,"Terreno"))," ")}}function qo(n,e){if(n&1&&(a(0,"p",27),l(1,"translate"),l(2,"formatTitle"),d(3),l(4,"customCurrency"),l(5,"lowercase"),l(6,"translate"),l(7,"formatTitle"),r()),n&2){let t=p(3);u("title",s(2,6,s(1,4,"\xC1rea Constru\xEDda"))),o(3),Pt(" ",s(4,8,t.property().area)," ",s(5,10,t.property().measure_type)," ",s(7,14,s(6,12,"\xC1rea constru\xEDda"))," ")}}function Yo(n,e){if(n&1&&(a(0,"p",27),l(1,"translate"),l(2,"formatTitle"),d(3),l(4,"translate"),l(5,"formatTitle"),r()),n&2){let t=p(3);u("title",s(2,5,s(1,3,"Ano de constru\xE7\xE3o"))),o(3),W(" ",s(5,9,s(4,7,"Ano de constru\xE7\xE3o"))," ",t.property().built," ")}}function Ko(n,e){if(n&1&&(a(0,"div",26),m(1,Ho,8,16,"p",27),m(2,Qo,8,16,"p",27),m(3,qo,8,16,"p",27),m(4,Yo,6,11,"p",27),r()),n&2){let t=p(2);R("single-area-attribute",(t.property().useful_area&&t.property().useful_area>0?1:0)+(t.property().lot_area&&t.property().lot_area>0?1:0)+(t.property().area&&t.property().area>0?1:0)+(t.property().built?1:0)==1)("odd-area-attributes",(t.property().useful_area&&t.property().useful_area>0?1:0)+(t.property().lot_area&&t.property().lot_area>0?1:0)+(t.property().area&&t.property().area>0?1:0)+(t.property().built?1:0)>1&&((t.property().useful_area&&t.property().useful_area>0?1:0)+(t.property().lot_area&&t.property().lot_area>0?1:0)+(t.property().area&&t.property().area>0?1:0)+(t.property().built?1:0))%2!==0),o(),g(t.property().useful_area&&t.property().useful_area>0?1:-1),o(),g(t.property().lot_area&&t.property().lot_area>0?2:-1),o(),g(t.property().area&&t.property().area>0?3:-1),o(),g(t.property().built?4:-1)}}function Zo(n,e){if(n&1){let t=w();a(0,"div",17)(1,"imobzi-breadcrumb",18),b("openBuildings",function(){f(t);let c=p();return M(c.openBuilding())}),r(),m(2,No,4,5,"p",19)(3,Ro,8,10),r(),y(4,"imobzi-property-title",20),a(5,"div",21),m(6,$o,1,5,"imobzi-location",22),r(),a(7,"div",23),m(8,jo,7,13,"p",24),m(9,Lo,7,13,"p",24),m(10,Uo,7,13,"p",24),m(11,Wo,8,15,"p",24),m(12,Go,8,15,"p",24),r(),m(13,Ko,5,8,"div",25)}if(n&2){let t,i,c=p();o(),u("property",c.property()),o(),g(c.property().member_register_code?3:2),o(2),u("ngClass",Vt
10(11,xo,c.property().site_title.length>60))("property",c.property()),o(2),g(c.property()&&((t=c.parameters())==null?null:t.site_show_address_options)!=="dont_show"?6:-1),o(2),g(c.property().vacation_rental_guests&&c.property().vacation_rental_guests>0?8:-1),o(),g(c.property().bedroom?9:-1),o(),g(c.property().bathroom?10:-1),o(),g(c.property().suite?11:-1),o(),g(c.property().garage?12:-1),o(),g((i=c.property())!=null&&i.vacation_rental?-1:13)}}var he=class n{renderer=_(Fe);el=_(yt);_fieldsService=_(bn);breakpointsService=_(lt);platformId=_(F);homeService=_(Q);parametersService=_(et);property=C(void 0);saveSearchParams=C({});siteConfiguration=this.homeService.getSiteConfiguration();parameters=this.parametersService.getParameters();isSmallScreen=L(()=>this.breakpointsService.isInViewPort(it)());constructor(){let e=nt(()=>{z(this.platformId)&&this.siteConfiguration()&&this.property()&&(this.isSmallScreen()?this.updateItemsColorForMobile():this.setBackgroundPageColor(),e.destroy())})}openBuilding(){this._fieldsService.setPropertyFieldsUrl({building_name:this.property().building_name,search_type:"building"}),this._fieldsService.updateSearchLayout("grid")}setBackgroundPageColor(){let e=this.parameters()?.site_property_details?.property_details_background||"none",t=e==="full",i="#424242",c="#424242";if(z(this.platformId)){let h=e==="none"||e==="partial"?"--background-page":"--primary-background",V=document.documentElement.style.getPropertyValue(h),j=mt(V);i=j||t?"#ffffff":"#424242",c=j||e!=="none"?"#ffffff":"#424242",document.documentElement.style.setProperty("--color-description",i),document.documentElement.style.setProperty("--color-items",c),document.documentElement.style.setProperty("--color-building-button",yn(V))}else i=t?"#ffffff":"#424242",c=e!=="none"?"#ffffff":"#424242",this.renderer.setStyle(this.el.nativeElement,"--color-description",i),this.renderer.setStyle(this.el.nativeElement,"--color-items",c)}updateItemsColorForMobile(){let e=this.parameters().site_property_details.property_details_background,t="#ffffff",i="#ffffff",c=!1;if(["none","full"].includes(e)){let V=e==="none"?"--background-page":"--primary-background",j=document.documentElement.style.getPropertyValue(V),st=mt(j);c=st,t=st?"#ffffff":"#000000",i=st?"#ffffff":"#000000"}else{let V=document.documentElement.style.getPropertyValue("--background-page")||"#ffffff",j=document.documentElement.style.getPropertyValue("--primary-background"),st=mt(V),ut=mt(j);c=st,t=ut?"#ffffff":"#000000",i=st?"#ffffff":"#000000"}let h=c?"#ffffff":"#000000";z(this.platformId)?(document.documentElement.style.setProperty("--color-items",t),document.documentElement.style.setProperty("--color-description",i),document.documentElement.style.setProperty("--color-title",h)):(this.renderer.setStyle(this.el.nativeElement,"--color-items",t),this.renderer.setStyle(this.el.nativeElement,"--color-description",i),this.renderer.setStyle(this.el.nativeElement,"--color-title",h))}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=P({type:n,selectors:[["imobzi-abstract"]],inputs:{property:[1,"property"],saveSearchParams:[1,"saveSearchParams"]},decls:5,vars:1,consts:[["propertyDetails",""],["abstractHeaderContent",""],["id","property-abstract"],[1,"backgrond-overlay","col-xs-12","col-sm-12","col-md-10","col-lg-10","col-xl-10"],[1,"backgrond-overlay","background-none","col-xs-12","col-sm-12","col-md-10","col-lg-10","col-xl-10"],[1,"property-abstract-container","col-xs-11","col-sm-10","col-md-10","col-lg-10","col-xl-10"],[1,"backgrond-overlay","background-partial","col-xs-12","col-sm-12","col-md-10","col-lg-10","col-xl-10"],[3,"ngTemplateOutlet"],[3,"property","saveSearchParams","parameters"],[1,"partial-abstract","col-xs-11","col-sm-10","col-md-10","col-lg-10","col-xl-10"],[1,"property-dimension","h3","margin-bottom-30","bold","col-xs-12","col-sm-12","col-md-8","col-lg-8","col-xl-10"],[1,"property-description","h3","col-xs-12","col-sm-12","col-md-8","col-lg-8","col-xl-10",3,"partial-description"],[1,"h3","col-xs-12","col-sm-12","col-md-8","col-lg-8","col-xl-10",3,"otherInformationsProperty"],[1,"building-container","col-xs-12","col-sm-12","col-md-8","col-lg-8","col-xl-10"],[1,"property-description","h3","col-xs-12","col-sm-12","col-md-8","col-lg-8","col-xl-10"],[3,"site_description"],[1,"btn","btn-md","buildings",3,"click"],[1,"breadcrumb","col-xs-11","col-sm-12","col-md-8","col-lg-8","col-xl-8"],["category","imoveis",3,"openBuildings","property"],[1,"h4"],[1,"col-xs-11","col-sm-12","col-md-8","col-lg-8","col-xl-10",3,"ngClass","property"],[1,"location","col-xs-11","col-sm-12","col-md-8","col-lg-8","col-xl-10"],[3,"adr","nbh","cit","stt","showAddressOption"],[1,"property-attributes-vacation","col-xs-12","col-sm-12","col-md-8","col-lg-8","col-xl-10"],[1,"h2","attributes-item-vacation",3,"title"],[1,"property-attributes","col-xs-12","col-sm-12","col-md-8","col-lg-8","col-xl-10",3,"single-area-attribute","odd-area-attributes"],[1,"property-attributes","col-xs-12","col-sm-12","col-md-8","col-lg-8","col-xl-10"],[1,"h2","attributes-item",3,"title"]],template:function(t,i){t&1&&(m(0,zo,9,18,"section",2),gt(1,Fo,4,4,"ng-template",null,0,ft)(3,Zo,14,13,"ng-template",null,1,ft)),t&2&&g(i.property()&&i.parameters()?0:-1)},dependencies:[Sn,St,qe,kt,ue,Ft,Ce,ye,Ye,Ct,N,q],styles:['[_ngcontent-%COMP%]:root{--color-items: #ffffff;--color-description: #ffffff}#property-abstract[_ngcontent-%COMP%]{display:flex;flex-direction:column}#property-abstract[_ngcontent-%COMP%]   .backgrond-overlay[_ngcontent-%COMP%]{position:absolute;top:0;left:0;height:100%;background-color:var(--primary-background)}#property-abstract[_ngcontent-%COMP%]   .breadcrumb[_ngcontent-%COMP%]{margin-bottom:10px;display:flex;justify-content:space-between;align-items:center}#property-abstract[_ngcontent-%COMP%]     .property-title h3{color:var(--color-items)}#property-abstract[_ngcontent-%COMP%]   imobzi-widget-mobile-container[_ngcontent-%COMP%]{display:none}#property-abstract[_ngcontent-%COMP%]   .property-abstract-container[_ngcontent-%COMP%], #property-abstract[_ngcontent-%COMP%]   .partial-abstract[_ngcontent-%COMP%]{position:relative;padding:86px 0 30px;margin:auto;bottom:0}#property-abstract[_ngcontent-%COMP%]   .property-abstract-container.partial-header-layout[_ngcontent-%COMP%], #property-abstract[_ngcontent-%COMP%]   .partial-header-layout.partial-abstract[_ngcontent-%COMP%]{padding-top:86px}#property-abstract[_ngcontent-%COMP%]   .property-abstract-container[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%], #property-abstract[_ngcontent-%COMP%]   .partial-abstract[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%], #property-abstract[_ngcontent-%COMP%]   .property-abstract-container[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%], #property-abstract[_ngcontent-%COMP%]   .partial-abstract[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%], #property-abstract[_ngcontent-%COMP%]   .property-abstract-container[_ngcontent-%COMP%]   h4[_ng
10content-%COMP%], #property-abstract[_ngcontent-%COMP%]   .partial-abstract[_ngcontent-%COMP%]   h4[_ngcontent-%COMP%], #property-abstract[_ngcontent-%COMP%]   .property-abstract-container[_ngcontent-%COMP%]   p.h2[_ngcontent-%COMP%], #property-abstract[_ngcontent-%COMP%]   .partial-abstract[_ngcontent-%COMP%]   p.h2[_ngcontent-%COMP%], #property-abstract[_ngcontent-%COMP%]   .property-abstract-container[_ngcontent-%COMP%]   p.h3[_ngcontent-%COMP%], #property-abstract[_ngcontent-%COMP%]   .partial-abstract[_ngcontent-%COMP%]   p.h3[_ngcontent-%COMP%], #property-abstract[_ngcontent-%COMP%]   .property-abstract-container[_ngcontent-%COMP%]   p.h4[_ngcontent-%COMP%], #property-abstract[_ngcontent-%COMP%]   .partial-abstract[_ngcontent-%COMP%]   p.h4[_ngcontent-%COMP%]{color:var(--color-items)!important}#property-abstract[_ngcontent-%COMP%]   .property-abstract-container[_ngcontent-%COMP%]   .property-code[_ngcontent-%COMP%], #property-abstract[_ngcontent-%COMP%]   .partial-abstract[_ngcontent-%COMP%]   .property-code[_ngcontent-%COMP%]{text-align:end}#property-abstract[_ngcontent-%COMP%]   .property-abstract-container[_ngcontent-%COMP%]   .property-attributes[_ngcontent-%COMP%], #property-abstract[_ngcontent-%COMP%]   .partial-abstract[_ngcontent-%COMP%]   .property-attributes[_ngcontent-%COMP%]{max-height:200px;display:flex;font-size:large!important}#property-abstract[_ngcontent-%COMP%]   .property-abstract-container[_ngcontent-%COMP%]   .property-attributes[_ngcontent-%COMP%]   .attributes-item[_ngcontent-%COMP%], #property-abstract[_ngcontent-%COMP%]   .partial-abstract[_ngcontent-%COMP%]   .property-attributes[_ngcontent-%COMP%]   .attributes-item[_ngcontent-%COMP%]{margin-top:.83em;margin-right:20px;margin-bottom:10px}#property-abstract[_ngcontent-%COMP%]   .property-abstract-container[_ngcontent-%COMP%]   .property-attributes-vacation[_ngcontent-%COMP%], #property-abstract[_ngcontent-%COMP%]   .partial-abstract[_ngcontent-%COMP%]   .property-attributes-vacation[_ngcontent-%COMP%]{margin:20px 0;max-height:200px;display:flex;flex-wrap:wrap}#property-abstract[_ngcontent-%COMP%]   .property-abstract-container[_ngcontent-%COMP%]   .property-attributes-vacation[_ngcontent-%COMP%]   .attributes-item-vacation[_ngcontent-%COMP%], #property-abstract[_ngcontent-%COMP%]   .partial-abstract[_ngcontent-%COMP%]   .property-attributes-vacation[_ngcontent-%COMP%]   .attributes-item-vacation[_ngcontent-%COMP%]{margin-right:30px;margin-bottom:0;margin-top:0}#property-abstract[_ngcontent-%COMP%]   .property-abstract-container[_ngcontent-%COMP%]     .property-description *, #property-abstract[_ngcontent-%COMP%]   .partial-abstract[_ngcontent-%COMP%]     .property-description *{color:var(--color-description)!important}#property-abstract[_ngcontent-%COMP%]   .property-abstract-container[_ngcontent-%COMP%]     .property-description li, #property-abstract[_ngcontent-%COMP%]   .partial-abstract[_ngcontent-%COMP%]     .property-description li{list-style-type:disc!important;margin-left:40px}#property-abstract[_ngcontent-%COMP%]   .property-abstract-container[_ngcontent-%COMP%]     .property-description p, #property-abstract[_ngcontent-%COMP%]   .partial-abstract[_ngcontent-%COMP%]     .property-description p{display:block}#property-abstract[_ngcontent-%COMP%]   .property-abstract-container[_ngcontent-%COMP%]     imobzi-other-informations, #property-abstract[_ngcontent-%COMP%]   .partial-abstract[_ngcontent-%COMP%]     imobzi-other-informations{color:var(--color-description)!important}#property-abstract[_ngcontent-%COMP%]   .property-abstract-container[_ngcontent-%COMP%]   .building-container[_ngcontent-%COMP%], #property-abstract[_ngcontent-%COMP%]   .partial-abstract[_ngcontent-%COMP%]   .building-container[_ngcontent-%COMP%]{display:flex;justify-content:center;margin-top:15px}#property-abstract[_ngcontent-%COMP%]   .property-abstract-container[_ngcontent-%COMP%]   .building-container[_ngcontent-%COMP%]   .buildings[_ngcontent-%COMP%], #property-abstract[_ngcontent-%COMP%]   .partial-abstract[_ngcontent-%COMP%]   .building-container[_ngcontent-%COMP%]   .buildings[_ngcontent-%COMP%]{width:75%;color:var(--color-building-button, var(--color-items))!important;border:2px solid var(--color-building-button, var(--color-items))!important}#property-abstract[_ngcontent-%COMP%]   .property-abstract-container[_ngcontent-%COMP%]   .building-container[_ngcontent-%COMP%]   .buildings[_ngcontent-%COMP%]   span[_ngcontent-%COMP%], #property-abstract[_ngcontent-%COMP%]   .partial-abstract[_ngcontent-%COMP%]   .building-container[_ngcontent-%COMP%]   .buildings[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-weight:700;text-decoration:underline;margin-left:5px}imobzi-property-title[_ngcontent-%COMP%]{display:block}@media(max-width:767px){  imobzi-property-title .property-title{margin-bottom:20px!important}  imobzi-property-title .property-title .display-h3{font-size:20px!important}.partial-description[_ngcontent-%COMP%]{margin-top:0!important}.property-abstract-container[_ngcontent-%COMP%], .partial-abstract[_ngcontent-%COMP%]{padding:25px 0 30px!important;display:flex;flex-direction:column;align-items:center;margin:0;width:100%}.property-abstract-container[_ngcontent-%COMP%]:before, .partial-abstract[_ngcontent-%COMP%]:before{right:0;left:0}.property-abstract-container[_ngcontent-%COMP%]   .property-attributes[_ngcontent-%COMP%], .partial-abstract[_ngcontent-%COMP%]   .property-attributes[_ngcontent-%COMP%]{display:flex!important;flex-wrap:wrap!important;justify-content:center;gap:10px 14px;width:100%!important;line-height:1.2;margin:0 0 10px!important}.property-abstract-container[_ngcontent-%COMP%]   .property-attributes.single-area-attribute[_ng
10content-%COMP%]   .attributes-item[_ngcontent-%COMP%], .partial-abstract[_ngcontent-%COMP%]   .property-attributes.single-area-attribute[_ngcontent-%COMP%]   .attributes-item[_ngcontent-%COMP%]{text-align:center}.property-abstract-container[_ngcontent-%COMP%]   .property-attributes.odd-area-attributes[_ngcontent-%COMP%]   .attributes-item[_ngcontent-%COMP%]:last-child, .partial-abstract[_ngcontent-%COMP%]   .property-attributes.odd-area-attributes[_ngcontent-%COMP%]   .attributes-item[_ngcontent-%COMP%]:last-child{width:100%;text-align:center}.property-abstract-container[_ngcontent-%COMP%]   .property-attributes[_ngcontent-%COMP%]   .attributes-item[_ngcontent-%COMP%], .partial-abstract[_ngcontent-%COMP%]   .property-attributes[_ngcontent-%COMP%]   .attributes-item[_ngcontent-%COMP%]{color:var(--color-items)!important;font-size:18px!important;margin:0!important}.property-abstract-container[_ngcontent-%COMP%]   .property-attributes-vacation[_ngcontent-%COMP%], .partial-abstract[_ngcontent-%COMP%]   .property-attributes-vacation[_ngcontent-%COMP%]{margin:45px 0 5px!important;max-height:200px!important;display:flex!important;justify-content:center!important;align-items:center!important;flex-wrap:wrap}.property-abstract-container[_ngcontent-%COMP%]   .property-attributes-vacation[_ngcontent-%COMP%]   .attributes-item-vacation[_ngcontent-%COMP%], .partial-abstract[_ngcontent-%COMP%]   .property-attributes-vacation[_ngcontent-%COMP%]   .attributes-item-vacation[_ngcontent-%COMP%]{color:var(--color-items)!important;font-size:18px!important;margin-right:8px!important}.property-description[_ngcontent-%COMP%], .property-dimension[_ngcontent-%COMP%], imobzi-other-informations[_ngcontent-%COMP%]{padding:20px}#property-abstract[_ngcontent-%COMP%]   .breadcrumb[_ngcontent-%COMP%], #property-abstract[_ngcontent-%COMP%]   imobzi-property-title[_ngcontent-%COMP%]{display:none!important}#property-abstract[_ngcontent-%COMP%]   imobzi-widget-mobile-container[_ngcontent-%COMP%]{padding:20px;display:block}#property-abstract[_ngcontent-%COMP%]   .property-abstract-container[_ngcontent-%COMP%]   .building-container[_ngcontent-%COMP%]   .buildings[_ngcontent-%COMP%], #property-abstract[_ngcontent-%COMP%]   .partial-abstract[_ngcontent-%COMP%]   .building-container[_ngcontent-%COMP%]   .buildings[_ngcontent-%COMP%]{display:flex;flex-direction:column}}@media(min-width:768px)and (max-width:1023px){.property-abstract-container[_ngcontent-%COMP%], .partial-abstract[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center}.attributes-item[_ngcontent-%COMP%]{color:var(--color-items)!important}#property-abstract[_ngcontent-%COMP%]   .breadcrumb[_ngcontent-%COMP%], #property-abstract[_ngcontent-%COMP%]   imobzi-property-title[_ngcontent-%COMP%]{display:none!important}#property-abstract[_ngcontent-%COMP%]   imobzi-widget-mobile-container[_ngcontent-%COMP%]{display:block!important}.property-description[_ngcontent-%COMP%]{margin-top:15px}}@media(min-width:1024px)and (max-width:1199px){.property-abstract-container[_ngcontent-%COMP%], .partial-abstract[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center}.attributes-item[_ngcontent-%COMP%]{color:var(--color-items)!important}.property-description[_ngcontent-%COMP%], .backgrond-overlay[_ngcontent-%COMP%], imobzi-other-informations[_ngcontent-%COMP%]{width:100%}.property-attributes[_ngcontent-%COMP%]{width:100%;max-height:150px!important;margin:40px 0!important}.breadcrumb[_ngcontent-%COMP%], imobzi-property-title[_ngcontent-%COMP%]{display:none!important}imobzi-widget-mobile-container[_ngcontent-%COMP%]{display:block!important}.property-description[_ngcontent-%COMP%]{margin-top:15px}}@media(min-width:1399px){.breadcrumb[_ngcontent-%COMP%]{display:block}}@media(max-width:1199px){.location[_ngcontent-%COMP%]{display:none!important}}.partial-description[_ngcontent-%COMP%]{margin-top:20px;margin-left:auto;margin-right:auto;color:var(--color-description)!important}.partial-description[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]{width:83.333%}.background-none[_ngcontent-%COMP%]{background-color:var(--background-page)!important}.background-none-colors[_ngcontent-%COMP%]   *[_ngcontent-%COMP%]{color:var(--color-items)!important;border-color:var(--color-items)!important}.background-none-colors[_ngcontent-%COMP%]     imobzi-breadcrumb #breadcrumbs *, .background-none-colors[_ngcontent-%COMP%]     imobzi-property-title .property-title .display-h3, .background-none-colors[_ngcontent-%COMP%]     imobzi-location .property-location .display-h3, .background-none-colors[_ngcontent-%COMP%]     imobzi-other-informations{color:var(--color-items)!important}.background-none-colors[_ngcontent-%COMP%]     imobzi-breadcrumb #breadcrumbs * a, .background-none-colors[_ngcontent-%COMP%]     imobzi-property-title .property-title .display-h3 a, .background-none-colors[_ngcontent-%COMP%]     imobzi-location .property-location .display-h3 a, .background-none-colors[_ngcontent-%COMP%]     imobzi-other-informations a{color:var(--color-items)!important}@media screen and (max-width:1200px){.background-none-colors[_ngcontent-%COMP%]     imobzi-breadcrumb #breadcrumbs *, .background-none-colors[_ngcontent-%COMP%]     imobzi-property-title .property-title .display-h3, .background-none-colors[_ngcontent-%COMP%]     imobzi-location .property-location .display-h3{color:#000!important}}.background-partial-colors[_ngcontent-%COMP%]{position:relative!important;display:flex;flex-direction:column}.background-partial-colors[_ngcontent-%COMP%]   .property-description[_ngcontent-%COMP%]{color:var(--color-description)!important}@media(max-width:767px){.background-partial-colors[_ngcontent-%COMP%]   .attributes-item[_ngcontent-%COMP%]{color:var(--color-items)!important}.background-partial-colors[_ngcontent-%COMP%]   .property-attributes[_ngcontent-%COMP%]{color:var(--color-items)!important;max-height:150px!important}}.background-partial-colors[_ngcontent-%COMP%]:before{content:"";position:absolute;top:0;right:10%;width:100%;height:100%;background-color:var(--primary-background);z-index:-1}.partial-abstract[_ngcontent-%COMP%]{padding-top:0!important}.partial-abstract[_ngcontent-%COMP%]     imobzi-other-informations{color:var(--color-items)!important}.partial-abstract[_ngcontent-%COMP%]     imobzi-other-informations a{color:var(--color-items)!important}.background-full-colors[_ngcontent-%COMP%]   *[_ngcontent-%COMP%]{color:color-items!important;border-color:color-items!important}.background-full-colors[_ngcontent-%COMP%]     imobzi-other-informations{color:color-items!important}.background-full-colors[_ngcontent-%COMP%]     imobzi-other-informations a{color:color-items!important}.titleView[_ngcontent-%COMP%]     .property-title h1{font-size:30px!important;line-height:1.2}.background-partial[_ngcontent-%COMP%]{position:absolute;width:100%;max-width:1200px;height:100%;background:var(--primary-background)}imobzi-widget-mobile-container[_ngcontent-%COMP%]     .property-title h3{color:#000!important}.lote-dimension[_ngcontent-%COMP%]{margin-top:15px}']})};var Xo=()=>[import("./chunk-K6GIO2MH.js").then(n=>n.LeafletComponent)];function Jo(n,e){if(n&1&&y(0,"imobzi-gallery",0),n&2){let t=p();
10u("valueButton",t.valueButton)("photos",t.property().photos)}}function ta(n,e){if(n&1&&y(0,"imobzi-gallery",1),n&2){let t=p();u("valueButton",t.valueButton)("multimidias",t.property().multimidias)}}function ea(n,e){if(n&1&&y(0,"imobzi-gallery",1),n&2){let t=p();u("valueButton",t.valueButton)("multimidias",t.property().multimidias)}}function na(n,e){if(n&1&&y(0,"imobzi-maps",5),n&2){let t,i=p(2);u("address",i.property().address)("neighborhood",i.property().neighborhood)("city",i.property().city)("state",i.property().state)("longitude",i.property().longitude)("latitude",i.property().latitude)("img",((t=i.property().cover_photo)==null?null:t.url)||((t=i.property().photos)==null||t[0]==null?null:t[0].url))}}function ia(n,e){if(n&1&&m(0,na,1,7,"imobzi-maps",5),n&2){let t=p();g(t.valueButton==="maps"?0:-1)}}function oa(n,e){if(n&1&&y(0,"imobzi-leaflet",5),n&2){let t,i=p(3);u("address",i.property().address)("neighborhood",i.property().neighborhood)("city",i.property().city)("state",i.property().state)("longitude",i.property().longitude)("latitude",i.property().latitude)("img",((t=i.property().cover_photo)==null?null:t.url)||((t=i.property().photos)==null||t[0]==null?null:t[0].url))}}function aa(n,e){n&1&&(a(0,"div",6),y(1,"div",7),r())}function ra(n,e){n&1&&(Re(0,oa,1,7)(1,aa,2,0),$e(2,0,Xo,null,1),je())}function ca(n,e){if(n&1&&m(0,ra,4,0),n&2){let t=p();g(t.isBrowser&&t.valueButton==="maps"?0:-1)}}function la(n,e){if(n&1&&y(0,"imobzi-street-view",2),n&2){let t=p();u("longitude",t.property().longitude)("latitude",t.property().latitude)}}var be=class n{integrationService=_(qt);platformId=_(F);property=C(void 0);parameters=C(void 0);saveSearchParams=C({});apiKey;isBrowser;valueButton;constructor(){this.integrationService.googleAPI.subscribe(e=>this.apiKey=e),this.isBrowser=z(this.platformId)}ngOnInit(){this.property().photos.length>0?this.valueButton="photo":this.property().multimidias.length>0?this.valueButton="video":this.valueButton="maps"}displayValue(e){z(this.platformId)&&window.scroll(0,1),this.valueButton=e}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=P({type:n,selectors:[["imobzi-header-detail"]],inputs:{property:[1,"property"],parameters:[1,"parameters"],saveSearchParams:[1,"saveSearchParams"]},decls:8,vars:11,consts:[[3,"valueButton","photos"],[3,"valueButton","multimidias"],[3,"longitude","latitude"],[1,"col-xs-12","col-sm-12","col-md-12","col-lg-12","col-xl-12",3,"valueChange","btnPrimary","property","parameters","valueButton"],[1,"col-xs-12","col-sm-12","col-md-12","col-lg-12","col-xl-12",3,"property","saveSearchParams"],[3,"address","neighborhood","city","state","longitude","latitude","img"],[2,"height","400px","display","flex","align-items","center","justify-content","center"],[1,"loader"]],template:function(t,i){if(t&1&&(m(0,Jo,1,2,"imobzi-gallery",0),m(1,ta,1,2,"imobzi-gallery",1),m(2,ea,1,2,"imobzi-gallery",1),m(3,ia,1,1)(4,ca,1,1),m(5,la,1,2,"imobzi-street-view",2),a(6,"imobzi-button-toggle-category",3),b("valueChange",function(h){return i.displayValue(h)}),r(),y(7,"imobzi-abstract",4)),t&2){let c,h,V,j;g(i.valueButton==="photo"&&((c=i.property())!=null&&c.photos)&&i.property().photos.length>0?0:-1),o(),g(i.valueButton==="video"&&((h=i.property())!=null&&h.multimidias)&&i.property().multimidias.length>0?1:-1),o(),g(i.valueButton==="tour"&&((V=i.property())!=null&&V.multimidias)&&i.property().multimidias.length>0?2:-1),o(),g(i.apiKey?3:4),o(2),g(i.valueButton==="street_view"?5:-1),o(),u("btnPrimary",((j=i.parameters())==null?null:j.site_property_details.property_details_background)==="none")("property",i.property())("parameters",i.parameters())("valueButton",i.valueButton),o(),u("property",i.property())("saveSearchParams",i.saveSearchParams())}},dependencies:[se,de,me,ge,he],styles:["imobzi-leaflet[_ngcontent-%COMP%]{display:block;height:66vh}imobzi-leaflet[_ngcontent-%COMP%]     #map .map-container{height:73vh!important}imobzi-button-toggle-category[_ngcontent-%COMP%]{position:relative;top:60px;left:0;z-index:98;display:flex}imobzi-abstract[_ngcontent-%COMP%]{z-index:1}"]})};function pa(n,e){if(n&1&&(a(0,"li",3)(1,"mat-icon",4),d(2,"check_circle_outline"),r(),d(3),l(4,"translate"),l(5,"formatTitle"),r()),n&2){let t=e.$implicit;u("title",A(t.name)),o(3),D(" ",s(5,5,s(4,3,t.name))," ")}}function sa(n,e){if(n&1&&(a(0,"div")(1,"h2"),d(2),l(3,"translate"),l(4,"formatTitle"),r(),a(5,"ul"),v(6,pa,6,7,"li",3,E),r()()),n&2){let t=e.$implicit,i=e.$index,c=p(2);rt($("property-features col-xs-11 col-sm-10 col-md-10 col-lg-10 col-xl-10 features-",i)),o(2),x(s(4,6,s(3,4,t))),o(4),O(c.property().features[t])}}function da(n,e){if(n&1&&(a(0,"li",5)(1,"mat-icon",4),d(2,"check_circle_outline"),r(),d(3),l(4,"translate"),l(5,"formatTitle"),r()),n&2){let t=e.$implicit;u("title",A(t)),o(3),D(" ",s(5,5,s(4,3,t))," ")}}function ma(n,e){if(n&1&&(a(0,"div",2)(1,"h2"),d(2),l(3,"translate"),l(4,"formatTitle"),r(),a(5,"ul"),v(6,da,6,7,"li",5,E),r()()),n&2){let t=p(2);o(2),x(s(4,3,s(3,1,"Proximidades"))),o(4),O(t.property().nearby)}}function ga(n,e){if(n&1&&(a(0,"section",0),v(1,sa,8,8,"div",1,E),l(3,"objectgroups"),m(4,ma,8,5,"div",2),r()),n&2){let t=p();o(),O(s(3,1,t.property().features)),o(3),g(t.property().nearby.length>0?4:-1)}}var Pe=class n{platformId=_(F);property=C(void 0);
10ngOnInit(){this.setColorItemsBasedOnBackground()}setColorItemsBasedOnBackground(){if(z(this.platformId)){let e=getComputedStyle(document.documentElement).getPropertyValue("--background-page").trim(),i=mt(e)?"#ffffff":"#000000";document.documentElement.style.setProperty("--color-features",i)}}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=P({type:n,selectors:[["imobzi-property-features"]],inputs:{property:[1,"property"]},decls:1,vars:1,consts:[["id","feature"],[3,"class"],[1,"property-nearby","col-xs-11","col-sm-10","col-md-10","col-lg-10","col-xl-10"],[1,"col-md-4","col-sm-6","col-xs-6",3,"title"],[1,"material-symbols-outlined"],[1,"col-sm-6","col-xs-6",3,"title"]],template:function(t,i){t&1&&m(0,ga,5,3,"section",0),t&2&&g(i.property().features||i.property().nearby.length>0?0:-1)},dependencies:[H,Bn,N,q],styles:["#feature[_ngcontent-%COMP%]{margin-bottom:56px;display:flex;flex-direction:column;align-items:center}#feature[_ngcontent-%COMP%]   .features-0[_ngcontent-%COMP%]{margin-top:40px!important}#feature[_ngcontent-%COMP%]   .property-features[_ngcontent-%COMP%], #feature[_ngcontent-%COMP%]   .property-nearby[_ngcontent-%COMP%]{margin:0 auto;color:var(--color-features)!important}#feature[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;margin-left:10px}#feature[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{flex-flow:row nowrap;align-items:flex-start;margin:18px 0 16px;display:flex;gap:8px}#feature[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{font-size:12px!important}@media screen and (min-width:320px){#feature[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{font-size:calc(12px + .00375*(100vw - 320px))!important}}@media screen and (min-width:1920px){#feature[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{font-size:18px!important}}#feature[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%]{margin-right:10px;color:var(--secondary-background);width:25px;height:25px;background-size:contain;background-repeat:no-repeat;flex-shrink:0;margin-top:4px}#feature[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   .property-features[_ngcontent-%COMP%], #feature[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   .property-nearby[_ngcontent-%COMP%]{margin:0 auto}@media(max-width:767px){#feature[_ngcontent-%COMP%]   .property-features[_ngcontent-%COMP%], #feature[_ngcontent-%COMP%]   .property-nearby[_ngcontent-%COMP%]{margin:20px auto}#feature[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{margin:10px 0}#feature[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%]{transform:scale(.6);margin-right:5px}}"]})};function _a(n,e){if(n&1){let t=w();S(0,"div",2)(1,"a",3),bt("click",function(c){f(t);let h=p();return M(h.openDialogGallery(c))}),X(2,"img",4)(3,"img",5),k()()}if(n&2){let t=e.$implicit,i=p();o(2),K("src",t.thumbnail,T)("alt",t.description)("title",t.description),o(),K("src",i.layoutBucketPath+"play.svg",T)}}var fe=class n{appService=_(U);dialog=_(tt);multimidias=C(void 0);layoutBucketPath=this.appService.layoutBucketPath();clientBucketPath=this.appService.clientBucketPath();ngOnInit(){this.multimidias().forEach(e=>{e.category==="videos"||e.category==="v\xEDdeos"?this.addVideoThumbnailImage(e):(e.embedUrl=e.url,e.thumbnail=this.layoutBucketPath+"tour_360.jpg")})}addVideoThumbnailImage(e){if(typeof e.url!="string")return;let t=e.url.match(/(?:youtu\.be\/|youtube\.com\/(?:watch\?v=|embed\/|shorts\/))([\w-]+)/);if(t){let i=t[1];e.embedUrl=`https://www.youtube.com/embed/${i}?autoplay=1&rel=0`,e.thumbnail=`https://i3.ytimg.com/vi/${i}/maxresdefault.jpg`}}openDialogGallery(e){e?.preventDefault(),e?.stopPropagation();let t=this.multimidias();this.dialog.open(pt,{panelClass:["custom-dialog-container"],data:{path:{midia:t}}})}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=P({type:n,selectors:[["imobzi-property-videos"]],inputs:{multimidias:[1,"multimidias"]},decls:4,vars:0,consts:[["id","property-videos"],[1,"backgrond-overlay","col-xs-12","col-sm-12","col-md-10","col-lg-10","col-xl-10"],[1,"video-container"],[1,"video-content",3,"click"],[3,"src","alt","title"],["alt","play",1,"play-video",3,"src"]],template:function(t,i){t&1&&(S(0,"section",0),X(1,"div",1),v(2,_a,4,4,"div",2,E),k()),t&2&&(o(2),O(i.multimidias().slice(0,1)))},styles:["#property-videos[_ngcontent-%COMP%]{position:relative;min-height:540px;margin:60px 0}#property-videos[_ngcontent-%COMP%]   .backgrond-overlay[_ngcontent-%COMP%]{position:absolute;height:450px;right:0;bottom:0;background-color:var(--primary-background)}#property-videos[_ngcontent-%COMP%]   .video-container[_ngcontent-%COMP%]{position:relative;display:grid;grid-template-columns:repeat(12,1fr);grid-gap:16px}#property-videos[_ngcontent-%COMP%]   .video-container[_ngcontent-%COMP%]   .video-content[_ngcontent-%COMP%]{position:relative;grid-column-start:2;grid-column-end:8;margin-bottom:95px;background-color:#000}#property-videos[_ngcontent-%COMP%]   .video-container[_ngcontent-%COMP%]   .video-content[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:100%;height:456px}#property-videos[_ngcontent-%COMP%]   .video-container[_ngcontent-%COMP%]   .video-content[_ngcontent-%COMP%]   .play-video[_ngcontent-%COMP%]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);
10height:85px}@media(min-width:1024px)and (max-width:1199px){.video-container[_ngcontent-%COMP%]   .video-content[_ngcontent-%COMP%]{grid-column-start:2!important;grid-column-end:11!important}}"]})};function ua(n,e){if(n&1){let t=w();S(0,"button",4),bt("click",function(c){let h=f(t).$index,V=p();return M(V.openDialogGallery(h,c))}),X(1,"img",5),k()}if(n&2){let t=e.$implicit,i=e.$index,c=p();ht("aria-label","Abrir foto "+(i+1)+" na galeria"),o(),K("src",A(c.setPhotoUrlResize(t.url,0)),T)("alt",A(t.description))("title",A(t.description))}}var Me=class n{dialog=_(tt);photos=C(void 0);openDialogGallery(e,t){t?.preventDefault(),t?.stopPropagation();let i=this.photos();this.dialog.open(pt,{panelClass:["custom-dialog-container"],data:{path:{midia:i,index:e}}})}setPhotoUrlResize(e,t){return _t(e,t)}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=P({type:n,selectors:[["imobzi-property-photos"]],inputs:{photos:[1,"photos"]},decls:5,vars:0,consts:[["id","property-photos"],[1,"backgrond-overlay","col-xs-12","col-sm-12","col-md-10","col-lg-10","col-xl-10"],[1,"photos-container"],["type","button",1,"photo-content"],["type","button",1,"photo-content",3,"click"],["loading","lazy","decoding","async",1,"img-responsive",3,"src","alt","title"]],template:function(t,i){t&1&&(S(0,"section",0),X(1,"div",1),S(2,"div",2),v(3,ua,2,7,"button",3,E),k()()),t&2&&(o(3),O(i.photos().slice(0,6)))},styles:["#property-photos[_ngcontent-%COMP%]{position:relative}#property-photos[_ngcontent-%COMP%]   .backgrond-overlay[_ngcontent-%COMP%]{position:absolute;height:90%;left:0;bottom:0;background-color:var(--primary-background)}#property-photos[_ngcontent-%COMP%]   .photos-container[_ngcontent-%COMP%]{position:relative;display:grid;grid-template-columns:repeat(12,1fr);grid-gap:16px;margin-bottom:56px;touch-action:none}#property-photos[_ngcontent-%COMP%]   .photos-container[_ngcontent-%COMP%]   .photo-content[_ngcontent-%COMP%]{margin:0}#property-photos[_ngcontent-%COMP%]   .photos-container[_ngcontent-%COMP%]   .photo-content[_ngcontent-%COMP%]{height:80px}@media screen and (min-width:320px){#property-photos[_ngcontent-%COMP%]   .photos-container[_ngcontent-%COMP%]   .photo-content[_ngcontent-%COMP%]{height:calc(80px + .09*(100vw - 320px))}}@media screen and (min-width:1920px){#property-photos[_ngcontent-%COMP%]   .photos-container[_ngcontent-%COMP%]   .photo-content[_ngcontent-%COMP%]{height:224px}}#property-photos[_ngcontent-%COMP%]   .photos-container[_ngcontent-%COMP%]   .photo-content[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:100%;height:100%;object-fit:cover;background-color:#000;transition:.5s all;pointer-events:none;touch-action:none}#property-photos[_ngcontent-%COMP%]   .photos-container[_ngcontent-%COMP%]   .photo-content[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]:hover{transition:.5s all;box-shadow:0 3px 5px -1px #0003,0 6px 10px #00000024,0 1px 18px #0000001f}@media(min-width:768px)and (max-width:1023px){#property-photos[_ngcontent-%COMP%]   .photos-container[_ngcontent-%COMP%]   .photo-content[_ngcontent-%COMP%]:nth-child(n){grid-column-start:2;grid-column-end:5}#property-photos[_ngcontent-%COMP%]   .photos-container[_ngcontent-%COMP%]   .photo-content[_ngcontent-%COMP%]:nth-child(2n){grid-column-start:5;grid-column-end:8}}@media(min-width:1024px)and (max-width:1199px){#property-photos[_ngcontent-%COMP%]   .backgrond-overlay[_ngcontent-%COMP%]{width:91.66666667%}#property-photos[_ngcontent-%COMP%]   .photos-container[_ngcontent-%COMP%]   .photo-content[_ngcontent-%COMP%]:nth-child(3n+1){grid-column-start:2;grid-column-end:5}#property-photos[_ngcontent-%COMP%]   .photos-container[_ngcontent-%COMP%]   .photo-content[_ngcontent-%COMP%]:nth-child(3n+2){grid-column-start:5;grid-column-end:8}#property-photos[_ngcontent-%COMP%]   .photos-container[_ngcontent-%COMP%]   .photo-content[_ngcontent-%COMP%]:nth-child(3n+3){grid-column-start:8;grid-column-end:11}}@media(min-width:1200px)and (max-width:1399px){#property-photos[_ngcontent-%COMP%]   .photos-container[_ngcontent-%COMP%]   .photo-content[_ngcontent-%COMP%]:nth-child(n){grid-column-start:2;grid-column-end:5}#property-photos[_ngcontent-%COMP%]   .photos-container[_ngcontent-%COMP%]   .photo-content[_ngcontent-%COMP%]:nth-child(2n){grid-column-start:5;grid-column-end:8}}@media(min-width:1399px){#property-photos[_ngcontent-%COMP%]   .photos-container[_ngcontent-%COMP%]   .photo-content[_ngcontent-%COMP%]:nth-child(n){grid-column-start:2;grid-column-end:5}#property-photos[_ngcontent-%COMP%]   .photos-container[_ngcontent-%COMP%]   .photo-content[_ngcontent-%COMP%]:nth-child(2n){grid-column-start:5;grid-column-end:8}}"]})};function Ca(n,e){if(n&1&&y(0,"imobzi-property-features",0),n&2){let t=p();u("property",t.property())}}function ya(n,e){if(n&1&&y(0,"imobzi-property-videos",1),n&2){let t=p();u("multimidias",t.property().multimidias)}}function ha(n,e){if(n&1&&y(0,"imobzi-property-photos",2),n&2){let t=p();u("photos",t.property().photos)}}function ba(n,e){if(n&1){let t=w();a(0,"div",3),y(1,"div",5)(2,"imobzi-section-title",6),a(3,"div",7)(4,"imobzi-calendar-availability",8),b("searchDates",function(c){f(t);let h=p();return M(h.onSearchDates(c))}),r()()()}if(n&2){let t=p();o(2),u("title",t.title)("subtitle",t.subtitle),o(2),u("startDateSelected",t.startDateSelected)("endDateSelected",t.endDateSelected)("calendarAvailability",t.calendarAvailability)("displayModal",t.displayModal)("stayNightsByDay",t.property().stay_nights_by_days)("propertyCalendar",t.property().calendar)("singleCalendar",!!t.isSmallScreen())("showBorder",!0)}}function Pa(n,e){if(n&1&&y(0,"imobzi-custom-button",9),n&2){let t=e.$implicit;u("customClass","btn btn-md btn-light-1")("customButton",t)}}function fa(n,e){if(n&1&&(a(0,"div",4),v(1,Pa,1,2,"imobzi-custom-button",9,Z),r()),n&2){let t=p();o(),O(t.customButtons())}}var xe=class n{_parametersService=_(et);_homeService=_(Q);_breakpointService=_(lt);calendarService=_(xt);platformId=_(F);property=C(void 0);saveSearchParams=C({});isBrowser=z(this.platformId);siteConfiguration=this._homeService.getSiteConfiguration();parameters=this._parametersService.getParameters();customButtons=L(()=>this.siteConfiguration().custom_buttons.widget_share);startDateSelected;endDateSelected;displayModal;title="Disponibilidade";subtitle="";calendarAvailability="start";isSmallScreen=L(()=>this._breakpointService.isInViewPort(it)());constructor(){nt(()=>{let e=this.calendarService.dateSignal();e.dates[0]?this.subtitle=`${e.nights} ${e.nights!==1?"noites":"noite"} em ${this.property().neighborhood} - ${this.property().city}, ${e.datesString}`:(this.startDateSelected="",this.endDateSelected="",this.subtitle="")})}ngOnInit(){this.displayModal=!0,this.saveSearchParams()&&this.saveSearchParams().dates&&(Array.isArray(this.saveSearchParams().dates[0])?(this.startDateSelected=this.saveSearchParams().dates[0][0]??"",this.endDateSelected=this.saveSearchParams().dates[0][1]??""):(this.startDateSelected=this.saveSearchParams().dates[0]??"",this.endDateSelected=this.saveSearchParams().dates[1]??""))}onSearchDates(e){this.startDateSelected=e[0],this.endDateSelected=e[1],this.calendarService.updateCalendar([this.startDateSelected,this.endDateSelected]),e[1]?this.calendarAvailability="start":(this.calendarAvailability="end",this.calendarAvailability==="start"?this.calendarAvailability="start":this.startDateSelected?this.calendarAvailability="end":this.calendarAvailability="start")}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=P({type:n,selectors:[["imobzi-property-detail"]],inputs:{property:[1,"property"],saveSearchParams:[1,"saveSearchParams"]},decls:5,vars:5,consts:[[1,"col-xs-12","col-sm-12","col-md-8","col-lg-8","col-xl-8",3,"property"],[1,"col-xs-12","col-sm-12","col-md-12","col-lg-12","col-xl-12",3,"multimidias"],[1,"col-xs-12","col-sm-12","col-md-12","col-lg-12","col-xl-12",3,"photos"],["id","property-availability",1,"property-calendar","col-xs-12","col-sm-12","col-md-12","col-lg-12","col-xl-12"],[1,"card-sharing"],[1,"backgrond-overlay","col-xs-12","col-sm-12","col-md-12","col-lg-10","col-xl-10"],[3,"title","subtitle"],[1,"availability-calendar","col-xs-12","col-sm-12","col-md-12","col-lg-12","col-xl-12"],[3,"searchDates","startDateSelected","endD
10ateSelected","calendarAvailability","displayModal","stayNightsByDay","propertyCalendar","singleCalendar","showBorder"],[1,"btn-card-sharing",3,"customClass","customButton"]],template:function(t,i){if(t&1&&(m(0,Ca,1,1,"imobzi-property-features",0),m(1,ya,1,1,"imobzi-property-videos",1),m(2,ha,1,1,"imobzi-property-photos",2),m(3,ba,5,10,"div",3),m(4,fa,3,0,"div",4)),t&2){let c,h,V;g(i.property()?0:-1),o(),g((c=i.property())!=null&&c.multimidias&&i.property().multimidias.length>0?1:-1),o(),g((h=i.property())!=null&&h.photos&&i.property().photos.length>0?2:-1),o(),g((V=i.property())!=null&&V.calendar&&i.isBrowser?3:-1),o(),g(i.isSmallScreen()&&i.customButtons().length>0?4:-1)}},dependencies:[vt,Pe,fe,Me,Gt,Lt],styles:["@media(max-width:767px){imobzi-property-videos[_ngcontent-%COMP%], imobzi-property-photos[_ngcontent-%COMP%]{display:none}.property-calendar[_ngcontent-%COMP%]   .backgrond-overlay[_ngcontent-%COMP%]{display:none}}@media(min-width:768px)and (max-width:1023px){imobzi-property-videos[_ngcontent-%COMP%], imobzi-property-photos[_ngcontent-%COMP%]{display:none}}@media(min-width:1200px)and (max-width:1399px){imobzi-sharing-buttons[_ngcontent-%COMP%]{display:none}}@media(min-width:1399px){imobzi-property-availability[_ngcontent-%COMP%], imobzi-property-videos[_ngcontent-%COMP%], imobzi-property-photos[_ngcontent-%COMP%]{display:block}}.card-sharing[_ngcontent-%COMP%]{width:100%;background-color:var(--primary-background);display:flex;flex-direction:column;align-items:center;padding:20px}.card-sharing[_ngcontent-%COMP%]   .btn-card-sharing[_ngcontent-%COMP%]{max-width:400px;width:90%}#property-availability[_ngcontent-%COMP%]{position:relative;margin-bottom:56px}#property-availability[_ngcontent-%COMP%]   .backgrond-overlay[_ngcontent-%COMP%]{position:absolute;bottom:0;left:0}#property-availability[_ngcontent-%COMP%]   .backgrond-overlay[_ngcontent-%COMP%]{height:438px}@media screen and (min-width:320px){#property-availability[_ngcontent-%COMP%]   .backgrond-overlay[_ngcontent-%COMP%]{height:calc(438px + -108 * (100vw - 320px) / 880)}}@media screen and (min-width:1200px){#property-availability[_ngcontent-%COMP%]   .backgrond-overlay[_ngcontent-%COMP%]{height:330px}}#property-availability[_ngcontent-%COMP%]   .backgrond-overlay[_ngcontent-%COMP%]{background-color:var(--primary-background)}#property-availability[_ngcontent-%COMP%]   imobzi-section-title[_ngcontent-%COMP%]{margin-left:7.2vw;grid-gap:0!important}#property-availability[_ngcontent-%COMP%]   imobzi-section-title[_ngcontent-%COMP%]     .subtitle{padding:10px}#property-availability[_ngcontent-%COMP%]     table{width:100%}#property-availability[_ngcontent-%COMP%]     table thead tr th{color:var(--title);padding:1.2vh 0}#property-availability[_ngcontent-%COMP%]     table tbody tr td{border-top:1px solid transparent;border-bottom:1px solid transparent;padding:1vh .711vw;font-size:16px;color:var(--subtitle);text-align:center}#property-availability[_ngcontent-%COMP%]     table tbody tr .bg-info{color:#fff;background-color:var(--secondary-background);border-radius:20px}#property-availability[_ngcontent-%COMP%]   .availability-calendar[_ngcontent-%COMP%]{display:flex;align-items:center;width:100%}#property-availability[_ngcontent-%COMP%]   .availability-calendar[_ngcontent-%COMP%]   imobzi-calendar-availability[_ngcontent-%COMP%]     .mat-mdc-card-header{align-items:center;justify-content:center}#property-availability[_ngcontent-%COMP%]   .availability-calendar[_ngcontent-%COMP%]   imobzi-calendar-availability[_ngcontent-%COMP%]     imobzi-section-title{margin-bottom:0!important;padding:16px}#property-availability[_ngcontent-%COMP%]     .availability-calendar{position:relative;display:grid;grid-template-columns:repeat(12,1fr);grid-gap:16px}#property-availability[_ngcontent-%COMP%]     imobzi-calendar-availability #calendar{background-color:transparent!important;box-shadow:none!important}#property-availability[_ngcontent-%COMP%]     imobzi-calendar-availability #calendar   imobzi-calendar, #property-availability[_ngcontent-%COMP%]     imobzi-calendar-availability #calendar   table, #property-availability[_ngcontent-%COMP%]     imobzi-calendar-availability #calendar   tbody, #property-availability[_ngcontent-%COMP%]     imobzi-calendar-availability #calendar   tr, #property-availability[_ngcontent-%COMP%]     imobzi-calendar-availability #calendar   td{padding:.4rem!important}#property-availability[_ngcontent-%COMP%]     imobzi-calendar-availability #calendar .calendar_current{grid-column-start:2;grid-column-end:5}#property-availability[_ngcontent-%COMP%]     imobzi-calendar-availability #calendar .calendar_next{grid-column-start:5;grid-column-end:8}@media(max-width:767px){#property-availability[_ngcontent-%COMP%]{margin:60px 0 0}#property-availability[_ngcontent-%COMP%]   .availability-calendar[_ngcontent-%COMP%]{justify-content:center}#property-availability[_ngcontent-%COMP%]   imobzi-section-title[_ngcontent-%COMP%]{margin:0!important}#property-availability[_ngcontent-%COMP%]     imobzi-calendar-availability{width:100%;padding:0 18px}#property-availability[_ngcontent-%COMP%]     imobzi-calendar-availability #calendar   imobzi-calendar, #property-availability[_ngcontent-%COMP%]     imobzi-calendar-availability #calendar   table, #property-availability[_ngcontent-%COMP%]     imobzi-calendar-availability #calendar   tbody, #property-availability[_ngcontent-%COMP%]     imobzi-calendar-availability #calendar   tr, #property-availability[_ngcontent-%COMP%]     imobzi-calendar-availability #calendar   td{padding:0!important}}@media(min-width:768px)and (max-width:1023px){#property-availability[_ngcontent-%COMP%]{margin:60px 0 0}#property-availability[_ngcontent-%COMP%]   .backgrond-overlay[_ngcontent-%COMP%], #property-availability[_ngcontent-%COMP%]   imobzi-sharing-buttons[_ngcontent-%COMP%]{display:block}#property-availability[_ngcontent-%COMP%]   .availability-calendar[_ngcontent-%COMP%]{justify-content:center}#property-availability[_ngcontent-%COMP%]   imobzi-section-title[_ngcontent-%COMP%]{margin:0!important;justify-content:center;text-align:center}}@media(min-width:1024px)and (max-width:1199px){#property-availability[_ngcontent-%COMP%]{margin:60px 0 0}#property-availability[_ngcontent-%COMP%]   .backgrond-overlay[_ngcontent-%COMP%], #property-availability[_ngcontent-%COMP%]   imobzi-sharing-buttons[_ngcontent-%COMP%]{display:block}#property-availability[_ngcontent-%COMP%]   .availability-calendar[_ngcontent-%COMP%]{justify-content:center}#property-availability[_ngcontent-%COMP%]   imobzi-section-title[_ngcontent-%COMP%]{margin:0!important;justify-content:center;text-align:center}}@media(min-width:1200px)and (max-width:1399px){#property-availability[_ngcontent-%COMP%]   .backgrond-overlay[_ngcontent-%COMP%]{display:none}#property-availability[_ngcontent-%COMP%]     imobzi-calendar-availability #calendar   imobzi-calendar, #property-availability[_ngcontent-%COMP%]     imobzi-calendar-availability #calendar   table, #property-availability[_ngcontent-%COMP%]     imobzi-calendar-availability #calendar   tbody, #property-availability[_ngcontent-%COMP%]     imobzi-calendar-availability #calendar   tr, #property-availability[_ngcontent-%COMP%]     imobzi-calendar-availability #calendar   td{padding:0!important}}@media(min-width:1399px){.backgrond-overlay[_ngcontent-%COMP%]{display:none}}"]})};function Ma(n,e){if(n&1){let t=w();a(0,"a",4)(1,"img",5),b("error",function(c){f(t);let h=p();return M(h.imgErrorHandler(c))}),r(),a(2,"div",6)(3,"p",7),d(4),r(),a(5,"h2",8),d(6),r()()()}if(n&2){let t=e.$implicit;u("routerLink",A(t.site_url?t.site_url:"/imovel/codigo/"+t.code)),o(),u("alt",Ge("Ver mais detalhes de ",t.property_type," em ",t.neighborhood," - ",t.city,"/",t.state))("src",t.cover_photo.url,T),o(3),W("",t.property_type," - ",t.city),o(2),x(t.neighborhood)}}var ve=class n{appService=_(U);title="Im\xF3veis relacionados";subtitle="";propertiesRelated=C(void 0);layoutBucketPath=this.appService.layoutBucketPath();imgErrorHandler(e){e.target.onerror=null,e.target.src=`${this.appService.layoutBucketPath()}image-not-found.jpg`}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=P({type:n,selectors:[["imobzi-property-related"]],inputs:{propertiesRelated:[1,"propertiesRelated"]},decls:6,vars:2,consts:[["id","property-related"],[3,"title","subtitle"],[1,"backgrond-overlay","col-xs-12","col-sm-10","col-md-10","col-lg-10","col-xl-10"],["id","banner-related"],["aria-label","Mais detalhes",1,"related-container",3,"routerLink"],["title","Mais detalhes",1,"related-figure",3,"error","src","alt"],[1,"related-content"],[1,"related-city"],[1,"related-neighborhood"]],template:function(t,i){t&1&&(a(0,"section",0),y(1,"imobzi-section-title",1)(2,"div",2),a(3,"div",3),v(4,Ma,7,11,"a",4,E),r()()),t&2&&(o(),u("title",i.title)("subtitle",i.subtitle),o(3),O(i.propertiesRelated().slice(0,3)))},dependencies:[Lt,jt],styles:["#property-related[_ngcontent-%COMP%]{position:relative}#property-related[_ngcontent-%COMP%]   imobzi-section-title[_ngcontent-%COMP%]{margin-left:7.2vw;grid-gap:0!important}#property-related[_ngcontent-%COMP%]   .backgrond-overlay[_ngcontent-%COMP%]{position:absolute;height:13.1vw;right:0;bottom:0;background-color:var(--primary-background)}#property-related[_ngcontent-%COMP%]   #banner-related[_ngcontent-%COMP%]{position:relative;display:grid;grid-template-columns:repeat(12,1fr);grid-gap:16px;margin-top:90px;bottom:50px}#property-related[_ngcontent-%COMP%]   #banner-related[_ngcontent-%COMP%]   .related-container[_ngcontent-%COMP%]{position:relative;border-radius:10px;background-color:#000;transition:.5s all;height:11.6vw}#property-related[_ngcontent-%COMP%]   #banner-related[_ngcontent-%COMP%]   .related-container[_ngcontent-%COMP%]:hover{transition:.5s all;box-shadow:0 3px 5px -1px #0003,0 6px 10px #00000024,0 1px 18px #0000001f}#property-related[_ngcontent-%COMP%]   #banner-related[_ngcontent-%COMP%]   .related-container[_ngcontent-%COMP%]   .related-figure[_ngcontent-%COMP%]{width:100%;height:100%;margin:auto;border-radius:10px;object-fit:cover}#property-related[_ngcontent-%COMP%]   #banner-related[_ngcontent-%COMP%]   .related-container[_ngcontent-%COMP%]   .related-content[_ngcontent-%COMP%]{position:absolute;
10left:0;right:0;bottom:0;padding:1.5vw;border-radius:10px;background:linear-gradient(to bottom,#0000 0,#000c);color:#fff}#property-related[_ngcontent-%COMP%]   #banner-related[_ngcontent-%COMP%]   .related-container[_ngcontent-%COMP%]   .related-content[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{margin:0 0 11px}#property-related[_ngcontent-%COMP%]   #banner-related[_ngcontent-%COMP%]   .related-container[_ngcontent-%COMP%]:nth-child(1){grid-column-start:2;grid-column-end:5}#property-related[_ngcontent-%COMP%]   #banner-related[_ngcontent-%COMP%]   .related-container[_ngcontent-%COMP%]:nth-child(2){grid-column-start:5;grid-column-end:8}#property-related[_ngcontent-%COMP%]   #banner-related[_ngcontent-%COMP%]   .related-container[_ngcontent-%COMP%]:nth-child(3){grid-column-start:8;grid-column-end:11}"]})};var Oe=class n{comeBack=Y();onComeBack(){this.comeBack.emit()}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=P({type:n,selectors:[["imobzi-footer-detail"]],outputs:{comeBack:"comeBack"},decls:8,vars:5,consts:[["id","footer-detail"],[3,"click"],[1,"material-symbols-outlined"],[1,"h2"]],template:function(t,i){t&1&&(a(0,"section",0)(1,"a",1),b("click",function(){return i.onComeBack()}),a(2,"mat-icon",2),d(3,"keyboard_backspace"),r(),a(4,"p",3),d(5),l(6,"translate"),l(7,"formatTitle"),r()()()),t&2&&(o(5),x(s(7,3,s(6,1,"VOLTAR"))))},dependencies:[H,N,q],styles:["#footer-detail[_ngcontent-%COMP%]{position:relative;height:85px}#footer-detail[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%]{margin-right:30px;transform:scale(2)}#footer-detail[_ngcontent-%COMP%]   p[_ngcontent-%COMP%], #footer-detail[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:var(--title);display:flex;align-items:center;justify-content:center}#footer-detail[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{margin:.83em 0}"]})};var we=()=>[1,2,3],Te=()=>[1,2,3,4,5],xa=()=>[1,2,3,4,5,6],va=()=>[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20];function Oa(n,e){if(n&1&&y(0,"div",19),n&2){let t=e.$implicit;u("id",$("card_button_",t))}}function wa(n,e){n&1&&y(0,"div",23)}function Sa(n,e){if(n&1&&y(0,"div"),n&2){let t=e.$implicit;rt($("action_button action_button-",t," btn shinny btn-md"))}}function ka(n,e){if(n&1&&y(0,"div",19),n&2){let t=e.$implicit;u("id",$("card_button_",t))}}function Ba(n,e){n&1&&(a(0,"mat-icon",62),d(1,"check_circle_outline"),r(),y(2,"div",63))}function Ta(n,e){n&1&&(a(0,"div",42),y(1,"div",60),a(2,"div",61),v(3,Ba,3,0,null,null,E),r()()),n&2&&(o(3),O(ct(0,va)))}function Da(n,e){if(n&1&&y(0,"div",49),n&2){let t=e.$implicit;u("id",$("img-",t))}}function za(n,e){n&1&&y(0,"div",54)}function Ea(n,e){n&1&&y(0,"div",23)}var Se=class n{appService=_(U);comeBack=Y();layoutBucketPath=this.appService.layoutBucketPath();clientBucketPath=this.appService.clientBucketPath();onComeBack(){this.comeBack.emit()}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=P({type:n,selectors:[["imobzi-loading-details"]],outputs:{comeBack:"comeBack"},decls:96,vars:9,consts:[["id","card"],["id","gallery"],[1,"gallery-content","shinny"],[1,"actions-container","flex-row","align-space-between-center"],[1,"btn-icon","btn-light-1","prev"],["aria-hidden","true",1,"material-symbols-rounded"],[1,"btn-icon","btn-light-1","next"],["id","widget-container",1,"flex-column","align-start-center"],[1,"card-container","flex-column","align-start-center"],[1,"card-content","flex-row","flex-wrap","align-space-between-center"],[1,"info_values","info_values_bold","shinny","col-xs-3","col-sm-3","col-md-3","col-lg-3","col-xl-3"],[1,"info_values","info_values_bold","shinny","col-xs-5","col-sm-5","col-md-5","col-lg-5","col-xl-5"],[1,"info_values","info_values_normal","shinny","col-xs-6","col-sm-6","col-md-6","col-lg-6","col-xl-6"],[1,"info_values","info_values_normal","shinny","col-xs-3","col-sm-3","col-md-3","col-lg-3","col-xl-3"],[1,"info_values","info_values_normal","shinny","col-xs-4","col-sm-4","col-md-4","col-lg-4","col-xl-4"],[1,"info_div"],[1,"info_values","info_values_bold","shinny","col-xs-4","col-sm-4","col-md-4","col-lg-4","col-xl-4"],[1,"card_photo","shinny","btn-icon","btn-md-100"],[1,"card_name","shinny","col-xs-6","col-sm-6","col-md-6","col-lg-6","col-xl-6"],[1,"card_button","btn","shinny","btn-md",3,"id"],[1,"card_simulator","btn","shinny","btn-md"],[1,"card_shared_info","shinny","col-xs-3","col-sm-3","col-md-3","col-lg-3","col-xl-3"],[1,"card-content_shared_button","flex-row","align-space-between-start"],[1,"card_shared_button","btn-icon","shinny","btn-md-36"],["id","property-abstract",1,"col-xs-11","col-sm-10","col-md-10","col-lg-10","col-xl-10","flex-column","align-start-start"],[1,"action_container","col-xs-6","col-sm-6","col-md-8","col-lg-6","col-xl-6","flex-row","align-space-between-center"],[3,"class"],["
10id","widget-container-abstract",1,"col-xs-11","col-sm-10","flex-column","align-start-center"],[1,"text_xl","shinny","col-xs-6","col-sm-6","col-md-6","col-lg-6","col-xl-6","margin-bottom-10"],[1,"text_md","shinny","col-xs-8","col-sm-8","col-md-8","col-lg-8","col-xl-8","margin-bottom-10"],[1,"text_md","shinny","col-xs-6","col-sm-6","col-md-6","col-lg-6","col-xl-6","margin-bottom-40"],[1,"card_button_container","flex-row","align-space-between-center"],[1,"descrition_container","col-xs-12","col-sm-12","col-md-12","col-lg-12","col-xl-12","flex-column","align-space-between-start"],[1,"text_sm","shinny","col-xs-3","col-sm-3","col-md-3","col-lg-3","col-xl-3","margin-bottom-20"],[1,"text_xl","shinny","col-xs-5","col-sm-5","col-md-5","col-lg-5","col-xl-5","margin-bottom-20"],[1,"text_lg","shinny","col-xs-10","col-sm-8","col-md-8","col-lg-8","col-xl-8"],[1,"text_md","shinny","col-xs-8","col-sm-7","col-md-7","col-lg-7","col-xl-7","margin-bottom-10"],[1,"text_md","shinny","col-xs-7","col-sm-7","col-md-7","col-lg-7","col-xl-7","margin-bottom-10"],[1,"text_md","shinny","col-xs-4","col-sm-4","col-md-4","col-lg-4","col-xl-4"],[1,"text_md","shinny","col-xs-10","col-sm-8","col-md-8","col-lg-8","col-xl-8","margin-bottom-10"],[1,"text_md","shinny","col-xs-6","col-sm-6","col-md-6","col-lg-6","col-xl-6","margin-bottom-10"],["id","features"],[1,"feature-container_item","flex-column","align-space-between-start"],["id","video"],[1,"video-container","shinny"],["alt","play",1,"play-video",3,"src"],["id","backgrond-overlay",1,"col-xs-12","col-sm-10","col-md-10","col-lg-10","col-xl-10"],["id","img"],[1,"img-container","flex-row","flex-wrap","align-space-between-start"],[1,"img-content","shinny",3,"id"],["id","backgrond-overlay",1,"col-xs-11","col-sm-10","col-md-10","col-lg-10","col-xl-10"],["id","related"],[1,"related_title","shinny","col-xs-6","col-sm-6","col-md-6","col-lg-6","col-xl-6"],[1,"related-content_card","flex-row","align-space-between-start"],[1,"related_card","shinny"],[1,"simulator","flex-column","align-center-center"],["id","back",1,"col-xs-12","col-sm-12","col-md-12","col-lg-12","col-xl-12","flex-column","align-center-center"],[1,"flex-row","align-center-center",3,"click"],[1,"material-symbols-outlined"],[1,"h2"],[1,"feature_title","shinny","col-xs-4","col-sm-4","col-md-2","col-lg-2","col-xl-2","margin-bottom-35"],[1,"feature-content_item","flex-row","flex-wrap","align-space-between-center"],[1,"material-symbols-outlined","margin-bottom-10","margin-right-10","color-subtitle"],[1,"feature_item","shinny","col-xs-4","col-sm-4","col-md-2","col-lg-2","col-xl-2"]],template:function(t,i){t&1&&(a(0,"div",0)(1,"div",1),y(2,"div",2),a(3,"div",3)(4,"div",4)(5,"mat-icon",5),d(6,"chevron_left"),r()(),a(7,"div",6)(8,"mat-icon",5),d(9,"chevron_right"),r()()()(),a(10,"div",7)(11,"div",8)(12,"div",9),y(13,"div",10)(14,"div",11)(15,"div",12)(16,"div",13)(17,"div",14)(18,"div",14)(19,"div",15)(20,"div",16)(21,"div",11),r(),y(22,"div",17)(23,"div",18),v(24,Oa,1,2,"div",19,E),r(),y(26,"div",20)(27,"div",21),a(28,"div",22),v(29,wa,1,0,"div",23,E),r()(),a(31,"div",24)(32,"div",25),v(33,Sa,1,3,"div",26,E),r(),a(35,"div",27)(36,"div",8)(37,"div",9),y(38,"div",28)(39,"div",29)(40,"div",30)(41,"div",10)(42,"div",11)(43,"div",12)(44,"div",13)(45,"div",14)(46,"div",14)(47,"div",15)(48,"div",16)(49,"div",11),r(),y(50,"div",17)(51,"div",18),a(52,"div",31),v(53,ka,1,2,"div",19,E),r()()(),a(55,"div",32),y(56,"div",33)(57,"div",28)(58,"div",34)(59,"div",35)(60,"div",36)(61,"div",29)(62,"div",37)(63,"div",38)(64,"div",39)(65,"div",40),r()(),a(66,"div",41),v(67,Ta,5,1,"div",42,E),r(),a(69,"div",43)(70,"div",44),y(71,"img",45),r(),y(72,"div",46),r(),a(73,"div",47)(74,"div",48),v(75,Da,1,2,"div",49,E),r(),y(77,"div",50),r(),a(78,"div",51),y(79,"div",52),a(80,"div",53),v(81,za,1,0,"div",54,E),r(),y(83,"div",50),a(84,"div",55),y(85,"div",20)(86,"div",21),a(87,"div",22),v(88,Ea,1,0,"div",23,E),r()()(),a(90,"div",56)(91,"a",57),b("click",function(){return i.onComeBack()}),a(92,"mat-icon",58),d(93,"keyboard_backspace"),r(),a(94,"p",59),d(95,"VOLTAR"),r()()()()),t&2&&(o(24),O(ct(1,we)),o(5),O(ct(2,Te)),o(4),O(ct(3,Te)),o(20),O(ct(4,we)),o(14),O(ct(5,we)),o(4),u("src",i.layoutBucketPath+"play_loading.svg",T),o(4),O(ct(6,xa)),o(6),O(ct(7,we)),o(7),O(ct(8,Te)))},dependencies:[H],styles:['#gallery[_ngcontent-%COMP%]{position:relative}#gallery[_ngcontent-%COMP%]   .actions-container[_ngcontent-%COMP%]{position:absolute;width:100%;top:47%;left:50%;transform:translate(-50%,-50%);z-index:98}#gallery[_ngcontent-%COMP%]   .actions-container[_ngcontent-%COMP%]   .prev[_ngcontent-%COMP%]{left:138px}#gallery[_ngcontent-%COMP%]   .actions-container[_ngcontent-%COMP%]   .next[_ngcontent-%COMP%]{right:138px}#gallery[_ngcontent-%COMP%]   .actions-container[_ngcontent-%COMP%]   .prev[_ngcontent-%COMP%], #gallery[_ngcontent-%COMP%]   .actions-container[_ngcontent-%COMP%]   .next[_ngcontent-%COMP%]{position:absolute}#gallery[_ngcontent-%COMP%]   .actions-container[_ngcontent-%COMP%]   .prev[_ngcontent-%COMP%], #gallery[_ngcontent-%COMP%]   .actions-container[_ngcontent-%COMP%]   .next[_ngcontent-%COMP%]{width:24px}@media screen and (min-width:320px){#gallery[_ngcontent-%COMP%]   .actions-container[_ngcontent-%COMP%]   .prev[_ngcontent-%COMP%], #gallery[_ngcontent-%COMP%]   .actions-container[_ngcontent-%COMP%]   .next[_ngcontent-%COMP%]{width:calc(24px + .025*(100vw - 320px))}}@media screen and (min-width:1920px){#gallery[_ngcontent-%COMP%]   .actions-container[_ngcontent-%COMP%]   .prev[_ngcontent-%COMP%], #gallery[_ngcontent-%COMP%]   .actions-container[_ngcontent-%COMP%]   .next[_ngcontent-%COMP%]{width:64px}}#gallery[_ngcontent-%COMP%]   .actions-container[_ngcontent-%COMP%]   .prev[_ngcontent-%COMP%], #gallery[_ngcontent-%COMP%]   .actions-container[_ngcontent-%COMP%]   .next[_ngcontent-%COMP%]{height:24px}@media screen and (min-width:320px){#gallery[_ngcontent-%COMP%]   .actions-container[_ngcontent-%COMP%]   .prev[_ngcontent-%COMP%], #gallery[_ngcontent-%COMP%]   .actions-container[_ngcontent-%COMP%]   .next[_ngcontent-%COMP%]{height:calc(24px + .025*(100vw - 320px))}}@media screen and (min-width:1920px){#gallery[_ngcontent-%COMP%]   .actions-container[_ngcontent-%COMP%]   .prev[_ngcontent-%COMP%], #gallery[_ngcontent-%COMP%]   .actions-container[_ngcontent-%COMP%]   .next[_ngcontent-%COMP%]{height:64px}}#gallery[_ngcontent-%COMP%]   .actions-container[_ngcontent-%COMP%]   .prev[_ngcontent-%COMP%]:hover, #gallery[_ngcontent-%COMP%]   .actions-container[_ngcontent-%COMP%]   .next[_ngcontent-%COMP%]:hover{border-color:#fff;background-color:transparent}#gallery[_ngcontent-%COMP%]   .actions-container[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%]{width:22px}@media screen and (min-width:320px){#gallery[_ngcontent-%COMP%]   .actions-container[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%]{width:calc(22px + .02375*(100vw - 320px))}}@media screen and (min-width:1920px){#gallery[_ngcontent-%COMP%]   .actions-container[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%]{width:60px}}#gallery[_ngcontent-%COMP%]   .actions-container[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%]{height:22px}@media screen and (min-width:320px){#gallery[_ngcontent-%COMP%]   .actions-container[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%]{height:calc(22px + .02375*(100vw - 320px))}}@media screen and (min-width:1920px){#gallery[_ngcontent-%COMP%]   .actions-container[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%]{height:60px}}#gallery[_ngcontent-%COMP%]   .actions-container[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%]{font-size:22px!important}@media screen and (min-width:320px){#gallery[_ngcontent-%COMP%]   .actions-container[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%]{font-size:calc(22px + .02375*(100vw - 320px))!important}}@media screen and (min-width:1920px){#gallery[_ngcontent-%COMP%]   .actions-container[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%]{font-size:60px!important}}#widget-container[_ngcontent-%COMP%]{position:absolute;height:812px;z-index:99;background-color:#ececec;right:278px;box-shadow:0 3px 6px #00000029;border-radius:10px}#widget-container[_ngcontent-%COMP%]   .card-container[_ngcontent-%COMP%]{width:398px;height:612px;background-color:#fff;border-radius:10px}#widget-container[_ngcontent-%COMP%]   .card-container[_ngcontent-%COMP%]   .card-content[_ngcontent-%COMP%]{width:338px;height:127px;margin-top:42px}#widget-container[_ngcontent-%COMP%]   .card-container[_ngcontent-%COMP%]   .card-content[_ngcontent-%COMP%]   .info_values[_ngcontent-%COMP%]{margin-bottom:7px}#widget-container[_ngcontent-%COMP%]   .card-container[_ngcontent-%COMP%]   .card-content[_ngcontent-%COMP%]   .info_values_bold[_ngcontent-%COMP%]{height:20px}#widget-container[_ngcontent-%COMP%]   .card-container[_ngcontent-%COMP%]   .card-content[_ngcontent-%COMP%]   .info_values_normal[_ngcontent-%COMP%]{height:18px}#widget-container[_ngcontent-%COMP%]   .card-container[_ngcontent-%COMP%]   .card-content[_ngcontent-%COMP%]   .info_div[_ngcontent-%COMP%]{width:338px;border:1px solid #ececec;margin:10px 0}#widget-container[_ngcontent-%COMP%]   .card_photo[_ngcontent-%COMP%]{height:100px;margin:40px 0 14px}#widget-container[_ngcontent-%COMP%]   .card_name[_ngcontent-%COMP%]{height:24px;margin-bottom:34px}#widget-container[_ngcontent-%COMP%]   #card_button_2[_ngcontent-%COMP%]{margin:20px 0}#widget-container[_ngcontent-%COMP%]   .card_button[_ngcontent-%COMP%]{width:346px;height:48px}
10#widget-container[_ngcontent-%COMP%]   .card_simulator[_ngcontent-%COMP%]{width:260px;height:48px;margin:20px 0 16px}#widget-container[_ngcontent-%COMP%]   .card_shared_info[_ngcontent-%COMP%]{height:14px;margin-bottom:10px}#widget-container[_ngcontent-%COMP%]   .card-content_shared_button[_ngcontent-%COMP%]{width:260px;height:86px}#widget-container[_ngcontent-%COMP%]   .card-content_shared_button[_ngcontent-%COMP%]   .card_shared_button[_ngcontent-%COMP%]{height:36px}#property-abstract[_ngcontent-%COMP%]{background-color:#ececec}#property-abstract[_ngcontent-%COMP%]   .action_container[_ngcontent-%COMP%]{height:86px;padding:10px 0 28px;margin-left:138px}#property-abstract[_ngcontent-%COMP%]   .action_container[_ngcontent-%COMP%]   .action_button[_ngcontent-%COMP%]{width:122px;height:48px}#property-abstract[_ngcontent-%COMP%]   .descrition_container[_ngcontent-%COMP%]{margin-left:138px}#property-abstract[_ngcontent-%COMP%]   .descrition_container[_ngcontent-%COMP%]   .text_xl[_ngcontent-%COMP%]{height:38px}#property-abstract[_ngcontent-%COMP%]   .descrition_container[_ngcontent-%COMP%]   .text_md[_ngcontent-%COMP%]{height:18px}#property-abstract[_ngcontent-%COMP%]   #widget-container-abstract[_ngcontent-%COMP%]{box-shadow:0 3px 6px #00000029;border-radius:10px;background-color:#fff}#property-abstract[_ngcontent-%COMP%]   #widget-container-abstract[_ngcontent-%COMP%]   .card-container[_ngcontent-%COMP%]   .card-content[_ngcontent-%COMP%]{margin-top:42px}#property-abstract[_ngcontent-%COMP%]   #widget-container-abstract[_ngcontent-%COMP%]   .card-container[_ngcontent-%COMP%]   .card-content[_ngcontent-%COMP%]   .text_xl[_ngcontent-%COMP%]{width:100%}#property-abstract[_ngcontent-%COMP%]   #widget-container-abstract[_ngcontent-%COMP%]   .card-container[_ngcontent-%COMP%]   .card-content[_ngcontent-%COMP%]   .info_values[_ngcontent-%COMP%]{width:34%;margin-bottom:7px}#property-abstract[_ngcontent-%COMP%]   #widget-container-abstract[_ngcontent-%COMP%]   .card-container[_ngcontent-%COMP%]   .card-content[_ngcontent-%COMP%]   .info_values_bold[_ngcontent-%COMP%]{height:20px}#property-abstract[_ngcontent-%COMP%]   #widget-container-abstract[_ngcontent-%COMP%]   .card-container[_ngcontent-%COMP%]   .card-content[_ngcontent-%COMP%]   .info_values_normal[_ngcontent-%COMP%]{height:18px}#property-abstract[_ngcontent-%COMP%]   #widget-container-abstract[_ngcontent-%COMP%]   .card-container[_ngcontent-%COMP%]   .card-content[_ngcontent-%COMP%]   .info_div[_ngcontent-%COMP%]{border:1px solid #ececec;margin:10px 0}#property-abstract[_ngcontent-%COMP%]   #widget-container-abstract[_ngcontent-%COMP%]   .card-container[_ngcontent-%COMP%]   .card_photo[_ngcontent-%COMP%]{width:64px;height:64px;margin:40px 0 14px}#property-abstract[_ngcontent-%COMP%]   #widget-container-abstract[_ngcontent-%COMP%]   .card-container[_ngcontent-%COMP%]   .card_name[_ngcontent-%COMP%]{height:24px;margin-bottom:10px}#property-abstract[_ngcontent-%COMP%]   #widget-container-abstract[_ngcontent-%COMP%]   .card-container[_ngcontent-%COMP%]   .card_button_container[_ngcontent-%COMP%]{width:100%}#property-abstract[_ngcontent-%COMP%]   #widget-container-abstract[_ngcontent-%COMP%]   .card-container[_ngcontent-%COMP%]   .card_button_container[_ngcontent-%COMP%]   #card_button_2[_ngcontent-%COMP%]{margin:20px 0}#property-abstract[_ngcontent-%COMP%]   #widget-container-abstract[_ngcontent-%COMP%]   .card-container[_ngcontent-%COMP%]   .card_button_container[_ngcontent-%COMP%]   .card_button[_ngcontent-%COMP%]{height:48px}#features[_ngcontent-%COMP%]{position:relative;margin:550px 138px 40px}#features[_ngcontent-%COMP%]   .feature-container_item[_ngcontent-%COMP%]{margin-bottom:20px}#features[_ngcontent-%COMP%]   .feature-container_item[_ngcontent-%COMP%]   .feature_title[_ngcontent-%COMP%]{height:29px;margin-bottom:35px}#features[_ngcontent-%COMP%]   .feature-container_item[_ngcontent-%COMP%]   .feature-content_item[_ngcontent-%COMP%]{width:849px;margin-bottom:40px}#features[_ngcontent-%COMP%]   .feature-container_item[_ngcontent-%COMP%]   .feature-content_item[_ngcontent-%COMP%]   .feature_item[_ngcontent-%COMP%]{height:18px;margin-bottom:10px;margin-right:30px}#backgrond-overlay[_ngcontent-%COMP%]{position:absolute;bottom:0;background-color:#ececec}#video[_ngcontent-%COMP%]{position:relative;height:546px;margin-bottom:210px}#video[_ngcontent-%COMP%]   .video-container[_ngcontent-%COMP%]{position:absolute;width:812px;
10height:456px;z-index:99;margin-left:138px}#video[_ngcontent-%COMP%]   .video-container[_ngcontent-%COMP%]   .play-video[_ngcontent-%COMP%]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);height:85px;z-index:99}#video[_ngcontent-%COMP%]   #backgrond-overlay[_ngcontent-%COMP%]{right:0;height:450px}#img[_ngcontent-%COMP%]{position:relative;height:800px;margin-bottom:210px}#img[_ngcontent-%COMP%]   .img-container[_ngcontent-%COMP%]{position:absolute;width:812px;height:704px;margin-left:138px;z-index:99}#img[_ngcontent-%COMP%]   .img-container[_ngcontent-%COMP%]   .img-content[_ngcontent-%COMP%]{width:398px;height:224px}#img[_ngcontent-%COMP%]   .img-container[_ngcontent-%COMP%]   #img-3[_ngcontent-%COMP%], #img[_ngcontent-%COMP%]   .img-container[_ngcontent-%COMP%]   #img-4[_ngcontent-%COMP%]{margin:16px 0}#img[_ngcontent-%COMP%]   #backgrond-overlay[_ngcontent-%COMP%]{left:0;height:713px}#related[_ngcontent-%COMP%]{position:relative;height:450px;margin-left:138px}#related[_ngcontent-%COMP%]   .related_title[_ngcontent-%COMP%]{position:relative;height:72px}#related[_ngcontent-%COMP%]   .related-content_card[_ngcontent-%COMP%]{top:178px;width:1226px;height:224px;position:absolute;z-index:99}#related[_ngcontent-%COMP%]   .related-content_card[_ngcontent-%COMP%]   .related_card[_ngcontent-%COMP%]{width:398px;height:224px;border-radius:10px}#related[_ngcontent-%COMP%]   #backgrond-overlay[_ngcontent-%COMP%]{right:0;height:253px}#back[_ngcontent-%COMP%]{height:150px}#back[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%]{margin-right:30px;transform:scale(2)}#back[_ngcontent-%COMP%]   p[_ngcontent-%COMP%], #back[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:var(--title)}#back[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{margin:.83em 0}.shinny[_ngcontent-%COMP%]{background:#d3d3d3;position:relative;overflow:hidden}.shinny[_ngcontent-%COMP%]:before{content:"";position:absolute;top:0;left:0;width:100%;background:#fff3;height:100%;transform:skew(5deg);animation:_ngcontent-%COMP%_shine infinite 1.5s ease-in-out}@keyframes _ngcontent-%COMP%_shine{0%{transform:skew(45deg) translate(0)}to{transform:skew(45deg) translate(200%)}}@media(max-width:767px){#gallery[_ngcontent-%COMP%]{height:30vh}#gallery[_ngcontent-%COMP%]   .gallery-content[_ngcontent-%COMP%]{height:42vh}#gallery[_ngcontent-%COMP%]   .actions-container[_ngcontent-%COMP%]{top:50%}#gallery[_ngcontent-%COMP%]   .actions-container[_ngcontent-%COMP%]   .prev[_ngcontent-%COMP%]{left:10px}#gallery[_ngcontent-%COMP%]   .actions-container[_ngcontent-%COMP%]   .next[_ngcontent-%COMP%]{right:10px}#widget-container[_ngcontent-%COMP%]{display:none!important}#property-abstract[_ngcontent-%COMP%]{width:100%}#property-abstract[_ngcontent-%COMP%]   .action_container[_ngcontent-%COMP%]{width:86%;margin-left:18px;padding:29px 0}#property-abstract[_ngcontent-%COMP%]   .action_container[_ngcontent-%COMP%]   .action_button[_ngcontent-%COMP%]{width:60px;height:38px}#property-abstract[_ngcontent-%COMP%]   .action_container[_ngcontent-%COMP%]   .action_button-5[_ngcontent-%COMP%]{display:none!important}#property-abstract[_ngcontent-%COMP%]   #widget-container-abstract[_ngcontent-%COMP%]{height:523px;margin-left:18px;margin-bottom:20px}#property-abstract[_ngcontent-%COMP%]   #widget-container-abstract[_ngcontent-%COMP%]   .card_button_container[_ngcontent-%COMP%]{flex-wrap:wrap}#property-abstract[_ngcontent-%COMP%]   #widget-container-abstract[_ngcontent-%COMP%]   .card-container[_ngcontent-%COMP%]   .card-content[_ngcontent-%COMP%]{width:80vw}#property-abstract[_ngcontent-%COMP%]   #widget-container-abstract[_ngcontent-%COMP%]   .card-container[_ngcontent-%COMP%]   .card-content[_ngcontent-%COMP%]   .text_xl[_ngcontent-%COMP%]{height:18px}#property-abstract[_ngcontent-%COMP%]   #widget-container-abstract[_ngcontent-%COMP%]   .card-container[_ngcontent-%COMP%]   .card-content[_ngcontent-%COMP%]   .text_md[_ngcontent-%COMP%]{height:12px}#property-abstract[_ngcontent-%COMP%]   #widget-container-abstract[_ngcontent-%COMP%]   .card-container[_ngcontent-%COMP%]   .card-content[_ngcontent-%COMP%]   .info_div[_ngcontent-%COMP%]{width:324px}#property-abstract[_ngcontent-%COMP%]   #widget-container-abstract[_ngcontent-%COMP%]   .card-container[_ngcontent-%COMP%]   .card_photo[_ngcontent-%COMP%], #property-abstract[_ngcontent-%COMP%]   #widget-container-abstract[_ngcontent-%COMP%]   .card-container[_ngcontent-%COMP%]   .card_name[_ngcontent-%COMP%]{display:none!important}#property-abstract[_ngcontent-%COMP%]   #widget-container-abstract[_ngcontent-%COMP%]   .card-container[_ngcontent-%COMP%]   .card_button_container[_ngcontent-%COMP%]{margin-top:30px}#property-abstract[_ngcontent-%COMP%]   #widget-container-abstract[_ngcontent-%COMP%]   .card-container[_ngcontent-%COMP%]   .card_button_container[_ngcontent-%COMP%]   .card_button[_ngcontent-%COMP%]{width:100%}#property-abstract[_ngcontent-%COMP%]   .descrition_container[_ngcontent-%COMP%]{margin-top:5px;margin-bottom:20px;margin-left:18px}#property-abstract[_ngcontent-%COMP%]   .descrition_container[_ngcontent-%COMP%]   .text_xl[_ngcontent-%COMP%], #property-abstract[_ngcontent-%COMP%]   .descrition_container[_ngcontent-%COMP%]   .text_sm[_ngcontent-%COMP%]{display:none!important}#features[_ngcontent-%COMP%]{margin:930px 18px 40px}#features[_ngcontent-%COMP%]   .feature-container_item[_ngcontent-%COMP%]   .feature_title[_ngcontent-%COMP%]{height:18px}#features[_ngcontent-%COMP%]   .feature-container_item[_ngcontent-%COMP%]   .feature-content_item[_ngcontent-%COMP%]{width:90vw}#features[_ngcontent-%COMP%]   .feature-container_item[_ngcontent-%COMP%]   .feature-content_item[_ngcontent-%COMP%]   .feature_item[_ngcontent-%COMP%]{height:12px;margin-right:5vw}#video[_ngcontent-%COMP%], #img[_ngcontent-%COMP%]{display:none!important}#related[_ngcontent-%COMP%]{height:184px;margin-left:0}#related[_ngcontent-%COMP%]   .related_title[_ngcontent-%COMP%], #related[_ngcontent-%COMP%]   .related-content_card[_ngcontent-%COMP%]{display:none!important}
10#related[_ngcontent-%COMP%]   .simulator[_ngcontent-%COMP%]{position:absolute;width:100%;height:185px}#related[_ngcontent-%COMP%]   .simulator[_ngcontent-%COMP%]   .card_simulator[_ngcontent-%COMP%]{width:260px;height:48px;margin:20px 0 16px}#related[_ngcontent-%COMP%]   .simulator[_ngcontent-%COMP%]   .card_shared_info[_ngcontent-%COMP%]{height:14px;margin-bottom:10px}#related[_ngcontent-%COMP%]   .simulator[_ngcontent-%COMP%]   .card-content_shared_button[_ngcontent-%COMP%]{width:260px;height:86px}#related[_ngcontent-%COMP%]   .simulator[_ngcontent-%COMP%]   .card-content_shared_button[_ngcontent-%COMP%]   .card_shared_button[_ngcontent-%COMP%]{height:36px}#related[_ngcontent-%COMP%]   #backgrond-overlay[_ngcontent-%COMP%]{width:100%;height:185px}}@media(min-width:768px)and (max-width:1023px){#gallery[_ngcontent-%COMP%]{height:44vh}#gallery[_ngcontent-%COMP%]   .gallery-content[_ngcontent-%COMP%]{height:49vh}#gallery[_ngcontent-%COMP%]   .actions-container[_ngcontent-%COMP%]   .prev[_ngcontent-%COMP%]{left:52px}#gallery[_ngcontent-%COMP%]   .actions-container[_ngcontent-%COMP%]   .next[_ngcontent-%COMP%]{right:52px}#widget-container[_ngcontent-%COMP%]{display:none!important}#property-abstract[_ngcontent-%COMP%]{width:100%}#property-abstract[_ngcontent-%COMP%]   .action_container[_ngcontent-%COMP%]{width:86%;margin-left:52px}#property-abstract[_ngcontent-%COMP%]   #widget-container-abstract[_ngcontent-%COMP%]{width:636px;height:554px;margin-left:52px}#property-abstract[_ngcontent-%COMP%]   #widget-container-abstract[_ngcontent-%COMP%]   .card-container[_ngcontent-%COMP%]   .card-content[_ngcontent-%COMP%]{width:590px}#property-abstract[_ngcontent-%COMP%]   #widget-container-abstract[_ngcontent-%COMP%]   .card-container[_ngcontent-%COMP%]   .card-content[_ngcontent-%COMP%]   .text_xl[_ngcontent-%COMP%]{height:38px}#property-abstract[_ngcontent-%COMP%]   #widget-container-abstract[_ngcontent-%COMP%]   .card-container[_ngcontent-%COMP%]   .card-content[_ngcontent-%COMP%]   .text_md[_ngcontent-%COMP%]{height:18px}#property-abstract[_ngcontent-%COMP%]   #widget-container-abstract[_ngcontent-%COMP%]   .card-container[_ngcontent-%COMP%]   .card-content[_ngcontent-%COMP%]   .info_div[_ngcontent-%COMP%]{width:590px}#property-abstract[_ngcontent-%COMP%]   #widget-container-abstract[_ngcontent-%COMP%]   .card-container[_ngcontent-%COMP%]   .card_button_container[_ngcontent-%COMP%]   .card_button[_ngcontent-%COMP%]{width:190px}#property-abstract[_ngcontent-%COMP%]   .descrition_container[_ngcontent-%COMP%]{margin-top:25px;margin-bottom:20px;margin-left:52px}#property-abstract[_ngcontent-%COMP%]   .descrition_container[_ngcontent-%COMP%]   .text_xl[_ngcontent-%COMP%], #property-abstract[_ngcontent-%COMP%]   .descrition_container[_ngcontent-%COMP%]   .text_sm[_ngcontent-%COMP%]{display:none!important}#features[_ngcontent-%COMP%]{margin:990px 52px 40px}#features[_ngcontent-%COMP%]   .feature-container_item[_ngcontent-%COMP%]   .feature-content_item[_ngcontent-%COMP%]{width:636px}#features[_ngcontent-%COMP%]   .feature-container_item[_ngcontent-%COMP%]   .feature-content_item[_ngcontent-%COMP%]   .feature_item[_ngcontent-%COMP%]{margin-right:8vw}#video[_ngcontent-%COMP%], #img[_ngcontent-%COMP%]{display:none!important}#related[_ngcontent-%COMP%]{height:310px;margin-left:52px}#related[_ngcontent-%COMP%]   .related_title[_ngcontent-%COMP%]{height:24px}#related[_ngcontent-%COMP%]   .related-content_card[_ngcontent-%COMP%]{width:610px;top:88px}#related[_ngcontent-%COMP%]   .related-content_card[_ngcontent-%COMP%]   .related_card[_ngcontent-%COMP%]{width:195px;height:136px}#related[_ngcontent-%COMP%]   .simulator[_ngcontent-%COMP%]{display:none!important}#related[_ngcontent-%COMP%]   #backgrond-overlay[_ngcontent-%COMP%]{height:185px}}@media(min-width:1024px)and (max-width:1199px){#gallery[_ngcontent-%COMP%], #gallery[_ngcontent-%COMP%]   .gallery-content[_ngcontent-%COMP%]{height:75vh}#gallery[_ngcontent-%COMP%]   .actions-container[_ngcontent-%COMP%]   .prev[_ngcontent-%COMP%]{left:80px}#gallery[_ngcontent-%COMP%]   .actions-container[_ngcontent-%COMP%]   .next[_ngcontent-%COMP%]{right:80px}#widget-container[_ngcontent-%COMP%]{display:none!important}#property-abstract[_ngcontent-%COMP%]{width:100%}#property-abstract[_ngcontent-%COMP%]   .action_container[_ngcontent-%COMP%]{width:80%;margin-left:80px}#property-abstract[_ngcontent-%COMP%]   #widget-container-abstract[_ngcontent-%COMP%]{width:810px;height:554px;margin-left:80px}#property-abstract[_ngcontent-%COMP%]   #widget-container-abstract[_ngcontent-%COMP%]   .card-container[_ngcontent-%COMP%]   .card-content[_ngcontent-%COMP%]{width:690px}#property-abstract[_ngcontent-%COMP%]   #widget-container-abstract[_ngcontent-%COMP%]   .card-container[_ngcontent-%COMP%]   .card-content[_ngcontent-%COMP%]   .text_xl[_ngcontent-%COMP%]{height:38px}#property-abstract[_ngcontent-%COMP%]   #widget-container-abstract[_ngcontent-%COMP%]   .card-container[_ngcontent-%COMP%]   .card-content[_ngcontent-%COMP%]   .text_md[_ngcontent-%COMP%]{height:18px}#property-abstract[_ngcontent-%COMP%]   #widget-container-abstract[_ngcontent-%COMP%]   .card-container[_ngcontent-%COMP%]   .card-content[_ngcontent-%COMP%]   .info_div[_ngcontent-%COMP%]{width:690px}#property-abstract[_ngcontent-%COMP%]   #widget-container-abstract[_ngcontent-%COMP%]   .card-container[_ngcontent-%COMP%]   .card_button_container[_ngcontent-%COMP%]   .card_button[_ngcontent-%COMP%]{width:200
10px}#property-abstract[_ngcontent-%COMP%]   .descrition_container[_ngcontent-%COMP%]{margin-top:25px;margin-bottom:20px;margin-left:80px}#property-abstract[_ngcontent-%COMP%]   .descrition_container[_ngcontent-%COMP%]   .text_xl[_ngcontent-%COMP%], #property-abstract[_ngcontent-%COMP%]   .descrition_container[_ngcontent-%COMP%]   .text_sm[_ngcontent-%COMP%]{display:none!important}#features[_ngcontent-%COMP%]{margin:990px 80px 40px}#features[_ngcontent-%COMP%]   .feature-container_item[_ngcontent-%COMP%]   .feature-content_item[_ngcontent-%COMP%]{width:810px}#features[_ngcontent-%COMP%]   .feature-container_item[_ngcontent-%COMP%]   .feature-content_item[_ngcontent-%COMP%]   .feature_item[_ngcontent-%COMP%]{margin-right:30px}#video[_ngcontent-%COMP%]   .video-container[_ngcontent-%COMP%]{width:810px;margin-left:80px}#img[_ngcontent-%COMP%]   .img-container[_ngcontent-%COMP%], #related[_ngcontent-%COMP%]{margin-left:80px}#related[_ngcontent-%COMP%]   .related-content_card[_ngcontent-%COMP%]{width:810px}#related[_ngcontent-%COMP%]   .related-content_card[_ngcontent-%COMP%]   .related_card[_ngcontent-%COMP%]{width:262px;height:180px}#related[_ngcontent-%COMP%]   .simulator[_ngcontent-%COMP%]{display:none!important}}@media(min-width:1200px)and (max-width:1399px){#gallery[_ngcontent-%COMP%], #gallery[_ngcontent-%COMP%]   .gallery-content[_ngcontent-%COMP%]{height:70vh}#gallery[_ngcontent-%COMP%]   .actions-container[_ngcontent-%COMP%]   .prev[_ngcontent-%COMP%]{left:110px}#gallery[_ngcontent-%COMP%]   .actions-container[_ngcontent-%COMP%]   .next[_ngcontent-%COMP%]{right:110px}#widget-container[_ngcontent-%COMP%]{top:45vh;right:112px}#widget-container[_ngcontent-%COMP%]   .card-container[_ngcontent-%COMP%]{max-width:310px}#widget-container[_ngcontent-%COMP%]   .card-container[_ngcontent-%COMP%]   .card-content[_ngcontent-%COMP%], #widget-container[_ngcontent-%COMP%]   .card_button[_ngcontent-%COMP%]{width:290px}#property-abstract[_ngcontent-%COMP%]{height:500px}#property-abstract[_ngcontent-%COMP%]   .action_container[_ngcontent-%COMP%], #property-abstract[_ngcontent-%COMP%]   .descrition_container[_ngcontent-%COMP%]{margin-left:110px}#features[_ngcontent-%COMP%]{margin:550px 110px 40px}#features[_ngcontent-%COMP%]   .feature-container_item[_ngcontent-%COMP%]   .feature-content_item[_ngcontent-%COMP%]{width:640px}#features[_ngcontent-%COMP%]   .feature-container_item[_ngcontent-%COMP%]   .feature-content_item[_ngcontent-%COMP%]   .feature_item[_ngcontent-%COMP%]{margin-right:164px}#video[_ngcontent-%COMP%]   .video-container[_ngcontent-%COMP%]{width:612px}#img[_ngcontent-%COMP%]   .img-container[_ngcontent-%COMP%]{width:614px}#img[_ngcontent-%COMP%]   .img-container[_ngcontent-%COMP%]   .img-content[_ngcontent-%COMP%]{width:300px}#related[_ngcontent-%COMP%]   .related-content_card[_ngcontent-%COMP%]{width:960px}#related[_ngcontent-%COMP%]   .related-content_card[_ngcontent-%COMP%]   .related_card[_ngcontent-%COMP%]{width:312px}}@media(min-width:1399px){#gallery[_ngcontent-%COMP%]{height:76vh}#gallery[_ngcontent-%COMP%]   .gallery-content[_ngcontent-%COMP%]{height:90vh}}@media(min-width:1920px){#gallery[_ngcontent-%COMP%]{height:83vh}#gallery[_ngcontent-%COMP%]   .gallery-content[_ngcontent-%COMP%]{height:92vh}#gallery[_ngcontent-%COMP%]   .actions-container[_ngcontent-%COMP%]   .prev[_ngcontent-%COMP%]{left:138px}#gallery[_ngcontent-%COMP%]   .actions-container[_ngcontent-%COMP%]   .next[_ngcontent-%COMP%]{right:138px}#widget-container[_ngcontent-%COMP%]{width:398px;top:65vh;right:270px}#widget-container[_ngcontent-%COMP%]   .card-container[_ngcontent-%COMP%]{max-width:398px}}@media(min-width:2560px){#widget-container[_ngcontent-%COMP%]{right:424px}}.flex-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.flex-column[_ngcontent-%COMP%]{display:flex;flex-direction:column}.flex-wrap[_ngcontent-%COMP%]{flex-wrap:wrap}.align-start-center[_ngcontent-%COMP%]{justify-content:flex-start;align-items:center}.align-space-between-center[_ngcontent-%COMP%]{justify-content:space-between;align-items:center}.align-space-between-start[_ngcontent-%COMP%]{justify-content:space-between;align-items:flex-start}.align-start-start[_ngcontent-%COMP%]{justify-content:flex-start;align-items:flex-start}.align-center-center[_ngcontent-%COMP%]{justify-content:center;align-items:center}.margin-bottom-10[_ngcontent-%COMP%]{margin-bottom:10px}.margin-bottom-20[_ngcontent-%COMP%]{margin-bottom:20px}.margin-bottom-35[_ngcontent-%COMP%]{margin-bottom:35px}.margin-bottom-40[_ngcontent-%COMP%]{margin-bottom:40px}.margin-right-10[_ngcontent-%COMP%]{margin-right:10px}']})};var ke=class n{schemaOrgService=_(Dn);setSchema(e,t){let i={"@context":"https://schema.org","@type":this.getRealEstateType(e.property_type),name:e.site_title,de
10scription:e.site_meta_description||e.description||"",image:e.photos?.map(c=>c.url)||[],url:`https://${t.site}${e.site_url}`,sku:e.code,address:{"@type":"PostalAddress",streetAddress:`${e.address}, ${e.address_complement||""}`,addressLocality:e.city,addressRegion:e.state,postalCode:e.zipcode||"",addressCountry:"BR"},geo:{"@type":"GeoCoordinates",latitude:e.latitude,longitude:e.longitude},numberOfBedrooms:e.bedroom,numberOfBathroomsTotal:e.bathroom,floorSize:{"@type":"QuantitativeValue",value:e.useful_area,unitCode:"MTK"},lotSize:{"@type":"QuantitativeValue",value:e.lot_area,unitCode:"MTK"},offers:{"@type":"Offer",priceCurrency:"BRL",price:e.sale_value||e.rental_value||0,url:`https://${t.site}`,availability:e.active?"InStock":"OutOfStock",seller:{"@type":"RealEstateAgent",name:t.company_name,address:{"@type":"PostalAddress",streetAddress:`${t.address}, ${t.address_complement||""}`,addressLocality:t.city,addressRegion:t.state,postalCode:t.zip_code||"",addressCountry:"BR"}}}};e.vacation_rental&&(i.offers.priceSpecification={"@type":"UnitPriceSpecification",price:e.rental_value,priceCurrency:"BRL",referenceQuantity:{"@type":"QuantitativeValue",value:1,unitCode:"DAY"}}),this.schemaOrgService.setSchema(i)}getRealEstateType(e){let i=(c=>c.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase())(e);return i.includes("casa")?"SingleFamilyResidence":i.includes("apartamento")?"Apartment":i.includes("comercial")?"CommercialBuilding":i.includes("escritorio")?"Office"
10:i.includes("terreno")?"Landform":i.includes("temporada")?"Accommodation":"SingleFamilyResidence"}static \u0275fac=function(t){return new(t||n)};static \u0275prov=zt({token:n,factory:n.\u0275fac,providedIn:"root"})};function Ia(n,e){if(n&1){let t=w();a(0,"imobzi-button-close-modal",3),b("closeChange",function(){f(t);let c=p();return M(c.closePage())}),r(),a(1,"imobzi-button-comeback",4),b("comeBack",function(){f(t);let c=p();return M(c.closePage())}),r()}}function Va(n,e){if(n&1){let t=w();a(0,"imobzi-search-not-found",5),b("action",function(){f(t);let c=p();return M(c.closePage())}),r()}n&2&&u("customAction",!0)}function Aa(n,e){if(n&1&&y(0,"imobzi-property-related",9),n&2){let t=p(2);u("propertiesRelated",t.propertiesRelated)}}function Fa(n,e){if(n&1){let t=w();y(0,"imobzi-widget-container",6)(1,"imobzi-header-detail",7)(2,"imobzi-property-detail",8),m(3,Aa,1,1,"imobzi-property-related",9),a(4,"imobzi-footer-detail",10),b("comeBack",function(){f(t);let c=p();return M(c.closePage())}),r()}if(n&2){let t=p();u("property",t.property())("saveSearchParams",t.saveSearchParams),o(),u("property",t.property())("saveSearchParams",t.saveSearchParams)("parameters",t.parameters()),o(),u("property",t.property())("saveSearchParams",t.saveSearchParams),o(),g(t.propertiesRelated&&t.propertiesRelated.length>0?3:-1)}}function Na(n,e){if(n&1){let t=w();a(0,"imobzi-loading-details",4),b("comeBack",function(){f(t);let c=p();return M(c.closePage())}),r()}}var zn=class n{appService=_(U);parametersService=_(et);propertyService=_(Yt);activeRoute=_(cn);router=_($t);location=_(At);title=_(en);meta=_(tn);customCurrency=_(Ct);schemaOrgPropertyService=_(ke);appComponent=_(Xt);platformId=_(F);responseInit=_(Qe,{optional:!0});parameters=this.parametersService.getParameters();property=Be(null);propertyNotFound=Be(!1);propertiesRelated;titleDefault;activateLayout;locationUrl;layoutBucketPath=this.appService.layoutBucketPath();clientBucketPath=this.appService.clientBucketPath();history;saveSearchParams={};originalUrl;loading=L(()=>(this.parametersService.getParametersIsLoading()()||!this.property())&&!this.propertyNotFound());shouldSetMetaTags=L(()=>!!this.parameters()&&!!this.property());constructor(){let e=_("ORIGINAL_URL",{optional:!0});e&&(this.originalUrl=e.split("?")[0]);let t=nt(()=>{this.shouldSetMetaTags()&&(this.setMetaTags(),this.schemaOrgPropertyService.setSchema(this.property(),this.parameters()),t.destroy())})}ngOnInit(){z(this.platformId)&&window.scroll(0,1),this.saveSearchParams=this.appComponent.saveSearchParams,this.activeRoute.params.subscribe(e=>{this.getProperty(e)})}getProperty(e){this.property.set(void 0),this.propertyNotFound.set(!1),e.code?this.getPropertyByCode(e.code):e.urlPath?this.getPropertyByUrlPath(e.urlPath):this.handleNotFound(),z(this.platformId)&&history.state&&(this.history=history.state)}closePage(){this.history&&this.history.navigationId>1?this.location.back():this.router.navigate(["/buscar"],{queryParams:{cursor:"",availability:this.property()?.tags[0]==="sale"?"buy":this.property()?.tags[0],property_type:this.property()?.property_type,city:this.property()?.city}})}handleNotFound(){this.propertyNotFound.set(!0),this.appComponent.calledFromDetail.set(!1),this.responseInit&&(this.responseInit.status=404),this.meta.updateTag({name:"robots",content:"noindex, nofollow"}),this.title.setTitle("Im\xF3vel n\xE3o encontrado | "+this.title.getTitle())}getPropertyByCode(e){this.propertyService.getProperty(e).subscribe({next:t=>{t.site_url||(t.site_url="/imovel/codigo/"+t.code),this.property.set(t),this.translateFinality(),this.property().site_title||this.generatePropertyTitle(),this.property().site_meta_description||this.generatePropertyMetaDescription(),this.propertyService.updateSiteCount(this.property().code),this.getPropertiesRelated(),this.locationUrl=z(this.platformId)?location.pathname:this.originalUrl,this.locationUrl==="/c/"+this.property().code&&this.location.go(this.property().site_url)},error:()=>this.handleNotFound()})}getPropertyByUrlPath(e){e.startsWith("/imovel/")||(e="/imovel/"+e),this.propertyService.getPropertyByUrl(e).subscribe({next:t=>{t.site_url||(t.site_url="/imovel/codigo/"+t.code),this.property.set(t),this.translateFinality(),this.property().site_title||this.generatePropertyTitle(),this.property().site_meta_description||this.generatePropertyMetaDescription(),this.propertyService.updateSiteCount(this.property().code),this.getPropertiesRelated()},error:()=>this.handleNotFound()})}getPropertiesRelated(){this.propertyService.getPropertiesRelated(this.property().code).subscribe(e=>{this.propertiesRelated=e,this.propertiesRelated.forEach(t=>{t.cover_photo&&t.cover_photo.url&&(t.cover_photo.url=_t(t.cover_photo.url)),t.site_description&&(t.site_description=gn(t.site_description))})},()=>this.propertiesRelated=void 0)}setMetaTags(){let e=this.property(),t=this.parameters();if(this.titleDefault?(this.title.setTitle(`${this.titleDefault} | ${this.title.getTitle()}`),this.meta.updateTag({property:"og:title",content:`${this.titleDefault} | ${this.title.getTitle()}`})):e?.site_title&&(this.title.setTitle(`${e.site_title} | ${this.title.getTitle()}`),this.meta.updateTag({property:"og:title",content:`${this.title.getTitle()}`})),e?.site_meta_description&&(this.meta.updateTag({name:"description",content:e.site_meta_description}),this.meta.updateTag({property:"og:description",content:e.site_meta_description})),t?.site&&e?.site_url){let i="https://"+t.site+e.site_url;this.meta.updateTag({property:"og:url",content:i})}e?.cover_photo?.url?this.meta.updateTag({property:"og:image",content:e.cover_photo.url}):e?.photos?.length>0&&e.photos[0]?.url&&this.meta.updateTag({property:"og:image",content:e.photos[0].url}),this.meta.updateTag({property:"og:type",content:"website"}),this.meta.updateTag({property:"fb:app_id",content:"559276504090135"})}generatePropertyMetaDescription(){this.property().site_meta_description=`${this.property().property_type} ${this.property().finality.toLowerCase()}`;let e=[];
10this.property().tags&&this.property().tags.forEach(t=>{switch(t){case"sale":let i="venda";this.property().sale_value>0&&(i+=` por ${this.customCurrency.transform(Number(this.property().sale_value),!0)}`),e.push(i);break;case"rent":let c="aluguel";this.property().rental_value>0&&(c+=` por ${this.customCurrency.transform(this.property().rental_value,!0)}`),e.push(c);break;case"vacation_rental":let h="temporada";this.property().rental_value>0&&(h+=` por ${this.customCurrency.transform(this.property().rental_value,!0)}`),e.push(h);break}}),this.property().site_meta_description=`${this.property().property_type} ${this.property().finality.toLowerCase()}`,this.property().site_meta_description+=`${this.getRoomsPropertyText()?" com "+this.getRoomsPropertyText():""}`,this.property().site_meta_description+=` em ${this.property().neighborhood} - ${this.property().city}/${this.property().state}`,this.property().site_meta_description+=` para ${e.join(" e ")}`}getRoomsPropertyText(){let e=[];return this.property().suite&&e.push(`${this.property().suite} ${this.property().suite>1?"su\xEDtes":"su\xEDte"}`),this.property().bedroom&&e.push(`${this.property().bedroom} ${this.property().bedroom>1?"quartos":"quarto"}`),this.property().garage&&e.push(`${this.property().garage} ${this.property().garage>1?"vagas":"vaga"}`),this.property().bathroom&&e.push(`${this.property().bathroom} ${this.property().bathroom>1?"banheiros":"banheiro"}`),e.join(", ")}generatePropertyTitle(){let e=this.property();this.titleDefault=e.property_type,e.finality&&(this.titleDefault+=" "+e.finality.toLowerCase()),e.site_title=`${e.property_type} ${e.finality||""} em ${e.neighborhood}`,e.suite?this.titleDefault+=` com ${e.suite} ${e.suite>1?"su\xEDtes":"su\xEDte"}`:e.bedroom&&(this.titleDefault+=` com ${e.bedroom} ${e.bedroom>1?"quartos":"quarto"}`),this.titleDefault+=` em ${e.neighborhood} - ${e.city}/${e.state}`}translateFinality(){switch(this.property().finality){case"residential":this.property().finality="Residencial";break;case"commercial":this.property().finality="Comercial";break;case"rural":case"Rural":this.property().finality="Rural"}}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=P({type:n,selectors:[["imobzi-details"]],features:[He([Ct])],decls:7,vars:4,consts:[["id","details"],[1,"details-container","container-fluid"],[1,"col-xs-12","col-sm-12","col-md-12","col-lg-12","col-xl-12",3,"customAction"],[3,"closeChange"],[3,"comeBack"],[1,"col-xs-12","col-sm-12","col-md-12","col-lg-12","col-xl-12",3,"action","customAction"],[1,"col-xs-12","col-sm-12","col-md-4","col-lg-4","col-xl-4",3,"property","saveSearchParams"],[1,"col-xs-12","col-sm-12","col-md-12","col-lg-12","col-xl-12",3,"property","saveSearchParams","parameters"],[1,"col-xs-12","col-sm-12","col-md-12","col-lg-12","col-xl-12",3,"property","saveSearchParams"],[1,"col-xs-12","col-sm-12","col-md-12","col-lg-12","col-xl-12",3,"propertiesRelated"],[1,"col-xs-12","col-sm-12","col-md-12","col-lg-12","col-xl-12",3,"comeBack"]],template:function(t,i){t&1&&(a(0,"section",0),m(1,Ia,2,0),a(2,"section",1),m(3,Va,1,1,"imobzi-search-not-found",2)(4,Fa,5,8)(5,Na,1,0,"imobzi-loading-details"),r(),y(6,"imobzi-privacy-policy"),r()),t&2&&(R("not-found",i.propertyNotFound()),o(),g(i.propertyNotFound()?-1:1),o(2),g(i.propertyNotFound()?3:i.loading()?5:4))},dependencies:[wn,Jt,ce,be,xe,ve,Oe,Se,On,Tn],styles:["#details[_ngcontent-%COMP%]{background-color:#000000e6}#details.not-found[_ngcontent-%COMP%]{background-color:transparent;min-height:calc(100vh - 200px);display:flex;align-items:center;justify-content:center}#details.not-found[_ngcontent-%COMP%]   .details-container[_ngcontent-%COMP%]{background-color:transparent;box-shadow:none;width:100%;display:flex;justify-content:center}#details[_ngcontent-%COMP%]   .details-container[_ngcontent-%COMP%]{background-color:var(--background-page);box-shadow:0 11px 15px -7px #0003,0 24px 38px 3px #00000024,0 9px 46px 8px #0000001f}#details[_ngcontent-%COMP%]   imobzi-button-close-modal[_ngcontent-%COMP%]{position:fixed;top:50px;right:50px;z-index:99}#details[_ngcontent-%COMP%]   imobzi-widget-container[_ngcontent-%COMP%]{float:right}@media(max-width:767px){imobzi-widget-container[_ngcontent-%COMP%], imobzi-property-related[_ngcontent-%COMP%], imobzi-button-close-modal[_ngcontent-%COMP%]{display:none}}@media(min-width:768px)and (max-width:1023px){imobzi-button-close-modal[_ngcontent-%COMP%], imobzi-widget-container[_ngcontent-%COMP%], imobzi-property-related[_ngcontent-%COMP%]{display:none}}@media(min-width:1024px)and (max-width:1199px){imobzi-button-comeback[_ngcontent-%COMP%], imobzi-widget-container[_ngcontent-%COMP%]{display:none}imobzi-button-close-modal[_ngcontent-%COMP%]{right:30px!important}}@media(min-width:1200px)and (max-width:1399px){imobzi-button-comeback[_ngcontent-%COMP%]{display:none}imobzi-property-related[_ngcontent-%COMP%], imobzi-button-close-modal[_ngcontent-%COMP%]{display:block}}@media(min-width:1399px){imobzi-button-comeback[_ngcontent-%COMP%]{display:none}imobzi-property-related[_ngcontent-%COMP%], imobzi-button-close-modal[_ngcontent-%COMP%]{display:block}}.border-error-2[_ngcontent-%COMP%]{border:2px solid #ff0000}"]}
10)};export{zn as DetailsComponent};

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.