1import{a as O,b as B}from"./chunk-CMXAI4RC.js";import"./chunk-4BNDLF4Q.js";import"./chunk-FKPR3LAI.js";import"./chunk-FE6PUOCS.js";import"./chunk-6C6B2GKY.js";import{d as z,t as j,w as A}from"./chunk-EORWGWNX.js";import"./chunk-OIPCR3UO.js";import"./chunk-Q3WPUYT6.js";import{l as k}from"./chunk-GWRRF45W.js";import"./chunk-4IHID5D6.js";import"./chunk-ERAHZDYO.js";import{a as x}from"./chunk-DL4MVPKO.js";import"./chunk-BY5CVS2S.js";import"./chunk-2J5KWTT3.js";import"./chunk-GFO3QNEP.js";import{t as L}from"./chunk-OMKW2JB5.js";import"./chunk-M36GUI2X.js";import{Ga as n,Hb as G,Ja as v,Ka as a,Pa as g,Pc as E,V as r,Xa as y,Za as I,aa as _,ba as h,cb as s,db as l,eb as p,fa as S,fb as M,ic as m,jc as d,nc as N,pb as b,sa as C,vb as D,xb as w,ya as T,yd as c}from"./chunk-CXBPM7YT.js";import{g as q}from"./chunk-IM5V7DCU.js";var F=q(z());function H(e,f){if(e&1){let t=b();l(0,"app-destinations-info-window",4),D("onClose",function(){let o=_(t).onClose;return h(o())}),p()}if(e&2){let t=f.marker;s("marker",t)}}function K(e,f){if(e&1&&(l(0,"section",1)(1,"div",2),M(2,"app-map",3),m(3,"layout"),m(4,"async"),g(5,H,1,1,"ng-template",null,0,N),p()()),e&2){let t=G(6),i=w();T(2),s("markers",i.markers)("fitBounds",!0)("infoWindow",t)("zoom",d(4,6,d(3,4,i.Layout.mobile))?2:3)}}var P=(()=>{class e{destinationsService;loaderGlobalService;state;document;STATE_DESTINATIONS_LIST="STATE_DESTINATIONS_LIST";Layout=L;get destinations(){return this.state.get(this.STATE_DESTINATIONS_LIST,void 0)}set destinations(t){this.state.set(this.STATE_DESTINATIONS_LIST,t)}get markers(){return this.destinations?(0,F.default)(j.hotelsFlat(this.destinations),["slug"],["DSC"]):[]}constructor(t,i,o,V){this.destinationsService=t,this.loaderGlobalService=i,this.state=o,this.document=V;let u=this.document.querySelector("app-footer");u&&u.classList.add("d-none"),this.fetchDestinations()}ngOnDestroy(){let t=this.document.querySelector("app-footer");t&&t.classList.remove("d-none")}fetchDestinations(){if(this.destinations)return this.loaderGlobalService.hide(),Promise.resolve();this.destinationsService.destinations(!1,!1,"",!0).then(t=>{this.destinations=t,this.loaderGlobalService.hide()}).catch(()=>{this.loaderGlobalService.hide()})}static \u0275fac=function(i){return new(i||e)(n(A),n(k),n(C),n(S))};static \u0275cmp=v({type:e,selectors:[["app-global-map"]],decls:1,vars:1,consts:[["destinationsInfoWindow",""],[1,"destinations"],[1,"destinations__map"],[3,"markers","fitBounds","infoWindow","zoom"],[3,"onClose","marker"]],template:function(i,o){i&1&&y(0,K,7,8,"section",1),i&2&&I(o.markers?0:-1)},dependencies:[O,B,E,x],styles:[".destinations__map[_ngcontent-%COMP%]{height:100vh}"],changeDetection:0})}return e})();var U=[{path:"",component:P,data:{isNavbarHidden:!0}}],R=(()=>{class e{static \u0275fac=function(i){return new(i||e)};static \u0275mod=a({type:e});static \u0275inj=r({imports:[c.forChild(U),c]})}return e})();var ce=(()=>{class e{static \u0275fac=function(i){return new(i||e)};static \u0275mod=a({type:e});static \u0275inj=r({imports:[R]})}return e})();export{ce as GlobalMapModule};
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.