import{a as ge}from"./chunk-EGVD7HYM.js";import{a as fe}from"./chunk-ISEVJFR4.js";import{a as Ce}from"./chunk-NBD76544.js";import{b as ee,d as ne,e as ie,h as oe,i as ae,j as re,l as le,o as ce,q as se,v as pe}from"./chunk-ZFUUZWEX.js";import{g as Y,i as ue,l as O,m as _e,n as at,q as rt,r as _t,v as xe}from"./chunk-6IPB2UVU.js";import{a as gt}from"./chunk-UUX3YEIV.js";import{$ as ht,$a as U,Bd as Xt,Cb as f,Db as b,E as wt,Eb as w,Fb as Lt,Fd as te,Gb as y,Hb as pt,Ia as C,Ja as At,Ka as T,Kd as mt,Ld as bt,Ma as Ut,Mb as dt,Md as de,Nd as ut,P as St,Pb as Vt,Pc as Kt,Qa as Ft,R as Et,Rd as me,Sa as u,Ua as X,V as W,Va as tt,W as Ct,Wa as et,Wb as ft,X as Dt,Xa as m,Xb as $t,Y as V,Ya as d,Za as A,_ as H,_a as nt,a as P,ac as Q,b as I,ba as Bt,bb as D,cb as c,cc as Gt,db as Rt,e as ct,eb as jt,fa as N,g as kt,ga as z,ha as Nt,i as j,jc as Ht,kd as Wt,la as st,ld as Qt,m as Tt,mb as it,n as J,na as q,nb as s,ob as M,od as Yt,pb as _,q as G,qb as ot,qd as Zt,r as Mt,rc as qt,ua as zt,vb as K,w as Ot,wd as Jt,x as It,xa as a,xb as L,ya as k}from"./chunk-NRDLQK44.js";var be=(()=>{let i=class i{constructor(n,o){this.decimalPipe=n,this.flowStore=o,this.destroy=new j,this.site=null,this.flowStore.select("site").pipe(Et(this.destroy)).subscribe(r=>this.site=r)}ngOnDestroy(){this.destroy.next(),this.destroy.complete()}transform(n,o=this.site?.currency){return[this.decimalPipe.transform(n,"1.2-2"),(o||"").toUpperCase()].filter(r=>!!r).join(" ")}};i.\u0275fac=function(o){return new(o||i)(k(Q,16),k(Y,16))},i.\u0275pipe=Bt({name:"currency",type:i,pure:!1,standalone:!0});let t=i;return t})();var Oe=["*"];function Ie(t,i){if(t&1){let e=U();m(0,"span",3),D("click",function(o){N(e);let r=c();return z(r.handleOnActionClick(o))}),Nt(),m(1,"svg",4),A(2,"path",5),d()()}}var ve=(()=>{let i=class i{constructor(){this.variant="outlined",this.color="neutral",this.closeable=!0,this.disabled=!1,this.onClick=new q,this.onActionClick=new q}onKeyDown(n){}handleOnClick(n){this.disabled||this.onClick.emit(n)}handleOnActionClick(n){!this.disabled&&this.closeable&&this.onActionClick.emit(n)}};i.\u0275fac=function(o){return new(o||i)},i.\u0275cmp=H({type:i,selectors:[["csc-tag"]],inputs:{variant:"variant",color:"color",closeable:"closeable",disabled:"disabled"},outputs:{onClick:"onClick",onActionClick:"onActionClick"},standalone:!0,features:[K],ngContentSelectors:Oe,decls:4,vars:10,consts:[["role","button","tabindex","0",3,"keydown","click"],[1,"tag__content"],["aria-hidden","true","role","presentation",1,"tag__action"],["aria-hidden","true","role","presentation",1,"tag__action",3,"click"],["viewBox","5 5 13.186 13.186",1,"dd","de","df","ms","mt"],["fill-rule","evenodd","clip-rule","evenodd","d","M7.29289 7.29289C7.68342 6.90237 8.31658 6.90237 8.70711 7.29289L12 10.5858L15.2929 7.29289C15.6834 6.90237 16.3166 6.90237 16.7071 7.29289C17.0976 7.68342 17.0976 8.31658 16.7071 8.70711L13.4142 12L16.7071 15.2929C17.0976 15.6834 17.0976 16.3166 16.7071 16.7071C16.3166 17.0976 15.6834 17.0976 15.2929 16.7071L12 13.4142L8.70711 16.7071C8.31658 17.0976 7.68342 17.0976 7.29289 16.7071C6.90237 16.3166 6.90237 15.6834 7.29289 15.2929L10.5858 12L7.29289 8.70711C6.90237 8.31658 6.90237 7.68342 7.29289 7.29289Z"]],template:function(o,r){o&1&&(Rt(),m(0,"span",0),D("keydown",function(g){return r.onKeyDown(g)})("click",function(g){return r.handleOnClick(g)}),m(1,"span",1),jt(2),d(),C(3,Ie,3,0,"span",2),d()),o&2&&(Ft("tag tag--color-",r.color," tag--",r.variant,""),Ut("tag--selectable",r.onClick.observed)("tag--disabled",r.disabled),At("aria-disabled",r.disabled),a(3),u(r.closeable?3:-1))},styles:['@charset "UTF-8";[_nghost-%COMP%]{display:block}.tag[_ngcontent-%COMP%]{border:2px solid #000000;border-radius:24px;padding:0 8px;height:24px;line-height:16px;font-size:14px;font-weight:400;display:inline-flex;align-items:center;gap:8px;color:#000;background-color:transparent;-webkit-user-select:none;user-select:none}.tag__content[_ngcontent-%COMP%]{order:0;max-width:128px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.tag__action[_ngcontent-%COMP%]{cursor:pointer;outline:none;display:flex;align-items:center;height:100%}.tag__action[_ngcontent-%COMP%]   svg[_ngcontent-%COMP%]{display:inline-block;color:currentcolor;fill:currentcolor;width:12px;height:12px}.tag--selectable[_ngcontent-%COMP%]{cursor:pointer}.tag--color-neutral.tag--solid[_ngcontent-%COMP%]{background-color:#000;color:#fff}.tag--color-accent[_ngcontent-%COMP%]{border-color:#276ef1}.tag--color-accent.tag--solid[_ngcontent-%COMP%]{background-color:#276ef1;color:#fff}.tag--color-accent.tag--outlined[_ngcontent-%COMP%]{color:#276ef1}.tag--color-positive[_ngcontent-%COMP%]{border-color:#048848}.tag--color-positive.tag--solid[_ngcontent-%COMP%]{background-color:#048848;color:#fff}.tag--color-positive.tag--outlined[_ngcontent-%COMP%]{color:#048848}.tag--color-warning[_ngcontent-%COMP%]{border-color:#ffc043}.tag--color-warning.tag--solid[_ngcontent-%COMP%]{background-color:#ffc043;color:#996f00}.tag--color-warning.tag--outlined[_ngcontent-%COMP%]{color:#996f00}.tag--color-negative[_ngcontent-%COMP%]{border-color:#e11900}.tag--color-negative.tag--solid[_ngcontent-%COMP%]{background-color:#e11900;color:#fff}.tag--color-negative.tag--outlined[_ngcontent-%COMP%]{color:#e11900}.tag--disabled[_ngcontent-%COMP%]{opacity:.5;cursor:default}.tag--disabled[_ngcontent-%COMP%]   .tag__action[_ngcontent-%COMP%]{cursor:default}'],changeDetection:0});let t=i;return t})();var F=ct(Kt()),R=ct(de());var vt=function(t){return t.FROMTOPRICE="A",t.LBMD1="B",t.UNITPERCENTAGEADDITION="C",t.ARRANGEMENT="F",t.COMPUMATCARD="K",t.COMPUMATVALUE="V",t.NOTCHARGED="P",t.ENTERAMOUNT="D",t.SETANDUSEVARIABLE="G",t.SETVARIABLE="E",t.SETFRONTENDVARIABLE="H",t}(vt||{});var we=t=>({"countdown--alert":t}),Se=t=>[t];function Ee(t,i){t&1&&(s(0),f(1,"translate")),t&2&&_(" ",w(1,1,"The booking is no longer reserved",5482)," ")}function De(t,i){if(t&1&&(s(0),f(1,"translate")),t&2){let e=c();_(" ",Lt(1,1,"Expires in {0}",6777,L(5,Se,e.timeLeft||0))," ")}}var ye=(()=>{let i=class i{constructor(n){this.changeDetectorRef=n,this.done=new q,this.expired=!1,this.timeLeft="",this.counter$=null,this.subscription=kt.EMPTY}ngOnDestroy(){this.subscription.unsubscribe()}ngOnInit(){this.counter$=It(1e3).pipe(St(0),G(()=>Math.floor((new Date(this.countdown).getTime()-new Date().getTime())/1e3))),this.subscription=this.counter$.subscribe(n=>{this.timeLeft=this.dhms(n),n<60*5&&(this.expired=!0,this.done.emit(),this.subscription.unsubscribe()),this.changeDetectorRef.markForCheck()})}dhms(n){let o,r,l;return o=("0"+Math.floor(n/3600)).slice(-2),n-=o*3600,r=("0"+Math.floor(n/60)%60).slice(-2),n-=r*60,l=("0"+n%60).slice(-2),o!=="00"?`${o}:${r}:${l}`:`${r}:${l}`}};i.\u0275fac=function(o){return new(o||i)(k(dt))},i.\u0275cmp=H({type:i,selectors:[["cs-countdown"]],inputs:{countdown:"countdown"},outputs:{done:"done"},standalone:!0,features:[K],decls:3,vars:4,consts:[[3,"ngClass"]],template:function(o,r){o&1&&(m(0,"span",0),C(1,Ee,2,4)(2,De,2,7),d()),o&2&&(T("ngClass",L(2,we,r.expired)),a(),u(r.expired?1:2))},dependencies:[ft,gt],styles:['@charset "UTF-8";@keyframes _ngcontent-%COMP%_blink{0%{opacity:.2}20%{opacity:1}to{opacity:.2}}@keyframes _ngcontent-%COMP%_buzz{10%,90%{transform:translate3d(-1px,0,0)}20%,80%{transform:translate3d(2px,0,0)}30%,50%,70%{transform:translate3d(-4px,0,0)}40%,60%{transform:translate3d(4px,0,0)}}hr[_ngcontent-%COMP%]{border:0;border-top:1px solid rgba(0,0,0,.1019607843);box-sizing:content-box;height:0;margin:16px auto;overflow:visible}.divider[_ngcontent-%COMP%]{display:flex;align-items:center;text-align:center;margin:16px auto;color:#5f6368;font-size:small}.divider[_ngcontent-%COMP%]:before, .divider[_ngcontent-%COMP%]:after{content:"";flex:1;border-bottom:1px solid #dbdbdb}.divider[_ngcontent-%COMP%]:not(:empty):before{margin-right:8px}.divider[_ngcontent-%COMP%]:not(:empty):after{margin-left:8px}.light-mode[_ngcontent-%COMP%]{--color-content-primary: #000000;--color-content-secondary: #545454;--color-content-tertiary: #6b6b6b;--color-content-inverse-primary: #ffffff;--color-content-inverse-secondary: #cbcbcb;--color-content-inverse-tertiary: #afafaf;--color-content-link: #163300;--color-content-link-hover: #0d1f00;--color-content-link-active: #0e0f0c;--color-content-state-disabled: #afafaf;--color-background-primary: #ffffff;--color-background-secondary: #f6f6f6;--color-background-tertiary: #eeeeee;--color-background-inverse-primary: #000000;--color-background-inverse-secondary: #1f1f1f;--color-background-overlay-light: rgba(0, 0, 0, .08);--color-background-overlay-dark: rgba(0, 0, 0, .3);--color-background-overlay-art: rgba(0, 0, 0, 0);--color-background-state-disabled: #f6f6f6;--color-background-screen: #fff;--color-background-screen-hover: #16330014;--color-background-screen-active: #16330021;--color-background-elevated: #fff;--color-background-neutral: #16330014;--color-background-neutral-hover: #16330021;--color-background-neutral-active: #1633002e;--color-background-overlay: #16330014;--color-border-neutral: #0e0f0c1f;--color-border-overlay: #0e0f0c1f;--color-border-opaque: #afafaf;--color-sentiment-negative: #e11900;--color-sentiment-positive: #03703c;--color-sentiment-warning: #ffc043;--color-contrast: #fff;--color-light: #fff;--color-dark: #121511}.dark-mode[_ngcontent-%COMP%]{--color-content-primary: #ffffff;--color-content-secondary: #cbcbcb;--color-content-tertiary: #545454;--color-content-inverse-primary: #000000;--color-content-inverse-secondary: #333333;--color-content-inverse-tertiary: #545454;--color-content-link: #f3f5f1;--color-content-link-hover: #e8ebe6;--color-content-link-active: #cacfc7;--color-content-state-disabled: #545454;--color-background-primary: #141414;--color-background-secondary: #1f1f1f;--color-background-tertiary: #333333;--color-background-inverse-primary: #e2e2e2;--color-background-inverse-secondary: #cbcbcb;--color-background-overlay-light: rgba(0, 0, 0, .16);--color-background-overlay-dark: rgba(0, 0, 0, .3);--color-background-overlay-art: rgba(0, 0, 0, .08);--color-background-state-disabled: #1f1f1f;--color-background-screen: #121511;--color-background-screen-hover: #ffffff1a;--color-background-screen-active: #ffffff33;--color-background-elevated: #1e211d;--color-background-neutral: #ffffff1a;--color-background-neutral-hover: #ffffff33;--color-background-neutral-active: #ffffff4d;--color-background-overlay: #ffffff33;--color-border-neutral: #ffffff33;--color-border-overlay: #ffffff33;--color-border-opaque: #545454;--color-sentiment-negative: #ab1300;--color-sentiment-positive: #048848;--color-sentiment-warning: #bc8b2c;--color-contrast: #121511;--color-light: #ffffff;--color-dark: #121511}[_ngcontent-%COMP%]:root{--shadow-shallow-above: 0px -4px 16px rgba(0, 0, 0, .12);--shadow-shallow-below: 0px 4px 16px rgba(0, 0, 0, .12);--shadow-deep-above: 0px -16px 48px rgba(0, 0, 0, .22);--shadow-deep-below: 0px 16px 48px rgba(0, 0, 0, .22)}[_ngcontent-%COMP%]:root{--padding-2x-small: 4px;--padding-x-small: 8px;--padding-small: 16px;--padding-medium: 24px;--padding-large: 32px;--padding-x-large: 40px;--padding-2x-large: 56px}[_ngcontent-%COMP%]:root{--radius-large: 16px;--radius-medium: 12px;--radius-small: 8px;--radius-x-small: 4px}[_ngcontent-%COMP%]:root{--size-2x-large: 72px;--size-x-large: 56px;--size-large: 48px;--size-medium: 40px;--size-small: 36px;--size-x-small: 28px}[_ngcontent-%COMP%]:root{--space-2x-small: 4px;--space-x-small: 8px;--space-small: 16px;--space-medium: 24px;--space-large: 32px;--space-x-large: 40px;--space-2x-large: 56px}[_ngcontent-%COMP%]:root{--font-family-display: custom-heading-font, urbane-rounded, custom-body-font, proxima-nova, sans-serif;--font-family-regular: custom-body-font, proxima-nova, sans-serif;--font-family-mono: monospace, monospace;--csw-font-family-display: custom-heading-font, urbane-rounded, custom-body-font, proxima-nova, sans-serif;--csw-font-family-regular: custom-body-font, proxima-nova, sans-serif;--csw-font-family-mono: monospace, monospace}html[_ngcontent-%COMP%]{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;text-size-adjust:100%;font-size:16px;letter-spacing:.016em}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{color:var(--color-content-primary);font-family:custom-body-font,proxima-nova,sans-serif}blockquote[_ngcontent-%COMP%], dd[_ngcontent-%COMP%], dl[_ngcontent-%COMP%], figure[_ngcontent-%COMP%], hr[_ngcontent-%COMP%], p[_ngcontent-%COMP%], pre[_ngcontent-%COMP%]{margin:0}ol[_ngcontent-%COMP%], ul[_ngcontent-%COMP%]{margin:0 0 24px;padding:0 0 0 38px}ol[_ngcontent-%COMP%]   ol[_ngcontent-%COMP%], ol[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%], ul[_ngcontent-%COMP%]   ol[_ngcontent-%COMP%], ul[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]{margin-bottom:0}a[_ngcontent-%COMP%]{font-weight:600;text-decoration:none;color:#2b73e7;cursor:pointer}.text-display-large[_ngcontent-%COMP%]{font-weight:700;letter-spacing:0;font-family:custom-heading-font,urbane-rounded,custom-body-font,proxima-nova,sans-serif;font-size:96px;line-height:112px}.text-display-medium[_ngcontent-%COMP%]{font-weight:700;letter-spacing:0;font-family:custom-heading-font,urbane-rounded,custom-body-font,proxima-nova,sans-serif;font-size:52px;line-height:64px}.text-display-small[_ngcontent-%COMP%]{font-weight:700;letter-spacing:0;font-family:custom-heading-font,urbane-rounded,custom-body-font,proxima-nova,sans-serif;font-size:44px;line-height:52px}.text-display-x-small[_ngcontent-%COMP%]{font-weight:700;letter-spacing:0;font-family:custom-heading-font,urbane-rounded,custom-body-font,proxima-nova,sans-serif;font-size:36px;line-height:44px}h1[_ngcontent-%COMP%], .text-heading-2x-large[_ngcontent-%COMP%]{letter-spacing:0;line-height:1.2;margin:0;font-weight:700;color:var(--color-content-primary);font-family:custom-heading-font,urbane-rounded,custom-body-font,proxima-nova,sans-serif;font-size:36px;line-height:44px}h2[_ngcontent-%COMP%], .text-heading-x-large[_ngcontent-%COMP%]{letter-spacing:0;line-height:1.2;margin:0;font-weight:700;color:var(--color-content-primary);font-family:custom-heading-font,urbane-rounded,custom-body-font,proxima-nova,sans-serif;font-size:32px;line-height:40px}h3[_ngcontent-%COMP%], .text-heading-large[_ngcontent-%COMP%]{letter-spacing:0;line-height:1.2;margin:0;font-weight:700;color:var(--color-content-primary);font-family:custom-heading-font,urbane-rounded,custom-body-font,proxima-nova,sans-serif;font-size:28px;line-height:36px}h4[_ngcontent-%COMP%], .text-heading-medium[_ngcontent-%COMP%]{letter-spacing:0;line-height:1.2;margin:0;font-weight:700;color:var(--color-content-primary);font-family:custom-heading-font,urbane-rounded,custom-body-font,proxima-nova,sans-serif;font-size:24px;line-height:32px}h5[_ngcontent-%COMP%], .text-heading-small[_ngcontent-%COMP%]{letter-spacing:0;line-height:1.2;margin:0;font-weight:700;color:var(--color-content-primary);font-family:custom-heading-font,urbane-rounded,custom-body-font,proxima-nova,sans-serif;font-size:20px;line-height:28px}h6[_ngcontent-%COMP%], .text-heading-x-small[_ngcontent-%COMP%]{letter-spacing:0;line-height:1.2;margin:0;font-weight:700;color:var(--color-content-primary);font-family:custom-heading-font,urbane-rounded,custom-body-font,proxima-nova,sans-serif;font-size:16px;line-height:24px}.text-paragraph-large[_ngcontent-%COMP%]{font-weight:400;letter-spacing:0;font-size:18px;line-height:28px}p[_ngcontent-%COMP%], .text-paragraph-medium[_ngcontent-%COMP%]{font-weight:400;letter-spacing:0;font-size:16px;line-height:24px}.text-paragraph-small[_ngcontent-%COMP%]{font-weight:400;letter-spacing:0;font-size:14px;line-height:20px}.text-paragraph-x-small[_ngcontent-%COMP%]{font-weight:400;letter-spacing:0;font-size:12px;line-height:20px}[_nghost-%COMP%]{display:block}.countdown[_ngcontent-%COMP%]{color:#5f6368}.countdown--alert[_ngcontent-%COMP%]{color:#b9292f;font-style:italic}']});let t=i;return t})();var xt=t=>({service:t}),Pe=t=>({"cart--red":t});function Ne(t,i){if(t&1){let e=U();m(0,"csc-button",9),D("onClick",function(){N(e);let o=c();return z(o.removeProfile.emit(o.index))}),s(1),f(2,"translate"),d()}if(t&2){let e=c();a(),_(" ",y(2,1,"Remove",4463,void 0,e.siteId())," ")}}function ze(t,i){if(t&1&&(m(0,"div"),s(1),d()),t&2){let e=c(2);a(),_(" Booking: ",e.cartItem.booking==null?null:e.cartItem.booking.id," ")}}function Ae(t,i){if(t&1&&(m(0,"div"),s(1),d()),t&2){let e=c(2);a(),_(" ",e.computmatName," ")}}function Ue(t,i){if(t&1&&(s(0),f(1,"date"),f(2,"date")),t&2){let e=c(4);ot(" ",b(1,2,e.cartItem.booking.toDateTime)," ",w(2,4,e.cartItem.booking.toDateTime,"shortTime")," ")}}function Fe(t,i){if(t&1&&(s(0),f(1,"date")),t&2){let e=c(4);_(" ",w(1,1,e.cartItem.booking.toDateTime,"shortTime")," ")}}function Re(t,i){if(t&1&&(m(0,"s"),s(1),f(2,"date"),f(3,"date"),C(4,Ue,3,7),f(5,"date"),f(6,"date"),C(7,Fe,2,4),d(),A(8,"br")),t&2){let e=c(3);a(),ot(" ",b(2,3,e.cartItem.booking.fromDateTime||"")," ",w(3,5,e.cartItem.booking.fromDateTime,"shortTime")," - "),a(3),u(b(5,8,e.cartItem.booking.fromDateTime)!==b(6,10,e.cartItem.booking.toDateTime)?4:7)}}function je(t,i){if(t&1&&(s(0),f(1,"date")),t&2){let e=c(3);_(" ",w(1,1,(e.cartItem.booking==null?null:e.cartItem.booking.fromDateTime)||e.offset.start,"shortTime")," ")}}function Le(t,i){if(t&1&&(s(0),f(1,"date")),t&2){let e=c(4);_(" ",b(1,1,e.cartItem.period.end||"")," ")}}function Ve(t,i){if(t&1&&(s(0),f(1,"date")),t&2){let e=c(4);_(" ",w(1,1,e.offset.end,"shortTime")," ")}}function $e(t,i){if(t&1&&(s(0," - "),C(1,Le,2,3),f(2,"date"),f(3,"date"),C(4,Ve,2,4)),t&2){let e=c(3);a(),u(b(2,2,e.cartItem.period.start||"")!==b(3,4,e.cartItem.period.end||"")?1:-1),a(3),u(e.offset!=null&&e.offset.end?4:-1)}}function Ge(t,i){if(t&1&&(m(0,"p"),C(1,Re,9,12),f(2,"date"),f(3,"date"),s(4),f(5,"date"),C(6,je,2,4)(7,$e,5,6),f(8,"date"),f(9,"date"),d()),t&2){let e=c(2);a(),u(e.cartItem.booking&&b(2,4,e.cartItem.booking.fromDateTime||"")!==b(3,6,e.cartItem.period.start||"")?1:-1),a(3),_(" ",b(5,8,(e.cartItem.booking==null?null:e.cartItem.booking.fromDateTime)||e.cartItem.period.start||"")," "),a(2),u(e.cartItem.booking!=null&&e.cartItem.booking.fromDateTime||e.offset!=null&&e.offset.start?6:-1),a(),u(b(8,10,e.cartItem.period.start||"")!==b(9,12,e.cartItem.period.end||"")||(e.offset==null?null:e.offset.start)!==(e.offset==null?null:e.offset.end)?7:-1)}}function He(t,i){if(t&1&&A(0,"cs-countdown",10),t&2){let e=c(2);T("countdown",e.cartItem.tempBooking.validTo)}}function qe(t,i){if(t&1&&(m(0,"div",7),C(1,ze,2,1,"div")(2,Ae,2,1,"div")(3,Ge,10,14,"p")(4,He,1,1,"cs-countdown",10),d()),t&2){let e=c();a(),u(e.cartItem.booking!=null&&e.cartItem.booking.id?1:-1),a(),u(e.computmatName?2:-1),a(),u(e.cartItem.period?3:-1),a(),u(e.cartItem.tempBooking!=null&&e.cartItem.tempBooking.validTo?4:-1)}}function Ke(t,i){if(t&1&&s(0),t&2){let e=c(4);_(" (",e.bookingUnitText.description,") ")}}function We(t,i){if(t&1&&(m(0,"s"),s(1),C(2,Ke,1,1),d()),t&2){let e=c(3);a(),_(" ",e.bookingUnitText.title," "),a(),u(e.bookingUnitText.description?2:-1)}}function Qe(t,i){if(t&1&&s(0),t&2){let e=c(3);_(" (",e.unitText.description,") ")}}function Ye(t,i){if(t&1&&(m(0,"div",13)(1,"div",14),s(2),f(3,"translate"),d(),m(4,"div",14),C(5,We,3,2,"s"),s(6),C(7,Qe,1,1),d()()),t&2){let e=c(2);a(2),_(" ",(e.cartItem.profile==null?null:e.cartItem.profile.name)||(e.cartItem.booking==null?null:e.cartItem.booking.categoryText)||y(3,4,"Unit",1800,void 0,e.siteId())," "),a(3),u(e.cartItem.booking!=null&&e.cartItem.booking.unit&&(e.cartItem.booking==null||e.cartItem.booking.unit==null?null:e.cartItem.booking.unit.itemNo)!==e.unit.itemNo?5:-1),a(),_(" ",e.unitText.title," "),a(),u(e.unitText.description?7:-1)}}function Ze(t,i){if(t&1&&s(0),t&2){let e=c(4);_(" (",e.bookingRelatedUnitText.description,") ")}}function Je(t,i){if(t&1&&(m(0,"s"),s(1),C(2,Ze,1,1),d()),t&2){let e=c(3);a(),_(" ",e.bookingRelatedUnitText.title," "),a(),u(e.bookingRelatedUnitText.description?2:-1)}}function Xe(t,i){if(t&1&&s(0),t&2){let e=c(3);_(" (",e.relatedUnitText.description,") ")}}function tn(t,i){if(t&1&&(m(0,"div",13)(1,"div",14),s(2),f(3,"translate"),d(),m(4,"div",14),C(5,Je,3,2,"s"),s(6),C(7,Xe,1,1),d()()),t&2){let e=c(2);a(2),_(" ",e.relatedUnitService?e.relatedUnitService.description:y(3,4,"Related unit",7347,void 0,e.siteId())," "),a(3),u(e.bookingRelatedUnitText&&e.bookingRelatedUnitText.title!==e.relatedUnitText.title?5:-1),a(),_(" ",e.relatedUnitText.title," "),a(),u(e.relatedUnitText.description?7:-1)}}function en(t,i){if(t&1&&(m(0,"div",11)(1,"h5"),s(2),f(3,"translate"),d()(),m(4,"div",12),C(5,Ye,8,9,"div",13)(6,tn,8,9,"div",13),d()),t&2){let e=c();a(2),M(y(3,3,"Units",73,void 0,e.siteId())),a(3),u(e.unit?5:-1),a(),u(e.cartItem.relatedUnit?6:-1)}}function nn(t,i){if(t&1){let e=U();m(0,"csc-button",16),D("onClick",function(){N(e);let o=c(2);return z(o.edit(o.stepId.Boat))}),s(1),f(2,"translate"),d()}if(t&2){let e=c(2);a(),_(" ",y(2,1,"Edit",827,void 0,e.siteId())," ")}}function on(t,i){if(t&1&&(m(0,"div",13)(1,"div",14),s(2),f(3,"translate"),d(),m(4,"div",14),s(5),d()()),t&2){let e=c(2);a(2),M(y(3,2,"Boat name",5289,void 0,e.siteId())),a(3),M(e.cartItem.boat.name)}}function an(t,i){if(t&1&&(s(0),f(1,"translate")),t&2){let e=c(3);_(" ",y(1,1,"Length",4694,void 0,e.siteId())," ")}}function rn(t,i){t&1&&s(0," \xD7 ")}function ln(t,i){if(t&1&&(s(0),f(1,"translate")),t&2){let e=c(3);_(" ",y(1,1,"Width",4692,void 0,e.siteId())," ")}}function cn(t,i){if(t&1&&(s(0),f(1,"number")),t&2){let e=c(3);_(" ",b(1,1,e.cartItem.boat.length)," ")}}function sn(t,i){t&1&&s(0," \xD7 ")}function pn(t,i){if(t&1&&(s(0),f(1,"number")),t&2){let e=c(3);_(" ",b(1,1,e.cartItem.boat.width)," ")}}function dn(t,i){if(t&1&&(m(0,"div",13)(1,"div",14),C(2,an,2,6)(3,rn,1,0)(4,ln,2,6),d(),m(5,"div",14),C(6,cn,2,3)(7,sn,1,0)(8,pn,2,3),s(9," m "),d()()),t&2){let e=c(2);a(2),u(e.cartItem.boat.length?2:-1),a(),u(e.cartItem.boat.length&&e.cartItem.boat.width?3:-1),a(),u(e.cartItem.boat.width?4:-1),a(2),u(e.cartItem.boat.length?6:-1),a(),u(e.cartItem.boat.length&&e.cartItem.boat.width?7:-1),a(),u(e.cartItem.boat.width?8:-1)}}function fn(t,i){if(t&1&&(m(0,"div",13)(1,"div",14),s(2),f(3,"translate"),d(),m(4,"div",14),s(5),f(6,"number"),d()()),t&2){let e=c(2);a(2),_(" ",y(3,2,"Draft",7540,void 0,e.siteId())," "),a(3),_(" ",b(6,7,e.cartItem.boat.depth)," m ")}}function mn(t,i){if(t&1&&(m(0,"div",11)(1,"h5"),s(2),f(3,"translate"),d(),C(4,nn,3,6,"csc-button",15),d(),m(5,"div",12),C(6,on,6,7,"div",13)(7,dn,10,6,"div",13)(8,fn,7,9,"div",13),d()),t&2){let e=c();a(2),M(y(3,5,"Boat info",5668,void 0,e.siteId())),a(2),u(e.canEdit?4:-1),a(2),u(e.cartItem.boat.name?6:-1),a(),u(e.cartItem.boat.length||e.cartItem.boat.width?7:-1),a(),u(e.cartItem.boat.depth?8:-1)}}function un(t,i){if(t&1){let e=U();m(0,"csc-button",16),D("onClick",function(){N(e);let o=c(2);return z(o.edit(o.stepId.LicensePlate))}),s(1),f(2,"translate"),d()}if(t&2){let e=c(2);a(),_(" ",y(2,1,"Edit",827,void 0,e.siteId())," ")}}function gn(t,i){if(t&1&&(m(0,"div",11)(1,"h5"),s(2),f(3,"translate"),d(),C(4,un,3,6,"csc-button",15),d(),m(5,"div",12)(6,"div",13)(7,"div",14),s(8),f(9,"translate"),d(),m(10,"div",14),s(11),d()()()),t&2){let e=c();a(2),M(y(3,4,"License plate",5912,void 0,e.siteId())),a(2),u(e.canEdit?4:-1),a(4),M(y(9,9,"License plate",5912,void 0,e.siteId())),a(3),M(e.cartItem.licensePlate.plate)}}function _n(t,i){if(t&1){let e=U();m(0,"csc-button",16),D("onClick",function(){N(e);let o=c(2);return z(o.edit(o.stepId.Services))}),s(1),f(2,"translate"),d()}if(t&2){let e=c(2);a(),_(" ",y(2,1,"Edit",827,void 0,e.siteId())," ")}}function xn(t,i){if(t&1&&nt(0,17),t&2){let e=i.$implicit;c(2);let n=it(13);T("ngTemplateOutlet",n)("ngTemplateOutletContext",L(2,xt,e))}}function Cn(t,i){if(t&1&&(s(0),f(1,"date")),t&2){let e=c().$implicit;_(" - ",b(1,1,e.to)," ")}}function hn(t,i){if(t&1&&nt(0,17),t&2){let e=i.$implicit;c(3);let n=it(13);T("ngTemplateOutlet",n)("ngTemplateOutletContext",L(2,xt,e))}}function bn(t,i){if(t&1&&(m(0,"div",13)(1,"div",14)(2,"h6"),s(3),f(4,"date"),C(5,Cn,2,3),f(6,"date"),f(7,"date"),d()(),A(8,"div",14),d(),tt(9,hn,1,4,"ng-container",17,X)),t&2){let e=i.$implicit;a(3),_(" ",b(4,2,e.from)," "),a(2),u(b(6,4,e.from)!==b(7,6,e.to)?5:-1),a(4),et(e.services)}}function vn(t,i){if(t&1&&nt(0,17),t&2){let e=c().$implicit;c(3);let n=it(15);T("ngTemplateOutlet",n)("ngTemplateOutletContext",L(2,xt,e))}}function yn(t,i){if(t&1&&nt(0,17),t&2){let e=c().$implicit;c(3);let n=it(13);T("ngTemplateOutlet",n)("ngTemplateOutletContext",L(2,xt,e))}}function Pn(t,i){if(t&1&&C(0,vn,1,4,"ng-container",17)(1,yn,1,4,"ng-container",17),t&2){let e,n=i.$implicit;u((e=n.function)==="COUPON"?0:1)}}function kn(t,i){if(t&1&&(m(0,"div",13)(1,"div",14)(2,"h5"),s(3),f(4,"translate"),f(5,"translate"),d()(),A(6,"div",14),d(),tt(7,Pn,2,1,null,null,X)),t&2){let e=c(2);a(3),ot(" ",y(4,2,"Payments",6714,void 0,e.siteId())," / ",y(5,7,"Discount",535,void 0,e.siteId())," "),a(4),et(e.payments)}}function Tn(t,i){if(t&1&&(m(0,"div",13)(1,"div",14)(2,"strong"),s(3),f(4,"translate"),d()(),m(5,"div",14)(6,"strong"),s(7),f(8,"currency"),d()()()),t&2){let e=c(2);a(3),M(y(4,2,"Subtotal",5418,void 0,e.siteId())),a(4),M(b(8,7,e.total))}}function Mn(t,i){if(t&1&&(m(0,"div",11)(1,"h5"),s(2),f(3,"translate"),d(),C(4,_n,3,6,"csc-button",15),d(),m(5,"div",12),tt(6,xn,1,4,"ng-container",17,X),tt(8,bn,11,8,null,null,X),C(10,kn,9,12)(11,Tn,9,9,"div",13),d()),t&2){let e=c();a(2),M(y(3,4,"Items",6344,void 0,e.siteId())),a(2),u(e.canEdit&&(!e.cartItem.booking||!e.cartItem.relatedUnitInfo)?4:-1),a(2),et(e.services),a(2),et(e.periods),a(2),u(e.payments.length?10:-1),a(),u(e.total!==null?11:-1)}}function On(t,i){if(t&1){let e=U();m(0,"form",18),D("ngSubmit",function(){N(e);let o=c();return z(o.submitCoupon())}),A(1,"csc-input",19),f(2,"translate"),m(3,"csc-button",20),s(4),f(5,"translate"),d()()}if(t&2){let e=c();T("formGroup",e.couponForm),a(),T("label",w(2,4,"Coupon code",3856)),a(2),T("disabled",e.couponForm.invalid||!e.couponForm.value.code),a(),_(" ",w(5,7,"Apply",4348)," ")}}function In(t,i){t&1&&s(0),t&2&&_(" (",i,") ")}function wn(t,i){t&1&&s(0),t&2&&_(" (",i,") ")}function Sn(t,i){if(t&1&&(s(0),f(1,"date")),t&2){let e=c(2).service;_(" - ",b(1,1,e.toDate)," ")}}function En(t,i){if(t&1&&(s(0),f(1,"date"),C(2,Sn,2,3),s(3,") ")),t&2){let e=c().service;_(" (",b(1,2,e.fromDate),""),a(2),u(e.fromDate!==e.toDate?2:-1)}}function Dn(t,i){if(t&1&&(m(0,"div",22)(1,"span"),s(2),d()()),t&2){let e=i;T("cscTooltip",e),a(2),M(e)}}function Bn(t,i){if(t&1&&(A(0,"br"),m(1,"div",23)(2,"div",24)(3,"strong"),s(4),f(5,"date"),d(),m(6,"small"),s(7),f(8,"date"),d()(),m(9,"div",24)(10,"strong"),s(11),f(12,"date"),d(),m(13,"small"),s(14),f(15,"date"),d()()()),t&2){let e=c().service;a(4),M(w(5,4,e.fromDate,"shortTime")),a(3),M(w(8,7,e.fromDate,"mediumDate")),a(4),M(w(12,10,e.toDate,"shortTime")),a(3),M(w(15,13,e.toDate,"mediumDate"))}}function Nn(t,i){if(t&1&&(m(0,"span"),s(1),f(2,"currency"),d()),t&2){let e=c(3).service;a(),_(" (",b(2,1,e.discount),") ")}}function zn(t,i){if(t&1&&(s(0),C(1,Nn,3,3,"span")),t&2){let e=c(2).service,n=c();_(" ",n.getPrice(e)*100,"% "),a(),u(e.discount<0?1:-1)}}function An(t,i){if(t&1&&(s(0),f(1,"currency")),t&2){let e=c(2).service,n=c();_(" ",b(1,1,n.getPrice(e))," ")}}function Un(t,i){if(t&1&&(s(0),f(1,"currency")),t&2){let e=c(2).service,n=c();_(" ",b(1,1,n.getPrice(e))," ")}}function Fn(t,i){if(t&1&&C(0,zn,2,2)(1,An,2,3)(2,Un,2,3,"ng-template",null,2,pt),t&2){let e=c().service,n=c();u(n.getPrice(e)>=-1?0:1)}}function Rn(t,i){if(t&1&&(s(0),f(1,"currency")),t&2){let e=c(3).service;_(" (",b(1,1,e.price),") ")}}function jn(t,i){if(t&1&&(s(0),C(1,Rn,2,3)),t&2){let e=c(2).service;_(" ",e.originalPrice*100,"% "),a(),u(e.price?1:-1)}}function Ln(t,i){}function Vn(t,i){if(t&1&&(s(0),f(1,"currency")),t&2){let e=c(2).service,n=c();_(" ",b(1,1,n.getPrice(e))," ")}}function $n(t,i){if(t&1&&(s(0),f(1,"currency"),f(2,"translate")),t&2){let e=c(3).service,n=c();_(" ",n.getPrice(e)?b(1,1,n.getPrice(e)):y(2,3,"Inkluderet",5862,void 0,n.siteId())," ")}}function Gn(t,i){if(t&1&&C(0,$n,3,8),t&2){let e=c(2).service;u(e.amount!==0?0:-1)}}function Hn(t,i){if(t&1&&C(0,jn,2,2)(1,Ln,0,0)(2,Vn,2,3)(3,Gn,1,1),t&2){let e,n=c().service,o=c();u((e=o.getParameter(n))==="CALC%"?0:e==="NOPRICE"?1:e==="SHOWPRICE"?2:3)}}function qn(t,i){if(t&1&&(m(0,"div",21)(1,"div",14),s(2),C(3,In,1,1)(4,wn,1,1)(5,En,4,4)(6,Dn,3,2,"div",22)(7,Bn,16,16),d(),m(8,"div",14),C(9,Fn,4,1)(10,Hn,4,1),d()()),t&2){let e,n,o,r,l,g=i.service,x=c();T("ngClass",L(9,Pe,g.price<0)),a(2),ot(" ",g.amount," x ",g.description," "),a(),u((e=x.getParking(g))?3:-1,e),a(),u((n=x.getLabel(g))?4:-1,n),a(),u(g.fromDate&&g.price<0?5:-1),a(),u((o=x.getSelection(g))?6:-1,o),a(),u((r=x.getParking(g))?7:-1,r),a(2),u((l=g.type)==="KUPON"?9:10)}}function Kn(t,i){if(t&1){let e=U();m(0,"div",21)(1,"div",14)(2,"div",25),s(3),m(4,"csc-tag",26),D("onActionClick",function(){let o=N(e).service,r=c();return z(r.removeCoupon(o))}),s(5),d()()(),m(6,"div",14),s(7),f(8,"currency"),d()()}if(t&2){let e=i.service;T("ngClass",L(6,Pe,e.price<0)),a(3),_(" ",e.description," "),a(2),_(" ",e.text," "),a(2),_(" ",b(8,4,e.price)," ")}}var $i=(()=>{let i=class i{get isMarina(){let n=this.site();return n?F.default.includes(n.packages,"MARINA"):!1}get canEdit(){return this.noEdit?!1:!F.default.includes([O.CheckOut,O.PointOfSale],this.cartItem.profile?.profileTypeItemId)&&!!this.cartItem.profile?.id}get services(){return F.default.flattenDeep([...this.cartItem.booking?.postings||[],...this.cartItem.services||[]].filter(n=>!n.hide).filter(n=>!n.var).filter(n=>!n.fromDate).filter(n=>n.price>=0).map(n=>n.serviceGroups.length&&!n.price?n.amount?F.default.flattenDeep(n.serviceGroups.map(r=>r.services.filter(l=>!!l.amount))).map(r=>I(P({},r),{path:[n.itemNo]})):[]:[n]))}get periods(){return F.default.sortBy(Object.values(F.default.groupBy([...this.cartItem.booking?.postings||[],...this.cartItem.services||[]].filter(n=>!n.hide).filter(n=>!n.var).filter(n=>!!n.fromDate).filter(n=>n.price>=0),n=>[n.fromDate,n.toDate])).reduce((n,o)=>[...n,{from:o[0].fromDate,to:o[0].toDate||o[0].fromDate,services:o}],[]),"from")}get payments(){return[...this.cartItem.booking?.postings||[],...this.cartItem.services||[]].filter(n=>!n.hide).filter(n=>!n.var).filter(n=>n.price<0)}get computmatName(){return this.cartItem.card?.computmat?.description||this.cartItem.card?.computmat?.cardNo||null}get offset(){let n=this.flowStore.selectSnapshot("cartItems")[this.index];if(n&&n.profile){if(n.profile.profileTypeItemId===O.Schedule&&n.period)return{start:(0,R.default)(n.period.start).format(R.default.HTML5_FMT.DATETIME_LOCAL),end:(0,R.default)(n.period.end).format(R.default.HTML5_FMT.DATETIME_LOCAL)};{let o=n.profile.categories.find(r=>r.id===this.cartItem.unit?.categoryId);if(o&&(o.stop||o.stop))return{start:(0,R.default)(o.start,R.default.HTML5_FMT.TIME_SECONDS).format(R.default.HTML5_FMT.DATETIME_LOCAL),end:(0,R.default)(o.stop,R.default.HTML5_FMT.TIME_SECONDS).format(R.default.HTML5_FMT.DATETIME_LOCAL)}}}return null}get unit(){return this.cartItem.unit&&this.cartItem.unit.type!=="!SKYGGE!"&&this.cartItem.unit.itemNo!=="!SKYGGE!"&&(!this.cartItem.booking||!(this.site()?.hideUnitOnMoveable&&this.cartItem.booking.status==="F"))?this.cartItem.unit:null}get bookingUnitText(){return this.cartItem.booking?.unit?this.unitService.getText(this.cartItem.booking.unit,this.site(),!0):null}get unitText(){return this.unit?this.unitService.getText(this.unit,this.site(),!0):null}get bookingRelatedUnitText(){return this.cartItem.booking?.relatedBookings?.[0]?.unit?this.unitService.getText(this.cartItem.booking.relatedBookings[0].unit,this.site(),!0):null}get relatedUnitText(){return this.cartItem.relatedUnit?this.unitService.getText({itemNo:this.cartItem.relatedUnit.unitNo,description:this.cartItem.relatedUnit.description},this.site(),!0):null}get relatedUnitService(){return this.cartItem.relatedUnit?this.services.find(n=>n.itemNo===this.cartItem.relatedUnit?.itemNo):null}constructor(n,o,r,l,g,x){this.flowService=n,this.flowStore=o,this.profileService=r,this.decimalPipe=l,this.unitService=g,this.fb=x,this.site=this.flowStore.selectSignal("site"),this.siteId=Vt(()=>this.site()?.id),this.profileType=O,this.stepId=ue,this.couponForm=this.fb.group({code:null}),this.removeProfile=new q,this.validateCoupon=new q,this.noEdit=!1,this.index=null,this.total=null}edit(n){let o=this.site();!this.canEdit||!o||this.flowService.editProfile(this.index,o.id,n)}getParameter(n){let o=n.parameters?.map(r=>r.toUpperCase());return F.default.includes(o,"CALC%")?"CALC%":F.default.includes(o,"NOPRICE")?"NOPRICE":F.default.includes(o,"SHOWPRICE")?"SHOWPRICE":null}getPrice(n){return this.profileService.getPrice(n)}getSelection(n){return this.profileService.getSelections(n).join(", ")}getLabel(n){let o=[];return n.type==="INFOVARE"&&(n.function===vt.ENTERAMOUNT?n.price>1&&o.push(this.decimalPipe.transform(n.price)):n.text&&o.push(`"${n.text}"`)),n.unitText&&o.push(n.unitText),o.join("/")}getParking(n){if(F.default.includes(n.parameters,"PARKING")&&n.fromDate&&n.toDate){let o=new Date(n.fromDate),r=new Date(n.toDate),l=Math.floor((r.getTime()-o.getTime())/1e3),g=Math.floor(l/60),x=Math.floor(g/60),p=Math.floor(x/24);return x=x-p*24,g=g-p*24*60-x*60,l=l-p*24*60*60-x*60*60-g*60,[`${p}d`,`${x}h`,`${g}m`].filter(v=>!!+v[0]).join(" ")}return null}submitCoupon(){if(this.couponForm.valid){let n=this.couponForm.get("code");n&&(n.value?this.validateCoupon.emit(n.value):(n.setValidators([ee.required]),n.updateValueAndValidity()))}}removeCoupon(n){this.validateCoupon.emit(null)}};i.\u0275fac=function(o){return new(o||i)(k(xe),k(Y),k(_t),k(Q),k(Ce),k(le))},i.\u0275cmp=H({type:i,selectors:[["cs-cart-profile"]],inputs:{noEdit:"noEdit",index:"index",cartItem:"cartItem",total:"total"},outputs:{removeProfile:"removeProfile",validateCoupon:"validateCoupon"},standalone:!0,features:[K],decls:16,vars:8,consts:[["orderline",""],["coupon",""],["price",""],[1,"container"],[1,"header"],["small","","flat","","icon","close"],[1,"cart"],[1,"cart__details"],[1,"coupon",3,"formGroup"],["small","","flat","","icon","close",3,"onClick"],[3,"countdown"],[1,"cart__subheader"],[1,"table"],[1,"table__row"],[1,"table__cell"],["small","","flat","","icon","edit"],["small","","flat","","icon","edit",3,"onClick"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"coupon",3,"ngSubmit","formGroup"],["formControlName","code",3,"label"],["type","submit","solid","",3,"disabled"],[1,"table__row",3,"ngClass"],[1,"selection",3,"cscTooltip"],[1,"timeline"],[1,"timeline__item"],[1,"code"],["color","accent",3,"onActionClick"]],template:function(o,r){if(o&1&&(m(0,"div",3)(1,"div",4)(2,"h4"),s(3),d(),C(4,Ne,3,6,"csc-button",5),d(),m(5,"div",6),C(6,qe,5,4,"div",7)(7,en,7,8)(8,mn,9,10)(9,gn,12,14)(10,Mn,12,9)(11,On,6,10,"form",8),d()(),C(12,qn,11,11,"ng-template",null,0,pt)(14,Kn,9,8,"ng-template",null,1,pt)),o&2){let l;a(3),M((r.cartItem.profile==null?null:r.cartItem.profile.name)||(r.cartItem.booking==null?null:r.cartItem.booking.categoryText)||"Booking"),a(),u(r.noEdit?-1:4),a(2),u(r.cartItem.booking!=null&&r.cartItem.booking.id||r.computmatName||r.cartItem.period||r.cartItem.tempBooking!=null&&r.cartItem.tempBooking.validTo?6:-1),a(),u(r.unit||r.cartItem.relatedUnit?7:-1),a(),u(r.cartItem.boat&&(r.isMarina||(r.cartItem.profile==null?null:r.cartItem.profile.profileTypeItemId)===r.profileType.Boatspot)?8:-1),a(),u(r.cartItem.licensePlate&&r.cartItem.licensePlate.plate!==""?9:-1),a(),u(r.services.length||r.periods.length||r.payments.length?10:-1),a(),u(!((l=r.site())==null||l.cPayConfiguration==null)&&l.cPayConfiguration.useCoupons&&r.total!==null?11:-1)}},dependencies:[mt,ye,$t,ce,oe,ne,ie,ae,re,fe,pe,ft,se,ve,Q,be,gt,ge],styles:['@charset "UTF-8";@keyframes _ngcontent-%COMP%_blink{0%{opacity:.2}20%{opacity:1}to{opacity:.2}}@keyframes _ngcontent-%COMP%_buzz{10%,90%{transform:translate3d(-1px,0,0)}20%,80%{transform:translate3d(2px,0,0)}30%,50%,70%{transform:translate3d(-4px,0,0)}40%,60%{transform:translate3d(4px,0,0)}}hr[_ngcontent-%COMP%]{border:0;border-top:1px solid rgba(0,0,0,.1019607843);box-sizing:content-box;height:0;margin:16px auto;overflow:visible}.divider[_ngcontent-%COMP%]{display:flex;align-items:center;text-align:center;margin:16px auto;color:#5f6368;font-size:small}.divider[_ngcontent-%COMP%]:before, .divider[_ngcontent-%COMP%]:after{content:"";flex:1;border-bottom:1px solid #dbdbdb}.divider[_ngcontent-%COMP%]:not(:empty):before{margin-right:8px}.divider[_ngcontent-%COMP%]:not(:empty):after{margin-left:8px}.light-mode[_ngcontent-%COMP%]{--color-content-primary: #000000;--color-content-secondary: #545454;--color-content-tertiary: #6b6b6b;--color-content-inverse-primary: #ffffff;--color-content-inverse-secondary: #cbcbcb;--color-content-inverse-tertiary: #afafaf;--color-content-link: #163300;--color-content-link-hover: #0d1f00;--color-content-link-active: #0e0f0c;--color-content-state-disabled: #afafaf;--color-background-primary: #ffffff;--color-background-secondary: #f6f6f6;--color-background-tertiary: #eeeeee;--color-background-inverse-primary: #000000;--color-background-inverse-secondary: #1f1f1f;--color-background-overlay-light: rgba(0, 0, 0, .08);--color-background-overlay-dark: rgba(0, 0, 0, .3);--color-background-overlay-art: rgba(0, 0, 0, 0);--color-background-state-disabled: #f6f6f6;--color-background-screen: #fff;--color-background-screen-hover: #16330014;--color-background-screen-active: #16330021;--color-background-elevated: #fff;--color-background-neutral: #16330014;--color-background-neutral-hover: #16330021;--color-background-neutral-active: #1633002e;--color-background-overlay: #16330014;--color-border-neutral: #0e0f0c1f;--color-border-overlay: #0e0f0c1f;--color-border-opaque: #afafaf;--color-sentiment-negative: #e11900;--color-sentiment-positive: #03703c;--color-sentiment-warning: #ffc043;--color-contrast: #fff;--color-light: #fff;--color-dark: #121511}.dark-mode[_ngcontent-%COMP%]{--color-content-primary: #ffffff;--color-content-secondary: #cbcbcb;--color-content-tertiary: #545454;--color-content-inverse-primary: #000000;--color-content-inverse-secondary: #333333;--color-content-inverse-tertiary: #545454;--color-content-link: #f3f5f1;--color-content-link-hover: #e8ebe6;--color-content-link-active: #cacfc7;--color-content-state-disabled: #545454;--color-background-primary: #141414;--color-background-secondary: #1f1f1f;--color-background-tertiary: #333333;--color-background-inverse-primary: #e2e2e2;--color-background-inverse-secondary: #cbcbcb;--color-background-overlay-light: rgba(0, 0, 0, .16);--color-background-overlay-dark: rgba(0, 0, 0, .3);--color-background-overlay-art: rgba(0, 0, 0, .08);--color-background-state-disabled: #1f1f1f;--color-background-screen: #121511;--color-background-screen-hover: #ffffff1a;--color-background-screen-active: #ffffff33;--color-background-elevated: #1e211d;--color-background-neutral: #ffffff1a;--color-background-neutral-hover: #ffffff33;--color-background-neutral-active: #ffffff4d;--color-background-overlay: #ffffff33;--color-border-neutral: #ffffff33;--color-border-overlay: #ffffff33;--color-border-opaque: #545454;--color-sentiment-negative: #ab1300;--color-sentiment-positive: #048848;--color-sentiment-warning: #bc8b2c;--color-contrast: #121511;--color-light: #ffffff;--color-dark: #121511}[_ngcontent-%COMP%]:root{--shadow-shallow-above: 0px -4px 16px rgba(0, 0, 0, .12);--shadow-shallow-below: 0px 4px 16px rgba(0, 0, 0, .12);--shadow-deep-above: 0px -16px 48px rgba(0, 0, 0, .22);--shadow-deep-below: 0px 16px 48px rgba(0, 0, 0, .22)}[_ngcontent-%COMP%]:root{--padding-2x-small: 4px;--padding-x-small: 8px;--padding-small: 16px;--padding-medium: 24px;--padding-large: 32px;--padding-x-large: 40px;--padding-2x-large: 56px}[_ngcontent-%COMP%]:root{--radius-large: 16px;--radius-medium: 12px;--radius-small: 8px;--radius-x-small: 4px}[_ngcontent-%COMP%]:root{--size-2x-large: 72px;--size-x-large: 56px;--size-large: 48px;--size-medium: 40px;--size-small: 36px;--size-x-small: 28px}[_ngcontent-%COMP%]:root{--space-2x-small: 4px;--space-x-small: 8px;--space-small: 16px;--space-medium: 24px;--space-large: 32px;--space-x-large: 40px;--space-2x-large: 56px}[_ngcontent-%COMP%]:root{--font-family-display: custom-heading-font, urbane-rounded, custom-body-font, proxima-nova, sans-serif;--font-family-regular: custom-body-font, proxima-nova, sans-serif;--font-family-mono: monospace, monospace;--csw-font-family-display: custom-heading-font, urbane-rounded, custom-body-font, proxima-nova, sans-serif;--csw-font-family-regular: custom-body-font, proxima-nova, sans-serif;--csw-font-family-mono: monospace, monospace}html[_ngcontent-%COMP%]{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;text-size-adjust:100%;font-size:16px;letter-spacing:.016em}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{color:var(--color-content-primary);font-family:custom-body-font,proxima-nova,sans-serif}blockquote[_ngcontent-%COMP%], dd[_ngcontent-%COMP%], dl[_ngcontent-%COMP%], figure[_ngcontent-%COMP%], hr[_ngcontent-%COMP%], p[_ngcontent-%COMP%], pre[_ngcontent-%COMP%]{margin:0}ol[_ngcontent-%COMP%], ul[_ngcontent-%COMP%]{margin:0 0 24px;padding:0 0 0 38px}ol[_ngcontent-%COMP%]   ol[_ngcontent-%COMP%], ol[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%], ul[_ngcontent-%COMP%]   ol[_ngcontent-%COMP%], ul[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]{margin-bottom:0}a[_ngcontent-%COMP%]{font-weight:600;text-decoration:none;color:#2b73e7;cursor:pointer}.text-display-large[_ngcontent-%COMP%]{font-weight:700;letter-spacing:0;font-family:custom-heading-font,urbane-rounded,custom-body-font,proxima-nova,sans-serif;font-size:96px;line-height:112px}.text-display-medium[_ngcontent-%COMP%]{font-weight:700;letter-spacing:0;font-family:custom-heading-font,urbane-rounded,custom-body-font,proxima-nova,sans-serif;font-size:52px;line-height:64px}.text-display-small[_ngcontent-%COMP%]{font-weight:700;letter-spacing:0;font-family:custom-heading-font,urbane-rounded,custom-body-font,proxima-nova,sans-serif;font-size:44px;line-height:52px}.text-display-x-small[_ngcontent-%COMP%]{font-weight:700;letter-spacing:0;font-family:custom-heading-font,urbane-rounded,custom-body-font,proxima-nova,sans-serif;font-size:36px;line-height:44px}h1[_ngcontent-%COMP%], .text-heading-2x-large[_ngcontent-%COMP%]{letter-spacing:0;line-height:1.2;margin:0;font-weight:700;color:var(--color-content-primary);font-family:custom-heading-font,urbane-rounded,custom-body-font,proxima-nova,sans-serif;font-size:36px;line-height:44px}h2[_ngcontent-%COMP%], .text-heading-x-large[_ngcontent-%COMP%]{letter-spacing:0;line-height:1.2;margin:0;font-weight:700;color:var(--color-content-primary);font-family:custom-heading-font,urbane-rounded,custom-body-font,proxima-nova,sans-serif;font-size:32px;line-height:40px}h3[_ngcontent-%COMP%], .text-heading-large[_ngcontent-%COMP%]{letter-spacing:0;line-height:1.2;margin:0;font-weight:700;color:var(--color-content-primary);font-family:custom-heading-font,urbane-rounded,custom-body-font,proxima-nova,sans-serif;font-size:28px;line-height:36px}h4[_ngcontent-%COMP%], .text-heading-medium[_ngcontent-%COMP%]{letter-spacing:0;line-height:1.2;margin:0;font-weight:700;color:var(--color-content-primary);font-family:custom-heading-font,urbane-rounded,custom-body-font,proxima-nova,sans-serif;font-size:24px;line-height:32px}h5[_ngcontent-%COMP%], .text-heading-small[_ngcontent-%COMP%]{letter-spacing:0;line-height:1.2;margin:0;font-weight:700;color:var(--color-content-primary);font-family:custom-heading-font,urbane-rounded,custom-body-font,proxima-nova,sans-serif;font-size:20px;line-height:28px}h6[_ngcontent-%COMP%], .text-heading-x-small[_ngcontent-%COMP%]{letter-spacing:0;line-height:1.2;margin:0;font-weight:700;color:var(--color-content-primary);font-family:custom-heading-font,urbane-rounded,custom-body-font,proxima-nova,sans-serif;font-size:16px;line-height:24px}.text-paragraph-large[_ngcontent-%COMP%]{font-weight:400;letter-spacing:0;font-size:18px;line-height:28px}p[_ngcontent-%COMP%], .text-paragraph-medium[_ngcontent-%COMP%]{font-weight:400;letter-spacing:0;font-size:16px;line-height:24px}.text-paragraph-small[_ngcontent-%COMP%]{font-weight:400;letter-spacing:0;font-size:14px;line-height:20px}.text-paragraph-x-small[_ngcontent-%COMP%]{font-weight:400;letter-spacing:0;font-size:12px;line-height:20px}[_nghost-%COMP%]{display:block}.container[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:16px}.header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:16px}s[_ngcontent-%COMP%]{margin-right:.5rem}.cart[_ngcontent-%COMP%]{border:1px solid #dbdbdb;border-radius:var(--radius-medium);background-color:#fff}.cart__details[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:16px;gap:8px}.cart__details[_ngcontent-%COMP%]   s[_ngcontent-%COMP%]{color:#5f6368}.cart__subheader[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:8px 16px 4px}.cart__subheader[_ngcontent-%COMP%]   h5[_ngcontent-%COMP%]{display:block;font-family:custom-body-font,proxima-nova,sans-serif}.cart__subheader[_ngcontent-%COMP%]   csc-button[_ngcontent-%COMP%]{display:block;margin-left:.25rem}.table[_ngcontent-%COMP%]{width:100%}.table__row[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr auto;border-top:1px solid #dbdbdb}.table__cell[_ngcontent-%COMP%]{min-height:36px;line-height:36px;overflow:hidden;padding-inline:16px}.table__cell[_ngcontent-%COMP%]   h5[_ngcontent-%COMP%], .table__cell[_ngcontent-%COMP%]   h6[_ngcontent-%COMP%]{font-family:custom-body-font,proxima-nova,sans-serif;margin:var(--space-x-small) 0 var(--space-2x-small)}.table__cell[_ngcontent-%COMP%]:last-child{text-align:right}.table--red[_ngcontent-%COMP%]{color:#b9292f}.selection[_ngcontent-%COMP%]{display:flex;margin-bottom:.5rem}.selection[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{background-color:#2c2d30;color:#fff;border-radius:var(--radius-x-small);padding-inline:8px;height:24px;line-height:24px;font-size:.9em;max-width:100%;box-sizing:border-box;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:help}.timeline[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:16px;position:relative;margin-left:24px;line-height:1;margin-top:8px;margin-bottom:8px}.timeline[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:2px dashed #dbdbdb;left:-16px;top:8px;bottom:8px;z-index:1}.timeline__item[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;position:relative}.timeline__item[_ngcontent-%COMP%]   strong[_ngcontent-%COMP%]{min-width:40px}.timeline__item[_ngcontent-%COMP%]   small[_ngcontent-%COMP%]{color:#5f6368}.timeline__item[_ngcontent-%COMP%]:before{content:"";position:absolute;width:8px;height:8px;border-radius:50%;background-color:#5f6368;left:-19px;top:5px;z-index:1}.coupon[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;padding:16px;border-top:1px solid #dbdbdb}.coupon[_ngcontent-%COMP%]   csc-input[_ngcontent-%COMP%]{flex:1}.code[_ngcontent-%COMP%]{display:flex;align-items:center;flex-wrap:wrap;column-gap:8px}'],changeDetection:0});let t=i;return t})();var S=ct(Kt()),yt=ct(de());var to=(()=>{let i=class i{constructor(n,o,r,l){this.http=n,this.flowStore=o,this.profileService=r,this.toastService=l,this.destroy=new j,this.compumatCards={}}ngOnDestroy(){this.destroy.next(),this.destroy.complete()}getRedirectURL(n,o,r,l){let g=p=>S.default.flatten(p.serviceGroups.map(h=>h.services)).map(h=>I(P({},S.default.assign(new rt,S.default.pick(h,S.default.keys(new rt)))),{services:g(h)})),x=null;return l&&(x="NOPAY"),this.http.post(`${ut.api.computouch}/cart/submit/v2`,{payAction:x,profiles:o.map(p=>{let h=p.profile;return S.default.includes([O.CheckIn,O.CheckOut,O.Extend],h?.profileTypeItemId)&&p.booking?.profile?.id&&(h=I(P({},h),{id:p.booking.profile.id})),{id:h?.id,startDate:p.period?.start,endDate:p.period?.end,tempBookingId:p.tempBooking?.id,tempBookingNo:p.tempBooking?.bookingNo,tempCustomer:p.tempBooking?.customerId,services:(p.services||[]).map(v=>I(P({},S.default.assign(new rt,S.default.pick(v,S.default.keys(new rt)))),{services:g(v)})),parkingId:p.profile?.profileTypeItemId===O.CamperParking?p.card?.computmat?.cardNo:null,bookingNo:p.unit?.bookingNo||p.booking?.id,addOn:!!(p.action===_e.TopUp||p.addOn),images:(p.reqimages||[]).map(v=>({type:v.type,dataUrl:v.dataUrl})),licensePlate:p.licensePlate,keyNo:p.card?.computmat?.keyNo||p.card?.parking?.id,authAmountPerDay:p.profile?.authAmountPerDay,useAuth:p.profile?.useAuth&&p.booking?.action!==at.ChangeUnit,profileName:p.profile?.name,bookingCustomerType:p.profile?.bookingCustomerType,profileType:p.profile?.profileTypeItemId,rootProfileId:(p.path||[])[0],unitNo:p.unit?.itemNo,latitude:p.unit?.latitude,longitude:p.unit?.longitude,relatedUnit:p.relatedUnit?I(P({},p.relatedUnit),{extendedBooking:p.relatedUnit.extendBookingNo?{bookingNo:p.relatedUnit.extendBookingNo,customerId:r.id}:null}):null,extendedBooking:p.booking&&p.booking.action!==at.ChangeUnit&&r.id&&(p.unit?.bookingNo||p.booking?.id)?{customerId:r.id,bookingNo:p.unit?.bookingNo||p.booking?.id}:null,divIndex1:p.boat?.name,boatName:p.boat?.name,boatDepth:p.boat?.depth,boatWidth:p.boat?.width,boatLength:p.boat?.length}}),nation:r?.country,customer:r},{params:{siteId:n}})}changeUnit(n,o,r){return this.http.put(`${ut.api.computouch}/booking/unit`,{bookingNo:o,unitNo:r},{params:{siteId:n}})}getAuthInfo(n,o){return this.http.get(`${ut.api.computouch}/booking/authinfo/${o}`,{params:{siteId:n}})}getFilteredCartItems(){let n=this.flowStore.selectSnapshot("site"),o=this.flowStore.selectSnapshot("customer"),r=this.flowStore.selectSnapshot("cartItems");if(!n)return J(void 0);if(o&&(o.cards||[]).length){let l=o.cards.filter(g=>g.profileIds&&r.some(x=>g.profileIds.some(p=>p===x.profile?.id)));l.forEach(g=>g.valueToUse=g.balance),this.compumatCards=S.default.groupBy(l,"cardType")}return Tt(r).pipe(G((l,g)=>({cartItem:l,index:g})),Mt(({cartItem:l,index:g})=>{if(l.profile){if(S.default.includes([O.CheckOut],l.profile.profileTypeItemId))return J({serviceGroups:[],totalPrice:(l.booking?.postings||[]).reduce((v,E)=>v+=this.profileService.getPrice(E),0)}).pipe(G(v=>({cartItem:l,index:g,response:v})));let x=l.profile;S.default.includes([O.CheckIn,O.CheckOut,O.Extend],x?.profileTypeItemId)&&l.booking?.profile?.id&&(x=I(P({},x),{id:l.booking.profile.id}));let p=l.period,h=S.default.includes([at.Extend,at.ExtendAll],l.booking?.action)||l.profile?.profileTypeItemId===O.Extend;return p&&h&&l.booking&&(p.start=(0,yt.default)(l.booking.toDateTime).format(yt.default.HTML5_FMT.DATE)),this.profileService.getServiceGroups(n.id,x,{unit:l.unit?.itemNo||l.booking?.unit?.itemNo||null,services:l.services,postings:l.booking?.postings,period:p,rootProfileType:l.profile.profileTypeItemId,boat:l.boat,bookingNo:l.unit?.bookingNo||l.booking?.id||null,preSelect:!1,bookingAction:l.booking?.action,keyNo:l?.card?.parking?.id,coupons:l?.coupons||[]}).pipe(wt(v=>(this.toastService.error(v?.error?.message||v),J(null))),G(v=>({cartItem:l,index:g,response:v})))}return J({cartItem:l,index:g,response:null})}),G(l=>I(P({},l),{total:0,error:!1})),G(l=>{let g=l.cartItem,x=l.response;if(g.pos)return I(P({},l),{cartItem:I(P({},g),{profile:I(P({},g.profile||{}),{profileTypeItemId:O.PointOfSale}),services:[...g.pos.orderLines,...g.pos.extraLines].map(h=>({itemNo:h.itemNo,amount:h.quantity,function:h.function,price:h.price,type:h.type,description:h.title,serviceGroups:[],parameters:[]}))}),total:[...g.pos.orderLines,...g.pos.extraLines].reduce((h,v)=>h+v.price*v.quantity,0)});if(!x){l.error=!0;return}let p=this.profileService.getSelectedServices(x.serviceGroups);if(this.compumatCards){let v=S.default.flattenDeep(x.serviceGroups.map(E=>E.services)).filter(E=>E.type==="CHECK"&&E.function==="MATVALUE");p=p.filter(E=>!(E.type==="CHECK"&&E.function==="MATVALUE")),(v||[]).length&&Object.values(this.compumatCards).forEach(E=>{E.filter(B=>B.useValue&&B.profileIds.indexOf(g.profile.id)>-1).forEach(B=>{if(x.totalPrice>0&&B.valueToUse>0){let $=B.valueToUse>=x.totalPrice?x.totalPrice:B.valueToUse;B.valueToUse-=$,p.push(I(P({},v[0]),{hide:!1,amount:1,price:-$,text:B.keyNo,description:`${v[0].description} (${B.description})`})),x.totalPrice-=$}})})}return l=I(P({},l),{cartItem:I(P({},g),{services:p}),total:x.totalPrice})}))}filterCartItems(n){n.forEach(r=>{r.services?.filter(l=>!l.hide).filter(l=>!l.var).filter(l=>!l.fromDate).filter(l=>l.price>=0)}),n.forEach(r=>r.services?.forEach(l=>l.hide=!1));let o=this.getQuantity(n);return{cartItems:n,cartSize:o}}getQuantity(n){let o=n.map(g=>g.services?.filter(x=>x.price&&!x.var||x.function=="PROFILPRIS")),r=n.flatMap(g=>g.services?.flatMap(x=>x.serviceGroups.map(p=>p.services.filter(h=>h.price&&h.amount>0&&!h.var))));return[...o,...r].reduce((g,x)=>g+=x?.reduce((p,h)=>p+=h.amount??0,0)??0,0)}};i.\u0275fac=function(o){return new(o||i)(V(Ht),V(Y),V(_t),V(me))},i.\u0275prov=W({token:i,factory:i.\u0275fac,providedIn:"root"});let t=i;return t})();var oo=(()=>{let i=class i{constructor(){this._scroll=new j,this.scroll=this._scroll.asObservable(),this._onScrollTo=new j,this.onScrollTo=this._onScrollTo.asObservable(),this._onScrollToFlow=new j,this.onScrollToFlow=this._onScrollToFlow.asObservable()}triggerScroll(n){this._scroll.next(n)}scrollTo(n={top:0}){this._onScrollTo.next(n)}scrollToFlow(n={top:0}){this._onScrollToFlow.next(n)}};i.\u0275fac=function(o){return new(o||i)},i.\u0275prov=W({token:i,factory:i.\u0275fac,providedIn:"root"});let t=i;return t})();function Wn(t,i){if(t&1&&(m(0,"span",2),s(1),d()),t&2){let e=c();a(),_(" ",e.snackbarRef.config.icon," ")}}function Qn(t,i){if(t&1){let e=U();m(0,"div",4)(1,"csc-button",5),D("onClick",function(){N(e);let o=c();return z(o.beginClose(!0))}),s(2),d()()}if(t&2){let e=c();a(2),_(" ",e.snackbarRef.config.action," ")}}var ke=new Dt("SnackbarData"),Pt=class{constructor(){this.duration=3e3,this.data=null,this.horizontalPosition="center",this.verticalPosition="top",this.action="",this.disposeOnNavigation=!1}},lt=class{constructor(i,e){this.overlayRef=i,this.config=e,this.instance=null,this.closed=new j,this.id=e.id}dismiss(i=!1){let e=this.closed;this.overlayRef.dispose(),e.next(i),e.complete(),this.instance=null}setMessage(i){this.instance?.setMessage(i)}},Te=(()=>{let i=class i{constructor(n,o,r,l){this.changeDetectorRef=n,this.sanitizer=o,this.snackbarRef=r,this.data=l,this.animationState="default",this.message=null}ngOnInit(){this.snackbarRef.config.duration&&Ot(this.snackbarRef.config.duration).subscribe(()=>this.beginClose()),this.setMessage(this.data.message)}setMessage(n){this.message=this.sanitizer.bypassSecurityTrustHtml(n),this.changeDetectorRef.markForCheck()}beginClose(n=!1){n?this.snackbarRef.dismiss(!0):(this.animationState="closing",this.changeDetectorRef.markForCheck())}onAnimationDone(n){let{toState:o}=n,r=o==="closing",l=this.animationState==="closing";r&&l&&this.snackbarRef.dismiss(!1)}};i.\u0275fac=function(o){return new(o||i)(k(dt),k(qt),k(lt),k(ke))},i.\u0275cmp=H({type:i,selectors:[["csc-snackbar"]],standalone:!0,features:[K],decls:5,vars:4,consts:[["role","alert",1,"container"],[1,"content"],["aria-hidden","true",1,"material-symbols-rounded","icon"],[1,"message",3,"innerHTML"],[1,"action"],["solid","",3,"onClick"]],template:function(o,r){o&1&&(m(0,"div",0),D("@slideOut.done",function(g){return r.onAnimationDone(g)}),m(1,"div",1),C(2,Wn,2,1,"span",2),A(3,"div",3),C(4,Qn,3,1,"div",4),d()()),o&2&&(T("@slideOut",r.animationState),a(2),u(r.snackbarRef.config.icon?2:-1),a(),T("innerHTML",r.message,zt),a(),u(r.snackbarRef.config.action?4:-1))},dependencies:[bt,mt],styles:['@charset "UTF-8";[_nghost-%COMP%]{display:block;width:100%}.container[_ngcontent-%COMP%]{min-width:320px;max-width:540px;display:inline-block;border-radius:8px;background-color:#2c2d30;color:#fff;box-shadow:0 16px 48px #00000038}.content[_ngcontent-%COMP%]{display:inline-flex;align-items:center;width:100%;padding:8px;box-sizing:border-box}.icon[_ngcontent-%COMP%]{font-size:20px;margin:0 8px}.message[_ngcontent-%COMP%]{flex:1;margin:8px}'],data:{animation:[Wt("slideOut",[Zt("default => closing",Qt("120ms",Yt({transform:"translateY(-100%)"})))])]},changeDetection:0});let t=i;return t})(),ko=(()=>{let i=class i{static forRoot(){return{ngModule:i,providers:[]}}constructor(n){if(n)throw new Error("SnackbarModule is already loaded. Import it in the AppModule only")}};i.\u0275fac=function(o){return new(o||i)(V(i,12))},i.\u0275mod=ht({type:i}),i.\u0275inj=Ct({imports:[Gt,bt,Te]});let t=i;return t})(),Yn=0,To=(()=>{let i=class i{constructor(n,o){this.overlay=n,this.injector=o,this.snackbarQueue=[]}open(n,o){if(o=P(P({},new Pt),o),o.id=o.id||`csc-snackbar-${Yn++}`,o.data={message:n},o.id&&this.snackbarQueue.find($=>$.id===o?.id))throw Error(`Snackbar with id "${o.id}" exists already. The snackbar id must be unique.`);let r=this.overlay.position().global(),l=o.horizontalPosition==="left"||o.horizontalPosition==="start",g=!l&&o.horizontalPosition!=="center";l?r.left("24px"):g?r.right("24px"):r.centerHorizontally(),o.verticalPosition==="top"?r.top("24px"):r.bottom("24px");let x=new Xt({positionStrategy:r,maxWidth:"calc(100vw - 24px * 2)",maxHeight:"calc(100vh - 24px * 2)",disposeOnNavigation:o.disposeOnNavigation}),p=this.overlay.create(x),h=new lt(p,o),v=st.create({parent:this.injector,providers:[{provide:lt,useValue:h},{provide:ke,useValue:o.data}]}),E=new Jt(Te,void 0,v),B=p.attach(E);return h.instance=B.instance,this.snackbarQueue.push(h),h.closed.subscribe(()=>{let $=this.snackbarQueue.indexOf(h);$>-1&&this.snackbarQueue.splice($,1)}),h}dismiss(n){this.snackbarQueue.forEach(o=>{if(n!==void 0){if(o.id===n){o.instance?.beginClose();return}}else o.instance?.beginClose()})}};i.\u0275fac=function(o){return new(o||i)(V(te),V(st))},i.\u0275prov=W({token:i,factory:i.\u0275fac,providedIn:"root"});let t=i;return t})();export{vt as a,be as b,$i as c,to as d,oo as e,ko as f,To as g};
