1import{a as m}from"./chunk-MQMM7IBX.js";import{a as F}from"./chunk-VM6G72KH.js";import"./chunk-D6XJLSYL.js";import{$ as I,H as E,L as x,ca as N,t as s}from"./chunk-IJ4IU5NN.js";import{Db as u,Hb as g,Mb as h,Mc as b,Nb as D,Ob as R,Y as c,bc as y,fb as l,hc as _,ia as r,ic as P,jc as M,q as p,qb as w,qc as S,ta as d,ub as f,v,wb as C}from"./chunk-XUZOFYHQ.js";var a=class{poisService=r(I);reviewsService=r(N);poiDetailMenuService=r(F);cmsComponentData=r(x,{optional:!0});data=s(this.cmsComponentData?.data$??p());poiName=s(this.poisService.getCurrentPoi().pipe(v(e=>e?.translatableFields.name)));reviews=s(this.poisService.getCurrentPoi().pipe(c(e=>e?this.reviewsService.getReviews({pageType:E.POI_DETAIL,poiCode:e.code}):p(void 0))));constructor(){b(()=>this.init());}init(){this.reviews()?.reviews.length&&Promise.resolve().then(()=>{this.poiDetailMenuService.addMenuItem("reviews",this.reviewsElRef,"Rese\xF1as",this.data()?.position);});}};function O(t,e){if(t&1&&(h(0,"div",0),R(1,"img",1)(2,"milar-reviews",2),D()),t&2){let i=y();l(2),u("reviews",i.reviews())("poiName",i.poiName());}}var T=class t extends a{reviewsComponent;get reviewsElRef(){return this.reviewsComponent.reviewsElRef;}static ɵfac=(()=>{let e;return function(o){return(e||(e=d(t)))(o||t);};})();static ɵcmp=w({type:t,selectors:[["milar-poi-detail-reviews"]],viewQuery:function(i,o){if(i&1&&_(m,5),i&2){let n;P(n=M())&&(o.reviewsComponent=n.first);}},features:[f],decls:2,vars:1,consts:[[1,"poi-detail-reviews"],["src","./assets/poi-detail/isotype-top.svg","alt","",1,"poi-detail-reviews__img"],[3,"reviews","poiName"]],template:function(i,o){if(i&1&&(S(0),C(1,O,3,2,"div",0)),i&2){let n=o.reviews();l(),g(n&&n.reviews.length?1:-1);}},dependencies:[m],styles:[".poi-detail-reviews[_ngcontent-%COMP%]{position:relative;background:var(--brand-detail-background)}.poi-detail-reviews__img[_ngcontent-%COMP%]{display:none}@media (min-width: 48rem){.poi-detail-reviews__img[_ngcontent-%COMP%]{display:block;position:absolute;top:0;left:0}}"],changeDetection:0});};export{T as MilarPoiDetailReviewsComponent};/**i18n:9e36b4cde14bd6fbef6269be0cec0080484f292ca5cf7ff07439f7e065d4c805*/
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.