1(window.webpackJsonp=window.webpackJsonp||[]).push([[33],{"+YVO":function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var o=n("LtPu"),i=n("PCNd"),r=n("KEDY");let a=(()=>{class t{}return t.\u0275mod=r.Ob({type:t}),t.\u0275inj=r.Nb({factory:function(e){return new(e||t)},imports:[[o.c,i.a],o.c,i.a]}),t})()},"0eh4":function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var o=n("pphx"),i=n("wyrA"),r=n("KEDY"),a=n("N664"),s=n("+nzS");let c=(()=>{class t{constructor(t){this.bsModalRef=t}ngOnInit(){this.onClose=new o.a}close(){this.bsModalRef.hide()}}return t.\u0275fac=function(e){return new(e||t)(r.Qb(i.a))},t.\u0275cmp=r.Kb({type:t,selectors:[["trovimap-contact-modal-broker"]],inputs:{broker:"broker",isModal:"isModal"},decls:17,vars:8,consts:[[1,"modal-header"],["type","button","data-dismiss","modal","aria-label","Close",1,"close",3,"click"],["aria-hidden","true"],["id","myModalLabel",1,"modal-title"],[1,"modal-body"],[3,"broker","message","showlabel","gaTrack","isModal"]],template:function(t,e){1&t&&(r.Wb(0,"div",0),r.Tc(1,"\n "),r.Wb(2,"button",1),r.ec("click",(function(){return e.close()})),r.Wb(3,"span",2),r.Tc(4,"\xd7"),r.Vb(),r.Vb(),r.Tc(5,"\n "),r.Wb(6,"h4",3),r.Tc(7),r.jc(8,"translate"),r.Vb(),r.Tc(9,"\n"),r.Vb(),r.Tc(10,"\n"),r.Wb(11,"div",4),r.Tc(12,"\n "),r.Rb(13,"trovimap-contact-broker",5),r.Tc(14,"\n"),r.Vb(),r.Tc(15,"\n\n"),r.Tc(16,"\n")),2&t&&(r.Db(7),r.Uc(r.kc(8,6,"contact.askSeller")),r.Db(6),r.qc("broker",e.broker)("message","contact.commentsBroker")("showlabel",!1)("gaTrack","brokerwindow")("isModal",e.isModal))},directives:[a.a],pipes:[s.e],styles:[""]}),t})()},"3mTd":function(t,e,n){"use strict";n.d(e,"a",(function(){return f})),n.d(e,"b",(function(){return k})),n.d(e,"c",(function(){return v}));var o=n("LH58"),i=n("pphx"),r=n("jjsd"),a=n("gbi4"),s=n("pJiT"),c=n("cwMQ"),l=n("we3N"),h=n("3oGp"),p=n("sXtk"),d=n("8tcH"),b=n("KEDY"),g=n("YQR1"),m=n("LtPu"),u=n("+nzS"),_=n("A2Ni");const f={SHOW_BOUNDS:"SHOW_BOUNDS",HIDE_BOUNDS_AND_REMOVE_VIP:"HIDE_BOUNDS_AND_REMOVE_VIP",SELECT_ITEM:"SELECT_ITEM",SELECT_ITEM_IN_NEW_BOUNDS:"SELECT_ITEM_IN_NEW_BOUNDS",SELECT_ITEM_IN_VIEWPORT:"SELECT_ITEM_IN_VIEWPORT",HOVER_ITEM:"HOVER_ITEM",NEW_SEARCH:"NEW_SEARCH",NEW_POLYGONS:"NEW_POLYGONS",FIRST_IDLE_MAP:"FIRST_IDLE_MAP",MOVED_MAP:"MOVED_MAP",SHOW_LIST:"SHOW_LIST",START_ZOOM_OUT_AND_HIDE_BOUNDS:"START_ZOOM_OUT_AND_HIDE_BOUNDS",START_ZOOM_OUT_HIDE_BOUNDS_AND_REMOVE_VIP:"START_ZOOM_OUT_HIDE_BOUNDS_AND_REMOVE_VIP",ZOOM_OUT_AND_HIDE_BOUNDS:"ZOOM_OUT_AND_HIDE_BOUNDS",ZOOM_OUT_HIDE_BOUNDS_AND_REMOVE_VIP:"ZOOM_OUT_HIDE_BOUNDS_AND_REMOVE_VIP"};class k{constructor(){this.locationModel={},this.filters=new c.a,this.brokerFound=new Array}}let v=(()=>{class t{constructor(t,e,n,o,r,a,s,c,l,h,p){this.router=t,this.location=e,this.parsingService=n,this.httpClient=o,this.commonService=r,this.translate=a,this.seoService=s,this.cookieService=c,this.searchResultsService=l,this.envService=h,this.countryService=p,this.inputBrokerSearch$=new i.a,this.searchFromInside=!1,this.currentAction$=new i.a,this.defaultViewSelected=this.cookieService.get("selected_grid")?parseInt(this.cookieService.get("selected_grid"),10):4}calculateBrokerInput(t){let e,n,o,i,r=5,a="";t.pathProvince&&(e=t.pathProvince,a=e),t.pathLocality&&(o=t.pathLocality,r=15,a=o),t.pathNeighborhood&&(i=t.pathNeighborhood,r=25,a=i,n=o),t.pathStreet&&(r=100,a=t.pathStreet.toLowerCase());const s=new k;return s.filters=new c.a,s.locationModel.searchText=a,s.locationModel.searchTextInLocation=n,s.locationModel.Type=r,s}getESCountQueryNew(t,e){let n=t.locationModel.sqrLatLon;t.filters.viewport&&(n=t.filters.viewport);const o={TopLeft:{lat:n.northwest.latitude,lon:n.northwest.longitude},BottomRight:{lat:n.southeast.latitude,lon:n.southeast.longitude}};return t.filters.name&&(o.BrokerName=t.filters.name),t.filters.id&&(o.BrokerId=[parseInt(t.filters.id,10)]),(!e||e&&!e.searchInViewPort)&&(5===t.locationModel.Type?o.AdminArea2Id=t.locationModel.AdminArea2Id:15===t.locationModel.Type?o.LocalityId=t.locationModel.LocalityId:25===t.locationModel.Type&&(o.SubLocalityId=t.locationModel.NeighborhoodId)),o}getESQuery(t,e){const n=this.getESCountQueryNew(t,e);return n.PageSize=t.filters.pageSize||20,n.Page=t.filters.page||1,n.SortField=t.filters.order?t.filters.order:"_Vip",t.filters.orderDir&&(n.SortType=t.filters.orderDir.toLowerCase()),t.filters.name&&(n.Name=t.filters.name.toLowerCase()),n}getESOrderQuery(t,e){e.SortField="_Vip",t.orderDir&&(e.SortType=t.orderDir.toLowerCase())}detectQueryParamFiltersFromURL(t,e){const n=e.page;n&&parseInt(n,10)&&(t.filters.page=parseInt(n,10)),e.name&&(t.filters.name=e.name)}
1propagateAction(t,e,n){switch(t){case f.NEW_SEARCH:e&&e.filters&&(this.currentBrokerSearchInput.filters=e.filters),this.searchResultsService.removePageFromUrl(),this.currentBrokerSearchInput.filters.page=1;break;case f.SHOW_BOUNDS:this.currentBrokerSearchInput.filters.showBounds=e,this.currentBrokerSearchInput.filters.page=1,this.searchResultsService.removePageFromUrl();break;case f.SELECT_ITEM:case f.HOVER_ITEM:break;case f.SELECT_ITEM_IN_NEW_BOUNDS:this.currentBrokerSearchInput.filters.showBounds=!0,this.currentBrokerSearchInput.locationModel.sqrLatLon=this.parsingService.fromBoundsToSqrLatLon(e.bounds),this.currentBrokerSearchInput.locationModel.Name=e.name,this.currentBrokerSearchInput.locationModel.Type=e.locType,this.currentBrokerSearchInput.locationModel.AdminArea2Id=e.adminarea2id,this.currentBrokerSearchInput.locationModel.AdminArea2=e.adminarea2,this.currentBrokerSearchInput.locationModel.LocalityId=e.localityid,this.currentBrokerSearchInput.locationModel.Locality=e.locality,this.currentBrokerSearchInput.locationModel.NeighborhoodId=e.neighborhoodid,this.currentBrokerSearchInput.locationModel.Neighborhood=e.neighborhood,this.currentBrokerSearchInput.locationModel.Country=e.country;break;case f.SELECT_ITEM_IN_VIEWPORT:this.currentBrokerSearchInput.filters.showBounds=!1;break;case f.FIRST_IDLE_MAP:this.currentBrokerSearchInput.locationModel.mapCenter=e.mapCenter,this.currentBrokerSearchInput.filters.viewport=e.viewport;break;case f.MOVED_MAP:this.searchResultsService.removePageFromUrl(),this.currentBrokerSearchInput.filters.page=1,this.currentBrokerSearchInput.locationModel.mapCenter=e.mapCenter,this.currentBrokerSearchInput.filters.viewport=e.viewport,this.currentBrokerSearchInput.filters.zoom=e.zoom;break;case f.SHOW_LIST:break;case f.START_ZOOM_OUT_AND_HIDE_BOUNDS:this.currentBrokerSearchInput.filters.showBounds=e.showBounds,this.currentBrokerSearchInput.filters.zoom=e.zoom,this.searchResultsService.removePageFromUrl();break;case f.START_ZOOM_OUT_HIDE_BOUNDS_AND_REMOVE_VIP:this.currentBrokerSearchInput.filters.showBounds=e.showBounds,this.currentBrokerSearchInput.filters.zoom=e.zoom,delete this.currentBrokerSearchInput.filters.vip;break;case f.ZOOM_OUT_AND_HIDE_BOUNDS:this.searchResultsService.removePageFromUrl(),this.currentBrokerSearchInput.filters.page=1,this.currentBrokerSearchInput.filters.viewport=e.viewport,this.currentBrokerSearchInput.filters.zoom=e.zoom;break;case f.ZOOM_OUT_HIDE_BOUNDS_AND_REMOVE_VIP:delete this.currentBrokerSearchInput.filters.vip,this.currentBrokerSearchInput.filters.page=1,this.currentBrokerSearchInput.filters.viewport=e.viewport,this.currentBrokerSearchInput.filters.zoom=e.zoom;break;case f.HIDE_BOUNDS_AND_REMOVE_VIP:this.currentBrokerSearchInput.filters.showBounds=!1,this.currentBrokerSearchInput.filters.page=1}let o=!1,i=!1,r=!1;if(this.currentBrokerSearchInput.locationModel.sqrLatLon){const t=this.currentBrokerSearchInput.locationModel.sqrLatLon.southeast.latitude,e=this.currentBrokerSearchInput.locationModel.sqrLatLon.northwest.latitude;this.currentBrokerSearchInput.locationModel.sqrLatLon.southeast.longitude!==this.currentBrokerSearchInput.locationModel.sqrLatLon.northwest.longitude&&t!==e||(o=i=!0)}if(this.currentBrokerSearchInput.filters.viewport){const t=this.currentBrokerSearchInput.filters.viewport.southeast.latitude,e=this.currentBrokerSearchInput.filters.viewport.northwest.latitude;this.currentBrokerSearchInput.filters.viewport.southeast.longitude!==this.currentBrokerSearchInput.filters.viewport.northwest.longitude&&t!==e||(o=r=!0)}if(o){const e={msg:"[BAD COORDINATES]",level:"[ERROR]"};e.badLocationSqr=i,e.badViewportSqr=r,e.currentAction=t,e.dateVisit=(new Date).toDateString()}this.currentAction$.next({action:t,callerId:n,message:e,brokerSearchInput:this.currentBrokerSearchInput})}getESMapSearchQuery(t){const e={Id:t.filters.id,Name:t.filters.name,Vip:t.filters.vip};return e.PageSize=t.filters.pageSize||20,e.Page=t.filters.page||1,e.locType=t.locationModel.Type,e.text=this.parsingService.formatParameterForLink(t.locationModel.searchText),e.inLocation=this.parsingService.formatParameterForLink(t.locationModel.searchTextInLocation),e.country=this.envService.settings.country.toLowerCase(),e.withPolygons=!1,e}placeFiltersOnQuerysting(t){const e=Object(o.a)(this.currentBrokerSearchInput.filters);delete e.routeName,delete e.showBounds,delete e.viewport,delete e.page,delete e.orderDir,delete e.order,delete e.zoom,delete e.vip,delete e.inPolygons,this.router.navigate(t?[t]:[],{queryParamsHandling:null,replaceUrl:!0,queryParams:e})}mapSearch(t){return this.httpClient.post(this.envService.settings.serviceV2+"/map/broker/search",t)}getPropertiesFromES(t){return this.httpClient.post(this.envService.settings.serviceV2+"/map/broker/shape",t)}getDataPagedByBrokerId(t){return this.httpClient.post(this.envService.settings.serviceV2+"/map/broker/load-page",t)}getMapBrokerCount(t){return this.httpClient.post(this.envService.settings.serviceV2+"/map/broker/count",t)}getLayerPath(t){return this.httpClient.get("/cartodb/sql/public?q="+this.getEscapedQuery(t),{withCredentials:!0})}getEscapedQuery(t){return encodeURIComponent(t).replace(/'/g,"%27")}getAreaLayerOptions(t,e,n){let o="",i="";0===t?(o=this.countryService.mapSourceZip,i="mid"):5===t?(o=this.countryService.mapSourceAdminArea2Id,i="field_4"):15===t?(o=this.countryService.mapSourceLocalityId,i="locality_id"):[20,25,30].indexOf(t)>0&&(o=this.countryService.mapSourceMid,i="mid");let r="SELECT ";return r+=n?" ST_Intersection(area.the_geom,viewport.the_geom) as polygon FROM "+o+" area,viewport WHERE "+i+" = "+e+" and ST_Intersects(viewport.the_geom, area.the_geom) limit 1 ":" st_asText(the_geom) as polygon FROM "+o+" WHERE "+i+" = "+e+" limit 1",{sql:r}}getBrokerPushpin(t){return this.httpClient.post(this.envService.settings.serviceV2+"/map/broker/pushpin",t)}getPushpinDetailFromES(t){return this.httpClient.post(this.envService.settings.serviceV2+"/map/pushpin/details",t)}}return t.\u0275fac=function(e){return new(e||t)(b.ac(g.i),b.ac(m.n),b.ac(r.a),b.ac(h.a),b.ac(a.a),b.ac(u.f),b.ac(s.a),b.ac(_.b),b.ac(l.d),b.ac(p.a),b.ac(d.a))},t.\u0275prov=b.Mb({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},"8Jxi":function(t,e,n){"use strict";n.r(e),n.d(e,"BrokerSearchModule",(function(){return ke}));var o=n("LtPu"),i=n("aKM5"),r=n("Yjrs"),a=n("YQR1"),s=n("gLB5"),c=n("LH58"),l=n("rrml"),h=n("CcQg"),p=n("naSt"),d=n("PMzL"),b=n("pphx"),g=n("n6Ce"),m=n("OnbU"),u=n("wyrA"),_=n("jjsd"),f=n("gbi4"),k=n("LE5z"),v=n("pJiT"),x=n("Kszi"),S=n("HD51"),w=n("Fj/B"),P=n("ccyI"),M=n("/WEW"),C=n("ludq"),T=n("t1nY"),y=n("jF1d"),I=n("we3N"),O=n("3mTd"),B=n("cwMQ"),L=n("sgvv"),D=n("Ukz3"),R=n("KEDY"),E=n("+nzS"),V=n("x822");function N(t,e){if(1&t&&(R.Wb(0,"div",9),R.Tc(1,"\n "),R.Wb(2,"span",10),R.Tc(3),R.jc(4,"translate"),R.Vb(),R.Tc(5,"\n "),R.Wb(6,"span",11),R.Tc(7),R.jc(8,"translateOrFormatNumber"),R.
1Vb(),R.Tc(9,"\n "),R.Vb()),2&t){const t=R.ic();R.Db(3),R.Vc("",R.kc(4,2,"quickFilter.map"),":"),R.Db(4),R.Uc(R.lc(8,4,t.totalViewportBrokers,t.language))}}function W(t,e){if(1&t&&(R.Wb(0,"div",9),R.Tc(1,"\n "),R.Wb(2,"span",10),R.Tc(3),R.Vb(),R.Tc(4,"\n "),R.Wb(5,"span",11),R.Tc(6),R.jc(7,"translateOrFormatNumber"),R.Vb(),R.Tc(8,"\n "),R.Vb()),2&t){const t=R.ic();R.Db(3),R.Vc("",t.location,":"),R.Db(3),R.Uc(R.lc(7,2,t.totalBrokers,t.language))}}function A(t,e){if(1&t&&(R.Wb(0,"div",9),R.Tc(1,"\n "),R.Wb(2,"span",10),R.Tc(3),R.jc(4,"translate"),R.Vb(),R.Tc(5,"\n "),R.Wb(6,"span",11),R.Tc(7),R.jc(8,"translateOrFormatNumber"),R.Vb(),R.Tc(9,"\n "),R.Vb()),2&t){const t=R.ic();R.Db(3),R.Vc("",R.kc(4,2,"quickFilter.polygon"),":"),R.Db(4),R.Uc(R.lc(8,4,t.totalPolygonBrokers,t.language))}}let F=(()=>{class t{constructor(t,e,n,o,i,r){this.brokerSearchService=t,this.commonService=e,this.changeDetRef=n,this.activatedRoute=o,this.translate=i,this.translateNotifier=r,this.callerId="countbox",this.showedBounds=!0,this.enableShowBoundsCheckbox=!0,this._observableSubscriptions=[]}ngOnInit(){this.showHistoricalStatsButton=this.showSaveSearchButton=!0,this.translateNotifier.langLoaded$.subscribe(t=>{t&&(this.language=this.translate.currentLang)});const t=this.brokerSearchService.currentAction$.subscribe(t=>{if(t.callerId!==this.callerId)switch(this.currentBrokerSearchInput=Object(c.a)(t.brokerSearchInput),t.action){case O.a.NEW_SEARCH:this.filters=this.currentBrokerSearchInput.filters,this.newSearch(),this.calculateLocation();break;case O.a.SHOW_BOUNDS:this.showedBounds=!!t.message;break;case O.a.SELECT_ITEM_IN_NEW_BOUNDS:this.showedBounds=!0,this.calculateLocation();break;case O.a.SELECT_ITEM_IN_VIEWPORT:this.showedBounds=!1,this.changeDetRef.markForCheck();break;case O.a.ZOOM_OUT_AND_HIDE_BOUNDS:case O.a.ZOOM_OUT_HIDE_BOUNDS_AND_REMOVE_VIP:case O.a.HIDE_BOUNDS_AND_REMOVE_VIP:this.showedBounds=!1}else this.currentBrokerSearchInput=Object(c.a)(t.brokerSearchInput);this.filters=Object(c.a)(this.currentBrokerSearchInput.filters)});this._observableSubscriptions.push(t),this.isSmartphone=this.commonService.isSmartphone();const e=this.commonService.$windowSize.pipe(Object(h.a)(100)).subscribe(()=>{this.isSmartphone=this.commonService.isSmartphone(),this.changeDetRef.markForCheck()});this._observableSubscriptions.push(e)}ngOnChanges(t){t.enable&&t.enable.currentValue&&this.brokerSearchService.currentBrokerSearchInput&&(this.currentBrokerSearchInput=Object(c.a)(this.brokerSearchService.currentBrokerSearchInput),this.filters=Object(c.a)(this.brokerSearchService.currentBrokerSearchInput.filters),this.showedBounds=this.currentBrokerSearchInput.filters.showBounds,this.showedBounds&&this.calculateLocation(),this.newSearch())}calculateLocation(){this.location=this.currentBrokerSearchInput.locationModel.Neighborhood?this.currentBrokerSearchInput.locationModel.Neighborhood:this.currentBrokerSearchInput.locationModel.Locality?this.currentBrokerSearchInput.locationModel.Locality:this.currentBrokerSearchInput.locationModel.AdminArea2}newSearch(){this.showedBounds=this.currentBrokerSearchInput.filters.showBounds,this.setEnableShowBoundsCheckbox(),this.totalPolygonBrokersShowed=void 0!==this.currentBrokerSearchInput.filters.inPolygons,this.changeDetRef.markForCheck()}showBounds(t){this.showedBounds=!t,this.brokerSearchService.propagateAction(O.a.SHOW_BOUNDS,!t,this.callerId)}setEnableShowBoundsCheckbox(){this.enableShowBoundsCheckbox=!this.currentBrokerSearchInput.filters.inPolygons}ngOnDestroy(){Object(l.a)(this._observableSubscriptions,t=>{t.unsubscribe()}),this.checkEnoughSpaceInterval&&clearInterval(this.checkEnoughSpaceInterval)}}return t.\u0275fac=function(e){return new(e||t)(R.Qb(O.c),R.Qb(f.a),R.Qb(R.h),R.Qb(a.a),R.Qb(E.f),R.Qb(S.a))},t.\u0275cmp=R.Kb({type:t,selectors:[["trovimap-broker-search-count-box"]],inputs:{totalBrokers:"totalBrokers",totalViewportBrokers:"totalViewportBrokers",totalPolygonBrokers:"totalPolygonBrokers",enable:"enable"},features:[R.Bb],decls:29,vars:5,consts:[[1,"map-topbar"],[1,"map-topbar__bound"],[1,"toggle-container"],[1,"trovimap-toggle"],["id","trovimapToggle","type","checkbox",3,"disabled","checked","[ngModel]","change"],["for","trovimapToggle","translate","quickFilter.showBounds"],[1,"bound-results"],["class","results",4,"ngIf"],[1,"overflow-div"],[1,"results"],[1,"result__title"],[1,"result__num"]],template:function(t,e){1&t&&(R.Tc(0,"\n"),R.Wb(1,"div",0),R.Tc(2,"\n "),R.Wb(3,"div",1),R.Tc(4,"\n "),R.Wb(5,"div",2),R.Tc(6,"\n "),R.Wb(7,"div",3),R.Tc(8,"\n "),R.Wb(9,"input",4),R.ec("[ngModel]",(function(){return e.showedBounds}
1))("change",(function(){return e.showBounds(e.showedBounds)})),R.Vb(),R.Tc(10,"\n "),R.Rb(11,"label",5),R.Tc(12,"\n "),R.Vb(),R.Tc(13,"\n "),R.Vb(),R.Tc(14,"\n "),R.Wb(15,"div",6),R.Tc(16,"\n "),R.Rc(17,N,10,7,"div",7),R.Tc(18,"\n "),R.Rc(19,W,9,5,"div",7),R.Tc(20,"\n "),R.Rc(21,A,10,7,"div",7),R.Tc(22,"\n "),R.Vb(),R.Tc(23,"\n "),R.Vb(),R.Tc(24,"\n "),R.Rb(25,"div",8),R.Tc(26," "),R.Tc(27,"\n"),R.Vb(),R.Tc(28,"\n")),2&t&&(R.Db(9),R.qc("disabled",!e.enableShowBoundsCheckbox)("checked",e.showedBounds),R.Db(8),R.qc("ngIf",null!=e.totalViewportBrokers&&!e.totalPolygonBrokersShowed),R.Db(2),R.qc("ngIf",null!=e.totalBrokers&&e.showedBounds),R.Db(2),R.qc("ngIf",null!=e.totalPolygonBrokers&&e.totalPolygonBrokersShowed))},directives:[E.b,o.t],pipes:[E.e,V.a],styles:[".map-topbar[_ngcontent-%COMP%] {\n border-bottom: 1px solid #e5e5e5;\n position: relative;\n}\n@media (min-width: 992px) {\n .map-topbar[_ngcontent-%COMP%] {\n display: flex;\n display: -ms-flexbox;\n \n align-items: center;\n justify-content: space-between;\n height: 32px;\n padding: 0 8px;\n }\n}\n@media (min-width: 992px) {\n .map-topbar[_ngcontent-%COMP%] {\n padding: 0 16px;\n }\n}\n@media (min-width: 992px) {\n .map-topbar__bound[_ngcontent-%COMP%] {\n display: flex;\n display: -ms-flexbox;\n \n align-items: center;\n justify-content: flex-start;\n width: 100%;\n }\n}\n.map-topbar[_ngcontent-%COMP%] .overflow-div[_ngcontent-%COMP%] {\n display: block;\n visibility: visible;\n height: 30px;\n width: 24px;\n position: absolute;\n z-index: 1;\n top: 32px;\n right: 0;\n background: linear-gradient(to right, rgba(255, 255, 255, 0), white);\n}\n@media (min-width: 992px) {\n .map-topbar[_ngcontent-%COMP%] .overflow-div[_ngcontent-%COMP%] {\n top: 0;\n right: 6px;\n }\n}\n@media (min-width: 1200px) {\n .map-topbar[_ngcontent-%COMP%] .overflow-div[_ngcontent-%COMP%] {\n display: none;\n visibility: hidden;\n }\n}\n.map-topbar[_ngcontent-%COMP%] .toggle-container[_ngcontent-%COMP%] {\n text-align: center;\n border-bottom: 1px solid #e5e5e5;\n height: 32px;\n}\n@media (min-width: 992px) {\n .map-topbar[_ngcontent-%COMP%] .toggle-container[_ngcontent-%COMP%] {\n text-align: left;\n border-right: 1px solid #e5e5e5;\n border-bottom: 0;\n white-space: nowrap;\n }\n}\n.map-topbar[_ngcontent-%COMP%] .bound-results[_ngcontent-%COMP%] {\n display: flex;\n display: -ms-flexbox;\n \n align-items: center;\n justify-content: space-between;\n overflow-x: auto;\n}\n.map-topbar[_ngcontent-%COMP%] .bound-results[_ngcontent-%COMP%]::-webkit-scrollbar {\n display: none;\n}\n.map-topbar[_ngcontent-%COMP%] .bound-results[_ngcontent-%COMP%] .results[_ngcontent-%COMP%] {\n padding: 0 8px;\n margin-bottom: 2px;\n white-space: nowrap;\n width: 100%;\n text-align: center;\n}\n@media (min-width: 992px) {\n .map-topbar[_ngcontent-%COMP%] .bound-results[_ngcontent-%COMP%] .results[_ngcontent-%COMP%] {\n width: auto;\n }\n}\n.map-topbar[_ngcontent-%COMP%] .bound-results[_ngcontent-%COMP%] .results[_ngcontent-%COMP%]:not(:last-child) {\n border-right: 1px solid #e5e5e5;\n}\n.map-topbar[_ngcontent-%COMP%] .bound-results[_ngcontent-%COMP%] .result__title[_ngcontent-%COMP%] {\n font-size: 12px;\n text-transform: uppercase;\n font-weight: 600;\n color: #54667B;\n}\n.map-topbar[_ngcontent-%COMP%] .bound-results[_ngcontent-%COMP%] .result__num[_ngcontent-%COMP%] {\n font-size: 14px;\n font-weight: 600;\n}\n.map-topbar[_ngcontent-%COMP%] .trovimap-toggle[_ngcontent-%COMP%] label[_ngcontent-%COMP%] {\n font-weight: 600;\n line-height: 24px;\n}"],changeDetection:0}),t})();var z=n("oCyj"),U=n("jIOS"),q=n("6IeK"),$=n("QHF/"),j=n("NQ2R"),Q=n("zy28"),H=n("KSMj"),Y=n("Is6d"),Z=n("QiMY"),G=(n("hl0a"),n("0eh4"));function K(t,e){1&t&&(R.Wb(0,"div",17),R.Tc(1,"\n "),R.Wb(2,"h4"),R.hc(),R.Wb(3,"svg",18),R.Tc(4,"\n "),R.Rb(5,"use",19),R.Tc(6,"\n "),R.Vb(),R.Tc(7," VIP "),R.Vb(),R.Tc(8,"\n "),R.Vb())}function J(t,e){if(1&t&&R.Rb(0,"img",20),2&t){const t=R.ic();R.qc("src",t.broker.LogoUrl,R.Mc)}}function X(t,e){if(1&t&&R.Rb(0,"img",20),2&t){const t=R.ic();R.qc("src",t.broker.DefaultLogo,R.Mc)}}function tt(t,e){if(1&t&&(R.Wb(0,"p"),R.Tc(1),R.Vb()),2&t){const t=R.ic();R.Db(1),R.Uc(t.broker.Description)}}function et(t,e){if(1&t&&(R.Wb(0,"p"),R.Tc(1),R.Vb()),2&t){const t=R.ic();R.Db(1),R.Uc(t.broker.Address)}}function nt(t,e){1&t&&(R.Wb(0,"span",21),R.Tc(1),R.jc(2,"translate"),R.Vb()),2&t&&(R.Db(1),R.Vc("\n ",R.kc(2,1,"map.availableProperties"),"\n "))}function ot(t,e){1&t&&(R.Wb(0,"span",21),R.Tc(1),R.jc(2,"translate"),R.Vb()),2&t&&(R.Db(1),R.Vc("\n ",R.kc(2,1,"map.availableProperty"),"\n "))}const it=function(t){return[t]};let rt=(()=>{class t{constructor(t,e,n,o,i,r,a){this.translateNotifier=t,this.translate=e,this.bsModalService=n,this.modalService=o,this.analytic=i,this.commonService=r,this.changeDetRef=a,this.windowLoaded=!1,this.isSmartphone=this.commonService.isSmartphone(),this.commonService.isBrowser()?this.windowLoaded$=this.commonService.windowLoaded$.subscribe(t=>{t&&(this.windowLoaded=!0,this.changeDetRef.markForCheck())}):this.windowLoaded=!0}ngOnInit(){this.langLoaded$=this.translateNotifier.langLoaded$.subscribe(t=>{t&&(this.language=this.translate.currentLang)}),this.imageStrategy=t=>{if(t)return"view-5"===this.viewClass||this.isSmartphone?t.Path_480x0||t.Path_320x0||t.Path_opt||t.Path||"":t.Path_320x0||t.Path_480x0||t.Path_opt||t.Path||""}}showModalContactForm(t){this.bsModalRef=this.modalService.show(this.bsModalService,G.a,{class:"contact__modal",animated:!0,ignoreBackdropClick:!0,initialState:{broker:this.broker,isModal:!0}})}ngOnDestroy(){this.langLoaded$.unsubscribe(),this.windowLoaded$&&this.windowLoaded$.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(R.Qb(S.a),R.Qb(E.f),R.Qb(u.b),R.Qb(x.a),R.Qb(T.a),R.Qb(f.a),R.Qb(R.h))},t.\u0275cmp=R.Kb({type:t,selectors:[["trovimap-broker-card"]],inputs:{broker:"broker",viewClass:"viewClass"},decls:65,vars:25,consts:[[1,"listing__container",3,"ngClass"],[1,"listing__photo"],["class","card__vip",4,"ngIf"],["loading","lazy","class","broker-photo","alt","",3,"src",4,"ngIf"],[1,"listing__detail"],[1,"listing__description--broker"],[1,"card__title"],[1,"text-capitalize-first-letter"],[4,"ngIf"],[1,"broker-property-badge"],[1,"property-num"],["class","property-title",4,"ngIf"],[1,"listing__contact"],[1,"contact__section"],["target","_blank",1,"btn-accent-outline",3,"routerLink"],[1,"btn-accent","grid-contact",3,"click"],[1,"contact__onbottom",2,"display","none"],[1,"card__vip"],[1,"tp-icon--star",2,"margin-right","4px"],[0,"xlink","href","assets/img/trovimap-svg.svg#tp-icon--star"],["loading","lazy","alt","",1,"broker-photo",3,"src"],[1,"property-title"]],template:function(t,e){1&t&&(R.Wb(0,"div",0),R.Tc(1,"\n "),R.Wb(2,"div",1),R.Tc(3,"\n "),R.Rc(4,K,9,0,"div",2),R.Tc(5,"\n "),R.Rc(6,J,1,1,"img",3),R.Tc(7,"\n "),R.Rc(8,X,1,1,"img",3),R.Tc(9,"\n "),R.Vb(),R.Tc(10,"\n "),R.Wb(11,"div",4),R.Tc(12,"\n\n "),R.Wb(13,"div",5),R.Tc(14,"\n "),R.Wb(15,"div",6),R.Tc(16,"\n "),R.Wb(17,"h2",7),R.Tc(18),R.
1Vb(),R.Tc(19,"\n "),R.Rc(20,tt,2,1,"p",8),R.Tc(21,"\n "),R.Rc(22,et,2,1,"p",8),R.Tc(23,"\n "),R.Vb(),R.Tc(24,"\n "),R.Wb(25,"div",9),R.Tc(26,"\n "),R.Wb(27,"span",10),R.Tc(28),R.Vb(),R.Tc(29,"\n "),R.Rc(30,nt,3,3,"span",11),R.Tc(31,"\n "),R.Rc(32,ot,3,3,"span",11),R.Tc(33,"\n "),R.Vb(),R.Tc(34,"\n "),R.Vb(),R.Tc(35,"\n "),R.Wb(36,"div",12),R.Tc(37,"\n "),R.Wb(38,"div",13),R.Tc(39,"\n "),R.Wb(40,"a",14),R.Tc(41),R.jc(42,"translate"),R.Vb(),R.Tc(43,"\n "),R.Wb(44,"a",15),R.ec("click",(function(){return e.showModalContactForm()})),R.Tc(45),R.jc(46,"translate"),R.Vb(),R.Tc(47,"\n "),R.Vb(),R.Tc(48,"\n "),R.Vb(),R.Tc(49,"\n "),R.Wb(50,"div",16),R.Tc(51,"\n "),R.Wb(52,"div",13),R.Tc(53,"\n "),R.Wb(54,"h2"),R.Tc(55),R.jc(56,"translate"),R.Vb(),R.Tc(57,"\n "),R.Wb(58,"a",15),R.ec("click",(function(){return e.showModalContactForm()})),R.Tc(59),R.jc(60,"translate"),R.Vb(),R.Tc(61,"\n "),R.Vb(),R.Tc(62,"\n "),R.Vb(),R.Tc(63,"\n "),R.Vb(),R.Tc(64,"\n"),R.Vb()),2&t&&(R.qc("ngClass",e.viewClass),R.Db(4),R.qc("ngIf",!0===e.broker.Vip),R.Db(2),R.qc("ngIf",e.broker.Logo&&""!==e.broker.LogoUrl),R.Db(2),R.qc("ngIf",!e.broker.LogoUrl||""===e.broker.LogoUrl),R.Db(10),R.Uc(e.broker.Name),R.Db(2),R.qc("ngIf",e.broker.Description),R.Db(2),R.qc("ngIf",!e.broker.Description),R.Db(6),R.Uc(e.broker.PropertiesNumberFormatted),R.Db(2),R.qc("ngIf",!e.broker.PropertiesNumber||0==e.broker.PropertiesNumber||e.broker.PropertiesNumber>1),R.Db(2),R.qc("ngIf",1==e.broker.PropertiesNumber),R.Db(8),R.qc("routerLink",R.xc(23,it,e.broker.TrovimapUrl)),R.Db(1),R.Uc(R.kc(42,15,"propertyComments.viewMore")),R.Db(4),R.Uc(R.kc(46,17,"contactModal.contact")),R.Db(10),R.Uc(R.kc(56,19,"contactModal.contact")),R.Db(4),R.Uc(R.kc(60,21,"contactModal.contact")))},directives:[o.q,o.t,a.l],pipes:[E.e],styles:['/* Font Style Base */\n/*Website Font Colors*/\n/*Buttons Color*/\n/* Layout Colors */\n/* Button color */\n/* Dashboard */\n/* CMA ON DEMAND */\n/* PIPELINE */\n/* Priority */\n/* Alerts */\n/*social colors*/\n/*modal colors:*/\n/*Carousel*/\n/*trovi-contactos*/\n/*Form colors*/\n/* Forms and inputs */\n/* Priority */\n/* BANNERS */\n/* DROP AREAS */\n/* Mixins */\n/* Basic Responsive Breakpoints */\n/* Extra Responsive Breakpoints */\n/* CMA Breakpoints */\n.view-4 .listing__container {\n position: relative;\n margin-bottom: 16px;\n border-radius: 3px;\n background-color: #fff;\n box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);\n}\n@media (min-width: 768px) {\n .view-4 .listing__container.view-4 {\n margin-bottom: 6px;\n }\n}\n@media (min-width: 768px) and (orientation: landscape) {\n .view-4 .listing__container.view-4 {\n height: 207px;\n }\n}\n@media (min-width: 992px) {\n .view-4 .listing__container.view-4 {\n height: 286px;\n margin-bottom: 16px;\n }\n}\n.view-4 .listing__container .listing__photo {\n position: relative;\n vertical-align: top;\n display: inline-block;\n overflow: hidden;\n}\n.view-4 .listing__container .listing__photo .card__vip {\n position: absolute;\n z-index: 2;\n top: 10px;\n line-height: 1;\n margin-bottom: 10px;\n padding: 6px 10px;\n color: #fff;\n border-radius: 0 2px 2px 0;\n text-align: left;\n background: #FFB300 !important;\n}\n.view-4 .listing__container .listing__photo .card__vip h4 {\n color: #fff;\n font-size: 16px;\n font-weight: 600;\n margin: 0;\n line-height: 1;\n}\n.view-4 .listing__container .listing__detail {\n width: 100%;\n display: inline-block;\n vertical-align: top;\n}\n.view-4 .listing__container .listing__detail .title {\n font-size: 14px;\n padding: 0 8px;\n display: flex;\n display: -ms-flexbox;\n /* TWEENER - IE 10 */\n align-items: center;\n justify-content: flex-start;\n}\n.view-4 .listing__container .listing__detail .title .title__icon {\n margin-right: 4px;\n width: 16px;\n height: 16px;\n min-width: 16px;\n display: inline-block;\n}\n.view-4 .listing__container .listing__detail .title .title__text {\n line-height: 1.2;\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden;\n max-width: 100%;\n}\n.view-4 .listing__container .listing__detail .title .title__text .property-type {\n margin-right: 2px;\n}\n.view-4 .listing__container .listing__detail .listing__description--broker {\n padding: 8px;\n}\n.view-4 .listing__container .listing__detail .listing__description--broker .broker-property-badge {\n text-align: center;\n background: #0a2542;\n background-image: linear-gradient(120deg, #0a2542 0%, #07376b 100%);\n color: #fff;\n padding: 5px 2px;\n border-radius: 4px;\n min-width: 62px;\n max-width: 74px;\n}\n.view-4 .listing__container .listing__detail .listing__description--broker .broker-property-badge span {\n display: block;\n line-height: 1;\n}\n.view-4 .listing__container .listing__detail .listing__description--broker .broker-property-badge .property-num {\n font-size: 20px;\n font-weight: 600;\n margin-bottom: 2px;\n}\n.view-4 .listing__container .listing__detail .listing__description--broker .broker-property-badge .property-title {\n font-size: 12px;\n font-weight: 400;\n}\n.view-4 .listing__container .listing__detail .listing__description--broker h2 {\n color: #0a2542;\n font-weight: 600;\n margin: 0;\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden;\n max-width: 100%;\n}\n.view-4 .listing__container .listing__detail .listing__description--broker h3 {\n font-size: 14px;\n display: block;\n line-height: 1;\n min-height: 15px;\n color: #243342;\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden;\n max-width: 100%;\n}\n.view-4 .listing__container .listing__detail .listing__description--broker a {\n text-align: right;\n text-transform: none;\n text-decoration: none;\n font-weight: 600;\n font-size: 14px;\n}\n.view-4 .listing__container .listing__detail .listing__description--broker a i {\n font-size: 10px;\n}\n.view-4 .listing__container .listing__detail .listing__description--broker p {\n margin: 0;\n}\n.view-4 .listing__container .listing__detail .listing__contact {\n position: relative;\n z-index: 1000;\n}\n.view-4 .listing__container .listing__detail .listing__contact .contact__section {\n display: flex;\n display: -ms-flexbox;\n /* TWEENER - IE 10 */\n align-items: center;\n justify-content: space-between;\n padding: 8px;\n}\n.view-4 .listing__container .listing__detail .listing__contact .contact__section a {\n height: 36px;\n line-height: 2;\n border-radius: 3px;\n padding: 0;\n text-align: center;\n width: 50%;\n}\n.view-4 .listing__container .listing__detail .listing__contact .contact__section .btn-accent-outline {\n
1color: #0a2542;\n border-color: rgba(10, 37, 66, 0.08);\n margin-right: 8px;\n}\n.view-4 .listing__container .listing__detail .listing__contact .contact__section .btn-accent-outline:hover {\n text-decoration: none;\n color: #0a2542;\n background: rgba(10, 37, 66, 0.04);\n}\n.view-4 .listing__container.view-4 .listing__photo {\n position: relative;\n width: 100%;\n height: 170px;\n border-radius: 3px 3px 0 0;\n}\n.view-4 .listing__container.view-4 .listing__photo .broker-photo {\n position: absolute;\n text-align: center;\n left: 50%;\n right: 0;\n bottom: 0;\n top: 50%;\n transform: translate(-50%, -50%);\n width: 60%;\n}\n.view-4 .listing__container.view-4 .listing__detail .listing__title {\n padding-top: 8px;\n}\n.view-4 .listing__container.view-4 .listing__detail .listing__description--broker {\n border-top: 1px solid #e9e9e9;\n padding-bottom: 0;\n display: flex;\n display: -ms-flexbox;\n /* TWEENER - IE 10 */\n align-items: flex-start;\n justify-content: space-between;\n}\n.view-4 .listing__container.view-4 .listing__detail .listing__description--broker h2 {\n font-size: 1em;\n min-height: 18px;\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden;\n max-width: 178px;\n}\n.view-4 .listing__container.view-4 .listing__detail .listing__description--broker p {\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden;\n max-width: 178px;\n min-height: 15px;\n margin: 0;\n line-height: 1;\n font-size: 12px;\n color: #0a2542;\n}\n.view-4 .listing__container.view-4 .listing__detail .listing__description--broker .card__title {\n width: 60%;\n}\n.view-4 .selected .listing__container:before {\n content: "";\n position: absolute;\n width: 100%;\n height: 100%;\n background: #0a2542;\n z-index: 999;\n opacity: 0.04;\n}'],encapsulation:2,changeDetection:0}),t})();var at=n("/MV/");const st=["listItems"];function ct(t,e){if(1&t&&R.Rb(0,"trovimap-locality-breadcrumb",26),2&t){const t=R.ic();R.qc("internalSource",!0)("currentLocation",t.currentBrokerSearchInput.locationModel)("routeName",t.currentBrokerSearchInput.filters.routeName)}}function lt(t,e){if(1&t){const t=R.Xb();R.Wb(0,"button",27),R.ec("click",(function(){return R.Jc(t),R.ic().findByName("")})),R.Tc(1,"\n "),R.hc(),R.Wb(2,"svg",28),R.Rb(3,"use",29),R.Vb(),R.Tc(4,"\n "),R.Vb()}}function ht(t,e){1&t&&(R.hc(),R.gc(),R.Wb(0,"div",30),R.Tc(1,"\n "),R.Wb(2,"div"),R.Tc(3,"\n "),R.Rb(4,"p",31),R.Tc(5,"\n "),R.Wb(6,"p"),R.Tc(7),R.jc(8,"translate"),R.Vb(),R.Tc(9,"\n "),R.Wb(10,"ul"),R.Tc(11,"\n "),R.Rb(12,"li",32),R.Tc(13,"\n "),R.Tc(14,"\n "),R.Rb(15,"li",33),R.Tc(16,"\n "),R.Rb(17,"li",34),R.Tc(18,"\n "),R.Vb(),R.Tc(19,"\n "),R.Tc(20,"\n "),R.Vb(),R.Tc(21,"\n "),R.Vb()),2&t&&(R.Db(7),R.Vc("",R.kc(8,1,"searchRight.tryAdjustSearch"),":"))}function pt(t,e){1&t&&(R.Wb(0,"div"),R.Tc(1,"\n "),R.Tc(2,"\n "),R.Wb(3,"div",39),R.Tc(4,"\n "),R.Rb(5,"div",40),R.Tc(6,"\n "),R.Wb(7,"div",41),R.Tc(8,"\n "),R.Wb(9,"div",42),R.Tc(10,"\n "),R.Rb(11,"div",43),R.Tc(12,"\n "),R.Rb(13,"div",44),R.Tc(14,"\n "),R.Rb(15,"div",45),R.Tc(16,"\n "),R.Rb(17,"div",46),R.Tc(18,"\n "),R.Rb(19,"div",47),R.Tc(20,"\n "),R.Rb(21,"div",48),R.Tc(22,"\n "),R.Rb(23,"div",49),R.Tc(24,"\n "),R.Rb(25,"div",50),R.Tc(26,"\n "),R.Rb(27,"div",51),R.Tc(28,"\n "),R.Rb(29,"div",52),R.Tc(30,"\n "),R.Rb(31,"div",53),R.Tc(32,"\n "),R.Rb(33,"div",54),R.Tc(34,"\n "),R.Rb(35,"div",55),R.Tc(36,"\n "),R.Vb(),R.Tc(37,"\n "),R.Vb(),R.Tc(38,"\n "),R.Vb(),R.Tc(39,"\n "),R.Vb())}function dt(t,e){if(1&t){const t=R.Xb();R.Wb(0,"div",56),R.ec("mouseenter",(function(e){R.Jc(t);const n=R.ic().$implicit;return R.ic(2).mouseEnter(e,n.broker)}))("click",(function(){R.Jc(t);const e=R.ic().$implicit;return R.ic(2).selectItem(e.broker)})),R.Tc(1,"\n "),R.Tc(2,"\n "),R.Rb(3,"trovimap-broker-card",57),R.Tc(4,"\n "),R.Vb()}if(2&t){const t=R.ic().$implicit,e=R.ic(2);R.Hb("selected",e.selectedIdItem===t.broker.Id),R.Db(3),R.qc("viewClass","view-4")("broker",t.broker)}}const bt=function(t,e,n,o,i){return{top:t,left:e,width:n,height:o,position:i}};function gt(t,e){if(1&t&&(R.Wb(0,"div",36),R.Tc(1,"\n "),R.Rc(2,pt,40,0,"div",37),R.Tc(3,"\n "),R.Rc(4,dt,5,4,"div",38),R.Tc(5,"\n "),R.Vb()),2&t){const t=e.$implicit;R.qc("ngStyle",R.Bc(3,bt,t.top,t.left,t.width,t.height,t.position)),R.Db(2),R.qc("ngIf",!t.broker),R.Db(2),R.qc("ngIf",t.broker)}}function mt(t,e){if(1&t&&(R.Wb(0,"div"),R.Tc(1,"\n "),R.Tc(2,"\n "),R.Rc(3,gt,6,9,"div",35),R.Tc(4,"\n "),R.Vb()),2&t){const t=e.$implicit,n=R.ic();R.Db(3),R.qc("ngForOf",null==n.listPages[t]?null:n.listPages[t].brokers)}}const ut=function(t,e){return{currentPage:t,lastPage:e}};function _t(t,e){if(1&t){const t=R.Xb();R.Wb(0,"div",58),R.Tc(1,"\n "),R.Wb(2,"div",59),R.Tc(3,"\n "),R.Rb(4,"p",60),R.Tc(5,"\n "),R.Vb(),R.Tc(6,"\n "),R.Wb(7,"trovimap-pagination-template",61),R.ec("ngModelChange",(function(e){return R.Jc(t),R.ic().currentPage=e}))("pageChanged",(function(e){return R.Jc(t),R.ic().pageChanged(e)})),R.Tc(8,"\n\n "),R.Vb(),R.Tc(9,"\n "),R.Vb()}if(2&t){const t=R.ic();R.Db(4),R.qc("translateParams",R.yc(8,ut,t.currentPage,t.totalPages)),R.Db(3),R.qc("totalItems",t.totalListBrokers)("itemsPerPage",t.pageSize)("ngModel",t.currentPage)("maxSize",5)("boundaryLinks",!0)("paginationTemplate","desktop")("canonicalUrl",t.canonicalUrl)}}function ft(t,e){if(1&t){const t=R.Xb();R.Wb(0,"trovimap-pagination-template",62),R.ec("pageChanged",(function(e){return R.Jc(t),R.ic().pageChanged(e)}))("ngModelChange",(function(e){return R.Jc(t),R.ic().currentPage=e})),R.Tc(1,"\n "),R.Vb()}if(2&t){const t=R.ic();R.qc("totalItems",t.totalListBrokers)("itemsPerPage",t.pageSize)("ngModel",t.currentPage)("boundaryLinks",!1)("maxSize",1)("paginationTemplate","mobile")("canonicalUrl",t.canonicalUrl)}}class kt{constructor(t,e,n,o,i,r,a,s){this.broker=t,this.id="virtual_placeholder"+e*n,this.left=i,this.width=r,this.height=a,this.page=e,s?(this.top="0px",this.position="relative",this.height="inherit"):(this.top=o,this.position="absolute")}}class vt{constructor(){this.brokers=new Array}}let xt=(()=>{class t{constructor(t,e,n,o,i,r,a,s,l,h,p,d,m,u,_,f){this.router=t,this.brokerSearchService=e,this.pmf=n,this.commonService=o,this.propertyService=i,this.changeDetRef=r,this.seoService=a,this.parsingService=s,this.translateNotifier=l,this.renderer=h,this.translate=p,this.activatedRoute=d,this.analyticService=m,this.searchResultsService=u,this.brokerModelFactory=_,this.seoExtService=f,this.brokerSelectedChanged=new R.n,this.totalBrokers=new R.n,this.totalPolygonBrokers=new R.n,this.keywordFilter="",this.enableChangePage=!0,this.enableGrid=!1,this.show=!0,this.goToPage=new b.a,this.goToItemPosition=new b.a,this.callerId="LIST",this.currentIDSearchPerformed=0,this.listPages=new Object,this.totalListBrokers=0,this.totalPages=0,this.pageLoaded=new Array,this.pageAsked=new Array,this.pageStackIndex=[],this.max_pages_to_hold=12,this.pageSize=20,this.itemHeight=412,this.itemsPerRow=1,this.itemHeightView1=22,this.itemHeightView2=38,this.viewSelected=4,this.disablePagination=!1,this.listPages_backup=new Object,this.pageLoaded_backup=new Array,this.pageAsked_backup=new Array,this.pageStackIndex_backup=[],this.totalListBrokers_backup=0,this.totalPages_backup=0,this.currentPage_backup=0,this.brokersJsonLdAdded=0,this.pageTitle$=new b.a,this.disableOrdering=!0,this.isSmartphone=this.commonService.isSmartphone(),this.isTablet=this.commonService.isTablet(),this.viewSelected=this.brokerSearchService.defaultViewSelected,this.setRowHeight(),this.commonService.isBrowser()||(this.isSSR=!0),this.langLoaded$=this.translateNotifier.langLoaded$.subscribe(t=>{t&&(this.language=this.translate.currentLang)}),this.combineLangPageTitle$=Object(g.a)(this.translateNotifier.langLoaded$,this.pageTitle$).subscribe(t=>{t[0]&&(this.pageTitle=this.seoExtService.getListBrokersTitle(t[1]?this.currentBrokerSearchInput.locationModel:void 0))}),this.currentAction$=this.brokerSearchService.currentAction$.subscribe(t=>
1{if(t.callerId!==this.callerId){const e=Object(c.a)(this.currentBrokerSearchInput);switch(this.currentBrokerSearchInput=Object(c.a)(t.brokerSearchInput),t.action){case O.a.NEW_SEARCH:this.resetBackup(),this.newSearch(!0);break;case O.a.SHOW_BOUNDS:case O.a.HIDE_BOUNDS_AND_REMOVE_VIP:e.filters.showBounds!==t.brokerSearchInput.filters.showBounds&&(this.searchResultsService.resetWindowScroll(),this._goneToItemPosition=void 0,this.resetPages()),this.newSearch();break;case O.a.MOVED_MAP:this.resetBackup(),t.brokerSearchInput.filters.inPolygons?this.searchResultsService.checkPolygonsAreInsideBoundsMapbox(t.brokerSearchInput.filters.inPolygons,t.brokerSearchInput.filters.viewport)?this.previousViewportIsNotInsideBounds&&(this.previousViewportIsNotInsideBounds=!1,this._goneToItemPosition=void 0,this.searchResultsService.resetWindowScroll(),this.resetPages()):(this.previousViewportIsNotInsideBounds=!0,this._goneToItemPosition=void 0,this.searchResultsService.resetWindowScroll(),this.resetPages()):t.brokerSearchInput.filters.showBounds?this.searchResultsService.checkBoundsIsInside(t.brokerSearchInput.locationModel.sqrLatLon,t.brokerSearchInput.filters.viewport)?this.previousViewportIsNotInsideBounds&&(this.previousViewportIsNotInsideBounds=!1,this._goneToItemPosition=void 0,this.searchResultsService.resetWindowScroll(),this.resetPages()):(this.previousViewportIsNotInsideBounds=!0,this._goneToItemPosition=void 0,this.searchResultsService.resetWindowScroll(),this.resetPages()):(this._goneToItemPosition=void 0,this.searchResultsService.resetWindowScroll(),this.resetPages()),this.newSearch();break;case O.a.SELECT_ITEM:this._searchItem(t.message.broker.Id).catch(t=>{});break;case O.a.SELECT_ITEM_IN_NEW_BOUNDS:this.searchResultsService.resetWindowScroll(),this._goneToItemPosition=void 0,this.resetPages(),this._searchItem(t.message.broker.Id).catch(t=>{});break;case O.a.SELECT_ITEM_IN_VIEWPORT:Object(U.a)(e.filters.viewport,t.brokerSearchInput.filters.viewport)||(this._goneToItemPosition=void 0,this.resetPages()),this._searchItem(t.message.broker.Id).catch(t=>{});break;case O.a.SHOW_LIST:t.message?(this.show=!0,setTimeout(()=>{this.searchResultsService.goToWindowScrolled(),this._goneToItemPosition&&(this.goToItemPosition.next(this._goneToItemPosition),this._goneToItemPosition=void 0)})):(this.show=!1,this._goneToItemPosition=void 0,this.searchResultsService.saveWindowScroll(window.scrollY)),this.changeDetRef.markForCheck();break;case O.a.ZOOM_OUT_AND_HIDE_BOUNDS:case O.a.ZOOM_OUT_HIDE_BOUNDS_AND_REMOVE_VIP:this._goneToItemPosition=void 0,this.searchResultsService.resetWindowScroll(),this.resetPages(),this.newSearch()}}else this.currentBrokerSearchInput=Object(c.a)(t.brokerSearchInput)})}ngOnInit(){this.windowSize$=this.commonService.$windowSize.pipe(Object(h.a)(50)).subscribe(t=>{this.isSmartphone=this.commonService.isSmartphone(),this.isTablet=this.commonService.isTablet(),this.setRowHeight(),this.repositionItems(),this.changeDetRef.markForCheck()})}ngOnChanges(t){t.enable&&t.enable.currentValue&&(this.currentBrokerSearchInput=Object(c.a)(this.brokerSearchService.currentBrokerSearchInput),this.newSearch(!0))}newSearch(t){if(this.pageTitle$.next(this.currentBrokerSearchInput.filters.showBounds&&!this.currentBrokerSearchInput.filters.inPolygons),this.enableGrid=!1,t&&this.resetPages(),this.listPagesEntries||this.currentIDSearchPerformed++,this.currentBrokerSearchInput.totalBrokers>0){const t=this.currentBrokerSearchInput.filters.page||1,e=new vt;let n=t-1;this.isSSR&&(n=0);for(let o=0;o<this.currentBrokerSearchInput.brokerFound.length;o++){const i=this.setItemsPosition(n,o),r=this.brokerModelFactory.create(this.currentBrokerSearchInput.brokerFound[o]);e.brokers.push(new kt(r,t,o,i.top,i.left,i.width,i.height,this.isSSR))}this.addPage(t,e),this.totalListBrokers=this.currentBrokerSearchInput.totalBrokers,this.disablePagination=!0,this.totalPages=Math.ceil(this.totalListBrokers/this.pageSize),this.disableOrdering=!1,this.brokerSearchService.currentBrokerSearchInput.totalBrokers=void 0,this.brokerSearchService.currentBrokerSearchInput.brokerFound=void 0,setTimeout(()=>{let e;this.currentPage=t,this.currentBrokerSearchInput&&this.currentBrokerSearchInput.locationModel&&(e=this.currentBrokerSearchInput.locationModel),this.canonicalUrl=this.seoService.seoPaginationTags(t,this.totalPages,e,this.activatedRoute.snapshot.params),this.goToPage.next(t),this.changeDetRef.markForCheck(),setTimeout(()=>{this.enableGrid=!0,this.disablePagination=!1,this.changeDetRef.markForCheck()},0)},0)}else{const t=this.currentBrokerSearchInput.filters.page||1;this.askPage(t).then(e=>{setTimeout(()=>{let e;this.currentPage=t,this.totalPages=Math.ceil(this.totalListBrokers/this.pageSize),this.currentBrokerSearchInput&&this.currentBrokerSearchInput.locationModel&&(e=this.currentBrokerSearchInput.locationModel),this.canonicalUrl=this.seoService.seoPaginationTags(t,this.totalPages,e,this.activatedRoute.snapshot.params),this.goToPage.next(t),this.enableGrid=!0,this.changeDetRef.markForCheck()},0)}).catch(t=>{this.enableGrid=!0,this.changeDetRef.markForCheck()})}}
1askPage(t){return new Promise((e,n)=>{const o=t,i=this.currentIDSearchPerformed;if(this.pageLoaded[o]||this.pageAsked[o])n(1);else{this.pageAsked[o]=!0;const t=Object(c.a)(this.currentBrokerSearchInput);t.filters.page=o;const r=new vt;let a=o-1;this.commonService.isBrowser()||(a=0);for(let e=0;e<this.pageSize;e++){const t=this.setItemsPosition(a,e);r.brokers.push(new kt(void 0,o,e,t.top,t.left,t.width,t.height,this.isSSR))}this.listPages[o]=r,this.listPagesEntries=Object.keys(this.listPages),this.changeDetRef.markForCheck();let s=this.brokerSearchService.getESQuery(t);this.commonService.isBrowser()&&(s=this.brokerSearchService.getESQuery(t,{searchInViewPort:!this.currentBrokerSearchInput.filters.showBounds,searchInPolygons:!!this.currentBrokerSearchInput.filters.inPolygons})),this.brokersFromES$=this.brokerSearchService.getPropertiesFromES(s).subscribe(t=>{if(this.currentIDSearchPerformed===i){if(this.totalListBrokers=t.total,this.currentBrokerSearchInput.filters.inPolygons?this.totalPolygonBrokers.emit(this.totalListBrokers):this.totalBrokers.emit(this.totalListBrokers),t.total&&t.total>0)for(let e=0;e<t.brokers.length;e++)this.listPages[o].brokers[e].broker=this.brokerModelFactory.create(t.brokers[e]);for(let t=this.listPages[o].brokers.length-1;t>-1;t--)this.listPages[o].brokers[t].broker||this.listPages[o].brokers.splice(t,1);this.listPagesEntries=Object.keys(this.listPages),this.pageLoaded[o]=!0,this._addPageIntoStack(o),this.disableOrdering=!1,e(0)}else n(3)},t=>{this.pageAsked[o]=!1,delete this.listPages[o],this.listPagesEntries=Object.keys(this.listPages),this.changeDetRef.markForCheck(),n(2)})}})}setItemsPosition(t,e){return{top:(t*this.pageSize*this.itemHeight+Math.round(e-e%this.itemsPerRow)*this.itemHeight)/this.itemsPerRow+"px",left:100/this.itemsPerRow*(e%this.itemsPerRow)+"%",width:100/this.itemsPerRow+"%",height:this.itemHeight+"px"}}setRowHeight(){this.itemHeight=304,this.itemsPerRow=this.commonService.isSmallDesktop()||this.commonService.isDesktop()||this.commonService.isLargeDesktop()||this.commonService.isTablet()&&this.commonService.isLandscape()?2:1}repositionItems(){for(const t of this.listPagesEntries)if(this.listPages[t].brokers)for(let e=0;e<this.listPages[t].brokers.length;e++){const n=this.setItemsPosition(t-1,e);this.listPages[t].brokers[e].top=n.top,this.listPages[t].brokers[e].left=n.left,this.listPages[t].brokers[e].width=n.width,this.listPages[t].brokers[e].height=n.height}}scrollAction(t){this.askPage(t.page).then(e=>{t.nextpage?this.askPage(t.page+1).catch(t=>z.a):t.prevpage&&this.askPage(t.page-1).catch(t=>z.a)}).catch(e=>{1===e&&(t.nextpage?this.askPage(t.page+1).catch(t=>z.a):t.prevpage&&this.askPage(t.page-1).catch(t=>z.a))})}currentPageListener(t){this.currentPage=t,this.disablePagination=!0,clearTimeout(this.currentPageListenerTimeout),this.currentPageListenerTimeout=setTimeout(()=>{1===t&&(t=void 0),setTimeout(()=>this.disablePagination=!1,0),this.enableChangePage&&(this.enableChangePage=!1,this.router.navigate([],{queryParamsHandling:"merge",replaceUrl:!0,queryParams:{page:t}}).then(()=>this.enableChangePage=!0))},50)}pageChanged(t){this.disablePagination||(this.goToPage.next(t.page),this.askPage(t.page).cat
1ch(t=>z.a))}_searchItem(t){return new Promise((e,n)=>{let o,i;if(this.listPagesEntries)for(const r of this.listPagesEntries)for(let e=0;e<this.listPages[r].brokers.length;e++)if(this.listPages[r].brokers[e].broker&&this.listPages[r].brokers[e].broker.Id===t){o=this.listPages[r].brokers[e].broker,i=(r-1)*this.pageSize+e;break}if(o)this.selectItem(o),this.goToItemPosition.next(i),this._goneToItemPosition=i,e(0);else{this.listPagesEntries||this.currentIDSearchPerformed++;const o=this.currentIDSearchPerformed;this.selectItem(null);const i=t;this.searchPageByBrokerFromES$&&this.searchPageByBrokerFromES$.unsubscribe(),this.pageTitle$.next(this.currentBrokerSearchInput.filters.showBounds&&!this.currentBrokerSearchInput.filters.inPolygons);const r=Object(c.a)(this.currentBrokerSearchInput);r.filters.id=t;const a=this.brokerSearchService.getESQuery(r,{searchInViewPort:!this.currentBrokerSearchInput.filters.showBounds,searchInPolygons:!!this.currentBrokerSearchInput.filters.inPolygons});this.searchPageByBrokerFromES$=this.brokerSearchService.getDataPagedByBrokerId(a).subscribe(t=>{if(!t.brokers||0===t.brokers.length)return void(this.currentBrokerSearchInput.filters.vip?e(0):n(1));if(this.currentIDSearchPerformed!==o)return void n(2);const r=t.page;let a;const s=new vt;let c=r-1;this.isSSR&&(c=0);for(let e=0;e<t.brokers.length;e++){const n=this.setItemsPosition(c,e),o=this.brokerModelFactory.create(t.brokers[e]);s.brokers.push(new kt(o,r,e,n.top,n.left,n.width,n.height,this.isSSR)),o.Id===i&&(a=o)}this.addPage(r,s),this.selectItem(a),this.totalListBrokers=t.total,this.currentBrokerSearchInput.filters.inPolygons?this.totalPolygonBrokers.emit(this.totalListBrokers):this.totalBrokers.emit(this.totalListBrokers),this.disablePagination=!0,this.totalPages=Math.ceil(this.totalListBrokers/this.pageSize),setTimeout(()=>{this.currentPage=r,this.goToItemPosition.next(t.index-1),this._goneToItemPosition=t.index-1,this.changeDetRef.markForCheck(),setTimeout(()=>{this.enableGrid=!0,this.disablePagination=!1,this.changeDetRef.markForCheck(),e(0)},0)},0)})}})}selectItem(t){t&&(this.selectedItem=t,this.selectedIdItem=t.Id,this.changeDetRef.markForCheck(),this.brokerSearchService.propagateAction(O.a.SELECT_ITEM,this.selectedItem,this.callerId))}mouseEnter(t,e){setTimeout(()=>this.brokerSearchService.propagateAction(O.a.HOVER_ITEM,e,this.callerId))}_addPageIntoStack(t){if(this._resizeList(t),this.pageStackIndex.push(t),this.brokersJsonLdAdded<1){this.brokersJsonLdAdded++;const t=[];for(const e of this.listPagesEntries)for(let n=0;n<this.listPages[e].brokers.length;n++)t.push(this.listPages[e].brokers[n].broker);this.brokersJsonLd=this.seoExtService.getBrokersJsonLd(t)}}_resizeList(t){if(this.pageStackIndex.length===this.max_pages_to_hold){let e=-1;for(let n=0;n<this.pageStackIndex.length;n++)if(n!==t&&n!==t-1&&n!==t+1&&n!==this.currentPage&&n!==this.currentPage-1&&n!==this.currentPage+1){e=n;break}if(-1!==e){const t=this.pageStackIndex[e];this.pageAsked[t]=!1,this.pageLoaded[t]=!1,this.pageStackIndex.splice(e,1),delete this.listPages[t],this.listPagesEntries=Object.keys(this.listPages)}}}addPage(t,e){this.pageAsked[t]=!0,this.pageLoaded[t]=!0,this.listPages[t]=e,this.listPagesEntries=Object.keys(this.listPages),this._addPageIntoStack(t)}resetPages(){this.listPages=new Object,this.listPagesEntries=void 0,this.pageLoaded=[],this.pageAsked=[],this.pageStackIndex=[]}resetBackup(){this.listPages_backup=new Object,this.listPagesEntries_backup=void 0,this.pageLoaded_backup=new Array,this.pageAsked_backup=new Array,this.pageStackIndex_backup=[],this.totalListBrokers_backup=0,this.totalPages_backup=0,this.currentPage_backup=0}hideBounds(){this.currentBrokerSearchInput.filters.showBounds=!1,this.currentBrokerSearchInput.filters.zoom>=16&&this.isSmartphone?(this.currentBrokerSearchInput.filters.zoom=this.currentBrokerSearchInput.filters.zoom-2,this.currentBrokerSearchInput.filters.vip?(delete this.currentBrokerSearchInput.filters.vip,this.brokerSearchService.placeFiltersOnQuerysting(),this.brokerSearchService.propagateAction(O.a.START_ZOOM_OUT_HIDE_BOUNDS_AND_REMOVE_VIP,this.currentBrokerSearchInput.filters,this.callerId)):this.brokerSearchService.propagateAction(O.a.START_ZOOM_OUT_AND_HIDE_BOUNDS,this.currentBrokerSearchInput.filters,this.callerId)):this.currentBrokerSearchInput.filters.vip?(delete this.currentBrokerSearchInput.filters.vip,this.newSearch(!0),this.brokerSearchService.placeFiltersOnQuerysting(),this.brokerSearchService.propagateAction(O.a.HIDE_BOUNDS_AND_REMOVE_VIP,this.currentBrokerSearchInput.filters,this.callerId)):(this.newSearch(!0),this.brokerSearchService.propagateAction(O.a.SHOW_BOUNDS,!1,this.callerId))}ngOnDestroy(){this.langLoaded$&&this.langLoaded$.unsubscribe(),this.windowSize$&&this.windowSize$.unsubscribe(),this.brokersFromES$&&this.brokersFromES$.unsubscribe(),this.searchPageByBrokerFromES$&&this.searchPageByBrokerFromES$.unsubscribe(),this.currentAction$&&this.currentAction$.unsubscribe(),this.combineLangPageTitle$&&this.combineLangPageTitle$.unsubscribe(),clearTimeout(this.currentPageListenerTimeout)}findByName(t){this.keywordFilter=t,this.currentBrokerSearchInput.filters.name=this.keywordFilter,this.disableOrdering=!0,this.newSearch(!0),this.brokerSearchService.propagateAction(O.a.NEW_SEARCH,{filters:this.currentBrokerSearchInput.filters},this.callerId)}findByNameOnKeyPress(t,e){13===t.keyCode&&this.findByName(e)}}return t.\u0275fac=function(e){return new(e||t)(R.Qb(a.i),R.Qb(O.c),R.Qb(k.a),R.Qb(f.a),R.Qb(q.a),R.Qb(R.h),R.Qb(v.a),R.Qb(_.a),R.Qb(S.a),R.Qb(R.F),R.Qb(E.f),R.Qb(a.a),R.Qb(T.a),R.Qb(I.d),R.Qb($.a),R.Qb(D.a))},t.\u0275cmp=R.Kb({type:t,selectors:[["trovimap-list-brokers"]],viewQuery:function(t,e){var n;1&t&&R.Pc(st,!0),2&t&&R.Fc(n=R.fc())&&(e.listItems=n.first)},inputs:{brokerSearchInput:"brokerSearchInput",enable:"enable"},outputs:{brokerSelectedChanged:"brokerSelectedChanged",totalBrokers:"totalBrokers",totalPolygonBrokers:"totalPolygonBrokers"},features:[R.Bb],decls:73,vars:25,consts:[[3,"json"],["small","true","blocker","true",3,"show"],[1,"container-list-wrapper"],[1,"sub-list-wrapper"],[1,"breadcrumb-nav"],[3,"internalSource","currentLocation","routeName",4,"ngIf"],[1,"header-section","broker-list-header"],[3,"innerHtml"],[1,"ordering"],[1,"search__broker"],[1,"input-group","trovimap-form"],["size","50","name","brokerName","id","brokerName","type","text","maxlength","200",1,"form-control",3,"placeholder","ngModel","keypress","ngModelChange"],["type","button","id","search_reset_button","type","button","class","clear-form","ng-click","grid.findByName('')",3,"click",4,"ngIf"],[1,"input-group-btn"],["type","button",1,"btn","trovimap-btn--primary","tp-inline--search",3,"click"],[1,"tp-icon--search"],[0,"xlink","href","assets/img/trovimap-svg.svg#tp-icon--search"],["class","instructions",4,"ngIf"],[1,"virtual-grid",3,"enable","goToPage","itemsNumber","itemHeight","itemsPerRow","pageSize","elementToHideDuringScroll","goToItemPosition","currentPageListener","scrollAction"],["list-items",""],["listItems",""],[4,"ngFor","ngForOf"],["class","hidden-xs col-sm-12 trovimap-pagination",4,"ngIf"],[1,"floating-pagination-mobile"],["mobilePagination",""],["class","mar-0",3,"totalItems","itemsPerPage","ngModel","boundaryLinks","maxSize","paginationTemplate","canonicalUrl","pageChanged","ngModelChange",4,"ngIf"],[3,"internalSource","currentLocation","routeName"],["type","button","id","search_reset_button","type","button","ng-click","grid.findByName('')",1,"clear-form",3,"click"],[1,"tp-icon--times-circle-solid"],[0,"xlink","href","assets/img/trovimap-svg.svg#tp-icon--times-circle-solid"],[1,"instructions"],["translate","searchRight.noResults",1,"title"],["translate","searchRight.changeFilters"],["translate","searchRight.searchForSpecific"],["translate","searchRight.uncheckBounds"],["class","listing view-4",3,"ngStyle",4,"ngFor","ngForOf"],[1,"listing","view-4",3,"ngStyle"],[4,"ngIf"],[3,"selected","mouseenter","click",4,"ngIf"],[1,"listing__card--placeholder"],[1,"card__foto"],[1,"card__text"],[1,"animated-content"],[1,"content-mask","header-top"],[1,"content-mask","header-left"],[1,"content-mask","header-right"],[1,"content-mask","header-bottom"],[1,"content-mask","subheader-bottom"],[1,"content-mask","content-top"],[1,"content-mask","content-first-end"],[1,"content-mask","content-second-line"],[1,"content-mask","content-second-end"],[1,"content-mask","content-third-line"],[1,"content-mask","content-third-end"],[1,"content-mask","content-fourth-line"],[1,"content-mask","content-fourth-end"],[3,"mouseenter","click"],[3,"viewClass","broker"],[1,"hidden-xs","col-sm-12","trovimap-pagination"],[1,"page-counter"],["translate","pagination.pageView",3,"translateParams"],["previousText","\u2039","nextText","\u203a","firstText","\xab","lastText","\xbb",3,"totalItems","itemsPerPage","ngModel","maxSize","boundaryLinks","paginationTemplate","canonicalUrl","ngModelChange","pageChanged"],[1,"mar-0",3,"totalItems","itemsPerPage","ngModel","boundaryLinks","maxSize","paginationTemplate","canonicalUrl","pageChanged","ngModelChange"]],template:function(t,e){if(1&t&&(R.Rb(0,"trovimap-json-ld",0),R.Tc(1,"\n"),R.Wb(2,"trovimap-loading-spinner",1),R.Tc(3,"\n"),R.Vb(),R.Tc(4,"\n\n"),R.Tc(5,"\n\n"),R.Wb(6,"div",2),R.Tc(7,"\n "),R.Wb(8,"div",3),R.Tc(9,"\n "),R.Wb(10,"div",4),R.Tc(11,"\n "),R.Rc(12,ct,1,3,"trovimap-locality-breadcrumb",5),R.Tc(13,"\n "),R.Vb(),R.Tc(14,"\n "),R.Wb(15,"div",6),R.Tc(16,"\n\n "),R.Rb(17,"h1",7),R.Tc(18,"\n\n "),R.Wb(19,"ul",8),R.Tc(20,"\n "),R.Wb(21,"div",9),R.Tc(22,"\n "),R.Wb(23,"div",10),R.Tc(24,"\n "),R.Wb(25,"input",11),R.ec("keypress",(function(t){return e.findByNameOnKeyPress(t,e.keywordFilter)}))("ngModelChange",(function(t){return e.keywordFilter=t})),R.jc(26,"translate"),R.Vb(),R.Tc(27,"\n "),R.Rc(28,lt,5,0,"button",12),R.Tc(29,"\n "),R.Wb(30,"span",13),R.Tc(31,"\n "),R.Wb(32,"button",14),R.ec("click",(function(){return e.findByName(e.keywordFilter)})),R.Tc(33,"\n "),R.hc(),R.Wb(34,"svg",15),R.Rb(35,"use",16),R.Vb(),R.Tc(36,"\n "),R.Vb(),R.Tc(37,"\n "),R.Vb(),R.Tc(38,"\n "),R.Vb(),R.Tc(39,"\n "),R.Vb(),R.Tc(40,"\n "),R.Vb(),R.Tc(41,"\n\n "),R.Rc(42,ht,22,3,"div",17),R.Tc(43,"\n "),R.Vb(),R.Tc(44,"\n\n\n "),R.gc(),R.Wb(45,"trovimap-virtual-grid",18),R.ec("currentPageListener",(function(t){return e.currentPageListener(t)}))("scrollAction",(function(t){return e.scrollAction(t)})),R.Tc(46,"\n\n\n "),R.Tc(47,"\n "),R.Wb(48,"div",19,20),R.Tc(50,"\n "),R.Wb(51,"div"),R.Tc(52,"\n "),R.Rc(53,mt,5,1,"div",21),R.Tc(54,"\n "),R.Vb(),R.Tc(55,"\n\n "),R.Vb(),R.Tc(56,"\n "),R.Tc(57,"\n "),R.Vb(),R.Tc(58,"\n\n\n "),R.Wb(59,"div"),R.Tc(60,"\n "),R.Rc(61,_t,10,11,"div",22),R.Tc(62,"\n "),R.Tc(63,"\n "),R.Wb(64,"div",23,24),R.Tc(66,"\n "),R.Rc(67,ft,2,7,"trovimap-pagination-template",25),R.Tc(68,"\n "),R.Vb(),R.Tc(69,"\n "),R.Vb(),R.Tc(70,"\n "),R.Vb(),R.Tc(71,"\n"),R.Vb(),R.Tc(72,"\n")),2&t){const t=R.Gc(65);R.qc("json",e.brokersJsonLd),R.Db(2),R.qc("show",!e.currentBrokerSearchInput),R.Db(4),R.Qc("display",e.show?"flex":"none"),R.Db(6),R.qc("ngIf",e.currentBrokerSearchInput),R.Db(5),R.qc("innerHtml",e.pageTitle,R.Kc),R.Db(8),R.rc("placeholder",R.kc(26,23,"brokerSearch.writeAName")),R.qc("ngModel",e.keywordFilter),R.Db(3),R.qc("ngIf",e.keywordFilter.length>0||""!==e.keywordFilter),R.Db(14),R.qc("ngIf",e.totalPages<=0&&e.enableGrid),R.Db(3),R.Qc("display",e.totalPages<=0&&e.enableGrid?"none":"block"),R.qc("enable",e.enableGrid)("goToPage",e.goToPage)("itemsNumber",e.totalListBrokers)("itemHeight",e.itemHeight)("itemsPerRow",e.itemsPerRow)("pageSize",e.pageSize)("elementToHideDuringScroll",t)("goToItemPosition",e.goToItemPosition),R.Db(8),R.qc("ngForOf",e.listPagesEntries),R.Db(8),R.qc("ngIf",e.totalPages>0),R.Db(6),R.qc("ngIf",e.totalPages>0)}},directives:[j.a,Q.a,o.t,i.d,H.b,i.p,i.u,i.x,Y.a,o.s,Z.a,E.b,o.w,rt,at.a],pipes:[E.e],styles:['/* Font Style Base */\n/*Website Font Colors*/\n/*Buttons Color*/\n/* Layout Colors */\n/* Button color */\n/* Dashboard */\n/* CMA ON DEMAND */\n/* PIPELINE */\n/* Priority */\n/* Alerts */\n/*social colors*/\n/*modal colors:*/\n/*Carou
1sel*/\n/*trovi-contactos*/\n/*Form colors*/\n/* Forms and inputs */\n/* Priority */\n/* BANNERS */\n/* DROP AREAS */\n/* Mixins */\n/* Basic Responsive Breakpoints */\n/* Extra Responsive Breakpoints */\n/* CMA Breakpoints */\n.trovimap-form button {\n padding: 4px 12px;\n border-radius: 4px;\n border: 1px solid #dfdfdf;\n color: #0a2542;\n font-size: 14px;\n height: 35px;\n}\n.trovimap-form button:focus, .trovimap-form button:hover {\n outline: none !important;\n border: 1px solid #0a2542 !important;\n}\n.trovimap-form select {\n width: 100%;\n border-radius: 4px;\n height: 35px;\n font-size: 14px;\n text-indent: 6px;\n line-height: 1;\n border: 1px solid #dfdfdf;\n -webkit-appearance: none;\n -moz-appearance: none;\n background: url("/../assets/img/caret-down.png") 0 0 no-repeat;\n background-position: calc(100% - 10px);\n background-size: 8px;\n background-color: #fff;\n}\n.trovimap-form select:hover, .trovimap-form select:focus {\n outline: none !important;\n border: 1px solid #0a2542;\n box-shadow: none;\n}\n.breadcrumb-nav {\n height: 32px;\n line-height: 31px;\n white-space: nowrap;\n position: relative;\n width: 100%;\n background-color: #fff;\n border-bottom: 1px solid #e5e5e5;\n}\n@media (min-width: 768px) {\n .container-list-wrapper {\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n width: 100%;\n display: flex;\n flex-direction: column;\n }\n}\nul.ordering {\n margin: 0;\n list-style: none;\n padding: 0px;\n}\nul.ordering .search__broker .trovimap-form .clear-form {\n position: absolute;\n right: 45px;\n top: 1px;\n height: 33px;\n z-index: 1040;\n background: #fff;\n border: 0;\n color: rgba(10, 37, 66, 0.4);\n}\nul.ordering .search__broker .trovimap-form .clear-form:hover {\n background: transparent;\n border: none !important;\n}\nul.ordering .search__broker .trovimap-form .trovimap-btn--primary {\n margin-top: 0;\n margin-bottom: 0;\n}\nul.ordering .search__broker .trovimap-form .tp-inline--search {\n color: #fff;\n border: 1px solid #0a2542;\n}\nul.ordering .search__broker .trovimap-form .tp-inline--search:hover {\n background: #113e6e;\n}\n.sub-list-wrapper {\n width: 100%;\n}\n@media (min-width: 768px) {\n .sub-list-wrapper {\n border-left: 1px solid #b9b9b9;\n flex-grow: 1;\n display: flex;\n flex-direction: column;\n min-height: 0;\n }\n}\n.sub-list-wrapper .broker-list-header {\n border-bottom: 1px solid #b9b9b9;\n padding: 8px 15px 8px;\n}\n.sub-list-wrapper .virtual-grid {\n height: 100%;\n display: block;\n background-color: #f7f7f7;\n padding-bottom: 40px;\n flex-grow: 1;\n min-height: 0;\n}\n@media (min-width: 768px) {\n .sub-list-wrapper .virtual-grid {\n padding-left: 0px;\n padding-right: 0px;\n padding-top: 0px;\n padding-bottom: 0;\n }\n}\n@media (min-width: 768px) {\n .sub-list-wrapper .virtual-grid {\n overflow: auto;\n height: 1px;\n }\n}\n.sub-list-wrapper .trovimap-btn--primary {\n margin-bottom: 100px;\n margin-top: 24px;\n}\n.listings {\n position: relative;\n min-height: 100%;\n background-color: #f7f7f7;\n}\n.listings .listing.view-4 {\n padding: 16px 16px 0;\n}\n@media (min-width: 992px) {\n .listings .listing.view-4:nth-child(odd) {\n padding-right: 8px;\n }\n .listings .listing.view-4:nth-child(even) {\n padding-left: 8px;\n }\n}\n.listings .listing .selected {\n background: #f7f7f7;\n}\n@-webkit-keyframes ListingCardPlaceHolder {\n 0% {\n opacity: 0.5;\n }\n 100% {\n opacity: 1;\n }\n}\n@keyframes ListingCardPlaceHolder {\n 0% {\n opacity: 0.5;\n }\n 100% {\n opacity: 1;\n }\n}\n.listing__card--placeholder {\n background: #fff;\n border-radius: 2px;\n box-shadow: 0px 0px 0px 1px #ececec;\n overflow: hidden;\n display: block;\n}\n.listing__card--placeholder .card__foto {\n height: 204px;\n border-bottom: 1px solid #f7f7f7;\n text-align: center;\n background: url("/../../assets/img/broker-default--sidebar.jpg") center center no-repeat;\n background-size: contain;\n -webkit-animation: ListingCardPlaceHolder 0.65s infinite alternate;\n animation: ListingCardPlaceHolder 0.65s infinite alternate;\n}\n.listing__card--placeholder .card__foto img {\n max-width: 100%;\n height: 100%;\n}\n.listing__card--placeholder .card__text {\n padding: 8px;\n height: 84px;\n}\n.listing__card--placeholder .card__text .animated-content {\n position: relative;\n height: 100%;\n -webkit-animation-duration: 1.5s;\n animation-duration: 1.5s;\n -webkit-animation-fill-mode: forwards;\n animation-fill-mode: forwards;\n -webkit-animation-iteration-count: infinite;\n animation-iteration-count: infinite;\n -webkit-animation-timing-function: linear;\n animation-timing-function: linear;\n -webkit-animation-name: ListingCardPlaceHolder;\n animation-name: ListingCardPlaceHolder;\n background: #e7e9ec;\n -webkit-animation: ListingCardPlaceHolder 0.65s infinite alternate;\n animation: ListingCardPlaceHolder 0.65s infinite alternate;\n}\n.listing__card--placeholder .card__text .animated-content .content-mask {\n background: #fff;\n position: absolute;\n}\n.listing__card--placeholder .card__text .animated-content .content-mask.header-top, .listing__card--placeholder .card__text .animated-content .content-mask.header-bottom {\n top: 0;\n left: 30px;\n right: 0;\n height: 8px;\n}\n.listing__card--placeholder .card__text .animated-content .content-mask.header-bottom {\n top: 18px;\n height: 10px;\n}\n.listing__card--placeholder .card__text .animated-content .content-mask.header-left, .listing__card--placeholder .card__text .animated-content .content-mask.header-right {\n top: 8px;\n left: 30px;\n height: 10px;\n width: 10px;\n}\n.listing__card--placeholder .card__text .animated-content .content-mask.header-right {\n width: auto;\n left: 200px;\n right: 0;\n}\n.listing__card--placeholder .card__text .animated-content .content-mask.subheader-bottom {\n left: 0px;\n right: 0;\n top: 28px;\n height: 10px;\n}\n.listing__card--placeholder .card__text .animated-content .content-mask.content-second-line, .listing__card--placeholder .card__text .animated-content .content-mask.content-third-line, .listing__card--placeholder .card__text .animated-content .content-mask.content-first-end {\n height: 20px;\n top: 32px;\n left: 0;\n right: 0;\n}\n.listing__card--placeholder .card__text .animated-content .content-mask.content-second-line {\n top: 66px;\n height: 20px;\n}\n.listing__card--placeholder .card__text .animated-content .content-mask.content-fourth-end {\n width: auto;
1\n left: calc(100% - 52%);\n right: calc(100% - 52%);\n top: 36px;\n height: 30px;\n}\n.listing__card--placeholder .card__text .animated-content .content-mask.content-top, .listing__card--placeholder .card__text .animated-content .content-mask.content-first-end, .listing__card--placeholder .card__text .animated-content .content-mask.content-second-end, .listing__card--placeholder .card__text .animated-content .content-mask.content-third-line, .listing__card--placeholder .card__text .animated-content .content-mask.content-third-line, .listing__card--placeholder .card__text .animated-content .content-mask.content-third-end, .listing__card--placeholder .card__text .animated-content .content-mask.content-fourth-line {\n display: none;\n visibility: hidden;\n}\n.trovimap-pagination {\n background-color: #f7f7f7;\n border-top: 1px solid #b9b9b9;\n padding: 0 15px;\n display: flex;\n justify-content: space-between;\n align-items: center;\n}\n.trovimap-pagination .page-counter {\n display: inline-block;\n}\n.trovimap-pagination .page-counter p {\n color: #8b92a2;\n font-size: 14px;\n margin: 0;\n line-height: 45px;\n}\n.floating-pagination-mobile {\n position: fixed;\n bottom: 50px;\n z-index: 999;\n left: 0;\n right: 0;\n text-align: center;\n transition: bottom 0.3s linear;\n margin: auto;\n width: -webkit-fit-content;\n width: -moz-fit-content;\n width: fit-content;\n}\n@media (min-width: 768px) {\n .floating-pagination-mobile {\n display: none;\n }\n}\n.floating-pagination-mobile.paginator--hide {\n transition: none;\n bottom: -100px;\n}\n.trovimap-table-search-results {\n width: 100%;\n margin-bottom: 0px;\n display: block;\n}\n.trovimap-table-search-results .trovimap-table-tbody-search-results.table-content {\n height: 100%;\n display: block;\n}\n.trovimap-table-search-results .trovimap-table-tbody-search-results.table-content .table-row {\n background-color: #fff;\n}\n.trovimap-table-search-results .trovimap-table-tbody-search-results.table-content .table-row:hover {\n background-color: #f7f7f7;\n}\n.trovimap-table-search-results .trovimap-table-tbody-search-results.table-content .table-row.selected {\n background-color: #e6e9ec;\n}\n.trovimap-table-search-results .trovimap-table-tbody-search-results.table-content .table-row td {\n padding: 9px 5px;\n float: left;\n text-align: center;\n line-height: 1.4;\n font-size: 14px;\n}\n.trovimap-table-search-results .trovimap-table-tbody-search-results.table-content > div > div:nth-child(even) > tbody > tr {\n background-color: #eee;\n}\n.view-1 {\n width: 245px;\n height: 100%;\n}\n@media (min-width: 1200px) {\n .view-1 {\n width: 320px;\n }\n}\n.view-1 .trovimap-table-search-results .trovimap-table-tbody-search-results.table-content td {\n padding: 2px 5px;\n height: 22px;\n}\n.instructions {\n padding: 16px 0;\n}\n.instructions .title {\n color: #0a2542;\n font-size: 24px;\n font-weight: 600;\n}\n.instructions ul {\n padding-left: 25px;\n}\n/*.table-section {\n display: none;\n @include desktop {\n display: block;\n position: static;\n border-top: 1px solid $divider-color;\n top: 397px;\n bottom: 0;\n height: 100%;\n width: 615px;\n font-size: 12px;\n }\n\n .table-head {\n position: static;\n table {\n width: 615px;\n tbody {\n tr {\n th {\n width: 1%;\n }\n }\n }\n }\n }*/\n.hidden-scrollbar {\n height: calc(100vh - 470px);\n overflow: auto;\n}\n.table-content {\n margin-top: 0;\n float: left;\n width: 100%;\n}\n.table-content .table-row {\n width: 100%;\n}\n.table-content .table-row td {\n border-bottom: 1px solid #ccc;\n width: 10%;\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden;\n padding: 10px 5px;\n cursor: pointer;\n height: 38px;\n}\n.table-footer {\n width: 614px;\n}\n.table-footer table {\n width: 616px;\n}'],encapsulation:2,changeDetection:0}),t})();var St=n("Ev65"),wt=n("b6E/"),Pt=n("cFLI");function Mt(t,e){1&t&&(R.Wb(0,"span",22),R.Tc(1),R.jc(2,"translate"),R.Vb()),2&t&&(R.Db(1),R.Vc("\n ",R.kc(2,1,"map.availableProperties"),"\n "))}function Ct(t,e){1&t&&(R.Wb(0,"span",22),R.Tc(1),R.jc(2,"translate"),R.Vb()),2&t&&(R.Db(1),R.Vc("\n ",R.kc(2,1,"map.availableProperty"),"\n "))}function Tt(t,e){1&t&&(R.Wb(0,"div",23),R.Tc(1,"\n "),R.Wb(2,"span"),R.hc(),R.Wb(3,"svg",24),R.Tc(4,"\n "),R.Rb(5,"use",25),R.Tc(6,"\n "),R.Vb(),R.Tc(7," VIP "),R.Vb(),R.Tc(8,"\n "),R.Vb())}function yt(t,e){if(1&t&&R.Rb(0,"img",26),2&t){const t=R.ic(2);R.qc("src",t.broker.LogoUrl,R.Mc)}}function It(t,e){if(1&t&&R.Rb(0,"img",26),2&t){const t=R.ic(2);R.qc("src",t.broker.DefaultLogo,R.Mc)}}const Ot=function(t){return[t]};function Bt(t,e){if(1&t){const t=R.Xb();R.Wb(0,"div",1),R.Tc(1,"\n "),R.Tc(2,"\n "),R.Tc(3,"\n "),R.Wb(4,"div",2),R.Tc(5,"\n "),R.Wb(6,"div",3),R.Tc(7,"\n "),R.Wb(8,"span",4),R.Tc(9),R.Vb(),R.Tc(10,"\n "),R.Rc(11,Mt,3,3,"span",5),R.Tc(12,"\n "),R.Rc(13,Ct,3,3,"span",5),R.Tc(14,"\n "),R.Vb(),R.Tc(15,"\n "),R.Wb(16,"div",6),R.Tc(17,"\n "),R.Wb(18,"h3",7),R.Tc(19),R.Vb(),R.Tc(20,"\n "),R.Wb(21,"div",8),R.Tc(22,"\n "),R.Wb(23,"span",7),R.Tc(24),R.Vb(),R.Tc(25,"\n "),R.Vb(),R.Tc(26,"\n "),R.Vb(),R.Tc(27,"\n "),R.Wb(28,"span",9),R.ec("click",(function(e){return R.Jc(t),R.ic().closeInfoWindow(e)})),R.Tc(29,"\n "),R.hc(),R.Wb(30,"svg",10),R.Tc(31,"\n "),R.Rb(32,"use",11),R.Tc(33,"\n "),R.Vb(),R.Tc(34,"\n "),R.Vb(),R.Tc(35,"\n "),R.Vb(),R.Tc(36,"\n "),R.gc(),R.Wb(37,"div",12),R.Tc(38,"\n "),R.Rc(39,Tt,9,0,"div",13),R.Tc(40,"\n "),R.Rc(41,yt,1,1,"img",14),R.Tc(42,"\n "),R.Rc(43,It,1,1,"img",14),R.Tc(44,"\n "),R.Vb(),R.Tc(45,"\n\n "),R.Wb(46,"div",15),R.Tc(47,"\n "),R.Wb(48,"a",16),R.Tc(49,"\n "),R.hc(),R.Wb(50,"svg",17),R.Tc(51,"\n "),R.Rb(52,"use",18),R.Tc(53,"\n "),R.Vb(),R.Tc(54),R.jc(55,"translate"),R.Vb(),R.Tc(56,"\n "),R.gc(),R.Wb(57,"a",19),R.ec("click",(function(){return R.Jc(t),R.ic().showModalContactForm()})),R.Tc(58,"\n "),R.hc(),R.Wb(59,"svg",20),R.Tc(60,"\n "),R.Rb(61,"use",21),R.Tc(62,"\n "),R.Vb(),R.Tc(63),R.jc(64,"translate"),R.Vb(),R.Tc(65,"\n "),R.Vb(),R.Tc(66,"\n"),R.Vb()}if(2&t){const t=R.ic();R.Db(9),R.Uc(t.broker.PropertiesNumberFormatted),R.Db(2),R.qc("ngIf",!t.broker.PropertiesNumber||0==t.broker.PropertiesNumber||t.broker.PropertiesNumber>1),R.Db(2),R.qc("ngIf",1==t.broker.PropertiesNumber),R.Db(6),R.Uc(t.broker.Name),R.Db(5),R.Uc(t.broker.Address),R.Db(15),R.qc("ngIf",!0===t.broker.Vip),R.Db(2),R.qc("ngIf",t.broker.LogoUrl&&""!==t.broker.LogoUrl),R.Db(2),R.qc("ngIf",!t.broker.LogoUrl||""===t.broker.LogoUrl),R.Db(5),R.qc("routerLink",R.xc(15,Ot,t.broker.TrovimapUrl)),R.Db(6),R.Vc(" ",R.kc(55,11,"propertyComments.viewMore"),"\n "),R.Db(9),R.Vc(" ",R.kc(64,13,"smallContact.contact"),"\n ")}}let Lt=(()=>{class t{constructor(t,e,n,o,i){this.translateNotifier=t,this.translate=e,this.modalService=n,this.bsModalService=o,this.commonService=i,this.closeCard=new R.n}ngOnInit(){this.langLoaded$=this.translateNotifier.langLoaded$.subscribe(t=>{t&&(this.language=this.translate.currentLang)})}showModalContactForm(){this.bsModalRef=this.modalService.show(this.bsModalService,G.a,{class:"trovimap__modal contact__modal",animated:!0,ignoreBackdropClick:!0,initialState:{broker:this.broker,isModal:!0}})}closeInfoWindow(t){this.closeCard.emit(t)}ngOnDestroy(){this.langLoaded$.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(R.Qb(S.a),R.Qb(E.f),R.Qb(x.a),R.Qb(u.b),R.Qb(f.a))},t.\u0275cmp=R.Kb({type:t,selectors:[["trovimap-broker-info-window"]],inputs:{broker:"broker"},outputs:{closeCard:"closeCard"},decls:1,vars:1,consts:[["trovimap-window-adjust","","class","listing__card--map",4,"ngIf"],["trovimap-window-adjust","",1,"listing__card--map"],[1,"card__text"],[1,"broker-property-badge"],[1,"property-num"],["class","property-title",4,"ngIf"],[1,"title"],[1,"ng-scope"],[1,"title-details"],[1,"close",3,"click"],[1,"tp-icon--delete"],[0,"xlink","href","assets/img/trovimap-svg.svg#tp-icon--delete"],[1,"card__foto"],["class","card__vip",4,"ngIf"],["loading","lazy","class","broker-photo","alt","",3,"src",4,"ngIf"],[1,"card__buttons"],["target","_blank",1,"trovimap-btn--link",3,"routerLink"],[1,"tp-icon--external-link"],[0,"xlink","href","assets/img/trovimap-svg.svg#tp-icon--external-link"],[1,"trovimap-btn--link",3,"click"],[1,"tp-icon--envelope"],[0,"xlink","href","assets/img/trovimap-svg.svg#tp-icon--envelope"],[1,"property-title"],[1,"card__vip"],[1,"tp-icon--star"],[0,"xlink","href","assets/img/trovimap-svg.svg#tp-icon--star"],["loading","lazy","alt","",1,"broker-photo",3,"src"]],template:function(t,e){1&t&&R.Rc(0,Bt,67,17,"div",0),2&t&&R.qc("ngIf",e.broker)},directives:[o.t,a.l],pipes:[E.e],styles:['.si-content-wrapper[_ngcontent-%COMP%] {\n position: absolute;\n border: 0 !important;\n}\n.listing__card--map[_ngcontent-%COMP%] {\n font-family: "Source Sans Pro", sans-serif;\n margin: 0 auto;\n margin-bottom: 20px;\n position: relative;\n}\n@media (min-width: 768px) {\n .listing__card--map[_ngcontent-%COMP%] {\n width: 230px;\n margin: 0;\n }\n}\n.listing__card--map[_ngcontent-%COMP%] .flag-opportunity[_ngcontent-%COMP%] {\n height: 16px;\n font-size: 12px;\n line-height: 15px;\n background: #ED701C;\n text-align: center;\n text-transform: uppercase;\n font-weight: 600;\n color: #fff;\n border-top-left-radius: 4px;\n border-top-right-radius: 4px;\n}\n.listing__card--map[_ngcontent-%COMP%] .flag-new[_ngcontent-%COMP%] {\n height: 16px;\n background: #65CF40;\n padding: 0 6px;\n border-radius: 3px;\n line-height: 14px;\n margin-right: 4px;\n}\n.listing__card--map[_ngcontent-%COMP%] .flag-new[_ngcontent-%COMP%] span[_ngcontent-%COMP%] {\n font-size: 11px;\n font-weight: 600;\n text-transform: uppercase;\n color: #fff;\n letter-spacing: 0.4px;\n}\n.listing__card--map[_ngcontent-%COMP%] a[_ngcontent-%COMP%] {\n color: #243342;\n}\n.listing__card--map[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover {\n text-decoration: none;\n}\n.listing__card--map[_ngcontent-%COMP%] .close[_ngcontent-%COMP%] {\n opacity: 1;\n font-size: 14px;\n color: #c7c7c7;\n}\n.listing__card--map[_ngcontent-%COMP%] .card__foto[_ngcontent-%COMP%] {\n position: relative;\n height: 158px;\n width: 100%;\n text-align: center;\n border-top-left-radius: 2px;\n border-top-right-radius: 2px;\n overflow: hidden;\n}\n.listing__card--map[_ngcontent-%COMP%] .card__foto[_ngcontent-%COMP%] .card__price[_ngcontent-%COMP%] {\n position: absolute;\n z-index: 2;\n top: 10px;\n line-height: 1;\n padding: 6px 10px;\n background: rgba(10, 37, 66, 0.9);\n color: #fff;\n border-radius: 0 2px 2px 0;\n text-align: left;\n margin: 0;\n}\n.listing__card--map[_ngcontent-%COMP%] .card__foto[_ngcontent-%COMP%] .card__price[_ngcontent-%COMP%] .total[_ngcontent-%COMP%] {\n display: block;\n color: #fff;\n font-size: 18px;\n font-weight: 600;\n margin: 0;\n line-height: 1;\n margin-bottom: 3px;\n}\n.listing__card--map[_ngcontent-%COMP%] .card__foto[_ngcontent-%COMP%] .card__price[_ngcontent-%COMP%] .square-meter[_ngcontent-%COMP%] {\n font-size: 12px;\n font-weight: 400;\n display: block;\n line-height: 1;\n}\n.listing__card--map[_ngcontent-%COMP%] .card__foto[_ngcontent-%COMP%] .card__price.price--reduced[_ngcontent-%COMP%] .price-sale[_ngcontent-%COMP%] svg[_ngcontent-%COMP%] {\n width: 14px;\n height: 14px;\n top: 0px;\n}\n.listing__card--map[_ngcontent-%COMP%] .card__foto[_ngcontent-%COMP%] .card__price.price--reduced[_ngcontent-%COMP%] .price-sale[_ngcontent-%COMP%] span[_ngcontent-%COMP%] {\n display: inline-block;\n color: rgba(255, 255, 255, 0.6);\n text-decoration: line-through;\n}\n.listing__card--map[_ngcontent-%COMP%] .card__foto[_ngcontent-%COMP%] .fav-icon--mobile[_ngcontent-%COMP%] {\n font-size: 24px;\n display: inline-block;\n position: absolute;\n right: 0;\n z-index: 3;\n color: #fff;\n top: 14px;\n right: 16px;\n}\n.listing__card--map[_ngcontent-%COMP%] .card__foto[_ngcontent-%COMP%] .has-virtual-tour[_ngcontent-%COMP%] {\n position: absolute;\n top: 10px;\n right: 48px;\n z-index: 2;\n width: 38px;\n padding: 4px;\n border-radius: 50%;\n background: rgba(0, 0, 0, 0.4);\n text-align: center;\n}\n.listing__card--map[_ngcontent-%COMP%] .card__foto[_ngcontent-%COMP%] .has-virtual-tour[_ngcontent-%COMP%] .link__tour[_ngcontent-%COMP%] {\n color: #fff;\n vertical-align: middle;\n}\n.listing__card--map[_ngcontent-%COMP%] .card__foto[_ngcontent-%COMP%] .has-virtual-tour[_ngcontent-%COMP%] .icon__tour[_ngcontent-%COMP%] {\n width: 26px;
1\n height: 26px;\n -webkit-filter: drop-shadow(1px 1px 1px rgba(0, 0, 0, 0.5));\n filter: drop-shadow(1px 1px 1px rgba(0, 0, 0, 0.5));\n}\n.listing__card--map[_ngcontent-%COMP%] .card__foto[_ngcontent-%COMP%] .img-photo[_ngcontent-%COMP%], .listing__card--map[_ngcontent-%COMP%] .card__foto[_ngcontent-%COMP%] .img-loader[_ngcontent-%COMP%] {\n width: 100%;\n height: 100%;\n -o-object-fit: cover;\n object-fit: cover;\n top: 0;\n left: 0;\n position: absolute;\n}\n.listing__card--map[_ngcontent-%COMP%] .card__foto[_ngcontent-%COMP%] .img-photo[_ngcontent-%COMP%] {\n opacity: 0;\n}\n.listing__card--map[_ngcontent-%COMP%] .card__text[_ngcontent-%COMP%] {\n padding: 6px;\n border-bottom: 1px solid #dfdfdf;\n line-height: 1;\n}\n.listing__card--map[_ngcontent-%COMP%] .card__text[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%] {\n display: inline-block;\n vertical-align: top;\n}\n.listing__card--map[_ngcontent-%COMP%] .card__text[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%] .new-property-icon[_ngcontent-%COMP%] {\n margin-right: 8px;\n width: 33px;\n height: 33px;\n display: inline-block;\n float: left;\n}\n.listing__card--map[_ngcontent-%COMP%] .card__text[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%] .new-property-icon.type-2[_ngcontent-%COMP%] {\n background: url("/assets/img/icons/sale-circle.svg") no-repeat;\n}\n.listing__card--map[_ngcontent-%COMP%] .card__text[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%] .new-property-icon.type-3[_ngcontent-%COMP%] {\n background: url("/assets/img/icons/rent-circle.svg") no-repeat;\n}\n.listing__card--map[_ngcontent-%COMP%] .card__text[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%] .new-property-icon.type-broker[_ngcontent-%COMP%] {\n background: url("/assets/img/icons/map/broker-selected.png") no-repeat;\n}\n.listing__card--map[_ngcontent-%COMP%] .card__text[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%] .new-property-icon.type-broker-vip[_ngcontent-%COMP%] {\n background: url("/assets/img/icons/map/broker-vip-selected.png") no-repeat;\n}\n.listing__card--map[_ngcontent-%COMP%] .card__text[_ngcontent-%COMP%] .title[_ngcontent-%COMP%] {\n display: inline-block;\n}\n.listing__card--map[_ngcontent-%COMP%] .card__text[_ngcontent-%COMP%] .title[_ngcontent-%COMP%] h3[_ngcontent-%COMP%] {\n font-size: 16px;\n text-align: left;\n color: #0a2542;\n line-height: 1;\n margin-bottom: 1px;\n min-height: 18px;\n font-weight: 600;\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden;\n max-width: 105px;\n}\n.listing__card--map[_ngcontent-%COMP%] .card__text[_ngcontent-%COMP%] .title[_ngcontent-%COMP%] .title-details[_ngcontent-%COMP%] {\n line-height: 1;\n}\n.listing__card--map[_ngcontent-%COMP%] .card__text[_ngcontent-%COMP%] .title[_ngcontent-%COMP%] .title-details[_ngcontent-%COMP%] span[_ngcontent-%COMP%] {\n font-size: 12px;\n display: inline-block;\n line-height: 14px;\n}\n.listing__card--map[_ngcontent-%COMP%] .card__text[_ngcontent-%COMP%] .title[_ngcontent-%COMP%] p[_ngcontent-%COMP%] {\n margin: 0;\n line-height: 1;\n font-size: 12px;\n color: #0a2542;\n}\n.listing__card--map[_ngcontent-%COMP%] .card__buttons[_ngcontent-%COMP%] {\n display: flex;\n display: -ms-flexbox;\n \n align-items: center;\n justify-content: space-between;\n}\n.listing__card--map[_ngcontent-%COMP%] .card__buttons[_ngcontent-%COMP%] .btn-flat[_ngcontent-%COMP%]:hover {\n background: #8cc13c;\n text-decoration: none;\n color: #0a2542;\n}\n.listing__card--map[_ngcontent-%COMP%] .card__buttons[_ngcontent-%COMP%] .btn-flat-outline[_ngcontent-%COMP%], .listing__card--map[_ngcontent-%COMP%] .card__buttons[_ngcontent-%COMP%] .trovimap-btn--star[_ngcontent-%COMP%] {\n background-color: #fff;\n color: #a3ce62;\n}\n.listing__card--map[_ngcontent-%COMP%] .card__buttons[_ngcontent-%COMP%] a[_ngcontent-%COMP%] {\n width: 50%;\n text-align: center;\n line-height: 35px;\n color: #8ab34b;\n \n}\n.listing__card--map[_ngcontent-%COMP%] .card__buttons[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:first-child {\n border-right: 1px solid #dfdfdf;\n}\n.listing__card--map[_ngcontent-%COMP%] .card__buttons[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover {\n
1color: #709a30;\n}\n.listing__card--map[_ngcontent-%COMP%] .card__buttons[_ngcontent-%COMP%] a.grid-contact[_ngcontent-%COMP%] {\n background-color: #a3ce62;\n}\n.listing__card--map[_ngcontent-%COMP%] .card__buttons[_ngcontent-%COMP%] a[_ngcontent-%COMP%] svg[_ngcontent-%COMP%] {\n vertical-align: middle;\n}\n.listing__card--map[_ngcontent-%COMP%] .card__buttons[_ngcontent-%COMP%] .trovimap-btn--star[_ngcontent-%COMP%] {\n width: 15%;\n}\n.listing__card--map[_ngcontent-%COMP%] .box-arrow[_ngcontent-%COMP%] {\n position: absolute;\n left: 0px;\n top: 0px;\n width: 16px;\n height: 20px;\n display: inline-block;\n}\n.listing__card--map[_ngcontent-%COMP%] .shadow-arrow[_ngcontent-%COMP%] {\n position: absolute;\n left: 0px;\n top: -14px;\n font-size: 48px;\n z-index: -2;\n color: transparent;\n text-shadow: -3px 0px 10px rgba(0, 0, 0, 0.5) !important;\n -webkit-filter: Shadow(Color=rgba(0, 0, 0, 0.5), Direction=130, Strength=1);\n filter: Shadow(Color=rgba(0, 0, 0, 0.5), Direction=130, Strength=1);\n \n}\n.listing__card--map.has-flag--opportunity[_ngcontent-%COMP%] .flag-opportunity[_ngcontent-%COMP%] {\n display: block;\n}\n.listing__card--map.has-flag--opportunity[_ngcontent-%COMP%] .card__text[_ngcontent-%COMP%], .listing__card--map.has-flag--opportunity[_ngcontent-%COMP%] .card__buttons[_ngcontent-%COMP%] {\n background-color: #FCE7D9 !important;\n}\n.listing__card--map.has-flag--new[_ngcontent-%COMP%] .flag-new[_ngcontent-%COMP%] {\n display: inline-block;\n visibility: visible;\n}\n.listing__card--map[_ngcontent-%COMP%] .close[_ngcontent-%COMP%] {\n opacity: 1;\n font-size: 16px;\n color: #c7c7c7;\n position: absolute;\n top: 4px;\n right: 3px;\n}\n.listing__card--map[_ngcontent-%COMP%] .broker-property-badge[_ngcontent-%COMP%] .property-title[_ngcontent-%COMP%] {\n font-size: 11px;\n}\n.listing__card--map[_ngcontent-%COMP%] .card__text[_ngcontent-%COMP%] {\n padding: 6px;\n border-bottom: 1px solid #e0e0e0;\n line-height: 1;\n display: flex;\n display: -ms-flexbox;\n \n align-items: center;\n justify-content: flex-start;\n}\n.listing__card--map[_ngcontent-%COMP%] .card__text[_ngcontent-%COMP%] .title[_ngcontent-%COMP%] {\n display: inline-block;\n margin-left: 8px;\n}\n.listing__card--map[_ngcontent-%COMP%] .card__text[_ngcontent-%COMP%] .title[_ngcontent-%COMP%] h3[_ngcontent-%COMP%] {\n font-size: 16px;\n text-align: left;\n color: #0a2542;\n line-height: 1;\n margin-bottom: 1px;\n min-height: 18px;\n font-weight: 600;\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden;\n max-width: 146px;\n}\n.listing__card--map[_ngcontent-%COMP%] .card__text[_ngcontent-%COMP%] .title[_ngcontent-%COMP%] .title-details[_ngcontent-%COMP%] {\n line-height: 1;\n}\n.listing__card--map[_ngcontent-%COMP%] .card__text[_ngcontent-%COMP%] .title[_ngcontent-%COMP%] .title-details[_ngcontent-%COMP%] span[_ngcontent-%COMP%] {\n font-size: 12px;\n display: inline-block;\n line-height: 14px;\n}\n.listing__card--map[_ngcontent-%COMP%] .card__text[_ngcontent-%COMP%] .title[_ngcontent-%COMP%] p[_ngcontent-%COMP%] {\n margin: 0;\n line-height: 1;\n font-size: 12px;\n color: #0a2542;\n}\n.listing__card--map[_ngcontent-%COMP%] .card__foto[_ngcontent-%COMP%] {\n border-bottom: 1px solid #e9e9e9;\n}\n.listing__card--map[_ngcontent-%COMP%] .card__foto[_ngcontent-%COMP%] .broker-photo[_ngcontent-%COMP%] {\n position: absolute;\n text-align: center;\n left: 50%;\n right: 0;\n bottom: 0;\n top: 50%;\n transform: translate(-50%, -50%);\n width: 60%;\n}\n.listing__card--map[_ngcontent-%COMP%] .card__foto[_ngcontent-%COMP%] .card__vip[_ngcontent-%COMP%] {\n position: absolute;\n z-index: 2;\n top: 10px;\n line-height: 1;\n margin-bottom: 10px;\n padding: 6px 10px;\n color: #fff;\n border-radius: 0 2px 2px 0;\n text-align: left;\n background: #FFB300 !important;\n}\n.listing__card--map[_ngcontent-%COMP%] .card__foto[_ngcontent-%COMP%] .card__vip[_ngcontent-%COMP%] h4[_ngcontent-%COMP%] {\n color: #fff;\n font-size: 16px;\n font-weight: 600;\n margin: 0;\n line-height: 1;\n}']}),t})();var Dt=n("mIPI"),Rt=n("sXtk"),Et=n("Ce1/"),Vt=n("8tcH"),Nt=n("Sfnw"),Wt=n("h2Cy");function At(t,e){1&t&&(R.Wb(0,"div",21),R.Tc(1,"\n "),R.hc(),R.Wb(2,"svg",22),R.Tc(3,"\n "),R.Rb(4,"use",23),R.Tc(5,"\n "),R.Vb(),R.Tc(6,"\n "),R.Vb())}function Ft(t,e){if(1&t&&R.Rb(0,"img",24),2&t){const t=R.ic();R.qc("src",t.broker.LogoUrl,R.Mc)}}function zt(t,e){if(1&t&&R.Rb(0,"img",24),2&t){const t=R.ic();R.qc("src",t.broker.DefaultLogo,R.Mc)}}function Ut(t,e){1&t&&(R.Wb(0,"span",25),R.Tc(1),R.jc(2,"translate"),R.Vb()),2&t&&(R.Db(1),R.Vc("\n ",R.kc(2,1,"map.availableProperties"),"\n "))}function qt(t,e){1&t&&(R.Wb(0,"span",25),R.Tc(1),R.jc(2,"translate"),R.Vb()),2&t&&(R.Db(1),R.Vc("\n ",R.kc(2,1,"map.availableProperty"),"\n "))}const $t=function(t){return[t]};let jt=(()=>{class t extends Lt{}return t.\u0275fac=function(e){return Qt(e||t)},t.\u0275cmp=R.Kb({type:t,selectors:[["trovimap-broker-info-window-mobile-2"]],features:[R.Ab],decls:64,vars:17,consts:[[1,"info-window-mobile"],[1,"close-button",3,"click"],[1,"tp-icon--delete"],[0,"xlink","href","assets/img/trovimap-svg.svg#tp-icon--delete"],[1,"info-window-mobile__photo"],["class","info-window-mobile__vip",4,"ngIf"],["loading","lazy","alt","",3,"src",4,"ngIf"],[1,"info-window-mobile__text"],[1,"main-section"],[1,"broker-property-badge"],[1,"property-num"],["class","property-title",4,"ngIf"],[1,"main-section__title"],[1,"new-property-type"],[1,"buttons"],["target","_blank",3,"routerLink"],[1,"tp-icon--external-link"],[0,"xlink","href","assets/img/trovimap-svg.svg#tp-icon--external-link"],[3,"click"],[1,"tp-icon--envelope"],[0,"xlink","href","assets/img/trovimap-svg.svg#tp-icon--envelope"],[1,"info-window-mobile__vip"],[1,"tp-icon--star"],[0,"xlink","href","assets/img/trovimap-svg.svg#tp-icon--star"],["loading","lazy","alt","",3,"src"],[1,"property-title"]],template:function(t,e){1&t&&(R.Tc(0,"\n\n"),R.Wb(1,"div",0),R.Tc(2,"\n "),R.Wb(3,"a",1),R.ec("click",(function(t){return e.closeInfoWindow(t)})),R.Tc(4,"\n "),R.hc(),R.Wb(5,"svg",2),R.Tc(6,"\n "),R.Rb(7,"use",3),R.Tc(8,"\n "),R.Vb(),R.Tc(9,"\n "),R.Vb(),R.Tc(10,"\n "),R.gc(),R.Wb(11,"div",4),R.Tc(12,"\n "),R.Rc(13,At,7,0,"div",5),R.Tc(14,"\n "),R.Rc(15,Ft,1,1,"img",6),R.Tc(16,"\n "),R.Rc(17,zt,1,1,"img",6),R.Tc(18,"\n "),R.Vb(),R.Tc(19,"\n "),R.Wb(20,"div",7),R.Tc(21,"\n "),R.Wb(22,"div",8),R.Tc(23,"\n "),R.Wb(24,"div",9),R.Tc(25,"\n "),R.Wb(26,"span",10),R.Tc(27),R.Vb(),R.Tc(28,"\n "),R.Rc(29,Ut,3,3,"span",11),R.Tc(30,"\n "),R.Rc(31,qt,3,3,"span",11),R.Tc(32,"\n "),R.Vb(),R.Tc(33,"\n "),R.Wb(34,"div",12),R.Tc(35,"\n "),R.Wb(36,"h2"),R.Tc(37),R.Vb(),R.Tc(38,"\n "),R.Wb(39,"span",13),R.Tc(40),R.Vb(),R.Tc(41,"\n "),R.Vb(),R.Tc(42,"\n "),R.Vb(),R.Tc(43,"\n\n "),R.Wb(44,"div",14),R.Tc(45,"\n "),R.Wb(46,"a",15),R.hc(),R.Wb(47,"svg",16),R.Tc(48,"\n "),R.Rb(49,"use",17),R.Tc(50,"\n "),R.Vb(),R.Tc(51),R.jc(52,"translate"),R.Vb(),R.Tc(53,"\n "),R.gc(),R.Wb(54,"a",18),R.ec("click",(function(){return e.showModalContactForm()})),R.hc(),R.Wb(55,"svg",19),R.Tc(56,"\n "),R.Rb(57,"use",20),R.Tc(58,"\n "),R.Vb(),R.Tc(59),R.jc(60,"translate"),R.Vb(),R.Tc(61,"\n "),R.Vb(),R.Tc(62,"\n "),R.Vb(),R.Tc(63,"\n"),R.Vb()),2&t&&(R.Db(13),R.qc("ngIf",!0===e.broker.Vip),R.Db(2),R.qc("ngIf",e.broker.LogoUrl&&""!==e.broker.LogoUrl),R.Db(2),R.qc("ngIf",!e.broker.LogoUrl||""===e.broker.LogoUrl),R.Db(10),R.Uc(e.broker.PropertiesNumberFormatted),R.Db(2),R.qc("ngIf",0==e.broker.PropertiesNumber||e.broker.PropertiesNumber>1),R.Db(2),R.qc("ngIf",1==e.broker.PropertiesNumber),R.Db(6),R.Uc(e.broker.Name),R.Db(3),R.Uc(e.broker.Address),R.Db(6),R.qc("routerLink",R.xc(15,$t,e.broker.TrovimapUrl)),R.Db(5),R.Uc(R.kc(52,11,"propertyComments.viewMore")),R.Db(8),R.Uc(R.kc(60,13,"smallContact.contact")))},directives:[o.t,a.l],pipes:[E.e],styles:[".info-window-mobile[_ngcontent-%COMP%] {\n display: flex;\n display: -ms-flexbox;\n \n align-items: center;\n justify-content: space-between;\n width: 100%;\n height: 90px;\n position: fixed;\n z-index: 1050;\n bottom: 40px;\n background-color: #fff;\n border-top: 1px solid #b9b9b9;\n}\n.info-window-mobile[_ngcontent-%COMP%] .close-button[_ngcontent-%COMP%] {\n position: absolute;\n right: 0;\n top: 0;\n color: #0a2542;\n width: 24px;\n height: 24px;\n text-align: center;\n text-decoration: none;\n}\n.info-window-mobile[_ngcontent-%COMP%] .close-button[_ngcontent-%COMP%] span[_ngcontent-%COMP%] {\n font-size: 14px;\n vertical-align: middle;\n}\n.info-window-mobile__photo[_ngcontent-%COMP%] {\n position: relative;\n height: 100%;\n width: 30%;\n overflow: hidden;\n text-align: center;\n border-right: 1px solid #e9e9e9;\n}\n.info-window-mobile__photo[_ngcontent-%COMP%] img[_ngcontent-%COMP%] {\n width: 100%;\n height: 100%;\n -o-object-fit: cover;\n object-fit: cover;\n top: 0;\n left: 0;\n position: absolute;\n}\n.info-window-mobile__photo[_ngcontent-%COMP%] .info-window-mobile__vip[_ngcontent-%COMP%] {\n position: absolute;\n z-index: 1;\n color: #fff;\n padding: 0 5px;\n font-size: 14px;\n background: #FFB300;\n text-align: left;\n}\n.info-window-mobile__text[_ngcontent-%COMP%] {\n width: 70%;\n padding: 8px;\n height: 100%;\n}\n.info-window-mobile__text[_ngcontent-%COMP%] .main-section[_ngcontent-%COMP%] {\n display: flex;\n display: -ms-flexbox;\n \n align-items: center;\n justify-content: flex-start;\n}\n.info-window-mobile__text[_ngcontent-%COMP%] .main-section[_ngcontent-%COMP%] .broker-property-badge[_ngcontent-%COMP%] {\n margin-right: 8px;\n}\n.info-window-mobile__text[_ngcontent-%COMP%] .main-section[_ngcontent-%COMP%] .broker-property-badge[_ngcontent-%COMP%] .property-num[_ng
1content-%COMP%] {\n font-size: 18px;\n}\n.info-window-mobile__text[_ngcontent-%COMP%] .main-section[_ngcontent-%COMP%] .broker-property-badge[_ngcontent-%COMP%] .property-title[_ngcontent-%COMP%] {\n font-size: 10px;\n}\n.info-window-mobile__text[_ngcontent-%COMP%] h2[_ngcontent-%COMP%] {\n font-size: 1em;\n text-align: left;\n color: #0a2542;\n font-weight: 600;\n line-height: 1;\n margin-bottom: 0px;\n min-height: 18px;\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden;\n max-width: 138px;\n}\n.info-window-mobile__text[_ngcontent-%COMP%] .new-property-type[_ngcontent-%COMP%] {\n font-size: 12px;\n display: block;\n line-height: 1;\n margin-bottom: 2px;\n color: #8b92a2;\n}\n.info-window-mobile__text[_ngcontent-%COMP%] .buttons[_ngcontent-%COMP%] {\n font-size: 16px;\n margin-top: 2px;\n}\n.info-window-mobile__text[_ngcontent-%COMP%] .buttons[_ngcontent-%COMP%] a[_ngcontent-%COMP%] {\n color: #a3ce62;\n margin-right: 8px;\n}\n.info-window-mobile__text[_ngcontent-%COMP%] .buttons[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:first-child {\n border-right: 1px solid #e9e9e9;\n padding-right: 8px;\n}\n.info-window-mobile__text[_ngcontent-%COMP%] .buttons[_ngcontent-%COMP%] a[_ngcontent-%COMP%] svg[_ngcontent-%COMP%] {\n margin-right: 3px;\n}"]}),t})();const Qt=R.Yb(jt),Ht=["hoverMarker"];function Yt(t,e){if(1&t&&(R.Wb(0,"div",8),R.Tc(1,"\n "),R.Wb(2,"trovimap-mapbox-zoom",9),R.Tc(3,"\n "),R.Vb(),R.Tc(4,"\n "),R.Vb()),2&t){const t=R.ic(3);R.Db(2),R.qc("mapControl",t.mapboxControl)}}function Zt(t,e){if(1&t&&(R.Wb(0,"div",8),R.Tc(1,"\n "),R.Wb(2,"trovimap-mapbox-type",10),R.Tc(3,"\n "),R.Vb(),R.Tc(4,"\n "),R.Vb()),2&t){const t=R.ic(3);R.Db(2),R.qc("mapControl",t.mapboxControl)("zoom",t.mapboxControl.getZoom())}}function Gt(t,e){if(1&t){const t=R.Xb();R.Wb(0,"div"),R.Tc(1,"\n "),R.Wb(2,"trovimap-broker-info-window-mobile-2",11),R.ec("closeCard",(function(e){return R.Jc(t),R.ic(3).closeInfoWindowMobile(e)})),R.Vb(),R.Tc(3,"\n "),R.Vb()}if(2&t){const t=R.ic(3);R.Qc("visibility",t.showInfoWindowMobile?"visible":"hidden"),R.Db(2),R.qc("broker",t.selectedBroker)}}function Kt(t,e){if(1&t&&(R.Wb(0,"div",3),R.Tc(1,"\n "),R.Rb(2,"div",4),R.Tc(3,"\n "),R.Wb(4,"div",5),R.Tc(5,"\n "),R.Rc(6,Yt,5,1,"div",6),R.Tc(7,"\n "),R.Rc(8,Zt,5,2,"div",6),R.Tc(9,"\n "),R.Vb(),R.Tc(10,"\n\n "),R.Rc(11,Gt,4,3,"div",7),R.Tc(12,"\n\n "),R.Vb()),2&t){const t=R.ic(2);R.Db(6),R.qc("ngIf",t.showMapboxControls),R.Db(2),R.qc("ngIf",t.showMapboxControls),R.Db(3),R.qc("ngIf",t.isSmartphone&&t.selectedBroker&&t.enableInfowWindowMobile)}}function Jt(t,e){if(1&t&&(R.Wb(0,"div",1),R.Tc(1,"\n\n "),R.Rc(2,Kt,13,3,"div",2),R.Tc(3,"\n"),R.Vb()),2&t){const t=R.ic();R.Db(2),R.qc("ngIf",t.showMapbox)}}let Xt=(()=>{class t{constructor(t,e,n,o,i,r,a,s,c,l,p,d,g,m,u,_,f,k){this.translateNotifier=t,this.translate=e,this.scriptLoader=n,this.commonService=o,this.changeDetRef=i,this.bsModalService=r,this.modalService=a,this.bmf=s,this.parsingService=c,this.searchService=l,this.brokerSearchService=p,this.ngZone=d,this.mapboxService=g,this.searchResultsService=m,this._resolver=u,this._injector=_,this.envService=f,this.countryService=k,this.totalViewportBrokers=new R.n,this.callerId="MAP",this.showInfoWindowMobile=!0,this.enableInfowWindowMobile=!1,this.changingMapDimensions=!1,this._observableSubscriptions=[],this.mapboxLoaded$=new St.a(!1),this.mapboxFirstIdleChange$=new b.a,this.mapboxIdleChange$=new St.a(!1),this.mapboxIdleChangeNewMapDimensions$=new b.a,this.drawnPolygonsArray=[],this.pushpinsFound$=new b.a,this._LOCATION_POLYGON_LAYER="location_polygon_layer",this._PUSHPINS_LAYER="es-broker",this.mapboxPushpinsLayer={id:this._PUSHPINS_LAYER,type:"symbol",source:{type:"geojson",data:{type:"FeatureCollection",features:[]}},layout:{}},this._POLYGON_PAINT_STYLE={"fill-antialias":!0,"fill-color":"#154b84","fill-outline-color":"#000000","fill-opacity":["step",["zoom"],.3,17,.2]},this.isSmartphone=this.commonService.isSmartphone(),this.windowSize$=this.commonService.$windowSize.pipe(Object(h.a)(50)).subscribe(t=>{this.isSmartphone=this.commonService.isSmartphone(),this.mapboxControl.resize()})}
1ngOnInit(){const t=this._resolver.resolveComponentFactory(Lt);this.brokerInfoWindowComponent=t.create(this._injector),this.langLoaded$=this.translateNotifier.langLoaded$.subscribe(t=>{}),this.combinePushpinsMapbox$=Object(g.a)(this.pushpinsFound$,this.mapboxIdleChange$).subscribe(t=>{t[1]&&(this.currentBrokerSearchInput.filters.inPolygons||this.createPushpins(t[0],this.mapboxPushpinsLayer))}),this.currentAction$=this.brokerSearchService.currentAction$.subscribe(t=>{if(t.callerId!==this.callerId){const n=Object(c.a)(this.currentBrokerSearchInput);this.currentBrokerSearchInput=Object(c.a)(t.brokerSearchInput);try{switch(t.action){case O.a.NEW_SEARCH:case O.a.HIDE_BOUNDS_AND_REMOVE_VIP:const e=this.searchFiltersIsChanged(n.filters,this.currentBrokerSearchInput.filters);this.zoom=this.currentBrokerSearchInput.filters.zoom,this.mapboxIdleChange$.pipe(Object(wt.a)()).subscribe(t=>{const e=this.mapboxService.getMapboxViewport(this.mapboxControl);this.currentBrokerSearchInput.filters.viewport=e}),this.mapboxControl.setZoom(this.zoom),this.newSearch({forceUpdateCartodbLocationLayer:e,forceMapChanged:!0});break;case O.a.SHOW_BOUNDS:this.showPolygonLayer(!!t.message);break;case O.a.SELECT_ITEM:this.showInfoWindow(t.message);break;case O.a.SHOW_LIST:this.showInfoWindowMobile=!t.message;break;case O.a.HOVER_ITEM:this.closeHoverMarker(),this.changeDetRef.detectChanges(),this.showHoverMarker(t.message);break;case O.a.START_ZOOM_OUT_AND_HIDE_BOUNDS:this.showPolygonLayer(!1),this.zoom===this.currentBrokerSearchInput.filters.zoom?this.brokerSearchService.propagateAction(O.a.ZOOM_OUT_AND_HIDE_BOUNDS,this.currentBrokerSearchInput.filters,this.callerId):(this.zoom=this.currentBrokerSearchInput.filters.zoom,this.changingMapDimensions=!0,this.mapboxIdleChange$.pipe(Object(wt.a)()).subscribe(t=>{const e=this.mapboxService.getMapboxViewport(this.mapboxControl);this.currentBrokerSearchInput.filters.viewport=e,this.brokerSearchService.propagateAction(I.a.ZOOM_OUT_AND_HIDE_BOUNDS,this.currentBrokerSearchInput.filters,this.callerId)}),this.mapboxControl.setZoom(this.zoom));break;case O.a.START_ZOOM_OUT_HIDE_BOUNDS_AND_REMOVE_VIP:this.showPolygonLayer(!1),this.zoom===this.currentBrokerSearchInput.filters.zoom?this.brokerSearchService.propagateAction(O.a.ZOOM_OUT_HIDE_BOUNDS_AND_REMOVE_VIP,this.currentBrokerSearchInput.filters,this.callerId):(this.zoom=this.currentBrokerSearchInput.filters.zoom,this.changingMapDimensions=!0,this.mapboxIdleChange$.pipe(Object(wt.a)()).subscribe(t=>{const e=this.mapboxService.getMapboxViewport(this.mapboxControl);this.currentBrokerSearchInput.filters.viewport=e,this.brokerSearchService.propagateAction(I.a.ZOOM_OUT_HIDE_BOUNDS_AND_REMOVE_VIP,this.currentBrokerSearchInput.filters,this.callerId)}),this.mapboxControl.setZoom(this.zoom))}}catch(e){console.log("catch error action",e)}}else this.currentBrokerSearchInput=Object(c.a)(t.brokerSearchInput),this.changeDetRef.markForCheck()})}ngOnChanges(t){t.enable&&t.enable.currentValue&&this.newSearch()}newSearch(t){this.currentBrokerSearchInput=Object(c.a)(this.brokerSearchService.currentBrokerSearchInput),this.zoom=this.currentBrokerSearchInput.filters.zoom,this.initMapbox$||this.initWhenMapboxReady(),this.windowLoadedMapbox$&&this.windowLoadedMapbox$.unsubscribe(),this.windowLoadedMapbox$=this.commonService.windowLoaded$.subscribe(e=>{if(e){const e=this.scriptLoader.loadMapbox("broker-search").subscribe(e=>{if(this.mapboxLoaded$.next(!0),this.mapboxControl)return this.mapboxControl.off("mousedown",this.mousedown_reference),this.mapboxControl.off("touchstart",this.mousedown_reference),this.mapboxControl.setMinZoom(6),this.mapboxControl.setMaxZoom(21),this.mapboxControl.scrollZoom.enable(),this.mapboxControl.dragPan.enable(),void(t.forceMapChanged||this.mapboxControl.easeTo({center:[this.currentBrokerSearchInput.locationModel.mapCenter.lon,this.currentBrokerSearchInput.locationModel.mapCenter.lat],zoom:this.zoom,animate:!0}));this.showMapbox=!0,this.ngZone.runOutsideAngular(()=>{setTimeout(()=>{mapboxgl.accessToken=this.envService.settings.mapbox_es_accessToken,this.mapboxControl=new mapboxgl.Map({container:"sb_map",style:this.envService.settings.mapbox_es_style,center:[this.currentBrokerSearchInput.locationModel.mapCenter.lon,this.currentBrokerSearchInput.locationModel.mapCenter.lat],zoom:this.zoom,minZoom:6,maxZoom:21,fadeDuration:100,dragRotate:!1,attributionControl:!1,trackResize:!1}).addControl(new mapboxgl.AttributionControl({compact:!0})),this.mapboxControl.touchZoomRotate.disableRotation(),this.mapboxControl.on("load",this.onMapboxReady.bind(this)),this.mapboxControl.on("moveend",this.onMapboxMoveEnd.bind(this)),this.mapboxControl.loadImage("assets/img/icons/map/broker.png",(t,e)=>{if(t)throw t;this.mapboxControl.addImage("broker-icon",e)}),this.mapboxControl.loadImage("assets/img/icons/map/broker-vip.png",(t,e)=>{if(t)throw t;this.mapboxControl.addImage("broker-vip-icon",e)}),this.mapboxControl.on("click",this._PUSHPINS_LAYER,this.pushpinFeatureClickEvent.bind(this));const t=this.mapboxService.getMapboxViewport(this.mapboxControl);this.getMapBrokerCount(t)})})});if(this._observableSubscriptions.push(e),t&&t.forceMapChanged){const t=this.mapboxService.getMapboxViewport(this.mapboxControl);this.getMapBrokerCount(t)}this.getPushpins(this.currentBrokerSearchInput.filters.viewport)}})}searchFiltersIsChanged(t,e){const n=["category","name","vip"];let o=!1;for(let i=0;i<n.length;i++)if("object"==typeof t[n[i]]){if(!Object(U.a)(t[n[i]],e[n[i]])){o=!0;break}}else if(t[n[i]]!==e[n[i]]){o=!0;break}return o}getMapBrokerCount(t){const e=Object(c.a)(this.currentBrokerSearchInput);e.filters.viewport=t,e.filters.zoom=this.zoom;const n=this.brokerSearchService.getESCountQueryNew(e,{searchInViewPort:!0});this.brokerSearchService.getMapBrokerCount(n).subscribe(t=>{t&&this.totalViewportBrokers.emit(t.count)})}
1addSelectedBrokerMarker(t,e){let n="assets/img/icons/map/broker-selected.png";t&&(n="assets/img/icons/map/broker-vip-selected.png");const o=document.createElement("div");o.className="marker",o.style.backgroundImage="url("+n+")",o.style.width="25px",o.style.height="30px",this.selectedBrokerMarker=new mapboxgl.Marker(o).setLngLat([e.longitude,e.latitude]).addTo(this.mapboxControl)}showHoverMarker(t){this.hoverBroker=t,this.closeHoverMarker();const e=document.createElement("div");e.className="pin-selected-property";const n=document.createElement("div");this.hoverMarkerCategory=this.hoverBroker.Vip?"-vip":"",n.className="pin-selected-property-pulse type-broker"+this.hoverMarkerCategory,e.appendChild(n),this.hoverMarker=new mapboxgl.Marker(e).setLngLat([this.hoverBroker.Location.longitude,this.hoverBroker.Location.latitude]).addTo(this.mapboxControl),clearTimeout(this.hoverMarkerTimeout),this.hoverMarkerTimeout=setTimeout(()=>{this.closeHoverMarker()},3e3)}closeHoverMarker(){this.hoverMarker&&this.hoverMarker.remove()}onMapboxReady(t){if(this.showMapboxControls=!0,this.changeDetRef.detectChanges(),this.mapboxLoaded$.next(!0),this.checkMovedViewport())return;const e=this.mapboxService.getMapboxViewport(this.mapboxControl),n=this.mapboxService.getMapboxCenter(this.mapboxControl);this.mapboxIdleChange$.getValue()||(this.mapboxIdleChange$.next(!0),this.mapboxFirstIdleChange$.next(!0),this.brokerSearchService.propagateAction(I.a.FIRST_IDLE_MAP,{mapCenter:n,viewport:e},this.callerId))}onMapboxMoveEnd(t){if(this.checkMovedViewport())return;const e=this.mapboxService.getMapboxViewport(this.mapboxControl),n=this.mapboxService.getMapboxCenter(this.mapboxControl);this.ngZone.run(()=>{Object(U.a)(this.currentBrokerSearchInput.filters.viewport,e)||this.brokerSearchService.propagateAction(I.a.MOVED_MAP,{viewport:e,zoom:this.zoom,mapCenter:n},this.callerId)})}pushpinFeatureClickEvent(t){this.mapboxControl.doubleClickZoom.disable();const e=t.features[0].properties;e.location={lat:t.features[0].geometry.coordinates[1],lon:t.features[0].geometry.coordinates[0]},this.pushpinFeatureClick(t,e),setTimeout(()=>{this.mapboxControl.doubleClickZoom.enable()})}initWhenMapboxReady(){this.initMapbox$=this.mapboxFirstIdleChange$.subscribe(t=>{this.createPolygonLayer(this.currentBrokerSearchInput.locationModel.Shape,{AdminArea2Id:this.currentBrokerSearchInput.locationModel.AdminArea2Id,LocalityId:this.currentBrokerSearchInput.locationModel.LocalityId,NeighborhoodId:this.currentBrokerSearchInput.locationModel.NeighborhoodId},!this.currentBrokerSearchInput.filters.showBounds)})}fromPolygonsToGeometries(t){const e=[];return t.forEach(t=>{e.push({type:"Polygon",coordinates:[t]})}),e}createPolygonLayer(t,e,n){if(this.currentBrokerSearchInput.locationModel.Shape)this.createMapboxPolygons(t,n);else{let t=!1;e.NeighborhoodId?(t=!0,this.locationPolygonLayerId=e.NeighborhoodId,this.locationPolygonLayerType="neighborhood",this.mapboxControl.getSource(this.locationPolygonLayerType)||this.mapboxControl.addSource("neighborhood",{type:"vector",url:this.envService.settings.mapbox_es_neighborhood})):e.LocalityId?(t=!0,this.locationPolygonLayerId=e.LocalityId,this.locationPolygonLayerType="locality",this.mapboxControl.getSource(this.locationPolygonLayerType)||this.mapboxControl.addSource("locality",{type:"vector",url:this.envService.settings.mapbox_es_locality})):e.AdminArea2Id&&(t=!0,this.locationPolygonLayerId=e.AdminArea2Id,this.locationPolygonLayerType="adminarea2",this.mapboxControl.getSource(this.locationPolygonLayerType)||this.mapboxControl.addSource(this.locationPolygonLayerType,{type:"vector",url:this.envService.settings.mapbox_es_adminarea2})),t&&this.addLocationPolygonLayer(n)}}addLocationPolygonLayer(t){let e=[],n="";"adminarea2"===this.locationPolygonLayerType?(e=["==","adminarea2_id",this.locationPolygonLayerId],n=this.countryService.mapSourceAdminArea2Id):"locality"===this.locationPolygonLayerType?(e=["==","locality_id",this.locationPolygonLayerId],n=this.countryService.mapSourceLocalityId):"neighborhood"===this.locationPolygonLayerType&&(e=["==","mid",this.locationPolygonLayerId],n=this.countryService.mapSourceMid),this.mapboxControl.getLayer(this._LOCATION_POLYGON_LAYER)&&this.mapboxControl.removeLayer(this._LOCATION_POLYGON_LAYER),this.locationPolygonLayer=this.mapboxControl.addLayer({id:this._LOCATION_POLYGON_LAYER,type:"fill",s
1ource:this.locationPolygonLayerType,"source-layer":n,filter:e,paint:this._POLYGON_PAINT_STYLE}),this.showPolygonLayer(!t)}createMapboxPolygons(t,e){const n=this.searchResultsService.multiPolygonToMapboxPolygons(t),o=this.fromPolygonsToGeometries(n);this.mapboxControl.getLayer(this._LOCATION_POLYGON_LAYER)&&(this.mapboxControl.removeLayer(this._LOCATION_POLYGON_LAYER),this.mapboxControl.removeSource(this._LOCATION_POLYGON_LAYER)),this.locationPolygonLayer=this.mapboxControl.addLayer({id:this._LOCATION_POLYGON_LAYER,type:"fill",source:{type:"geojson",data:{type:"Feature",geometry:{type:"GeometryCollection",geometries:o}}},paint:this._POLYGON_PAINT_STYLE}),this.showPolygonLayer(!e)}showPolygonLayer(t){this.locationPolygonLayer&&this.mapboxControl.setLayoutProperty(this._LOCATION_POLYGON_LAYER,"visibility",t?"visible":"none")}checkMovedViewport(){const t=this.mapboxService.getMapboxViewport(this.mapboxControl);return this.changingMapDimensions?(this.mapboxIdleChangeNewMapDimensions$.next(!0),this.changingMapDimensions=!1,this.getPushpins(t),this.getMapBrokerCount(t),!0):(this.zoom=this.mapboxControl.getZoom(),this.changeDetRef.detectChanges(),!Object(U.a)(this.currentBrokerSearchInput.filters.viewport,t)&&this.mapboxIdleChange$.getValue()&&(this.getPushpins(t),this.getMapBrokerCount(t)),!1)}showInfoWindow(t){this.selectedBroker&&this.selectedBroker.Id!==t.Id?(this.removeSelectedBrokerMarker(),this.addSelectedBrokerMarker(t.Vip,t.Location)):this.selectedBroker||this.addSelectedBrokerMarker(t.Vip,t.Location),this.selectedBroker=t,this.isSmartphone?(this.enableInfowWindowMobile=!0,this.changeDetRef.detectChanges()):this.mapboxInfoWindow?(this.brokerInfoWindowComponent.instance.broker=t,this.brokerInfoWindowComponent.changeDetectorRef.detectChanges(),this.mapboxInfoWindow.setLngLat([t.Location.longitude,t.Location.latitude]),this.mapboxInfoWindow.setDOMContent(this.brokerInfoWindowComponent.location.nativeElement),this.mapboxInfoWindow.isOpen()||this.mapboxInfoWindow.addTo(this.mapboxControl)):(this.brokerInfoWindowComponent.instance.broker=t,this.brokerInfoWindowComponent.instance.closeCard.subscribe(()=>{this.mapboxInfoWindow.remove(),this.removeSelectedBrokerMarker()}),this.brokerInfoWindowComponent.changeDetectorRef.detectChanges(),this.mapboxInfoWindow=new mapboxgl.Popup({closeButton:!1,closeOnClick:!1}),this.mapboxInfoWindow.setLngLat([t.Location.longitude,t.Location.latitude]).setDOMContent(this.brokerInfoWindowComponent.location.nativeElement).addTo(this.mapboxControl))}closeInfoWindowMobile(t){this.removeSelectedBrokerMarker(),this.enableInfowWindowMobile=!1,this.changeDetRef.detectChanges()}removeSelectedBrokerMarker(){this.selectedBrokerMarker&&(this.selectedBrokerMarker.remove(),this.selectedBrokerMarker=void 0)}pushpinFeatureClick(t,e){const n=this.bmf.create(e);this.showInfoWindow(n);let o=!1;o=this.mapboxControl.queryRenderedFeatures(t.point,{layers:[this._LOCATION_POLYGON_LAYER]}).length>0,o?this.brokerSearchService.propagateAction(O.a.SELECT_ITEM,{broker:n},this.callerId):(this.showPolygonLayer(!1),this.brokerSearchService.propagateAction(O.a.SELECT_ITEM_IN_VIEWPORT,{broker:n},this.callerId))}getPushpins(t,e){const n=Object(Dt.a)(this.currentBrokerSearchInput);n.filters.viewport=t,delete n.locationModel.Type;const o=this.brokerSearchService.getESQuery(n,{searchInPolygons:!!n.filters.inPolygons});this.getPushpinsBroker$&&this.getPushpinsBroker$.unsubscribe(),this.askingGetPushpins=!0,this.getPushpinsBroker$=this.brokerSearchService.getBrokerPushpin(o).subscribe(t=>{this.askingGetPushpins=!1,t&&this.pushpinsFound$.next(t)},t=>this.askingGetPushpins=!1)}createPushpins(t,e,n){e.layout={"icon-image":["case",["==",["get","vip"],!0],"broker-vip-icon","broker-icon"],"icon-size":1,"icon-allow-overlap":!0},e.source.data.features=this.addPushpins(t),this.mapboxControl.getLayer(e.id)?this.mapboxControl.setLayoutProperty(e.id,"icon-image",e.layout["icon-image"]):this.mapboxControl.addLayer(e),this.mapboxControl.getLayer(this._LOCATION_POLYGON_LAYER)&&"visible"===this.mapboxControl.getLayoutProperty(this._LOCATION_POLYGON_LAYER,"visibility")&&this.mapboxControl.moveLayer(e.id,this._LOCATION_POLYGON_LAYER),this.mapboxControl.getSource(e.id).setData(e.source.data)}addPushpins(t){const e=t.length,n=[];for(let o=0;o<e;o++){const e={type:"Feature"};e.geometry={type:"Point",coordinates:[t[o].location.lon,t[o].location.lat]},e.properties={Id:t[o].brokerId,location:{lat:t[o].location.lat,lon:t[o].location.lon},vip:t[o].isVip},n.push(e)}return n}ngOnDestroy(){this.windowSize$&&this.windowSize$.unsubscribe(),this.langLoaded$&&this.langLoaded$.unsubscribe(),this._observableSubscriptions.forEach(t=>t.unsubscribe()),this.currentAction$&&this.currentAction$.unsubscribe(),this.windowLoaded$&&this.windowLoaded$.unsubscribe(),this.initMapbox$&&this.initMapbox$.unsubscribe(),this.windowLoadedMapbox$&&this.windowLoadedMapbox$.unsubscribe(),this.mapboxFirstIdleChange$&&this.mapboxFirstIdleChange$.unsubscribe(),this.mapboxIdleChange$&&this.mapboxIdleChange$.unsubscribe(),this.mapboxIdleChangeNewMapDimensions$&&this.mapboxIdleChangeNewMapDimensions$.unsubscribe(),this.getPushpinsBroker$&&this.getPushpinsBroker$.unsubscribe(),this.pushpinsFound$&&this.pushpinsFound$.unsubscribe(),this.combinePushpinsMapbox$&&this.combinePushpinsMapbox$.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(R.Qb(S.a),R.Qb(E.f),R.Qb(Pt.a),R.Qb(f.a),R.Qb(R.h),R.Qb(u.b),R.Qb(x.a),R.Qb($.a),R.Qb(_.a),R.Qb(w.a),R.Qb(O.c),R.Qb(R.z),R.Qb(Et.a),R.Qb(I.d),R.Qb(R.j),R.Qb(R.r),R.Qb(Rt.a),R.Qb(Vt.a))},t.\u0275cmp=R.Kb({type:t,selectors:[["trovimap-map-broker"]],viewQuery:function(t,e){var n;1&t&&R.ad(Ht,!0),2&t&&R.Fc(n=R.fc())&&(e.hoverMarker=n.first)},inputs:{brokerSearchInput:"brokerSearchInput",enable:"enable"},outputs:{totalViewportBrokers:"totalViewportBrokers"},features:[R.Bb],decls:2,vars:1,consts:[["class","map-content",4,"ngIf"],[1,"map-content"],["class","map",4,"ngIf"],[1,"map"],["id","sb_map",2,"height","100%","width","100%"],[1,"mapbox-controls"],["style","position: relative;",4,"ngIf"],[3,"visibility",4,"ngIf"],[2,"position","relative"],[1,"btn-group-vertical","pull-right","google-map-type-control",3,"mapControl"],[1,"btn-group","pull-right","google-map-type-control",3,"mapControl","zoom"],[3,"broker","closeCard"]],template:function(t,e){1&t&&(R.Rc(0,Jt,4,1,"div",0),R.Tc(1,"\n")),2&t&&R.qc("ngIf",e.enable)},directives:[o.t,Nt.a,Wt.a,jt],styles:["/* Font Style Base */\n/*Website Font Colors*/\n/*Buttons Color*/\n/* Layout Colors */\n/* Button color */\n/* Dashboard */\n/* CMA ON DEMAND */\n/* PIPELINE */\n/* Priority */\n/* Alerts */\n/*social colors*/\n/*modal colors:*/\n/*Carou
1sel*/\n/*trovi-contactos*/\n/*Form colors*/\n/* Forms and inputs */\n/* Priority */\n/* BANNERS */\n/* DROP AREAS */\n/* Mixins */\n/* Basic Responsive Breakpoints */\n/* Extra Responsive Breakpoints */\n/* CMA Breakpoints */\n.btn-map-control-cma {\n margin-top: 5px !important;\n top: 3px;\n background: #fff;\n border-radius: 2px !important;\n height: 28px;\n min-width: 28px;\n line-height: 18px;\n padding: 6px !important;\n border: 0 !important;\n cursor: pointer;\n box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.3) !important;\n transition: background-color 0.2s;\n}\n.btn-map-control-cma:hover {\n background-color: #dfdfdf;\n}\n.btn-map-control-cma.active {\n background: #dfdfdf !important;\n border-radius: 2px;\n}\n.btn-map-control-cma svg {\n width: 16px;\n height: 16px;\n fill: #0a2542;\n top: -3px;\n}\n.google-map-type-control span {\n width: auto;\n color: #0a2542;\n line-height: 24px;\n}\n.google-map-type-control span:nth-child(-n+3) {\n padding: 5px !important;\n line-height: 18px;\n}\n.google-map-type-control span:hover {\n color: #fff;\n background-color: #0a2542;\n}\n.google-map-type-control span.active {\n background: #0a2542 !important;\n color: #fff !important;\n}\n.map-content {\n position: relative;\n min-height: 100%;\n width: 100%;\n height: 100%;\n}\n.map-content .map {\n width: 100%;\n position: absolute;\n top: 0;\n height: 100%;\n bottom: 0px;\n}\n.map-content .map .sebm-google-map-container {\n width: 100%;\n height: 100%;\n}\n.map-content .mapbox-controls {\n position: absolute;\n right: 8px;\n bottom: 48px;\n}\n.hoverMarker {\n margin-top: 15px;\n}\n.hoverMarker .si-shadow-frame {\n box-shadow: none;\n}\n.hoverMarker .si-content-wrapper {\n background-color: transparent;\n overflow: visible;\n border: 0px;\n border-radius: 0px;\n}\n.pin-selected-property {\n width: 25px !important;\n height: 30px !important;\n text-align: center;\n color: white;\n background-color: transparent;\n}\n.pin-selected-property-pulse {\n width: 45px;\n height: 45px;\n border-radius: 100%;\n -webkit-animation: pulse-anim-circle 100.5s 2 linear, hide-anim-circle 1.5s 2 linear, hide-anim-circle-end 0s 3s 1 linear forwards;\n animation: pulse-anim-circle 100.5s 2 linear, hide-anim-circle 1.5s 2 linear, hide-anim-circle-end 0s 3s 1 linear forwards;\n border-style: solid;\n position: absolute;\n top: -10px;\n left: -11px;\n z-index: -1;\n border-width: 15px;\n}\n.pin-selected-property-pulse.type-broker {\n border-color: #3C91E6;\n}\n.pin-selected-property-pulse.type-broker-vip {\n border-color: #FFB300;\n}\n@-webkit-keyframes pulse-anim-circle {\n 0% {\n transform: scale(1);\n }\n 100% {\n transform: scale(1.5);\n }\n}\n@keyframes pulse-anim-circle {\n 0% {\n transform: scale(1);\n }\n 100% {\n transform: scale(1.5);\n }\n}\n@-webkit-keyframes hide-anim-circle {\n 0% {\n opacity: 0.8;\n }\n 50% {\n opacity: 0.4;\n }\n 100% {\n opacity: 0;\n }\n}\n@keyframes hide-anim-circle {\n 0% {\n opacity: 0.8;\n }\n 50% {\n opacity: 0.4;\n }\n 100% {\n opacity: 0;\n }\n}\n@-webkit-keyframes hide-anim-circle-end {\n 0%, 100% {\n border-width: 0px;\n width: 0px;\n }\n}\n@keyframes hide-anim-circle-end {\n 0%, 100% {\n border-width: 0px;\n width: 0px;\n }\n}\n.mapboxgl-map {\n font-size: 13px;\n overflow: hidden;\n position: relative;\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n}\n.mapboxgl-map:-webkit-full-screen {\n width: 100%;\n height: 100%;\n}\n.mapboxgl-canary {\n background-color: salmon;\n}\n.mapboxgl-canvas-container.mapboxgl-interactive,\n.mapboxgl-ctrl-group > button.mapboxgl-ctrl-compass {\n cursor: -webkit-grab;\n cursor: grab;\n -moz-user-select: none;\n -webkit-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n.mapboxgl-canvas-container.mapboxgl-interactive:active,\n.mapboxgl-ctrl-group > button.mapboxgl-ctrl-compass:active {\n cursor: -webkit-grabbing;\n cursor: grabbing;\n}\n.mapboxgl-canvas-container.mapboxgl-touch-zoom-rotate,\n.mapboxgl-canvas-container.mapboxgl-touch-zoom-rotate .mapboxgl-canvas {\n touch-action: pan-x pan-y;\n}\n.mapboxgl-canvas-container.mapboxgl-touch-drag-pan,\n.mapboxgl-canvas-container.mapboxgl-touch-drag-pan .mapboxgl-canvas {\n touch-action: pinch-zoom;\n}\n.mapboxgl-canvas-container.mapboxgl-touch-zoom-rotate.mapboxgl-touch-drag-pan,\n.mapboxgl-canvas-container.mapboxgl-touch-zoom-rotate.mapboxgl-touch-drag-pan .mapboxgl-canvas {\n touch-action: none;\n}\n.mapboxgl-ctrl-top-left,\n.mapboxgl-ctrl-top-right,\n.mapboxgl-ctrl-bottom-left,\n.mapboxgl-ctrl-bottom-right {\n position: absolute;\n pointer-events: none;\n z-index: 0;\n}\n.mapboxgl-ctrl-top-left {\n top: 0;\n left: 0;\n}\n.mapboxgl-ctrl-top-right {\n top: 0;\n right: 0;\n}\n.mapboxgl-ctrl-bottom-left {\n bottom: 0;\n left: 0;\n}\n.mapboxgl-ctrl-bottom-right {\n right: 0;\n bottom: 0;\n}\n.mapboxgl-ctrl {\n clear: both;\n pointer-events: auto;\n}\n.mapboxgl-ctrl-top-left .mapboxgl-ctrl {\n margin: 10px 0 0 10px;\n float: left;\n}\n.mapboxgl-ctrl-top-right .mapboxgl-ctrl {\n margin: 10px 10px 0 0;\n float: right;\n}\n.mapboxgl-ctrl-bottom-left .mapboxgl-ctrl {\n margin: 0 0 10px 10px;\n float: left;\n}\n.mapboxgl-ctrl-bottom-right .mapboxgl-ctrl {\n margin: 0 10px 10px 0;\n float: right;\n}\na.mapboxgl-ctrl-logo {\n width: 85px;\n height: 21px;\n margin: 0 0 -3px -3px;\n display: block;\n background-repeat: no-repeat;\n cursor: pointer;\n background-image: url(\"data:image/svg+xml;charset=utf-8,%3C?xml version='1.0' encoding='utf-8'?%3E%3Csvg version='1.1' id='Layer_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 84.49 21' style='enable-background:new 0 0 84.49 21;' xml:space='preserve'%3E%3Cg%3E %3Cpath class='st0' style='opacity:0.9; fill: %23FFFFFF; enable-background: new;' d='M83.25,14.26c0,0.12-0.09,0.21-0.21,0.21h-1.61c-0.13,0-0.24-0.06-0.3-0.17l-1.44-2.39l-1.44,2.39 c-0.06,0.11-0.18,0.17-0.3,0.17h-1.61c-0.04,0-0.08-0.01-0.12-0.03c-0.09-0.06-0.13-0.19-0.
106-0.28l0,0l2.43-3.68L76.2,6.84 c-0.02-0.03-0.03-0.07-0.03-0.12c0-0.12,0.09-0.21,0.21-0.21h1.61c0.13,0,0.24,0.06,0.3,0.17l1.41,2.36l1.4-2.35 c0.06-0.11,0.18-0.17,0.3-0.17H83c0.04,0,0.08,0.01,0.12,0.03c0.09,0.06,0.13,0.19,0.06,0.28l0,0l-2.37,3.63l2.43,3.67 C83.24,14.18,83.25,14.22,83.25,14.26z'/%3E %3Cpath class='st0' style='opacity:0.9; fill: %23FFFFFF; enable-background: new;' d='M66.24,9.59c-0.39-1.88-1.96-3.28-3.84-3.28c-1.03,0-2.03,0.42-2.73,1.18V3.51c0-0.13-0.1-0.23-0.23-0.23h-1.4 c-0.13,0-0.23,0.11-0.23,0.23v10.72c0,0.13,0.1,0.23,0.23,0.23h1.4c0.13,0,0.23-0.11,0.23-0.23V13.5c0.71,0.75,1.7,1.18,2.73,1.18 c1.88,0,3.45-1.41,3.84-3.29C66.37,10.79,66.37,10.18,66.24,9.59L66.24,9.59z M62.08,13c-1.32,0-2.39-1.11-2.41-2.48v-0.06 c0.02-1.38,1.09-2.48,2.41-2.48s2.42,1.12,2.42,2.51S63.41,13,62.08,13z'/%3E %3Cpath class='st0' style='opacity:0.9; fill: %23FFFFFF; enable-background: new;' d='M71.67,6.32c-1.98-0.01-3.72,1.35-4.16,3.29c-0.13,0.59-0.13,1.19,0,1.77c0.44,1.94,2.17,3.32,4.17,3.3 c2.35,0,4.26-1.87,4.26-4.19S74.04,6.32,71.67,6.32z M71.65,13.01c-1.33,0-2.42-1.12-2.42-2.51s1.08-2.52,2.42-2.52 c1.33,0,2.42,1.12,2.42,2.51S72.99,13,71.65,13.01L71.65,13.01z'/%3E %3Cpath class='st1' style='opacity:0.35; enable-background:new;' d='M62.08,7.98c-1.32,0-2.39,1.11-2.41,2.48v0.06C59.68,11.9,60.75,13,62.08,13s2.42-1.12,2.42-2.51 S63.41,7.98,62.08,7.98z M62.08,11.76c-0.63,0-1.14-0.56-1.17-1.25v-0.04c0.01-0.69,0.54-1.25,1.17-1.25 c0.63,0,1.17,0.57,1.17,1.27C63.24,11.2,62.73,11.76,62.08,11.76z'/%3E %3Cpath class='st1' style='opacity:0.35; enable-background:new;' d='M71.65,7.98c-1.33,0-2.42,1.12-2.42,2.51S70.32,13,71.65,13s2.42-1.12,2.42-2.51S72.99,7.98,71.65,7.98z M71.65,11.76c-0.64,0-1.17-0.57-1.17-1.27c0-0.7,0.53-1.26,1.17-1.26s1.17,0.57,1.17,1.27C72.82,11.21,72.29,11.76,71.65,11.76z'/%3E %3Cpath class='st0' style='opacity:0.9; fill: %23FFFFFF; enable-background: new;' d='M45.74,6.53h-1.4c-0.13,0-0.23,0.11-0.23,0.23v0.73c-0.71-0.75-1.7-1.18-2.73-1.18 c-2.17,0-3.94,1.87-3.94,4.19s1.77,4.19,3.94,4.19c1.04,0,2.03-0.43,2.73-1.19v0.73c0,0.13,0.1,0.23,0.23,0.23h1.4 c0.13,0,0.23-0.11,0.23-0.23V6.74c0-0.12-0.09-0.22-0.22-0.22C45.75,6.53,45.75,6.53,45.74,6.53z M44.12,10.53 C44.11,11.9,43.03,13,41.71,13s-2.42-1.12-2.42-2.51s1.08-2.52,2.4-2.52c1.33,0,2.39,1.11,2.41,2.48L44.12,10.53z'/%3E %3Cpath class='st1' style='opacity:0.35; enable-background:new;
1' d='M41.71,7.98c-1.33,0-2.42,1.12-2.42,2.51S40.37,13,41.71,13s2.39-1.11,2.41-2.48v-0.06 C44.1,9.09,43.03,7.98,41.71,7.98z M40.55,10.49c0-0.7,0.52-1.27,1.17-1.27c0.64,0,1.14,0.56,1.17,1.25v0.04 c-0.01,0.68-0.53,1.24-1.17,1.24C41.08,11.75,40.55,11.19,40.55,10.49z'/%3E %3Cpath class='st0' style='opacity:0.9; fill: %23FFFFFF; enable-background: new;' d='M52.41,6.32c-1.03,0-2.03,0.42-2.73,1.18V6.75c0-0.13-0.1-0.23-0.23-0.23h-1.4c-0.13,0-0.23,0.11-0.23,0.23 v10.72c0,0.13,0.1,0.23,0.23,0.23h1.4c0.13,0,0.23-0.1,0.23-0.23V13.5c0.71,0.75,1.7,1.18,2.74,1.18c2.17,0,3.94-1.87,3.94-4.19 S54.58,6.32,52.41,6.32z M52.08,13.01c-1.32,0-2.39-1.11-2.42-2.48v-0.07c0.02-1.38,1.09-2.49,2.4-2.49c1.32,0,2.41,1.12,2.41,2.51 S53.4,13,52.08,13.01L52.08,13.01z'/%3E %3Cpath class='st1' style='opacity:0.35; enable-background:new;' d='M52.08,7.98c-1.32,0-2.39,1.11-2.42,2.48v0.06c0.03,1.38,1.1,2.48,2.42,2.48s2.41-1.12,2.41-2.51 S53.4,7.98,52.08,7.98z M52.08,11.76c-0.63,0-1.14-0.56-1.17-1.25v-0.04c0.01-0.69,0.54-1.25,1.17-1.25c0.63,0,1.17,0.58,1.17,1.27 S52.72,11.76,52.08,11.76z'/%3E %3Cpath class='st0' style='opacity:0.9; fill: %23FFFFFF; enable-background: new;' d='M36.08,14.24c0,0.13-0.1,0.23-0.23,0.23h-1.41c-0.13,0-0.23-0.11-0.23-0.23V9.68c0-0.98-0.74-1.71-1.62-1.71 c-0.8,0-1.46,0.7-1.59,1.62l0.01,4.66c0,0.13-0.11,0.23-0.23,0.23h-1.41c-0.13,0-0.23-0.11-0.23-0.23V9.68 c0-0.98-0.74-1.71-1.62-1.71c-0.85,0-1.54,0.79-1.6,1.8v4.48c0,0.13-0.1,0.23-0.23,0.23h-1.4c-0.13,0-0.23-0.11-0.23-0.23V6.74 c0.01-0.13,0.1-0.22,0.23-0.22h1.4c0.13,0,0.22,0.11,0.23,0.22V7.4c0.5-0.68,1.3-1.09,2.16-1.1h0.03c1.09,0,2.09,0.6,2.6,1.55 c0.45-0.95,1.4-1.55,2.44-1.56c1.62,0,2.93,1.25,2.9,2.78L36.08,14.24z'/%3E %3Cpath class='st1' style='opacity:0.35; enable-background:new;' d='M84.34,13.59l-0.07-0.13l-1.96-2.99l1.94-2.95c0.44-0.67,0.26-1.56-0.41-2.02c-0.02,0-0.03,0-0.04-0.01 c-0.23-0.15-0.5-0.22-0.78-0.22h-1.61c-0.56,0-1.08,0.29-1.37,0.78L79.72,6.6l-0.34-0.56C79.09,5.56,78.57,5.27,78,5.27h-1.6 c-0.6,0-1.13,0.37-1.35,0.92c-2.19-1.66-5.28-1.47-7.26,0.45c-0.35,0.34-0.65,0.72-0.89,1.14c-0.9-1.62-2.58-2.72-4.5-2.72 c-0.5,0-1.01,0.07-1.48,0.23V3.51c0-0.82-0.66-1.48-1.47-1.48h-1.4c-0.81,0-1.47,0.66-1.47,1.47v3.75 c-0.95-1.36-2.5-2.18-4.17-2.19c-0.74,0-1.46,0.16-2.12,0.47c-0.24-0.17-0.54-0.26-0.84-0.26h-1.4c-0.45,0-0.87,0.21-1.15,0.56 c-0.02-0.03-0.04-0.05-0.07-0.08c-0.28-0.3-0.68-0.47-1.09-0.47h-1.39c-0.3,0-0.6,0.09-0.84,0.26c-0.67-0.3-1.39-0.46-2.12-0.46 c-1.83,0-3.43,1-4.37,2.5c-0.2-0.46-0.48-0.89-0.83-1.25c-0.8-0.81-1.89-1.25-3.02-1.25h-0.01c-0.89,0.01-1.75,0.33-2.46,0.88 c-0.74-0.57-1.64-0.88-2.57-0.88H28.1c-0.29,0-0.58,0.03-0.86,0.11c-0.28,0.06-0.56,0.16-0.82,0.28c-0.21-0.12-0.45-0.18-0.7-0.18 h-1.4c-0.82,0-1.47,0.66-1.47,1.47v7.5c0,0.82,0.66,1.47,1.47,1.47h1.4c0.82,0,1.48-0.66,1.48-1.48l0,0V9.79 c0.03-0.36,0.23-0.59,0.36-0.59c0.18,0,0.38,0.18,0.38,0.47v4.57c0,0.82,0.66,1.47,1.47,1.47h1.41c0.82,0,1.47-0.66,1.47-1.47 l-0.01-4.57c0.06-0.32,0.25-0.47,0.35-0.47c0.18,0,0.38,0.18,0.38,0.47v4.57c0,0.82,0.66,1.47,1.47,1.47h1.41 c0.82,0,1.47-0.66,1.47-1.47v-0.38c0.96,1.29,2.46,2.06,4.06,2.06c0.74,0,1.46-0.16,2.12-0.47c0.24,0.17,0.54,0.26,0.84,0.26h1.39 c0.3,0,0.6-0.09,0.84-0.26v2.01c0,0.82,0.66,1.47,1.47,1.47h1.4c0.82,0,1.47-0.66,1.47-1.47v-1.77c0.48,0.15,0.99,0.23,1.49,0.22 c1.7,0,3.22-0.87,4.17-2.2v0.52c0,0.82,0.66,1.47,1.47,1.47h1.4c0.3,0,0.6-0.09,0.84-0.26c0.66,0.31,1.39,0.47,2.12,0.47 c1.92,0,3.6-1.1,4.49-2.73c1.54,2.65,4.95,3.53,7.58,1.98c0.18-0.11,0.36-0.22,0.53-0.36c0.22,0.55,0.76,0.91,1.35,0.9H78 c0.56,0,1.08-0.29,1.37-0.78l0.37-0.61l0.37,0.61c0.29,0.48,0.81,0.78,1.38,0.78h1.6c0.81,0,1.46-0.66,1.45-1.46 C84.49,14.02,84.44,13.8,84.34,13.59L84.34,13.59z M35.86,14.47h-1.41c-0.13,0-0.23-0.11-0.23-0.23V9.68 c0-0.98-0.74-1.71-1.62-1.71c-0.8,0-1.46,0.7-1.59,1.62l0.01,4.66c0,0.13-0.1,0.23-0.23,0.23h-1.41c-0.13,0-0.23-0.11-0.23-0.23 V9.68c0-0.98-0.74-1.71-1.62-1.71c-0.85,0-1.54,0.79-1.6,1.8v4.48c0,0.13-0.1,0.23-0.23,0.23h-1.4c-0.13,0-0.23-0.11-0.23-0.23 V6.74c0.01-0.13,0.11-0.22,0.23-0.22h1.4c0.13,0,0.22,0.11,0.23,0.22V7.4c0.5-0.68,1.3-1.09,2.16-1.1h0.03 c1.09,0,2.09,0.6,2.6,1.55c0.45-0.95,1.4-1.55,2.44-1.56c1.62,0,2.93,1.25,2.9,2.78l0.01,5.16C36.09,14.36,35.98,14.46,35.86,14.47 L35.86,14.47z M45.97,14.24c0,0.13-0.1,0.23-0.23,0.23h-1.4c-0.13,0-0.23-0.11-0.23-0.23V13.5c-0.7,0.76-1.69,1.18-2.72,1.18 c-2.17,0-3.94-1.87-3.94-4.19s1.77-4.19,3.94-4.19c1.03,0,2.02,0.43,2.73,1.18V6.74c0-0.13,0.1-0.23,0.23-0.23h1.4 c0.12-0.01,0.22,0.08,0.23,0.21c0,0.01,0,0.01,0,0.02v7.51h-0.01V14.24z M52.41,14.67c-1.03,0-2.02-0.43-2.73-1.18v3.97 c0,0.13-0.1,0.23-0.23,0.23h-1.4c-0.13,0-0.23-0.1-0.23-0.23V6.75c0-0.13,0.1-0.22,0.23-0.22h1.4c0.13,0,0.23,0.11,0.23,0.23v0.73 c0.71-0.76,1.7-1.18,2.73-1.18c2.17,0,3.94,1.86,3.94,4.18S54.58,14.67,52.41,14.67z M66.24,11.39c-0.39,1.87-1.96,3.29-3.84,3.29 c-1.03,0-2.02-0.43-2.73-1.18v0.73c0,0.13-0.1,0.23-0.23,0.23h-1.4c-0.13,0-0.23-0.11-0.23-0.23V3.51c0-0.13,0.1-0.23,0.23-0.23 h1.4c0.13,0,0.23,0.11,0.23,0.23v3.97c0.71-0.75,1.7-1.18,2.73-1.17c1.88,0,3.45,1.4,3.84,3.28C66.37,10.19,66.37,10.8,66.24,11.39 L66.24,11.39L66.24,11.39z M71.67,14.68c-2,0.01-3.73-1.35-4.17-3.3c-0.13-0.59-0.13-1.19,0-1.77c0.44-1.94,2.17-3.31,4.17-3.3 c2.36,0,4.26,1.87,4.26,4.19S74.03,14.68,71.67,14.68L71.67,14.68z M83.04,14.47h-1.61c-0.13,0-0.24-0.06-0.3-0.17l-1.44-2.39 l-1.44,2.39c-0.06,0.11-0.18,0.17-0.3,0.17h-1.61c-0.04,0-0.08-0.01-0.12-0.03c-0.09-0.06-0.13-0.19-0.
106-0.28l0,0l2.43-3.68 L76.2,6.84c-0.02-0.03-0.03-0.07-0.03-0.12c0-0.12,0.09-0.21,0.21-0.21h1.61c0.13,0,0.24,0.06,0.3,0.17l1.41,2.36l1.41-2.36 c0.06-0.11,0.18-0.17,0.3-0.17h1.61c0.04,0,0.08,0.01,0.12,0.03c0.09,0.06,0.13,0.19,0.06,0.28l0,0l-2.38,3.64l2.43,3.67 c0.02,0.03,0.03,0.07,0.03,0.12C83.25,14.38,83.16,14.47,83.04,14.47L83.04,14.47L83.04,14.47z'/%3E %3Cpath class='st0' style='opacity:0.9; fill: %23FFFFFF; enable-background: new;' d='M10.5,1.24c-5.11,0-9.25,4.15-9.25,9.25s4.15,9.25,9.25,9.25s9.25-4.15,9.25-9.25 C19.75,5.38,15.61,1.24,10.5,1.24z M14.89,12.77c-1.93,1.93-4.78,2.31-6.7,2.31c-0.7,0-1.41-0.05-2.1-0.16c0,0-1.02-5.64,2.14-8.81 c0.83-0.83,1.95-1.28,3.13-1.28c1.27,0,2.49,0.51,3.39,1.42C16.59,8.09,16.64,11,14.89,12.77z'/%3E %3Cpath class='st1' style='opacity:0.35; enable-background:new;' d='M10.5-0.01C4.7-0.01,0,4.7,0,10.49s4.7,10.5,10.5,10.5S21,16.29,21,10.49C20.99,4.7,16.3-0.01,10.5-0.01z M10.5,19.74c-5.11,0-9.25-4.15-9.25-9.25s4.14-9.26,9.25-9.26s9.25,4.15,9.25,9.25C19.75,15.61,15.61,19.74,10.5,19.74z'/%3E %3Cpath class='st1' style='opacity:0.35; enable-background:new;' d='M14.74,6.25C12.9,4.41,9.98,4.35,8.23,6.1c-3.16,3.17-2.14,8.81-2.14,8.81s5.64,1.02,8.81-2.14 C16.64,11,16.59,8.09,14.74,6.25z M12.47,10.34l-0.91,1.87l-0.9-1.87L8.8,9.43l1.86-0.9l0.9-1.87l0.91,1.87l1.86,0.9L12.47,10.34z'/%3E %3Cpolygon class='st0' style='opacity:0.9; fill: %23FFFFFF; enable-background: new;' points='14.33,9.43 12.47,10.34 11.56,12.21 10.66,10.34 8.8,9.43 10.66,8.53 11.56,6.66 12.47,8.53 '/%3E%3C/g%3E%3C/svg%3E\");\n}\n.mapboxgl-popup {\n position: absolute;\n top: 0;\n left: 0;\n display: flex;\n will-change: transform;\n pointer-events: none;\n}\n.mapboxgl-popup-anchor-top,\n.mapboxgl-popup-anchor-top-left,\n.mapboxgl-popup-anchor-top-right {\n flex-direction: column;\n}\n.mapboxgl-popup-anchor-bottom,\n.mapboxgl-popup-anchor-bottom-left,\n.mapboxgl-popup-anchor-bottom-right {\n flex-direction: column-reverse;\n}\n.mapboxgl-popup-anchor-left {\n flex-direction: row;\n}\n.mapboxgl-popup-anchor-right {\n flex-direction: row-reverse;\n}\n.mapboxgl-popup-tip {\n width: 0;\n height: 0;\n border: 10px solid transparent;\n z-index: 1;\n}\n.mapboxgl-popup-anchor-top .mapboxgl-popup-tip {\n align-self: center;\n border-top: none;\n border-bottom-color: #fff;\n}\n.mapboxgl-popup-anchor-top-left .mapboxgl-popup-tip {\n align-self: flex-start;\n border-top: none;\n border-left: none;\n border-bottom-color: #fff;\n}\n.mapboxgl-popup-anchor-top-right .mapboxgl-popup-tip {\n align-self: flex-end;\n border-top: none;\n border-right: none;\n border-bottom-color: #fff;\n}\n.mapboxgl-popup-anchor-bottom .mapboxgl-popup-tip {\n align-self: center;\n border-bottom: none;\n border-top-color: #fff;\n}\n.mapboxgl-popup-anchor-bottom-left .mapboxgl-popup-tip {\n align-self: flex-start;\n border-bottom: none;\n border-left: none;\n border-top-color: #fff;\n}\n.mapboxgl-popup-anchor-bottom-right .mapboxgl-popup-tip {\n align-self: flex-end;\n border-bottom: none;\n border-right: none;\n border-top-color: #fff;\n}\n.mapboxgl-popup-anchor-left .mapboxgl-popup-tip {\n align-self: center;\n border-left: none;\n border-right-color: #fff;\n}\n.mapboxgl-popup-anchor-right .mapboxgl-popup-tip {\n align-self: center;\n border-right: none;\n border-left-color: #fff;\n}\n.mapboxgl-popup-close-button {\n position: absolute;\n right: 0;\n top: 0;\n border: 0;\n border-radius: 0 3px 0 0;\n cursor: pointer;\n background-color: transparent;\n}\n.mapboxgl-popup-close-button:hover {\n background-color: rgba(0, 0, 0, 0.05);\n}\n.mapboxgl-popup-content {\n position: relative;\n background: #fff;\n border-radius: 3px;\n box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);\n /*padding: 10px 10px 15px;*/\n pointer-events: auto;\n font-size: 14px;\n}\n.mapboxgl-popup.evaluate > .mapboxgl-popup-content {\n padding: 10px 10px 15px;\n}\n.mapboxgl-popup-anchor-top-left .mapboxgl-popup-content {\n border-top-left-radius: 0;\n}\n.mapboxgl-popup-anchor-top-right .mapboxgl-popup-content {\n border-top-right-radius: 0;\n}\n.mapboxgl-popup-anchor-bottom-left .mapboxgl-popup-content {\n border-bottom-left-radius: 0;\n}\n.mapboxgl-popup-anchor-bottom-right .mapboxgl-popup-content {\n border-bottom-right-radius: 0;\n}\n.mapboxgl-marker {\n position: absolute;\n top: 0;\n left: 0;\n will-change: transform;\n}\n.mapboxgl-crosshair,\n.mapboxgl-crosshair .mapboxgl-interactive,\n.mapboxgl-crosshair .mapboxgl-interactive:active {\n cursor: crosshair;\n}\n.mapboxgl-boxzoom {\n position: absolute;\n top: 0;\n left: 0;\n width: 0;\n height: 0;\n background: #fff;\n border: 2px dotted #202020;\n opacity: 0.5;\n}\n.mapboxgl-ctrl.mapboxgl-ctrl-attrib {\n padding: 0 5px;\n background-color: rgba(255, 255, 255, 0.5);\n margin: 0;\n}\n.mapboxgl-ctrl-attrib a {\n color: rgba(0, 0, 0, 0.75);\n text-decoration: none;\n}
1\n.mapboxgl-ctrl-attrib a:hover {\n color: inherit;\n text-decoration: underline;\n}\n.mapboxgl-ctrl-attrib .mapbox-improve-map {\n font-weight: bold;\n margin-left: 2px;\n}\n.mapboxgl-ctrl-attrib-inner {\n line-height: 20px;\n}\n@media screen and (max-width: 768px) {\n .mapboxgl-ctrl-attrib.mapboxgl-compact {\n padding-top: 2px;\n padding-bottom: 2px;\n margin: 0 10px 10px;\n position: relative;\n padding-right: 24px;\n background-color: #fff;\n border-radius: 3px 12px 12px 3px;\n visibility: hidden;\n }\n\n .mapboxgl-ctrl-attrib.mapboxgl-compact:hover {\n visibility: visible;\n }\n\n .mapboxgl-ctrl-attrib.mapboxgl-compact::after {\n content: \"\";\n cursor: pointer;\n position: absolute;\n bottom: 0;\n right: 0;\n background-image: url(\"data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E %3Cpath fill='%23333333' fill-rule='evenodd' d='M4,10a6,6 0 1,0 12,0a6,6 0 1,0 -12,0 M9,7a1,1 0 1,0 2,0a1,1 0 1,0 -2,0 M9,10a1,1 0 1,1 2,0l0,3a1,1 0 1,1 -2,0'/%3E %3C/svg%3E\");\n background-color: rgba(255, 255, 255, 0.5);\n width: 24px;\n height: 24px;\n box-sizing: border-box;\n visibility: visible;\n border-radius: 12px;\n }\n}\n@media print {\n /* stylelint-disable-next-line selector-class-pattern */\n .mapbox-improve-map {\n display: none;\n }\n}"],encapsulation:2}),t})();const te=["divMapComponent"],ee=["propertiesList"];function ne(t,e){if(1&t){const t=R.Xb();R.Wb(0,"trovimap-map-broker",14),R.ec("totalViewportBrokers",(function(e){return R.Jc(t),R.ic().totalViewportBrokers=e})),R.Vb()}if(2&t){const t=R.ic();R.qc("enable",t.enableSubComponent)}}const oe=Object(s.g)("SEARCH_BROKER_LOCATION_KEY"),ie=Object(s.g)("SEARCH_BROKER_LOCATION_KEY_NOT_FOUND");let re=(()=>{class t{constructor(t,e,n,o,i,r,a,s,c,l,p,d,g,m,u,_,f,k,v,x,S,w,P,M){this.activatedRoute=t,this.router=e,this.location=n,this.brokerSearchService=o,this.commonService=i,this.parsingService=r,this.changeDetRef=a,this.pmf=s,this.state=c,this.seoService=l,this.modalService=p,this.bsModalService=d,this.meta=g,this.title=m,this.translateNotifier=u,this.searchService=_,this.renderer=f,this.authenticationService=k,this.authService=v,this.savedSearchModalModelFactory=x,this.response=S,this.analyticService=w,this.searchResultsService=P,this.seoExtService=M,this.showedBounds=!0,this.callerId="BrokerSearchComponent",this.enableShowBoundsCheckbox=!0,this.enableMapComponent=!1,this.enableSubComponent=!1,this.viewSelected=4,this.viewPortReady$=new b.a,this.loadFromUrl=!1,this.showTipsValue=!1,this.isSmartphone=!1,this.isSmartphone=this.commonService.isSmartphone(),this.commonService.isBrowser()&&!this.isSmartphone&&(this.enableMapComponent=!0),this.windowSize$=this.commonService.$windowSize.pipe(Object(h.a)(50)).subscribe(t=>{this.isSmartphone=this.commonService.isSmartphone(),this.isSmartphone||this.renderer.removeStyle(this.divMapComponent.nativeElement,"height")})}ngOnInit(){this.currentAction$=this.brokerSearchService.currentAction$.subscribe(t=>{const e=Object(c.a)(this.currentBrokerSearchInput);if(this.currentBrokerSearchInput=Object(c.a)(t.brokerSearchInput),t.callerId!==this.callerId)switch(t.action){case O.a.MOVED_MAP:break;case O.a.START_ZOOM_OUT_AND_HIDE_BOUNDS:if(!this.enableMapComponent)if(e.filters.zoom===this.currentBrokerSearchInput.filters.zoom)this.brokerSearchService.propagateAction(O.a.SHOW_BOUNDS,!1,this.callerId);else{const t=this.calculateViewPort(this.currentBrokerSearchInput.locationModel.mapCenter,this.currentBrokerSearchInput.locationModel.sqrLatLon,this.currentBrokerSearchInput.filters.zoom);this.currentBrokerSearchInput.filters.viewport=t.sqrLatLon,this.currentBrokerSearchInput.filters.zoom=t.zoom,this.brokerSearchService.propagateAction(O.a.ZOOM_OUT_AND_HIDE_BOUNDS,this.currentBrokerSearchInput.filters,this.callerId)}break;case O.a.START_ZOOM_OUT_HIDE_BOUNDS_AND_REMOVE_VIP:if(!this.enableMapComponent)if(delete this.currentBrokerSearchInput.filters.vip,e.filters.zoom===this.currentBrokerSearchInput.filters.zoom)this.brokerSearchService.propagateAction(O.a.HIDE_BOUNDS_AND_REMOVE_VIP,this.currentBrokerSearchInput.filters,this.callerId);else{const t=this.calculateViewPort(this.currentBrokerSearchInput.locationModel.mapCenter,this.currentBrokerSearchInput.locationModel.sqrLatLon,this.currentBrokerSearchInput.filters.zoom);this.currentBrokerSearchInput.filters.viewport=t.sqrLatLon,this.currentBrokerSearchInput.filters.zoom=t.zoom,this.brokerSearchService.propagateAction(O.a.ZOOM_OUT_HIDE_BOUNDS_AND_REMOVE_VIP,this.currentBrokerSearchInput.filters,this.callerId)}}else this.currentBrokerSearchInput=Object(c.a)(t.brokerSearchInput)}),this.activatedRouteUrl$=this.activatedRoute.url.pipe(Object(p.a)(1)).subscribe(t=>{this._init()}),this.inputBrokerSearch$=Object(g.a)([this.brokerSearchService.inputBrokerSearch$,this.viewPortReady$]).subscribe(t=>
1{if(t[0]&&t[1]){const e=t[0];if(this.commonService.isBrowser()){const t=this.calculateViewPort(e.locationModel.mapCenter,e.locationModel.sqrLatLon,e.filters.zoom);e.filters.viewport=t.sqrLatLon,e.filters.zoom=t.zoom}let n;this.currentBrokerSearchInput=Object(c.a)(e),this.enableSubComponent?this.brokerSearchService.propagateAction(O.a.NEW_SEARCH,void 0,this.callerId):this.enableSubComponent=!0,this.showedBounds=this.currentBrokerSearchInput.filters.showBounds,this.enableShowBoundsCheckbox=!0,this.activatedRoute.snapshot.queryParams.showMap&&this.commonService.isSmartphone()&&this.showMap(!0),this.currentBrokerSearchInput&&this.currentBrokerSearchInput.locationModel&&(n=this.currentBrokerSearchInput.locationModel),this.seoService.seoCanonicalTagForSearchedLocation(n,this.activatedRoute.snapshot.params),this.setMetaRobots(),this.changeDetRef.detectChanges(),this.analyticService.viewSearchResultsPageTrigger("viewpage","Encontrar Agencia","Agencia",this.currentBrokerSearchInput.locationModel.AdminArea2,this.currentBrokerSearchInput.locationModel.Locality,this.currentBrokerSearchInput.locationModel.Neighborhood)}}),this.langLoaded$=this.translateNotifier.langLoaded$.subscribe(t=>{t&&(this.currentBrokerSearchInput&&this.setPageTitle(this.currentBrokerSearchInput),this.langLoadedSRI$=this.brokerSearchService.inputBrokerSearch$.subscribe(t=>{t&&this.setPageTitle(t)}))}),this._init()}ngAfterViewInit(){this.isSmartphone&&this.renderer.setStyle(this.divMapComponent.nativeElement,"height",this.commonService.initialHeight-156+"px"),this.viewPortReady$.next(!0)}_init(){if(this.brokerSearchService.searchFromInside)this.mergeFiltersResolvingRoute(this.brokerSearchService.currentBrokerSearchInput),this.brokerSearchService.searchFromInside=!1,this.brokerSearchService.inputBrokerSearch$.next(this.brokerSearchService.currentBrokerSearchInput);else{const t=this.brokerSearchService.calculateBrokerInput(this.activatedRoute.snapshot.params),e=this.activatedRoute.snapshot.queryParams;if(this.brokerSearchService.detectQueryParamFiltersFromURL(t,e),!this.commonService.isBrowser()&&(t.filters.zoom||t.locationModel.mapCenter||t.locationModel.sqrLatLon))return;if(this.mergeFiltersResolvingRoute(t),t.locationModel.google){if(!this.commonService.isBrowser())return;this.searchService.getGeocode(t.locationModel.searchText).subscribe(n=>{n&&n.length>0?(t.locationModel=this.parsingService.fromESToLocationModel(n[0]),this.brokerSearchService.detectQueryParamFiltersFromURL(t,e),t.filters.showBounds=!1,this.brokerSearchService.currentBrokerSearchInput=t,this.brokerSearchService.inputBrokerSearch$.next(t)):this.showDialogLocationNotFound()},t=>{this.showDialogLocationNotFound()})}else if(this.commonService.isBrowser())if(this.state.get(oe,null)){const t=this.state.get(oe,null);this.brokerSearchService.currentBrokerSearchInput=t,this.brokerSearchService.inputBrokerSearch$.next(t),this.totalBrokers=t.totalBrokers,this.state.remove(oe)}else this.state.get(ie,null)?(this.state.remove(ie),this.searchService.getGeocode(t.locationModel.searchText).subscribe(n=>{if(n&&n.length>=0){const o=this.parsingService.fromESToLocationModel(n[0]);t.locationModel=o,this.brokerSearchService.detectQueryParamFiltersFromURL(t,e),t.filters.showBounds=!1,this.brokerSearchService.currentBrokerSearchInput=t,this.brokerSearchService.inputBrokerSearch$.next(t)}else this.showDialogLocationNotFound()},t=>{this.showDialogLocationNotFound()})):this.searchResultsService.getLocationInformation(t.locationModel.searchText,t.locationModel.Type,t.locationModel.searchTextInLocation,!1).pipe(Object(d.a)(t=>Object(m.a)({}))).subscribe(n=>{if(0===Object.keys(n).length)this.searchService.getGeocode(t.locationModel.searchText).subscribe(n=>{if(n&&n.length>=0){const o=this.parsingService.fromESToLocationModel(n[0]);t.locationModel=o,this.brokerSearchService.detectQueryParamFiltersFromURL(t,e),t.filters.showBounds=!1,this.brokerSearchService.currentBrokerSearchInput=t,this.brokerSearchService.inputBrokerSearch$.next(t)}else this.showDialogLocationNotFound()},t=>{this.showDialogLocationNotFound()});else{const o=this.parsingService.fromESToLocationModel(n);t.filters.showBounds=!0,this.checkAndReplacePath(t,o)||(t.locationModel=o,this.brokerSearchService.detectQueryParamFiltersFromURL(t,e),this.brokerSearchService.currentBrokerSearchInput=t,this.brokerSearchService.inputBrokerSearch$.next(t))}});else{const n=this.brokerSearchService.getESMapSearchQuery(t);this.brokerSearchService.mapSearch(n).subscribe(n=>{if(0!==Object.keys(n).length){const o=this.parsingService.fromESToLocationModel(n.locInfo);t.locationModel=o,this.brokerSearchService.detectQueryParamFiltersFromURL(t,e),n.properties&&n.properties.properties&&(Object(l.a)(n.properties.properties,e=>{t.brokerFound.push(e)}),t.totalBrokers=this.totalBrokers=n.properties.total),t.filters.showBounds=!0,this.state.set(oe,Object(c.a)(t)),this.response&&(this.response.statusCode=this.getStatusCode(o)),this.brokerSearchService.currentBrokerSearchInput=t,this.brokerSearchService.inputBrokerSearch$.next(t),this.setMetaDescription()}else this.response&&t.filters.routeName!==L.a.search_results_ext_results&&(this.response.statusCode=410)},e=>{this.state.set(ie,!0),this.response&&t.filters.routeName!==L.a.search_results_ext_results&&(this.response.statusCode=410)})}}}getStatusCode(t){let e=200;const n=new RegExp(/[?//,;&:#$+=]/),o=(this.location.path().slice(1).split(n),this.activatedRoute.snapshot.params.pathProvince?this.activatedRoute.snapshot.params.pathProvince.toLowerCase():void 0),i=this.activatedRoute.snapshot.params.pathLocality?this.activatedRoute.snapshot.params.pathLocality.toLowerCase():void 0,r=this.activatedRoute.snapshot.params.pathNeighborhood?this.activatedRoute.snapshot.params.pathNeighborhood.toLowerCase():void 0;return t.Neighborhood&&this.parsingService.formatParameterForLinkForAPI(t.Neighborhood,!1)!==r&&(e=410),t.Locality&&this.parsingService.formatParameterForLinkForAPI(t.Locality,!1)!==i&&(e=410),t.AdminArea2&&this.parsingService.formatParameterForLinkForAPI(t.AdminArea2,!1)!==o&&(e=410),e}checkAndReplacePath(t,e){let n=!1,o="/"+L.a.broker_search+"/";if(this.activatedRoute.snapshot.params.pathNeighborhood){const i=this.parsingService.formatParameterForLinkForAPI(e.Neighborhood,!1).toLowerCase();t.locationModel.searchText.toLowerCase()!==i&&(o+=e.AdminArea2.toLowerCase()+"/"+e.Locality.toLowerCase()+"/"+i,n=!0)}else if(this.activatedRoute.snapshot.params.pathLocality){const i=this.parsingService.formatParameterForLinkForAPI(e.Locality,!1).toLowerCase();t.locationModel.searchText.toLowerCase()!==i&&(o+=e.AdminArea2.toLowerCase()+"/"+i,n=!0)}else if(this.activatedRoute.snapshot.params.pathProvince){const i=this.parsingService.formatParameterForLinkForAPI(e.AdminArea2,!1).toLowerCase();t.locationModel.searchText.toLowerCase()!==i&&(o+=i,n=!0)}return!!n&&(t.locationModel=e,this.brokerSearchService.currentBrokerSearchInput=t,this.brokerSearchService.searchFromInside=!0,this.brokerSearchService.placeFiltersOnQuerysting(o),!0)}calculateViewPort(t,e,n){return this.searchResultsService.calculateViewportWithoutGoogle(this.divMapComponent,t,e,n,512)}mergeFiltersResolvingRoute(t){const e=new B.a;if(e.routeName="broker-search",e)for(const n in e)e.hasOwnProperty(n)&&(t.filters[n]=e[n])}setPageTitle(t){const e=this.seoExtService.getBrokerSeachMetaTitle(t.locationModel,t.filters.page)+" | Trovimap";this.title.setTitle(e),this.setMetaTitle(t)}setMetaTitle(t){const e=this.seoExtService.getBrokerSeachMetaTitle(t.locationModel,t.filters.page);this.meta.updateTag({name:"title",content:e}),this.meta.updateTag({property:"og:title",content:e})}setMetaRobots(){this.meta.updateTag(this.currentBrokerSearchInput.filters.page&&1!==this.currentBrokerSearchInput.filters.page||!this.currentBrokerSearchInput.locationModel.Type||5===this.currentBrokerSearchInput.locationModel.Type?{name:"robots",content:"noindex, follow"}:{name:"robots",content:"index, follow"})}setMetaDescription(){const t=this.seoExtService.getBrokerSearchMetaDescription(this.brokerSearchService.currentBrokerSearchInput.locationModel,this.totalBrokers,this.brokerSearchService.currentBrokerSearchInput.filters.page);this.meta.updateTag({name:"description",content:t}),this.meta.updateTag({property:"og:description",content:t})}showDialogLocationNotFound(){this.modalService.showModalError(this.bsModalService,{messages:["no_such_address"]})}showBounds(t){this.showedBounds=t,this.brokerSearchService.propagateAction(O.a.SHOW_BOUNDS,t,this.callerId)}
1showMap(t,e){this.mapShowed=t,this.enableMapComponent=!0,t?(this.renderer.setStyle(this.divMapComponent.nativeElement,"z-index","2"),this.renderer.setStyle(this.propertiesList.nativeElement,"z-index","1"),this.renderer.setStyle(this.propertiesList.nativeElement,"visibility","hidden"),this.brokerSearchService.propagateAction(O.a.SHOW_LIST,!1,this.callerId),e&&this.isSmartphone&&this.analyticService.smartPhoneMapButtonTrigger("search-result",e,"show-map")):(this.renderer.setStyle(this.divMapComponent.nativeElement,"z-index","1"),this.renderer.setStyle(this.propertiesList.nativeElement,"z-index","2"),this.renderer.setStyle(this.propertiesList.nativeElement,"visibility","visible"),this.brokerSearchService.propagateAction(O.a.SHOW_LIST,!0,this.callerId),e&&this.isSmartphone&&this.analyticService.smartPhoneMapButtonTrigger("search-result",e,"show-list"))}ngOnDestroy(){this.windowSize$&&this.windowSize$.unsubscribe(),this.langLoadedSRI$&&this.langLoadedSRI$.unsubscribe(),this.langLoaded$&&this.langLoaded$.unsubscribe(),this.inputBrokerSearch$&&this.inputBrokerSearch$.unsubscribe(),this.activatedRouteParams$&&this.activatedRouteParams$.unsubscribe(),this.routerEvents$&&this.routerEvents$.unsubscribe(),this.currentAction$&&this.currentAction$.unsubscribe(),this.activatedRouteUrl$&&this.activatedRouteUrl$.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(R.Qb(a.a),R.Qb(a.i),R.Qb(o.n),R.Qb(O.c),R.Qb(f.a),R.Qb(_.a),R.Qb(R.h),R.Qb(k.a),R.Qb(s.f),R.Qb(v.a),R.Qb(x.a),R.Qb(u.b),R.Qb(s.d),R.Qb(s.e),R.Qb(S.a),R.Qb(w.a),R.Qb(R.F),R.Qb(M.a),R.Qb(P.a),R.Qb(C.a),R.Qb(y.b,8),R.Qb(T.a),R.Qb(I.d),R.Qb(D.a))},t.\u0275cmp=R.Kb({type:t,selectors:[["trovimap-search-broker"]],viewQuery:function(t,e){var n;1&t&&(R.Pc(te,!0),R.Pc(ee,!0)),2&t&&(R.Fc(n=R.fc())&&(e.divMapComponent=n.first),R.Fc(n=R.fc())&&(e.propertiesList=n.first))},decls:54,vars:10,consts:[[1,"search-results"],[1,"map-and-list"],[1,"map-component__container","view-4"],[3,"totalBrokers","totalPolygonBrokers","totalViewportBrokers","enable"],[1,"map-component"],["divMapComponent",""],[3,"enable","totalViewportBrokers",4,"ngIf"],["id","propertiesList",1,"div-list-component","view-4"],["propertiesList",""],[3,"enable","totalBrokers","totalPolygonBrokers"],[1,"filters-mobile"],[1,"button-select",3,"click"],["translate","map.map"],["translate","general.list"],[3,"enable","totalViewportBrokers"]],template:function(t,e){1&t&&(R.Wb(0,"div",0),R.Tc(1,"\n "),R.Wb(2,"div",1),R.Tc(3,"\n "),R.Wb(4,"div",2),R.Tc(5,"\n "),R.Rb(6,"trovimap-broker-search-count-box",3),R.Tc(7,"\n "),R.Tc(8,"\n\n "),R.Wb(9,"div",4,5),R.Tc(11,"\n "),R.Rc(12,ne,1,1,"trovimap-map-broker",6),R.Tc(13,"\n "),R.Vb(),R.Tc(14,"\n "),R.Vb(),R.Tc(15,"\n "),R.Wb(16,"div",7,8),R.Tc(18,"\n "),R.Wb(19,"trovimap-list-brokers",9),R.ec("totalBrokers",(function(t){return e.totalBrokers=t,e.setMetaDescription()}))("totalPolygonBrokers",(function(t){return e.totalPolygonBrokers=t})),R.Tc(20,"\n "),R.Vb(),R.Tc(21,"\n "),R.Vb(),R.Tc(22,"\n "),R.Vb(),R.Tc(23,"\n\n "),R.Wb(24,"div",10),R.Tc(25," "),R.Tc(26,"\n "),R.Wb(27,"a",11),R.ec("click",(function(){return e.showMap(!0,"v2")})),R.Tc(28,"\n "),R.Rb(29,"span",12),R.Tc(30,"\n "),R.Vb(),R.Tc(31,"\n "),R.Wb(32,"a",11),R.ec("click",(function(){return e.showMap(!1,"v2")})),R.Tc(33,"\n "),R.Rb(34,"span",13),R.Tc(35,"\n "),R.Vb(),R.Tc(36,"\n "),R.Vb(),R.Tc(37,"\n\n "),R.Tc(38,"\n "),R.Tc(39,"\n "),R.Tc(40,"\n "),R.Tc(41,"\n "),R.Tc(42,"\n "),R.Tc(43,"\n "),R.Tc(44,"\n "),R.Tc(45,"\n "),R.Tc(46,"\n "),R.Tc(47,"\n "),R.Tc(48,"\n "),R.Tc(49,"\n "),R.Tc(50,"\n "),R.Tc(51,"\n\n "),R.Tc(52,"\n"),R.Vb(),R.Tc(53,"\n")),2&t&&(R.Db(6),R.qc("totalBrokers",e.totalBrokers)("totalPolygonBrokers",e.totalPolygonBrokers)("totalViewportBrokers",e.totalViewportBrokers)("enable",e.enableSubComponent),R.Db(6),R.qc("ngIf",e.enableMapComponent),R.Db(7),R.qc("enable",e.enableSubComponent),R.Db(8),R.Qc("display",e.mapShowed?"none":"block"),R.Db(5),R.Qc("display",e.mapShowed?"block":"none"))}
1,directives:[F,o.t,xt,E.b,Xt],styles:[".div-list-component[_ngcontent-%COMP%] {\n padding: 0;\n background-color: #FFF;\n -webkit-overflow-scrolling: touch;\n height: 100%;\n}\n.div-list-component.view-4[_ngcontent-%COMP%] {\n position: absolute;\n z-index: 2;\n width: 100%;\n}\n@media (min-width: 768px) {\n .div-list-component.view-4[_ngcontent-%COMP%] {\n position: absolute;\n right: 0;\n height: 100%;\n width: 342px;\n float: right;\n }\n}\n@media (min-width: 992px) {\n .div-list-component.view-4[_ngcontent-%COMP%] {\n display: block;\n width: 521px;\n }\n}\n@media (min-width: 1200px) {\n .div-list-component.view-4[_ngcontent-%COMP%] {\n width: 615px;\n }\n}\n@media (min-width: 320px) and (max-width: 767px) {\n .map-component__container[_ngcontent-%COMP%] {\n position: absolute;\n width: 100%;\n height: 100%;\n top: 0px;\n }\n}\n@media (min-width: 768px) {\n .map-component__container[_ngcontent-%COMP%] {\n height: 100%;\n width: calc(100% - 342px);\n display: inline-block;\n float: left;\n position: absolute !important;\n top: 0px;\n }\n}\n@media (min-width: 992px) {\n .map-component__container[_ngcontent-%COMP%] {\n height: 100%;\n width: calc(100% - 521px);\n }\n}\n@media (min-width: 1200px) {\n .map-component__container[_ngcontent-%COMP%] {\n width: calc(100% - 615px);\n }\n}\n.map-component__container[_ngcontent-%COMP%] .map-component[_ngcontent-%COMP%] {\n width: 100%;\n height: calc(100% - 63px);\n \n}\n@media (min-width: 992px) {\n .map-component__container[_ngcontent-%COMP%] .map-component[_ngcontent-%COMP%] {\n height: calc(100% - 32px);\n }\n}\n.search-results[_ngcontent-%COMP%] {\n -webkit-overflow-scrolling: touch;\n position: relative;\n height: 100%;\n}\n.search-results[_ngcontent-%COMP%] .quick-search[_ngcontent-%COMP%] {\n z-index: 1;\n min-width: 100%;\n position: absolute;\n top: 0;\n left: 0;\n right: inherit;\n}\n@media (min-width: 768px) {\n .search-results[_ngcontent-%COMP%] .quick-search[_ngcontent-%COMP%] {\n min-width: 280px;\n top: 35px;\n left: 6px;\n }\n}\n.search-results[_ngcontent-%COMP%] .map-and-list[_ngcontent-%COMP%] {\n height: calc(100% - 40px);\n position: relative;\n top: 0px;\n}\n@media (min-width: 768px) {\n .search-results[_ngcontent-%COMP%] .map-and-list[_ngcontent-%COMP%] {\n top: 0px;\n height: 100%;\n }\n}\n@media (min-width: 320px) and (max-width: 767px) {\n .div_showbounds[_ngcontent-%COMP%] {\n position: fixed;\n }\n}\n@media (min-width: 768px) {\n .div_showbounds[_ngcontent-%COMP%] {\n position: relative;\n }\n}\n.filters-mobile[_ngcontent-%COMP%] {\n height: 40px;\n position: fixed;\n z-index: 1000;\n display: flex;\n justify-content: space-around;\n bottom: 0;\n left: 0;\n width: 100%;\n background-color: #0a2542;\n font-size: 14px;\n}\n@media (min-width: 768px) {\n .filters-mobile[_ngcontent-%COMP%] {\n display: none;\n }\n}\n.filters-mobile[_ngcontent-%COMP%] a[_ngcontent-%COMP%] {\n color: #fff;\n padding: 6px;\n text-align: center;\n white-space: nowrap;\n}\n.filters-mobile[_ngcontent-%COMP%] a[_ngcontent-%COMP%] svg[_ngcontent-%COMP%] {\n fill: #fff;\n width: 20px;\n height: 20px;\n vertical-align: middle;\n}"]}),t})();const ae=[{path:"",children:[{path:":pathProvince/:pathLocality/:pathNeighborhood",component:re},{path:":pathProvince/:pathLocality",component:re},{path:":pathProvince",component:re}]}];let se=(()=>{class t{}return t.\u0275mod=R.Ob({type:t}),t.\u0275inj=R.Nb({factory:function(e){return new(e||t)},imports:[[a.m.forChild(ae)],a.m]}),t})();function ce(t,e){1&t&&(R.Wb(0,"div",11),R.Tc(1,"\n "),R.Wb(2,"span"),R.hc(),R.Wb(3,"svg",12),R.Tc(4,"\n "),R.Rb(5,"use",13),R.Tc(6,"\n "),R.Vb(),R.Tc(7," VIP "),R.Vb(),R.Tc(8,"\n "),R.Vb())}function le(t,e){if(1&t&&R.Rb(0,"img",14),2&t){const t=R.ic(2);R.qc("src",t.broker.LogoUrl,R.Mc)}}function he(t,e){if(1&t&&R.Rb(0,"img",14),2&t){const t=R.ic(2);R.qc("src",t.broker.DefaultLogo,R.Mc)}}const pe=function(t){return[t]};function de(t,e){if(1&t&&(R.Wb(0,"div",1),R.Tc(1,"\n "),R.Wb(2,"div",2),R.Tc(3,"\n "),R.Wb(4,"div",3),R.Tc(5,"\n "),R.Rc(6,ce,9,0,"div",4),R.Tc(7,"\n "),R.Rc(8,le,1,1,"img",5),R.Tc(9,"\n "),R.Rc(10,he,1,1,"img",5),R.Tc(11,"\n "),R.Vb(),R.Tc(12,"\n "),R.Wb(13,"div",6),R.Tc(14,"\n "),R.Wb(15,"h4"),R.Tc(16),R.Vb(),R.Tc(17,"\n "),R.Wb(18,"p"),R.Tc(19),R.Vb(),R.Tc(20,"\n "),R.Tc(21,"\n "),R.Vb(),R.Tc(22,"\n "),R.Vb(),R.Tc(23,"\n\n "),R.Wb(24,"div",7),R.Tc(25,"\n "),R.Wb(26,"a",8),R.hc(),R.Wb(27,"svg",9),R.Tc(28,"\n "),R.Rb(29,"use",10),R.Tc(30,"\n "),R.Vb(),R.Tc(31),R.jc(32,"translate"),R.Vb(),R.Tc(33,"\n "),R.Vb(),R.Tc(34,"\n"),R.Vb()),2&t){const t=R.ic();R.sc("id","",t.broker.Id,"Window"),R.Db(6),R.qc("ngIf",!0===t.broker.Vip),R.Db(2),R.qc("ngIf",t.broker.LogoUrl&&""!==t.broker.LogoUrl),R.Db(2),R.qc("ngIf",!t.broker.LogoUrl||""===t.broker.LogoUrl),R.Db(6),R.Uc(t.broker.Name),R.Db(3),R.Uc(t.broker.Address),R.Db(7),R.qc("routerLink",R.xc(10,pe,t.broker.TrovimapUrl)),R.Db(5),R.Vc(" ",R.kc(32,8,"propertyComments.viewMore"),"")}}let be=(()=>{class t extends Lt{}return t.\u0275fac=function(e){return ge(e||t)},t.\u0275cmp=R.Kb({type:t,selectors:[["trovimap-broker-info-window-mobile"]],features:[R.Ab],decls:1,vars:1,consts:[["class","listing__card--map-mobile",3,"id",4,"ngIf"],[1,"listing__card--map-mobile",3,"id"],[1,"card__text"],[1,"card__foto"],["class","card__vip",4,"ngIf"],["loading","lazy","alt","",3,"src",4,"ngIf"],[1,"card__price"],[1,"card__buttons"],["target","_blank",1,"trovimap-btn--link",3,"routerLink"],[1,"tp-icon--external-link"],[0,"xlink","href","assets/img/trovimap-svg.svg#tp-icon--external-link"],[1,"card__vip"],[1,"tp-icon--star"],[0,"xlink","href","assets/img/trovimap-svg.svg#tp-icon--star"],["loading","lazy","alt","",3,"src"]],template:function(t,e){1&t&&R.Rc(0,de,35,12,"div",0),2&t&&R.qc("ngIf",e.broker)},directives:[o.t,a.l],pipes:[E.e],styles:['.listing__card--map-mobile[_ngcontent-%COMP%] {\n font-family: "Source Sans Pro", sans-serif;\n margin: 0 auto;\n border-radius: 2px;\n background-color: white;\n box-shadow: 0px 0px 10px 3px rgba(0, 0, 0, 0.5) !important;\n min-width: 130px;\n position: relative;\n}\n@media (min-width: 768px) {\n .listing__card--map-mobile[_ngcontent-%COMP%] {\n width: 150px;\n margin: 0;\n }\n}\n.listing__card--map-mobile[_ngcontent-%COMP%] a[_ngcontent-%COMP%] {\n color: #243342;\n}\n.listing__card--map-mobile[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover {\n text-decoration: none;\n}\n.listing__card--map-mobile[_ngcontent-%COMP%] .close[_ngcontent-%COMP%] {\n margin-top: 0px;\n opacity: 1;\n font-size: 18px;\n color: #fff;\n border-radius: 50%;\n right: 5px;\n top: 5px;
1\n width: 20px;\n height: 20px;\n position: absolute;\n z-index: 3;\n background: rgba(0, 0, 0, 0.6);\n}\n.listing__card--map-mobile[_ngcontent-%COMP%] .close[_ngcontent-%COMP%] span[_ngcontent-%COMP%] {\n text-shadow: none;\n}\n.listing__card--map-mobile[_ngcontent-%COMP%] .card__price[_ngcontent-%COMP%] {\n line-height: 1;\n padding: 6px 10px;\n background: rgba(10, 37, 66, 0.9);\n color: #fff;\n text-align: center;\n margin: 0;\n width: 100%;\n}\n.listing__card--map-mobile[_ngcontent-%COMP%] .card__price[_ngcontent-%COMP%] .total[_ngcontent-%COMP%] {\n display: block;\n color: #fff;\n font-size: 18px;\n font-weight: 600;\n margin: 0;\n line-height: 1;\n margin-bottom: 3px;\n}\n.listing__card--map-mobile[_ngcontent-%COMP%] .card__price[_ngcontent-%COMP%] .square-meter[_ngcontent-%COMP%] {\n font-size: 12px;\n font-weight: 400;\n display: block;\n line-height: 1;\n}\n.listing__card--map-mobile[_ngcontent-%COMP%] .card__foto[_ngcontent-%COMP%] {\n position: relative;\n height: 75px;\n width: 100%;\n text-align: center;\n border-top-left-radius: 2px;\n border-top-right-radius: 2px;\n overflow: hidden;\n}\n.listing__card--map-mobile[_ngcontent-%COMP%] .card__foto[_ngcontent-%COMP%] .img-photo[_ngcontent-%COMP%], .listing__card--map-mobile[_ngcontent-%COMP%] .card__foto[_ngcontent-%COMP%] .img-loader[_ngcontent-%COMP%] {\n width: 100%;\n height: 100%;\n -o-object-fit: cover;\n object-fit: cover;\n top: 0;\n left: 0;\n position: absolute;\n}\n.listing__card--map-mobile[_ngcontent-%COMP%] .card__foto[_ngcontent-%COMP%] .img-photo[_ngcontent-%COMP%] {\n opacity: 0;\n}\n.listing__card--map-mobile[_ngcontent-%COMP%] .card__text[_ngcontent-%COMP%] {\n border-bottom: 1px solid #dfdfdf;\n line-height: 1;\n}\n.listing__card--map-mobile[_ngcontent-%COMP%] .card__buttons[_ngcontent-%COMP%] {\n font-size: 14px;\n}\n.listing__card--map-mobile[_ngcontent-%COMP%] .card__buttons[_ngcontent-%COMP%] .btn-flat[_ngcontent-%COMP%]:hover {\n background: #8cc13c;\n text-decoration: none;\n color: #0a2542;\n}\n.listing__card--map-mobile[_ngcontent-%COMP%] .card__buttons[_ngcontent-%COMP%] .btn-flat-outline[_ngcontent-%COMP%], .listing__card--map-mobile[_ngcontent-%COMP%] .card__buttons[_ngcontent-%COMP%] .trovimap-btn--star[_ngcontent-%COMP%] {\n background-color: #fff;\n color: #a3ce62;\n}\n.listing__card--map-mobile[_ngcontent-%COMP%] .card__buttons[_ngcontent-%COMP%] a[_ngcontent-%COMP%] {\n display: inline-block;\n width: 100%;\n text-align: center;\n line-height: 35px;\n color: #8ab34b;\n}\n.listing__card--map-mobile[_ngcontent-%COMP%] .card__buttons[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:first-child {\n border-right: 1px solid #dfdfdf;\n}\n.listing__card--map-mobile[_ngcontent-%COMP%] .card__buttons[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover {\n color: #709a30;\n}\n.listing__card--map-mobile[_ngcontent-%COMP%] .card__buttons[_ngcontent-%COMP%] a.grid-contact[_ngcontent-%COMP%] {\n background-color: #a3ce62;\n}\n.listing__card--map-mobile[_ngcontent-%COMP%] .card__buttons[_ngcontent-%COMP%] .trovimap-btn--star[_ngcontent-%COMP%] {\n width: 15%;\n}\n.listing__card--map-mobile[_ngcontent-%COMP%] .box-arrow[_ngcontent-%COMP%] {\n position: absolute;\n left: 0px;\n top: 0px;\n width: 16px;\n height: 20px;\n display: inline-block;\n}\n.listing__card--map-mobile[_ngcontent-%COMP%] .shadow-arrow[_ngcontent-%COMP%] {\n position: absolute;\n left: 0px;\n top: -14px;\n font-size: 48px;\n z-index: -2;\n color: transparent;\n text-shadow: -3px 0px 10px rgba(0, 0, 0, 0.5) !important;\n -webkit-filter: Shadow(Color=rgba(0, 0, 0, 0.5), Direction=130, Strength=1);\n filter: Shadow(Color=rgba(0, 0, 0, 0.5), Direction=130, Strength=1);\n \n}\n.listing__card--map-mobile[_ngcontent-%COMP%] .arrow[_ngcontent-%COMP%] {\n height: 0;\n position: absolute;\n display: block;\n width: 0;\n border-style: solid;\n border-width: 10px 16px 10px 0;\n border-color: transparent #fff !important;\n z-index: 1;\n top: 0px;\n left: 0px;\n}']}),t})();const ge=R.Yb(be);var me=n("PCNd"),ue=n("QcNi"),_e=n("W+Bs"),fe=n("+YVO");let ke=(()=>{class t{}return t.\u0275mod=R.Ob({type:t}),t.\u0275inj=R.Nb({factory:function(e){return new(e||t)},providers:[Xt,Lt,be,jt,F],imports:[[o.c,se,i.o,me.a,ue.BasicModalModule,_e.AuthenticationModule,fe.a,r.a]]}),t})()},"Ce1/":function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var o=n("AIBW"),i=n("3oGp"),r=n("sXtk"),a=n("KEDY");let s=(()=>{class t{constructor(t,e){this.httpClient=t,this.envService=e,this.serviceV2=e.settings.serviceV2}getClusters(t){return this.httpClient.post(this.serviceV2+"/map/clusters",t)}getPushpinFromES(t){return this.httpClient.post(this.serviceV2+"/map/pushpin-full",t)}getNewAreaLocationQuery(t,{adminarea2id:e="0",localityid:n="0",sublocalityid:o="0"},i){let r="0";switch(t){case 5:case 10:r=e;break;case 15:r=n;break;case 20:case 25:case 30:r=o}return"?locId="+r+"&type="+t+"&country="+i+"&withPolygons=false"}getNewAreaLocation(t){return this.httpClient.get(this.serviceV2+"/seo/view"+t)}getMapboxViewport(t){const e=t.getBounds();
1return new o.a(e.getNorthEast().lat,e.getSouthWest().lng,e.getSouthWest().lat,e.getNorthEast().lng)}getMapboxCenter(t){return{lat:t.getCenter().lat,lon:t.getCenter().lng}}}return t.\u0275fac=function(e){return new(e||t)(a.ac(i.a),a.ac(r.a))},t.\u0275prov=a.Mb({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},N664:function(t,e,n){"use strict";n.d(e,"a",(function(){return E}));var o=n("aKM5"),i=n("CcQg"),r=n("wyrA"),a=n("Npqc"),s=n("ccyI"),c=n("gbi4"),l=n("HD51"),h=n("w9wC"),p=n("t1nY"),d=n("Kszi"),b=n("ccL0"),g=n("jjsd"),m=n("KEDY"),u=n("KkRk"),_=n("+nzS"),f=n("LtPu"),k=n("KSMj"),v=n("kq8v"),x=n("DJW9"),S=n("gVRV");function w(t,e){if(1&t&&(m.Wb(0,"alert",27),m.Tc(1),m.jc(2,"translate"),m.Vb()),2&t){const t=m.ic();m.rc("type",t.alert.type),m.Db(1),m.Uc(m.kc(2,2,t.alert.msg))}}function P(t,e){if(1&t&&(m.Wb(0,"div",28),m.Tc(1,"\n "),m.Wb(2,"span",29),m.hc(),m.Wb(3,"svg",30),m.Rb(4,"use",31),m.Vb(),m.Tc(5),m.Vb(),m.Tc(6,"\n "),m.Tc(7,"\n "),m.Vb()),2&t){const t=m.ic();m.Db(5),m.Uc(t.broker.Name)}}function M(t,e){1&t&&(m.Ub(0),m.Tc(1,"\n "),m.Wb(2,"div",32),m.Tc(3,"\n "),m.hc(),m.Wb(4,"svg",33),m.Rb(5,"use",34),m.Vb(),m.Tc(6,"\n "),m.Vb(),m.Tc(7,"\n "),m.gc(),m.Wb(8,"div",35),m.Tc(9,"\n "),m.Wb(10,"span"),m.Tc(11),m.jc(12,"translate"),m.Vb(),m.Tc(13,"\n "),m.Vb(),m.Tc(14,"\n "),m.Tb()),2&t&&(m.Db(11),m.Uc(m.kc(12,1,"general.property.contactBroker")))}function C(t,e){1&t&&m.Rb(0,"span",36)}function T(t,e){1&t&&(m.Ub(0),m.Tc(1,"\n "),m.Tc(2,"\n "),m.Wb(3,"div",32),m.Tc(4,"\n "),m.hc(),m.Wb(5,"svg",38),m.Rb(6,"use",39),m.Vb(),m.Tc(7,"\n "),m.Vb(),m.Tc(8,"\n "),m.gc(),m.Wb(9,"div",35),m.Tc(10,"\n "),m.Wb(11,"span"),m.Tc(12),m.jc(13,"translate"),m.Vb(),m.Tc(14,"\n "),m.Vb(),m.Tc(15,"\n "),m.Tb()),2&t&&(m.Db(12),m.Uc(m.kc(13,1,"propertyAgent.contactAgent")))}function y(t,e){if(1&t&&(m.Wb(0,"a",41),m.Tc(1,"\n "),m.Wb(2,"span"),m.Tc(3),m.Vb(),m.Tc(4,"\n "),m.Vb()),2&t){const t=m.ic(5);m.sc("href","tel:",t.broker.Phone,"",m.Mc),m.Db(3),m.Uc(t.broker.Phone)}}function I(t,e){if(1&t&&(m.Ub(0),m.Tc(1,"\n "),m.Wb(2,"div",35),m.Tc(3,"\n "),m.Rc(4,y,5,2,"a",40),m.Tc(5,"\n "),m.Vb(),m.Tc(6,"\n "),m.Tb()),2&t){const t=m.ic(4);m.Db(4),m.qc("ngIf",t.broker.Phone)}}function O(t,e){1&t&&(m.Ub(0),m.Tc(1,"\n "),m.Wb(2,"span"),m.Tc(3),m.jc(4,"translate"),m.Vb(),m.Tc(5,"\n "),m.Tb()),2&t&&(m.Db(3),m.Uc(m.kc(4,1,"propertyAgent.phoneNotAvailable")))}function B(t,e){if(1&t&&(m.Ub(0),m.Tc(1,"\n "),m.Rc(2,I,7,1,"ng-container",24),m.Tc(3,"\n "),m.Rc(4,O,6,3,"ng-container",24),m.Tc(5,"\n "),m.Tb()),2&t){const t=m.ic(3);m.Db(2),m.qc("ngIf",t.broker.Phone),m.Db(2),m.qc("ngIf",t.phoneRequested&&!t.broker.Phone)}}function L(t,e){if(1&t&&(m.Ub(0),m.Tc(1,"\n "),m.Rc(2,T,16,3,"ng-container",24),m.Tc(3,"\n "),m.Rc(4,B,6,2,"ng-container",24),m.Tc(5,"\n "),m.Tb()),2&t){const t=m.ic(2);m.Db(2),m.qc("ngIf",!t.phoneRequested||!t.phoneLoaded),m.Db(2),m.qc("ngIf",t.phoneRequested&&t.phoneLoaded)}}function D(t,e){1&t&&(m.Ub(0),m.Tc(1,"\n "),m.Rb(2,"span",36),m.Tc(3,"\n "),m.Tb())}function R(t,e){if(1&t){const t=m.Xb();m.Wb(0,"button",37),m.ec("click",(function(){m.Jc(t);const e=m.ic();return e.phoneViewed(e.gaTrack)})),m.Tc(1,"\n "),m.Rc(2,L,6,2,"ng-container",24),m.Tc(3,"\n "),m.Rc(4,D,4,0,"ng-container",24),m.Tc(5,"\n "),m.Vb()}if(2&t){const t=m.ic();m.qc("disabled",t.submitting),m.Db(2),m.qc("ngIf",!t.submittingPhone),m.Db(2),m.qc("ngIf",t.submittingPhone)}}let E=(()=>{class t{constructor(t,e,n,o,i,r,a,s,c,l,h,p,d,b){this.fb=t,this.authService=e,this.commonService=n,this.localSt=o,this.translate=i,this.translateNotifier=r,this.brokerService=a,this.analyticService=s,this.localStorageService=c,this.modalService=l,this.bsModalService=h,this.changedDetRef=p,this.cve=d,this.parsingService=b,this.phoneRequested=!1,this.submitting=!1,this.submitted=!1,this.alert={},this.isSmartPhone=this.commonService.isSmartphone(),this.isTablet=this.commonService.isTablet(),this.phoneLoaded=!1,this.submittingPhone=!1,this.user=this.authService.getLocalUser(),this.customErrorMessages=d.customErrorMessages}ngOnInit(){let t;this.commonService.isBrowser()&&(t=this.localSt.retrieve("contact")),this.model=null!=t?t:new a.a({},{}
1),this.user&&(this.user.name&&""!==this.user.name&&(this.model.name=this.user.name),this.user.email&&""!==this.user.email&&(this.model.email=this.user.email),this.user.phone&&""!==this.user.phone&&(this.model.phone=this.user.phone)),this.myForm=this.fb.group({name:[this.model.name,[o.I.required,o.I.minLength(3),o.I.maxLength(20),o.I.pattern(this.parsingService.usernameRegex)]],email:["",{validators:[o.I.required,this.cve.validateEmail(this.parsingService.emailRegex)]}],phone:[this.model.phone,[]],phone_displayed:[""],comments:[this.message,[o.I.required,o.I.maxLength(254)]],privacy:[!1,o.I.requiredTrue]}),this.myForm.controls.name.value&&(this.myForm.controls.name.markAsDirty(),this.myForm.controls.name.markAsTouched()),setTimeout(()=>{this.model.email&&this.myForm.controls.email.patchValue(this.model.email),this.myForm.controls.email.value&&(this.myForm.controls.email.markAsDirty(),this.myForm.controls.email.markAsTouched())}),this.translateNotifier.languageLoaded().then(()=>{this.languageLoaded$=this.translateNotifier.langLoaded$.subscribe(t=>{t&&this.message&&this.myForm.patchValue({comments:this.translate.instant(this.message)})})}),this.windowSize$=this.commonService.$windowSize.pipe(Object(i.a)(50)).subscribe(t=>{this.isSmartPhone=this.commonService.isSmartphone(),this.isTablet=this.commonService.isTablet(),this.isSmartPhone&&this.isTablet||(this.isModal=!1)})}onSubmit(t){if(this.submitting=!0,!this.myForm.valid)return this.submitting=!1,void(this.alert={type:"danger",msg:"general.error.missingContactFields"});const e=new a.a(null,null);e.brokerId=this.broker.Id,e.name=this.myForm.controls.name.value,e.email=this.myForm.controls.email.value,this.myForm.controls.comments&&this.myForm.controls.comments.value&&(e.comments=this.myForm.controls.comments.value),this.myForm.controls.phone.value&&this.myForm.controls.phone.value.length>0&&(e.phone=this.myForm.controls.phone.value),e.lang=this.translate.currentLang,this.brokerService.sendEmailToBroker(e).subscribe(e=>{let n="",o="",i="";this.broker&&(n=this.broker.Name?this.broker.Name:this.broker.Id,o=this.broker.Id,i=this.broker.City?this.broker.City:this.broker.District?this.broker.District:""),(t||this.gaTrack)&&this.analyticService.leadBrokerFormTrigger(t||this.gaTrack||"",i,o,n,this.broker.Vip?1:0),this.submitted=!0,this.submitting=!1,this.alert={type:"info",msg:"propertyAgent.emailSent"},this.changedDetRef.markForCheck(),setTimeout(()=>{this.alert={},this.changedDetRef.markForCheck()},5e3),this.localSt.store("contact",this.model)},t=>{this.submitting=!1})}phoneViewed(t){if(!0!==this.phoneRequested)if(this.myForm.valid){this.model.phone=this.myForm.controls.phone?this.myForm.controls.phone.value:void 0;let e,n="",o="",i="";this.broker&&(n=this.broker.Name?this.broker.Name:this.broker.Id,o=this.broker.Id,i=this.broker.City?this.broker.City:this.broker.District?this.broker.District:"",e=this.broker.Vip?1:0);const r=new a.a(null,null);r.brokerId=this.broker.Id,r.name=this.myForm.controls.name.value,r.email=this.myForm.controls.email.value,r.comments=this.translate.instant("lead.phone.viewPhone"),this.myForm.controls.phone.value&&this.myForm.controls.phone.value.length>0&&(r.phone=this.myForm.controls.phone.value),r.lang=this.translate.currentLang,this.submittingPhone=!0,this.brokerService.sendEmailToBroker(r).subscribe(t=>{this.broker.Phone=t.phone,this.phoneLoaded=!0,this.submittingPhone=!1,this.changedDetRef.detectChanges(),this.changedDetRef.markForCheck()},t=>{this.submittingPhone=!1,this.changedDetRef.detectChanges(),this.changedDetRef.markForCheck()}),(t||this.gaTrack)&&this.analyticService.leadPhoneBrokerTrigger(t||this.gaTrack,i,o,n,e),this.phoneRequested=!0,this.localStorageService.store("contact",this.model)}else this.modalService.showModalError(this.bsModalService,{messages:["general.error.missingContactFields"]})}changePhoneValue(t){this.myForm.patchValue({phone:t})}privacyChanged(t){this.myForm.patchValue({privacy:t})}ngOnDestroy(){this.languageLoaded$&&this.languageLoaded$.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(m.Qb(o.h),m.Qb(s.a),m.Qb(c.a),m.Qb(u.a),m.Qb(_.f),m.Qb(l.a),m.Qb(h.a),m.Qb(p.a),m.Qb(u.a),m.Qb(d.a),m.Qb(r.b),m.Qb(m.h),m.Qb(b.a),m.Qb(g.a))},t.\u0275cmp=m.Kb({type:t,selectors:[["trovimap-contact-broker"]],inputs:{broker:"broker",message:"message",showlabel:"showlabel",gaTrack:"gaTrack",isModal:"isModal"},decls:91,vars:27,consts:[["class","contact-alert",3,"type",4,"ngIf"],["class","form__message",4,"ngIf"],[3,"ngClass"],[1,"contact-box__form"],["id","test-form",3,"formGroup","ngSubmit"],[1,"row"],[1,"col-sm-12"],[1,"form-group","troviform",3,"customErrorMessages"],["for","contact_username","translate","general.form.name",1,"hidden"],["id","contact_username","formControlName","name","type","text",1,"form-control",3,"placeholder"],[1,"row","form-group","trovimap-form-phone","troviform"],[3,"label","formInstance","phone","phoneChange"],["id","contact_phone","formControlName","phone","type","hidden",3,"placeholder"],["for","email","translate","general.form.email",1,"hidden"],["id","email","formControlName","email","type","email",1,"form-control",3,"placeholder"],["for","contact_comments","translate","contact.comments",1,"hidden"],["id","contact_comments","formControlName","comments","cols","30","rows","10",1,"form-control"],[1,"tp__checkbox-wrapper","form-group",3,"customErrorMessages"],["for","privacy_contact","translate","footer.privacyPolicy",1,"hidden"],[1,"tp__checkbox-container",3,"valueChange"],["for","privacy_contact",1,"tp__checkbox--label",3,"innerHtml"],["id","privacy_contact","formControlName","privacy","type","hidden",1,"tp__checkbox--input"],[1,"contact__buttons"],["type","submit",1,"tp-btn","tp-btn--xl","tp-btn--accent","tp-btn--block","tp-btn--left-icon",3,"disabled"],[4,"ngIf"],["class","trovimap-button-spinner2",4,"ngIf"],["type","button","class","tp-btn tp-btn--xl tp-btn--primary tp-btn--block tp-btn--left-icon",3,"disabled","click",4,"ngIf"],[1,"contact-alert",3,"type"],[1,"form__message"],[1,"broker"],[1,"tp-icon--user-solid",2,"margin-right","4px"],[0,"xlink","href","assets/img/trovimap-svg.svg#tp-icon--user-solid"],[1,"tp-btn__icon"],[1,"tp-icon--envelope"],[0,"xlink","href","assets/img/trovimap-svg.svg#tp-icon--envelope"],[1,"tp-btn__text"],[1,"trovimap-button-spinner2"],["type","button",1,"tp-btn","tp-btn--xl","tp-btn--primary","tp-btn--block","tp-btn--left-icon",3,"disabled","click"],[1,"tp-icon--phone"],[0,"xlink","href","assets/img/trovimap-svg.svg#tp-icon--phone"],["class","phone-link",3,"href",4,"ngIf"],[1,"ph
1one-link",3,"href"]],template:function(t,e){1&t&&(m.Wb(0,"div"),m.Tc(1,"\n "),m.Rc(2,w,3,4,"alert",0),m.Tc(3,"\n "),m.Rc(4,P,8,1,"div",1),m.Tc(5,"\n "),m.Wb(6,"div",2),m.Tc(7,"\n "),m.Wb(8,"div",3),m.Tc(9,"\n "),m.Wb(10,"form",4),m.ec("ngSubmit",(function(){return e.onSubmit(e.gaTrack)})),m.Tc(11,"\n "),m.Wb(12,"div",5),m.Tc(13,"\n "),m.Wb(14,"div",6),m.Tc(15,"\n "),m.Wb(16,"div",7),m.Tc(17,"\n "),m.Tc(18,"\n "),m.Rb(19,"label",8),m.Tc(20,"\n "),m.Rb(21,"input",9),m.jc(22,"translate"),m.Tc(23,"\n "),m.Vb(),m.Tc(24,"\n "),m.Wb(25,"div",10),m.Tc(26,"\n "),m.Wb(27,"trovimap-phone",11),m.ec("phoneChange",(function(t){return e.changePhoneValue(t)})),m.Vb(),m.Tc(28,"\n "),m.Rb(29,"input",12),m.jc(30,"translate"),m.Tc(31,"\n "),m.Vb(),m.Tc(32,"\n "),m.Wb(33,"div",7),m.Tc(34,"\n "),m.Tc(35,"\n "),m.Rb(36,"label",13),m.Tc(37,"\n "),m.Rb(38,"input",14),m.jc(39,"translate"),m.Tc(40,"\n "),m.Vb(),m.Tc(41,"\n "),m.Vb(),m.Tc(42,"\n "),m.Wb(43,"div",6),m.Tc(44,"\n "),m.Wb(45,"div",7),m.Tc(46,"\n "),m.Rb(47,"label",15),m.Tc(48,"\n "),m.Rb(49,"textarea",16),m.Tc(50,"\n "),m.Vb(),m.Tc(51,"\n "),m.Vb(),m.Tc(52,"\n "),m.Vb(),m.Tc(53,"\n "),m.Wb(54,"div",5),m.Tc(55,"\n "),m.Wb(56,"div",6),m.Tc(57,"\n "),m.Wb(58,"div",17),m.Tc(59,"\n "),m.Rb(60,"label",18),m.Tc(61,"\n "),m.Wb(62,"trovimap-checkbox",19),m.ec("valueChange",(function(t){return e.privacyChanged(t)})),m.Vb(),m.Tc(63,"\n "),m.Rb(64,"label",20),m.jc(65,"translate"),m.Tc(66,"\n "),m.Rb(67,"input",21),m.Tc(68,"\n "),m.Vb(),m.Tc(69,"\n "),m.Vb(),m.Tc(70,"\n "),m.Wb(71,"div",6),m.Tc(72,"\n "),m.Wb(73,"div",22),m.Tc(74,"\n "),m.Wb(75,"button",23),m.Tc(76,"\n "),m.Rc(77,M,15,3,"ng-container",24),m.Tc(78,"\n "),m.Rc(79,C,1,0,"span",25),m.Tc(80,"\n "),m.Vb(),m.Tc(81,"\n "),m.Rc(82,R,6,3,"button",26),m.Tc(83,"\n "),m.Vb(),m.Tc(84,"\n "),m.Vb(),m.Tc(85,"\n "),m.Vb(),m.Tc(86,"\n "),m.Vb(),m.Tc(87,"\n "),m.Vb(),m.Tc(88,"\n "),m.Vb(),m.Tc(89,"\n"),m.Vb(),m.Tc(90,"\n")),2&t&&(m.Db(2),m.qc("ngIf",e.alert.type),m.Db(2),m.qc("ngIf",e.broker&&e.broker.Name&&(e.isTablet||e.isSmartPhone||e.isModal)),m.Db(2),m.qc("ngClass",e.isTablet||e.isSmartPhone||e.isModal?"contact-content":"contact-box__content"),m.Db(4),m.qc("formGroup",e.myForm),m.Db(6),m.qc("customErrorMessages",e.customErrorMessages),m.Db(5),m.sc("placeholder","",m.kc(22,19,"general.form.name"),"*"),m.Db(6),m.qc("label","report.phoneNumber")("formInstance",e.myForm)("phone",e.model.phone),m.Db(2),m.rc("placeholder",m.kc(30,21,"report.phoneNumber")),m.Db(4),m.qc("customErrorMessages",e.customErrorMessages),m.Db(5),m.rc("placeholder",m.kc(39,23,"general.form.email")),m.Db(7),m.qc("customErrorMessages",e.customErrorMessages),m.Db(13),m.qc("customErrorMessages",e.customErrorMessages),m.Db(6),m.qc("innerHtml",m.kc(65,25,"contact.privacy"),m.Kc),m.Db(11),m.qc("disabled",e.submitting||e.submitted),m.Db(2),m.qc("ngIf",!e.submitting),m.Db(2),m.qc("ngIf",e.submitting),m.Db(3),m.qc("ngIf",e.broker))},directives:[f.t,f.q,o.K,o.v,o.m,k.d,k.c,_.b,o.d,k.b,o.u,o.k,v.a,x.a,S.a],pipes:[_.e],styles:[".form__message[_ngcontent-%COMP%] {\n display: flex;\n display: -ms-flexbox;\n \n align-items: center;\n justify-content: space-between;\n}\n.form__message[_ngcontent-%COMP%] .broker[_ngcontent-%COMP%] {\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden;\n max-width: 100%;\n margin-right: 8px;\n}\n.contact__buttons[_ngcontent-%COMP%] .tp-btn--accent[_ngcontent-%COMP%] {\n margin-bottom: 8px;\n}\n.contact__buttons[_ngcontent-%COMP%] .phone-link[_ngcontent-%COMP%] {\n color: #fff;\n}\n.contact__buttons[_ngcontent-%COMP%] .phone-link[_ngcontent-%COMP%]:hover {\n
1color: #fff;\n text-decoration: none;\n}"],changeDetection:0}),t})()},Sfnw:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var o=n("KEDY"),i=n("+nzS");let r=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=o.Kb({type:t,selectors:[["trovimap-mapbox-zoom"]],inputs:{mapControl:"mapControl"},decls:20,vars:8,consts:[["name","mapZoomIn","id","mapZoomIn","type","button",1,"btn","btn-map-control-cma",3,"disabled","click"],[3,"title"],[1,"tp-icon--plus"],[0,"xlink","href","assets/img/sr-svg.svg#tp-icon--plus"],["id","mapZoomOut","type","button",1,"btn","btn-map-control-cma",3,"disabled","click"],[1,"tp-icon--minus"],[0,"xlink","href","assets/img/sr-svg.svg#tp-icon--minus"]],template:function(t,e){1&t&&(o.Wb(0,"button",0),o.ec("click",(function(){return e.mapControl.zoomIn()})),o.Tc(1,"\n "),o.Wb(2,"div",1),o.jc(3,"translate"),o.Tc(4,"\n "),o.hc(),o.Wb(5,"svg",2),o.Rb(6,"use",3),o.Vb(),o.Tc(7,"\n "),o.Vb(),o.Tc(8,"\n"),o.Vb(),o.Tc(9,"\n"),o.gc(),o.Wb(10,"button",4),o.ec("click",(function(){return e.mapControl.zoomOut()})),o.Tc(11,"\n "),o.Wb(12,"div",1),o.jc(13,"translate"),o.Tc(14,"\n "),o.hc(),o.Wb(15,"svg",5),o.Rb(16,"use",6),o.Vb(),o.Tc(17,"\n "),o.Vb(),o.Tc(18,"\n"),o.Vb(),o.Tc(19,"\n")),2&t&&(o.qc("disabled",e.mapControl.getZoom()>=21),o.Db(2),o.rc("title",o.kc(3,4,"map.zoomIn")),o.Db(8),o.qc("disabled",e.mapControl.getZoom()<=6),o.Db(2),o.rc("title",o.kc(13,6,"map.zoomOut")))},pipes:[i.e],styles:[""]}),t})()},Ukz3:function(t,e,n){"use strict";n.d(e,"a",(function(){return p}));var o=n("rrml"),i=n("LP1/"),r=n("pJiT"),a=n("jjsd"),s=n("sgvv"),c=n("KEDY"),l=n("YQR1"),h=n("+nzS");let p=(()=>{class t{constructor(t,e,n,o){this.seoService=t,this.activatedRoute=e,this.translate=n,this.parsingService=o}seoAlternativeLanguagePage(){const t=this.seoService.getBaseUrl()+(this.seoService.document.location.pathname||this.seoService.path);this.seoService.addLinkElem({rel:"alternate",id:"alternate-es",hreflang:"es",href:t+"?lang=es"}),this.seoService.addLinkElem({rel:"alternate",id:"alternate-en",hreflang:"en",href:t+"?lang=en"}),this.seoService.addLinkElem({rel:"alternate",id:"alternate-ca",hreflang:"ca",href:t+"?lang=ca"}),this.seoService.addLinkElem({rel:"alternate",id:"alternate-default",hreflang:"x-default",href:t})}seoCanonicalTag(t,e,n){const o=this.seoService.normalizeUrl(this.seoService.document.location.pathname||this.seoService.path,t);let i=this.seoService.getBaseUrl()+o;i=i.replace("/v2",""),t&&(i=i.toLowerCase()),e&&e.length>0&&(i=i.replace(e.toLowerCase(),n)),this.activatedRoute.snapshot.queryParams&&this.activatedRoute.snapshot.queryParams.page&&this.activatedRoute.snapshot.queryParams.page>1&&(i+="?page="+this.activatedRoute.snapshot.queryParams.page),this.seoService.addLinkElem({rel:"canonical",id:"seoLinkCanonical",href:i})}getParameterTranslatedLowerCase(t,e,n,r){if(t===s.a.broker_search){const t=this.translate.instant("sitemap.category.realEstateAgencies").replace(" ","");return{id:0,translation:t,foundTranslation:{id:0,translation:t},error:!1}}const a=[];let c=!1;"number"!=typeof t&&(t=this.parsingService.formatParameterForLinkForAPI(t,!1)),Object(o.a)(e,t=>{let e=this.translate.instant(t[n]).trim();e=this.parsingService.formatStringForDataBaseQuery(this.parsingService.formatParameterForLink(e),!1).toLowerCase(),a.push({id:t.id,translation:e})});const l=Object(i.a)(a,e=>e.translation===t);l&&(t=l.id),e[t]||(t=r||1,c=!0);const h=this.translate.instant(e[t][n]).trim().replace(/ /g," ");return{id:t,translation:h,foundTranslation:l,error:c}}getBrokersJsonLd(t){if(t){const e=[];return Object(o.a)(t,t=>{if(t&&t.fields){const n=this.getBrokerJsonLd(t);n&&e.push(n)}}),e}}getBrokerJsonLd(t){const e={"@context":"http://schema.org","@type":"RealEstateAgent",name:t.Name,telephone:t.Phone,email:t.Email,address:{"@type":"PostalAddress"}},n=[];t.LogoUrl&&n.push(t.LogoUrl),t.Image&&n.push(t.Image),e.image=n.length>0?n:[t.DefaultLogo],t.Fax&&(e.faxNumber=t.Fax),t.WebsiteUrl&&(e.url=t.WebsiteUrl);const o=[];return t.Address&&o.push(t.Address),o.length>0&&(e.address.streetAddress=o),t.City&&(e.address.addressLocality=t.City),t.Province&&(e.address.addressRegion=t.Province),t.Zipcode&&(e.address.postalCode=t.Zipcode),e}getBrokerSeachMetaTitle(t,e){let n=this.translate.instant("brokerSearch.brokerIn");return t.Neighborhood&&t.Locality?n+=" "+t.Locality+" - "+t.Neighborhood+" ("+t.AdminArea2+")":t.Locality?n+=" "+t.Locality+" ("+t.AdminArea2+")":t.AdminArea2?n+=" "+t.AdminArea2:t.searchTextInLocation&&(n+=" "+t.searchTextInLocation),e&&e>1&&(n+=" - "+this.translate.instant("general.page")+" "+e),n.replace(/ /g," ")}getBrokerSearchMetaDescription(t,e,n){let o="",i="",r=t.AdminArea2;if(5===t.Type?(i="brokerSearch.seoMetaDescriptionNoLocation",o=this.translate.instant(i,{province:r,total:e})):(i="brokerSearch.seoMetaDescription",100===t.Type&&(r=t.Locality+" ("+r+")"),o=this.translate.instant(i,{location:t.Name,province:r,total:e})),n&&n>1){let t=this.translate.instant("general.page");t=t.charAt(0).toUpperCase()+t.slice(1),o+=" "+t+" "+n+"."}return o.replace(/ /g," ")}getListBrokersTitle(t){let e=this.translate.instant("brokerSearch.listBrokerIn");
1return t?t.Neighborhood?e+=" "+t.Neighborhood+" - "+t.Locality+" ("+t.AdminArea2+")":t.Locality?e+=" "+t.Locality+" ("+t.AdminArea2+")":t.AdminArea2?e+=" "+t.AdminArea2:t.searchText&&(e+=" "+t.searchText):e+=" "+this.translate.instant("map.map"),e.replace(/ /g," ")}seoSetEvaluateFree(){const t=this.seoService.getBaseUrl()+"/tasacion-viviendas-online";this.seoService.addLinkElem({rel:"alternate",hreflang:"es",href:t+"?lang=es"}),this.seoService.addLinkElem({rel:"alternate",hreflang:"en",href:t+"?lang=en"}),this.seoService.addLinkElem({rel:"alternate",hreflang:"ca",href:t+"?lang=ca"}),this.seoService.addLinkElem({rel:"alternate",hreflang:"x-default",href:t}),this.seoService.seoCanonicalTagFromPage("/tasacion-viviendas-online")}}return t.\u0275fac=function(e){return new(e||t)(c.ac(r.a),c.ac(l.a),c.ac(h.f),c.ac(a.a))},t.\u0275prov=c.Mb({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},cwMQ:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var o=n("KEDY");let i=(()=>{class t{constructor(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=o.Mb({token:t,factory:t.\u0275fac}),t})()},h2Cy:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var o=n("KEDY"),i=n("+nzS"),r=n("LtPu");let a=(()=>{class t{constructor(t){this.changeDetRef=t,this.hideTypeButton=!0,this.mapTypeSelected="automatic"}ngOnChanges(t){t.inputMapType&&t.inputMapType.currentValue&&(this.mapTypeSelected=this.inputMapType,this.changeDetRef.markForCheck()),t.zoom&&t.zoom.currentValue&&(this.setMapType(this.mapTypeSelected),this.changeDetRef.markForCheck())}selectedMapType(t){return this.mapControl&&this.mapTypeSelected===t?"active":""}showSatellite(t){this.mapControl.setLayoutProperty("mapbox-satellite","visibility",t?"visible":"none")}setMapType(t){switch(this.mapTypeSelected=t,t){case"satellite":this.showSatellite(!0);break;case"roadmap":this.showSatellite(!1);break;case"automatic":this.mapControl.getZoom()>18?this.showSatellite(!0):this.showSatellite(!1)}this.changeDetRef.detectChanges()}changeHideTypeButton(){this.hideTypeButton=!this.hideTypeButton,this.changeDetRef.detectChanges()}}return t.\u0275fac=function(e){return new(e||t)(o.Qb(o.h))},t.\u0275cmp=o.Kb({type:t,selectors:[["trovimap-mapbox-type"]],inputs:{mapControl:"mapControl",zoom:"zoom",inputMapType:"inputMapType"},features:[o.Bb],decls:17,vars:12,consts:[["translate","map.satellite",1,"btn","btn-map-control-cma","mar-rig-5",3,"ngClass","click"],["translate","map.roadmap",1,"btn","btn-map-control-cma","mar-rig-5",3,"ngClass","click"],[1,"btn","btn-map-control-cma","mar-rig-5",3,"ngClass","click"],[1,"btn","btn-map-control-cma",3,"title","click"],[1,"tp-icon--layers"],[0,"xlink","href","assets/img/sr-svg.svg#tp-icon--layers"]],template:function(t,e){1&t&&(o.Wb(0,"span",0),o.ec("click",(function(t){return t.preventDefault(),t.stopPropagation(),e.setMapType("satellite")})),o.Vb(),o.Tc(1,"\n"),o.Wb(2,"span",1),o.ec("click",(function(t){return t.preventDefault(),t.stopPropagation(),e.setMapType("roadmap")})),o.Vb(),o.Tc(3,"\n"),o.Wb(4,"span",2),o.ec("click",(function(t){return t.preventDefault(),t.stopPropagation(),e.setMapType("automatic")})),o.Tc(5,"Automatic"),o.Vb(),o.Tc(6,"\n"),o.Wb(7,"div",3),o.ec("click",(function(){return e.changeHideTypeButton()})),o.jc(8,"translate"),o.Tc(9,"\n "),o.Wb(10,"div"),o.Tc(11,"\n "),o.hc(),o.Wb(12,"svg",4),o.Rb(13,"use",5),o.Vb(),o.Tc(14,"\n "),o.Vb(),o.Tc(15,"\n"),o.Vb(),o.Tc(16,"\n")),2&t&&(o.Qc("display",e.hideTypeButton?"none":"inherit"),o.qc("ngClass",e.selectedMapType("satellite")),o.Db(2),o.Qc("display",e.hideTypeButton?"none":"inherit"),o.qc("ngClass",e.selectedMapType("roadmap")),o.Db(2),o.Qc("display",e.hideTypeButton?"none":"inherit"),o.qc("ngClass",e.selectedMapType("automatic")),o.Db(3),o.rc("title",o.kc(8,10,"map.mayType")))},directives:[i.b,r.q],pipes:[i.e],styles:[""],encapsulation:2,changeDetection:0}),t})()},w9wC:function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var o=n("jjsd"),i=n("ccyI"),r=n("3oGp"),a=n("sXtk"),s=n("KEDY"),c=n("YQR1");let l=(()=>{class t{constructor(t,e,n,o,i){this.httpClient=t,this.parsingService=e,this.router=n,this.authService=o,this.envService=i}getBrokerById(t){return this.httpClient.get(this.envService.settings.serviceV2+"/broker/"+t)}sendEmailToBroker(t){return this.httpClient.post(this.envService.settings.serviceV2+"/contact/broker",t,{withCredentials:!0})}
1checkPathParams(t){const e="pro/"+(void 0!==t.Name?this.parsingService.formatParameterForLink(t.Name).toLowerCase():"")+"/"+t.Id;return this.router.navigate([e],{replaceUrl:!0}),e}}return t.\u0275fac=function(e){return new(e||t)(s.ac(r.a),s.ac(o.a),s.ac(c.i),s.ac(i.a),s.ac(a.a))},t.\u0275prov=s.Mb({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()}}]);
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.