1import{a as F}from"./chunk-O75M42YW.js";import{a as T}from"./chunk-QFUBV6G7.js";import{d as D,v as w}from"./chunk-WN7XEXF3.js";import{$b as n,Gb as u,Ia as a,Lb as v,Ma as f,Nb as P,Ob as M,Pb as k,Qb as d,Rb as m,Sb as S,Tc as z,Wb as _,_b as h,cb as b,fb as l,fc as O,gb as c,gc as V,hc as I,na as g,uc as B,xa as y,ya as s,yb as x,za as p}from"./chunk-FBADWYZW.js";var R=["swiperCarousel"];function A(r,C){if(r&1){let e=_();d(0,"div",4)(1,"app-mobile-property-card",5),h("book",function(){let t=s(e).$implicit,o=n(2);return p(o.propertyClick(t))})("details",function(){let t=s(e).$implicit,o=n(2);return p(o.clickDetails(t))}),m()()}if(r&2){let e=C.$implicit,i=n(2);l(),u("property",e)("hours",i.hours)}}function E(r,C){if(r&1){let e=_();d(0,"div",1),S(1,"span",2),d(2,"app-swiper-carousel",3,0),h("slideChange",function(t){s(e);let o=n();return p(o.onSlideChange(t))}),M(4,A,2,2,"div",4,P),m()()}if(r&2){let e=n();l(2),u("config",e.hotelrowConfig),l(2),k(e.properties)}}var K=(()=>{class r{constructor(e,i,t){this.cdr=e,this.platformId=i,this.document=t,this.hotelrowConfig={slidesPerView:1,spaceBetween:12,loop:!0,showNavigation:!0,showPagination:!0,pagination:{dynamicBullets:!0,dynamicMainBullets:3}}
1,this.Clickproperty=new a,this.clickDetailsOpen=new a,this.activePropertyChange=new a,this.propertyView=!0,this.isCarouselReady=!1,this.activeIndex=0,this.isBrowser=!1,this.isMobile=!1,this.isBrowser=w(this.platformId),this.checkScreenSize()}onResize(){this.checkScreenSize()}checkScreenSize(){this.isBrowser&&(this.isMobile=window.innerWidth<=768)}ngOnChanges(e){e.properties&&Array.isArray(this.properties)&&this.properties.length&&(this.updateCarousel(),Promise.resolve().then(()=>this.emitActive()))}ngOnInit(){}propertyClick(e){this.Clickproperty.emit(e),this.document.body.classList.contains("property_book_now_clicked")||this.document.body.classList.add("property_book_now_clicked")}clickDetails(e){this.clickDetailsOpen.emit(e)}onSlideChange(e){this.activeIndex=e,this.emitActive()}emitActive(){if(!this.isBrowser||window.innerWidth>=1023)return;let e=this.properties?.[this.activeIndex]??this.properties?.[0];e?.id!=null&&this.activePropertyChange.emit(Number(e.id))}updateCarousel(){!w(this.platformId)||!this.swiperCarousel||Promise.resolve().then(()=>{this.cdr.detectChanges(),Promise.resolve().then(()=>{try{this.swiperCarousel?.update(),this.isCarouselReady=!0}catch{console.info("Swiper update")}})})}static{this.\u0275fac=function(i){return new(i||r)(c(z),c(f),c(D))}}static{this.\u0275cmp=g({type:r,selectors:[["app-mobile-property-slider-view"]],viewQuery:function(i,t){if(i&1&&O(R,5),i&2){let o;V(o=I())&&(t.swiperCarousel=o.first)}},hostBindings:function(i,t){i&1&&h("resize",function(){return t.onResize()},!1,b)},inputs:{properties:"properties",hours:"hours"},outputs:{Clickproperty:"Clickproperty",clickDetailsOpen:"clickDetail
1sOpen",activePropertyChange:"activePropertyChange"},standalone:!0,features:[y,B],decls:1,vars:1,consts:[["swiperCarousel",""],[1,"mps-sheet"],["aria-hidden","true",1,"mps-sheet__grip"],[1,"mps-carousel",3,"slideChange","config"],[1,"swiper-slide"],[3,"book","details","property","hours"]],template:function(i,t){i&1&&x(0,E,6,1,"div",1),i&2&&v(0,t.properties!=null&&t.properties.length&&t.isBrowser?0:-1)},dependencies:[T,F],styles:["[_nghost-%COMP%]{display:block;position:relative;z-index:2;margin-top:-18px}.mps-sheet[_ngcontent-%COMP%]{padding:6px 10px 2px;background:#fff;border-radius:20px 20px 0 0;box-shadow:0 -6px 20px #0f0f0f1a}.mps-sheet__grip[_ngcontent-%COMP%]{display:block;width:40px;height:4px;margin:0 auto 8px;border-radius:2px;background:#c9cec9}[_nghost-%COMP%] .mps-carousel{display:block}[_nghost-%COMP%] .mps-carousel .swiper{padding:0 2px 34px;--swiper-theme-color: var(--accessibleGreenColor-var, #1f8112);--swiper-navigation-size: 15px;--swiper-pagination-bottom: 9px;--swiper-pagination-bullet-size: 7px;--swiper-pagination-bullet-inactive-color: #b9bfb9;--swiper-pagination-bullet-inactive-opacity: 1;--swiper-pagination-bullet-horizontal-gap: 5px}[_nghost-%COMP%] .mps-carousel .swiper-slide{height:auto}[_nghost-%COMP%] .mps-carousel .swiper-slide app-mobile-property-card{height:100%}[_nghost-%COMP%] .mps-carousel .swiper-button-prev, [_nghost-%COMP%] .mps-carousel .swiper-button-next{top:auto;bottom:0;width:32px;height:32px;margin-top:0}[_nghost-%COMP%] .mps-carousel .swiper-button-prev{left:0}[_nghost-%COMP%] .mps-carousel .swiper-button-next{right:0}"]})}}return r})();export{K as a};
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.