1import {X as Xe,x as xt}from'./chunk-D6ml56PH.js';import {a}from'./chunk-CSK4BC_A.js';import'./chunk-CiLKG3_7.js';import {GoogleMapComponent as zi}from'./chunk-HTXrZ3Rm.js';import'./chunk-DIOIlyyu.js';import'./chunk-Y5YXS9a9.js';import'./chunk-Bn0zx-Gv.js';import'./chunk-B02AT_YD.js';import {gF as Ne,m as mb,ck as lD,b as Rt,w as wt,d as dy,c as Ny,j as jM,D as Dt,v as v$1,an as s$1,ao as r$1,cv as xe,aD as ci,ba as Mt,g as Ts,aE as YM,k as jy,i as Vu,aF as JM,A as Aw,f as $u,S as S_,x as xy,q as qu,Z as Z_,u as N_,aO as PT,U as UM}from'./main-FGWGGG6G.js';import'./chunk-BQQpSqWr.js';import'./chunk-s_TL0S8x.js';import'./chunk-Maeo6MgZ.js';import'./chunk-C4pBoU0p.js';import'./chunk-B7ERqH6V.js';import'./chunk-DlhfGTbH.js';import'./chunk-BrLeaQ4v.js';import'./chunk-DrnFuQel.js';import'./chunk-Dh5r_Bg_.js';import {u}from'./chunk-DdQ1aweD.js';import'./chunk-C51rzMQT.js';import'./chunk-CfdfpFVA.js';import'./chunk-D80ihd6V.js';import'./chunk-_ClpSFtB.js';import'./chunk-Bta6x7F3.js';import'./chunk-CbqulXGf.js';import'./chunk-eYB9_WZk.js';import'./chunk-ChBhY3_o.js';import'./chunk-ChOlAO5K.js';import'./chunk-vlH_k_m0.js';import'./chunk-DSD_OVQ1.js';import'./chunk-BMkUcfyT.js';import'./chunk-Cnbwco__.js';import'./chunk-CgqMv0gi.js';import'./chunk-DqtWNb2V.js';var N=(()=>{class n{constructor(){this.mapTypes=["Review","CompletedListing","ActiveListing"],this.fullscreenRoute=null,this.store=v$1(Xe),this.options=s$1(r$1({},xe),{disableDefaultUI:true});}ngOnChanges(e){let{mapRequest:i}=e;i&&this.mapRequest&&(this.store.setMapRequest(this.mapRequest),this.store.setFilters(this.getFilters(this.mapRequest.markerType)));}onBoundsChanged(e){if(e){let i={locationId:void 0,locationType:void 0,shape:{shapeType:"Envelope",shapeCoordinates:e.map(t=>({lat:t.lat,lon:t.lng}))}};this.store.updateMapRequest(i);}}onMarkerSelected(e){this.store.setActiveMarkerEffect(e);}onMapTypeSelected(e){this.store.updateMapRequest({markerType:e}),this.store.setFilters(this.getFilters(e));}getFilters(e){return e==="Review"?{minStarRating:1}:{statuses:e==="ActiveListing"?"Active":"Sold"}}static{this.\u0275fac=function(i){return new(i||n)};}static{this.\u0275cmp=mb({type:n,selectors:[["rma-inline-map"]],inputs:{mapRequest:"mapRequest",mapTypes:"mapTypes",fullscreenRoute:"fullscreenRoute"},features:[jM([Xe,u,Dt("maps")]),lD],decls:13,vars:34,consts:[["buttonTopLocation","top-2",1,"block",3,"boundsSet","markerSelected","markerDeselected","options","enableDrawing","padding","markers","activeMarker","error","isSmallDevice","resetBounds","fullscreenRoute","fullscreenMapType"],[1,"absolute","left-2","top-2","z-10"],["displayMode","select",1,"drop-shadow-lg",3,"mapTypeSelected","mapTypes","mapType","verticalType","skipRouting"]],template:function(i,t){i&1&&(Ts(0,"rma-google-map",0),YM(1,"async"),YM(2,"async"),YM(3,"async"),YM(4,"async"),YM(5,"transloco"),YM(6,"async"),YM(7,"async"),YM(8,"async"),jy("boundsSet",function(r){return t.onBoundsChanged(r)})("markerSelected",function(r){return t.onMarkerSelected(r)})("markerDeselected",function(r){return t.store.setViewedMarker(r)}),Ts(9,"div",1)(10,"rma-marker-type-toggle",2),YM(11,"async"),YM(12,"async"),jy("mapTypeSelected",function(r){return t.onMapTypeSelected(r)}),Vu()()()),i&2&&(Ny("options",t.options)("enableDrawing",false)("padding",JM(1,14,t.store.padding$))("markers",JM(2,16,t.store.markers$))("activeMarker",JM(3,18,t.store.activeMarker$))("error",JM(5,22,JM(4,20,t.store.error$)))("isSmallDevice",JM(6,24,t.store.isSmallDevice$))("resetBounds",JM(7,26,t.store.resetBounds$))("fullscreenRoute",t.fullscreenRoute)("fullscreenMapType",JM(8,28,t.store.mapType$)),Aw(10),Ny("mapTypes",t.mapTypes)("mapType",JM(11,30,t.store.mapType$))("verticalType",JM(12,32,t.store.verticalType$))("skipRouting",true));},dependencies:[zi,Rt,xt,ci,Mt],encapsulation:2});}}return n})();var x=n=>({name:n});function V(n,C){if(n&1&&(Ts(0,"h2",1),xy(1,"span",3),YM(2,"possessive"),Vu()),n&2){let e=Z_().$implicit,i=Z_();Aw(),Ny("innerHtml",e(i.canHaveProperties?"blurb":"mb-blurb",UM(3,x,JM(2,1,C))),PT);}}function Y(n,C){if(n&1&&($u(0),S_(1,V,3,5,"h2",1),xy(2,"rma-inline-map",2),qu()),n&2){let e,i=Z_();Aw(),N_((e=i.name)?1:-1,e),Aw(),Ny("mapRequest",i.mapRequest)("mapTypes",i.mapTypes);}}var ue=(()=>{class n{constructor(){this.mapTypes=["Review","CompletedListing","ActiveListing"];}ngOnChanges(e){let{verticalType:i,profileType:t,profileCode:l,mapType:r,canHaveProperties:z}=e;(i||t||l||r)&&this.verticalType&&this.profileType&&this.profileCode&&this.mapType&&(this.mapRequest={verticalType:this.verticalType,profileIdentifiers:[{profileType:this.profileType,profileCode:this.profileCode}],from:Ne,markerType:this.mapType}),z&&(this.mapTypes=this.canHaveProperties?["Review","CompletedListing","ActiveListing"]:["Review"]);}static{this.\u0275fac=function(i){return new(i||n)};}static{this.\u0275cmp=mb({type:n,selectors:[["rma-profile-map-inline"]],inputs:{verticalType:"verticalType",profileType:"profileType",profileCode:"profileCode",mapType:"mapType",name:"name",canHaveProperties:"canHaveProperties"},features:[jM([Dt("profileMapCta")]),lD],decls:1,vars:1,consts:[[4,"transloco","translocoPrefix"],[1,"mat-headline-5"],["fullscreenRoute","../map",1,"block","h-96",3,"mapRequest","mapTypes"],[3,"innerHtml"]],template:function(i,t){i&1&&dy(0,Y,3,3,"ng-container",0),i&2&&Ny("translocoPrefix","profileMapCta");},dependencies:[N,Rt,wt,a],encapsulation:2});}}return n})();export{ue as ProfileMapInlineComponent};//# sourceMappingURL=chunk-Bao1ttqu.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.