1import{$ as Ur,$a as jr,$b as fe,$c as zl,A as Gp,Aa as Dl,Ab as Li,Ac as Vf,Ad as Vl,B as Ke,Ba as Vr,Bb as zi,Bc as Gr,Bd as zn,C as Ml,Ca as qr,Cb as yo,Cc as qf,Cd as Jr,D as Fr,Da as ff,Db as Et,Dc as jf,Dd as Xr,E as ho,Ea as gf,Eb as B,Ec as $f,Ed as ea,F as Yp,Fa as _f,Fb as kl,Fc as Wf,Fd as ug,G as tf,Ga as Cf,Gb as k,Gc as Yr,Gd as ti,H as nf,Ha as yf,Hb as Ef,Hc as Tl,Hd as Fi,I as Ol,Ia as bf,Ib as u,Ic as is,Id as mg,J as Xa,Ja as Sf,Jb as jt,Jc as Gf,Jd as ql,K as qt,Ka as Mt,Kb as at,Kc as Yf,Kd as hg,L as In,La as ut,Lb as Af,Lc as Rl,Ld as fg,M as Ze,Ma as Nl,Mb as Ot,Mc as bn,Md as gg,N as of,Na as _o,Nb as xt,Nc as El,Nd as _g,O as rf,Oa as ts,Ob as Qe,Oc as Jn,Od as nn,P as wt,Pa as vf,Pb as ye,Pc as Kf,Pd as Po,Q as Kp,Qa as wf,Qb as bo,Qc as Al,Qd as on,Ra as xf,Rb as Ci,Rc as Zf,Rd as rn,S as G,Sa as eu,Sb as D,Sc as Qf,Sd as $t,T as dr,Ta as p,Tb as V,Tc as Ll,Td as ta,U as af,Ua as Pf,Ub as ee,Uc as st,Ud as jl,V as ve,Va as Mf,Vb as So,Vc as Jf,Vd as na,W as Ve,Wa as Of,Wb as Pn,Wc as Xf,Wd as ni,X as f,Xa as Il,Xb as hn,Xc as eg,Y as Kn,Ya as un,Yb as fn,Yc as tg,Z as Zp,Za as mn,Zb as qe,Zc as ng,_ as sf,_a as ns,_b as Je,_c as ig,a as Gh,aa as Zn,ab as Df,ac as Dt,ad as og,b as Yh,ba as to,bb as Nf,bc as Lf,bd as rg,c as Ri,ca as N,cb as If,cc as zf,cd as ag,d as Ei,da as I,db as kf,dc as vo,dd as ur,e as yt,ea as kn,eb as H,ec as Pe,ed as Me,f as Sl,fa as xn,fb as pr,fc as Z,fd as xo,g as Kh,ga as fo,gb as tn,gc as St,gd as sg,h as Yn,ha as lf,hb as yn,hc as $r,hd as Bl,i as Zh,ia as es,ib as re,ic as iu,id as lg,j as wn,ja as Qn,jb as bt,jc as Bf,jd as Fl,k as Le,ka as Qp,kb as tu,kc as y,kd as cg,l as vl,la as cf,lb as nu,lc as O,ld as Kr,m as Wp,ma as ne,mb as he,mc as W,md as Y,n as Qh,na as Jp,nb as ue,nc as Rn,nd as _e,o as mo,oa as df,ob as Co,oc as Wr,od as Ul,p as Be,pa as Hr,pb as Tf,pc as Ff,pd as Se,q as wl,qa as Xp,qb as w,qc as mt,qd as Fe,r as Ai,ra as pf,rb as x,rc as Uf,s as xl,sa as et,sb as Rf,sc as A,sd as dg,t as Pl,ta as uf,tb as Xe,tc as wo,td as Bi,u as Ja,ua as go,ub as we,uc as ou,ud as Xn,v as Jh,va as Ne,vb as xe,vc as Re,vd as pg,w as Xh,wa as Tn,wb as b,wc as v,wd as Zr,x as lt,xa as mf,xb as h,xc as Mn,xd as ei,y as ef,
1ya as Ut,yb as _,yc as We,yd as Qr,z as cr,za as hf,zb as T,zc as Hf,zd as Hl}from"./chunk-HUDH3T6J.js";import{a as S,b as j,c as Br,d as $p,e as i1,f as o1,g as r1,h as z}from"./chunk-OAOUCCYY.js";var I0=i1((U5,N0)=>{"use strict";var Yw=function(i){return Kw(i)&&!Zw(i)};function Kw(t){return!!t&&typeof t=="object"}function Zw(t){var i=Object.prototype.toString.call(t);return i==="[object RegExp]"||i==="[object Date]"||Xw(t)}var Qw=typeof Symbol=="function"&&Symbol.for,Jw=Qw?Symbol.for("react.element"):60103;function Xw(t){return t.$$typeof===Jw}function ex(t){return Array.isArray(t)?[]:{}}function bs(t,i){return i.clone!==!1&&i.isMergeableObject(t)?ca(ex(t),t,i):t}function tx(t,i,e){return t.concat(i).map(function(n){return bs(n,e)})}function nx(t,i){if(!i.customMerge)return ca;var e=i.customMerge(t);return typeof e=="function"?e:ca}function ix(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(i){return Object.propertyIsEnumerable.call(t,i)}):[]}function O0(t){return Object.keys(t).concat(ix(t))}function D0(t,i){try{return i in t}catch(e){return!1}}function ox(t,i){return D0(t,i)&&!(Object.hasOwnProperty.call(t,i)&&Object.propertyIsEnumerable.call(t,i))}function rx(t,i,e){var n={};return e.isMergeableObject(t)&&O0(t).forEach(function(o){n[o]=bs(t[o],e)}),O0(i).forEach(function(o){ox(t,o)||(D0(t,o)&&e.isMergeableObject(i[o])?n[o]=nx(o,e)(t[o],i[o],e):n[o]=bs(i[o],e))}),n}function ca(t,i,e){e=e||{},e.arrayMerge=e.arrayMerge||tx,e.isMergeableObject=e.isMergeableObject||Yw,e.cloneUnlessOtherwiseSpecified=bs;var n=Array.isArray(i),o=Array.isArray(t),r=n===o;return r?n?e.arrayMerge(t,i,e):rx(t,i,e):bs(i,e)}ca.all=function(i,e){if(!Array.isArray(i))throw new Error("first argument should be an array");return i.reduce(function(n,o){return ca(n,o,e)},{})};var ax=ca;N0.exports=ax});var s1={schedule(t,i){let e=setTimeout(t,i);return()=>clearTimeout(e)}};function l1(t){return t.replace(/[A-Z]/g,i=>`-${i.toLowerCase()}`)}function c1(t){return!!t&&t.nodeType===Node.ELEMENT_NODE}var ru;function d1(t,i){if(!ru){let e=Element.prototype;ru=e.matches||e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector}return t.nodeType===Node.ELEMENT_NODE?ru.call(t,i):!1}function p1(t){let i={};return t.forEach(({propName:e,templateName:n,transform:o})=>{i[l1(n)]=[e,o]}),i}function u1(t,i){return Yr(t).inputs}function m1(t,i){let e=t.childNodes,n=i.map(()=>[]),o=-1;i.some((r,a)=>r==="*"?(o=a,!0):!1);for(let r=0,a=e.length;r<a;++r){let s=e[r],l=h1(s,i,o);l!==-1&&n[l].push(s)}return n}function h1(t,i,e){let n=e;return c1(t)&&i.some((o,r)=>o!=="*"&&d1(t,o)?(n=r,!0):!1),n}var f1=10,au=class{component;componentMirror;inputMap=new Map;constructor(i){this.component=i,this.componentMirror=Yr(i);for(let e of this.componentMirror.inputs)this.inputMap.set(e.propName,e.templateName)}create(i){return new su(this.component,i,this.inputMap)}},su=class{component;injector;inputMap;eventEmitters=new Sl(1);events=this.eventEmitters.pipe(qt(i=>Xh(...i)));componentRef=null;scheduledDestroyFn=null;initialInputValues=new Map;ngZone;elementZone;appRef;cdScheduler;constructor(i,e,n){this.component=i,this.injector=e,this.inputMap=n,this.ngZone=this.injector.get(Qn),this.appRef=this.injector.get(nu),this.cdScheduler=e.get(pf),this.elementZone=typeof Zone>"u"?null:this.ngZone.run(()=>Zone.current)}connect(i){this.runInZone(()=>{if(this.scheduledDestroyFn!==null){this.scheduledDestroyFn(),this.scheduledDestroyFn=null;return}this.componentRef===null&&this.initializeComponent(i)})}disconnect(){this.runInZone(()=>{this.componentRef===null||this.scheduledDestroyFn!==null||(this.scheduledDestroyFn=s1.schedule(()=>{this.componentRef!==null&&(this.componentRef.destroy(),this.componentRef=null)},f1))})}getInputValue(i){return this.runInZone(()=>this.componentRef===null?this.initialInputValues.get(i):this.componentRef.instance[i])}setInputValue(i,e){if(this.componentRef===null){this.initialInputValues.set(i,e);return}this.runInZone(()=>{this.componentRef.setInput(this.inputMap.get(i)??i,e),Pf(this.componentRef.hostView)&&(Mf(this.componentRef.changeDetectorRef),this.cdScheduler.notify(6))})}initializeComponent(i){let e=kn.create({providers:[],parent:this.injector}),n=m1(i,Yr(this.component).ngContentSelectors);this.componentRef=Wf(this.component,{environmentInjector:this.injector,elementInjector:e,hostElement:i,projectableNodes:n}),this.initializeInputs(),this.initializeOutputs(this.componentRef),this.appRef.attachView(this.componentRef.hostView),this.componentRef.hostView.detectChanges()}initializeInputs(){for(let[i,e]of this.initialInputValues)this.setInputValue(i,e);this.initialInputValues.clear()}initializeOutputs(i){let e=Yr(this.component).outputs.map(({propName:n,templateName:o})=>{let r=i.instance[n];return new Ri(a=>{let s=r.subscribe(l=>a.next({name:o,value:l}));return()=>s.unsubscribe()})});this.eventEmitters.next(e)}runInZone(i){return this.elementZone&&Zone.current!==this.elementZone?this.ngZone.run(i):i()}},lu=class extends HTMLElement{ngElementEventsSubscription=null};
1function mr(t,i){let e=u1(t),n=i.strategyFactory||new au(t),o=p1(e);class r extends lu{injector;static observedAttributes=Object.keys(o);get ngElementStrategy(){if(!this._ngElementStrategy){let s=this._ngElementStrategy=n.create(this.injector||i.injector);e.forEach(({propName:l,transform:c})=>{if(!this.hasOwnProperty(l))return;let d=this[l];delete this[l],s.setInputValue(l,d,c)})}return this._ngElementStrategy}_ngElementStrategy;constructor(s){super(),this.injector=s}attributeChangedCallback(s,l,c,d){let[m,g]=o[s];this.ngElementStrategy.setInputValue(m,c,g)}connectedCallback(){let s=!1;this.ngElementStrategy.events&&(this.subscribeToEvents(),s=!0),this.ngElementStrategy.connect(this),s||this.subscribeToEvents()}disconnectedCallback(){this._ngElementStrategy&&this._ngElementStrategy.disconnect(),this.ngElementEventsSubscription&&(this.ngElementEventsSubscription.unsubscribe(),this.ngElementEventsSubscription=null)}subscribeToEvents(){this.ngElementEventsSubscription=this.ngElementStrategy.events.subscribe(s=>{let l=new CustomEvent(s.name,{detail:s.value});this.dispatchEvent(l)})}}return e.forEach(({propName:a,transform:s,isSignal:l})=>{Object.defineProperty(r.prototype,a,{get(){let c=this.ngElementStrategy.getInputValue(a);return l&&uf(c)?c():c},set(c){this.ngElementStrategy.setInputValue(a,c,s)},configurable:!0,enumerable:!0})}),r}var os=class{_doc;constructor(i){this._doc=i}manager},$l=(()=>{class t extends os{constructor(e){super(e)}supports(e){return!0}addEventListener(e,n,o,r){return e.addEventListener(n,o,r),()=>this.removeEventListener(e,n,o,r)}removeEventListener(e,n,o,r){return e.removeEventListener(n,o,r)}static \u0275fac=function(n){return new(n||t)(Ve(xn))};static \u0275prov=G({token:t,factory:t.\u0275fac})}return t})(),Yl=new ve(""),uu=(()=>{class t{_zone;_plugins;_eventNameToPlugin=new Map;constructor(e,n){this._zone=n,e.forEach(a=>{a.manager=this});let o=e.filter(a=>!(a instanceof $l));this._plugins=o.slice().reverse();let r=e.find(a=>a instanceof $l);r&&this._plugins.push(r)}addEventListener(e,n,o,r){return this._findPluginFor(n).addEventListener(e,n,o,r)}getZone(){return this._zone}_findPluginFor(e){let n=this._eventNameToPlugin.get(e);if(n)return n;if(n=this._plugins.find(r=>r.supports(e)),!n)throw new wt(-5101,!1);return this._eventNameToPlugin.set(e,n),n}static \u0275fac=function(n){return new(n||t)(Ve(Yl),Ve(Qn))};static \u0275prov=G({token:t,factory:t.\u0275fac})}return t})(),cu="ng-app-id";function Cg(t){for(let i of t)i.remove()}function yg(t,i){let e=i.createElement("style");return e.textContent=t,e}function g1(t,i,e,n){let o=t.head?.querySelectorAll(`style[${cu}="${i}"],link[${cu}="${i}"]`);if(!o||o.length===0)return!1;for(let r of o)r.removeAttribute(cu),r instanceof HTMLLinkElement?n.set(r.href.slice(r.href.lastIndexOf("/")+1),{usage:0,elements:[r]}):r.textContent&&e.set(r.textContent,{usage:0,elements:[r]});return!0}function pu(t,i){let e=i.createElement("link");return e.setAttribute("rel","stylesheet"),e.setAttribute("href",t),e}var mu=(()=>{class t{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;constructor(e,n,o,r={}){this.doc=e,this.appId=n,this.nonce=o,g1(e,n,this.inline,this.external)&&this.hosts.add(e.head)}addStyles(e,n){for(let o of e)this.addUsage(o,this.inline,yg);n?.forEach(o=>this.addUsage(o,this.external,pu))}removeStyles(e,n){for(let o of e)this.removeUsage(o,this.inline);n?.forEach(o=>this.removeUsage(o,this.external))}addUsage(e,n,o){let r=n.get(e);r?r.usage++:n.set(e,{usage:1,elements:[...this.hosts].map(a=>this.addElement(a,o(e,this.doc)))})}removeUsage(e,n){let o=n.get(e);o&&(o.usage--,o.usage<=0&&(Cg(o.elements),n.delete(e)))}ngOnDestroy(){for(let[,{elements:e}]of[...this.inline,...this.external])Cg(e);this.hosts.clear()}addHost(e){if(!this.hosts.has(e)){this.hosts.add(e);for(let[n,{elements:o}]of this.inline)o.push(this.addElement(e,yg(n,this.doc)));for(let[n,{elements:o}]of this.external)o.push(this.addElement(e,pu(n,this.doc)))}}removeHost(e){this.hosts.delete(e);for(let n of[...this.inline.values(),...this.external.values()]){let o=[];for(let r of n.elements)r.parentNode===e?r.remove():o.push(r);n.elements=o}}
vendor: 3,304 bytes, line 1
1addElement(e,n){return this.nonce&&n.setAttribute("nonce",this.nonce),e.appendChild(n)}static \u0275fac=function(n){return new(n||t)(Ve(xn),Ve(Jp),Ve(Xp,8),Ve(Hr))};static \u0275prov=G({token:t,factory:t.\u0275fac})}return t})(),du={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/Math/MathML"},hu=/%COMP%/g;var Sg="%COMP%",_1=`_nghost-${Sg}`,C1=`_ngcontent-${Sg}`,y1=!0,b1=new ve("",{factory:()=>y1}),S1=new ve("");function v1(t){return C1.replace(hu,t)}function w1(t){return _1.replace(hu,t)}function vg(t,i){return i.map(e=>e.replace(hu,t))}var fu=(()=>{class t{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;cssVarNamespace;constructor(e,n,o,r,a,s,l=null,c=null,d=null){this.eventManager=e,this.sharedStylesHost=n,this.appId=o,this.removeStylesOnCompDestroy=r,this.doc=a,this.ngZone=s,this.nonce=l,this.tracingService=c,this.cssVarNamespace=d??"",this.defaultRenderer=new rs(e,a,s,this.tracingService,this.cssVarNamespace)}createRenderer(e,n){if(!e||!n)return this.defaultRenderer;let o=this.getOrCreateRenderer(e,n);return o instanceof Gl?o.applyToHost(e):o instanceof as&&o.applyStyles(),o}getOrCreateRenderer(e,n){let o=this.rendererByCompId,r=o.get(n.id);if(!r){let a=this.doc,s=this.ngZone,l=this.eventManager,c=this.sharedStylesHost,d=this.removeStylesOnCompDestroy,m=this.tracingService;switch(n.encapsulation){case Dl.Emulated:r=new Gl(l,c,n,this.appId,d,a,s,m,this.cssVarNamespace);break;case Dl.ShadowDom:return new Wl(l,e,n,a,s,this.nonce,m,this.cssVarNamespace,c);case Dl.ExperimentalIsolatedShadowDom:return new Wl(l,e,n,a,s,this.nonce,m,this.cssVarNamespace);default:r=new as(l,c,n,d,a,s,m,this.cssVarNamespace);break}o.set(n.id,r)}return r}ngOnDestroy(){this.rendererByCompId.clear()}componentReplaced(e){this.rendererByCompId.delete(e)}static \u0275fac=function(n){return new(n||t)(Ve(uu),Ve(ns),Ve(Jp),Ve(b1),Ve(xn),Ve(Qn),Ve(Xp),Ve(wf,8),Ve(S1,8))};static \u0275prov=G({token:t,factory:t.\u0275fac})}return t})(),rs=class{eventManager;doc;ngZone;tracingService;cssVarNamespace;data=Object.create(null);throwOnSyntheticProps=!0;constructor(i,e,n,o,r=""){this.eventManager=i,this.doc=e,this.ngZone=n,this.tracingService=o,this.cssVarNamespace=r}destroy(){}destroyNode=null;createElement(i,e){return e?this.doc.createElementNS(du[e]||e,i):this.doc.createElement(i)}createComment(i){return this.doc.createComment(i)}createText(i){return this.doc.createTextNode(i)}appendChild(i,e){(bg(i)?i.content:i).appendChild(e)}insertBefore(i,e,n){i&&(bg(i)?i.content:i).insertBefore(e,n)}removeChild(i,e){e.remove()}selectRootElement(i,e){let n=typeof i=="string"?this.doc.querySelector(i):i;if(!n)throw new wt(-5104,!1);return e||(n.textContent=""),n}parentNode(i){return i.parentNode}nextSibling(i){return i.nextSibling}setAttribute(i,e,n,o){if(o){e=o+":"+e;let r=du[o];r?i.setAttributeNS(r,e,n):i.setAttribute(e,n)}else i.setAttribute(e,n)}removeAttribute(i,e,n){if(n){let o=du[n];o?i.removeAttributeNS(o,e):i.removeAttribute(`${n}:${e}`)}else i.removeAttribute(e)}addClass(i,e){i.classList.add(e)}removeClass(i,e){i.classList.remove(e)}
vendor: 5,592 bytes, line 1
1setStyle(i,e,n,o){let r=e.startsWith("--");r&&(e=e.replace("%NS%",this.cssVarNamespace)),r||o&(ts.DashCase|ts.Important)?i.style.setProperty(e,n,o&ts.Important?"important":""):i.style[e]=n}removeStyle(i,e,n){let o=e.startsWith("--");o&&(e=e.replace("%NS%",this.cssVarNamespace)),o||n&ts.DashCase?i.style.removeProperty(e):i.style[e]=""}setProperty(i,e,n){i!=null&&(i[e]=n)}setValue(i,e){i.nodeValue=e}listen(i,e,n,o){if(typeof i=="string"&&(i=is().getGlobalEventTarget(this.doc,i),!i))throw new wt(-5102,!1);let r=this.decoratePreventDefault(n);return this.tracingService?.wrapEventListener&&(r=this.tracingService.wrapEventListener(i,e,r)),this.eventManager.addEventListener(i,e,r,o)}decoratePreventDefault(i){return e=>{if(e==="__ngUnwrap__")return i;i(e)===!1&&e.preventDefault()}}};function bg(t){return t.tagName==="TEMPLATE"&&t.content!==void 0}var Wl=class extends rs{hostEl;sharedStylesHost;shadowRoot;constructor(i,e,n,o,r,a,s,l,c){super(i,o,r,s,l),this.hostEl=e,this.sharedStylesHost=c,this.shadowRoot=e.attachShadow({mode:"open"}),this.sharedStylesHost&&this.sharedStylesHost.addHost(this.shadowRoot);let d=n.styles;d=vg(n.id,d).map(g=>g.replace(/%NS%/g,l));for(let g of d){let C=document.createElement("style");a&&C.setAttribute("nonce",a),C.textContent=g,this.shadowRoot.appendChild(C)}let m=n.getExternalStyles?.();if(m)for(let g of m){let C=pu(g,o);a&&C.setAttribute("nonce",a),this.shadowRoot.appendChild(C)}}nodeOrShadowRoot(i){return i===this.hostEl?this.shadowRoot:i}appendChild(i,e){return super.appendChild(this.nodeOrShadowRoot(i),e)}insertBefore(i,e,n){return super.insertBefore(this.nodeOrShadowRoot(i),e,n)}removeChild(i,e){return super.removeChild(null,e)}parentNode(i){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(i)))}destroy(){this.sharedStylesHost&&this.sharedStylesHost.removeHost(this.shadowRoot)}},as=class extends rs{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(i,e,n,o,r,a,s,l,c){super(i,r,a,s,l),this.sharedStylesHost=e,this.removeStylesOnCompDestroy=o;let d=n.styles,m=c?vg(c,d):d;this.styles=m.map(g=>g.replace(/%NS%/g,l)),this.styleUrls=n.getExternalStyles?.(c)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&vf.size===0&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},Gl=class extends as{contentAttr;hostAttr;constructor(i,e,n,o,r,a,s,l,c){let d=o+"-"+n.id;super(i,e,n,r,a,s,l,c,d),this.contentAttr=v1(d),this.hostAttr=w1(d)}applyToHost(i){this.applyStyles(),this.setAttribute(i,this.hostAttr,"")}createElement(i,e){let n=super.createElement(i,e);return super.setAttribute(n,this.contentAttr,""),n}};var Kl=class t extends Yf{supportsDOMEvents=!0;static makeCurrent(){Gf(new t)}onAndCancel(i,e,n,o){return i.addEventListener(e,n,o),()=>{i.removeEventListener(e,n,o)}}dispatchEvent(i,e){i.dispatchEvent(e)}remove(i){i.remove()}createElement(i,e){return e=e||this.getDefaultDocument(),e.createElement(i)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(i){return i.nodeType===Node.ELEMENT_NODE}isShadowRoot(i){return i instanceof DocumentFragment}getGlobalEventTarget(i,e){return e==="window"?window:e==="document"?i:e==="body"?i.body:null}getBaseHref(i){let e=P1();return e==null?null:M1(e)}resetBaseElement(){ss=null}getUserAgent(){return window.navigator.userAgent}getCookie(i){return Jf(document.cookie,i)}},ss=null;function P1(){return ss=ss||document.head.querySelector("base"),ss?ss.getAttribute("href"):null}function M1(t){return new URL(t,document.baseURI).pathname}var wg=["alt","control","meta","shift"],O1={"\b":"Backspace"," ":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},D1={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey},xg=(()=>{class t extends os{constructor(e){super(e)}supports(e){return t.parseEventName(e)!=null}addEventListener(e,n,o,r){let a=t.parseEventName(n),s=t.eventCallback(a.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>is().onAndCancel(e,a.domEventName,s,r))}static parseEventName(e){let n=e.toLowerCase().split("."),o=n.shift();if(n.length===0||!(o==="keydown"||o==="keyup"))return null;let r=t._normalizeKey(n.pop()),a="",s=n.indexOf("code");if(s>-1&&(n.splice(s,1),a="code."),wg.forEach(c=>{let d=n.indexOf(c);d>-1&&(n.splice(d,1),a+=c+".")}),a+=r,n.length!=0||r.length===0)return null;let l={};return l.domEventName=o,l.fullKey=a,l}static matchEventFullKeyCode(e,n){let o=O1[e.key]||e.key,r="";return n.indexOf("code.")>-1&&(o=e.code,r="code."),o==null||!o?!1:(o=o.toLowerCase(),o===" "?o="space":o==="."&&(o="dot"),wg.forEach(a=>{if(a!==o){let s=D1[a];s(e)&&(r+=a+".")}}),r+=o,r===n)}static eventCallback(e,n,o){return r=>{t.matchEventFullKeyCode(r,e)&&o.runGuarded(()=>n(r))}}static _normalizeKey(e){return e==="esc"?"escape":e}static \u0275fac=function(n){return new(n||t)(Ve(xn))};static \u0275prov=G({token:t,factory:t.\u0275fac})}return t})();function gu(t,i){return z(this,null,function*(){return jf(N1(t,i))})}function N1(t,i){return{platformRef:i?.platformRef,appProviders:[...E1,...t?.providers??[]],platformProviders:R1}}function I1(){Kl.makeCurrent()}function k1(){return new Qp}function T1(){return hf(document),document}var R1=[{provide:Hr,useValue:Xf},{provide:df,useValue:I1,multi:!0},{provide:xn,useFactory:T1}];var E1=[{provide:sf,useValue:"root"},{provide:Qp,useFactory:k1}
1,{provide:Yl,useClass:$l,multi:!0},{provide:Yl,useClass:xg,multi:!0},fu,{provide:ns,useClass:mu},{provide:mu,useExisting:ns},uu,{provide:Of,useExisting:fu},[]];var Pg=(()=>{class t{_doc;constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}static \u0275fac=function(n){return new(n||t)(Ve(xn))};static \u0275prov=G({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var _u=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=G({token:t,factory:function(n){let o=null;return n?o=new(n||t):o=Ve(A1),o},providedIn:"root"})}return t})(),A1=(()=>{class t extends _u{_doc=f(xn);sanitize(e,n){if(n==null)return null;switch(e){case to.NONE:return n;case to.HTML:return qr(n,"HTML")?Vr(n):Sf(this._doc,String(n)).toString();case to.STYLE:return qr(n,"Style")?Vr(n):n;case to.SCRIPT:if(qr(n,"Script"))return Vr(n);throw new wt(5200,!1);case to.URL:return qr(n,"URL")?Vr(n):bf(String(n));case to.RESOURCE_URL:if(qr(n,"ResourceURL"))return Vr(n);throw new wt(-5201,!1);default:throw new wt(5202,!1)}}bypassSecurityTrustHtml(e){return ff(e)}bypassSecurityTrustStyle(e){return gf(e)}bypassSecurityTrustScript(e){return _f(e)}bypassSecurityTrustUrl(e){return Cf(e)}bypassSecurityTrustResourceUrl(e){return yf(e)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=Tn({token:t,factory:t.\u0275fac})}return t})();var bu={};function de(t,i){if(bu[t]=(bu[t]||0)+1,typeof i=="function")return Cu(t,(...n)=>j(S({},i(...n)),{type:t}));switch(i?i._as:"empty"){case"empty":return Cu(t,()=>({type:t}));case"props":return Cu(t,n=>j(S({},n),{type:t}));default:throw new Error("Unexpected config.")}}function be(){return{_as:"props",_p:void 0}}function Cu(t,i){return Object.defineProperty(i,"type",{value:t,writable:!1})}function z1(t,i){if(t==null)throw new Error(`${i} must be defined.`)}var Fg="@ngrx/store/init",ia=(()=>{class t extends yt{constructor(){super({type:Fg})}next(e){if(typeof e=="function")throw new TypeError(` 2 Dispatch expected an object, instead it received a function. 3 If you're using the createAction function, make sure to invoke the function 4 before dispatching the action. For example, someAction should be someAction().`);if(typeof e>"u")throw new TypeError("Actions must be objects");if(typeof e.type>"u")throw new TypeError("Actions must have a type property");super.next(e)}complete(){}ngOnDestroy(){super.complete()}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=G({token:t,factory:t.\u0275fac})}}return t})(),B1=[ia],Ug=new ve("@ngrx/store Internal Root Guard"),Mg=new ve("@ngrx/store Internal Initial State"),Pu=new ve("@ngrx/store Initial State"),Hg=new ve("@ngrx/store Reducer Factory"),Og=new ve("@ngrx/store Internal Reducer Factory Provider"),Vg=new ve("@ngrx/store Initial Reducers"),yu=new ve("@ngrx/store Internal Initial Reducers");var Dg=new ve("@ngrx/store Internal Store Reducers");var F1=new ve("@ngrx/store Internal Store Features");var U1=new ve("@ngrx/store Feature Reducers"),Ng=new ve("@ngrx/store User Provided Meta Reducers"),Zl=new ve("@ngrx/store Meta Reducers"),Ig=new ve("@ngrx/store Internal Resolved Meta Reducers"),kg=new ve("@ngrx/store User Runtime Checks Config"),Tg=new ve("@ngrx/store Internal User Runtime Checks Config"),ls=new ve("@ngrx/store Internal Runtime Checks"),Mu=new ve("@ngrx/store Check if Action types are unique"),Su=new ve("@ngrx/store Root Store Provider"),Rg=new ve("@ngrx/store Feature State Provider");function H1(t,i={}){let e=Object.keys(t),n={};for(let r=0;r<e.length;r++){let a=e[r];typeof t[a]=="function"&&(n[a]=t[a])}let o=Object.keys(n);return function(a,s){a=a===void 0?i:a;let l=!1,c={};for(let d=0;d<o.length;d++){let m=o[d],g=n[m],C=a[m],R=g(C,s);c[m]=R,l=l||R!==C}return l?c:a}}function V1(t,i){return Object.keys(t).filter(e=>e!==i).reduce((e,n)=>Object.assign(e,{[n]:t[n]}),{})}function qg(...t){return function(i){if(t.length===0)return i;let e=t[t.length-1];return t.slice(0,-1).reduceRight((o,r)=>r(o),e(i))}}function jg(t,i){return Array.isArray(i)&&i.length>0&&(t=qg.apply(null,[...i,t])),(e,n)=>{let o=t(e);return(r,a)=>(r=r===void 0?n:r,o(r,a))}}function q1(t){let i=Array.isArray(t)&&t.length>0?qg(...t):e=>e;return(e,n)=>(e=i(e),(o,r)=>(o=o===void 0?n:o,e(o,r)))}var cs=class extends Ri{},Ql=class extends ia{},j1="@ngrx/store/update-reducers",Jl=(()=>{class t extends yt{get currentReducers(){return this.reducers}constructor(e,n,o,r){super(r(o,n)),this.dispatcher=e,this.initialState=n,this.reducers=o,this.reducerFactory=r}addFeature(e){this.addFeatures([e])}addFeatures(e){let n=e.reduce((o,{reducers:r,reducerFactory:a,metaReducers:s,initialState:l,key:c})=>{let d=typeof r=="function"?q1(s)(r,l):jg(a,s)(r,l);return o[c]=d,o},{});this.addReducers(n)}
4removeFeature(e){this.removeFeatures([e])}removeFeatures(e){this.removeReducers(e.map(n=>n.key))}addReducer(e,n){this.addReducers({[e]:n})}addReducers(e){this.reducers=S(S({},this.reducers),e),this.updateReducers(Object.keys(e))}removeReducer(e){this.removeReducers([e])}removeReducers(e){e.forEach(n=>{this.reducers=V1(this.reducers,n)}),this.updateReducers(e)}updateReducers(e){this.next(this.reducerFactory(this.reducers,this.initialState)),this.dispatcher.next({type:j1,features:e})}ngOnDestroy(){this.complete()}static{this.\u0275fac=function(n){return new(n||t)(Ve(Ql),Ve(Pu),Ve(Vg),Ve(Hg))}}static{this.\u0275prov=G({token:t,factory:t.\u0275fac})}}return t})(),$1=[Jl,{provide:cs,useExisting:Jl},{provide:Ql,useExisting:ia}],Ou=(()=>{class t extends Ei{ngOnDestroy(){this.complete()}static{this.\u0275fac=(()=>{let e;return function(o){return(e||(e=Ne(t)))(o||t)}})()}static{this.\u0275prov=G({token:t,factory:t.\u0275fac})}}return t})(),W1=[Ou],Xl=class extends Ri{},Eg=(()=>{class t extends yt{static{this.INIT=Fg}constructor(e,n,o,r){super(r);let s=e.pipe(Zh(Kh)).pipe(rf(n)),l={state:r},c=s.pipe(nf(G1,l));this.stateSubscription=c.subscribe(({state:d,action:m})=>{this.next(d),o.next(m)}),this.state=Me(this,{manualCleanup:!0,requireSync:!0})}ngOnDestroy(){this.stateSubscription.unsubscribe(),this.complete()}static{this.\u0275fac=function(n){return new(n||t)(Ve(ia),Ve(cs),Ve(Ou),Ve(Pu))}}static{this.\u0275prov=G({token:t,factory:t.\u0275fac})}}return t})();function G1(t={state:void 0},[i,e]){let{state:n}=t;return{state:e(n,i),action:i}}var Y1=[Eg,{provide:Xl,useExisting:Eg}],oe=(()=>{class t extends Ri{constructor(e,n,o,r){super(),this.actionsObserver=n,this.reducerManager=o,this.injector=r,this.source=e,this.state=e.state}select(e,...n){return no.call(null,e,...n)(this)}selectSignal(e,n){return A(()=>e(this.state()),n)}lift(e){let n=new t(this,this.actionsObserver,this.reducerManager);return n.operator=e,n}dispatch(e,n){if(typeof e=="function")return this.processDispatchFn(e,n);this.actionsObserver.next(e)}next(e){this.actionsObserver.next(e)}error(e){this.actionsObserver.error(e)}complete(){this.actionsObserver.complete()}addReducer(e,n){this.reducerManager.addReducer(e,n)}removeReducer(e){this.reducerManager.removeReducer(e)}processDispatchFn(e,n){z1(this.injector,"Store Injector");let o=n?.injector??Z1()??this.injector;return et(()=>{let r=e();wo(()=>this.dispatch(r))},{injector:o})}static{this.\u0275fac=function(n){return new(n||t)(Ve(Xl),Ve(ia),Ve(Jl),Ve(kn))}}static{this.\u0275prov=G({token:t,factory:t.\u0275fac})}}return t})(),K1=[oe];function no(t,i,...e){return function(o){let r;if(typeof t=="string"){let a=[i,...e].filter(Boolean);r=o.pipe(tf(t,...a))}else if(typeof t=="function")r=o.pipe(Be(a=>t(a,i)));else throw new TypeError(`Unexpected type '${typeof t}' in select operator, expected 'string' or 'function'`);return r.pipe(Ml())}}function Z1(){try{return f(kn)}catch(t){return}}var Du="https://ngrx.io/guide/store/configuration/runtime-checks";function Ag(t){return t===void 0}function Lg(t){return t===null}function $g(t){return Array.isArray(t)}function Q1(t){return typeof t=="string"}function J1(t){return typeof t=="boolean"}function X1(t){return typeof t=="number"}function Wg(t){return typeof t=="object"&&t!==null}function ew(t){return Wg(t)&&!$g(t)}function tw(t){if(!ew(t))return!1;let i=Object.getPrototypeOf(t);return i===Object.prototype||i===null}function vu(t){return typeof t=="function"}function nw(t){return vu(t)&&t.hasOwnProperty("\u0275cmp")}function iw(t,i){return Object.prototype.hasOwnProperty.call(t,i)}function zg(t,i){return t===i}function ow(t,i,e){for(let n=0;n<t.length;n++)if(!e(t[n],i[n]))return!0;return!1}function Gg(t,i=zg,e=zg){let n=null,o=null,r;function a(){n=null,o=null}function s(d=void 0){r={result:d}}function l(){r=void 0}function c(){if(r!==void 0)return r.result;if(!n)return o=t.apply(null,arguments),n=arguments,o;if(!ow(arguments,n,i))return o;let d=t.apply(null,arguments);return n=arguments,e(o,d)?o:(o=d,d)}return{memoized:c,reset:a,setResult:s,clearResult:l}}function me(...t){return aw(Gg)(...t)}function rw(t,i,e,n){if(e===void 0){let r=i.map(a=>a(t));return n.memoized.apply(null,r)}let o=i.map(r=>r(t,e));return n.memoized.apply(null,[...o,e])}function aw(t,i={stateFn:rw}){return function(...e){let n=e;if(Array.isArray(n[0])){let[d,...m]=n;n=[...d,...m]}else n.length===1&&sw(n[0])&&(n=lw(n[0]));let o=n.slice(0,n.length-1),r=n[n.length-1],a=o.filter(d=>d.release&&typeof d.release=="function"),s=t(function(...d){return r.apply(null,d)}),l=Gg(function(d,m){return i.stateFn.apply(null,[d,o,m,s])});function c(){l.reset(),s.reset(),a.forEach(d=>
4d.release())}return Object.assign(l.memoized,{release:c,projector:s.memoized,setResult:l.setResult,clearResult:l.clearResult})}}function sw(t){return!!t&&typeof t=="object"&&Object.values(t).every(i=>typeof i=="function")}function lw(t){let i=Object.values(t),e=Object.keys(t),n=(...o)=>e.reduce((r,a,s)=>j(S({},r),{[a]:o[s]}),{});return[...i,n]}function cw(t){return t instanceof ve?f(t):t}function Yg(t){return typeof t=="function"?t():t}function dw(t,i){return t.concat(i)}function pw(){if(f(oe,{optional:!0,skipSelf:!0}))throw new TypeError("The root Store has been provided more than once. Feature modules should provide feature states instead.");return"guarded"}function uw(t,i){return function(e,n){let o=i.action(n)?wu(n):n,r=t(e,o);return i.state()?wu(r):r}}function wu(t){Object.freeze(t);let i=vu(t);return Object.getOwnPropertyNames(t).forEach(e=>{if(!e.startsWith("\u0275")&&iw(t,e)&&(!i||e!=="caller"&&e!=="callee"&&e!=="arguments")){let n=t[e];(Wg(n)||vu(n))&&!Object.isFrozen(n)&&wu(n)}}),t}function mw(t,i){return function(e,n){if(i.action(n)){let r=xu(n);Bg(r,"action")}let o=t(e,n);if(i.state()){let r=xu(o);Bg(r,"state")}return o}}function xu(t,i=[]){return(Ag(t)||Lg(t))&&i.length===0?{path:["root"],value:t}:Object.keys(t).reduce((n,o)=>{if(n)return n;let r=t[o];return nw(r)?n:Ag(r)||Lg(r)||X1(r)||J1(r)||Q1(r)||$g(r)?!1:tw(r)?xu(r,[...i,o]):{path:[...i,o],value:r}},!1)}function Bg(t,i){if(t===!1)return;let e=t.path.join("."),n=new Error(`Detected unserializable ${i} at "${e}". ${Du}#strict${i}serializability`);throw n.value=t.value,n.unserializablePath=e,n}function hw(t,i){return function(e,n){if(i.action(n)&&!Qn.isInAngularZone())throw new Error(`Action '${n.type}' running outside NgZone. ${Du}#strictactionwithinngzone`);return t(e,n)}}function fw(t){return Tl()?S({strictStateSerializability:!1,strictActionSerializability:!1,strictStateImmutability:!0,strictActionImmutability:!0,strictActionWithinNgZone:!1,strictActionTypeUniqueness:!1},t):{strictStateSerializability:!1,strictActionSerializability:!1,strictStateImmutability:!1,strictActionImmutability:!1,strictActionWithinNgZone:!1,strictActionTypeUniqueness:!1}}function gw({strictActionSerializability:t,strictStateSerializability:i}){return e=>t||i?mw(e,{action:n=>
4t&&!Nu(n),state:()=>i}):e}function _w({strictActionImmutability:t,strictStateImmutability:i}){return e=>t||i?uw(e,{action:n=>t&&!Nu(n),state:()=>i}):e}function Nu(t){return t.type.startsWith("@ngrx")}function Cw({strictActionWithinNgZone:t}){return i=>t?hw(i,{action:e=>t&&!Nu(e)}):i}function yw(t){return[{provide:Tg,useValue:t},{provide:kg,useFactory:Sw,deps:[Tg]},{provide:ls,deps:[kg],useFactory:fw},{provide:Zl,multi:!0,deps:[ls],useFactory:_w},{provide:Zl,multi:!0,deps:[ls],useFactory:gw},{provide:Zl,multi:!0,deps:[ls],useFactory:Cw}]}function bw(){return[{provide:Mu,multi:!0,deps:[ls],useFactory:vw}]}function Sw(t){return t}function vw(t){if(!t.strictActionTypeUniqueness)return;let i=Object.entries(bu).filter(([,e])=>e>1).map(([e])=>e);if(i.length)throw new Error(`Action types are registered more than once, ${i.map(e=>`"${e}"`).join(", ")}. ${Du}#strictactiontypeuniqueness`)}function ww(t={},i={}){return[{provide:Ug,useFactory:pw},{provide:Mg,useValue:i.initialState},{provide:Pu,useFactory:Yg,deps:[Mg]},{provide:yu,useValue:t},{provide:Dg,useExisting:t instanceof ve?t:yu},{provide:Vg,deps:[yu,[new mf(Dg)]],useFactory:cw},{provide:Ng,useValue:i.metaReducers?i.metaReducers:[]},{provide:Ig,deps:[Zl,Ng],useFactory:dw},{provide:Og,useValue:i.reducerFactory?i.reducerFactory:H1},{provide:Hg,deps:[Og,Ig],useFactory:jg},B1,$1,W1,Y1,K1,yw(i.runtimeChecks),bw()]}function xw(){f(ia),f(cs),f(Ou),f(oe),f(Ug,{optional:!0}),f(Mu,{optional:!0})}var Pw=[{provide:Su,useFactory:xw},Zp(()=>f(Su))];function Kg(t,i){return Kn([...ww(t,i),Pw])}function Mw(){f(Su);let t=f(F1),i=f(U1),e=f(Jl);f(Mu,{optional:!0});let n=t.map((o,r)=>{let s=i.shift()[r];return j(S({},o),{reducers:s,initialState:Yg(o.initialState)})});e.addFeatures(n)}var y5=[{provide:Rg,useFactory:Mw},Zp(()=>f(Rg))];function pe(...t){let i=t.pop(),e=t.map(n=>n.type);return{reducer:i,types:e}}function Zg(t,...i){let e=new Map;for(let n of i)for(let o of n.types){let r=e.get(o);if(r){let a=(s,l)=>n.reducer(r(s,l),l);e.set(o,a)}else e.set(o,n.reducer)}return function(n=t,o){let r=e.get(o.type);return r?r(n,o):n}}var tt="[App-State] ",ii=de(tt+"Set language",be()),oa=de(tt+"Set currency",be()),Qg=de(tt+"Set search result",be()),Jg=de(tt+"Set next step",be()),Ui=de(tt+"Set search request",be()),Hi=de(tt+"Set promo code",be()),Mo=de(tt+"Set response",be()),ec=de(tt+"Set basket",be()),Xg=de(tt+"Set basket parties",be()),tc=de(tt+"Clear basket"),e0=de(tt+"Clear basket and navigate"),t0=de(tt+"Set booking draft info",be()),nc=de(tt+"Clear booking draft info"),ic=de(tt+"Clear booking steps"),Oo=de(tt+"Set basket timeout at",be()),Iu=de(tt+"Booking outcome error",be()),ds=de(tt+"Set TestMode on step",be()),v5=de(tt+"Hard booking error"),n0=de(tt+"Set booking validation",be()),i0=de(tt+"Reset state"),ra=de(tt+"Set loyalty user",be()),oc=de(tt+"Set require login flag",be()),o0=de(tt+"Set Spenn status",be()),r0=de(tt+"Set loyalty deal not affordable",be()),a0=de(tt+"Set booking confirmation info",be()),s0=de(tt+"Set waitlist confirmation info",be()),rc=de(tt+"Reset flags to show or hide elements"),ac=de(tt+"Set flags to show or hide elements",be()),ps=de(tt+"Set chat unread message",be()),us=de(tt+"Set chat session started",be()),sc=de(tt+"Set chat first visit delay passed",be());var ku=()=>({isInIframe:!1,bookingSteps:[],nextStep:null,basket:null,bookingDraftInfo:null,language:"en-US",currency:null,userHasChangedLanguage:!1,searchRequest:null,promoCode:"",basketTimeoutAt:null,bookingValidation:null,isInTestModeSearch:!1,loyaltyUser:null,loyaltyDealNotAffordable:[],bonusPoints:{requireLogin:!1,spenn:{status:null}},bookingConfirmation:null,waitlistConfirmation:null,show:{signInInformationSidePanel:!0,changeTimeslotInMyPage:!0},chatNotifications:{unreadMessage:!1,sessionStarted:!1,firstVisitDelayPassed:!1}});var g0=Symbol.for("immer-nothing"),l0=Symbol.for("immer-draftable"),je=Symbol.for("immer-state");function oi(t,...i){throw new Error(`[Immer] minified error nr: ${t}. Full error at: https://bit.ly/3cXEKWf`)}var Bn=Object,sa=Bn.getPrototypeOf,pc="constructor",Cc="prototype",Au="configurable",uc="enumerable",cc="writable",ms="value",Do=t=>!!t&&!!t[je];function ri(t){return t?_0(t)||yc(t)||!!t[l0]||!!t[pc]?.[l0]||bc(t)||Sc(t):!1}var Nw=Bn[Cc][pc].toString(),c0=new WeakMap;function _0(t){if(!t||!vc(t))return!1;let i=sa(t);if(i===null||i===Bn[Cc])return!0;let e=Bn.hasOwnProperty.call(i,pc)&&i[pc];if(e===Object)return!0;
vendor: 10,224 bytes, line 4
4if(!aa(e))return!1;let n=c0.get(e);return n===void 0&&(n=Function.toString.call(e),c0.set(e,n)),n===Nw}function Cs(t,i,e=!0){ys(t)===0?(e?Reflect.ownKeys(t):Bn.keys(t)).forEach(o=>{i(o,t[o],t)}):t.forEach((n,o)=>i(o,n,t))}function ys(t){let i=t[je];return i?i.type_:yc(t)?1:bc(t)?2:Sc(t)?3:0}var Tu=(t,i,e=ys(t))=>e===2?t.has(i):Bn[Cc].hasOwnProperty.call(t,i),Lu=(t,i,e=ys(t))=>e===2?t.get(i):t[i],mc=(t,i,e,n=ys(t))=>{n===2?t.set(i,e):n===3?t.add(e):t[i]=e};function Iw(t,i){return t===i?t!==0||1/t===1/i:t!==t&&i!==i}var yc=Array.isArray,bc=t=>t instanceof Map,Sc=t=>t instanceof Set,vc=t=>typeof t=="object",aa=t=>typeof t=="function",Ru=t=>typeof t=="boolean";function kw(t){let i=+t;return Number.isInteger(i)&&String(i)===t}var Tw=t=>vc(t)?t?.[je]:null,Wt=t=>t.copy_||t.base_,Rw=t=>{let i=Tw(t);return i?i.copy_??i.base_:t},Vu=t=>t.modified_?t.copy_:t.base_;function zu(t,i){if(bc(t))return new Map(t);if(Sc(t))return new Set(t);if(yc(t))return Array[Cc].slice.call(t);let e=_0(t);if(i===!0||i==="class_only"&&!e){let n=Bn.getOwnPropertyDescriptors(t);delete n[je];let o=Reflect.ownKeys(n);for(let r=0;r<o.length;r++){let a=o[r],s=n[a];s[cc]===!1&&(s[cc]=!0,s[Au]=!0),(s.get||s.set)&&(n[a]={[Au]:!0,[cc]:!0,[uc]:s[uc],[ms]:t[a]})}return Bn.create(sa(t),n)}else{let n=sa(t);if(n!==null&&e)return S({},t);let o=Bn.create(n);return Bn.assign(o,t)}}function qu(t,i=!1){return wc(t)||Do(t)||!ri(t)||(ys(t)>1&&Bn.defineProperties(t,{set:lc,add:lc,clear:lc,delete:lc}),Bn.freeze(t),i&&Cs(t,(e,n)=>{qu(n,!0)},!1)),t}function Ew(){oi(2)}var lc={[ms]:Ew};function wc(t){return t===null||!vc(t)?!0:Bn.isFrozen(t)}var hs="MapSet",Bu="Patches",d0="ArrayMethods",hc={};function hr(t){let i=hc[t];return i||oi(0,t),i}var p0=t=>!!hc[t];function Aw(t,i){hc[t]||(hc[t]=i)}var fs,fc=()=>fs,Lw=(t,i)=>({drafts_:[],parent_:t,immer_:i,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:p0(hs)?hr(hs):void 0,arrayMethodsPlugin_:p0(d0)?hr(d0):void 0});function u0(t,i){i&&(t.patchPlugin_=hr(Bu),t.patches_=[],t.inversePatches_=[],t.patchListener_=i)}function Fu(t){Uu(t),t.drafts_.forEach(zw),t.drafts_=null}function Uu(t){t===fs&&(fs=t.parent_)}var m0=t=>fs=Lw(fs,t);function zw(t){let i=t[je];i.type_===0||i.type_===1?i.revoke_():i.revoked_=!0}function h0(t,i){i.unfinalizedDrafts_=i.drafts_.length;let e=i.drafts_[0];if(t!==void 0&&t!==e){e[je].modified_&&(Fu(i),oi(4)),ri(t)&&(t=f0(i,t));let{patchPlugin_:o}=i;o&&o.generateReplacementPatches_(e[je].base_,t,i)}else t=f0(i,e);return Bw(i,t,!0),Fu(i),i.patches_&&i.patchListener_(i.patches_,i.inversePatches_),t!==g0?t:void 0}function f0(t,i){if(wc(i))return i;let e=i[je];if(!e)return gc(i,t.handledSet_,t);if(!xc(e,t))return i;if(!e.modified_)return e.base_;if(!e.finalized_){let{callbacks_:n}=e;if(n)for(;n.length>0;)n.pop()(t);b0(e,t)}return e.copy_}function Bw(t,i,e=!1){!t.parent_&&t.immer_.autoFreeze_&&t.canAutoFreeze_&&qu(i,e)}function C0(t){t.finalized_=!0,t.scope_.unfinalizedDrafts_--}var xc=(t,i)=>t.scope_===i,Fw=[];function y0(t,i,e,n){let o=Wt(t),r=t.type_;if(n!==void 0&&Lu(o,n,r)===i){mc(o,n,e,r);return}if(!t.draftLocations_){let s=t.draftLocations_=new Map;Cs(o,(l,c)=>{if(Do(c)){let d=s.get(c)||[];d.push(l),s.set(c,d)}})}let a=t.draftLocations_.get(i)??Fw;for(let s of a)mc(o,s,e,r)}function Uw(t,i,e){t.callbacks_.push(function(o){let r=i;if(!r||!xc(r,o))return;o.mapSetPlugin_?.fixSetContents(r);let a=Vu(r);y0(t,r.draft_??r,a,e),b0(r,o)})}function b0(t,i){if(t.modified_&&!t.finalized_&&(t.type_===3||t.type_===1&&t.allIndicesReassigned_||(t.assigned_?.size??0)>0)){let{patchPlugin_:n}=i;if(n){let o=n.getPath(t);o&&n.generatePatches_(t,o,i)}C0(t)}}function Hu(t,i,e){let{scope_:n}=t;if(Do(e)){let o=e[je];xc(o,n)&&o.callbacks_.push(function(){dc(t);let a=Vu(o);y0(t,e,a,i)})}else ri(e)&&t.callbacks_.push(function(){let r=Wt(t);t.type_===3?r.has(e)&&gc(e,n.handledSet_,n):Lu(r,i,t.type_)===e&&n.drafts_.length>1&&(t.assigned_.get(i)??!1)===!0&&t.copy_&&gc(Lu(t.copy_,i,t.type_),n.handledSet_,n)})}function gc(t,i,e){return!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1||Do(t)||i.has(t)||!ri(t)||wc(t)||(i.add(t),Cs(t,(n,o)=>{if(Do(o)){let r=o[je];if(xc(r,e)){let a=Vu(r);mc(t,n,a,t.type_),C0(r)}}else ri(o)&&gc(o,i,e)})),t}function Hw(t,i){let e=yc(t),n={type_:e?1:0,scope_:i?i.scope_:fc(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:i,base_:t,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0},o=n,r=_c;e&&(o=[n],r=gs);let{revoke:a,proxy:s}=Proxy.revocable(o,r);return n.draft_=s,n.revoke_=a,[s,n]}var _c={get(t,i){if(i===je)return t;let e=t.scope_.arrayMethodsPlugin_,n=t.type_===1&&typeof i=="string";if(n&&e?.isArrayOperationMethod(i))return e.createMethodInterceptor(t,i);let o=Wt(t);if(!Tu(o,i,t.type_))return qw(t,o,i);let r=o[i];if(t.finalized_||!ri(r)||n&&t.operationMethod&&e?.isMutatingArrayMethod(t.operationMethod)&&kw(i))return r;if(r===Eu(t.base_,i)||Vw(t,i,r)){dc(t);let a=t.type_===1?+i:i,s=_s(t.scope_,r,t,a);return t.copy_[a]=s}return r},has(t,i){return i in Wt(t)},ownKeys(t){return Reflect.ownKeys(Wt(t))},set(t,i,e){let n=S0(Wt(t),i);if(n?.set)return n.set.call(t.draft_,e),!0;if(!t.modified_){let o=Eu(Wt(t),i),r=o?.[je];if(r&&r.base_===e)return t.copy_[i]=e,t.assigned_.set(i,!1),!0;if(Iw(e,o)&&(e!==void 0||Tu(t.base_,i,t.type_)))return!0;dc(t),io(t)}return t.copy_[i]===e&&(e!==void 0||Tu(t.copy_,i,t.type_))||Number.isNaN(e)&&Number.isNaN(t.copy_[i])||(t.copy_[i]=e,t.assigned_.set(i,!0),Hu(t,i,e)),!0},deleteProperty(t,i){return dc(t),Eu(t.base_,i)!==void 0||i in t.base_?(t.assigned_.set(i,!1),io(t)):t.assigned_.delete(i),t.copy_&&delete t.copy_[i],!0},getOwnPropertyDescriptor(t,i){let e=Wt(t),n=Reflect.getOwnPropertyDescriptor(e,i);return n&&{[cc]:!0,[Au]:t.type_!==1||i!=="length",[uc]:n[uc],[ms]:e[i]}},defineProperty(){oi(11)},getPrototypeOf(t){return sa(t.base_)},setPrototypeOf(){oi(12)}},gs={};for(let t in _c){let i=_c[t];gs[t]=function(){let e=arguments;return e[0]=e[0][0],i.apply(this,e)}}gs.deleteProperty=function(t,i){return gs.set.call(this,t,i,void 0)};gs.set=function(t,i,e){return _c.set.call(this,t[0],i,e,t[0])};function Eu(t,i){let e=t[je];return(e?Wt(e):t)[i]}function Vw(t,i,e){return t.type_!==1||!t.allIndicesReassigned_||t.assigned_?.get(i)||!ri(e)||e[je]?!1:t.baseRefs_.has(e)}function qw(t,i,e){let n=S0(i,e);return n?ms in n?n[ms]:n.get?.call(t.draft_):void 0}function S0(t,i){if(!(i in t))return;let e=sa(t);for(;e;){let n=Object.getOwnPropertyDescriptor(e,i);if(n)return n;e=sa(e)}}function io(t){t.modified_||(t.modified_=!0,t.parent_&&io(t.parent_))}function dc(t){t.copy_||(t.assigned_=new Map,t.copy_=zu(t.base_,t.scope_.immer_.useStrictShallowCopy_))}var jw=class{constructor(t){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(i,e,n)=>{if(aa(i)&&!aa(e)){let r=e;e=i;let a=this;return function(l=r,...c){return a.produce(l,d=>e.call(this,d,...c))}}aa(e)||oi(6),n!==void 0&&!aa(n)&&oi(7);let o;if(ri(i)){let r=m0(this),a=_s(r,i,void 0),s=!0;try{o=e(a),s=!1}finally{s?Fu(r):Uu(r)}return u0(r,n),h0(o,r)}else if(!i||!vc(i)){if(o=e(i),o===void 0&&(o=i),o===g0&&(o=void 0),this.autoFreeze_&&qu(o,!0),n){let r=[],a=[];hr(Bu).generateReplacementPatches_(i,o,{patches_:r,inversePatches_:a}),n(r,a)}return o}else oi(1,i)},this.produceWithPatches=(i,e)=>{if(aa(i))return(a,...s)=>this.produceWithPatches(a,l=>i(l,...s));let n,o;return[this.produce(i,e,(a,s)=>{n=a,o=s}),n,o]},Ru(t?.autoFreeze)&&this.setAutoFreeze(t.autoFreeze),Ru(t?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(t.useStrictShallowCopy),Ru(t?.useStrictIteration)&&this.setUseStrictIteration(t.useStrictIteration)}createDraft(t){ri(t)||oi(8),Do(t)&&(t=$w(t));let i=m0(this),e=_s(i,t,void 0);return e[je].isManual_=!0,Uu(i),e}finishDraft(t,i){let e=t&&t[je];(!e||!e.isManual_)&&oi(9);let{scope_:n}=e;return u0(n,i),h0(void 0,n)}setAutoFreeze(t){this.autoFreeze_=t}setUseStrictShallowCopy(t){this.useStrictShallowCopy_=t}setUseStrictIteration(t){this.useStrictIteration_=t}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(t,i){let e;for(e=i.length-1;e>=0;e--){let o=i[e];if(o.path.length===0&&o.op==="replace"){t=o.value;break}}e>-1&&(i=i.slice(e+1));let n=hr(Bu).applyPatches_;return Do(t)?n(t,i):this.produce(t,o=>n(o,i))}};function _s(t,i,e,n){let[o,r]=bc(i)?hr(hs).proxyMap_(i,e):Sc(i)?hr(hs).proxySet_(i,e):Hw(i,e);return(e?.scope_??fc()).drafts_.push(o),r.callbacks_=e?.callbacks_??[],r.key_=n,e&&n!==void 0?Uw(e,r,n):r.callbacks_.push(function(l){l.mapSetPlugin_?.fixSetContents(r);let{patchPlugin_:c}=l;r.modified_&&c&&c.generatePatches_(r,[],l)}),o}function $w(t){return Do(t)||oi(10,t),v0(t)}function v0(t){if(!ri(t)||wc(t))return t;let i=t[je],e,n=!0;if(i){if(!i.modified_)return i.base_;i.finalized_=!0,e=zu(t,i.scope_.immer_.useStrictShallowCopy_),n=i.scope_.immer_.shouldUseStrictIteration()}else e=zu(t,!0);return Cs(e,(o,r)=>{mc(e,o,v0(r))},n),i&&(i.finalized_=!1),e}function la(){class t extends Map{constructor(d,m){super(),this[je]={type_:2,parent_:m,scope_:m?m.scope_:fc(),modified_:!1,finalized_:!1,copy_:void 0,assigned_:void 0,base_:d,draft_:this,isManual_:!1,revoked_:!1,callbacks_:[]}}get size(){return Wt(this[je]).size}has(d){return Wt(this[je]).has(d)}set(d,m){let g=this[je];return s(g),(!Wt(g).has(d)||Wt(g).get(d)!==m)&&(n(g),io(g),g.assigned_.set(d,!0),g.copy_.set(d,m),g.assigned_.set(d,!0),Hu(g,d,m)),this}delete(d){if(!this.has(d))return!1;let m=this[je];return s(m),n(m),io(m),m.base_.has(d)?m.assigned_.set(d,!1):m.assigned_.delete(d),m.copy_.delete(d),!0}clear(){let d=this[je];s(d),Wt(d).size&&(n(d),io(d),d.assigned_=new Map,Cs(d.base_,m=>{d.assigned_.set(m,!1)}),d.copy_.clear())}forEach(d,m){let g=this[je];Wt(g).forEach((C,R,F)=>{d.call(m,this.get(R),R,this)})}get(d){let m=this[je];s(m);let g=Wt(m).get(d);if(m.finalized_||!ri(g)||g!==m.base_.get(d))return g;let C=_s(m.scope_,g,m,d);return n(m),m.copy_.set(d,C),C}keys(){return Wt(this[je]).keys()}values(){let d=this.keys();return i({next:()=>{let m=d.next();return m.done?m:{done:!1,value:this.get(m.value)}}})}entries(){let d=this.keys();return i({next:()=>{let m=d.next();if(m.done)return m;let g=this.get(m.value);return{done:!1,value:[m.value,g]}}})}[Symbol.iterator](){return this.entries()}}
4function i(c){if(typeof Iterator<"u")return Iterator.from(c);let d=j(S({},c),{[Symbol.iterator]:()=>d});return d}function e(c,d){let m=new t(c,d);return[m,m[je]]}function n(c){c.copy_||(c.assigned_=new Map,c.copy_=new Map(c.base_))}class o extends Set{constructor(d,m){super(),this[je]={type_:3,parent_:m,scope_:m?m.scope_:fc(),modified_:!1,finalized_:!1,copy_:void 0,base_:d,draft_:this,drafts_:new Map,revoked_:!1,isManual_:!1,assigned_:void 0,callbacks_:[]}}get size(){return Wt(this[je]).size}has(d){let m=this[je];return s(m),m.copy_?!!(m.copy_.has(d)||m.drafts_.has(d)&&m.copy_.has(m.drafts_.get(d))):m.base_.has(d)}add(d){let m=this[je];return s(m),this.has(d)||(a(m),io(m),m.copy_.add(d),Hu(m,d,d)),this}delete(d){if(!this.has(d))return!1;let m=this[je];return s(m),a(m),io(m),m.copy_.delete(d)||(m.drafts_.has(d)?m.copy_.delete(m.drafts_.get(d)):!1)}clear(){let d=this[je];s(d),Wt(d).size&&(a(d),io(d),d.copy_.clear())}values(){let d=this[je];return s(d),a(d),d.copy_.values()}entries(){let d=this[je];return s(d),a(d),d.copy_.entries()}keys(){return this.values()}[Symbol.iterator](){return this.values()}forEach(d,m){let g=this.values(),C=g.next();for(;!C.done;)d.call(m,C.value,C.value,this),C=g.next()}}function r(c,d){let m=new o(c,d);return[m,m[je]]}function a(c){c.copy_||(c.copy_=new Set,c.base_.forEach(d=>{if(ri(d)){let m=_s(c.scope_,d,c,d);c.drafts_.set(d,m),c.copy_.add(m)}else c.copy_.add(d)}))}function s(c){c.revoked_&&oi(3,JSON.stringify(Wt(c)))}function l(c){if(c.type_===3&&c.copy_){let d=new Set(c.copy_);c.copy_.clear(),d.forEach(m=>{c.copy_.add(Rw(m))})}}Aw(hs,{proxyMap_:e,proxySet_:r,fixSetContents:l})}var Ww=new jw,w0=Ww.produce;function x0(t){return(i,e)=>w0(i,n=>t(n,e))}function ai(t,...i){let e=Zg(t,...i);return function(o=t,r){return x0(e)(o,r)}}var $=(function(t){return t[t.Search=0]="Search",t[t.Package=1]="Package",t[t.Room=2]="Room",t[t.Meal=3]="Meal",t[t.Treatment=4]="Treatment",t[t.Activity=5]="Activity",t[t.Addons=6]="Addons",t[t.Checkout=7]="Checkout",t[t.Restaurant=8]="Restaurant",t[t.MyPage=9]="MyPage",t[t.Waitlist=10]="Waitlist",t})($||{});la();var P0=ku(),Gw=ai(P0,pe(ii,(t,{language:i,isSetByUser:e})=>(t.language=i,t.userHasChangedLanguage=e??!1,t)),pe(oa,(t,{currency:i})=>(t.currency=i,t)),pe(Qg,(t,{bookingStep:i})=>{let e=t.bookingSteps.findIndex(n=>n?.forStep===i.forStep);return e>-1?t.bookingSteps[e]=i:t.bookingSteps.push(i),t}),pe(Jg,(t,{nextStep:i})=>j(S({},t),{nextStep:i})),pe(Ui,(t,{searchRequest:i})=>i?(t.searchRequest=j(S({},i),{promoCode:""}),t):(t.searchRequest=null,t.promoCode="",t)),pe(Hi,(t,{promoCode:i})=>(t.promoCode=i,t)),pe(Mo,(t,{response:i})=>{if(!i.data)return t;let e=i.data,n=e.bookingValidation.invalidatedBookingStepsThisRequest;n&&(t.bookingSteps=t.bookingSteps.filter(a=>!n.includes(a.forStep)));let o=t.bookingSteps.findIndex(a=>a?.forStep===e.nextStep.forStep);o>-1?t.bookingSteps[o]=e.nextStep:t.bookingSteps.push(e.nextStep),t.nextStep=e.nextStep.forStep;let r=e.wantedUpdateStep;return r&&(o=t.bookingSteps.findIndex(a=>a?.forStep===r.forStep),o>-1?t.bookingSteps[o]=r:t.bookingSteps.push(r)),t.basket=e.basket,t.basketTimeoutAt=e.basketTimeoutAt,t.bookingValidation=e.bookingValidation,t}),pe(ec,(t,{basket:i})=>(t.basket=i,t)),pe(Xg,(t,{parties:i})=>(t.basket&&(t.basket.parties=i),t)),pe(tc,t=>(t.bookingSteps=new Array,t.basket=null,t.bonusPoints.spenn.status=null,t.nextStep=$.Search,t.loyaltyDealNotAffordable=[],t)),pe(ic,t=>(t.bookingSteps=new Array,t)),pe(Oo,(t,{basketTimeoutAt:i})=>(t.basketTimeoutAt=i,t)),pe(t0,(t,{bookingDraftInfo:i})=>(t.bookingDraftInfo=i,t)),pe(nc,t=>(t.bookingDraftInfo=null,t)),pe(n0,(t,{bookingValidation:i})=>(t.bookingValidation=i,t)),pe(i0,(t,i)=>j(S(S({},t),P0),{language:t.language})),pe(ds,(t,{testMode:i})=>j(S({},t),{isInTestModeSearch:i})),pe(ra,(t,{loyaltyUser:i})=>j(S({},t),{loyaltyUser:i})),pe(oc,(t,{requireLogin:i})=>j(S({},t),{bonusPoints:j(S({},t.bonusPoints),{requireLogin:i})})),pe(o0,(t,{spennStatus:i})=>j(S({},t),{bonusPoints:j(S({},t.bonusPoints),{spenn:j(S({},t.bonusPoints.spenn),{status:i})})})),pe(r0,(t,{configIds:i})=>(t.loyaltyDealNotAffordable=i,t)),pe(a0,(t,i)=>(t.bookingConfirmation=i.bookingConfirmation,t)),pe(s0,(t,i)=>(t.waitlistConfirmation=i.waitlistConfirmation,t)),pe(rc,t=>(t.show=S(S({},t.show),ku().show),t)),pe(ac,(t,i)=>(t.show=S(S({},t.show),i),t)),pe(ps,(t,{unread:i})=>(t.chatNotifications.unreadMessage=i,t)),pe(us,(t,{started:i})=>(t.chatNotifications.sessionStarted=i,t)),pe(sc,(t,{passed:i})=>
4(t.chatNotifications.firstVisitDelayPassed=i,t)));function M0(t,i){return Gw(t,i)}var k0=r1(I0(),1);var ju="@ngrx/store/init",sx="@ngrx/store/update-reducers",lx=/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})/,cx=(t,i)=>typeof i=="string"&&lx.test(i)?new Date(i):i,dx=(t,i)=>i,px=()=>typeof window<"u",ux=t=>t.map(i=>{let e=i;if(typeof i=="object"&&(e=Object.keys(i)[0]),typeof e!="string")throw new TypeError(`localStorageSync Unknown Parameter Type: Expected type of string, got ${typeof e}`);return i}),mx=({keys:t,storage:i,storageKeySerializer:e,restoreDates:n})=>t.reduce((o,r)=>{let a=r,s=n?cx:dx,l,c;if(typeof a=="object"&&(a=Object.keys(a)[0],typeof r[a]=="function"?s=r[a]:(r[a].reviver&&(s=r[a].reviver),r[a].deserialize&&(l=r[a].deserialize)),r[a].encrypt&&r[a].decrypt?typeof r[a].encrypt=="function"&&typeof r[a].decrypt=="function"?c=r[a].decrypt:console.error(`Either encrypt or decrypt is not a function on '${r[a]}' key object.`):(r[a].encrypt||r[a].decrypt)&&console.error(`Either encrypt or decrypt function is not present on '${r[a]}' key object.`)),i!==void 0){let d=i.getItem(e(a));if(d){c&&(d=c(d));let m=new RegExp("{|\\["),g=d;return(d==="null"||d==="true"||d==="false"||m.test(d.charAt(0)))&&(g=JSON.parse(d,s)),Object.assign({},o,{[a]:l?l(g):g})}}return o},{});function T0(t,i){return i.reduce((e,n)=>{if(typeof n=="string"||typeof n=="number"){let o=t?.[n];o!==void 0&&(e[n]=o)}else for(let o in n)if(Object.prototype.hasOwnProperty.call(n,o)){let r=n[o];e[o]=T0(t[o],r)}return e},{})}var hx=({state:t,keys:i,storage:e,storageKeySerializer:n,removeOnUndefined:o,syncCondition:r})=>{if(r)try{if(r(t)!==!0)return}catch(a){if(a instanceof TypeError)return;throw a}i.forEach(a=>{let s=t[a],l,c,d;if(typeof a=="object"){let m=Object.keys(a)[0];if(s=t[m],typeof s<"u"&&a[m]){if(a[m].serialize)s=a[m].serialize(s);else{let g;a[m].reduce?g=a[m]:a[m].filter&&(g=a[m].filter),g&&(s=T0(s,g)),a[m].encrypt&&a[m].decrypt?typeof a[m].encrypt=="function"&&(d=a[m].encrypt):(a[m].encrypt||a[m].decrypt)&&console.error(`Either encrypt or decrypt function is not present on '${a[m]}' key object.`)}l=a[m].replacer,c=a[m].space}a=m}if(typeof s<"u"&&e!==void 0)try{d&&(s=d(typeof s=="string"?s:JSON.stringify(s,l,c))),e.setItem(n(a),typeof s=="string"?s:JSON.stringify(s,l,c))}catch(m){console.warn("Unable to save state to localStorage:",m)}else if(typeof s>"u"&&o&&e!==void 0)try{e.removeItem(n(a))}catch(m){console.warn(`Exception on removing/cleaning undefined '${a}' state`,m)}})},fx=(t,i,e)=>((e.type===ju||e.type===sx)&&i&&(t=(0,k0.default)(t,i,{arrayMerge:(r,a,s)=>a})),t),R0=t=>i=>{(t.storage===void 0&&!t.checkStorageAvailability||t.checkStorageAvailability&&px())&&(t.storage=localStorage||window.localStorage),t.storageKeySerializer===void 0&&(t.storageKeySerializer=l=>l),t.restoreDates===void 0&&(t.restoreDates=!0);let e=t.mergeReducer;(e===void 0||typeof e!="function")&&(e=fx);let n=ux(t.keys),{storage:o,storageKeySerializer:r,restoreDates:a}=t,s=t.rehydrate?mx({keys:n,storage:o,storageKeySerializer:r,restoreDates:a}):void 0;return function(l,c){let d;if(c.type===ju&&!l?d=i(l,c):d=S({},l),d=e(d,s,c),d=i(d,c),c.type!==ju){let{storage:m,storageKeySerializer:g,removeOnUndefined:C,syncCondition:R}=t;hx({state:d,keys:n,storage:m,storageKeySerializer:g,removeOnUndefined:C,syncCondition:R})}return d}};var da={production:!0};var si="[Runtime-State] ",oo=de(si+"StartLoading",be()),Vi=de(si+"StopLoading"),pa=de(si+"SetLoadingPrices",be()),Ss=de(si+"SetSearching",be()),E0=de(si+"Set iframe",be()),A0=de(si+"Set current url",be()),Pc=de(si+"Set Autosearched",be()),L0=de(si+"SetPaymentIsOpen",be()),z0=de(si+"SetTempMessages",be()),B0=de(si+"Set background cover image",be()),fr=de(si+"Set url query params",be()),F0=de(si+"Reset url query params",be());var $u={isLoading:!1,isLoadingPrices:!1,loadingMessageKey:null,isSearching:!1,paymentIsOpen:!1,isInIframe:!1,currentUrl:"",hasAutoSearchedFromRedirect:!1,tempMessages:{},coverImage:null,queryParams:{frameId:void 0,redirectUrl:void 0,showSpenn:void 0,alignment:void 0,sso_success:void 0,sso_error:void 0,sso_user_denied:void 0,startDate:void 0,from:void 0,to:void 0,parties:void 0,searchType:void 0,language:void 0,promoCode:void 0,widgetId:void 0,frameOrigin:void 0,wantedRestaurantId:void 0,wantedRestaurantMealTimeId:void 0,hash:void 0,bookingNumber:void 0,credential:void 0,redirectResult:void 0,sessionId:void 0,noPersonalization:void 0,dyCampaign:void 0,dyVariation:void 0,trackerDebug:void 0,autoFill:void 0,addonId:void 0}},_x=ai($u,pe(E0,(t,{isiframe:i})=>(t.isInIframe=i,t)),pe(A0,(t,{url:i})=>(t.currentUrl=i,t)),pe(Pc,(t,{hasSearched:i})=>(t.hasAutoSearchedFromRedirect=i,t)),pe(oo,(t,i)=>(t.isLoading=!0,t.loadingMessageKey=i.loadingMessageKey,t)),pe(Vi,t=>(t.isLoading=!1,t.loadingMessageKey=null,t)),pe(pa,(t,i)=>(t.isLoadingPrices=i.isLoadingPrices,t)),pe(Ss,(t,i)=>(t.isSearching=i.isSearching,t)),pe(L0,(t,i)=>(t.paymentIsOpen=i.paymentIsOpen,t)),pe(z0,(t,i)=>(t.tempMessages=S(S({},t.tempMessages),i.tempMessages),t)),pe(B0,(t,i)=>(t.coverImage=i.coverImage,t)),pe(fr,(t,i)=>(t.queryParams=S(S({},t.queryParams),i.params),t)),pe(F0,t=>{let i=t.queryParams;
4return Object.keys(i).forEach(e=>i[e]=void 0),t.queryParams=i,t}));function U0(t,i){return _x(t,i)}var ro="[Mypage-State] ",H0=de(ro+"Set booking number",be()),V0=de(ro+"Set logged in",be()),q0=de(ro+"Set booking",be()),j0=de(ro+"Set customer info",be()),$0=de(ro+"Set upgradable rooms",be()),W0=de(ro+"Set menu links",be()),G0=de(ro+"Set message categories",be()),Y0=de(ro+"Set meta info",be()),K0=de(ro+"Set root addons",be());var Z0=()=>({userInfo:{bookingNumber:"",credential:"",isLoggedIn:!1},bookingInfo:null,bookingInfoLastUpdated:0,customerInfo:null,upgradableRooms:null,menuLinks:[],messageCategories:[],metaInfo:null,rootAddons:null});la();var Cx=Z0(),yx=ai(Cx,pe(H0,(t,{bookingNumber:i,credential:e})=>(t=j(S({},t),{userInfo:j(S({},t.userInfo),{bookingNumber:i,credential:e})}),t)),pe(V0,(t,{isLoggedIn:i})=>(t=j(S({},t),{userInfo:j(S({},t.userInfo),{isLoggedIn:i})}),t)),pe(q0,(t,{booking:i})=>(t=j(S({},t),{bookingInfo:i,bookingInfoLastUpdated:i?new Date().getTime():0}),t)),pe(j0,(t,{customerInfo:i})=>(t=j(S({},t),{customerInfo:i}),t)),pe($0,(t,{upgradableRooms:i})=>(t=j(S({},t),{upgradableRooms:i}),t)),pe(W0,(t,{menuLinks:i})=>(t=j(S({},t),{menuLinks:i}),t)),pe(G0,(t,{messageCategories:i})=>(t=j(S({},t),{messageCategories:i}),t)),pe(Y0,(t,{metaInfo:i})=>(t=j(S({},t),{metaInfo:i}),t)),pe(K0,(t,{rootAddons:i})=>(t=j(S({},t),{rootAddons:i}),t)));function Q0(t,i){return yx(t,i)}var bx="[Conference-State] ",J0=de(bx+"Reset");var Wu=()=>({});la();var Sx=Wu(),vx=ai(Sx,pe(J0,()=>Wu()));function X0(t,i){return vx(t,i)}var Gu=da.production?{GuestNamesForm:"[AB-119] Show guest names form in Checkout"}:{GuestNamesForm:"[AB-119] Show guest names form in Checkout"};function e_(t){return t.campaignName}var t_={campaigns:{}};var wx="[Personalization-State] ",ua=de(wx+"Set campaign in list",be());var Px=ai(t_,pe(ua,(t,i)=>(t.campaigns=S({},t.campaigns),e_(i)&&(t.campaigns[i.campaignName]=i.variation),t)));function n_(t,i){return Px(t,i)}var Mc="[CrossSell] ",No=de(Mc+"Load",be()),Io=de(Mc+"Load Success",be()),ko=de(Mc+"Load Empty"),To=de(Mc+"Load Failure");var i_={status:"idle",alternatives:[],currentHotelName:"",reason:"soldOut"};var Ox=ai(i_,pe(No,(t,{currentHotelName:i,reason:e})=>(t.status="loading",t.alternatives=[],t.currentHotelName=i,t.reason=e,t)),pe(Io,(t,{alternatives:i})=>(t.status="loaded",t.alternatives=i,t)),pe(ko,t=>(t.status="empty",t.alternatives=[],t)),pe(To,t=>(t.status="error",t.alternatives=[],t)));function o_(t,i){return Ox(t,i)}var a_={appState:M0,myPage:Q0,conference:X0,runtimeState:U0,personalization:n_,crossSell:o_},Oc=t=>t;function r_(t){return R0({keys:[Oc("appState"),Oc("myPage"),Oc("conference"),Oc("personalization")],rehydrate:!0,storage:localStorage})(t)}var s_=da.production?[r_]:[r_];var vt=t=>t.appState,ht=me(vt,t=>t.language),l_=me(vt,t=>t.userHasChangedLanguage),Ro=me(vt,t=>t.currency),Dx=me(vt,t=>t.bookingSteps);var Eo=me(vt,t=>t.nextStep),Bz=me(Eo,Dx,(t,i)=>i.find(e=>e?.forStep===t)),Fz=me(vt,t=>t.isInTestModeSearch),gr=me(vt,t=>t.searchRequest),c_=me(vt,t=>t.promoCode),Jt=me(vt,t=>t.basket),Uz=me(vt,t=>t.basket?.orderRows),Hz=me(vt,t=>t.basketTimeoutAt),Vz=me(Jt,t=>t?.parties??[]),qz=me(Jt,t=>t?.paymentInfo.grossAmountToPay),jz=me(Jt,t=>t?.paymentInfo.totalAmountToPay),$z=me(Jt,t=>t?t.orderRows.filter(i=>i.price?.bonusPoints!==null&&i.price?.bonusPoints!==void 0).map(i=>({title:i.title,price:{isBonusPointType:i.price.isBonusPointType,bonusPoints:i.price.bonusPoints}})):[]),Wz=me(Jt,t=>t?.loyaltyPayments??[]),Gz=me(Jt,t=>t?.paymentInfo.loyaltyPointAmount??0),Yz=me(vt,t=>t.bookingDraftInfo),Kz=me(vt,t=>t.bookingValidation),yi=me(vt,t=>t.loyaltyUser),Zz=me(vt,t=>t.loyaltyDealNotAffordable),d_=me(vt,t=>t.bonusPoints.requireLogin),Qz=me(vt,t=>t.bonusPoints.spenn.status),Jz=me(vt,t=>t.bookingConfirmation),Xz=me(vt,t=>t.waitlistConfirmation),p_=me(vt,t=>t.show.signInInformationSidePanel),u_=me(vt,t=>t.chatNotifications.unreadMessage),m_=me(vt,t=>t.chatNotifications.sessionStarted),h_=me(vt,t=>t.chatNotifications.firstVisitDelayPassed),e3=me(vt,t=>t.show.changeTimeslotInMyPage);var ae=(()=>{class t{static{this.initialValues={init:{availableLanguages:{},siteIanaTimeZone:"Europe/Stockholm",globals:{currencyIso:"SEK",usedCurrencyConversionRateTo:""},currencyConversion:[]},variables:{},widget:null,styleVariables:""}}static{this.localeConfig={localeConfig:{global:{date:{timeZone:void 0}}},localeToCurrencyMapping:{"sv-SE":"","en-US":"","en-GB":"","nb-NO":"","da-DK":"","fi-FI":"","fo-FO":""}}}getInit(){return t.getProcessed()?.init||{}}getVariables(){return t.getProcessed()?.variables||{}}getWidget(){return t.getProcessed()?.widget||null}getLocalStyles(){return t.getProcessed()?.styles||""}getTimezone(){return this.getInit().siteIanaTimeZone}static getLocaleConfig(){let e=t.getProcessed()?.init;t.localeConfig.localeConfig.global.date.timeZone=e.siteIanaTimeZone;let n=t.localeConfig.localeToCurrencyMapping;
4return Object.keys(n).forEach(o=>n[o]=e.globals.currencyIso),Object.assign(t.localeConfig.localeToCurrencyMapping,n),t.localeConfig}static forceProcessed(e){t.initialValues=e()}static mockProcessed(e){t.initialValues=e(t.initialValues)}static getProcessed(){let e=window;return e._processed?e._processed:t.initialValues}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=G({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Dc={"event.title":"Build your event","event.description":"Tailor the event to your specific needs."},Nt=(()=>{class t{constructor(){this.store=f(oe),this.processed=f(ae),this.language$=this.store.select(ht),this.language$.subscribe(e=>this.language=e)}getCurrentLanguage$(){return this.language$}getCurrentLanguage(){return this.language}getTranslatedValue(e){return e?e[this.getCurrentLanguage()]?.value??e["en-US"]?.value??"":""}getEnglishValue(e){return e?.["en-US"]?.value??"No_Text"}getTranslationJson(e){return this.store.pipe(no(n=>this.processed.getInit().languageTexts),lt(Boolean),Be(n=>{if(Dc&&Object.keys(Dc).length>0){let o=Object.keys(this.processed.getInit().availableLanguages);Object.keys(Dc).forEach(r=>{n[r]||(n[r]={},o.forEach(a=>{n[r][a]={value:Dc[r]}}))})}return n}),Be(n=>{let o={};return Object.entries(n).filter(r=>!!r[1][e]).map(r=>{o[r[0]]=r[1][e].value}),o}))}hasLanguage(e){let n=Object.keys(this.processed.getInit().languageTexts)[0];return!!this.processed.getInit().languageTexts[n][e]}getTranslatedValueAsObservable(e,n){return this.language$.pipe(Be(o=>{if(!e)return n?n[o].value:"";let r=e[o].value;return n&&(r+=", "+n[o].value),r}))}mapToLanguageSwitcher(e){return Object.entries(e).map(([n,o])=>({key:n,value:o.value}))}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=G({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Nc=(()=>{class t{constructor(){this.languageService=f(Nt)}getTranslation(e){return this.languageService.getTranslationJson(e)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=G({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),f_={config:{reRenderOnLangChange:!0,prodMode:!Tl(),defaultLang:"en",missingHandler:{allowEmpty:!0,logMissingKey:!1}}};function Ix(t){return typeof t=="string"}function kx(t){return typeof t=="number"}function Yu(t){return t==null}function g_(t){return kx(t)?t:Ix(t)&&!isNaN(Number(t)-parseFloat(t))?Number(t):null}var Tx=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/;function __(t){try{return typeof t=="string"&&Intl.getCanonicalLocales(t).length>0}catch(i){return!1}}function Rx(t,i,e){let n=g_(t);return n!==null?new Intl.NumberFormat(i,e).format(n):""}function Ex(t,i,e){return C_(t)?new Intl.DateTimeFormat(i,e).format(t):""}function C_(t){return t instanceof Date&&!isNaN(t)}function Ax(t){let i;if(typeof t=="string"&&(t=t.trim()),C_(t))return t;if(!isNaN(t-parseFloat(t)))return new Date(parseFloat(t));if(typeof t=="string"&&/^(\d{4}-\d{1,2}-\d{1,2})$/.test(t)){let[e,n,o]=t.split("-").map(r=>parseInt(r,10));return new Date(e,n-1,o)}return typeof t=="string"&&(i=t.match(Tx))?Lx(i):new Date(t)}function Lx(t){let i=new Date(0),e=0,n=0,o=t[8]?i.setUTCFullYear:i.setFullYear,r=t[8]?i.setUTCHours:i.setHours;t[9]&&(e=+(t[9]+t[10]),n=+(t[9]+t[11])),o.call(i,+t[1],+t[2]-1,+t[3]);let a=+(t[4]||"0")-e,s=+(t[5]||"0")-n,l=+(t[6]||"0"),c=Math.round(parseFloat("0."+(t[7]||0))*1e3);return r.call(i,a,s,l,c),i}function Ic(t,i,e){let n=e.global?.[i]??{},o=e.localeBased?.[t]??{};return Reflect.has(o,i)?S(S({},n),o[i]):n}var zx={"aa-DJ":"DJF","aa-ER":"ERN","aa-ET":"ETB","ab-GE":"ETB","ab-TR":"ETB","af-BW":"ETB","af-NA":"ETB","af-ZA":"ZAR","ak-GH":"ZAR","am-ET":"ETB","am-IL":"ETB","ar-AE":"AED","ar-AR":"AED","ar-BH":"BHD","ar-CM":"BHD","ar-CY":"BHD","ar-DJ":"BHD","ar-DZ":"DZD","ar-EG":"EGP","ar-EH":"EGP","ar-ER":"EGP","ar-IL":"EGP","ar-IQ":"IQD","ar-IR":"IQD","ar-JO":"JOD","ar-KE":"JOD","ar-KM":"JOD","ar-KW":"KWD","ar-LB":"LBP","ar-LY":"LYD","ar-MA":"MAD","ar-ML":"MAD","ar-MR":"MAD","ar-NE":"MAD","ar-NG":"MAD","ar-OM":"OMR","ar-PS":"OMR","ar-QA":"QAR","ar-SA":"SAR","ar-SD":"SDD","ar-SS":"SDD","ar-SY":"SYP","ar-TD":"SYP","ar-TJ":"SYP","ar-TN":"TND","ar-TR":"TND","ar-YE":"YER","as-IN":"INR","av-RU":"INR","ay-BO":"INR","ay-PE":"INR","az-AZ":"AZM","ba-RU":"AZM","be-BY":"BYR","be-PL":"BYR","be-UA":"BYR","bg-BG":"BGN","bg-GR":"BGN","bg-MD":"BGN","bg-RO":"BGN","bg-TR":"BGN","bg-UA":"BGN","bi-VU":"BGN","bm-ML":"BGN","bn-BD":"BDT","bn-GB":"BDT","bn-IN":"INR","bn-NP":"INR","bo-CN":"CNY","bo-IN":"INR","bo-NP":"INR","br-FR":"EUR","bs-BA":"BAM","ca-AD":"EUR","ca-ES":"EUR","ca-FR":"EUR","ca-IT":"EUR","ce-
4RU":"EUR","ch-GU":"EUR","ch-MP":"EUR","co-FR":"EUR","cs-CZ":"CZK","cv-RU":"RUB","cy-AR":"RUB","cy-GB":"GBP","da-DE":"GBP","da-DK":"DKK","da-GL":"DKK","da-IS":"DKK","de-AT":"EUR","de-BE":"EUR","de-BR":"EUR","de-CA":"EUR","de-CH":"CHF","de-CZ":"CHF","de-DE":"EUR","de-DK":"EUR","de-HU":"EUR","de-IT":"EUR","de-KZ":"EUR","de-LI":"EUR","de-LU":"EUR","de-NA":"EUR","de-PL":"EUR","de-PY":"EUR","de-RO":"EUR","de-SK":"EUR","de-US":"EUR","dv-IN":"EUR","dv-MV":"MVR","dz-BT":"BTN","dz-IN":"BTN","ee-GH":"BTN","ee-TG":"BTN","el-AL":"BTN","el-CY":"EUR","el-DE":"EUR","el-EG":"EUR","el-GB":"EUR","el-GR":"EUR","el-IT":"EUR","el-RO":"EUR","el-TR":"EUR","el-UA":"EUR","en-AC":"EUR","en-AG":"XCD","en-AI":"XCD","en-AS":"XCD","en-AU":"AUD","en-AW":"AUD","en-BB":"AUD","en-BE":"AUD","en-BM":"AUD","en-BN":"AUD","en-BS":"AUD","en-BW":"BWP","en-BZ":"BWP","en-CA":"CAD","en-CC":"CAD","en-CK":"CAD","en-CM":"CAD","en-CN":"CAD","en-CX":"CAD","en-DE":"CAD","en-DG":"CAD","en-DM":"CAD","en-DO":"CAD","en-ES":"CAD","en-ET":"CAD","en-FI":"CAD","en-FJ":"CAD","en-FK":"CAD","en-FM":"CAD","en-FR":"CAD","en-GB":"GBP","en-GD":"GBP","en-GG":"GBP","en-GH":"GBP","en-GI":"GBP","en-GM":"GBP","en-GU":"GBP","en-GY":"GBP","en-HK":"HKD","en-HN":"HKD","en-IE":"EUR","en-IL":"EUR","en-IM":"EUR","en-IN":"INR","en-IO":"INR","en-IT":"INR","en-JE":"INR","en-JM":"INR","en-KE":"INR","en-KI":"INR","en-KN":"INR","en-KY":"INR","en-LB":"INR","en-LC":"INR","en-LK":"INR","en-LR":"INR","en-LS":"INR","en-MG":"INR","en-MH":"INR","en-MP":"INR","en-MS":"INR","en-MT":"INR","en-MU":"INR","en-MW":"INR","en-MY":"INR","en-NA":"INR","en-NF":"INR","en-NG":"NGN","en-NL":"NGN","en-NR":"NGN","en-NU":"NGN","en-NZ":"NZD","en-PA":"NZD","en-PG":"NZD","en-PH":"PHP","en-PI":"PHP","en-PK":"PHP","en-PM":"PHP","en-PN":"PHP","en-PR":"PHP","en-PW":"PHP","en-RW":"PHP","en-SB":"PHP","en-SC":"PHP","en-SG":"SGD","en-SH":"SGD","en-SL":"SGD","en-SS":"SGD","en-SZ":"SGD","en-TA":"SGD","en-TC":"SGD","en-TK":"SGD","en-TO":"SGD","en-TT":"SGD","en-TV":"SGD","en-TZ":"SGD","en-UD":"SGD","en-UG":"SGD","en-UM":"SGD","en-US":"USD","en-VC":"USD","en-VG":"USD","en-VI":"USD","en-VU":"USD","en-WS":"USD","en-ZA":"ZAR","en-ZM":"ZAR","en-ZW":"ZWD","eo-EO":"ZWD","eo-SM":"ZWD","es-AD":"ZWD","es-AR":"ARS","es-BO":"BOB","es-BZ":"BOB","es-CL":"CLP","es-CO":"COP","es-CR":"CRC","es-CU":"CRC","es-DE":"CRC","es-DO":"DOP","es-EA":"DOP","es-EC":"USD","es-ES":"EUR","es-GQ":"EUR","es-GT":"GTQ","es-HN":"HNL","es-IC":"HNL","es-LA":"HNL","es-MA":"HNL","es-MX":"MXN","es-NI":"NIO","es-PA":"PAB","es-PE":"PEN","es-PH":"PEN","es-PR":"USD","es-PY":"PYG","es-SV":"SVC","es-TT":"SVC","es-US":"USD","es-UY":"UYU","es-VE":"VEB","et-EE":"EEK","et-FI":"EEK","eu-ES":"EUR","eu-FR":"EUR","fa-AE":"EUR","fa-AF":"EUR","fa-IQ":"EUR","fa-IR":"IRR","fa-OM":"IRR","fa-PK":"IRR","fa-QA":"IRR","fa-TJ":"IRR","fb-LT":"IRR","ff-GN":"IRR","ff-MR":"IRR","ff-SN":"IRR","fi-FI":"EUR","fi-RU":"EUR","fi-SE":"EUR","fj-FJ":"EUR","fo-FO":"DKK","fr-AD":"DKK","fr-BE":"EUR","fr-BF":"EUR","fr-BI":"EUR","fr-BJ":"EUR","fr-BL":"EUR","fr-CA":"CAD","fr-CD":"CAD","fr-CF":"CAD","fr-CG":"CAD","fr-CH":"CHF","fr-CI":"CHF","fr-CM":"CHF","fr-CP":"CHF","fr-DJ":"CHF","fr-DZ":"CHF","fr-FR":"EUR","fr-GA":"EUR","fr-GB":"EUR","fr-GF":"EUR","fr-GN":"EUR","fr-GP":"EUR","fr-GQ":"EUR","fr-HT":"EUR","fr-IT":"EUR","fr-KM":"EUR","fr-LB":"EUR","fr-LU":"EUR","fr-MA":"EUR","fr-MC":"EUR","fr-MF":"EUR","fr-MG":"EUR","fr-ML":"EUR","fr-MQ":"EUR","fr-MR":"EUR","fr-MU":"EUR","fr-NC":"EUR","fr-NE":"EUR","fr-PF":"EUR","fr-PM":"EUR","fr-RE":"EUR","fr-RW":"EUR","fr-SC":"EUR","fr-SN":"EUR","fr-SY":"EUR","fr-TD":"EUR","fr-TF":"EUR","fr-TG":"EUR","fr-TN":"EUR","fr-US":"EUR","fr-VU":"EUR","fr-WF":"EUR","fr-YT":"EUR","fy-NL":"EUR","ga-GB":"EUR","ga-IE":"EUR","gd-GB":"GBP","gl-ES":"EUR","gl-PT":"EUR","gn-AR":"EUR","gn-BO":"EUR","gn-PY":"EUR","gu-IN":"INR","gu-KE":"INR","gv-IM":"INR","he-IL":"ILS","hi-FJ":"ILS","hi-IN":"INR","hi-NP":"INR","hi-UG":"INR","hi-ZA":"INR","ho-PG":"INR","hr-AT":"INR","hr-BA":"INR","hr-DE":"INR","hr-HR":"HRK","hr-HU":"HRK","hr-IT":"HRK","ht-HT":"HTG","hu-AT":"HTG","hu-HU":"HUF","hu-IL":"HUF","hu-RO":"HUF","hu-RS":"HUF","hu-SI":"HUF","hu-SK":"HUF","hu-UA":"HUF","hy-AM":"AMD","hy-CY":"AMD","hy-GE":"AMD","hy-IR":"AMD","hy-LB":"AMD","hy-SY":"AMD","hy-TR":"AMD","ia-SE":"AMD","id-ID":"IDR","id-NL":"IDR","ig-NG":"NGN","ii-CN":"NGN","ik-US":"NGN","is-IS":"ISK","it-AU":"ISK","it-BR":"ISK","it-CA":"ISK","it-CH":"CHF","it-DE":"CHF","it-FR":"CHF","it-GB":"CHF","it-HR":"CHF","it-IT":"EUR","it-SI":"EUR","it-SM":"EUR","it-US":"EUR","it-VA":"EUR","iu-GL":"EUR","ja-BR":"EUR","ja-JP":"JPY","jv-ID":"JPY","jv-MY":"JPY","ka-GE":"GEL","ka-IR":"GEL","ka-TR":"GEL","kg-CD":"GEL","ki-KE":"GEL","kj-NA":"GEL","kl-DK":"GEL","kl-GL":"DKK","km-KH":"KHR","kn-IN":"INR","ko-BR":"INR","ko-CN":"INR","ko-JP":"INR","ko-KP":"INR","ko-KR":"KRW","ko-US":"KRW","ks-GB":"KRW","ks-IN":"INR","ks-PK":"INR","ku-TR":"TRY","kw-GB":"GBP","la-VA"
4:"GBP","lb-LU":"GBP","lg-UG":"UGX","li-NL":"EUR","ln-CD":"EUR","ln-CG":"EUR","lo-LA":"LAK","lt-LT":"LTL","lu-CD":"LTL","lv-LV":"LVL","mg-MG":"MGA","mh-MH":"MGA","mi-NZ":"NZD","mk-AL":"NZD","mk-GR":"NZD","mk-MK":"MKD","ml-AE":"MKD","ml-BH":"MKD","ml-GB":"MKD","ml-IL":"MKD","ml-IN":"INR","ml-MY":"INR","ml-QA":"INR","ml-SG":"INR","mr-IN":"INR","ms-BN":"INR","ms-CC":"INR","ms-ID":"INR","ms-MY":"MYR","ms-SG":"MYR","mt-MT":"EUR","my-BD":"EUR","my-MM":"MMK","na-NR":"MMK","nb-NO":"NOK","nb-SJ":"NOK","nd-ZW":"NOK","ne-BT":"NOK","ne-IN":"NOK","ne-NP":"INR","ng-NA":"INR","nl-AW":"AWG","nl-BE":"EUR","nl-DE":"EUR","nl-FR":"EUR","nl-NL":"EUR","nl-SR":"EUR","nn-NO":"NOK","nr-ZA":"ZAR","nv-US":"ZAR","ny-MW":"ZAR","ny-MZ":"ZAR","ny-ZM":"ZAR","ny-ZW":"ZAR","oc-FR":"EUR","om-ET":"ETB","om-KE":"KES","om-SO":"KES","or-IN":"INR","os-GE":"INR","pa-IN":"INR","pl-CZ":"INR","pl-DE":"INR","pl-IL":"INR","pl-PL":"PLN","pl-RO":"PLN","pl-SK":"PLN","pl-UA":"PLN","ps-AE":"PLN","ps-AF":"AFN","ps-IR":"AFN","ps-PK":"AFN","pt-AG":"AFN","pt-AO":"AFN","pt-BR":"BRL","pt-CV":"BRL","pt-FR":"BRL","pt-GW":"BRL","pt-MO":"BRL","pt-MZ":"BRL","pt-PT":"EUR","pt-ST":"EUR","pt-TL":"EUR","qu-BO":"EUR","qu-PE":"EUR","rm-CH":"EUR","rn-BI":"EUR","ro-HU":"EUR","ro-IL":"EUR","ro-MD":"EUR","ro-RO":"RON","ro-RS":"RON","ro-UA":"RON","ru-BY":"RON","ru-CN":"RON","ru-DE":"RON","ru-EE":"RON","ru-FI":"RON","ru-GE":"RON","ru-IL":"RON","ru-KG":"RON","ru-KZ":"RON","ru-LT":"RON","ru-LV":"RON","ru-MD":"RON","ru-MN":"RON","ru-RU":"RUB","ru-SJ":"RUB","ru-TM":"RUB","ru-UA":"UAH","ru-US":"UAH","ru-UZ":"UAH","rw-CD":"UAH","rw-RW":"RWF","rw-UG":"RWF","sa-IN":"INR","se-FI":"INR","se-NO":"NOK","se-SE":"NOK","sg-CF":"NOK","si-LK":"LKR","sk-HU":"LKR","sk-RS":"LKR","sk-SK":"EUR","sl-AT":"EUR","sl-HU":"EUR","sl-IT":"EUR","sl-SI":"EUR","sm-AS":"EUR","sm-WS":"EUR","sn-ZW":"EUR","so-DJ":"DJF","so-ET":"ETB","so-KE":"ETB","so-SO":"SOS","sq-AL":"ALL","sq-GR":"ALL","sq-ME":"ALL","sq-MK":"MKD","sq-RS":"MKD","sq-TR":"MKD","sr-RS":"RSD","ss-LS":"RSD","ss-SZ":"RSD","ss-ZA":"ZAR","st-LS":"ZAR","st-ZA":"ZAR","su-ID":"ZAR","sv-AX":"ZAR","sv-FI":"EUR","sv-SE":"SEK","sw-BI":"SEK","sw-CD":"SEK","sw-KE":"SEK","sw-MZ":"SEK","sw-SO":"SEK","sw-TZ":"SEK","sw-UG":"SEK","sw-YT":"SEK","sw-ZA":"SEK","ta-IN":"INR","ta-LK":"INR","ta-MU":"INR","ta-MY":"INR","ta-RE":"INR","ta-SG":"INR","te-IN":"INR","th-TH":"THB","ti-ER":"ERN","ti-ET":"ETB","ti-IL":"ETB","tk-AF":"ETB","tk-IR":"ETB","tk-TM":"TMM","tl-PH":"PHP","tl-US":"PHP","tn-BW":"PHP","tn-NA":"PHP","tn-ZA":"ZAR","tn-ZW":"ZAR","to-TO":"ZAR","tr-BG":"ZAR","tr-CY":"TRY","tr-DE":"TRY","tr-GR":"TRY","tr-MK":"TRY","tr-NL":"TRY","tr-RO":"TRY","tr-TR":"TRY","tr-UA":"TRY","tr-UZ":"TRY","ts-MZ":"TRY","ts-SZ":"TRY","ts-ZA":"ZAR","tt-RU":"RUB","ty-PF":"RUB","uk-PL":"RUB","uk-SK":"RUB","uk-UA":"UAH","ur-IN":"UAH","ur-MU":"UAH","ur-PK":"PKR","ve-ZA":"ZAR","ve-ZW":"ZAR","vi-CN":"ZAR","vi-US":"ZAR","vi-VN":"VND","wa-BE":"EUR","xh-LS":"EUR","xh-ZA":"ZAR","yi-UA":"ZAR","yo-BJ":"ZAR","yo-NG":"NGN","za-CN":"NGN","zh-CN":"CNY","zh-HK":"HKD","zh-TW":"TWD","zu-LS":"TWD","zu-MW":"TWD","zu-MZ":"TWD","zu-SZ":"TWD","zu-ZA":"ZAR"},Bx={localeConfig:{global:{},localeBased:{}},defaultLocale:"en-US",defaultCurrency:"USD",localeToCurrencyMapping:zx,langToLocaleMapping:{}},y_=new ve(""),b_=new ve(""),S_=new ve(""),kc=new ve(""),v_=new ve(""),w_=new ve(""),x_=new ve(""),Ku=class{transform(i,e,n){return Ex(i,e,n)}},Zu=class{transform(i,e,n,o){return Rx(i,n,j(S({},o),{style:e}))}},_r=(()=>{class t{translocoService=f(xo);langLocaleMapping=f(S_);defaultLocale=f(y_);defaultCurrency=f(b_);localeCurrencyMapping=f(v_);numberTransformer=f(x_);dateTransformer=f(w_);localeConfig=f(kc);browserLocale=cg()||this.defaultLocale;_locale="";locale=new yt(this._locale);localeChanges$=this.locale.pipe(Ml());constructor(){f(fo).onDestroy(()=>{this.locale.complete(),this.locale.unsubscribe()}),this.setLocale(this.initializeLocale()),this.translocoService.langChanges$.pipe(Be(e=>this.toLocale(e)),lt(Boolean),ur()).subscribe(e=>this.setLocale(e))}getDefaultLocale(){return this.defaultLocale}getLocale(){return this._locale}setLocale(e){if(!__(e)){console.error(`${e} isn't a valid locale format`);return}this.locale.next(e),this._locale=e}getCurrencySymbol(e=this.getLocale()){let n=this.localeCurrencyMapping[e],o=new Intl.NumberFormat(e,{style:"currency",currencyDisplay:"symbol",currency:n,minimumFractionDigits:0,maximumFractionDigits:0}),r=0;return o.format(r).split(r.toString()).map(a=>a.trim()).find(a=>!!a)}localizeDate(e,n=this.getLocale(),o={}){let r=o??Ic(n,"date",this.localeConfig);return this.dateTransformer.transform(Ax(e),n,r)}localizeNumber(e,n,o=this.getLocale(),r){let a=r??Ic(o,n,this.localeConfig);return n==="currency"&&(a=j(S({},a),{currency:a.currency||this._resolveCurrencyCode(o)})),this.numberTransformer.transform(e,n,o,a)}
4_resolveCurrencyCode(e=this.getLocale()){return this.localeCurrencyMapping[e]||this.defaultCurrency}toLocale(e){return this.langLocaleMapping[e]?this.langLocaleMapping[e]:__(e)?e:""}initializeLocale(){let e=this.toLocale(this.browserLocale);if(e)return e;let n=this.translocoService.getActiveLang();if(n){let r=this.toLocale(n);if(r)return r}let o=this.toLocale(this.defaultLocale);return o||this.defaultLocale}static \u0275fac=function(n){return new(n||t)};static \u0275prov=G({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),P_=(()=>{class t{localeService=f(_r);cdr=f(Gr);localeChangeSub=this.localeService.localeChanges$.subscribe(()=>this.cdr.markForCheck());getLocale(e){return e||this.localeService.getLocale()}ngOnDestroy(){this.localeChangeSub?.unsubscribe(),this.localeChangeSub=null}static \u0275fac=function(n){return new(n||t)};static \u0275prov=G({token:t,factory:t.\u0275fac})}return t})();var Tc=(()=>{class t extends P_{localeConfig=f(kc);transform(e,n={},o){return Yu(e)?"":(o=this.getLocale(o),this.localeService.localizeDate(e,o,S(S({},Ic(o,"date",this.localeConfig)),n)))}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Ne(t)))(o||t)}})();static \u0275pipe=yn({name:"translocoDate",type:t,pure:!1})}return t})(),M_=(()=>{class t extends P_{localeConfig=f(kc);transform(e,n={},o){if(Yu(e))return"";o=this.getLocale(o);let r=S(S({},Ic(o,"decimal",this.localeConfig)),n);return this.localeService.localizeNumber(e,"decimal",o,r)}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Ne(t)))(o||t)}})();static \u0275pipe=yn({name:"translocoDecimal",type:t,pure:!1})}return t})();var O_=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=pr({type:t});static \u0275inj=dr({})}return t})();function D_(t){let i=S(S({},Bx),t);return[Fx(i.localeConfig),Vx(i.defaultLocale),qx(i.defaultCurrency),Ux(i.langToLocaleMapping),Hx(i.localeToCurrencyMapping),jx(Ku),$x(Zu)]}function Fx(t){return Kn([{provide:kc,useValue:t}])}function Ux(t){return Kn([{provide:S_,useValue:t}])}function Hx(t){return Kn([{provide:v_,useValue:t}])}function Vx(t){return Kn([{provide:y_,useValue:t}])}function qx(t){return Kn([{provide:b_,useValue:t}])}function jx(t){return Kn([{provide:w_,useClass:t}])}function $x(t){return Kn([{provide:x_,useClass:t}])}var gn=(function(t){return t.BUTTON="button",t.SUBMIT="submit",t.RESET="reset",t})(gn||{}),Oe=(function(t){return t.PRIMARY="primary",t.SECONDARY="secondary",t.ALTERNATE="alternate",t.ALTERNATE_SELECTED="alternate-selected",t.SELECTION="selection",t.TIMESLOT="timeslot",t.LINK="link",t})(Oe||{}),At=(function(t){return t.SQUARE="square",t.PILL="pill",t.CIRCLE="circle",t.NARROW="narrow",t})(At||{}),ct=(function(t){return t.TINY="tiny",t.SMALL="small",t.XSMALL="xsmall",t.LARGE="large",t})(ct||{}),Ao=(function(t){return t.RIGHT="right",t.LEFT="left",t})(Ao||{});var Lo="",ma="";var zo=(function(t){return t.SUCCESS="success",t.WARNING="warning",t.DANGER="danger",t})(zo||{}),vs=(()=>{class t{constructor(){this.toastsSubject=new yt([]),this.toasts$=this.toastsSubject.asObservable()}showToast(e,n,o,r="bottom-center",a=!0,s=1e4){let l={id:Date.now(),title:e,message:n,type:o,position:r,closeable:a,timeout:s},c=this.toastsSubject.value;this.toastsSubject.next([...c,l]),s&&setTimeout(()=>{this.removeToast(l.id)},s)}removeToast(e){let n=this.toastsSubject.value;this.toastsSubject.next(n.filter(o=>o.id!==e))}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=G({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Qu=(function(t){return t[t.NotSet=0]="NotSet",t[t.SearchParamsError=1]="SearchParamsError",t[t.WithinClosedDates=2]="WithinClosedDates",t[t.OneOrMorePartyHasNoResults=3]="OneOrMorePartyHasNoResults",t[t.OneOrMorePartyMembersInSearchIsInvalid=4]="OneOrMorePartyMembersInSearchIsInvalid",t[t.SearchTooLateTooCloseToArrival=5]="SearchTooLateTooCloseToArrival",t[t.SearchTooFarIntoTheFuture=6]="SearchTooFarIntoTheFuture",t[t.InvalidBasketData=10]="InvalidBasketData",t[t.BasketAlreadyFinalized=11]="BasketAlreadyFinalized",t[t.BasketTimeouted=12]="BasketTimeouted",t[t.BasketInvalid=13]="BasketInvalid",t[t.BasketOutdated=14]="BasketOutdated",t[t.OrderRowInvalid=15]="OrderRowInvalid",t[t.OneOrMorePartyHasNoResultsDueToBedding=16]="OneOrMorePartyHasNoResultsDueToBedding",t[t.GlobalMaintenanceModeActive=28]="GlobalMaintenanceModeActive",t[t.SystemNotAvailableYet=29]="SystemNotAvailableYet",t[t.SystemError=30]="SystemError",t[t.PaymentError=31]="PaymentError",t[t.PaymentNotAbleToStartBasketNotCorrect=32]="PaymentNotAbleToStartBasketNotCorrect",t[t.PaymentOptionNotAllowed=33]="PaymentOptionNotAllowed",t[t.PaymentHasNotStarted=34]="PaymentHasNotStarted",t[t.HotelRoomsTaken=50]="HotelRoomsTaken",t[t.RestaurantSeatingTaken=51]="RestaurantSeatingTaken",t[t.TimeslotTaken=52]="TimeslotTaken",t[t.TreatmentBasketCantBeReceived=53]="TreatmentBasketCantBeReceived",t[t.OnlyOnePackagePerPartyCanBeAdded=53]="OnlyOnePackagePerPartyCanBeAdded",t[t.EmailInvalid=55]="EmailInvalid",t[t.CustomerInformationInvalid=56]="CustomerInformationInvalid",t[t.HotelSystemCommunicationError=57]="HotelSystemCommunicationError",t[t.RestaurantSystemCommunicationError=58]="RestaurantSystemCommunicationError",t[t.SpaSystemCommunicationError=59]="SpaSystemCommunicationError",t[t.InvalidMixingTypes=70]="InvalidMixingTypes",t[t.InvalidInput
4=75]="InvalidInput",t[t.ExternalErrorHasBeenReported=80]="ExternalErrorHasBeenReported",t[t.MyPageSystemError=99]="MyPageSystemError",t[t.MyPageInvalidLoginCredentials=100]="MyPageInvalidLoginCredentials",t[t.MyPageInvalidData=101]="MyPageInvalidData",t[t.MyPageToLateToChange=102]="MyPageToLateToChange",t[t.MyPageInvalidChangeRequest=103]="MyPageInvalidChangeRequest",t[t.MyPageNotActive=104]="MyPageNotActive",t[t.MyPageInvalidChangeAllotment=105]="MyPageInvalidChangeAllotment",t[t.MyPageUnableToChange=106]="MyPageUnableToChange",t[t.MyPageUnableToAdd=107]="MyPageUnableToAdd",t[t.MyPageUnableToSendMessage=108]="MyPageUnableToSendMessage",t[t.MyPageUnableToLoginContactHotelInstead=109]="MyPageUnableToLoginContactHotelInstead",t[t.MyPageLoginBookingCancelled=110]="MyPageLoginBookingCancelled",t[t.MyPageLoginBookingNotReady=111]="MyPageLoginBookingNotReady",t[t.MyPageLoginBookingExpired=112]="MyPageLoginBookingExpired",t[t.MyPageLoginUnknownBooking=113]="MyPageLoginUnknownBooking",t[t.MyPageCheckedOutBooking=114]="MyPageCheckedOutBooking",t[t.MyPageUnableToSendEmail=115]="MyPageUnableToSendEmail",t[t.MyPageInvalidPaymentRequest=116]="MyPageInvalidPaymentRequest",t[t.MyPageInvalidPaymentConfirm=117]="MyPageInvalidPaymentConfirm",t[t.MyPageInvalidBookingType=118]="MyPageInvalidBookingType",t[t.MyPageRoomUpgradeNotAvailable=119]="MyPageRoomUpgradeNotAvailable",t[t.CapacityLimitError=140]="CapacityLimitError",t[t.CapacityLimitReached=141]="CapacityLimitReached",t[t.ServiceLimitReached=142]="ServiceLimitReached",t[t.LoyaltySystemError=200]="LoyaltySystemError",t[t.LoyaltyFailedLogin=201]="LoyaltyFailedLogin",t[t.LoyaltyUserLoggedOut=202]="LoyaltyUserLoggedOut",t[t.LoyaltyLoginContactSupport=203]="LoyaltyLoginContactSupport",t[t.LoyaltyLoginTooManyRequests=204]="LoyaltyLoginTooManyRequests",t[t.LoyaltyLoginSsoUserDenied=205]="LoyaltyLoginSsoUserDenied",t[t.LoyaltyLoginSsoInvalidToken=206]="LoyaltyLoginSsoInvalidToken",t[t.LoyaltyBonusPointError=210]="LoyaltyBonusPointError",t[t.LoyaltyBonusPointNotActive=211]="LoyaltyBonusPointNotActive",t[t.LoyaltyUserNotLoggedIn=212]="LoyaltyUserNotLoggedIn",t[t.LoyaltyBonusPointNotAvailableMoreThanOnce=213]="LoyaltyBonusPointNotAvailableMoreThanOnce",t[t.ReceiptPdfNotFound=300]="ReceiptPdfNotFound",t[t.CrossSellUnauthenticated=301]="CrossSellUnauthenticated",t[t.CrossSellPartyUntranslatable=302]="CrossSellPartyUntranslatable",t[t.CrossSellNoSisterSites=303]="CrossSellNoSisterSites",t[t.CrossSellLookupFailed=304]="CrossSellLookupFailed",t})(Qu||{});function N_(t,i,e,n={}){return o=>o.pipe(Ze(r=>{if(Rc(r)&&!r.success)throw{outcome:r}}),cr(r=>{if(n.logoutOnUnauthorized&&r.status===401&&e.navigate(["mypage","logout"],{queryParamsHandling:"preserve"}),!n.ignoreErrors){let a=r.outcome||null,s=zo.DANGER,l=null;if(a){if(a.errorType){let d="errorTypes."+Qu[a.errorType],m=i?.transform(d)||"";l=m!==d?m:a.friendlyText}else l=a.friendlyText;a.isSoftError&&(s=zo.WARNING,l=l??i?.transform("errorTypes.softDefault")??"")}let c=window.location.href.indexOf("/mypage")===-1?"errorTypes.default":"errorTypes.mypage.default";t?.showToast(i?.transform("global.errorModalTitle")||"",l??i?.transform(c)??"",s,"bottom-center",!0),a?.errorType===100&&e.navigate(["mypage","logout"],{queryParamsHandling:"preserve"})}return vl(()=>r)}))}var Bt=t=>t.runtimeState,Bo=me(Bt,t=>t.isLoading),ha=me(Bt,t=>t.isLoadingPrices),I_=me(Bt,t=>({isLoading:t.isLoading,loadingMessage:t.loadingMessageKey})),k_=me(Bt,t=>t.isSearching),T_=me(Bt,t=>t.paymentIsOpen),B3=me(Bt,t=>t.tempMessages),qi=me(Bt,t=>t.isInIframe),R_=me(Bt,t=>t.currentUrl),E_=me(Bt,t=>t.coverImage),A_=me(Bt,t=>t.queryParams.language),L_=me(Bt,t=>(({frameId:i,widgetId:e,language:n})=>({frameId:i,widgetId:e,language:n}))(t.queryParams)),Ec=me(Bt,t=>(({from:i,to:e,parties:n,searchType:o,language:r,promoCode:a,widgetId:s,frameOrigin:l,wantedRestaurantId:c,wantedRestaurantMealTimeId:d})=>({from:i,to:e,parties:n,searchType:o,language:r,promoCode:a,widgetId:s,frameOrigin:l,wantedRestaurantId:c,wantedRestaurantMealTimeId:d,testModeWanted:!1}))(t.queryParams)),z_=me(Bt,t=>t.queryParams.redirectUrl),B_=me(Bt,t=>t.queryParams.startDate),F_=me(Bt,t=>(({hash:i,bookingNumber:e,credential:n})=>({hash:i,bookingNumber:e,credential:n}))(t.queryParams)),F3=me(Bt,t=>(({redirectResult:i,sessionId:e})=>({redirectResult:i,sessionId:e}))(t.queryParams)),U_=me(Bt,t=>(({showSpenn:i,alignment:e})=>({showSpenn:i,alignment:e}))(t.queryParams)),H_=me(Bt,t=>t.queryParams.noPersonalization),V_=me(Bt,t=>({dyCampaign:t.queryParams.dyCampaign,dyVariation:t.queryParams.dyVariation})),Fo=me(Bt,t=>t.queryParams.trackerDebug),q_=me(Bt,t=>t.queryParams.autoFill),U3=me(Bt,t=>(({addonId:i})=>({addonId:i}))(t.queryParams));var j_=(()=>{class t{constructor(){this.store=f(oe),this.loaders=ne([]),this.hasSkeletons=ne(0),this.activeLoader=A(()=>this.oldLoadingState()?.isLoading?{messageKey:this.oldLoadingState().loadingMessage}:this.loaders().length>0?this.loaders()[this.loaders().length-1]:null),this.isLoading=A(()=>this.activeLoader()!=null),this.oldLoadingState=Me(this.loadingStateWithDelay())}showLoader(e="global.loading.loading"){let n=Symbol();return this.loaders.update(o=>[...o,{id:n,messageKey:e}]),n}hideLoader(e){this.loaders.update(n=>n.filter(o=>o.id!==e))}showingSkeleton(){this.hasSkeletons.update(e=>e+1)}hidingSkeleton(){this.hasSkeletons()>0&&this.hasSkeletons.update(e=>e-1)}withLoader(e="",n=!0){return o=>{if(e===null||!n)return o;let r=this.showLoader(e);
4return o.pipe(Fr(()=>this.hideLoader(r)))}}loadingStateWithDelay(){let e=0,n=800;return this.store.select(I_).pipe(of(),Ze(({value:o,timestamp:r})=>{o.isLoading&&(e=r)}),qt(({value:o,timestamp:r})=>{let a=r-e,s=Math.max(n-a,0);return o.isLoading||s<=0?Le(o):Jh(s).pipe(qt(()=>Le(o)))}))}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=G({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Ee="primary",As=Symbol("RouteTitle"),nm=class{params;constructor(i){this.params=i||{}}has(i){return Object.prototype.hasOwnProperty.call(this.params,i)}get(i){if(this.has(i)){let e=this.params[i];return Array.isArray(e)?e[0]:e}return null}getAll(i){if(this.has(i)){let e=this.params[i];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}};function yr(t){return new nm(t)}function Ju(t,i,e){for(let n=0;n<t.length;n++){let o=t[n],r=i[n];if(o[0]===":")e[o.substring(1)]=r;else if(o!==r.path)return!1}return!0}function eC(t,i,e){let n=e.path.split("/"),o=n.indexOf("**");if(o===-1){if(n.length>t.length||e.pathMatch==="full"&&(i.hasChildren()||n.length<t.length))return null;let l={},c=t.slice(0,n.length);return Ju(n,c,l)?{consumed:c,posParams:l}:null}if(o!==n.lastIndexOf("**"))return null;let r=n.slice(0,o),a=n.slice(o+1);if(r.length+a.length>t.length||e.pathMatch==="full"&&i.hasChildren()&&e.path!=="**")return null;let s={};return!Ju(r,t.slice(0,r.length),s)||!Ju(a,t.slice(t.length-a.length),s)?null:{consumed:t,posParams:s}}function Hc(t){return new Promise((i,e)=>{t.pipe(ho()).subscribe({next:n=>i(n),error:n=>e(n)})})}function Wx(t,i){if(t.length!==i.length)return!1;for(let e=0;e<t.length;++e)if(!ji(t[e],i[e]))return!1;return!0}function ji(t,i){let e=t?im(t):void 0,n=i?im(i):void 0;if(!e||!n||e.length!=n.length)return!1;let o;for(let r=0;r<e.length;r++)if(o=e[r],!tC(t[o],i[o]))return!1;return!0}function im(t){return[...Object.keys(t),...Object.getOwnPropertySymbols(t)]}function tC(t,i){if(Array.isArray(t)&&Array.isArray(i)){if(t.length!==i.length)return!1;let e=[...t].sort(),n=[...i].sort();return e.every((o,r)=>n[r]===o)}else return t===i}function Gx(t){return t.length>0?t[t.length-1]:null}function Sr(t){return Wp(t)?t:Nf(t)?wn(Promise.resolve(t)):Le(t)}function nC(t){return Wp(t)?Hc(t):Promise.resolve(t)}var Yx={exact:oC,subset:rC},iC={exact:Zx,subset:Qx,ignored:()=>!0},Kx={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},$_={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function W_(t,i,e){return Yx[e.paths](t.root,i.root,e.matrixParams)&&iC[e.queryParams](t.queryParams,i.queryParams)&&!(e.fragment==="exact"&&t.fragment!==i.fragment)}function Zx(t,i){return ji(t,i)}function oC(t,i,e){if(!Cr(t.segments,i.segments)||!zc(t.segments,i.segments,e)||t.numberOfChildren!==i.numberOfChildren)return!1;for(let n in i.children)if(!t.children[n]||!oC(t.children[n],i.children[n],e))return!1;return!0}function Qx(t,i){return Object.keys(i).length<=Object.keys(t).length&&Object.keys(i).every(e=>tC(t[e],i[e]))}function rC(t,i,e){return aC(t,i,i.segments,e)}function aC(t,i,e,n){if(t.segments.length>e.length){let o=t.segments.slice(0,e.length);return!(!Cr(o,e)||i.hasChildren()||!zc(o,e,n))}else if(t.segments.length===e.length){if(!Cr(t.segments,e)||!zc(t.segments,e,n))return!1;for(let o in i.children)if(!t.children[o]||!rC(t.children[o],i.children[o],n))return!1;return!0}else{let o=e.slice(0,t.segments.length),r=e.slice(t.segments.length);return!Cr(t.segments,o)||!zc(t.segments,o,n)||!t.children[Ee]?!1:aC(t.children[Ee],i,r,n)}}function zc(t,i,e){return i.every((n,o)=>iC[e](t[o].parameters,n.parameters))}var vi=class{root;queryParams;fragment;_queryParamMap;constructor(i=new nt([],{}),e={},n=null){this.root=i,this.queryParams=e,this.fragment=n}get queryParamMap(){return this._queryParamMap??=yr(this.queryParams),this._queryParamMap}toString(){return eP.serialize(this)}},nt=class{segments;children;parent=null;constructor(i,e){this.segments=i,this.children=e,Object.values(e).forEach(n=>n.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Bc(this)}},Uo=class{path;parameters;_parameterMap;constructor(i,e){this.path=i,this.parameters=e}get parameterMap(){return this._parameterMap??=yr(this.parameters),this._parameterMap}toString(){return lC(this)}};function Jx(t,i){return Cr(t,i)&&t.every((e,n)=>ji(e.parameters,i[n].parameters))}function Cr(t,i){return t.length!==i.length?!1:t.every((e,n)=>e.path===i[n].path)}function Xx(t,i){let e=[];
vendor: 32,149 bytes, line 4
4return Object.entries(t.children).forEach(([n,o])=>{n===Ee&&(e=e.concat(i(o,n)))}),Object.entries(t.children).forEach(([n,o])=>{n!==Ee&&(e=e.concat(i(o,n)))}),e}var sd=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=Tn({token:t,factory:()=>new br})}return t})(),br=class{parse(i){let e=new rm(i);return new vi(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(i){let e=`/${ws(i.root,!0)}`,n=iP(i.queryParams),o=typeof i.fragment=="string"?`#${tP(i.fragment)}`:"";return`${e}${n}${o}`}},eP=new br;function Bc(t){return t.segments.map(i=>lC(i)).join("/")}function ws(t,i){if(!t.hasChildren())return Bc(t);if(i){let e=t.children[Ee]?ws(t.children[Ee],!1):"",n=[];return Object.entries(t.children).forEach(([o,r])=>{o!==Ee&&n.push(`${o}:${ws(r,!1)}`)}),n.length>0?`${e}(${n.join("//")})`:e}else{let e=Xx(t,(n,o)=>o===Ee?[ws(t.children[Ee],!1)]:[`${o}:${ws(n,!1)}`]);return Object.keys(t.children).length===1&&t.children[Ee]!=null?`${Bc(t)}/${e[0]}`:`${Bc(t)}/(${e.join("//")})`}}function sC(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Ac(t){return sC(t).replace(/%3B/gi,";")}function tP(t){return encodeURI(t)}function om(t){return sC(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Fc(t){return decodeURIComponent(t)}function G_(t){return Fc(t.replace(/\+/g,"%20"))}function lC(t){return`${om(t.path)}${nP(t.parameters)}`}function nP(t){return Object.entries(t).map(([i,e])=>`;${om(i)}=${om(e)}`).join("")}function iP(t){let i=Object.entries(t).map(([e,n])=>Array.isArray(n)?n.map(o=>`${Ac(e)}=${Ac(o)}`).join("&"):`${Ac(e)}=${Ac(n)}`).filter(e=>e);return i.length?`?${i.join("&")}`:""}var oP=/^[^\/()?;#]+/;function Xu(t){let i=t.match(oP);return i?i[0]:""}var rP=/^[^\/()?;=#]+/;function aP(t){let i=t.match(rP);return i?i[0]:""}var sP=/^[^=?&#]+/;function lP(t){let i=t.match(sP);return i?i[0]:""}var cP=/^[^&#]+/;function dP(t){let i=t.match(cP);return i?i[0]:""}var rm=class{url;remaining;constructor(i){this.url=i,this.remaining=i}parseRootSegment(){for(;this.consumeOptional("/"););return this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new nt([],{}):new nt([],this.parseChildren())}parseQueryParams(){let i={};if(this.consumeOptional("?"))do this.parseQueryParam(i);while(this.consumeOptional("&"));return i}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(i=0){if(i>50)throw new wt(4010,!1);if(this.remaining==="")return{};this.consumeOptional("/");let e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());let n={};this.peekStartsWith("/(")&&(this.capture("/"),n=this.parseParens(!0,i));let o={};return this.peekStartsWith("(")&&(o=this.parseParens(!1,i)),(e.length>0||Object.keys(n).length>0)&&(o[Ee]=new nt(e,n)),o}parseSegment(){let i=Xu(this.remaining);if(i===""&&this.peekStartsWith(";"))throw new wt(4009,!1);return this.capture(i),new Uo(Fc(i),this.parseMatrixParams())}parseMatrixParams(){let i={};for(;this.consumeOptional(";");)this.parseParam(i);return i}parseParam(i){let e=aP(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){let o=Xu(this.remaining);o&&(n=o,this.capture(n))}i[Fc(e)]=Fc(n)}parseQueryParam(i){let e=lP(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){let a=dP(this.remaining);a&&(n=a,this.capture(n))}let o=G_(e),r=G_(n);if(Object.hasOwn(i,o)){let a=i[o];Array.isArray(a)||(a=[a],i[o]=a),a.push(r)}else i[o]=r}parseParens(i,e){let n=Object.create(null);for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let o=Xu(this.remaining),r=this.remaining[o.length];if(r!=="/"&&r!==")"&&r!==";")throw new wt(4010,!1);let a;o.indexOf(":")>-1?(a=o.slice(0,o.indexOf(":")),this.capture(a),this.capture(":")):i&&(a=Ee);let s=this.parseChildren(e+1);n[a??Ee]=Object.keys(s).length===1&&s[Ee]?s[Ee]:new nt([],s),this.consumeOptional("//")}return n}peekStartsWith(i){return this.remaining.startsWith(i)}consumeOptional(i){return this.peekStartsWith(i)?(this.remaining=this.remaining.substring(i.length),!0):!1}capture(i){if(!this.consumeOptional(i))throw new wt(4011,!1)}};function cC(t){return t.segments.length>0?new nt([],{[Ee]:t}):t}function dC(t){let i=Object.create(null);for(let[n,o]of Object.entries(t.children)){let r=dC(o);if(n===Ee&&r.segments.length===0&&r.hasChildren())for(let[a,s]of Object.entries(r.children))i[a]=s;else(r.segments.length>0||r.hasChildren())&&(i[n]=r)}let e=new nt(t.segments,i);return pP(e)}function pP(t){if(t.numberOfChildren===1&&t.children[Ee]){let i=t.children[Ee];return new nt(t.segments.concat(i.segments),i.children)}return t}function Os(t){return t instanceof vi}function pC(t,i,e=null,n=null,o=new br){let r=uC(t);return mC(r,i,e,n,o)}function uC(t){let i;function e(r){let a={};for(let l of r.children){let c=e(l);a[l.outlet]=c}let s=new nt(r.url,a);return r===t&&(i=s),s}let n=e(t.root),o=cC(n);return i??o}function mC(t,i,e,n,o){let r=t;for(;r.parent;)r=r.parent;if(i.length===0)return em(r,r,r,e,n,o);let a=uP(i);if(a.toRoot())return em(r,r,new nt([],{}),e,n,o);let s=mP(a,r,t),l=s.processChildren?Ps(s.segmentGroup,s.index,a.commands):fC(s.segmentGroup,s.index,a.commands);return em(r,s.segmentGroup,l,e,n,o)}function Vc(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function Ds(t){return typeof t=="object"&&t!=null&&t.outlets}function Y_(t,i,e){t||="\u0275";let n=new vi;return n.queryParams={[t]:i},e.parse(e.serialize(n)).queryParams[t]}function em(t,i,e,n,o,r){let a={};for(let[c,d]of Object.entries(n??{}))a[c]=Array.isArray(d)?d.map(m=>Y_(c,m,r)):Y_(c,d,r);let s;t===i?s=e:s=hC(t,i,e);let l=cC(dC(s));return new vi(l,a,o)}function hC(t,i,e){let n=Object.create(null);return Object.entries(t.children).forEach(([o,r])=>{r===i?n[o]=e:n[o]=hC(r,i,e)}),new nt(t.segments,n)}var qc=class{isAbsolute;numberOfDoubleDots;commands;constructor(i,e,n){if(this.isAbsolute=i,this.numberOfDoubleDots=e,this.commands=n,i&&n.length>0&&Vc(n[0]))throw new wt(4003,!1);let o=n.find(Ds);if(o&&o!==Gx(n))throw new wt(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function uP(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new qc(!0,0,t);let i=0,e=!1,n=t.reduce((o,r,a)=>{if(typeof r=="object"&&r!=null){if(r.outlets){let s={};return Object.entries(r.outlets).forEach(([l,c])=>{s[l]=typeof c=="string"?c.split("/"):c}),[...o,{outlets:s}]}if(r.segmentPath)return[...o,r.segmentPath]}return typeof r!="string"?[...o,r]:a===0?(r.split("/").forEach((s,l)=>{l==0&&s==="."||(l==0&&s===""?e=!0:s===".."?i++:s!=""&&o.push(s))}),o):[...o,r]},[]);return new qc(e,i,n)}var ga=class{segmentGroup;processChildren;index;constructor(i,e,n){this.segmentGroup=i,this.processChildren=e,this.index=n}};function mP(t,i,e){if(t.isAbsolute)return new ga(i,!0,0);if(!e)return new ga(i,!1,NaN);if(e.parent===null)return new ga(e,!0,0);let n=Vc(t.commands[0])?0:1,o=e.segments.length-1+n;return hP(e,o,t.numberOfDoubleDots)}function hP(t,i,e){let n=t,o=i,r=e;for(;r>o;){if(r-=o,n=n.parent,!n)throw new wt(4005,!1);o=n.segments.length}return new ga(n,!1,o-r)}function fP(t){return Ds(t[0])?t[0].outlets:{[Ee]:t}}function fC(t,i,e){if(t??=new nt([],{}),t.segments.length===0&&t.hasChildren())return Ps(t,i,e);let n=gP(t,i,e),o=e.slice(n.commandIndex);if(n.match&&n.pathIndex<t.segments.length){let r=new nt(t.segments.slice(0,n.pathIndex),{});return r.children[Ee]=new nt(t.segments.slice(n.pathIndex),t.children),Ps(r,0,o)}else return n.match&&o.length===0?new nt(t.segments,{}):n.match&&!t.hasChildren()?am(t,i,e):n.match?Ps(t,0,o):am(t,i,e)}function Ps(t,i,e){if(e.length===0)return new nt(t.segments,{});{let n=fP(e),o=Object.create(null);if(Object.keys(n).some(r=>r!==Ee)&&t.children[Ee]&&t.numberOfChildren===1&&t.children[Ee].segments.length===0){let r=Ps(t.children[Ee],i,e);return new nt(t.segments,r.children)}return Object.entries(n).forEach(([r,a])=>{typeof a=="string"&&(a=[a]),a!==null&&(o[r]=fC(t.children[r],i,a))}),Object.entries(t.children).forEach(([r,a])=>{n[r]===void 0&&(o[r]=a)}),new nt(t.segments,o)}}function gP(t,i,e){let n=0,o=i,r={match:!1,pathIndex:0,commandIndex:0};for(;o<t.segments.length;){if(n>=e.length)return r;let a=t.segments[o],s=e[n];if(Ds(s))break;let l=`${s}`,c=n<e.length-1?e[n+1]:null;if(o>0&&l===void 0)break;if(l&&c&&typeof c=="object"&&c.outlets===void 0){if(!Z_(l,c,a))return r;n+=2}else{if(!Z_(l,{},a))return r;n++}o++}return{match:!0,pathIndex:o,commandIndex:n}}function am(t,i,e){let n=t.segments.slice(0,i),o=0;for(;o<e.length;){let r=e[o];if(Ds(r)){let l=_P(r.outlets);return new nt(n,l)}if(o===0&&Vc(e[0])){let l=t.segments[i];n.push(new Uo(l.path,K_(e[0]))),o++;continue}let a=Ds(r)?r.outlets[Ee]:`${r}`,s=o<e.length-1?e[o+1]:null;a&&s&&Vc(s)?(n.push(new Uo(a,K_(s))),o+=2):(n.push(new Uo(a,{})),o++)}return new nt(n,{})}function _P(t){let i={};return Object.entries(t).forEach(([e,n])=>{typeof n=="string"&&(n=[n]),n!==null&&(i[e]=am(new nt([],{}),0,n))}),i}function K_(t){let i={};return Object.entries(t).forEach(([e,n])=>i[e]=`${n}`),i}function Z_(t,i,e){return t==e.path&&ji(i,e.parameters)}var Uc="imperative",an=(function(t){return t[t.NavigationStart=0]="NavigationStart",t[t.NavigationEnd=1]="NavigationEnd",t[t.NavigationCancel=2]="NavigationCancel",t[t.NavigationError=3]="NavigationError",t[t.RoutesRecognized=4]="RoutesRecognized",t[t.ResolveStart=5]="ResolveStart",t[t.ResolveEnd=6]="ResolveEnd",t[t.GuardsCheckStart=7]="GuardsCheckStart",t[t.GuardsCheckEnd=8]="GuardsCheckEnd",t[t.RouteConfigLoadStart=9]="RouteConfigLoadStart",t[t.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",t[t.ChildActivationStart=11]="ChildActivationStart",t[t.ChildActivationEnd=12]="ChildActivationEnd",t[t.ActivationStart=13]="ActivationStart",t[t.ActivationEnd=14]="ActivationEnd",t[t.Scroll=15]="Scroll",t[t.NavigationSkipped=16]="NavigationSkipped",t})(an||{}),Un=class{id;url;constructor(i,e){this.id=i,this.url=e}},so=class extends Un{type=an.NavigationStart;navigationTrigger;restoredState;constructor(i,e,n="imperative",o=null){super(i,e),this.navigationTrigger=n,this.restoredState=o}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},wi=class extends Un{urlAfterRedirects;type=an.NavigationEnd;constructor(i,e,n){super(i,e),this.urlAfterRedirects=n}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},On=(function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromResolver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t[t.Aborted=4]="Aborted",t})(On||{}),jc=(function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t})(jc||{}),bi=class extends Un{reason;code;type=an.NavigationCancel;constructor(i,e,n,o){super(i,e),this.reason=n,this.code=o}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}};function CP(t){return t instanceof bi&&(t.code===On.Redirect||t.code===On.SupersededByNewNavigation)}var Ho=class extends Un{reason;code;type=an.NavigationSkipped;constructor(i,e,n,o){super(i,e),this.reason=n,this.code=o}},Ca=class extends Un{error;target;type=an.NavigationError;constructor(i,e,n,o){super(i,e),this.error=n,this.target=o}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},Ns=class extends Un{urlAfterRedirects;state;type=an.RoutesRecognized;constructor(i,e,n,o){super(i,e),this.urlAfterRedirects=n,this.state=o}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},$c=class extends Un{urlAfterRedirects;state;type=an.GuardsCheckStart;constructor(i,e,n,o){super(i,e),this.urlAfterRedirects=n,this.state=o}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Wc=class extends Un{urlAfterRedirects;state;shouldActivate;type=an.GuardsCheckEnd;constructor(i,e,n,o,r){super(i,e),this.urlAfterRedirects=n,this.state=o,this.shouldActivate=r}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},Gc=class extends Un{urlAfterRedirects;state;type=an.ResolveStart;constructor(i,e,n,o){super(i,e),this.urlAfterRedirects=n,this.state=o}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Yc=class extends Un{urlAfterRedirects;state;type=an.ResolveEnd;constructor(i,e,n,o){super(i,e),this.urlAfterRedirects=n,this.state=o}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Kc=class{route;type=an.RouteConfigLoadStart;constructor(i){this.route=i}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},Zc=class{route;type=an.RouteConfigLoadEnd;constructor(i){this.route=i}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},Qc=class{snapshot;type=an.ChildActivationStart;constructor(i){this.snapshot=i}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Jc=class{snapshot;type=an.ChildActivationEnd;constructor(i){this.snapshot=i}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Xc=class{snapshot;type=an.ActivationStart;constructor(i){this.snapshot=i}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},ed=class{snapshot;type=an.ActivationEnd;constructor(i){this.snapshot=i}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}};var Is=class{},td=class{},ya=class{url;navigationBehaviorOptions;constructor(i,e){this.url=i,this.navigationBehaviorOptions=e}};function yP(t){return!(t instanceof Is)&&!(t instanceof ya)&&!(t instanceof td)}var nd=class{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return this.route?.snapshot._environmentInjector??this.rootInjector}constructor(i){this.rootInjector=i,this.children=new Ls(this.rootInjector)}},Ls=(()=>{class t{rootInjector;contexts=new Map;constructor(e){this.rootInjector=e}onChildOutletCreated(e,n){let o=this.getOrCreateContext(e);o.outlet=n,this.contexts.set(e,o)}onChildOutletDestroyed(e){let n=this.getContext(e);n&&(n.outlet=null,n.attachRef=null)}onOutletDeactivated(){let e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let n=this.getContext(e);return n||(n=new nd(this.rootInjector),this.contexts.set(e,n)),n}getContext(e){return this.contexts.get(e)||null}static \u0275fac=function(n){return new(n||t)(Ve(Ur))};static \u0275prov=G({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),id=class{_root;constructor(i){this._root=i}get root(){return this._root.value}parent(i){let e=this.pathFromRoot(i);return e.length>1?e[e.length-2]:null}children(i){let e=sm(i,this._root);return e?e.children.map(n=>n.value):[]}firstChild(i){let e=sm(i,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(i){let e=lm(i,this._root);return e.length<2?[]:e[e.length-2].children.map(o=>o.value).filter(o=>o!==i)}pathFromRoot(i){return lm(i,this._root).map(e=>e.value)}};function sm(t,i){if(t===i.value)return i;for(let e of i.children){let n=sm(t,e);if(n)return n}return null}function lm(t,i){if(t===i.value)return[i];for(let e of i.children){let n=lm(t,e);if(n.length)return n.unshift(i),n}return[]}var Fn=class{value;children;constructor(i,e){this.value=i,this.children=e}toString(){return`TreeNode(${this.value})`}};function fa(t){let i={};return t&&t.children.forEach(e=>i[e.value.outlet]=e),i}var ks=class extends id{snapshot;constructor(i,e){super(i),this.snapshot=e,_m(this,i)}toString(){return this.snapshot.toString()}};function gC(t,i){let e=bP(t,i),n=new yt([new Uo("",{})]),o=new yt({}),r=new yt({}),a=new yt({}),s=new yt(""),l=new Vo(n,o,a,s,r,Ee,t,e.root);return l.snapshot=e.root,new ks(new Fn(l,[]),e)}function bP(t,i){let e={},n={},o={},a=new ba([],e,o,"",n,Ee,t,null,{},i);return new Ts("",new Fn(a,[]))}var Vo=class{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;_localInjector;constructor(i,e,n,o,r,a,s,l){this.urlSubject=i,this.paramsSubject=e,this.queryParamsSubject=n,this.fragmentSubject=o,this.dataSubject=r,this.outlet=a,this.component=s,this._futureSnapshot=l,this.title=this.dataSubject?.pipe(Be(c=>c[As]))??Le(void 0),this.url=i,this.params=e,this.queryParams=n,this.fragment=o,this.data=r}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(Be(i=>yr(i))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(Be(i=>yr(i))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}},SP="always";function gm(t,i,e){let n,{routeConfig:o}=t;return i!==null&&(e==="always"||o?.path===""||!i.component&&!i.routeConfig?.loadComponent)?n={params:S(S({},i.params),t.params),data:S(S({},i.data),t.data),resolve:S(S(S(S({},t.data),i.data),o?.data),t._resolvedData)}:n={params:S({},t.params),data:S({},t.data),resolve:S(S({},t.data),t._resolvedData??{})},o&&CC(o)&&(n.resolve[As]=o.title),n}var ba=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;_environmentInjector;get title(){return this.data?.[As]}constructor(i,e,n,o,r,a,s,l,c,d){this.url=i,this.params=e,this.queryParams=n,this.fragment=o,this.data=r,this.outlet=a,this.component=s,this.routeConfig=l,this._resolve=c,this._environmentInjector=d}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=yr(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=yr(this.queryParams),this._queryParamMap}toString(){let i=this.url.map(n=>n.toString()).join("/"),e=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${i}', path:'${e}')`}},Ts=class extends id{url;constructor(i,e){super(e),this.url=i,_m(this,e)}toString(){return _C(this._root)}};function _m(t,i){i.value._routerState=t,i.children.forEach(e=>_m(t,e))}function _C(t){let i=t.children.length>0?` { ${t.children.map(_C).join(", ")} } `:"";return`${t.value}${i}`}function tm(t){if(t.snapshot){let i=t.snapshot,e=t._futureSnapshot;t.snapshot=e,ji(i.queryParams,e.queryParams)||t.queryParamsSubject.next(e.queryParams),i.fragment!==e.fragment&&t.fragmentSubject.next(e.fragment),ji(i.params,e.params)||t.paramsSubject.next(e.params),Wx(i.url,e.url)||t.urlSubject.next(e.url),ji(i.data,e.data)||t.dataSubject.next(e.data)}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data)}function cm(t,i){let e=ji(t.params,i.params)&&Jx(t.url,i.url),n=!t.parent!=!i.parent;return e&&!n&&(!t.parent||cm(t.parent,i.parent))}function CC(t){return typeof t.title=="string"||t.title===null}var yC=new ve(""),bC=(()=>{class t{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=Ee;activateEvents=new es;deactivateEvents=new es;attachEvents=new es;detachEvents=new es;routerOutletData=v();parentContexts=f(Ls);location=f(Df);changeDetector=f(Gr);inputBinder=f(Cm,{optional:!0});supportsBindingToComponentInputs=!0;ngOnChanges(e){if(e.name){let{firstChange:n,previousValue:o}=e.name;if(n)return;this.isTrackedInParentContexts(o)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(o)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(e){return this.parentContexts.getContext(e)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let e=this.parentContexts.getContext(this.name);e?.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new wt(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new wt(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new wt(4012,!1);this.location.detach();let e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,n){this.activated=e,this._activatedRoute=n,this.location.insert(e.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){let e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,n){if(this.isActivated)throw new wt(4013,!1);this._activatedRoute=e;let o=this.location,a=e.snapshot.component,s=this.parentContexts.getOrCreateContext(this.name).children,l=new dm(e,s,o.injector,this.routerOutletData);this.activated=o.createComponent(a,{index:o.length,injector:l,environmentInjector:n}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static \u0275fac=function(n){return new(n||t)};static \u0275dir=tn({type:t,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[go]})}return t})(),dm=class{route;childContexts;parent;outletData;constructor(i,e,n,o){this.route=i,this.childContexts=e,this.parent=n,this.outletData=o}get(i,e){return i===Vo?this.route:i===Ls?this.childContexts:i===yC?this.outletData:this.parent.get(i,e)}},Cm=new ve("");var SC=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=H({type:t,selectors:[["ng-component"]],exportAs:["emptyRouterOutlet"],decls:1,vars:0,template:function(n,o){n&1&&T(0,"router-outlet")},dependencies:[bC],encapsulation:2,changeDetection:1})}return t})();function ym(t){let i=t.children&&t.children.map(ym),e=i?j(S({},t),{children:i}):S({},t);return!e.component&&!e.loadComponent&&(i||e.loadChildren)&&e.outlet&&e.outlet!==Ee&&(e.component=SC),e}function vP(t,i,e){let n=new Set,o=Rs(t,i._root,e?e._root:void 0,n);return{newlyCreatedRoutes:n,state:new ks(o,i)}}function Rs(t,i,e,n){if(e&&t.shouldReuseRoute(i.value,e.value.snapshot)){let o=e.value;o._futureSnapshot=i.value;let r=wP(t,i,e,n);return new Fn(o,r)}else{if(t.shouldAttach(i.value)){let a=t.retrieve(i.value);if(a!==null){let s=a.route;return s.value._futureSnapshot=i.value,s.children=i.children.map(l=>Rs(t,l,void 0,n)),s}}let o=xP(i.value);n.add(o);let r=i.children.map(a=>Rs(t,a,void 0,n));return new Fn(o,r)}}function wP(t,i,e,n){return i.children.map(o=>{for(let r of e.children)if(t.shouldReuseRoute(o.value,r.value.snapshot))return Rs(t,o,r,n);return Rs(t,o,void 0,n)})}function xP(t){return new Vo(new yt(t.url),new yt(t.params),new yt(t.queryParams),new yt(t.fragment),new yt(t.data),t.outlet,t.component,t)}var Sa=class{redirectTo;navigationBehaviorOptions;constructor(i,e){this.redirectTo=i,this.navigationBehaviorOptions=e}},vC="ngNavigationCancelingError";function od(t,i){let{redirectTo:e,navigationBehaviorOptions:n}=Os(i)?{redirectTo:i,navigationBehaviorOptions:void 0}:i,o=wC(!1,On.Redirect);return o.url=e,o.navigationBehaviorOptions=n,o}function wC(t,i){let e=new Error(`NavigationCancelingError: ${t||""}`);return e[vC]=!0,e.cancellationCode=i,e}function PP(t){return xC(t)&&Os(t.url)}function xC(t){return!!t&&t[vC]}var pm=class{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(i,e,n,o,r){this.routeReuseStrategy=i,this.futureState=e,this.currState=n,this.forwardEvent=o,this.inputBindingEnabled=r}activate(i){let e=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,n,i),tm(this.futureState.root),this.activateChildRoutes(e,n,i)}deactivateChildRoutes(i,e,n){let o=fa(e);i.children.forEach(r=>{let a=r.value.outlet;this.deactivateRoutes(r,o[a],n),delete o[a]}),Object.values(o).forEach(r=>{this.deactivateRouteAndItsChildren(r,n)})}deactivateRoutes(i,e,n){let o=i.value,r=e?e.value:null;if(o===r)if(o.component){let a=n.getContext(o.outlet);a&&this.deactivateChildRoutes(i,e,a.children)}else this.deactivateChildRoutes(i,e,n);else r&&this.deactivateRouteAndItsChildren(e,n)}deactivateRouteAndItsChildren(i,e){i.value.component&&this.routeReuseStrategy.shouldDetach(i.value.snapshot)?this.detachAndStoreRouteSubtree(i,e):this.deactivateRouteAndOutlet(i,e)}detachAndStoreRouteSubtree(i,e){let n=e.getContext(i.value.outlet),o=n&&i.value.component?n.children:e,r=fa(i);for(let a of Object.values(r))this.deactivateRouteAndItsChildren(a,o);if(n&&n.outlet){let a=n.outlet.detach(),s=n.children.onOutletDeactivated();this.routeReuseStrategy.store(i.value.snapshot,{componentRef:a,route:i,contexts:s})}}deactivateRouteAndOutlet(i,e){let n=e.getContext(i.value.outlet),o=n&&i.value.component?n.children:e,r=fa(i);for(let a of Object.values(r))this.deactivateRouteAndItsChildren(a,o);n&&(n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated()),n.attachRef=null,n.route=null),i.value._localInjector?.destroy()}activateChildRoutes(i,e,n){let o=fa(e);i.children.forEach(r=>{this.activateRoutes(r,o[r.value.outlet],n),this.forwardEvent(new ed(r.value.snapshot))}),i.children.length&&this.forwardEvent(new Jc(i.value.snapshot))}activateRoutes(i,e,n){let o=i.value,r=e?e.value:null;if(tm(o),o===r)if(o.component){let a=n.getOrCreateContext(o.outlet);this.activateChildRoutes(i,e,a.children)}else this.activateChildRoutes(i,e,n);else if(o.component){let a=n.getOrCreateContext(o.outlet);if(this.routeReuseStrategy.shouldAttach(o.snapshot)){let s=this.routeReuseStrategy.retrieve(o.snapshot);this.routeReuseStrategy.store(o.snapshot,null),a.children.onOutletReAttached(s.contexts),a.attachRef=s.componentRef,a.route=s.route.value,a.outlet&&a.outlet.attach(s.componentRef,s.route.value),tm(s.route.value),this.activateChildRoutes(i,null,a.children)}else a.attachRef=null,a.route=o,a.outlet&&a.outlet.activateWith(o,a.injector),this.activateChildRoutes(i,null,a.children)}else this.activateChildRoutes(i,null,n)}},rd=class{path;route;constructor(i){this.path=i,this.route=this.path[this.path.length-1]}},_a=class{component;route;constructor(i,e){this.component=i,this.route=e}};function MP(t,i,e){let n=t._root,o=i?i._root:null;return xs(n,o,e,[n.value])}function OP(t){let i=t.routeConfig?t.routeConfig.canActivateChild:null;return!i||i.length===0?null:{node:t,guards:i}}function wa(t,i){let e=Symbol(),n=i.get(t,e);return n===e?typeof t=="function"&&!af(t)?t:i.get(t):n}function xs(t,i,e,n,o={canDeactivateChecks:[],canActivateChecks:[]}){let r=fa(i);return t.children.forEach(a=>{DP(a,r[a.value.outlet],e,n.concat([a.value]),o),delete r[a.value.outlet]}),Object.entries(r).forEach(([a,s])=>Ms(s,e.getContext(a),o)),o}function DP(t,i,e,n,o={canDeactivateChecks:[],canActivateChecks:[]}){let r=t.value,a=i?i.value:null,s=e?e.getContext(t.value.outlet):null;if(a&&r.routeConfig===a.routeConfig){let l=NP(a,r,r.routeConfig.runGuardsAndResolvers);l?o.canActivateChecks.push(new rd(n)):(r.data=a.data,r._resolvedData=a._resolvedData),r.component?xs(t,i,s?s.children:null,n,o):xs(t,i,e,n,o),l&&s&&s.outlet&&s.outlet.isActivated&&o.canDeactivateChecks.push(new _a(s.outlet.component,a))}else a&&Ms(i,s,o),o.canActivateChecks.push(new rd(n)),r.component?xs(t,null,s?s.children:null,n,o):xs(t,null,e,n,o);return o}function NP(t,i,e){if(typeof e=="function")return Zn(i._environmentInjector,()=>e(t,i));switch(e){case"pathParamsChange":return!Cr(t.url,i.url);case"pathParamsOrQueryParamsChange":return!Cr(t.url,i.url)||!ji(t.queryParams,i.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!cm(t,i)||!ji(t.queryParams,i.queryParams);default:return!cm(t,i)}}function Ms(t,i,e){let n=fa(t),o=t.value;Object.entries(n).forEach(([r,a])=>{o.component?i?Ms(a,i.children.getContext(r),e):Ms(a,null,e):Ms(a,i,e)}),o.component?i&&i.outlet&&i.outlet.isActivated?e.canDeactivateChecks.push(new _a(i.outlet.component,o)):e.canDeactivateChecks.push(new _a(null,o)):e.canDeactivateChecks.push(new _a(null,o))}function zs(t){return typeof t=="function"}function IP(t){return typeof t=="boolean"}function kP(t){return t&&zs(t.canLoad)}function TP(t){return t&&zs(t.canActivate)}function RP(t){return t&&zs(t.canActivateChild)}function EP(t){return t&&zs(t.canDeactivate)}function AP(t){return t&&zs(t.canMatch)}function PC(t){return t instanceof Qh||t?.name==="EmptyError"}var Lc=Symbol("INITIAL_VALUE");function va(){return qt(t=>wl(t.map(i=>i.pipe(Ke(1),Xa(Lc)))).pipe(Be(i=>{for(let e of i)if(e!==!0){if(e===Lc)return Lc;if(e===!1||LP(e))return e}return!0}),lt(i=>i!==Lc),Ke(1)))}function LP(t){return Os(t)||t instanceof Sa}function MC(t){return t.aborted?Le(void 0).pipe(Ke(1)):new Ri(i=>{let e=()=>{i.next(),i.complete()};return t.addEventListener("abort",e),()=>t.removeEventListener("abort",e)})}function OC(t){return In(MC(t))}function zP(t){return Ai(i=>{let{targetSnapshot:e,currentSnapshot:n,guards:{canActivateChecks:o,canDeactivateChecks:r}}=i;return r.length===0&&o.length===0?Le(j(S({},i),{guardsResult:!0})):BP(r,e,n).pipe(Ai(a=>a&&IP(a)?FP(e,o,t):Le(a)),Be(a=>j(S({},i),{guardsResult:a})))})}function BP(t,i,e){return wn(t).pipe(Ai(n=>jP(n.component,n.route,e,i)),ho(n=>n!==!0,!0))}function FP(t,i,e){return wn(i).pipe(Gp(n=>xl(HP(n.route.parent,e),UP(n.route,e),qP(t,n.path),VP(t,n.route))),ho(n=>n!==!0,!0))}function UP(t,i){return t!==null&&i&&i(new Xc(t)),Le(!0)}function HP(t,i){return t!==null&&i&&i(new Qc(t)),Le(!0)}function VP(t,i){let e=i.routeConfig?i.routeConfig.canActivate:null;if(!e||e.length===0)return Le(!0);let n=e.map(o=>Pl(()=>{let r=i._environmentInjector,a=wa(o,r),s=TP(a)?a.canActivate(i,t):Zn(r,()=>a(i,t));return Sr(s).pipe(ho())}));return Le(n).pipe(va())}function qP(t,i){let e=i[i.length-1],o=i.slice(0,i.length-1).reverse().map(r=>OP(r)).filter(r=>r!==null).map(r=>Pl(()=>{let a=r.guards.map(s=>{let l=r.node._environmentInjector,c=wa(s,l),d=RP(c)?c.canActivateChild(e,t):Zn(l,()=>c(e,t));return Sr(d).pipe(ho())});return Le(a).pipe(va())}));return Le(o).pipe(va())}function jP(t,i,e,n){let o=i&&i.routeConfig?i.routeConfig.canDeactivate:null;if(!o||o.length===0)return Le(!0);let r=o.map(a=>{let s=i._environmentInjector,l=wa(a,s),c=EP(l)?l.canDeactivate(t,i,e,n):Zn(s,()=>l(t,i,e,n));return Sr(c).pipe(ho())});return Le(r).pipe(va())}function $P(t,i,e,n,o){let r=i.canLoad;if(r===void 0||r.length===0)return Le(!0);let a=r.map(s=>{let l=wa(s,t),c=kP(l)?l.canLoad(i,e):Zn(t,()=>l(i,e)),d=Sr(c);return o?d.pipe(OC(o)):d});return Le(a).pipe(va(),DC(n))}function DC(t){return Yh(Ze(i=>{if(typeof i!="boolean")throw od(t,i)}),Be(i=>i===!0))}function WP(t,i,e,n,o,r){let a=i.canMatch;if(!a||a.length===0)return Le(!0);
4let s=a.map(l=>{let c=wa(l,t),d=AP(c)?c.canMatch(i,e,o):Zn(t,()=>c(i,e,o));return Sr(d).pipe(OC(r))});return Le(s).pipe(va(),DC(n))}var ao=class t extends Error{segmentGroup;constructor(i){super(),this.segmentGroup=i||null,Object.setPrototypeOf(this,t.prototype)}},Es=class t extends Error{urlTree;constructor(i){super(),this.urlTree=i,Object.setPrototypeOf(this,t.prototype)}};function GP(t){throw new wt(4e3,!1)}function YP(t){throw wC(!1,On.GuardRejected)}var um=class{urlSerializer;urlTree;constructor(i,e){this.urlSerializer=i,this.urlTree=e}lineralizeSegments(i,e){return z(this,null,function*(){let n=[],o=e.root;for(;;){if(n=n.concat(o.segments),o.numberOfChildren===0)return n;if(o.numberOfChildren>1||!o.children[Ee])throw GP(`${i.redirectTo}`);o=o.children[Ee]}})}applyRedirectCommands(i,e,n,o,r){return z(this,null,function*(){let a=yield KP(e,o,r);if(a instanceof vi)throw new Es(a);let s=this.applyRedirectCreateUrlTree(a,this.urlSerializer.parse(a),i,n);if(a[0]==="/")throw new Es(s);return s})}applyRedirectCreateUrlTree(i,e,n,o){let r=this.createSegmentGroup(i,e.root,n,o);return new vi(r,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(i,e){let n={};return Object.entries(i).forEach(([o,r])=>{if(typeof r=="string"&&r[0]===":"){let s=r.substring(1);n[o]=e[s]}else n[o]=r}),n}createSegmentGroup(i,e,n,o){let r=this.createSegments(i,e.segments,n,o),a=Object.create(null);return Object.entries(e.children).forEach(([s,l])=>{a[s]=this.createSegmentGroup(i,l,n,o)}),new nt(r,a)}createSegments(i,e,n,o){return e.map(r=>r.path[0]===":"?this.findPosParam(i,r,o):this.findOrReturn(r,n))}findPosParam(i,e,n){let o=n[e.path.substring(1)];if(!o)throw new wt(4001,!1);return o}findOrReturn(i,e){let n=0;for(let o of e){if(o.path===i.path)return e.splice(n),o;n++}return i}};function KP(t,i,e){if(typeof t=="string")return Promise.resolve(t);let n=t;return Hc(Sr(Zn(e,()=>n(i))))}function ZP(t,i){return t.providers&&!t._injector&&(t._injector=kf(t.providers,i,`Route: ${t.path}`)),t._injector??i}function Si(t){return t.outlet||Ee}function QP(t,i){let e=t.filter(n=>Si(n)===i);return e.push(...t.filter(n=>Si(n)!==i)),e}var mm={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function NC(t){return{routeConfig:t.routeConfig,url:t.url,params:t.params,queryParams:t.queryParams,fragment:t.fragment,data:t.data,outlet:t.outlet,title:t.title,paramMap:t.paramMap,queryParamMap:t.queryParamMap}}function JP(t,i,e,n,o,r,a){let s=IC(t,i,e);if(!s.matched)return Le(s);let l=NC(r(s));return n=ZP(i,n),WP(n,i,e,o,l,a).pipe(Be(c=>c===!0?s:S({},mm)))}function IC(t,i,e){if(i.path==="")return i.pathMatch==="full"&&(t.hasChildren()||e.length>0)?S({},mm):{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};let o=(i.matcher||eC)(e,t,i);if(!o)return S({},mm);let r={};Object.entries(o.posParams??{}).forEach(([s,l])=>{r[s]=l.path});let a=o.consumed.length>0?S(S({},r),o.consumed[o.consumed.length-1].parameters):r;return{matched:!0,consumedSegments:o.consumed,remainingSegments:e.slice(o.consumed.length),parameters:a,positionalParamSegments:o.posParams??{}}}function Q_(t,i,e,n,o){return e.length>0&&tM(t,e,n,o)?{segmentGroup:new nt(i,eM(n,new nt(e,t.children))),slicedSegments:[]}:e.length===0&&nM(t,e,n)?{segmentGroup:new nt(t.segments,XP(t,e,n,t.children)),slicedSegments:e}:{segmentGroup:new nt(t.segments,t.children),slicedSegments:e}}function XP(t,i,e,n){let o={};for(let r of e)if(ld(t,i,r)&&!n[Si(r)]){let a=new nt([],{});o[Si(r)]=a}return S(S({},n),o)}function eM(t,i){let e={};e[Ee]=i;for(let n of t)if(n.path===""&&Si(n)!==Ee){let o=new nt([],{});e[Si(n)]=o}return e}function tM(t,i,e,n){return e.some(o=>!ld(t,i,o)||!(Si(o)!==Ee)?!1:!(n!==void 0&&Si(o)===n))}function nM(t,i,e){return e.some(n=>ld(t,i,n))}function ld(t,i,e){return(t.hasChildren()||i.length>0)&&e.pathMatch==="full"?!1:e.path===""}function iM(t,i,e){return i.length===0&&!t.children[e]}var hm=class{};function oM(t,i,e,n,o,r,a,s){return z(this,null,function*(){return new fm(t,i,e,n,o,a,r,s).recognize()})}var rM=31,fm=class{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;abortSignal;applyRedirects;absoluteRedirectCount=0;allowRedirects=!0;
4constructor(i,e,n,o,r,a,s,l){this.injector=i,this.configLoader=e,this.rootComponentType=n,this.config=o,this.urlTree=r,this.paramsInheritanceStrategy=a,this.urlSerializer=s,this.abortSignal=l,this.applyRedirects=new um(this.urlSerializer,this.urlTree)}noMatchError(i){return new wt(4002,`'${i.segmentGroup}'`)}recognize(){return z(this,null,function*(){let i=Q_(this.urlTree.root,[],[],this.config).segmentGroup,{children:e,rootSnapshot:n}=yield this.match(i),o=new Fn(n,e),r=new Ts("",o),a=pC(n,[],this.urlTree.queryParams,this.urlTree.fragment);return a.queryParams=this.urlTree.queryParams,r.url=this.urlSerializer.serialize(a),{state:r,tree:a}})}match(i){return z(this,null,function*(){let e=new ba([],Object.freeze({}),Object.freeze(S({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),Ee,this.rootComponentType,null,{},this.injector);try{return{children:yield this.processSegmentGroup(this.injector,this.config,i,Ee,e),rootSnapshot:e}}catch(n){if(n instanceof Es)return this.urlTree=n.urlTree,this.match(n.urlTree.root);throw n instanceof ao?this.noMatchError(n):n}})}processSegmentGroup(i,e,n,o,r){return z(this,null,function*(){if(n.segments.length===0&&n.hasChildren())return this.processChildren(i,e,n,r);let a=yield this.processSegment(i,e,n,n.segments,o,!0,r);return a instanceof Fn?[a]:[]})}processChildren(i,e,n,o){return z(this,null,function*(){let r=[];for(let l of Object.keys(n.children))l==="primary"?r.unshift(l):r.push(l);let a=[];for(let l of r){let c=n.children[l],d=QP(e,l),m=yield this.processSegmentGroup(i,d,c,l,o);a.push(...m)}let s=kC(a);return aM(s),s})}processSegment(i,e,n,o,r,a,s){return z(this,null,function*(){for(let l of e)try{return yield this.processSegmentAgainstRoute(l._injector??i,e,l,n,o,r,a,s)}catch(c){if(c instanceof ao||PC(c))continue;throw c}if(iM(n,o,r))return new hm;throw new ao(n)})}processSegmentAgainstRoute(i,e,n,o,r,a,s,l){return z(this,null,function*(){if(Si(n)!==a&&(a===Ee||!ld(o,r,n)))throw new ao(o);if(n.redirectTo===void 0)return this.matchSegmentAgainstRoute(i,o,n,r,a,l);if(this.allowRedirects&&s)return this.expandSegmentAgainstRouteUsingRedirect(i,o,e,n,r,a,l);throw new ao(o)})}expandSegmentAgainstRouteUsingRedirect(i,e,n,o,r,a,s){return z(this,null,function*(){let{matched:l,parameters:c,consumedSegments:d,positionalParamSegments:m,remainingSegments:g}=IC(e,o,r);if(!l)throw new ao(e);typeof o.redirectTo=="string"&&o.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>rM&&(this.allowRedirects=!1));let C=this.createSnapshot(i,o,r,c,s);if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);let R=yield this.applyRedirects.applyRedirectCommands(d,o.redirectTo,m,NC(C),i),F=yield this.applyRedirects.lineralizeSegments(o,R);return this.processSegment(i,n,e,F.concat(g),a,!1,s)})}createSnapshot(i,e,n,o,r){let a=new ba(n,o,Object.freeze(S({},this.urlTree.queryParams)),this.urlTree.fragment,lM(e),Si(e),e.component??e._loadedComponent??null,e,cM(e),i),s=gm(a,r,this.paramsInheritanceStrategy);return a.params=Object.freeze(s.params),a.data=Object.freeze(s.data),a}matchSegmentAgainstRoute(i,e,n,o,r,a){return z(this,null,function*(){if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);let s=K=>this.createSnapshot(i,n,K.consumedSegments,K.parameters,a),l=yield Hc(JP(e,n,o,i,this.urlSerializer,s,this.abortSignal));if(n.path==="**"&&(e.children={}),!l?.matched)throw new ao(e);i=n._injector??i;let{routes:c}=yield this.getChildConfig(i,n,o),d=n._loadedInjector??i,{parameters:m,consumedSegments:g,remainingSegments:C}=l,R=this.createSnapshot(i,n,g,m,a),{segmentGroup:F,slicedSegments:X}=Q_(e,g,C,c,r);if(X.length===0&&F.hasChildren()){let K=yield this.processChildren(d,c,F,R);return new Fn(R,K)}if(c.length===0&&X.length===0)return new Fn(R,[]);let q=Si(n)===r,te=yield this.processSegment(d,c,F,X,q?Ee:r,!0,R);return new Fn(R,te instanceof Fn?[te]:[])})}getChildConfig(i,e,n){return z(this,null,function*(){if(e.children)return{routes:e.children,injector:i};if(e.loadChildren){if(e._loadedRoutes!==void 0){let r=e._loadedNgModuleFactory;return r&&!e._loadedInjector&&(e._loadedInjector=r.create(i).injector),{routes:e._loadedRoutes,injector:e._loadedInjector}}
4if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);if(yield Hc($P(i,e,n,this.urlSerializer,this.abortSignal))){let r=yield this.configLoader.loadChildren(i,e);return e._loadedRoutes=r.routes,e._loadedInjector=r.injector,e._loadedNgModuleFactory=r.factory,r}throw YP(e)}return{routes:[],injector:i}})}};function aM(t){t.sort((i,e)=>i.value.outlet===Ee?-1:e.value.outlet===Ee?1:i.value.outlet.localeCompare(e.value.outlet))}function sM(t){let i=t.value.routeConfig;return i&&i.path===""}function kC(t){let i=[],e=new Set;for(let n of t){if(!sM(n)){i.push(n);continue}let o=i.find(r=>n.value.routeConfig===r.value.routeConfig);o!==void 0?(o.children.push(...n.children),e.add(o)):i.push(n)}for(let n of e){let o=kC(n.children);i.push(new Fn(n.value,o))}return i.filter(n=>!e.has(n))}function lM(t){return t.data||{}}function cM(t){return t.resolve||{}}function dM(t,i,e,n,o,r,a){return Ai(s=>z(null,null,function*(){let{state:l,tree:c}=yield oM(t,i,e,n,s.extractedUrl,o,r,a);return j(S({},s),{targetSnapshot:l,urlAfterRedirects:c})}))}function pM(t){return Ai(i=>{let{targetSnapshot:e,guards:{canActivateChecks:n}}=i;if(!n.length)return Le(i);let o=new Set(n.map(s=>s.route)),r=new Set;for(let s of o)if(!r.has(s))for(let l of TC(s))r.add(l);let a=0;return wn(r).pipe(Gp(s=>o.has(s)?uM(s,e,t):(s.data=gm(s,s.parent,t).resolve,Le(void 0))),Ze(()=>a++),Yp(1),Ai(s=>a===r.size?Le(i):Yn))})}function TC(t){let i=t.children.map(e=>TC(e)).flat();return[t,...i]}function uM(t,i,e){let n=t.routeConfig,o=t._resolve;return n?.title!==void 0&&!CC(n)&&(o[As]=n.title),Pl(()=>(t.data=gm(t,t.parent,e).resolve,mM(o,t,i).pipe(Be(r=>(t._resolvedData=r,t.data=S(S({},t.data),r),null)))))}function mM(t,i,e){let n=im(t);if(n.length===0)return Le({});let o={};return wn(n).pipe(Ai(r=>hM(t[r],i,e).pipe(ho(),Ze(a=>{if(a instanceof Sa)throw od(new br,a);o[r]=a}))),Yp(1),Be(()=>o),cr(r=>PC(r)?Yn:vl(r)))}function hM(t,i,e){let n=i._environmentInjector,o=wa(t,n),r=o.resolve?o.resolve(i,e):Zn(n,()=>o(i,e));return Sr(r)}function J_(t){return qt(i=>{let e=t(i);return e?wn(e).pipe(Be(()=>i)):Le(i)})}var bm=(()=>{class t{buildTitle(e){let n,o=e.root;for(;o!==void 0;)n=this.getResolvedTitleForRoute(o)??n,o=o.children.find(r=>r.outlet===Ee);return n}getResolvedTitleForRoute(e){return e.data[As]}static \u0275fac=function(n){return new(n||t)};static \u0275prov=Tn({token:t,factory:()=>f(RC)})}return t})(),RC=(()=>{class t extends bm{title;constructor(e){super(),this.title=e}updateTitle(e){let n=this.buildTitle(e);n!==void 0&&this.title.setTitle(n)}static \u0275fac=function(n){return new(n||t)(Ve(Pg))};static \u0275prov=G({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),cd=new ve("",{factory:()=>({})}),Sm=new ve(""),fM=(()=>{class t{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=f(Uf);loadComponent(e,n){return z(this,null,function*(){if(this.componentLoaders.get(n))return this.componentLoaders.get(n);if(n._loadedComponent)return Promise.resolve(n._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(n);let o=z(this,null,function*(){try{let r=yield nC(Zn(e,()=>n.loadComponent())),a=yield AC(ou(r));return this.onLoadEndListener&&this.onLoadEndListener(n),n._loadedComponent=a,a}finally{this.componentLoaders.delete(n)}});return this.componentLoaders.set(n,o),o})}loadChildren(e,n){if(this.childrenLoaders.get(n))return this.childrenLoaders.get(n);if(n._loadedRoutes)return Promise.resolve({routes:n._loadedRoutes,injector:n._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(n);let o=z(this,null,function*(){try{let r=yield EC(n,this.compiler,e,this.onLoadEndListener);return n._loadedRoutes=r.routes,n._loadedInjector=r.injector,n._loadedNgModuleFactory=r.factory,r}finally{this.childrenLoaders.delete(n)}});return this.childrenLoaders.set(n,o),o}static \u0275fac=function(n){return new(n||t)};static \u0275prov=Tn({token:t,factory:t.\u0275fac})}return t})();function EC(t,i,e,n){return z(this,null,function*(){let o=yield nC(Zn(e,()=>t.loadChildren())),r=yield AC(ou(o)),a;r instanceof If||Array.isArray(r)?a=r:a=yield i.compileModuleAsync(r),n&&n(t);let s,l,c=!1,d;return Array.isArray(a)?(l=a,c=!0):(s=a.create(e).injector,d=a,l=s.get(Sm,[],{optional:!0,self:!0}).flat()),{routes:l.map(ym),injector:s,factory:d}})}function AC(t){return z(this,null,function*(){return t})}var dd=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=Tn({token:t,factory:()=>f(gM)})}return t})(),gM=(()=>{class t{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,n){return e}static \u0275fac=function(n){return new(n||t)};static \u0275prov=Tn({token:t,factory:t.\u0275fac})}return t})(),_M=new ve("");var CM=new ve(""),yM=()=>{},bM=new ve(""),SM=(()=>{class t{currentNavigation=ne(null,{equal:()=>!1});currentTransition=null;lastSuccessfulNavigation=ne(null);events=new Ei;
4transitionAbortWithErrorSubject=new Ei;configLoader=f(fM);environmentInjector=f(Ur);destroyRef=f(fo);urlSerializer=f(sd);rootContexts=f(Ls);location=f(Rl);inputBindingEnabled=f(Cm,{optional:!0})!==null;titleStrategy=f(bm);options=f(cd,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||SP;urlHandlingStrategy=f(dd);createViewTransition=f(_M,{optional:!0});navigationErrorHandler=f(bM,{optional:!0});activatedRouteInjectorFeature=f(CM,{optional:!0});navigationId=0;get hasRequestedNavigation(){return this.navigationId!==0}transitions;afterPreactivation=()=>Le(void 0);rootComponentType=null;destroyed=!1;constructor(){let e=o=>this.events.next(new Kc(o)),n=o=>this.events.next(new Zc(o));this.configLoader.onLoadEndListener=n,this.configLoader.onLoadStartListener=e,this.destroyRef.onDestroy(()=>{this.destroyed=!0})}complete(){this.transitions?.complete()}handleNavigationRequest(e){let n=++this.navigationId;wo(()=>{this.transitions?.next(j(S({},e),{extractedUrl:this.urlHandlingStrategy.extract(e.rawUrl),targetSnapshot:null,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null,id:n,routesRecognizeHandler:{},beforeActivateHandler:{}}))})}setupNavigations(e){return this.transitions=new yt(null),this.transitions.pipe(lt(n=>n!==null),qt(n=>{let o=!0,r=!1,a=new AbortController,s=()=>!r&&this.currentTransition?.id===n.id;return Le(n).pipe(qt(l=>{if(this.navigationId>n.id)return this.cancelNavigationTransition(n,"",On.SupersededByNewNavigation),Yn;this.currentTransition=n;let c=this.lastSuccessfulNavigation();this.currentNavigation.set({id:l.id,initialUrl:l.rawUrl,extractedUrl:l.extractedUrl,targetBrowserUrl:typeof l.extras.browserUrl=="string"?this.urlSerializer.parse(l.extras.browserUrl):l.extras.browserUrl,trigger:l.source,extras:l.extras,previousNavigation:c?j(S({},c),{previousNavigation:null}):null,abort:()=>a.abort(),routesRecognizeHandler:l.routesRecognizeHandler,beforeActivateHandler:l.beforeActivateHandler});let d=!e.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),m=l.extras.onSameUrlNavigation??e.onSameUrlNavigation;if(!d&&m!=="reload")return this.events.next(new Ho(l.id,this.urlSerializer.serialize(l.rawUrl),"",jc.IgnoredSameUrlNavigation)),l.resolve(!1),Yn;if(this.urlHandlingStrategy.shouldProcessUrl(l.rawUrl))return Le(l).pipe(qt(g=>(this.events.next(new so(g.id,this.urlSerializer.serialize(g.extractedUrl),g.source,g.restoredState)),g.id!==this.navigationId?Yn:Promise.resolve(g))),dM(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy,a.signal),Ze(g=>{n.targetSnapshot=g.targetSnapshot,n.urlAfterRedirects=g.urlAfterRedirects,this.currentNavigation.update(C=>(C.finalUrl=g.urlAfterRedirects,C)),this.events.next(new td)}),qt(g=>wn(n.routesRecognizeHandler.deferredHandle??Le(void 0)).pipe(Be(()=>g))),Ze(()=>{let g=new Ns(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(g)}));if(d&&this.urlHandlingStrategy.shouldProcessUrl(l.currentRawUrl)){let{id:g,extractedUrl:C,source:R,restoredState:F,extras:X}=l,q=new so(g,this.urlSerializer.serialize(C),R,F);this.events.next(q);let te=gC(this.rootComponentType,this.environmentInjector).snapshot;return this.currentTransition=n=j(S({},l),{targetSnapshot:te,urlAfterRedirects:C,extras:j(S({},X),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.update(K=>(K.finalUrl=C,K)),Le(n)}else return this.events.next(new Ho(l.id,this.urlSerializer.serialize(l.extractedUrl),"",jc.IgnoredByUrlHandlingStrategy)),l.resolve(!1),Yn}),Be(l=>{let c=new $c(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);return this.events.next(c),this.currentTransition=n=j(S({},l),{guards:MP(l.targetSnapshot,l.currentSnapshot,this.rootContexts)}),n}),zP(l=>this.events.next(l)),qt(l=>{if(n.guardsResult=l.guardsResult,l.guardsResult&&typeof l.guardsResult!="boolean")throw od(this.urlSerializer,l.guardsResult);let c=new Wc(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot,!!l.guardsResult);if(this.events.next(c),!s())return Yn;if(!l.guardsResult)return this.cancelNavigationTransition(l,"",On.GuardRejected),Yn;if(l.guards.canActivateChecks.length===0)return Le(l);let d=new Gc(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);if(this.events.next(d),!s())return Yn;let m=!1;return Le(l).pipe(pM(this.paramsInheritanceStrategy),Ze({next:()=>{m=!0;let g=new Yc(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(g)},complete:()=>
4{m||this.cancelNavigationTransition(l,"",On.NoDataFromResolver)}}))}),J_(l=>{let c=m=>{let g=[];if(m.routeConfig?._loadedComponent)m.component=m.routeConfig?._loadedComponent;else if(m.routeConfig?.loadComponent){let C=m._environmentInjector;g.push(this.configLoader.loadComponent(C,m.routeConfig).then(R=>{m.component=R}))}for(let C of m.children)g.push(...c(C));return g},d=c(l.targetSnapshot.root);return d.length===0?Le(l):wn(Promise.all(d).then(()=>l))}),qt(l=>{let{newlyCreatedRoutes:c,state:d}=vP(e.routeReuseStrategy,l.targetSnapshot,l.currentRouterState);return this.currentTransition=n=l=j(S({},l),{targetRouterState:d,newlyCreatedRoutes:c}),this.currentNavigation.update(m=>(m.targetRouterState=d,m)),Le(l)}),this.activatedRouteInjectorFeature?.operator()??(l=>l),J_(()=>this.afterPreactivation()),qt(()=>{let{currentSnapshot:l,targetSnapshot:c}=n,d=this.createViewTransition?.(this.environmentInjector,l.root,c.root);return d?wn(d).pipe(Be(()=>n)):Le(n)}),Ke(1),qt(l=>{o=!1,this.events.next(new Is);let c=n.beforeActivateHandler.deferredHandle;return c?wn(c.then(()=>l)):Le(l)}),Ze(l=>{new pm(e.routeReuseStrategy,n.targetRouterState,n.currentRouterState,c=>this.events.next(c),this.inputBindingEnabled).activate(this.rootContexts),l.newlyCreatedRoutes?.clear(),s()&&(r=!0,this.currentNavigation.update(c=>(c.abort=yM,c)),this.lastSuccessfulNavigation.set(wo(this.currentNavigation)),this.events.next(new wi(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects))),this.titleStrategy?.updateTitle(l.targetRouterState.snapshot),l.resolve(!0))}),In(MC(a.signal).pipe(lt(()=>!r&&o),Ze(()=>{this.cancelNavigationTransition(n,a.signal.reason+"",On.Aborted)}))),Ze({complete:()=>{r=!0}}),In(this.transitionAbortWithErrorSubject.pipe(Ze(l=>{throw l}))),Fr(()=>{a.abort(),r||this.cancelNavigationTransition(n,"",On.SupersededByNewNavigation),this.currentTransition?.id===n.id&&(this.currentNavigation.set(null),this.currentTransition=null)}),cr(l=>{if(r=!0,X_(n),this.destroyed)return n.resolve(!1),Yn;if(xC(l))this.events.next(new bi(n.id,this.urlSerializer.serialize(n.extractedUrl),l.message,l.cancellationCode)),PP(l)?this.events.next(new ya(l.url,l.navigationBehaviorOptions)):n.resolve(!1);else{let c=new Ca(n.id,this.urlSerializer.serialize(n.extractedUrl),l,n.targetSnapshot??void 0);try{let d=Zn(this.environmentInjector,()=>this.navigationErrorHandler?.(c));if(d instanceof Sa){let{message:m,cancellationCode:g}=od(this.urlSerializer,d);this.events.next(new bi(n.id,this.urlSerializer.serialize(n.extractedUrl),m,g)),this.events.next(new ya(d.redirectTo,d.navigationBehaviorOptions))}else throw this.events.next(c),l}catch(d){this.options.resolveNavigationPromiseOnError?n.resolve(!1):n.reject(d)}}return Yn}))}))}cancelNavigationTransition(e,n,o){X_(e);let r=new bi(e.id,this.urlSerializer.serialize(e.extractedUrl),n,o);this.events.next(r),e.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let e=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),n=wo(this.currentNavigation),o=n?.targetBrowserUrl??n?.extractedUrl;return e.toString()!==o?.toString()&&!n?.extras.skipLocationChange}static \u0275fac=function(n){return new(n||t)};static \u0275prov=Tn({token:t,factory:t.\u0275fac})}return t})();function vM(t){return t!==Uc}function X_(t){if(t.newlyCreatedRoutes)for(let i of t.newlyCreatedRoutes)i._localInjector?.destroy()}var wM=new ve("");var LC=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=Tn({token:t,factory:()=>f(xM)})}return t})(),ad=class{shouldDetach(i){return!1}store(i,e){}shouldAttach(i){return!1}retrieve(i){return null}shouldReuseRoute(i,e){return i.routeConfig===e.routeConfig}shouldDestroyInjector(i){return!0}},xM=(()=>{class t extends ad{static \u0275fac=function(n){return new(n||t)};static \u0275prov=Tn({token:t,factory:t.\u0275fac})}return t})(),zC=(()=>{class t{urlSerializer=f(sd);options=f(cd,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";location=f(Rl);urlHandlingStrategy=f(dd);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new vi;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}createBrowserPath({finalUrl:e,initialUrl:n,targetBrowserUrl:o}){let r=e!==void 0?this.urlHandlingStrategy.merge(e,n):n,a=o??r;return a instanceof vi?this.urlSerializer.serialize(a):a}routerUrlState(e){return e?.targetBrowserUrl===void 0||e?.finalUrl===void 0?{}:{\u0275routerUrl:this.urlSerializer.serialize(e.finalUrl)}}commitTransition({targetRouterState:e,finalUrl:n,initialUrl:o}){n&&e?(this.currentUrlTree=n,this.rawUrlTree=this.urlHandlingStrategy.merge(n,o),this.routerState=e):this.rawUrlTree=o}routerState=gC(null,f(Ur));getRouterState(){return this.routerState}_stateMemento=this.createStateMemento();get stateMemento(){return this._stateMemento}updateStateMemento(){this._stateMemento=this.createStateMemento()}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}restoredState(){return this.location.getState()}static \u0275fac=function(n){return new(n||t)};static \u0275prov=Tn({token:t,factory:()=>f(PM)})}return t})(),PM=(()=>{class t extends zC{currentPageId=0;lastSuccessfulId=-1;get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}registerNonRouterCurrentEntryChangeListener(e){return this.location.subscribe(n=>{n.type==="popstate"&&setTimeout(()=>{e(n.url,n.state,"popstate",{replaceUrl:!0})})})}handleRouterEvent(e,n){e instanceof so?this.updateStateMemento():e instanceof Ho?this.commitTransition(n):e instanceof Ns?this.urlUpdateStrategy==="eager"&&(n.extras.skipLocationChange||this.setBrowserUrl(this.createBrowserPath(n),n)):e instanceof Is?(this.commitTransition(n),this.urlUpdateStrategy==="deferred"&&!n.extras.skipLocationChange&&this.setBrowserUrl(this.createBrowserPath(n),n)):e instanceof bi&&!CP(e)?this.restoreHistory(n):e instanceof Ca?this.restoreHistory(n,!0):e instanceof wi&&(this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId)}setBrowserUrl(e,n){let{extras:o,id:r}=n,{replaceUrl:a,state:s}=o;if(this.location.isCurrentPathEqualTo(e)||a){let l=this.browserPageId,c=S(S({},s),this.generateNgRouterState(r,l,n));this.location.replaceState(e,"",c)}else{let l=S(S({},s),this.generateNgRouterState(r,this.browserPageId+1,n));this.location.go(e,"",l)}}restoreHistory(e,n=!1){if(this.canceledNavigationResolution==="computed"){let o=this.browserPageId,r=this.currentPageId-o;r!==0?this.location.historyGo(r):this.getCurrentUrlTree()===e.finalUrl&&r===0&&(this.resetInternalState(e),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(n&&this.resetInternalState(e),this.resetUrlToCurrentUrlTree())}resetInternalState({finalUrl:e}){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.getRawUrlTree()),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(e,n,o){return this.canceledNavigationResolution==="computed"?S({navigationId:e,\u0275routerPageId:n},this.routerUrlState(o)):S({navigationId:e},this.routerUrlState(o))}static \u0275fac=function(n){return new(n||t)};static \u0275prov=Tn({token:t,factory:t.\u0275fac})}return t})();function BC(t,i){t.events.pipe(lt(e=>e instanceof wi||e instanceof bi||e instanceof Ca||e instanceof Ho),Be(e=>e instanceof wi||e instanceof Ho?0:(e instanceof bi?e.code===On.Redirect||e.code===On.SupersededByNewNavigation:!1)?2:1),lt(e=>e!==2),Ke(1)).subscribe(()=>{i()})}var xi=(()=>{class t{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=f(tu);stateManager=f(zC);options=f(cd,{optional:!0})||{};pendingTasks=f(lf);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=f(SM);
vendor: 4,947 bytes, line 4
4urlSerializer=f(sd);location=f(Rl);urlHandlingStrategy=f(dd);injector=f(Ur);_events=new Ei;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=f(LC);injectorCleanup=f(wM,{optional:!0});onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=f(Sm,{optional:!0})?.flat()??[];componentInputBindingEnabled=!!f(Cm,{optional:!0});currentNavigation=this.navigationTransitions.currentNavigation.asReadonly();constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this).subscribe({error:e=>{}}),this.subscribeToNavigationEvents()}eventsSubscription=new Gh;subscribeToNavigationEvents(){let e=this.navigationTransitions.events.subscribe(n=>{try{let o=this.navigationTransitions.currentTransition,r=wo(this.navigationTransitions.currentNavigation);if(o!==null&&r!==null){if(this.stateManager.handleRouterEvent(n,r),n instanceof bi&&n.code!==On.Redirect&&n.code!==On.SupersededByNewNavigation)this.navigated=!0;else if(n instanceof wi)this.navigated=!0,this.injectorCleanup?.(this.routeReuseStrategy,this.routerState,this.config);else if(n instanceof ya){let a=n.navigationBehaviorOptions,s=this.urlHandlingStrategy.merge(n.url,o.currentRawUrl),l=S({scroll:o.extras.scroll,browserUrl:o.extras.browserUrl,info:o.extras.info,skipLocationChange:o.extras.skipLocationChange,replaceUrl:o.extras.replaceUrl||this.urlUpdateStrategy==="eager"||vM(o.source)},a);this.scheduleNavigation(s,Uc,null,l,{resolve:o.resolve,reject:o.reject,promise:o.promise})}}yP(n)&&this._events.next(n)}catch(o){this.navigationTransitions.transitionAbortWithErrorSubject.next(o)}});this.eventsSubscription.add(e)}resetRootComponentType(e){this.routerState.root.component=e,this.navigationTransitions.rootComponentType=e}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),Uc,this.stateManager.restoredState(),{replaceUrl:!0})}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((e,n,o,r)=>{this.navigateToSyncWithBrowser(e,o,n,r)})}navigateToSyncWithBrowser(e,n,o,r){let a=o?.navigationId?o:null,s=o?.\u0275routerUrl??e;if(o?.\u0275routerUrl&&(r=j(S({},r),{browserUrl:e})),o){let c=S({},o);delete c.navigationId,delete c.\u0275routerPageId,delete c.\u0275routerUrl,Object.keys(c).length!==0&&(r.state=c)}let l=this.parseUrl(s);this.scheduleNavigation(l,n,a,r).catch(c=>{this.disposed||this.injector.get(cf)(c)})}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return wo(this.navigationTransitions.currentNavigation)}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){this.config=e.map(ym),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this._events.unsubscribe(),this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription?.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0,this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(e,n={}){let{relativeTo:o,queryParams:r,fragment:a,queryParamsHandling:s,preserveFragment:l}=n,c=l?this.currentUrlTree.fragment:a,d=null;switch(s??this.options.defaultQueryParamsHandling){case"merge":d=S(S({},this.currentUrlTree.queryParams),r);break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=r||null}d!==null&&(d=this.removeEmptyProps(d));let m;try{let g=o?o.snapshot:this.routerState.snapshot.root;m=uC(g)}catch(g){(typeof e[0]!="string"||e[0][0]!=="/")&&(e=[]),m=this.currentUrlTree.root}return mC(m,e,d,c??null,this.urlSerializer)}navigateByUrl(e,n={skipLocationChange:!1}){let o=Os(e)?e:this.parseUrl(e),r=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(r,Uc,null,n)}navigate(e,n={skipLocationChange:!1}){return MM(e),this.navigateByUrl(this.createUrlTree(e,n),n)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){try{return this.urlSerializer.parse(e)}catch(n){return this.console.warn(Kp(4018,!1)),this.urlSerializer.parse("/")}}isActive(e,n){let o;if(n===!0?o=S({},Kx):n===!1?o=S({},$_):o=S(S({},$_),n),Os(e))return W_(this.currentUrlTree,e,o);let r=this.parseUrl(e);return W_(this.currentUrlTree,r,o)}removeEmptyProps(e){return Object.entries(e).reduce((n,[o,r])=>(r!=null&&(n[o]=r),n),{})}scheduleNavigation(e,n,o,r,a){if(this.disposed)return Promise.resolve(!1);let s,l,c;a?(s=a.resolve,l=a.reject,c=a.promise):c=new Promise((m,g)=>{s=m,l=g});let d=this.pendingTasks.add();return BC(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(d))}),this.navigationTransitions.handleNavigationRequest({source:n,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:r,resolve:s,reject:l,promise:c,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}
4),c.catch(Promise.reject.bind(Promise))}static \u0275fac=function(n){return new(n||t)};static \u0275prov=Tn({token:t,factory:t.\u0275fac})}return t})();function MM(t){for(let i=0;i<t.length;i++)if(t[i]==null)throw new wt(4008,!1)}function Rc(t){return t&&typeof t=="object"&&"success"in t&&"data"in t}var Gt=(()=>{class t{constructor(){this.backendUrl=window.bookingWidget?.backendUrl??"",this.http=f(zl),this.store=f(oe),this.loaderService=f(j_),this.router=f(xi),this.injector=f(kn)}get(e,n={}){return this.processResult(this.http.get(this.getBackendUrl(e),{observe:"response",withCredentials:!0}),n)}post(e,n,o={}){return this.processResult(this.http.post(this.getBackendUrl(e),n,{observe:"response",withCredentials:!0}),o)}formRedirectPost(e,n,o={}){let r=document.createElement("form");r.method="POST",r.action=this.getBackendUrl(e),r.target="_self",r.style.display="none",Object.keys(n).forEach(a=>{let s=document.createElement("input");s.type="hidden",s.name=a,s.value=n[a],r.appendChild(s)}),document.body.appendChild(r),r.submit()}getBackendUrl(e){return this.backendUrl&&(e.startsWith("/")||(e="/"+e),e=this.backendUrl+e),e}processResult(e,n){let o=this.injector.get(vs,null),r=this.injector.get(Y,null);return e.pipe(Ke(1),Ze(a=>{let s=a.headers.get("x-mypage-login-valid-to");if(s){let l=new Date(s);this.store.dispatch(Oo({basketTimeoutAt:l}))}}),Be(a=>a.body),N_(o,r,this.router,n),this.loaderService.withLoader(n.loadingKey,n.showLoader),Ze(a=>this.showToastOnSuccess(a,n)),Be(a=>n.getOutcome?a:Rc(a)?a.data:a))}showToastOnSuccess(e,n){if(n.toastTitleKey&&n.toastMessageKey&&(Rc(e)&&e.success||e)){let o=this.injector.get(vs,null),r=this.injector.get(Y,null);o?.showToast(r?.transform(n.toastTitleKey)||"",r?.transform(n.toastMessageKey)||"",zo.SUCCESS,"top-right",!0,7e3)}}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=G({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var pd=(()=>{class t{constructor(){this.processed=f(ae),this.store=f(oe),this.rootStore=f(oe),this.document=f(xn),this.win=this.document.defaultView,this.initDone=!1,this.loading=!1,this.unavailable=!1}setIgnorePersonalization(e=null){this.unavailable=!0,this.store.dispatch(ua(e||{})),console.debug("Dynamic Yield is unavailable")}getDynamicYieldUID(){if(this.initDone&&this.win?.DY)return this.win.DY.dyid}setPageContext(e,n,o=!1){return z(this,null,function*(){let r=yield this.getDY();r?.API&&(o?r.API("spa",{context:{type:e,data:n},countAsPageview:!0}):r.recommendationContext={type:e,data:n},console.debug("Dynamic Yield setPageContext:",n[0]),this.loadActiveVariations())})}logAction(o){return z(this,arguments,function*(e,n={}){if(this.unavailable)return;let r={name:e,properties:S({hotel:this.processed.getInit().environmentSite},n)};return r.properties.currency=this.processed.getInit().globals.currencyIso,e==="Purchase"&&(r.properties.dyType="purchase-v1"),console.debug("Dynamic Yield event",e,r),new Promise(a=>z(this,null,function*(){let s=yield this.getDY();if(s?.API){let l=!1;s.API("sub",{on:"dy-event",callback:(c,d)=>z(this,null,function*(){!l&&d.toLowerCase()===e.toLowerCase()&&(l=!0,yield this.loadActiveVariations(),a())})}),s.API("event",r)}}))})}loadActiveVariations(){return z(this,null,function*(){let e=yield this.getDY();if(e?.API){let n=setTimeout(()=>this.setIgnorePersonalization(),5e3);return new Promise(o=>z(this,null,function*(){e.API("callback",()=>z(this,null,function*(){clearTimeout(n);let a=(yield this.getDYO())?.getUserObjectsAndVariations?.()||[];for(let l of Object.values(Gu)){let c=a.find(m=>m.objectName===l),d=c?.variations?.[0];this.store.dispatch(ua({campaignName:l,variation:d})),c?console.debug("Dynamic Yield campaign:",c.objectName,c.variations):console.debug("Dynamic Yield campaign not found:",l)}let s=this.getUrlCampaignOverride();s&&(this.store.dispatch(ua(s)),console.debug("Dynamic Yield URL override applied",s)),o()}))}))}})}getUrlCampaignOverride(){if(da.production)return null;let{dyCampaign:e,dyVariation:n}=this.rootStore.selectSignal(V_)();return!e||!n||!Object.values(Gu).includes(e)?null:{campaignName:e,variation:n}}getDY(){return z(this,null,function*(){return(yield this.waitForDY())?.DY||null})}getDYO(){return z(this,null,function*(){return(yield this.waitForDY())?.DYO||null})}waitForDY(){return new Promise(e=>{let n=this.processed.getInit().globals.activeFrontendFrameworks;
4if(!n.dynamicYieldId){e(null);return}if(this.initDone&&this.win?.DY?.API){e(this.win);return}if(!this.initDone){this.loading||this.initialize(n.dynamicYieldId);let o=Date.now();this.readyChecker=setInterval(()=>{this.win?.DY?.API&&(this.loading=!1,this.clearReadyChecker(),this.initDone=!0,this.unavailable=!1,e(this.win)),Date.now()-o>5e3&&(this.loading=!1,this.clearReadyChecker(),this.setIgnorePersonalization(),console.error("Dynamic Yield unavailable (timeout)"),e(null))},5)}})}clearReadyChecker(){this.readyChecker&&(clearInterval(this.readyChecker),this.readyChecker=void 0)}initialize(e){this.loading=!0,this.injectScript(`//cdn-eu.dynamicyield.com/api/${e}/api_dynamic.js`),this.injectScript(`//cdn-eu.dynamicyield.com/api/${e}/api_static.js`)}injectScript(e){if(this.document.querySelector(`script[data-dy-src="${e}"]`))return;let n=this.document.createElement("script");n.src=e,n.type="text/javascript",n.async=!0,n.setAttribute("data-dy-src",e),n.onerror=()=>{this.setIgnorePersonalization(),this.loading=!1,this.clearReadyChecker(),console.error(`Dynamic Yield script failed to load: ${e}`)},this.document.head.appendChild(n)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=G({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var li=(()=>{class t{constructor(){this.store=f(oe),this.processed=f(ae),this.languageService=f(Nt),this.hasInited=!1,window.addEventListener("beforeunload",()=>{this.hasInited&&(this.frameHeightInterval&&clearInterval(this.frameHeightInterval),window.removeEventListener("message",this.frameListenerFunc.bind(this),!1))})}isInIframe(){try{return window.self!==window.top}catch(e){return!0}}initIframeWithWidget(e){this.mainContainerGetFunc=e;let{frameId:n,widgetId:o,language:r}=this.store.selectSignal(L_)();this.frameid=n||null,this.widgetid=o||null,this.initlang=r||null,this.initlang&&this.languageService.hasLanguage(this.initlang)&&this.store.dispatch(ii({language:this.initlang})),this.setupFrameHeight(),this.setupFrameListener(),window.parent.postMessage({frameid:this.frameid,func:"origin"},"*")}loyaltyLoginOccured(e){let n={frameid:this.frameid,func:"loyaltylogin",data:e};setTimeout(()=>window.parent.postMessage(n,"*"),0)}loyaltyLogoutOccured(){let e={frameid:this.frameid,func:"loyaltylogout"};setTimeout(()=>window.parent.postMessage(e,"*"),0)}doRedirect(e){let n={frameid:this.frameid,func:"redirect",data:{href:e.toString(),target:this.processed.getInit().globals.openWidgetActionInMainWindow?"self":"_blank"}};setTimeout(()=>window.parent.postMessage(n,"*"),0)}setupFrameListener(){window.addEventListener("message",this.frameListenerFunc.bind(this),!1)}setupFrameHeight(){let e;this.frameHeightInterval=setInterval(()=>{let n=this.iframeHeight();e!==n&&(e=n,window.parent.postMessage({frameid:this.frameid,func:"iframeheight",data:n},"*"))},50)}frameListenerFunc(e){window.self!==e.source&&e.data.type==="origin"&&(this.frameOrigin=e.data.data)}iframeHeight(){if(!this.mainContainerGetFunc)return 20;let e=this.mainContainerGetFunc();return e?e.nativeElement.offsetHeight+parseInt(getComputedStyle(e.nativeElement).marginTop,10)+parseInt(getComputedStyle(e.nativeElement).marginBottom,10):20}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=G({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var J=(function(t){return t[t.Overnight=1]="Overnight",t[t.Day=2]="Day",t[t.Restaurant=3]="Restaurant",t})(J||{});var qo=class{static getPropertyNames(){return[]}};var jo=class extends qo{static getPropertyNames(){return["type","typeSubIdentifier","beddingOptionId"]}};var dt=(function(t){return t[t.Adult=1]="Adult",t[t.Child=2]="Child",t})(dt||{});var xa=new ve("RealtimeClientContextGetter");var ke=(function(t){return t[t.ResortWebsite=0]="ResortWebsite",t[t.Search=1]="Search",t[t.BookingStepPackage=2]="BookingStepPackage",t[t.BookingStepRoom=3]="BookingStepRoom",t[t.BookingStepMeal=4]="BookingStepMeal",t[t.BookingStepTreatment=5]="BookingStepTreatment",t[t.BookingStepActivity=6]="BookingStepActivity",t[t.BookingStepCheckoutWithAddons=7]="BookingStepCheckoutWithAddons",t[t.BookingStepRestaurant=8]="BookingStepRestaurant",t[t.BookingStepConfirmation=9]="BookingStepConfirmation",t[t.BookingStepWaitlist=10]="BookingStepWaitlist",t[t.MyPage=20]="MyPage",t[t.MyPageLogin=21]="MyPageLogin",t[t.Unknown=-1]="Unknown",t})(ke||{});var En=(function(t){return t[t.Webpage=1]="Webpage",t[t.PrivateBooking=2]="PrivateBooking",t[t.MyPage=3]="MyPage",t[t.MeetingBooking=4]="MeetingBooking",t[t.Unknown=-1]="Unknown",t})(En||{});var ce=(function(t){return t[t.ChatOpened=1]="ChatOpened",t[t.ChatMessage=2]="ChatMessage",t[t.ChatClosed=3]="ChatClosed",t[t.ChatLinkClicked=4]="ChatLinkClicked",t[t.PageView=5]="PageView",t[t.NoSearchResult=6]="NoSearchResult",t[t.LoyaltyMemberLoggedIn=7]="LoyaltyMemberLoggedIn",t[t.LoyaltyMemberLoggedOut=8]="LoyaltyMemberLoggedOut",t[t.AddedToWaitList=9]="AddedToWaitList",t[t.ViewItem=10]="ViewItem",t[t.ViewItemList=11]="ViewItemList",t[t.CheckoutBegin=12]="CheckoutBegin",t[t.Purchase=13]="Purchase",t[t.StartPayment=14]="StartPayment",t[t.CancelPayment=15]="CancelPayment",t[t.Payment=16]="Payment",t[t.MyPageLoggedIn=17]="MyPageLoggedIn",t[t.MyPageChangeRequest=18]="MyPageChangeRequest",t[t.MyPageCancelRequest=19]="MyPageCancelRequest",t[t.SelectPackage=20]="SelectPackage",t[t.SelectRoom=21]="SelectRoom",t[t.RemovePackage=22]="RemovePackage",t[t.RemoveRoom=23]="RemoveRoom",t[t.UpgradeRoom=24]="UpgradeRoom",t[t.BuyAddon=25]="BuyAddon",t[t.ViewAddons=26]="ViewAddons",t[t.UpdateAddon=27]="UpdateAddon",t[t.RemoveAddon=28]="RemoveAddon",t[t.Cancellation=29]="Cancellation",t[t.AddRefundProtection=30]="AddRefundProtection",t[t.RemoveRefundProtection=31]="RemoveRefundProtection",t[t.CalendarClick=32]="CalendarClick",t[t.MyPageAddAddon=33]="MyPageAddAddon",t})(ce||{});var FC={package_main_list:"Package Main List",room_main_list:"Room Main List",room_modal_micro_cards:"Room Modal Micro Cards",meal_main_list:"Meal Main List",activity_main_list:"Activity Main List",treatment_main_list:"Treatments Main List"},Bs=new ve("TRACKING_ADAPTER"),$i=(()=>{class t{constructor(){this.store=f(oe),this.injector=f(kn),this.processed=f(ae),this.adapters=f(Bs,{optional:!0})??[],this.personalization=f(pd),this.basket=Me(this.store.select(Jt),{initialValue:null}),this.loyaltyUser=Me(this.store.select(yi),{initialValue:null}),this.languageSignal=Me(this.store.select(ht),{initialValue:"en"}),this.isInitialized=!1,this.recentEvents=new Map,this.dedupeWindowMs=5e3,this.trackerDebug=Me(this.store.select(Fo)),et(()=>{try{let e=this.store.selectSignal(R_)();e&&e.split("?")[0].split("#")[0]!=="/booking"&&e.split("?")[0].split("#")[0]!=="/restaurant/booking"&&this.track(ce.PageView)}catch(e){}})}initialize(){for(let e of this.adapters)try{e.initialize(),this.trackerDebug()&&console.debug("Tracking adapter initialized",e)}catch(n){console.error("Tracking adapter initialization failed",n)}this.isInitialized=!0}track(e,n,o){if(!this.isInitialized){console.error("Tracking event before initialization",ce[e],n);return}let r=this.buildBaseEvent(e,n,o);if(this.skipDuplicate(r)){this.trackerDebug()&&console.debug("Skip duplicate tracking event",ce[e],ke[r.view],r.eventData);return}this.trackerDebug()&&console.debug("Tracking event",ce[e],ke[r.view],r.eventData);for(let a of this.adapters)try{a.track(r)}catch(s){console.error("Tracking adapter failed to handle event",s,r)}}buildBaseEvent(e,n,o){let r=this.injector.get(xa,null)?.getContext(),a=r?.currentView??ke.Unknown,s=r?.currentViewArea??En.Unknown,l=this.basket()?.metaData?.loyaltyUserLoggedIn??!!this.loyaltyUser(),c=this.store.selectSignal(qi)(),d=o&&FC[o]?FC[o]:void 0;return{eventType:e,environment:this.processed.getInit().environment,currentUrl:window.location.href.split("?")[0].split("#")[0],view:a,area:s,loyalty_member_logged_in:l,resortName:this.processed.getInit().resort.siteName,collection:this.processed.getInit().resort.hotelCollection,language:this.languageSignal(),iframe:c,eventData:n,item_list_id:o?.toString(),item_list_name:d,dynamic_yield_uid:this.personalization.getDynamicYieldUID()}}skipDuplicate(e){let n=Date.now();for(let[r,a]of this.recentEvents)n-a>this.dedupeWindowMs&&this.recentEvents.delete(r);let o=JSON.stringify(e);return this.recentEvents.has(o)?!0:(this.recentEvents.set(o,n),!1)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=G({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var ud=(()=>{class t{constructor(){this.store=f(oe),this.processedService=f(ae),this.personalization=f(pd),this.trackingService=f($i),this.translocoService=f(xo),this.translocoLocaleService=f(_r),this.widgetSvc=f(li),this.initialized=!1}initFromWebComponent(e){ae.forceProcessed(()=>e),Fl(Nc),this.translocoService.setActiveLang(e.init.defaultLanguage),ae.getLocaleConfig(),this.translocoLocaleService.setLocale(e.init.defaultLanguage),this.initialized||this.init()}initFromApplication(){this.initialized||(this.handleQueryParams(),this.init())}init(){this.initializeLanguage(),this.store.selectSignal(H_)()&&this.personalization.setIgnorePersonalization(),this.trackingService.initialize(),this.initialized=!0}initializeLanguage(){let e=this.processedService.getInit().availableLanguages,n=this.processedService.getInit().defaultLanguage;wl([this.store.select(ht),this.store.select(l_),this.store.select(A_),this.store.select(F_)]).pipe(Ke(1)).subscribe(([o,r,a,s])=>{let l=this.normalizeLanguageParam(a,Object.keys(e));l?(this.store.dispatch(ii({language:l,isSetByUser:!0})),!s.hash&&!s.credential&&!s.bookingNumber&&this.store.dispatch(fr({params:{language:void 0}}))):r&&o?(this.store.dispatch(ii({language:o,isSetByUser:!0})),this.translocoService.setActiveLang(o)):this.store.dispatch(ii({language:n}))}),this.translocoService.setAvailableLangs(Object.keys(e))}setupIframe(e){setTimeout(()=>
4{e()&&(this.widgetSvc.initIframeWithWidget(e),document.body.classList.add("iframe"))})}normalizeLanguageParam(e,n){if(!e)return;let o=e.replace(/_/g,"-"),r=o.split("-");if(r.length===1&&r[0].length===2)o=o.toLowerCase();else if(r.length===2&&r[0].length===2&&r[1].length===2)o=r[0].toLowerCase()+"-"+r[1].toUpperCase();else return;let a=n.find(s=>s.startsWith(o));return a||(a="en-US"),a}handleQueryParams(){let e=this.getQueryParams();this.store.dispatch(fr({params:e})),Object.keys(e).length>0&&this.cleanUrlParameters()}getQueryParams(){let e={frameId:"fid",redirectUrl:"url",startDate:"sd",from:"f",to:"t",searchType:"s",language:"l",promoCode:"c",widgetId:"wid",frameOrigin:"o",wantedRestaurantId:"r",wantedRestaurantMealTimeId:"m",hash:"h",bookingNumber:"mpb",credential:"mpc",showSpenn:"sp",alignment:"a",noPersonalization:"nop",dyCampaign:"dyCampaign",dyVariation:"dyVariation",trackerDebug:"td",autoFill:"autoFill",addonId:"aid"},n={showSpenn:!0,sso_success:!0,sso_error:!0,sso_user_denied:!0,noPersonalization:!0,trackerDebug:!0,autoFill:!0},o=$u.queryParams,a=new URL(window.location.href).searchParams,s={};if(Object.keys(o).forEach(c=>{let d=e[c]?e[c]:c;if(a.has(d)){let m=a.get(d);m&&(s[c]=n[c]?m!=="0"&&m!=="false":m)}}),typeof s.searchType=="string"){let c=parseInt(s.searchType,10);if(!c){let d=s.searchType.toLowerCase();c=["overnight","day","restaurant"].findIndex(m=>m===d)+1}s.searchType=c||void 0}else if(s.searchType===void 0&&(s.from||s.to)){let c=!!s.from&&!!s.to&&s.from!==s.to;s.searchType=c?J.Overnight:J.Day}let l=0;for(;a.has(`p${l}`);){let c=a.get(`p${l}`);c&&(s.parties||(s.parties=[]),s.parties.push(this.decodePartyString(c))),l++}return s}cleanUrlParameters(){let e={wh_token:!0,utm_source:!0,utm_medium:!0,utm_campaign:!0,utm_content:!0,utm_term:!0,gclid:!0,fbclid:!0,adgroup:!0,creative:!0,campaign_id:!0,placement:!0,matchtype:!0,device:!0,network:!0,keyword:!0,placement_id:!0,dyCampaign:!0,dyVariation:!0,td:!0,autoFill:!0},n=new URL(window.location.href),o=[];n.searchParams.forEach((r,a)=>{e[a]||o.push(a)}),o.forEach(r=>{n.searchParams.delete(r)}),window.history.replaceState({},"",n.href)}decodePartyString(e){let n={persons:[]},o=e.split(",");for(let r of o){let[a,s,l,c]=r.split(":");if(!a)continue;let d=+s,m=this.processedService.getInit().ageCategories[d],g=m.typeSubIdentifier,C=c?c.split("-"):[];for(let R=0;R<+l;R++){let F=new jo;switch(a){case"Child":case dt.Child.toString():F.type=dt.Child;break;case"Adult":case dt.Adult.toString():default:F.type=dt.Adult;break}F.typeSubIdentifier=g,F.beddingOptionId=C?.[R]&&m.beddingOptions[+C[R]]?.id||null,n.persons.push(F)}}return n}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=G({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var md=(()=>{class t{constructor(){this.apiService=f(Gt)}getSiteList(){return this.apiService.get("api/mastersettings/sites/frontend")}getSiteData(e,n){return this.apiService.get(`api/mastersettings/sites/frontend/${e}/${n}`)}switchStyle(e){if(e.styleTag){let n=document.getElementById("site-style");if(n){n.innerHTML=e.styleTag;let o=document.getElementsByTagName("body")[0];o.className=e.siteId;let r=e.frontendInit?.bookingImages.logoUrl,a=document.getElementsByClassName("site-logo");for(let s=0;s<a.length;s++)a[s].src=r||"https://nhr.imgprxy.se/files-devtrybe/NHR3-DevTrybe/1fdfcde87d1440d98c9f9114ea88a91c.unknown",a[s].parentElement?.tagName==="A"&&(a[s].parentElement.href=e.frontendInit?.resort.websiteUrl??"")}}}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=G({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Pa=(()=>{class t{constructor(){this.apiService=f(Gt),this.processedService=f(ae),this.appInitService=f(ud),this.fontsSet=!1,this.isWebComponent=ne(!1)}static{this.customCssStartMarker="guesthouse-webcomponent-custom-css-start"}static{this.customCssEndMarker="guesthouse-webcomponent-custom-css-end"}updateProcessed(e,n,o=""){let r,a=new BroadcastChannel("guesthouse-webcomponents"),s=new Date().getTime(),l=sessionStorage.getItem("guesthouse-webcomponent-lock");if(!l||Number(l)+2e3<s)sessionStorage.setItem("guesthouse-webcomponent-lock",s.toString()),r=this.getProcessed(e).pipe(Ze(c=>{a.postMessage(c),sessionStorage.removeItem("guesthouse-webcomponent-lock"),setTimeout(()=>a.close(),1e3)}));else{let c=new Ei;a.onmessage=d=>{c.next(d.data),c.complete(),setTimeout(()=>a.close(),1e3)},r=c.asObservable()}return r.pipe(Ke(1),Ai(c=>n?this.getWidgetData(n,e).pipe(Be(d=>j(S({},c),{widget:d}))):Le(c)),Ze(c=>{this.appInitService.initFromWebComponent(c),this.isWebComponent.set(!0),console.debug("Guesthouse web component loaded",o)}),Be(()=>{}))}setLocalFonts(e=!1,n=null){if(!this.fontsSet){this.fontsSet=!0;let r=this.getStylesWithoutCustomCss(n).split(` 5`).filter(s=>s.startsWith("@font-face "));e&&r.push("@font-face { font-family: SpennFont; src: url('https://nhr.imgprxy.se/static/SpennLogo-Regular.ttf') format('truetype'); font-weight: normal; font-style: normal; }");let a=document.querySelector("head");if(a){let s=document.createElement("style");s.setAttribute("rel","stylesheet"),s.setAttribute("type","text/css"),s.innerHTML=r.join(` 6`),a.appendChild(s)}}}setLocalStyleVariables(e,n=null){let r=this.getStylesWithoutCustomCss(n).split(` 7`).filter(s=>s.startsWith("--")).join(` 8`),a=document.createElement("style");a.setAttribute("rel","stylesheet"),a.setAttribute("type","text/css"),a.innerHTML=":host {"+r+"}",e.appendChild(a)}setLocalComponentCss(e,n=null){let o=this.getCustomWebComponentCss(n);if(!o)return;let r=document.createElement("style");r.setAttribute("rel","stylesheet"),r.setAttribute("type","text/css"),r.innerHTML=o,e.appendChild(r)}addTemplateByIdToShadowRoot(e,n){let o=document.getElementById(n);o&&e.nativeElement.shadowRoot.appendChild(o.content.cloneNode(!0))}getProcessed(e){let n=e?"/api/init?l="+e:"/api/init";return this.apiService.get(n)}getWidgetData(e,n){let o=n?`/api/init/widget?wid=${e}&l=${n}`:"/api/init/widget?wid=&";return this.apiService.get(o)}getStylesWithoutCustomCss(e=null){let n=e||this.processedService.getLocalStyles(),o=new RegExp(`/\\*\\s*${t.customCssStartMarker}[\\s\\S]*?${t.customCssEndMarker}\\s*\\*/`,"g");return n.replace(o,"")}getCustomWebComponentCss(e=null){let n=e||this.processedService.getLocalStyles(),o=new RegExp(`/\\*\\s*${t.customCssStartMarker}\\n?([\\s\\S]*?)\\n?${t.customCssEndMarker}\\s*\\*/`,"m");return n.match(o)?.[1]?.trim()||""}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=G({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var ci=(()=>{class t{constructor(){this.language=v(""),this.siteId=v(""),this.widgetId=v(""),this.onload=Re(),this.isReady=ne(!1),this.elementRef=f(Ut),this.apiService=f(Gt),this.webComponentService=f(Pa),this.appInitService=f(ud),this.store=f(oe),this.siteService=f(md),this.processedService=f(ae),this.languageService=f(Nt),this.translocoService=f(xo),this.defaultLanguage=Me(this.store.select(ht),{initialValue:""}),this.SpennLogo=Lo,this.SpennPoints=ma,et(()=>{if(this.isReady()&&this.language()&&this.language()!==this.defaultLanguage()){let e=Object.keys(this.processedService.getInit().availableLanguages),n=this.appInitService.n
8ormalizeLanguageParam(this.language(),e)||this.defaultLanguage();this.languageService.getTranslationJson(n).pipe(Ke(1)).subscribe(()=>{this.store.dispatch(ii({language:n,isSetByUser:!1})),this.translocoService.setActiveLang(n)})}}),et(()=>{this.siteId()&&this.isReady()&&this.processedService.getVariables().showFrontendSitePicker&&this.setCustomSiteDesign(this.siteId(),!1).subscribe()})}ngOnInit(){this.webComponentService.addTemplateByIdToShadowRoot(this.elementRef,"guesthouse-web-component-template"),this.webComponentService.updateProcessed(this.language(),this.widgetId(),this.constructor.name).subscribe(()=>{this.siteId()&&this.processedService.getVariables().showFrontendSitePicker?this.setCustomSiteDesign(this.siteId(),!0).subscribe(()=>this.isLoadedHandler()):(this.webComponentService.setLocalFonts(!0),this.webComponentService.setLocalStyleVariables(this.elementRef.nativeElement.shadowRoot),this.webComponentService.setLocalComponentCss(this.elementRef.nativeElement.shadowRoot),this.isLoadedHandler())})}isLoadedHandler(){setTimeout(()=>{this.isReady.set(!0),this.onload.emit()})}setCustomSiteDesign(e,n){return this.store.dispatch(rc()),this.siteService.getSiteData(e,"production").pipe(Ze(o=>{this.webComponentService.setLocalFonts(n,o.styleTag),this.webComponentService.setLocalStyleVariables(this.elementRef.nativeElement.shadowRoot,o.styleTag),this.webComponentService.setLocalComponentCss(this.elementRef.nativeElement.shadowRoot,o.styleTag)}))}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275dir=tn({type:t,inputs:{language:[1,"language"],siteId:[1,"siteId"],widgetId:[1,"widgetId"]},outputs:{onload:"onload"}})}}return t})();var UC=(()=>{class t extends ci{constructor(){super(),this.onSiteList=Re(),this.showPopup=!0,this.siteService=f(md),this.ButtonStyle=Oe}ngOnInit(){super.ngOnInit(),this.onSiteList.listeners?.length&&this.siteService.getSiteList().subscribe(e=>this.onSiteList.emit(e))}buttonClick(){this.showPopup=!this.showPopup}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=H({type:t,selectors:[["ng-component"]],outputs:{onSiteList:"onSiteList"},features:[re],decls:0,vars:0,template:function(n,o){},styles:[`.shadowdom-container{font-family:var(--%NS%default-text-font);background-color:bisque;position:relative;padding:1em}.shadowdom-container h1,.shadowdom-container h2,.shadowdom-container h3{font-family:var(--%NS%default-heading-font)}.shadowdom-container app-icon,.shadowdom-container .success{color:var(--%NS%success-color, red)}.shadowdom-container app-button app-icon{color:var(--%NS%strawberry-brand)}.shadowdom-container .popover{position:absolute;top:10em;left:10em;padding:1em;background-color:var(--%NS%success-color)} 9/*# sourceMappingURL=test.component.css.map */ 10`],encapsulation:3,changeDetection:1})}}return t})();var hd=(()=>{class t extends _e{constructor(){super(...arguments),this.height=v(1),this.width=v(1),this.isInline=v(!1),this.style=A(()=>{let e=this.width()/16,n=this.height()/16;return{width:`${e}rem`,height:`${n}rem`,display:this.isInline()?"inline-block":"block"}})}static{this.\u0275fac=(()=>{let e;return function(o){return(e||(e=Ne(t)))(o||t)}})()}static{this.\u0275cmp=H({type:t,selectors:[["app-spacer"]],inputs:{height:[1,"height"],width:[1,"width"],isInline:[1,"isInline"]},features:[re],decls:1,vars:1,consts:[["aria-hidden","true","role","none",3,"ngStyle"]],template:function(n,o){n&1&&T(0,"div",0),n&2&&b("ngStyle",o.style())},dependencies:[st,El],encapsulation:2,changeDetection:1})}}return t})();var HC=(()=>{class t extends _e{constructor(){super(...arguments),this.isVertical=v(!1),this.style=A(()=>{let e=this.isVertical()?"100%":"1px";return`width: ${this.isVertical()?"1px":"100%"}; height: ${e}; background-color: var(--border-color);`})}static{this.\u0275fac=(()=>{let e;return function(o){return(e||(e=Ne(t)))(o||t)}})()}static{this.\u0275cmp=H({type:t,selectors:[["app-separator"]],inputs:{isVertical:[1,"isVertical"]},features:[re],decls:1,vars:2,consts:[["aria-hidden","true","role","none"]],template:function(n,o){n&1&&yo(0,"div",0),n&2&&bo(o.style())},encapsulation:2,changeDetection:1})}}return t})();function OM(t=64){return z(this,null,function*(){if(t<43||t>128)throw new Error("Code verifier must be between 43 and 128 characters.");let i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~",e=new Uint8Array(t);return crypto.getRandomValues(e),Array.from(e).map(n=>i[n%i.length]).join("")})}function DM(t){return z(this,null,function*(){let e=new TextEncoder().encode(t),n=yield crypto.subtle.digest("SHA-256",e);return btoa(String.fromCharCode(...new Uint8Array(n))).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")})}function VC(t=64){return z(this,null,function*(){let i=yield OM(t),e=yield DM(i);
10return{code_verifier:i,code_challenge:e}})}var fd=class{static getPropertyNames(){return["codeVerifier","code"]}};var Ma=(()=>{class t{constructor(){this.spennStatusLoading=ne(!1),this.store=f(oe),this.apiService=f(Gt),this.languageService=f(Nt),this.trackingService=f($i),this.processed=f(ae),this.widgetSvc=f(li)}fetchUser(){return new Promise(e=>{this.store.select(yi).pipe(Ke(1)).subscribe(n=>{this.apiService.get("/api/loyalty/update",{showLoader:!0,ignoreErrors:!0}).subscribe({next:o=>{this.store.dispatch(ra({loyaltyUser:o})),e(!!o),o?.loyaltyUserId&&n?.loyaltyUserId!==o.loyaltyUserId?(this.trackingService.track(ce.LoyaltyMemberLoggedIn),this.widgetSvc.loyaltyLoginOccured(o)):o||this.setLoggedOut()},error:()=>{this.setLoggedOut(),e(!1)}})})})}signInWithStrawberrySso(){let e=window.location.href.includes("?"),n=window.location.href+(e?"&":"?")+"l="+this.languageService.getCurrentLanguage(),o={languageIsoCode:this.languageService.getCurrentLanguage(),urlOnComplete:n};this.apiService.formRedirectPost("/api/loyalty/strawberry/sso/login",o)}signInWithWidgetStrawberrySso(e){return this.apiService.post("/api/loyalty/strawberry/sso/login/widget",e).pipe(Ke(1))}fedcmLogin(){return z(this,null,function*(){if(!("IdentityCredential"in window))return;let e=this.processed.getInit().loyalty.strawberry;if(e?.useFedCm)try{let n=[...new Set(Object.values(e.fedCmUrl).map(m=>m.value))],o=e.ssoClientId,r=yield VC(),a={identity:{mode:"passive",providers:[...n.map(m=>({configURL:m,clientId:o,params:{code_challenge:r.code_challenge},fields:[]}))]}},s=yield navigator.credentials.get(a),{auth_code:l,_state:c}=JSON.parse(s.token),d=new fd;d.code=l,d.codeVerifier=r.code_verifier,this.apiService.post("/api/loyalty/strawberry/sso/fedcm",d,{loadingKey:"Signing in"}).subscribe(m=>{console.log(m),this.store.dispatch(ra({loyaltyUser:m.user})),m.user&&this.widgetSvc.loyaltyLoginOccured(m.user)})}catch(n){console.error("Error signing in using fedcm",n)}})}logout(){this.apiService.post("/api/loyalty/logout").subscribe(()=>{this.setLoggedOut()})}setLoggedOut(){this.store.selectSignal(yi)()&&this.trackingService.track(ce.LoyaltyMemberLoggedOut),this.store.dispatch(ra({loyaltyUser:null})),this.widgetSvc.loyaltyLogoutOccured()}getSpennStatusOnPay(e){return this.apiService.post("/api/payment/strawberry/paywith/spenn",e,{getOutcome:!0,showLoader:!1})}useSpennToPay(e){return this.apiService.post("/api/payment/strawberry/paywith/spenn/use",e,{getOutcome:!0})}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=G({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function vm(){setTimeout(()=>{window.scrollTo({top:0,behavior:"smooth"})})}function wm(t,i=0){let e=document.getElementsByClassName("container-fluid")[0];e&&setTimeout(()=>{if(t){let n=t.nativeElement.getBoundingClientRect();e.style.minHeight=n.height+i+"px"}else e.style.minHeight="auto"})}var NM=["*"];function IM(t,i){if(t&1&&T(0,"app-icon",3),t&2){let e=u(),n=fe(0);b("name",n)("size",e.iconSize())}}function kM(t,i){if(t&1&&T(0,"span",11),t&2){let e=u();bo("width: "+e.iconSize()+"px;")}}function TM(t,i){if(t&1&&(h(0,"span",13),D(1),y(2,"translocoStripHtml"),_()),t&2){let e=u(2);b("ngClass",e.labelTypography?e.labelTypography:"btn__label"),p(),ee(" ",O(2,2,e.label)," ")}}function RM(t,i){if(t&1&&(h(0,"span",14),D(1),y(2,"translocoStripHtml"),_()),t&2){let e=u(2);p(),V(O(2,1,e.subLabel))}}function EM(t,i){if(t&1&&(h(0,"span",15),D(1),y(2,"translocoStripHtml"),_()),t&2){let e=u(2);p(),V(O(2,1,e.tertiaryLabel))}}function AM(t,i){if(t&1&&(h(0,"span",16),D(1),y(2,"translocoStripHtml"),_()),t&2){let e=u(2);p(),V(O(2,1,e.quaternaryLabel))}}function LM(t,i){if(t&1&&(h(0,"span",12),w(1,TM,3,4,"span",13),w(2,RM,3,3,"span",14),w(3,EM,3,3,"span",15),w(4,AM,3,3,"span",16),_()),t&2){let e=u();ye("d-flex",!!e.subLabel),p(),x(e.label?1:-1),p(),x(e.subLabel?2:-1),p(),x(e.tertiaryLabel?3:-1),p(),x(e.quaternaryLabel?4:-1)}}function zM(t,i){if(t&1&&T(0,"span",17),t&2){let e=u();bo("width: "+e.iconSize()+"px;")}}function BM(t,i){if(t&1&&T(0,"app-icon",8),t&2){let e=u(),n=fe(1);b("name",n)("size",e.iconSize())}}function FM(t,i){if(t&1&&T(0,"app-icon",9),t&2){let e=u();b("name",e.iconDown())("size",e.iconSize())}}function UM(t,i){if(t&1&&(h(0,"span",10),D(1),_()),t&2){let e=u();b("id",e.labelledById()),p(),V(e.ariaLabel())}}var De=(()=>
10{class t extends _e{constructor(){super(...arguments),this.label=null,this.subLabel=null,this.tertiaryLabel=null,this.quaternaryLabel=null,this.labelTypography=null,this.ignoreOneLiner=v(!1),this.appearance=v(),this.stopPropagation=v(!1),this.btnClick=Re(),this.type=v(gn.BUTTON),this.additionalClasses=v([]),this.role=v(),this.ariaLabel=v(void 0,{alias:"aria-label"}),this.ariaSelected=v(void 0,{alias:"aria-selected"}),this.ariaExpanded=v(void 0,{alias:"aria-expanded"}),this.ariaPressed=v(void 0,{alias:"aria-pressed"}),this.ariaControls=v(void 0,{alias:"aria-controls"}),this.ariaHasPopup=v(void 0,{alias:"aria-haspopup"}),this.ariaDescribedBy=v(void 0,{alias:"aria-describedby"}),this.ariaDisabled=v(void 0,{alias:"aria-disabled"}),this.buttonId=v(void 0,{alias:"id"}),this.disabled=v(!1),this.icon=v(null),this.iconPosition=v(Ao.LEFT),this.iconLeft=v(null),this.iconRight=v(null),this.iconDown=v(null),this.iconSize=v(Se.TINY),this.shape=v(At.SQUARE),this.size=v(ct.SMALL),this.labelledById=A(()=>this.ariaLabel()?`button-id-${Ul?"test":Math.random().toString(36).substring(2,9)}`:void 0),this.ButtonSize=ct,this.ButtonIconPosition=Ao,this.Size=Se}get allClasses(){let e=this.shape();return["btn-"+this.appearance(),e?"rounded-"+e:"",...this.additionalClasses()??[]]}onClick(e){this.stopPropagation()&&(e.preventDefault(),e.stopPropagation()),this.disabled()||this.btnClick.emit(e)}static{this.\u0275fac=(()=>{let e;return function(o){return(e||(e=Ne(t)))(o||t)}})()}static{this.\u0275cmp=H({type:t,selectors:[["app-button"]],inputs:{label:"label",subLabel:"subLabel",tertiaryLabel:"tertiaryLabel",quaternaryLabel:"quaternaryLabel",labelTypography:"labelTypography",ignoreOneLiner:[1,"ignoreOneLiner"],appearance:[1,"appearance"],stopPropagation:[1,"stopPropagation"],type:[1,"type"],additionalClasses:[1,"additionalClasses"],role:[1,"role"],ariaLabel:[1,"aria-label","ariaLabel"],ariaSelected:[1,"aria-selected","ariaSelected"],ariaExpanded:[1,"aria-expanded","ariaExpanded"],ariaPressed:[1,"aria-pressed","ariaPressed"],ariaControls:[1,"aria-controls","ariaControls"],ariaHasPopup:[1,"aria-haspopup","ariaHasPopup"],ariaDescribedBy:[1,"aria-describedby","ariaDescribedBy"],ariaDisabled:[1,"aria-disabled","ariaDisabled"],buttonId:[1,"id","buttonId"],disabled:[1,"disabled"],icon:[1,"icon"],iconPosition:[1,"iconPosition"],iconLeft:[1,"iconLeft"],iconRight:[1,"iconRight"],iconDown:[1,"iconDown"],iconSize:[1,"iconSize"],shape:[1,"shape"],size:[1,"size"]},outputs:{btnClick:"btnClick"},features:[re],ngContentSelectors:NM,decls:14,vars:36,consts:[["contentLabel",""],["data-qa","button",1,"btn",3,"click","type","ngClass","disabled"],["data-qa","button-content"],["data-qa","button-icon-left",3,"name","size"],["data-qa","button-spacer-left",1,"spacer",3,"style"],["data-qa","button-label-container",1,"btn__label-container",3,"d-flex"],["data-qa","button-custom-content",1,"btn__content"],["data-qa","button-spacer-right",3,"style"],["data-qa","button-icon-right",3,"name","size"],["data-qa","button-icon-down",3,"name","size"],[1,"hide-element",3,"id"],["data-qa","button-spacer-left",1,"spacer"],["data-qa","button-label-container",1,"btn__label-container"],["data-qa","button-label",3,"ngClass"],["data-qa","button-sub-label",1,"btn__sub-label"],["data-qa","button-tertiary-label",1,"btn__tertiary-label"],["data-qa","button-quaternary-label",1,"btn__quaternary-label"],["data-qa","button-spacer-right"]],template:function(n,o){if(n&1&&(jt(),qe(0)(1),h(2,"button",1),k("click",function(a){return o.onClick(a)}),h(3,"span",2),w(4,IM,1,2,"app-icon",3),w(5,kM,1,2,"span",4),w(6,LM,5,6,"span",5),h(7,"span",6,0),at(9),_(),w(10,zM,1,2,"span",7),w(11,BM,1,2,"app-icon",8),_(),w(12,FM,1,2,"app-icon",9),w(13,UM,2,2,"span",10),_()),n&2){let r=Qe(8),a=Je(o.icon()&&o.iconPosition()===o.ButtonIconPosition.LEFT||o.iconLeft()?o.icon()||o.iconLeft():null);p();let s=Je(o.icon()&&o.iconPosition()===o.ButtonIconPosition.RIGHT||o.iconRight()?o.icon()||o.iconRight():null),l=!!r?.innerHTML?.trim(),c=o.label||o.subLabel||o.tertiaryLabel||o.quaternaryLabel||l,d=!o.subLabel&&!o.tertiaryLabel&&!o.quaternaryLabel&&!o.iconDown()&&!o.ignoreOneLiner();p(),ye("btn-xsmall",o.size()===o.ButtonSize.XSMALL)("btn-tiny",o.size()===o.ButtonSize.TINY)("btn-large",o.size()===o.ButtonSize.LARGE)("has-icon",a||s)("has-label",c)("one-line",d),b("type",o.type())("ngClass",o.allClasses)("disabled",o.disabled()),ue("role",o.role())("aria-labelledby",o.labelledById())("aria-selected",o.ariaSelected())("aria-controls",o.ariaControl
10s())("aria-haspopup",o.ariaHasPopup())("aria-expanded",o.ariaExpanded())("aria-pressed",o.ariaPressed())("aria-describedby",o.ariaDescribedBy())("aria-disabled",o.ariaDisabled())("id",o.buttonId()),p(),ye("label-center",c||o.size()===o.ButtonSize.LARGE),p(),x(a?4:-1),p(),x(!a&&c&&s&&o.size()===o.ButtonSize.LARGE?5:-1),p(),x(c?6:-1),p(4),x(!s&&c&&a&&o.size()===o.ButtonSize.LARGE?10:-1),p(),x(s?11:-1),p(),x(o.iconDown()?12:-1),p(),x(o.ariaLabel()?13:-1)}},dependencies:[st,bn,Fe,Y],styles:[`.display-large[_ngcontent-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:3.25em;line-height:1.125em;font-weight:700}.display-medium[_ngcontent-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:2.875em;line-height:1.1em;font-weight:700}.display-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:2.5em;line-height:1.125em;font-weight:700}.headline-large[_ngcontent-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:2.25em;line-height:1.14em;font-weight:700}.headline-medium[_ngcontent-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:1.875em;line-height:1.1em;font-weight:700}.headline-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:1.5em;line-height:1.13125em;font-weight:700}.title-large[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:1.5em;line-height:1.1875em;font-weight:600}.title-medium[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:1.25em;line-height:1.1875em;font-weight:600}.title-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:1em;line-height:1em;font-weight:600}.label-large[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:1em;line-height:1.1875em;font-weight:600}.label-medium[_ngcontent-%COMP%], .btn__label[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.875em;line-height:1.3em;font-weight:600}.label-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.75em;line-height:.875em;font-weight:600}.label-extra-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.625em;line-height:1.2em;font-weight:600}.body-large[_ngcontent-%COMP%], .btn-link[_ngcontent-%COMP%] .btn__label[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:1em;line-height:1.1875em;font-weight:400}
10.body-medium[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.875em;line-height:1.1em;font-weight:400}.body-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.75em;line-height:1.125em;font-weight:400}.body-extra-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.625em;line-height:.75em;font-weight:400}.dropdown-toggle[_nghost-%COMP%] .btn-large[_ngcontent-%COMP%] .label-center[_ngcontent-%COMP%]{justify-content:space-between;width:100%}.btn[_ngcontent-%COMP%]{padding:.625em .75em;min-width:2.8125em;height:100%;font-family:var(--%NS%default-text-font);line-height:1.5em;text-transform:uppercase;white-space:nowrap;border-radius:var(--%NS%button-border-radius);transition:all .2s ease-in-out}.btn.one-line[_ngcontent-%COMP%]{display:inline-flex;flex-direction:column;padding:0 .75em;height:2.875em;align-items:center;justify-content:center}.btn[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{display:flex;gap:.25em;justify-content:center;align-items:center}.btn[_ngcontent-%COMP%] > span[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{display:flex;align-self:center}.btn[_ngcontent-%COMP%]:not(.has-label){min-width:auto}.btn.rounded-narrow[_ngcontent-%COMP%]{height:1.625em}.btn.rounded-pill[_ngcontent-%COMP%]{border-radius:var(--%NS%radius-pill)!important}.btn.rounded-circle[_ngcontent-%COMP%]{min-width:2.875em}.btn.shadowed[_ngcontent-%COMP%]{box-shadow:var(--%NS%shadow-default)}.btn.wrap[_ngcontent-%COMP%]{white-space:normal}.btn.no-transform[_ngcontent-%COMP%]{text-transform:none}.btn__label-container[_ngcontent-%COMP%]{flex-direction:column;gap:.25em}.btn__label-container[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{text-box-trim:trim-both;text-box-edge:cap alphabetic;margin-bottom:.3em}.btn__label-container[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]:last-child{margin-bottom:0}.btn__label-container[_ngcontent-%COMP%]:empty{display:none}.btn__content[_ngcontent-%COMP%]:empty{display:none}.btn__label[_ngcontent-%COMP%]{font-size:.9em}.btn__sub-label[_ngcontent-%COMP%]{font-size:.625em;line-height:1em}@media(width<=330px){.btn__sub-label[_ngcontent-%COMP%]{font-size:.525em}}.btn-tiny[_ngcontent-%COMP%], .btn-tiny.one-line[_ngcontent-%COMP%]{min-width:auto;padding:0 4px;height:1.875em}.btn-xsmall[_ngcontent-%COMP%], .btn-xsmall.one-line[_ngcontent-%COMP%]{min-width:2.0625em;padding:0 .4375em;height:2.125em}
10.btn-large[_ngcontent-%COMP%]{width:100%}.btn[_ngcontent-%COMP%]:disabled{background-color:var(--%NS%background-disabled);border-color:var(--%NS%background-disabled);color:var(--%NS%color-disabled)}.btn-primary[_ngcontent-%COMP%]{color:var(--%NS%button-primary-text-color);background-color:var(--%NS%button-primary-background);border:1px solid var(--%NS%button-primary-border-color)}.btn-primary[_ngcontent-%COMP%]:focus-visible, .btn-primary[_ngcontent-%COMP%]:active{background-color:var(--%NS%button-primary-active-background);border:1px solid var(--%NS%button-primary-active-border-color);color:var(--%NS%button-primary-active-text-color)}@media(hover:hover)and (pointer:fine){.btn-primary[_ngcontent-%COMP%]:hover{background-color:var(--%NS%button-primary-active-background);border:1px solid var(--%NS%button-primary-active-border-color);color:var(--%NS%button-primary-active-text-color)}}.btn-secondary[_ngcontent-%COMP%]{color:var(--%NS%button-secondary-text-color);background-color:var(--%NS%button-secondary-background);border:1px solid var(--%NS%button-secondary-border-color)}.btn-secondary[_ngcontent-%COMP%]:focus-visible, .btn-secondary[_ngcontent-%COMP%]:active{background-color:var(--%NS%button-secondary-active-background);border:1px solid var(--%NS%button-secondary-active-border-color);color:var(--%NS%button-secondary-active-text-color)}@media(hover:hover)and (pointer:fine){.btn-secondary[_ngcontent-%COMP%]:hover{background-color:var(--%NS%button-secondary-active-background);border:1px solid var(--%NS%button-secondary-active-border-color);color:var(--%NS%button-secondary-active-text-color)}}.btn-alternate[_ngcontent-%COMP%]{color:var(--%NS%button-alternate-text-color);background-color:var(--%NS%button-alternate-background);border:1px solid var(--%NS%button-alternate-border-color)}.btn-alternate[_ngcontent-%COMP%]:focus-visible, .btn-alternate[_ngcontent-%COMP%]:active{background-color:var(--%NS%button-alternate-active-background);border:1px solid var(--%NS%button-alternate-active-border-color);color:var(--%NS%button-alternate-active-text-color)}@media(hover:hover)and (pointer:fine){.btn-alternate[_ngcontent-%COMP%]:hover{background-color:var(--%NS%button-alternate-active-background);border:1px solid var(--%NS%button-alternate-active-border-color);color:var(--%NS%button-alternate-active-text-color)}}.btn-alternate-selected[_ngcontent-%COMP%]{color:var(--%NS%button-alternate-selected-text-color);background-color:var(--%NS%button-alternate-selected-background);border:1px solid var(--%NS%button-alternate-selected-border-color)}.btn-alternate-selected[_ngcontent-%COMP%]:focus-visible, .btn-alternate-selected[_ngcontent-%COMP%]:active{background-color:var(--%NS%button-alternate-selected-active-background);border:1px solid var(--%NS%button-alternate-selected-active-border-color);color:var(--%NS%button-alternate-selected-active-text-color)}@media(hover:hover)and (pointer:fine){.btn-alternate-selected[_ngcontent-%COMP%]:hover{background-color:var(--%NS%button-alternate-selected-active-background);border:1px solid var(--%NS%button-alternate-selected-active-border-color);color:var(--%NS%button-alternate-selected-active-text-color)}}.btn-selection[_ngcontent-%COMP%]{color:var(--%NS%button-selection-text-color);background-color:var(--%NS%button-selection-background);border:1px solid var(--%NS%button-selection-border-color)}.btn-selection[_ngcontent-%COMP%]:focus-visible, .btn-selection[_ngcontent-%COMP%]:active{background-color:var(--%NS%button-selection-active-background);border:1px solid var(--%NS%button-selection-active-border-color);color:var(--%NS%button-selection-active-text-color)}@media(hover:hover)and (pointer:fine){.btn-selection[_ngcontent-%COMP%]:hover{background-color:var(--%NS%button-selection-active-background);border:1px solid var(--%NS%button-selection-active-border-color);color:var(--%NS%button-selection-active-text-color)}}.btn-timeslot[_ngcontent-%COMP%]{color:var(--%NS%button-timeslot-text-color);background-color:var(--%NS%button-timeslot-background);border:1px solid var(--%NS%button-timeslot-border-color)}.btn-timeslot[_ngcontent-%COMP%]:focus-visible, .btn-timeslot[_ngcontent-%COMP%]:active{background-color:var(--%NS%button-timeslot-active-background);border:1px solid var(--%NS%button-timeslot-active-border-color);color:var(--%NS%button-timeslot-active-text-color)}@media(hover:hover)and (pointer:fine){.btn-timeslot[_ngcontent-%COMP%]:hover{background-color:var(--%NS%button-timeslot-active-background);border:1px solid var(--%NS%button-timeslot-active-border-color);color:var(--%NS%button-timeslot-active-text-color)}}.btn-link[_ngcontent-%COMP%]{width:auto;min-width:auto;padding:0;vertical-align:unset;text-decoration:none!important}.btn-link.one-line[_ngcontent-%COMP%]{display:inline;height:auto;padding:0}.btn-link[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{text-transform:none!important;text-decoration:underline}.btn-link.no-line[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{text-decoration:none!important}.btn-link[_ngcontent-%COMP%], .btn-link[_ngcontent-%COMP%]:focus, .btn-link[_ngcontent-%COMP%]:hover, .btn-link[_ngcontent-%COMP%]:active{background-color:transparent;border-color:transparent;color:var(--%NS%text-link-color)}.btn-link[_ngcontent-%COMP%]:disabled{background-color:transparent;border-color:transparent}.btn-link.color-default[_ngcontent-%COMP%]{color:var(--%NS%default-text-color)}.btn-link.color-default[_ngcontent-%COMP%]:focus, .btn-link.color-default[_ngcontent-%COMP%]:hover, .btn-link.color-default[_ngcontent-%COMP%]:active{color:var(--%NS%default-text-color)}.btn.modal-colors[_ngcontent-%COMP%]{color:var(--%NS%modal-color);background-color:var(--%NS%modal-background-color);border:1px solid var(--%NS%border-color);border-radius:4px}.btn[_ngcontent-%COMP%] .hide-element[_ngcontent-%COMP%]{text-transform:none} 11/*# sourceMappingURL=button.component.css.map */`],changeDetection:1})}}return t})();var gd=(function(t){return t[t.NotReviewed=0]="NotReviewed",t[t.NotAiGenerated=1]="NotAiGenerated",t[t.PartiallyAiGenerated=2]="Parti
11allyAiGenerated",t[t.FullyAiGenerated=3]="FullyAiGenerated",t})(gd||{});var An=(function(t){return t[t.One=1]="One",t[t.Double=2]="Double",t})(An||{});var Oa=(function(t){return t[t.Image=1]="Image",t[t.Video=2]="Video",t})(Oa||{});var HM=new Set([gd.PartiallyAiGenerated,gd.FullyAiGenerated]);function jC(t){return!t||t.mediaType!==Oa.Image?!1:t.aiGeneratedMediaStatus!=null&&HM.has(t.aiGeneratedMediaStatus)}function $o(t,i,e=An.One){let n=$C(t,i,e);if(n){let o=n.images.find(r=>r.pixelRatio===e&&r.size===i);if(o?.absoluteUrl)return o.absoluteUrl}return""}function _d(t,i,e=An.One){let n=$C(t,i,e);return n?n.altText:void 0}function $C(t,i,e=An.One){if(t?.length){let n=t.filter(o=>o?.mediaType===Oa.Image);for(let o of n)if(o.images.find(a=>a.pixelRatio===e&&a.size===i))return o}return null}var VM=["*"];function qM(t,i){if(t&1&&T(0,"app-icon",1),t&2){let e=u();b("name",e.iconLeft())("size",e.iconSize())}}function jM(t,i){if(t&1&&(h(0,"span",2),D(1),_()),t&2){let e=u();p(),V(e.text())}}function $M(t,i){t&1&&at(0)}function WM(t,i){if(t&1&&T(0,"app-icon",3),t&2){let e=u();b("name",e.iconRight())("size",e.iconSize())}}var xm=(function(t){return t.EXTRA_LARGE="extraLarge",t.LARGE="large",t.MEDIUM="medium",t.SMALL="small",t})(xm||{}),Pm=(function(t){return t.PRIMARY="primary",t.SECONDARY="secondary",t.OUTLINE="outline",t.NEUTRAL="neutral",t.SUCCESS="success",t.WARNING="warning",t.ALERT="alert",t})(Pm||{}),WC=(()=>{class t extends _e{constructor(){super(...arguments),this.text=v(),this.size=v.required(),this.appearance=v.required(),this.iconLeft=v(),this.iconRight=v(),this.className=A(()=>`pill pill--${this.size()} pill--${this.appearance()}`),this.iconSize=A(()=>{switch(this.size()){case"extraLarge":case"large":return Se.TINY;case"medium":return Se.TINY;case"small":return Se.XTINY;default:}return Se.TINY})}static{this.\u0275fac=(()=>{let e;return function(o){return(e||(e=Ne(t)))(o||t)}})()}static{this.\u0275cmp=H({type:t,selectors:[["app-pill"]],inputs:{text:[1,"text"],size:[1,"size"],appearance:[1,"appearance"],iconLeft:[1,"iconLeft"],iconRight:[1,"iconRight"]},features:[re],ngContentSelectors:VM,decls:5,vars:5,consts:[["data-qa","pill-container"],["data-qa","pill-icon-left",3,"name","size"],["data-qa","pill-text"],["data-qa","pill-icon-right",3,"name","size"]],template:function(n,o){n&1&&(jt(),h(0,"div",0),w(1,qM,1,2,"app-icon",1),w(2,jM,2,1,"span",2)(3,$M,1,0),w(4,WM,1,2,"app-icon",3),_()),n&2&&(Ci(o.className()),p(),x(o.iconLeft()?1:-1),p(),x(o.text()?2:3),p(2),x(o.iconRight()?4:-1))},dependencies:[Fe],styles:[`.display-large[_ngcontent-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:3.25em;line-height:1.125em;font-weight:700}
11.display-medium[_ngcontent-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:2.875em;line-height:1.1em;font-weight:700}.display-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:2.5em;line-height:1.125em;font-weight:700}.headline-large[_ngcontent-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:2.25em;line-height:1.14em;font-weight:700}.headline-medium[_ngcontent-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:1.875em;line-height:1.1em;font-weight:700}.headline-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:1.5em;line-height:1.13125em;font-weight:700}.title-large[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:1.5em;line-height:1.1875em;font-weight:600}.title-medium[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:1.25em;line-height:1.1875em;font-weight:600}.title-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:1em;line-height:1em;font-weight:600}.label-large[_ngcontent-%COMP%], .pill--large[_ngcontent-%COMP%], .pill--extraLarge[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:1em;line-height:1.1875em;font-weight:600}.label-medium[_ngcontent-%COMP%], .pill--medium[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.875em;line-height:1.3em;font-weight:600}.label-small[_ngcontent-%COMP%], .pill--small[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.75em;line-height:.875em;font-weight:600}.label-extra-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.625em;line-height:1.2em;font-weight:600}.body-large[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:1em;line-height:1.1875em;font-weight:400}
11.body-medium[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.875em;line-height:1.1em;font-weight:400}.body-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.75em;line-height:1.125em;font-weight:400}.body-extra-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.625em;line-height:.75em;font-weight:400}.pill--extraLarge[_ngcontent-%COMP%]{background-color:#fff;color:#000;border-radius:var(--%NS%radius-pill);white-space:nowrap;width:fit-content;padding:.625em 1.125em}.pill--extraLarge[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{padding:0 .5em}.pill--large[_ngcontent-%COMP%]{background-color:#fff;color:#000;border-radius:var(--%NS%radius-pill);white-space:nowrap;width:fit-content;padding:.5em .875em}.pill--large[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{padding:0 .375em}.pill--medium[_ngcontent-%COMP%]{background-color:#fff;color:#000;border-radius:var(--%NS%radius-pill);white-space:nowrap;width:fit-content;padding:.25em .5em}.pill--medium[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{padding:0 .375em}.pill--small[_ngcontent-%COMP%]{background-color:#fff;color:#000;border-radius:var(--%NS%radius-pill);white-space:nowrap;width:fit-content;padding:.125em .5em;line-height:1.375em}.pill--small[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{padding:0 .25em}.pill--primary[_ngcontent-%COMP%]{background-color:var(--%NS%body-background-color);color:var(--%NS%color-primary)}.pill--secondary[_ngcontent-%COMP%]{background-color:var(--%NS%color-primary);color:var(--%NS%button-primary-text-color)}.pill--outline[_ngcontent-%COMP%]{background-color:var(--%NS%body-background-color);color:var(--%NS%color-primary);border:1px solid var(--%NS%color-primary)}.pill--success[_ngcontent-%COMP%]{color:var(--%NS%success-color);background-color:var(--%NS%success-background-color)}.pill--warning[_ngcontent-%COMP%]{color:var(--%NS%warning-color);background-color:var(--%NS%warning-background-color)}.pill--alert[_ngcontent-%COMP%]{color:var(--%NS%alert-color);background-color:var(--%NS%alert-background-color)}.pill[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:nth-child(2){margin-left:.375em} 12/*# sourceMappingURL=pill.component.css.map */`],changeDetection:1})}}return t})();var GM=["*"];function YM(t,i){if(t&1&&(h(0,"div",0),T(1,"app-pill",1),y(2,"translocoStripHtml"),y(3,"translocoStripHtml"),_()),t&2){let e=u();p(),b("text",O(2,4,e.pillLabelKey()))("appearance",e.PillAppearance.NEUTRAL)("size",e.PillSize.SMALL)("title",e.compact()?O(3,6,"media.ai-generated.label"):void 0)}}var Cd=(()=>{class t{constructor(){this.item=v(),this.compact=v(!1),this.showPill=A(()=>jC(this.item())),this.pillLabelKey=A(()=>this.compact()?"media.ai-generated.label.short":"media.ai-generated.label"),this.PillAppearance=Pm,this.PillSize=xm}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=H({type:t,selectors:[["app-ai-media-pill"]],inputs:{item:[1,"item"],compact:[1,"compact"]},ngContentSelectors:GM,decls:2,vars:1,consts:[[1,"ai-media-pill-badge"],["data-qa","ai-media-pill",3,"text","appearance","size","title"]],template:function(n,o){n&1&&(jt(),at(0),w(1,YM,4,8,"div",0)),n&2&&(p(),x(o.showPill()?1:-1))},dependencies:[WC,Y],styles:[`.display-large[_ngcontent-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:3.25em;line-height:1.125em;font-weight:700}
12.display-medium[_ngcontent-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:2.875em;line-height:1.1em;font-weight:700}.display-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:2.5em;line-height:1.125em;font-weight:700}.headline-large[_ngcontent-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:2.25em;line-height:1.14em;font-weight:700}.headline-medium[_ngcontent-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:1.875em;line-height:1.1em;font-weight:700}.headline-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:1.5em;line-height:1.13125em;font-weight:700}.title-large[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:1.5em;line-height:1.1875em;font-weight:600}.title-medium[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:1.25em;line-height:1.1875em;font-weight:600}.title-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:1em;line-height:1em;font-weight:600}.label-large[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:1em;line-height:1.1875em;font-weight:600}.label-medium[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.875em;line-height:1.3em;font-weight:600}.label-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.75em;line-height:.875em;font-weight:600}.label-extra-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.625em;line-height:1.2em;font-weight:600}.body-large[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:1em;line-height:1.1875em;font-weight:400}
12.body-medium[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.875em;line-height:1.1em;font-weight:400}.body-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.75em;line-height:1.125em;font-weight:400}.body-extra-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.625em;line-height:.75em;font-weight:400}[_nghost-%COMP%]{position:relative;display:block;width:100%;height:100%}.ai-media-pill-badge[_ngcontent-%COMP%]{position:absolute;right:.5em;bottom:.5em;z-index:1} 13/*# sourceMappingURL=ai-media-pill.component.css.map */`]})}}return t})();var KM=["viewport"],ZM=["track"],QM=["*"];function JM(t,i){if(t&1){let e=B();h(0,"app-button",8),k("btnClick",function(){N(e);let o=u();return I(o.goPrev())}),_()}if(t&2){let e=u();b("appearance",e.ButtonStyle.ALTERNATE)("shape",e.ButtonShape.CIRCLE)("size",e.ButtonSize.SMALL)("iconSize",e.IconSize.TINY)("ariaLabel",e.prevLabel())("disabled",!e.canGoPrev())}}function XM(t,i){if(t&1){let e=B();h(0,"app-button",9),k("btnClick",function(){N(e);let o=u();return I(o.goNext())}),_()}if(t&2){let e=u();b("appearance",e.ButtonStyle.ALTERNATE)("shape",e.ButtonShape.CIRCLE)("size",e.ButtonSize.SMALL)("iconSize",e.IconSize.TINY)("ariaLabel",e.nextLabel())("disabled",!e.canGoNext())}}function eO(t,i){if(t&1){let e=B();h(0,"button",11),k("click",function(){let o=N(e).$implicit,r=u(2);return I(r.goTo(o))}),_()}if(t&2){let e=i.$implicit,n=u(2);ye("carousel__bullet--active",e===n.activeIndex()),ue("aria-selected",e===n.activeIndex())("aria-label","Slide "+(e+1))}}function tO(t,i){if(t&1&&(h(0,"div",7),we(1,eO,1,4,"button",10,Xe),_()),t&2){let e=u();p(),xe(e.pageIndicators())}}var nO=6,GC=(()=>{class t extends _e{constructor(){super(),this.initialIndex=v(0),this.showNavigation=v(!0),this.pagination=v(!1),this.ariaLabel=v(void 0,{alias:"aria-label"}),this.ariaLabelledBy=v(void 0,{alias:"aria-labelledby"}),this.slideChange=Re(),this.destroyRef=f(fo),this.translatePipe=f(Y),this.viewport=We("viewport"),this.track=We("track"),this.activeIndex=ne(0),this.canGoPrev=ne(!1),this.canGoNext=ne(!1),this.hasOverflow=ne(!1),this.slideCount=ne(0),this.prevLabel=A(()=>this.translatePipe.transform("swiper.previous.label")||"Previous"),this.nextLabel=A(()=>this.translatePipe.transform("swiper.next.label")||"Next"),this.showNavButtons=A(()=>this.showNavigation()&&this.hasOverflow()),this.pageIndicators=A(()=>Array.from({length:this.slideCount()},(e,n)=>n)),this.ButtonStyle=Oe,this.ButtonSize=ct,this.ButtonShape=At,this.IconSize=Se,this.ignoreClick=!1,this.suppressSettle=!1,this.ready=!1,et(()=>{let e=this.initialIndex();!this.ready||e===this.lastAppliedInitialIndex||(this.lastAppliedInitialIndex=e,this.scrollToIndex(this.clampIndex(e),!1))}),eu(()=>{let e=this.viewport()?.nativeElement,n=this.track()?.nativeElement;if(!e||!n)return;this.resizeObserver=new ResizeObserver(()=>this.remeasure()),this.resizeObserver.observe(e),this.resizeObserver.observe(n),this.mutationObserver=new MutationObserver(()=>this.remeasure()),this.mutationObserver.observe(n,{childList:!0,subtree:!0}),Ja(e,"scroll").pipe(ur(this.destroyRef)).subscribe(()=>this.onScroll()),Ja(e,"scrollend").pipe(ur(this.destroyRef)).subscribe(()=>this.settleAfterNativeScroll(e)),Ja(e,"wheel",{passive:!1}).pipe(ur(this.destroyRef)).subscribe(r=>this.onWheel(r)),Ja(e,"dragstart").pipe(ur(this.destroyRef)).subscribe(r=>r.preventDefault()),this.remeasure(),this.ready=!0;let o=this.clampIndex(this.initialIndex());this.lastAppliedInitialIndex=o,o>0&&this.scrollToIndex(o,!1)}),this.destroyRef.onDestroy(()=>{this.resizeObserver?.disconnect(),this.mutationObserver?.disconnect(),clearTimeout(this.wheelSnapTimeout),clearTimeout(this.nativeSnapTimeout),clearTimeout(this.clearSuppressTimeout)})}goPrev(){if(!this.canGoPrev())return;let e=this.adjacentScrollIndex(-1);e!==null&&this.scrollToIndex(e)}goNext(){if(!this.canGoNext())return;let e=this.adjacentScrollIndex(1);e!==null&&this.scrollToIndex(e)}goTo(e){this.scrollToIndex(e)}onTrackClick(e){this.ignoreClick&&(e.preventDefault(),e.stopPropagation(),this.ignoreClick=!1)}onPointerDown(e){if(e.pointerType==="touch"||e.pointerType==="mouse"&&e.button!==0)return;let n=this.viewport()?.nativeElement;n&&(this.drag={pointerId:e.pointerId,startX:e.clientX,startScrollLeft:n.scrollLeft,dragging:!1})}onPointerMove(e){let n=this.drag,o=this.viewport()?.nativeElement;if(!n||n.pointerId!==e.pointerId||!o)return;let r=e.clientX-n.startX;!n.dragging&&Math.abs(r)<nO||(n.dragging||(n.dragging=!0,o.classList.add("carousel__viewport--dragging"),o.setPointerCapture(e.pointerId)),e.preventDefault(),o.scrollLeft=n.startScrollLeft-r)}onPointerUp(e){let n=this.drag,o=this.viewport()?.nativeElement;!n||n.pointerId!==e.pointerId||!o||(o.classList.remove("carousel__viewport--dragging"),n.dragging&&(this.ignoreClick=!0,o.hasPointerCapture(e.pointerId)&&o.releasePointerCapture(e.pointerId),this.scrollToIndex(this.indexFromScroll(o.scrollLeft))),this.drag=void 0)}onKeydown(e){switch(e.key){case"ArrowLeft":e.preventDefault(),this.goPrev();break;case"ArrowRight":e.preventDefault(),this.goNext();break;case"Home":e.preventDefault(),this.scrollToIndex(0);break;case"End":e.preventDefault(),this.scrollToIndex(this.slideCount()-1);break}}onWheel(e){let n=this.viewport()?.nativeElement;if(!n||!this.hasOverflow())return;let o=this.normalizeWheelDelta(e.deltaX,e.deltaMode),r=this.normalizeWheelDelta(e.deltaY,e.deltaMode),a=Math.abs(o),s=Math.abs(r);if(!(a>s||e.shiftKey&&s>0))return;let c=a>s?o:r,d=this.maxScrollLeft(n),m=2,g=n.scrollLeft<=m,C=n.scrollLeft>=d-m;e.preventDefault(),!(c<0&&g||c>0&&C)&&(n.scrollLeft=Math.min(d,Math.max(0,n.scrollLeft+c)),this.syncFromScroll(),clearTimeout(this.wheelSnapTimeout),this.wheelSnapTimeout=setTimeout(()=>{this.wheelSnapTimeout=void 0,this.settleToNearest(n)},150))}onScroll(){this.syncFromScroll(),!(this.suppressSettle||this.drag?.dragging||this.wheelSnapTimeout)&&(clearTimeout(this.nativeSnapTimeout),this.nativeSnapTimeout=setTimeout(()=>{let e=this.viewport()?.nativeElement;e&&this.settleAfterNativeScroll(e)},120))}settleAfterNativeScroll(e){clearTimeout(this.nativeSnapTimeout),this.nativeSnapTimeout=void 0,!(this.suppressSettle||this.drag?.dragging||this.wheelSnapTimeout)&&this.settleToNearest(e)}settleToNearest(e){this.scrollToIndex(this.indexFromScroll(e.scrollLeft),!0)}normalizeWheelDelta(e,n){switch(n){case WheelEvent.DOM_DELTA_LINE:return e*16;case WheelEvent.DOM_DELTA_PAGE:return e*(this.viewport()?.nativeElement.clientWidth||1);default:return e}}remeasure(){let e=this.viewport()?.nativeElement,n=this.track()?.nativeElement;if(!e||!n)return;let o=this.getSlides();this.slideCount.set(o.length);for(let a of o)this.resizeObserver?.observe(a);let r=e.scrollWidth>e.clientWidth+1;this.hasOverflow.set(r),this.syncFromScroll()}syncFromScroll(){let e=this.viewport()?.nativeElement;if(!e)return;let n=this.indexFromScroll(e.scrollLeft);n!==this.activeIndex()&&(this.activeIndex.set(n),this.slideChange.emit(n)),this.updateNavigationState(e.scrollLeft,n)}scrollToIndex(e,n=!0){let o=this.viewport()?.nativeElement;if(!o)return;let r=this.clampIndex(e),a=this.scrollLeftForIndex(r),s=typeof matchMedia=="function"&&matchMedia("(prefers-reduced-motion: reduce)").matches;Math.abs(o.scrollLeft-a)<2?this.suppressSettle=!1:(this.suppressSettle=!0,clearTimeout(this.nativeSnapTimeout),this.nativeSnapTimeout=void 0,clearTimeout(this.clearSuppressTimeout),o.scrollTo({left:a,behavior:n&&!s?"smooth":"auto"}),this.clearSuppressTimeout=setTimeout(()=>{this.suppressSettle=!1},n&&!s?450:50)),this.activeIndex.set(r),this.slideChange.emit(r),this.updateNavigationState(a,r)}updateNavigationState(e,n){let o=this.viewport()?.nativeElement;if(!o)return;let r=2,a=this.maxScrollLeft(o),s=Math.max(0,this.slideCount()-1),l=e<=r,c=e>=a-r,d=n>=s;this.canGoPrev.set(!l),this.canGoNext.set(!c&&!d)}maxScrollLeft(e){return Math.max(0,e.scrollWidth-e.clientWidth)}scrollLeftForIndex(e){let n=this.viewport()?.nativeElement;if(!n)return 0;
13let o=this.maxScrollLeft(n),r=Math.max(0,this.slideCount()-1);return e<=0?0:e>=r?o:Math.min(this.slideScrollLeft(e),o)}adjacentScrollIndex(e){let n=this.viewport()?.nativeElement;if(!n)return null;let o=2,r=n.scrollLeft,a=this.slideCount(),s=this.activeIndex();if(e<0){for(let l=s-1;l>=0;l--)if(this.scrollLeftForIndex(l)<r-o)return l;return null}for(let l=s+1;l<a;l++)if(this.scrollLeftForIndex(l)>r+o)return l;return null}indexFromScroll(e){let n=this.getSlides();if(n.length===0)return 0;let o=this.maxScrollLeft(this.viewport().nativeElement);if(e>=o-2)return n.length-1;if(e<=2)return 0;let r=0,a=Number.POSITIVE_INFINITY;for(let s=0;s<n.length;s++){let l=Math.abs(this.slideScrollLeft(s)-e);l<a&&(a=l,r=s)}return r}getSlides(){let e=this.track()?.nativeElement;return e?Array.from(e.children).filter(n=>n instanceof HTMLElement):[]}slideScrollLeft(e){let n=this.viewport()?.nativeElement,o=this.track()?.nativeElement,r=this.getSlides()[e];return!n||!o||!r?0:r.offsetParent===o||r.offsetParent===n?r.offsetLeft:r.getBoundingClientRect().left-o.getBoundingClientRect().left+n.scrollLeft}clampIndex(e){let n=Math.max(0,this.slideCount()-1);return Math.min(n,Math.max(0,e))}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=H({type:t,selectors:[["app-carousel"]],viewQuery:function(n,o){n&1&&Ot(o.viewport,KM,5)(o.track,ZM,5),n&2&&xt(2)},inputs:{initialIndex:[1,"initialIndex"],showNavigation:[1,"showNavigation"],pagination:[1,"pagination"],ariaLabel:[1,"aria-label","ariaLabel"],ariaLabelledBy:[1,"aria-labelledby","ariaLabelledBy"]},outputs:{slideChange:"slideChange"},features:[re],ngContentSelectors:QM,decls:9,vars:6,consts:[["viewport",""],["track",""],["role","region","tabindex","0",1,"carousel",3,"keydown"],["iconLeft","chevronLeft","data-qa","swiper-prev-button",1,"carousel__nav","carousel__nav--prev",3,"appearance","shape","size","iconSize","ariaLabel","disabled"],["data-qa","carousel-viewport",1,"carousel__viewport",3,"pointerdown","pointermove","pointerup","pointercancel","click"],["data-qa","carousel-track",1,"carousel__track"],["iconLeft","chevronRight","data-qa","swiper-next-button",1,"carousel__nav","carousel__nav--next",3,"appearance","shape","size","iconSize","ariaLabel","disabled"],["role","tablist","aria-label","Slides","data-qa","carousel-pagination",1,"carousel__pagination"],["iconLeft","chevronLeft","data-qa","swiper-prev-button",1,"carousel__nav","carousel__nav--prev",3,"btnClick","appearance","shape","size","iconSize","ariaLabel","disabled"],["iconLeft","chevronRight","data-qa","swiper-next-button",1,"carousel__nav","carousel__nav--next",3,"btnClick","appearance","shape","size","iconSize","ariaLabel","disabled"],["type","button","role","tab",1,"carousel__bullet",3,"carousel__bullet--active"],["type","button","role","tab",1,"carousel__bullet",3,"click"]],template:function(n,o){n&1&&(jt(),h(0,"div",2),k("keydown",function(a){return o.onKeydown(a)}),w(1,JM,1,6,"app-button",3),h(2,"div",4,0),k("pointerdown",function(a){return o.onPointerDown(a)})("pointermove",function(a){return o.onPointerMove(a)})("pointerup",function(a){return o.onPointerUp(a)})("pointercancel",function(a){return o.onPointerUp(a)})("click",function(a){return o.onTrackClick(a)}),h(4,"div",5,1),at(6),_()(),w(7,XM,1,6,"app-button",6),w(8,tO,3,0,"div",7),_()),n&2&&(ue("aria-roledescription","carousel")("aria-label",o.ariaLabel())("aria-labelledby",o.ariaLabelledBy()),p(),x(o.showNavButtons()?1:-1),p(6),x(o.showNavButtons()?7:-1),p(),x(o.pagination()&&o.slideCount()>1?8:-1))},dependencies:[De],styles:[`@charset "UTF-8";.display-large[_ngcontent-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:3.25em;line-height:1.125em;font-weight:700}
13.display-medium[_ngcontent-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:2.875em;line-height:1.1em;font-weight:700}.display-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:2.5em;line-height:1.125em;font-weight:700}.headline-large[_ngcontent-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:2.25em;line-height:1.14em;font-weight:700}.headline-medium[_ngcontent-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:1.875em;line-height:1.1em;font-weight:700}.headline-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:1.5em;line-height:1.13125em;font-weight:700}.title-large[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:1.5em;line-height:1.1875em;font-weight:600}.title-medium[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:1.25em;line-height:1.1875em;font-weight:600}.title-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:1em;line-height:1em;font-weight:600}.label-large[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:1em;line-height:1.1875em;font-weight:600}.label-medium[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.875em;line-height:1.3em;font-weight:600}.label-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.75em;line-height:.875em;font-weight:600}.label-extra-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.625em;line-height:1.2em;font-weight:600}.body-large[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:1em;line-height:1.1875em;font-weight:400}
13.body-medium[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.875em;line-height:1.1em;font-weight:400}.body-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.75em;line-height:1.125em;font-weight:400}.body-extra-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.625em;line-height:.75em;font-weight:400}[_nghost-%COMP%]{display:block;height:100%;--%NS%carousel-gap: 0;--%NS%carousel-padding-x: 0;--%NS%carousel-nav-offset: 8px;--%NS%carousel-align-items: stretch}.carousel[_ngcontent-%COMP%]{position:relative;display:block;height:100%}.carousel__viewport[_ngcontent-%COMP%]{height:100%;overflow:auto hidden;scroll-behavior:auto;overscroll-behavior-x:contain;scrollbar-width:none;touch-action:pan-x pan-y pinch-zoom;cursor:grab}.carousel__viewport.carousel__viewport--dragging[_ngcontent-%COMP%]{cursor:grabbing;-webkit-user-select:none;user-select:none}.carousel__viewport[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}.carousel__track[_ngcontent-%COMP%]{height:100%;position:relative;display:flex;flex-direction:row;align-items:var(--%NS%carousel-align-items, stretch);gap:var(--%NS%carousel-gap, 0);min-width:100%;box-sizing:content-box}.carousel__track[_ngcontent-%COMP%]:before, .carousel__track[_ngcontent-%COMP%]:after{content:"";flex:0 0 var(--%NS%carousel-padding-x, 0);align-self:stretch;min-height:1px}.carousel__track[_ngcontent-%COMP%]:before{margin-inline-end:calc(-1 * var(--%NS%carousel-gap, 0))}.carousel__track[_ngcontent-%COMP%]:after{margin-inline-start:calc(-1 * var(--%NS%carousel-gap, 0))}[_nghost-%COMP%] .carousel__track[_ngcontent-%COMP%] >*{box-sizing:border-box;flex:0 0 auto}[_nghost-%COMP%] .carousel__track[_ngcontent-%COMP%] img, [_nghost-%COMP%] .carousel__track[_ngcontent-%COMP%] a{-webkit-user-drag:none}[_nghost-%COMP%] .carousel__track[_ngcontent-%COMP%] img{-webkit-user-select:none;user-select:none}.carousel__nav[_ngcontent-%COMP%]{display:none;position:absolute;top:50%;z-index:2}.carousel__nav--prev[_ngcontent-%COMP%]{left:var(--%NS%carousel-nav-offset);transform:translateY(-50%)}.carousel__nav--next[_ngcontent-%COMP%]{right:var(--%NS%carousel-nav-offset);transform:translateY(-50%)}@media(min-width:576px){.carousel__nav[_ngcontent-%COMP%]{display:block}}.carousel__pagination[_ngcontent-%COMP%]{position:absolute;bottom:.75em;left:0;right:0;display:flex;justify-content:center;gap:.5rem}.carousel__bullet[_ngcontent-%COMP%]{width:6px;height:6px;padding:0;border:0;border-radius:50%;background:#fff;opacity:1;box-shadow:0 0 0 1px var(--%NS%border-color, #ccc)}.carousel__bullet--active[_ngcontent-%COMP%]{background:var(--%NS%color-primary, #000);box-shadow:none}@media(prefers-reduced-motion:reduce){.carousel__viewport[_ngcontent-%COMP%]{scroll-behavior:auto}} 14/*# sourceMappingURL=carousel.component.css.map */`]})}}return t})();var iO=["videoPlayer"],YC=(()=>{class t extends _e{constructor(){super(...arguments),this.videoPlayer=We.required("videoPlayer"),this.videoId=v(),this.videoProvider=v("vimeo"),this.aspectRation=v()}ngAfterViewInit(){new Plyr(this.videoPlayer().nativeElement,{controls:["play","mute","volume","fullscreen","play-large"],hideControls:!0,autopause:!0,loop:{active:!0},ratio:this.aspectRation()??"4:3"})}static{this.\u0275fac=(()=>{let e;return function(o){return(e||(e=Ne(t)))(o||t)}})()}static{this.\u0275cmp=H({type:t,selectors:[["app-video-player"]],viewQuery:function(n,o){n&1&&Ot(o.videoPlayer,iO,5),n&2&&xt()},inputs:{videoId:[1,"videoId"],videoProvider:[1,"videoProvider"],aspectRation:[1,"aspectRation"]},features:[re],decls:2,vars:2,consts:[["videoPlayer",""],[1,"plyr-player"]],template:function(n,o){n&1&&yo(0,"div",1,0),n&2&&ue("data-plyr-provider",o.videoProvider())("data-plyr-embed-id",o.videoId())},styles:[`[_nghost-%COMP%]{--%NS%plyr-color-main: var(--%NS%color-primary, green)} 15/*# sourceMappingURL=video-player.component.css.map */`],changeDetection:1})}}return t})();var rt=(()=>{class t{constructor(){this.languageService=f(Nt)}transform(e,n){return e?this.languageService.getTranslatedValue(e):""}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275pipe=yn({name:"translate",type:t,pure:!1})}}return t})();function rO(t,i){if(t&1&&(h(0,"app-ai-media-pill",4),T(1,"img",6),y(2,"translate"),_()),t&2){let e=u(2),n=e.$implicit,o=e.$index,r=u(2);b("item",n),p(),b("src",r.imageUrls()[o],ut)("alt",r.imageAltTexts()[o]?O(2,3,r.imageAltTexts()[o]):"")}}function aO(t,i){if(t&1&&(T(0,"img",5),y(1,"translate")),t&2){let e=u(2).$index,n=u(2);b("src",n.imageUrls()[e],ut)("alt",n.imageAltTexts()[e]?O(1,2,n.imageAltTexts()[e]):"")}}function sO(t,i){if(t&1&&w(0,rO,3,5,"app-ai-media-pill",4)(1,aO,2,4,"
vendor: 5,576 bytes, lines 15-17
15img",5),t&2){let e=u(3);x(e.showAiMediaPill()?0:1)}}function lO(t,i){if(t&1&&T(0,"app-video-player",3),t&2){let e=u().$implicit;b("videoId",e.vimeoId)}}function cO(t,i){if(t&1&&w(0,sO,2,1)(1,lO,1,1,"app-video-player",3),t&2){let e,n=i.$implicit,o=u(2);x((e=n.mediaType)===o.MediaType.Image?0:e===o.MediaType.Video?1:-1)}}function dO(t,i){if(t&1&&(h(0,"app-carousel",0),we(1,cO,2,1,null,null,Xe),_()),t&2){let e=u();b("pagination",e.pagination()),p(),xe(e.images())}}function pO(t,i){if(t&1&&(h(0,"app-ai-media-pill",1),T(1,"img",2),y(2,"translate"),_()),t&2){let e=u();b("item",e.images()[0]),p(),b("src",e.imageUrls()[0],ut)("alt",e.imageAltTexts()[0]?O(2,3,e.imageAltTexts()[0]):"")}}function uO(t,i){if(t&1&&(T(0,"img",2),y(1,"translate")),t&2){let e=u();b("src",e.imageUrls()[0],ut)("alt",e.imageAltTexts()[0]?O(1,2,e.imageAltTexts()[0]):"")}}var yd=(()=>{class t extends _e{constructor(){super(...arguments),this.images=v.required(),this.imageSize=v.required(),this.pagination=v(!0),this.showAiMediaPill=v(!0),this.isSlideshow=A(()=>this.images().length>1),this.imageUrls=A(()=>this.images().map(e=>$o([e],this.imageSize(),An.Double))),this.imageAltTexts=A(()=>this.images().map(e=>_d([e],this.imageSize(),An.Double))),this.MediaType=Oa}static{this.\u0275fac=(()=>{let e;return function(o){return(e||(e=Ne(t)))(o||t)}})()}static{this.\u0275cmp=H({type:t,selectors:[["app-media-slider"]],inputs:{images:[1,"images"],imageSize:[1,"imageSize"],pagination:[1,"pagination"],showAiMediaPill:[1,"showAiMediaPill"]},features:[re],decls:3,vars:1,consts:[["data-qa","media-slider-swiper",3,"pagination"],[3,"item"],["data-qa","media-slider-single-image",1,"slider-image",3,"src","alt"],["videoProvider","vimeo","data-qa","media-slider-video",1,"media-slider__slide",3,"videoId"],[1,"media-slider__slide",3,"item"],["data-qa","media-slider-image",1,"media-slider__slide","slider-image",3,"src","alt"],["data-qa","media-slider-image",1,"slider-image",3,"src","alt"]],template:function(n,o){n&1&&w(0,dO,3,1,"app-carousel",0)(1,pO,3,5,"app-ai-media-pill",1)(2,uO,2,4,"img",2),n&2&&x(o.isSlideshow()?0:o.showAiMediaPill()?1:2)},dependencies:[GC,YC,Cd,rt],styles:[`app-media-slider{display:block;width:100%;container-type:inline-size;container-name:media-slider}app-media-slider app-carousel{--%NS%carousel-gap: 0;--%NS%carousel-padding-x: 0}.media-slider__slide{width:100cqi;flex:0 0 100cqi}.slider-image{width:100%;height:100%;object-fit:cover} 16/*# sourceMappingURL=media-slider.component.css.map */ 17`],encapsulation:2,changeDetection:1})}}return t})();var lo=(function(t){return t[t.CardMobile=1]="CardMobile",t[t.CardDesktop=2]="CardDesktop",t[t.Addon=3]="Addon",t[t.CardSlideshow=4]="CardSlideshow",t[t.Mini=5]="Mini",t[t.AddonSlideshow=6]="AddonSlideshow",t[t.AddonHeader=7]="AddonHeader",t[t.Square=8]="Square",t})(lo||{});var bd=(()=>{class t{constructor(){this.activeModals=ne(new Set),this.modalStack=ne([]),this.hasModalHistoryEntry=!1,this.ignoreNextPopstate=!1,this.closingFromPopstate=!1,this.hasSidePanels=A(()=>{let e=this.activeModals();for(let n of e)if(n.isSidePanel())return!0;return!1}),this.onPopState=()=>{if(this.ignoreNextPopstate){this.ignoreNextPopstate=!1;return}if(this.modalStack().length===0){this.hasModalHistoryEntry=!1;return}this.closingFromPopstate=!0,this.closeTopModal(),this.closingFromPopstate=!1,this.modalStack().length>0?(this.hasModalHistoryEntry=!1,this.ensureModalHistoryEntry()):this.hasModalHistoryEntry=!1},typeof window<"u"&&window.addEventListener("popstate",this.onPopState)}ngOnDestroy(){typeof window<"u"&&window.removeEventListener("popstate",this.onPopState)}register(e){this.activeModals.update(n=>{let o=new Set(n);return o.add(e),o}),this.modalStack.update(n=>[...n,e]),this.ensureModalHistoryEntry()}unregister(e){this.activeModals.update(n=>{let o=new Set(n);return o.delete(e),o}),this.modalStack.update(n=>n.filter(o=>o!==e)),!this.closingFromPopstate&&this.modalStack().length===0&&this.clearModalHistoryEntry()}closeAllSidePanels(){this.activeModals().forEach(e=>{e.isSidePanel()&&e.close()})}closeTopModal(){let e=this.modalStack().at(-1);return e?(e.close(),!0):!1}ensureModalHistoryEntry(){this.hasModalHistoryEntry||typeof window>"u"||(window.history.pushState({__modal:!0},""),this.hasModalHistoryEntry=!0)}clearModalHistoryEntry(){!this.hasModalHistoryEntry||typeof window>"u"||(this.hasModalHistoryEntry=!1,window.history.state?.__modal&&(this.ignoreNextPopstate=!0,window.history.back()))}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=G({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Sn=(()=>{class t{constructor(e){this.elementRef=e,this.appAnimateStart=v.required()}ngAfterViewInit(){setTimeout(()=>{this.elementRef.nativeElement.classList.add(this.appAnimateStart())},10)}static{this.\u0275fac=function(n){return new(n||t)(jr(Ut))}}static{this.\u0275dir=tn({type:t,selectors:[["","appAnimateStart",""]],inputs:{appAnimateStart:[1,"appAnimateStart"]}})}}return t})();var mO=["modalTemplate"],hO=["modalContainer"],fO=[[["","modalContent",""]],[["","modalFooter",""]],[["","modalHeader",""]]],gO=["[modalContent]","[modalFooter]","[modalHeader]"];function _O(t,i){if(t&1&&Et(0,8),t&2){u(2);let e=Qe(7);b("ngTemplateOutlet",e)}}function CO(t,i){if(t&1&&Et(0,8),t&2){u(2);let e=Qe(9);b("ngTemplateOutlet",e)}}function yO(t,i){if(t&1){let e=B();h(0,"div",5)(1,"div",6),k("click",function(){N(e);let o=u();return I(o.close())}),_(),h(2,"div",7),Et(3,8),w(4,_O,1,1,"ng-container",8),h(5,"div",9),w(6,CO,1,1,"ng-container",8),h(7,"div",10),at(8),_(),h(9,"div",11),at(10,
171),_()()()()}if(t&2){let e=u(),n=Qe(5);ue("data-name-debug",e.parentNameDebug()),p(2),ye("modalScaleAnimationToHide",e.modalState==="closing")("images",e.images().length>0)("max-width",e.forceMaxWidth()),ue("aria-labelledby",e.title()?"modal-title":e.subtitle()?"modal-subtitle":void 0),p(),b("ngTemplateOutlet",n),p(),x(e.images().length?4:-1),p(2),x(e.title()||e.subtitle()?6:-1)}}function bO(t,i){if(t&1){let e=B();h(0,"app-button",12),y(1,"translocoStripHtml"),k("btnClick",function(){N(e);let o=u();return I(o.close())}),_()}if(t&2){let e=u();b("appearance",e.ButtonStyle.SECONDARY)("size",e.ButtonSize.XSMALL)("shape",e.ButtonShape.CIRCLE),he("aria-label",O(1,5,"general.close"))("aria-describedby",e.title()?"modal-title":e.subtitle()?"modal-subtitle":void 0)}}function SO(t,i){if(t&1&&(h(0,"div",13),T(1,"app-media-slider",14)(2,"app-media-slider",15),_()),t&2){let e=u();p(),b("images",e.images())("imageSize",e.ImageSizes.CardDesktop),p(),b("images",e.images())("imageSize",e.ImageSizes.AddonSlideshow)}}function vO(t,i){if(t&1&&(h(0,"h2",17),D(1),y(2,"translocoStripHtml"),_()),t&2){let e=u(2);p(),V(O(2,1,e.title()))}}function wO(t,i){if(t&1&&(h(0,"div",18),D(1),y(2,"translocoStripHtml"),_()),t&2){let e=u(2);p(),ee(" ",O(2,1,e.subtitle())," ")}}function xO(t,i){if(t&1&&(h(0,"div",16),w(1,vO,3,3,"h2",17),w(2,wO,3,3,"div",18),at(3,2),_()),t&2){let e=u();p(),x(e.title()?1:-1),p(),x(e.subtitle()?2:-1)}}var Sd=(()=>{class t extends _e{constructor(){super(),this.isOpen=v.required(),this.title=v(""),this.subtitle=v(),this.images=v([]),this.options=v({}),this.forceMaxWidth=v(!1),this.setInternalDOM=v(!1),this.setFocus=v(null),this.parentNameDebug=v(""),this.onClose=Re(),this.modalTemplate=We("modalTemplate"),this.modalContainer=We("modalContainer"),this.modalRef=null,this.modalState="opening",this.isSidePanel=ne(!1),this.modalService=f(jl),this.appModalService=f(bd),this.ImageSizes=lo,this.ButtonStyle=Oe,this.ButtonSize=ct,this.ButtonShape=At,et(()=>{this.isOpen()?this.open():this.close()})}open(){this.close(!0),this.appModalService.register(this),this.modalRef=this.modalService.open(this.modalTemplate(),S({animation:!1,backdrop:!1,keyboard:!1,container:this.setInternalDOM()&&this.modalContainer()?this.modalContainer()?.nativeElement:"body"},this.options())),this.modalRef.shown.subscribe(()=>{setTimeout(()=>{this.modalState="open",setTimeout(()=>{this.setFocus()?this.setFocus().focus():Array.from(document.getElementsByClassName("app-modal-close-button")).find(n=>window.getComputedStyle(n).display!=="none")?.children[0]?.focus()},300)})})}close(e=!1){if(this.modalRef){this.modalState="closing";let n=()=>{!e&&this.isOpen()&&this.onClose.emit(),this.modalRef?.close(),this.modalRef=null,this.appModalService.unregister(this),this.modalState="closed"};e?n():setTimeout(n,300)}}getItemUrl(e){return $o([e],lo.CardSlideshow,An.Double)}getItemAlt(e){return _d([e],lo.AddonSlideshow)}onKeydownHandler(e){this.close()}ngOnDestroy(){this.appModalService.unregister(this),this.modalRef?.close(!0),this.modalRef=null}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=H({type:t,selectors:[["app-modal"]],viewQuery:function(n,o){n&1&&Ot(o.modalTemplate,mO,5)(o.modalContainer,hO,5),n&2&&xt(2)},hostBindings:function(n,o){n&1&&k("keydown.escape",function(a){return o.onKeydownHandler(a)},_o)},inputs:{isOpen:[1,"isOpen"],title:[1,"title"],subtitle:[1,"subtitle"],images:[1,"images"],options:[1,"options"],forceMaxWidth:[1,"forceMaxWidth"],setInternalDOM:[1,"setInternalDOM"],setFocus:[1,"setFocus"],parentNameDebug:[1,"parentNameDebug"]},outputs:{onClose:"onClose"},features:[re],ngContentSelectors:gO,decls:10,vars:0,consts:[["modalContainer",""],["modalTemplate",""],["closeButtonTemplate",""],["imagesTemplate",""],["headerTemplate",""],[1,"app-modal-wrapper"],[1,"app-modal-overlay",3,"click"],["appAnimateStart","modalScaleAnimationShow","role","dialog","aria-modal","true","data-qa","modal-container",1,"app-modal-container","modalScaleAnimation","modalScaleAnimationHide"],[3,"ngTemplateOutlet"],[1,"app-modal-content-section"],["data-qa","modal-content",1,"app-modal-content"],["data-qa","modal-footer",1,"app-modal-footer"],["iconLeft","close","data-qa","modal-close-button-vertical",1,"app-modal-close-button",3,"btnClick","appearance","size","shape","aria-label","aria-describedby"],[1,"app-modal-images-section"],["contentClass","app-modal-image",1,"app-modal-images","horizontal-mode",3,"images","imageSize"],["contentClass","app-modal-image",1,"app-modal-images","vertical-mode",3,"images","imageSize"],["data-qa","modal-header",1,"app-modal-header"],["id","modal-title","data-qa","modal-title",1,"title-medium"],["id","modal-subtitle","data-qa","modal-subtitle",1,"body-large"]],template:function(n,o){n&1&&(jt(fO),T(0,"div",null,0),bt(2,yO,11,11,"ng-template",null,1,mt)(4,bO,2,7,"ng-template",null,2,mt)(6,SO,3,4,"ng-template",null,3,mt)(8,xO,4,2,"ng-template",null,4,mt))}
17,dependencies:[st,Jn,yd,De,Sn,Y],styles:[`.display-large[_ngcontent-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:3.25em;line-height:1.125em;font-weight:700}.display-medium[_ngcontent-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:2.875em;line-height:1.1em;font-weight:700}.display-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:2.5em;line-height:1.125em;font-weight:700}.headline-large[_ngcontent-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:2.25em;line-height:1.14em;font-weight:700}.headline-medium[_ngcontent-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:1.875em;line-height:1.1em;font-weight:700}.headline-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:1.5em;line-height:1.13125em;font-weight:700}.title-large[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:1.5em;line-height:1.1875em;font-weight:600}.title-medium[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:1.25em;line-height:1.1875em;font-weight:600}.title-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:1em;line-height:1em;font-weight:600}.label-large[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:1em;line-height:1.1875em;font-weight:600}.label-medium[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.875em;line-height:1.3em;font-weight:600}.label-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.75em;line-height:.875em;font-weight:600}.label-extra-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.625em;line-height:1.2em;font-weight:600}.body-large[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:1em;line-height:1.1875em;font-weight:400}
17.body-medium[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.875em;line-height:1.1em;font-weight:400}.body-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.75em;line-height:1.125em;font-weight:400}.body-extra-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.625em;line-height:.75em;font-weight:400}.vertical-mode[_ngcontent-%COMP%]{display:none}@media(max-width:575.98px){.vertical-mode[_ngcontent-%COMP%]{display:block}}.horizontal-mode[_ngcontent-%COMP%]{display:block}@media(max-width:575.98px){.horizontal-mode[_ngcontent-%COMP%]{display:none}} .modal-dialog>.modal-content{border:none}.app-modal-wrapper[_ngcontent-%COMP%]{position:fixed;inset:0;z-index:var(--%NS%z-index-modal);width:100dvw;height:100dvh}@media(min-width:576px){.app-modal-wrapper[_ngcontent-%COMP%]{padding:1em 2em}}@media(min-width:768px){.app-modal-wrapper[_ngcontent-%COMP%]{padding:4em}}.app-modal-wrapper[_ngcontent-%COMP%] .app-modal-overlay[_ngcontent-%COMP%]{position:fixed;width:100dvw;height:100dvh;top:0;left:0;background-color:#000000bf}.app-modal-wrapper[_ngcontent-%COMP%] .app-modal-container[_ngcontent-%COMP%]{position:relative;width:100%}.app-modal-wrapper[_ngcontent-%COMP%] .app-modal-container[_ngcontent-%COMP%] .app-modal-close-button[_ngcontent-%COMP%]{position:absolute;top:1em;right:1em;z-index:var(--%NS%z-index-regular)}@media(max-width:575.98px){.app-modal-wrapper[_ngcontent-%COMP%] .app-modal-container[_ngcontent-%COMP%] .app-modal-close-button[_ngcontent-%COMP%]{top:calc(1em + var(--%NS%safe-area-inset-top));right:calc(1em + var(--%NS%safe-area-inset-right))}}.app-modal-wrapper[_ngcontent-%COMP%] .app-modal-container[_ngcontent-%COMP%] .app-modal-close-button[_ngcontent-%COMP%] .btn{border:none}.app-modal-wrapper[_ngcontent-%COMP%] .app-modal-container[_ngcontent-%COMP%] .app-modal-close-button[_ngcontent-%COMP%] .btn:not(:focus-visible){box-shadow:var(--%NS%shadow-light)}.app-modal-wrapper[_ngcontent-%COMP%] .app-modal-container[_ngcontent-%COMP%] .app-modal-close-button[_ngcontent-%COMP%] .btn.btn-secondary:hover, .app-modal-wrapper[_ngcontent-%COMP%] .app-modal-container[_ngcontent-%COMP%] .app-modal-close-button[_ngcontent-%COMP%] .btn.btn-secondary:active, .app-modal-wrapper[_ngcontent-%COMP%] .app-modal-container[_ngcontent-%COMP%] .app-modal-close-button[_ngcontent-%COMP%] .btn.btn-secondary:focus, .app-modal-wrapper[_ngcontent-%COMP%] .app-modal-container[_ngcontent-%COMP%] .app-modal-close-button[_ngcontent-%COMP%] .btn.btn-secondary:focus-visible{color:var(--%NS%button-secondary-text-color);background-color:var(--%NS%button-secondary-background);border:none}@media(max-width:575.98px){.app-modal-wrapper[_ngcontent-%COMP%] .app-modal-container[_ngcontent-%COMP%] .app-modal-images-section[_ngcontent-%COMP%] app-carousel{--%NS%carousel-nav-offset: 0}}.app-modal-wrapper[_ngcontent-%COMP%] .app-modal-container[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;padding:0 2em 0 0;color:var(--%NS%modal-color)}@media(max-width:575.98px){.app-modal-wrapper[_ngcontent-%COMP%] .app-modal-container[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{padding-right:0}}.app-modal-wrapper[_ngcontent-%COMP%] .app-modal-container[_ngcontent-%COMP%] .app-modal-header[_ngcontent-%COMP%], .app-modal-wrapper[_ngcontent-%COMP%] .app-modal-container[_ngcontent-%COMP%] .app-modal-content[_ngcontent-%COMP%], .app-modal-wrapper[_ngcontent-%COMP%] .app-modal-container[_ngcontent-%COMP%] .app-modal-footer[_ngcontent-%COMP%], .app-modal-wrapper[_ngcontent-%COMP%] .app-modal-container[_ngcontent-%COMP%] .app-modal-sub-footer[_ngcontent-%COMP%]{padding:1em .75em}@media(min-width:576px){.app-modal-wrapper[_ngcontent-%COMP%] .app-modal-container[_ngcontent-%COMP%] .app-modal-header[_ngcontent-%COMP%], .app-modal-wrapper[_ngcontent-%COMP%] .app-modal-container[_ngcontent-%COMP%] .app-modal-content[_ngcontent-%COMP%], .app-modal-wrapper[_ngcontent-%COMP%] .app-modal-container[_ngcontent-%COMP%] .app-modal-footer[_ngcontent-%COMP%], .app-modal-wrapper[_ngcontent-%COMP%] .app-modal-container[_ngcontent-%COMP%] .app-modal-sub-footer[_ngcontent-%COMP%]{padding:1em}}@media(min-width:576px){.app-modal-wrapper[_ngcontent-%COMP%] .app-modal-container[_ngcontent-%COMP%] .app-modal-header[_ngcontent-%COMP%]{padding-top:1.5em}}.app-modal-wrapper[_ngcontent-%COMP%] .app-modal-container[_ngcontent-%COMP%] .app-modal-header[_ngcontent-%COMP%] + .app-modal-content[_ngcontent-%COMP%]{padding-top:0}@media(max-width:575.98px){.app-modal-wrapper[_ngcontent-%COMP%] .app-modal-container[_ngcontent-%COMP%] .app-modal-sub-footer[_ngcontent-%COMP%]{padding-top:.5em}}.app-modal-wrapper[_ngcontent-%COMP%] .app-modal-container[_ngcontent-%COMP%] .app-modal-footer[_ngcontent-%COMP%]:empty, .app-modal-wrapper[_ngcontent-%COMP%] .app-modal-container[_ngcontent-%COMP%] .app-modal-sub-footer[_ngcontent-%COMP%]:empty{display:none}.app-modal-wrapper[_ngcontent-%COMP%] .app-modal-container[_ngcontent-%COMP%] .app-modal-footer[_ngcontent-%COMP%]:not(:empty){width:100%;position:relative;box-shadow:0 -4px 15px #00000026}.app-modal-wrapper[_ngcontent-%COMP%] .app-modal-container[_ngcontent-%COMP%] .app-modal-sub-footer[_ngcontent-%COMP%]:not(:empty){position:relative;width:100%;border-top:1px solid var(--%NS%border-color)}@media(max-width:575.98px){.app-modal-wrapper[_ngcontent-%COMP%] .app-modal-container[_ngcontent-%COMP%] .app-modal-header[_ngcontent-%COMP%], .app-modal-wrapper[_ngcontent-%COMP%] .app-modal-container[_ngcontent-%COMP%] .app-modal-content[_ngcontent-%COMP%], .app-modal-wrapper[_ngcontent-%COMP%] .app-modal-container[_ngcontent-%COMP%] .app-modal-footer[_ngcontent-%COMP%], .app-modal-wrapper[_ngcontent-%COMP%] .app-modal-container[_ngcontent-%COMP%] .app-modal-sub-footer[_ngcontent-%COMP%]{padding-left:calc(.75em + var(--%NS%safe-area-inset-left));padding-right:calc(.75em + var(--%NS%safe-area-inset-right))}.app-modal-wrapper[_ngcontent-%COMP%] .app-modal-container[_ngcontent-%COMP%]:has(.app-modal-header):not(:has(.app-modal-images-section)) .app-modal-header[_ngcontent-%COMP%]{padding-top:calc(1em + var(--%NS%safe-area-inset-top))}.app-modal-wrapper[_ngcontent-%COMP%] .app-modal-container[_ngcontent-%COMP%]:not(:has(.app-modal-header),:has(.app-modal-images-section)) .app-modal-content[_ngcontent-%COMP%]{padding-top:calc(1em + var(--%NS%safe-area-inset-top))}.app-modal-wrapper[_ngcontent-%COMP%] .app-modal-container[_ngcontent-%COMP%]:has(.app-modal-sub-footer:not(:empty)) .a
17pp-modal-sub-footer[_ngcontent-%COMP%]{padding-bottom:calc(1em + var(--%NS%safe-area-inset-bottom))}.app-modal-wrapper[_ngcontent-%COMP%] .app-modal-container[_ngcontent-%COMP%]:has(.app-modal-footer:not(:empty)):not(:has(.app-modal-sub-footer:not(:empty))) .app-modal-footer[_ngcontent-%COMP%]{padding-bottom:calc(1em + var(--%NS%safe-area-inset-bottom))}.app-modal-wrapper[_ngcontent-%COMP%] .app-modal-container[_ngcontent-%COMP%]:not(:has(.app-modal-footer:not(:empty)),:has(.app-modal-sub-footer:not(:empty))) .app-modal-content[_ngcontent-%COMP%]{padding-bottom:calc(1em + var(--%NS%safe-area-inset-bottom))}} 18/*# sourceMappingURL=modal-base.component.css.map */`,`.display-large[_ngcontent-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:3.25em;line-height:1.125em;font-weight:700}.display-medium[_ngcontent-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:2.875em;line-height:1.1em;font-weight:700}.display-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:2.5em;line-height:1.125em;font-weight:700}.headline-large[_ngcontent-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:2.25em;line-height:1.14em;font-weight:700}.headline-medium[_ngcontent-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:1.875em;line-height:1.1em;font-weight:700}.headline-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:1.5em;line-height:1.13125em;font-weight:700}.title-large[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:1.5em;line-height:1.1875em;font-weight:600}.title-medium[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:1.25em;line-height:1.1875em;font-weight:600}.title-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:1em;line-height:1em;font-weight:600}.label-large[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:1em;line-height:1.1875em;font-weight:600}.label-medium[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.875em;line-height:1.3em;font-weight:600}.label-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.75em;line-height:.875em;font-weight:600}.label-extra-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.625em;line-height:1.2em;font-weight:600}.body-large[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:1em;line-height:1.1875em;font-weight:400}
18.body-medium[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.875em;line-height:1.1em;font-weight:400}.body-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.75em;line-height:1.125em;font-weight:400}.body-extra-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.625em;line-height:.75em;font-weight:400}.foldAnimation[_ngcontent-%COMP%]{display:grid;overflow:hidden;transition:grid-template-rows .3s ease-in-out,opacity .3s ease-in-out}.foldAnimation[_ngcontent-%COMP%] > .foldAnimationContent[_ngcontent-%COMP%]{overflow:hidden}.foldAnimationHide[_ngcontent-%COMP%]{grid-template-rows:0fr;opacity:0}.foldAnimationShow[_ngcontent-%COMP%]{grid-template-rows:1fr;opacity:1}.foldAnimationToHide[_ngcontent-%COMP%]{grid-template-rows:0fr;opacity:0}.fadeAnimation[_ngcontent-%COMP%]{transition:opacity .5s ease-in-out}.fadeAnimationHide[_ngcontent-%COMP%]{opacity:0}.fadeAnimationShow[_ngcontent-%COMP%]{opacity:1}.fadeAnimationToHide[_ngcontent-%COMP%]{opacity:0}.slideUpAnimation[_ngcontent-%COMP%]{--%NS%slideup-translate-x: none;position:fixed;bottom:0;transition:transform .4s ease-out,opacity .4s ease-out;will-change:transform}.slideUpAnimationHide[_ngcontent-%COMP%]{transform:translate(var(--%NS%slideup-translate-x)) translateY(100vh);opacity:0}.slideUpAnimationShow[_ngcontent-%COMP%]{transform:translate(var(--%NS%slideup-translate-x)) translateY(0);opacity:1}.slideUpAnimationToHide[_ngcontent-%COMP%]{transform:translate(var(--%NS%slideup-translate-x)) translateY(100vh);opacity:0}.slideInAnimation[_ngcontent-%COMP%]{transition:transform .4s ease-out,opacity .4s ease-out;will-change:transform}.slideInAnimationHide[_ngcontent-%COMP%]{transform:translate(100%);opacity:0}.slideInAnimationShow[_ngcontent-%COMP%]{transform:translate(0);opacity:1}.slideInAnimationToHide[_ngcontent-%COMP%]{transform:translate(100%);opacity:0}@media(max-width:575.98px){.slideInAnimationHide[_ngcontent-%COMP%]{transform:translateY(100%);opacity:0}.slideInAnimationShow[_ngcontent-%COMP%]{transform:translateY(0);opacity:1}.slideInAnimationToHide[_ngcontent-%COMP%]{transform:translateY(100%);opacity:0}}.modalScaleAnimation[_ngcontent-%COMP%]{transition:transform .3s ease-in-out,opacity .3s ease-in-out;will-change:transform}.modalScaleAnimationHide[_ngcontent-%COMP%]{transform:scale(.9);opacity:0}.modalScaleAnimationShow[_ngcontent-%COMP%]{transform:scale(1);opacity:1}.modalScaleAnimationToHide[_ngcontent-%COMP%]{transform:scale(.9);opacity:0} .disable-animations .foldAnimation, .disable-animations .fadeAnimation, .disable-animations .slideUpAnimation, .disable-animations .slideInAnimation, .disable-animations .modalScaleAnimation{transition-duration:0ms!important}.app-modal-wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:flex-end}@media(min-width:576px){.app-modal-wrapper[_ngcontent-%COMP%]{justify-content:center}}.app-modal-container[_ngcontent-%COMP%]{display:flex;position:relative;flex-direction:column;max-width:100%;width:100dvw;max-height:calc(100% - 36px);aspect-ratio:auto;border-radius:var(--%NS%radius-large);overflow:hidden;border-radius:var(--%NS%radius-large) var(--%NS%radius-large) 0 0}.app-modal-container.images[_ngcontent-%COMP%]{width:auto;height:auto;max-width:100%;aspect-ratio:auto}@media(min-width:576px){.app-modal-container[_ngcontent-%COMP%]{max-width:min(40em,100% - 72px);max-height:min(40em,100% - 72px);flex-direction:row;border-radius:var(--%NS%radius-large)}.app-modal-container.images[_ngcontent-%COMP%]{width:100%;height:100%;max-width:min(60em,100% - 72px);aspect-ratio:2000/1224}}.app-modal-container[_ngcontent-%COMP%] .app-modal-images-section[_ngcontent-%COMP%]{flex:3;flex-shrink:0;overflow:hidden}@media(max-width:575.98px){.app-modal-container[_ngcontent-%COMP%] .app-modal-images-section[_ngcontent-%COMP%]{flex:0 0 auto;aspect-ratio:1400/600;width:100%}}.app-modal-container[_ngcontent-%COMP%] .app-modal-header[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-start;gap:.5em}.app-modal-container[_ngcontent-%COMP%] .app-modal-image[_ngcontent-%COMP%], .app-modal-container[_ngcontent-%COMP%] .app-modal-images[_ngcontent-%COMP%]{height:100%;width:100%;object-fit:cover}.app-modal-container[_ngcontent-%COMP%] .app-modal-image[_ngcontent-%COMP%] app-carousel, .app-modal-container[_ngcontent-%COMP%] .app-modal-image[_ngcontent-%COMP%] app-media-slider, .app-modal-container[_ngcontent-%COMP%] .app-modal-images[_ngcontent-%COMP%] app-carousel, .app-modal-container[_ngcontent-%COMP%] .app-modal-images[_ngcontent-%COMP%] app-media-slider{height:100%;width:100%}.app-modal-container[_ngcontent-%COMP%] .app-modal-content-section[_ngcontent-%COMP%]{flex:4;flex-shrink:0;display:flex;flex-direction:column;background-color:var(--%NS%modal-background-color);color:var(--%NS%modal-color)}@media(max-width:575.98px){.app-modal-container[_ngcontent-%COMP%] .app-modal-content-section[_ngcontent-%COMP%]{min-height:0}}.app-modal-container[_ngcontent-%COMP%] .app-modal-content-section[_ngcontent-%COMP%] .app-modal-content[_ngcontent-%COMP%]{flex:1;overflow-y:auto;width:100%}.app-modal-container.max-width[_ngcontent-%COMP%]{width:100%} 19/*# sourceMappingURL=modal.component.css.map */`],changeDetection:1})}}return t})();var PO=["verticalImagesList"],MO=[[["","modalContent",""]],[["","modalFooter",""]],[["","modalSubFooter",""]],[["","modalHeader",""]]],OO=["[modalContent]","[modalFooter]","[modalSubFooter]","[modalHeader]"];function DO(t,i){if(t&1&&Et(0,9),t&2){u(2);let e=Qe(7);b("ngTemplateOutlet",e)}}function NO(t,i){if(t&1&&Et(0,9),t&2){u(2);let e=Qe(9);b("ngTemplateOutlet",e)}}function IO(t,i){if(t&1){let e=B();h(0,"div",6)(1,"div",7),k("click",function(){N(e);let o=u();return I(o.close())}),_(),h(2,"div",8),Et(3,9),h(4,"div",10),w(5,DO,1,1,"ng-container",9),w(6,NO,1,1,"ng-container",9),h(7,"div",11),at(8),_()(),h(9,"div",12),at(10,1),_(),h(11,"div",13),at(12,2),_()()()}if(t&2){let e=u(),n=Qe(5);ue("data-name-debug",e.parentNameDebug()),p(2),ye("slideInAnimationToHide",e.modalState==="closing")("images",e.images().length>
190),ue("aria-labelledby",e.title()?"modal-title":e.subtitle()?"modal-subtitle":void 0),p(),b("ngTemplateOutlet",n),p(2),x(e.images().length?5:-1),p(),x(e.title()||e.subtitle()?6:-1)}}function kO(t,i){if(t&1){let e=B();h(0,"app-button",14),y(1,"translocoStripHtml"),k("btnClick",function(){N(e);let o=u();return I(o.close())}),_()}if(t&2){let e=u();b("appearance",e.ButtonStyle.SECONDARY)("size",e.ButtonSize.XSMALL)("shape",e.ButtonShape.CIRCLE),he("aria-label",O(1,5,"general.close"))("aria-describedby",e.title()?"modal-title":e.subtitle()?"modal-subtitle":void 0)}}function TO(t,i){if(t&1&&(qe(0),y(1,"translate"),h(2,"div",18),k("click",function(n){return n.stopPropagation()}),h(3,"app-ai-media-pill",19),T(4,"img",20),y(5,"translate"),_()()),t&2){let e=i.$implicit,n=u(2);O(1,3,n.getItemAlt(e)),p(3),b("item",e),p(),b("src",n.getItemUrl(e),ut)("alt",O(5,5,n.getItemAlt(e)))}}function RO(t,i){if(t&1){let e=B();h(0,"div",15)(1,"div",16,5),k("click",function(){N(e);let o=u();return I(o.close())}),we(3,TO,6,7,"div",null,Xe),_(),T(5,"app-media-slider",17),_()}if(t&2){let e=u();p(3),xe(e.images()),p(2),b("images",e.images())("imageSize",e.ImageSizes.CardSlideshow)}}function EO(t,i){if(t&1&&(h(0,"h2",22),D(1),y(2,"translocoStripHtml"),_()),t&2){let e=u(2);p(),V(O(2,1,e.title()))}}function AO(t,i){if(t&1&&(h(0,"div",23),D(1),y(2,"translocoStripHtml"),_()),t&2){let e=u(2);p(),ee(" ",O(2,1,e.subtitle())," ")}}function LO(t,i){if(t&1&&(h(0,"div",21),w(1,EO,3,3,"h2",22),w(2,AO,3,3,"div",23),at(3,3),_()),t&2){let e=u();p(),x(e.title()?1:-1),p(),x(e.subtitle()?2:-1)}}var vd=(()=>{class t extends Sd{constructor(){super(),this.verticalImagesList=We("verticalImagesList"),this.isSidePanel.set(!0),et(()=>{this.isOpen()&&this.verticalImagesList()&&setTimeout(()=>{this.verticalImagesList().nativeElement.scrollTo({top:120,behavior:"smooth"}),setTimeout(()=>{this.verticalImagesList().nativeElement.scrollTo({top:0,behavior:"smooth"})},500)},800)})}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=H({type:t,selectors:[["app-modal-sidepanel"]],viewQuery:function(n,o){n&1&&Ot(o.verticalImagesList,PO,5),n&2&&xt()},features:[re],ngContentSelectors:OO,decls:10,vars:0,consts:[["modalContainer",""],["modalTemplate",""],["closeButtonTemplate",""],["imagesTemplate",""],["headerTemplate",""],["verticalImagesList",""],[1,"app-modal-wrapper"],[1,"app-modal-overlay",3,"click"],["appAnimateStart","slideInAnimationShow","role","dialog","aria-modal","true","data-qa","modal-container",1,"app-modal-container","slideInAnimation","slideInAnimationHide"],[3,"ngTemplateOutlet"],[1,"sidepanel-content-wrapper"],["data-qa","modal-content",1,"app-modal-content"],["data-qa","modal-footer",1,"app-modal-footer"],["data-qa","modal-sub-footer",1,"app-modal-sub-footer"],["iconLeft","close","data-qa","modal-close-button-vertical",1,"app-modal-close-button",3,"btnClick","appearance","size","shape","aria-label","aria-describedby"],[1,"app-modal-images-section"],[1,"app-modal-vertical-images-list","horizontal-mode",3,"click"],["contentClass","app-modal-image",1,"app-modal-images","vertical-mode",3,"images","imageSize"],[3,"click"],[3,"item"],["loading","lazy",1,"app-modal-image",3,"src","alt"],["data-qa","modal-header",1,"app-modal-header"],["id","modal-title","data-qa","modal-title",1,"title-medium"],["id","modal-subtitle","data-qa","modal-subtitle",1,"body-large"]],template:function(n,o){n&1&&(jt(MO),T(0,"div",null,0),bt(2,IO,13,9,"ng-template",null,1,mt)(4,kO,2,7,"ng-template",null,2,mt)(6,RO,6,2,"ng-template",null,3,mt)(8,LO,4,2,"ng-template",null,4,mt))},dependencies:[st,Jn,yd,Cd,De,Sn,Y,rt],styles:[`.display-large[_ngcontent-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:3.25em;line-height:1.125em;font-weight:700}
19.display-medium[_ngcontent-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:2.875em;line-height:1.1em;font-weight:700}.display-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:2.5em;line-height:1.125em;font-weight:700}.headline-large[_ngcontent-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:2.25em;line-height:1.14em;font-weight:700}.headline-medium[_ngcontent-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:1.875em;line-height:1.1em;font-weight:700}.headline-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:1.5em;line-height:1.13125em;font-weight:700}.title-large[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:1.5em;line-height:1.1875em;font-weight:600}.title-medium[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:1.25em;line-height:1.1875em;font-weight:600}.title-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:1em;line-height:1em;font-weight:600}.label-large[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:1em;line-height:1.1875em;font-weight:600}.label-medium[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.875em;line-height:1.3em;font-weight:600}.label-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.75em;line-height:.875em;font-weight:600}.label-extra-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.625em;line-height:1.2em;font-weight:600}.body-large[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:1em;line-height:1.1875em;font-weight:400}
19.body-medium[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.875em;line-height:1.1em;font-weight:400}.body-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.75em;line-height:1.125em;font-weight:400}.body-extra-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.625em;line-height:.75em;font-weight:400}.vertical-mode[_ngcontent-%COMP%]{display:none}@media(max-width:575.98px){.vertical-mode[_ngcontent-%COMP%]{display:block}}.horizontal-mode[_ngcontent-%COMP%]{display:block}@media(max-width:575.98px){.horizontal-mode[_ngcontent-%COMP%]{display:none}} .modal-dialog>.modal-content{border:none}.app-modal-wrapper[_ngcontent-%COMP%]{position:fixed;inset:0;z-index:var(--%NS%z-index-modal);width:100dvw;height:100dvh}@media(min-width:576px){.app-modal-wrapper[_ngcontent-%COMP%]{padding:1em 2em}}@media(min-width:768px){.app-modal-wrapper[_ngcontent-%COMP%]{padding:4em}}.app-modal-wrapper[_ngcontent-%COMP%] .app-modal-overlay[_ngcontent-%COMP%]{position:fixed;width:100dvw;height:100dvh;top:0;left:0;background-color:#000000bf}.app-modal-wrapper[_ngcontent-%COMP%] .app-modal-container[_ngcontent-%COMP%]{position:relative;width:100%}.app-modal-wrapper[_ngcontent-%COMP%] .app-modal-container[_ngcontent-%COMP%] .app-modal-close-button[_ngcontent-%COMP%]{position:absolute;top:1em;right:1em;z-index:var(--%NS%z-index-regular)}@media(max-width:575.98px){.app-modal-wrapper[_ngcontent-%COMP%] .app-modal-container[_ngcontent-%COMP%] .app-modal-close-button[_ngcontent-%COMP%]{top:calc(1em + var(--%NS%safe-area-inset-top));right:calc(1em + var(--%NS%safe-area-inset-right))}}.app-modal-wrapper[_ngcontent-%COMP%] .app-modal-container[_ngcontent-%COMP%] .app-modal-close-button[_ngcontent-%COMP%] .btn{border:none}.app-modal-wrapper[_ngcontent-%COMP%] .app-modal-container[_ngcontent-%COMP%] .app-modal-close-button[_ngcontent-%COMP%] .btn:not(:focus-visible){box-shadow:var(--%NS%shadow-light)}.app-modal-wrapper[_ngcontent-%COMP%] .app-modal-container[_ngcontent-%COMP%] .app-modal-close-button[_ngcontent-%COMP%] .btn.btn-secondary:hover, .app-modal-wrapper[_ngcontent-%COMP%] .app-modal-container[_ngcontent-%COMP%] .app-modal-close-button[_ngcontent-%COMP%] .btn.btn-secondary:active, .app-modal-wrapper[_ngcontent-%COMP%] .app-modal-container[_ngcontent-%COMP%] .app-modal-close-button[_ngcontent-%COMP%] .btn.btn-secondary:focus, .app-modal-wrapper[_ngcontent-%COMP%] .app-modal-container[_ngcontent-%COMP%] .app-modal-close-button[_ngcontent-%COMP%] .btn.btn-secondary:focus-visible{color:var(--%NS%button-secondary-text-color);background-color:var(--%NS%button-secondary-background);border:none}@media(max-width:575.98px){.app-modal-wrapper[_ngcontent-%COMP%] .app-modal-container[_ngcontent-%COMP%] .app-modal-images-section[_ngcontent-%COMP%] app-carousel{--%NS%carousel-nav-offset: 0}}.app-modal-wrapper[_ngcontent-%COMP%] .app-modal-container[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;padding:0 2em 0 0;color:var(--%NS%modal-color)}@media(max-width:575.98px){.app-modal-wrapper[_ngcontent-%COMP%] .app-modal-container[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{padding-right:0}}.app-modal-wrapper[_ngcontent-%COMP%] .app-modal-container[_ngcontent-%COMP%] .app-modal-header[_ngcontent-%COMP%], .app-modal-wrapper[_ngcontent-%COMP%] .app-modal-container[_ngcontent-%COMP%] .app-modal-content[_ngcontent-%COMP%], .app-modal-wrapper[_ngcontent-%COMP%] .app-modal-container[_ngcontent-%COMP%] .app-modal-footer[_ngcontent-%COMP%], .app-modal-wrapper[_ngcontent-%COMP%] .app-modal-container[_ngcontent-%COMP%] .app-modal-sub-footer[_ngcontent-%COMP%]{padding:1em .75em}@media(min-width:576px){.app-modal-wrapper[_ngcontent-%COMP%] .app-modal-container[_ngcontent-%COMP%] .app-modal-header[_ngcontent-%COMP%], .app-modal-wrapper[_ngcontent-%COMP%] .app-modal-container[_ngcontent-%COMP%] .app-modal-content[_ngcontent-%COMP%], .app-modal-wrapper[_ngcontent-%COMP%] .app-modal-container[_ngcontent-%COMP%] .app-modal-footer[_ngcontent-%COMP%], .app-modal-wrapper[_ngcontent-%COMP%] .app-modal-container[_ngcontent-%COMP%] .app-modal-sub-footer[_ngcontent-%COMP%]{padding:1em}}@media(min-width:576px){.app-modal-wrapper[_ngcontent-%COMP%] .app-modal-container[_ngcontent-%COMP%] .app-modal-header[_ngcontent-%COMP%]{padding-top:1.5em}}.app-modal-wrapper[_ngcontent-%COMP%] .app-modal-container[_ngcontent-%COMP%] .app-modal-header[_ngcontent-%COMP%] + .app-modal-content[_ngcontent-%COMP%]{padding-top:0}@media(max-width:575.98px){.app-modal-wrapper[_ngcontent-%COMP%] .app-modal-container[_ngcontent-%COMP%] .app-modal-sub-footer[_ngcontent-%COMP%]{padding-top:.5em}}.app-modal-wrapper[_ngcontent-%COMP%] .app-modal-container[_ngcontent-%COMP%] .app-modal-footer[_ngcontent-%COMP%]:empty, .app-modal-wrapper[_ngcontent-%COMP%] .app-modal-container[_ngcontent-%COMP%] .app-modal-sub-footer[_ngcontent-%COMP%]:empty{display:none}.app-modal-wrapper[_ngcontent-%COMP%] .app-modal-container[_ngcontent-%COMP%] .app-modal-footer[_ngcontent-%COMP%]:not(:empty){width:100%;position:relative;box-shadow:0 -4px 15px #00000026}.app-modal-wrapper[_ngcontent-%COMP%] .app-modal-container[_ngcontent-%COMP%] .app-modal-sub-footer[_ngcontent-%COMP%]:not(:empty){position:relative;width:100%;border-top:1px solid var(--%NS%border-color)}@media(max-width:575.98px){.app-modal-wrapper[_ngcontent-%COMP%] .app-modal-container[_ngcontent-%COMP%] .app-modal-header[_ngcontent-%COMP%], .app-modal-wrapper[_ngcontent-%COMP%] .app-modal-container[_ngcontent-%COMP%] .app-modal-content[_ngcontent-%COMP%], .app-modal-wrapper[_ngcontent-%COMP%] .app-modal-container[_ngcontent-%COMP%] .app-modal-footer[_ngcontent-%COMP%], .app-modal-wrapper[_ngcontent-%COMP%] .app-modal-container[_ngcontent-%COMP%] .app-modal-sub-footer[_ngcontent-%COMP%]{padding-left:calc(.75em + var(--%NS%safe-area-inset-left));padding-right:calc(.75em + var(--%NS%safe-area-inset-right))}.app-modal-wrapper[_ngcontent-%COMP%] .app-modal-container[_ngcontent-%COMP%]:has(.app-modal-header):not(:has(.app-modal-images-section)) .app-modal-header[_ngcontent-%COMP%]{padding-top:calc(1em + var(--%NS%safe-area-inset-top))}.app-modal-wrapper[_ngcontent-%COMP%] .app-modal-container[_ngcontent-%COMP%]:not(:has(.app-modal-header),:has(.app-modal-images-section)) .app-modal-content[_ngcontent-%COMP%]{padding-top:calc(1em + var(--%NS%safe-area-inset-top))}.app-modal-wrapper[_ngcontent-%COMP%] .app-modal-container[_ngcontent-%COMP%]:has(.app-modal-sub-footer:not(:empty)) .a
19pp-modal-sub-footer[_ngcontent-%COMP%]{padding-bottom:calc(1em + var(--%NS%safe-area-inset-bottom))}.app-modal-wrapper[_ngcontent-%COMP%] .app-modal-container[_ngcontent-%COMP%]:has(.app-modal-footer:not(:empty)):not(:has(.app-modal-sub-footer:not(:empty))) .app-modal-footer[_ngcontent-%COMP%]{padding-bottom:calc(1em + var(--%NS%safe-area-inset-bottom))}.app-modal-wrapper[_ngcontent-%COMP%] .app-modal-container[_ngcontent-%COMP%]:not(:has(.app-modal-footer:not(:empty)),:has(.app-modal-sub-footer:not(:empty))) .app-modal-content[_ngcontent-%COMP%]{padding-bottom:calc(1em + var(--%NS%safe-area-inset-bottom))}} 20/*# sourceMappingURL=modal-base.component.css.map */`,`.display-large[_ngcontent-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:3.25em;line-height:1.125em;font-weight:700}.display-medium[_ngcontent-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:2.875em;line-height:1.1em;font-weight:700}.display-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:2.5em;line-height:1.125em;font-weight:700}.headline-large[_ngcontent-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:2.25em;line-height:1.14em;font-weight:700}.headline-medium[_ngcontent-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:1.875em;line-height:1.1em;font-weight:700}.headline-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:1.5em;line-height:1.13125em;font-weight:700}.title-large[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:1.5em;line-height:1.1875em;font-weight:600}.title-medium[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:1.25em;line-height:1.1875em;font-weight:600}.title-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:1em;line-height:1em;font-weight:600}.label-large[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:1em;line-height:1.1875em;font-weight:600}.label-medium[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.875em;line-height:1.3em;font-weight:600}.label-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.75em;line-height:.875em;font-weight:600}.label-extra-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.625em;line-height:1.2em;font-weight:600}.body-large[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:1em;line-height:1.1875em;font-weight:400}
20.body-medium[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.875em;line-height:1.1em;font-weight:400}.body-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.75em;line-height:1.125em;font-weight:400}.body-extra-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.625em;line-height:.75em;font-weight:400}.foldAnimation[_ngcontent-%COMP%]{display:grid;overflow:hidden;transition:grid-template-rows .3s ease-in-out,opacity .3s ease-in-out}.foldAnimation[_ngcontent-%COMP%] > .foldAnimationContent[_ngcontent-%COMP%]{overflow:hidden}.foldAnimationHide[_ngcontent-%COMP%]{grid-template-rows:0fr;opacity:0}.foldAnimationShow[_ngcontent-%COMP%]{grid-template-rows:1fr;opacity:1}.foldAnimationToHide[_ngcontent-%COMP%]{grid-template-rows:0fr;opacity:0}.fadeAnimation[_ngcontent-%COMP%]{transition:opacity .5s ease-in-out}.fadeAnimationHide[_ngcontent-%COMP%]{opacity:0}.fadeAnimationShow[_ngcontent-%COMP%]{opacity:1}.fadeAnimationToHide[_ngcontent-%COMP%]{opacity:0}.slideUpAnimation[_ngcontent-%COMP%]{--%NS%slideup-translate-x: none;position:fixed;bottom:0;transition:transform .4s ease-out,opacity .4s ease-out;will-change:transform}.slideUpAnimationHide[_ngcontent-%COMP%]{transform:translate(var(--%NS%slideup-translate-x)) translateY(100vh);opacity:0}.slideUpAnimationShow[_ngcontent-%COMP%]{transform:translate(var(--%NS%slideup-translate-x)) translateY(0);opacity:1}.slideUpAnimationToHide[_ngcontent-%COMP%]{transform:translate(var(--%NS%slideup-translate-x)) translateY(100vh);opacity:0}.slideInAnimation[_ngcontent-%COMP%]{transition:transform .4s ease-out,opacity .4s ease-out;will-change:transform}.slideInAnimationHide[_ngcontent-%COMP%]{transform:translate(100%);opacity:0}.slideInAnimationShow[_ngcontent-%COMP%]{transform:translate(0);opacity:1}.slideInAnimationToHide[_ngcontent-%COMP%]{transform:translate(100%);opacity:0}@media(max-width:575.98px){.slideInAnimationHide[_ngcontent-%COMP%]{transform:translateY(100%);opacity:0}.slideInAnimationShow[_ngcontent-%COMP%]{transform:translateY(0);opacity:1}.slideInAnimationToHide[_ngcontent-%COMP%]{transform:translateY(100%);opacity:0}}.modalScaleAnimation[_ngcontent-%COMP%]{transition:transform .3s ease-in-out,opacity .3s ease-in-out;will-change:transform}.modalScaleAnimationHide[_ngcontent-%COMP%]{transform:scale(.9);opacity:0}.modalScaleAnimationShow[_ngcontent-%COMP%]{transform:scale(1);opacity:1}.modalScaleAnimationToHide[_ngcontent-%COMP%]{transform:scale(.9);opacity:0} .disable-animations .foldAnimation, .disable-animations .fadeAnimation, .disable-animations .slideUpAnimation, .disable-animations .slideInAnimation, .disable-animations .modalScaleAnimation{transition-duration:0ms!important}.app-modal-wrapper[_ngcontent-%COMP%]{padding:0;display:flex;flex-direction:column;justify-content:flex-end}@media(min-width:576px){.app-modal-wrapper[_ngcontent-%COMP%]{justify-content:flex-start}}.app-modal-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;max-height:100dvh;min-height:100dvh;width:100%;background-color:var(--%NS%modal-background-color)}.app-modal-container[_ngcontent-%COMP%] .app-modal-header[_ngcontent-%COMP%], .app-modal-container[_ngcontent-%COMP%] .app-modal-content[_ngcontent-%COMP%], .app-modal-container[_ngcontent-%COMP%] .app-modal-footer[_ngcontent-%COMP%], .app-modal-container[_ngcontent-%COMP%] .app-modal-sub-footer[_ngcontent-%COMP%]{background-color:var(--%NS%modal-background-color);color:var(--%NS%modal-color);width:100%}.app-modal-container[_ngcontent-%COMP%] .sidepanel-content-wrapper[_ngcontent-%COMP%]{flex:1 1 auto;min-height:0;grid-area:images-main;overflow:hidden;overflow-y:auto}.app-modal-container[_ngcontent-%COMP%] .sidepanel-content-wrapper[_ngcontent-%COMP%] .app-modal-images-section[_ngcontent-%COMP%]{grid-area:images}.app-modal-container[_ngcontent-%COMP%] .sidepanel-content-wrapper[_ngcontent-%COMP%] .app-modal-header[_ngcontent-%COMP%]{grid-area:header}.app-modal-container[_ngcontent-%COMP%] .sidepanel-content-wrapper[_ngcontent-%COMP%] .app-modal-content[_ngcontent-%COMP%]{grid-area:main;overflow:hidden}.app-modal-container[_ngcontent-%COMP%] .app-modal-footer[_ngcontent-%COMP%]{flex:0 0 auto;grid-area:footer}.app-modal-container[_ngcontent-%COMP%] .app-modal-sub-footer[_ngcontent-%COMP%]{grid-area:sub-footer}@media(max-width:575.98px){.app-modal-container[_ngcontent-%COMP%] .app-modal-sub-footer[_ngcontent-%COMP%]{width:100dvw!important}}@media(min-width:576px){.app-modal-container[_ngcontent-%COMP%]{display:grid;grid-template:"header" auto "main" 1fr "footer" auto "sub-footer" auto/1fr;height:100%;background-color:transparent;margin-left:auto}.app-modal-container[_ngcontent-%COMP%] .sidepanel-content-wrapper[_ngcontent-%COMP%]{display:grid;grid-template-columns:subgrid;grid-template-rows:subgrid;grid-column:1/2;grid-row:1/5;overflow-y:hidden}.app-modal-container[_ngcontent-%COMP%] .sidepanel-content-wrapper[_ngcontent-%COMP%] .app-modal-content[_ngcontent-%COMP%]{overflow-y:auto}.app-modal-container.images[_ngcontent-%COMP%]{grid-template:"images header" auto "images main" 1fr "images footer" auto "images sub-footer" auto/1fr 21.25em;max-width:26.25em}.app-modal-container.images[_ngcontent-%COMP%] .sidepanel-content-wrapper[_ngcontent-%COMP%]{grid-column:1/3}}@media(min-width:768px){.app-modal-container.images[_ngcontent-%COMP%]{grid-template-columns:1fr 26.25em}}@media(min-width:576px){.app-modal-container[_ngcontent-%COMP%]{width:100%;max-width:30em}.app-modal-container.images[_ngcontent-%COMP%]{max-width:100%}.app-modal-container.images[_ngcontent-%COMP%] .app-modal-vertical-images-list[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;height:100dvh;gap:1em;overflow-y:auto;-ms-overflow-style:none;scrollbar-width:none}.app-modal-container.images[_ngcontent-%COMP%] .app-modal-vertical-images-list[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}}@media(min-width:576px)and (min-width:576px){.app-modal-container.images[_ngcontent-%COMP%] .app-modal-vertical-images-list[_ngcontent-%COMP%]{padding:1em}}@media(min-width:576px)and (min-width:768px){.app-modal-container.images[_ngcontent-%COMP%] .app-modal-vertical-images-list[_ngcontent-%COMP%]{padding:2em}}@media(min-width:576px)and (min-width:1200px){.app-modal-container.images[_ngcontent-%COMP%] .app-modal-vertical-images-list[_ngcontent-%COMP%]{padding:4em 7.5em}}@media(min-width:576px){.app-modal-container.images[_ngcontent-%COMP%] .app-modal-vertical-images-list[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;height:auto;object-fit:cover}.app-modal-container.images[_ngcontent-%COMP%] .app-modal-vertical-images-list[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{width:100%;max-width:64em}.app-modal-container.images[_ngcontent-%COMP%] .app-modal-images[_ngcontent-%COMP%]{display:none}} 21/*# sourceMappingURL=modal-sidepanel.component.css.map */`],changeDetection:1})}}return t})();var zO=()=>({modalDialogClass:"strawberry-login"}),KC=t=>({siteName:t}),ZC=(()=>
21{class t extends _e{constructor(){super(...arguments),this.isOpen=v(!1),this.isOpenChange=Re(),this.store=f(oe),this.spennService=f(Ma),this.processed=f(ae),this.SpennLogo=Lo,this.siteName=this.processed.getInit().resort.siteName,this.siteUrl=window.bookingWidget?.backendUrl||"",this.ButtonStyle=Oe,this.ButtonType=gn,this.IconSize=Se}signInWithStrawberrySso(){this.store.dispatch(ac({signInInformationSidePanel:!1})),this.spennService.signInWithStrawberrySso()}static{this.\u0275fac=(()=>{let e;return function(o){return(e||(e=Ne(t)))(o||t)}})()}static{this.\u0275cmp=H({type:t,selectors:[["app-strawberry-login"]],inputs:{isOpen:[1,"isOpen"]},outputs:{isOpenChange:"isOpenChange"},features:[re],decls:40,vars:46,consts:[[3,"onClose","isOpen","setInternalDOM","options"],["modalContent",""],[1,"info-panel"],[1,"image"],["alt","",3,"src"],[1,"title-large"],[1,"body-large"],[1,"login-panel"],[1,"login-button"],["name","strawberry",3,"size"],[1,"label-large"],[1,"spenn-info","body-medium"],[1,"spenn-text"],[1,"spenn-sticker"],[1,"spenn-logo",3,"innerHTML"],["iconRight","chevronRight",3,"btnClick","label","appearance","type","aria-label"],[1,"body-small"]],template:function(n,o){n&1&&(h(0,"app-modal-sidepanel",0),k("onClose",function(){return o.isOpenChange.emit(!1)}),h(1,"div",1)(2,"div",2)(3,"div",3),T(4,"img",4),_(),h(5,"h2",5),D(6),y(7,"translocoStripHtml"),_(),h(8,"ul",6)(9,"li"),D(10),y(11,"translocoStripHtml"),_(),h(12,"li"),D(13),y(14,"translocoStripHtml"),_(),h(15,"li"),D(16),y(17,"translocoStripHtml"),_(),h(18,"li"),D(19),y(20,"translocoStripHtml"),_()()(),h(21,"div",7)(22,"div",8),T(23,"app-icon",9),h(24,"div")(25,"div",10),D(26),y(27,"translocoStripHtml"),_(),h(28,"div",11)(29,"span",12),D(30),y(31,"translocoStripHtml"),_(),h(32,"div",13),T(33,"span",14),_()()(),h(34,"app-button",15),y(35,"translocoStripHtml"),y(36,"translocoStripHtml"),k("btnClick",function(){return o.signInWithStrawberrySso()}),_()(),h(37,"p",16),D(38),y(39,"translocoStripHtml"),_()()()()),n&2&&(b("isOpen",o.isOpen())("setInternalDOM",!0)("options",Pe(41,zO)),p(4),b("src",Lf("",o.siteUrl,"/assets/images/dresser.svg"),ut),p(2),V(W(7,19,"loyalty.strawberry.login.title",Z(42,KC,o.siteName))),p(4),V(O(11,22,"loyalty.strawberry.login.point1")),p(3),V(O(14,24,"loyalty.strawberry.login.point2")),p(3),V(O
21(17,26,"loyalty.strawberry.login.point3")),p(3),V(O(20,28,"loyalty.strawberry.login.point4")),p(4),b("size",o.IconSize.LARGE),p(3),V(O(27,30,"loyalty.strawberry.login.sign-in")),p(4),V(O(31,32,"spenn.usage.info-v2")),p(3),b("innerHTML",o.SpennLogo,Mt),p(),b("label",O(35,34,"general.forward-button.label"))("appearance",o.ButtonStyle.PRIMARY)("type",o.ButtonType.SUBMIT),he("aria-label",O(36,36,"loyalty.strawberry.login.sign-in.button.label")),p(4),ee(" ",W(39,38,"loyalty.strawberry.login.flow-info",Z(44,KC,o.siteName))," "))},dependencies:[Fe,vd,De,Y],styles:[`.display-large[_ngcontent-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:3.25em;line-height:1.125em;font-weight:700}.display-medium[_ngcontent-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:2.875em;line-height:1.1em;font-weight:700}.display-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:2.5em;line-height:1.125em;font-weight:700}.headline-large[_ngcontent-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:2.25em;line-height:1.14em;font-weight:700}.headline-medium[_ngcontent-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:1.875em;line-height:1.1em;font-weight:700}.headline-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:1.5em;line-height:1.13125em;font-weight:700}.title-large[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:1.5em;line-height:1.1875em;font-weight:600}.title-medium[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:1.25em;line-height:1.1875em;font-weight:600}.title-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:1em;line-height:1em;font-weight:600}.label-large[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:1em;line-height:1.1875em;font-weight:600}.label-medium[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.875em;line-height:1.3em;font-weight:600}.label-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.75em;line-height:.875em;font-weight:600}.label-extra-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.625em;line-height:1.2em;font-weight:600}.body-large[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:1em;line-height:1.1875em;font-weight:400}
21.body-medium[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.875em;line-height:1.1em;font-weight:400}.body-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.75em;line-height:1.125em;font-weight:400}.body-extra-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.625em;line-height:.75em;font-weight:400} .strawberry-login .app-modal-container{background-color:var(--%NS%modal-background-color)} .strawberry-login .app-modal-container .app-modal-content{background-color:var(--%NS%alternate-background-color)!important;padding:0!important}.info-panel[_ngcontent-%COMP%]{background-color:var(--%NS%modal-background-color);padding:1em}.info-panel[_ngcontent-%COMP%] .image[_ngcontent-%COMP%]{width:60px;margin:0 auto 1em}.info-panel[_ngcontent-%COMP%] .image[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:80px}.info-panel[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{padding-left:1em}.info-panel[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{line-height:1.4em}@media(min-width:576px){.info-panel[_ngcontent-%COMP%]{padding:2em}.info-panel[_ngcontent-%COMP%] .image[_ngcontent-%COMP%]{width:140px;margin-bottom:2em}.info-panel[_ngcontent-%COMP%] .image[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:200px}}.login-panel[_ngcontent-%COMP%]{margin:1em 1em 2em}.login-panel[_ngcontent-%COMP%] .login-button[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;background-color:var(--%NS%modal-background-color);border:1px solid var(--%NS%border-color);border-radius:var(--%NS%radius-large);margin:1em auto;padding:.5em}.login-panel[_ngcontent-%COMP%] .login-button[_ngcontent-%COMP%] .icon-strawberry[_ngcontent-%COMP%]{display:block;margin-right:1em;color:#fff;background-color:#000;border-radius:var(--%NS%radius-large);padding:1em;height:60px}.login-panel[_ngcontent-%COMP%] .login-button[_ngcontent-%COMP%] .icon-spenn{color:var(--%NS%strawberry-brand)}.login-panel[_ngcontent-%COMP%] .login-button[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{margin-top:.625em}.login-panel[_ngcontent-%COMP%] .login-button[_ngcontent-%COMP%] .spenn-info[_ngcontent-%COMP%]{display:flex;align-items:center;font-family:SpennFont,var(--%NS%default-text-font);margin-top:.375em}.login-panel[_ngcontent-%COMP%] .login-button[_ngcontent-%COMP%] .spenn-info[_ngcontent-%COMP%] .spenn-sticker[_ngcontent-%COMP%]{margin-left:.25em}.login-panel[_ngcontent-%COMP%] .login-button[_ngcontent-%COMP%] app-button[_ngcontent-%COMP%]{flex:1 1 100%;margin-top:.5em}.login-panel[_ngcontent-%COMP%] .login-button[_ngcontent-%COMP%] app-button[_ngcontent-%COMP%] .btn{width:100%;border-radius:var(--%NS%radius-regular)}.login-panel[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{width:70%;text-align:center;margin:0 auto}@media(min-width:576px){.login-panel[_ngcontent-%COMP%]{margin:1.5em 1em}.login-panel[_ngcontent-%COMP%] .login-button[_ngcontent-%COMP%]{justify-content:space-between;flex-wrap:nowrap}.login-panel[_ngcontent-%COMP%] .login-button[_ngcontent-%COMP%] app-button[_ngcontent-%COMP%]{flex:auto;margin-top:.375em;text-align:right}.login-panel[_ngcontent-%COMP%] .login-button[_ngcontent-%COMP%] app-button[_ngcontent-%COMP%] .btn{width:auto}.login-panel[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{width:60%}} 22/*# sourceMappingURL=strawberry-login.component.css.map */`],changeDetection:1})}}return t})();var Dn=(()=>{class t{constructor(){this.localeService=f(_r),this.store=f(oe),this.processed=f(ae),this.currency=null,this.store.select(Ro).subscribe(e=>this.currency=e)}transform(e,n=!1,o={}){if(!o.noConversion&&this.currency&&(e=e*this.currency.conversionRate),o.useSIPostfix){let l=Math.round(e.toString().length/3)-1;if(l>0)return e/=Math.pow(10,l*3),e=Math.round(e),e=this.localeService.localizeNumber(e,"decimal"),e+["k","M","G","T","P","E","Z","Y"][l-1]}let r=this.processed.getInit().globals.useRoundingWhenUsingCurrencyConversion,a=o.forceDecimals?2:Number.isInteger(e)||o.minimal||r?0:2,s={currency:o.noConversion?void 0:this.currency?.currencyCode,minimumFractionDigits:a,maximumFractionDigits:a};return this.localeService.localizeNumber(e,o.minimal||o.hideCurrencyCode?"decimal":"currency",void 0,s)+(o.minimal?",-":"")}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275pipe=yn({name:"customCurrency",type:t,pure:!1})}}return t})();var BO=()=>({noConversion:!0,hideCurrencyCode:!0,useSIPostfix:!0}),QC=(()=>
22{class t extends _e{constructor(){super(...arguments),this.spennPoints=v.required(),this.SpennLogo=Lo,this.SpennPoints=ma}static{this.\u0275fac=(()=>{let e;return function(o){return(e||(e=Ne(t)))(o||t)}})()}static{this.\u0275cmp=H({type:t,selectors:[["app-show-spenn"]],inputs:{spennPoints:[1,"spennPoints"]},features:[re],decls:4,vars:7,consts:[[1,"spenn-points"],[1,"spenn-logo",3,"innerHTML"]],template:function(n,o){n&1&&(Li(0,"span",0),D(1),y(2,"customCurrency"),yo(3,"span",1),zi()),n&2&&(p(),ee(" ",Rn(2,2,o.spennPoints(),!1,Pe(6,BO))," "),p(2),kl("innerHTML",o.SpennLogo,Mt))},dependencies:[Dn],styles:[`.display-large[_ngcontent-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:3.25em;line-height:1.125em;font-weight:700}.display-medium[_ngcontent-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:2.875em;line-height:1.1em;font-weight:700}.display-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:2.5em;line-height:1.125em;font-weight:700}.headline-large[_ngcontent-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:2.25em;line-height:1.14em;font-weight:700}.headline-medium[_ngcontent-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:1.875em;line-height:1.1em;font-weight:700}.headline-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:1.5em;line-height:1.13125em;font-weight:700}.title-large[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:1.5em;line-height:1.1875em;font-weight:600}.title-medium[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:1.25em;line-height:1.1875em;font-weight:600}.title-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:1em;line-height:1em;font-weight:600}.label-large[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:1em;line-height:1.1875em;font-weight:600}.label-medium[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.875em;line-height:1.3em;font-weight:600}.label-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.75em;line-height:.875em;font-weight:600}.label-extra-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.625em;line-height:1.2em;font-weight:600}.body-large[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:1em;line-height:1.1875em;font-weight:400}
22.body-medium[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.875em;line-height:1.1em;font-weight:400}.body-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.75em;line-height:1.125em;font-weight:400}.body-extra-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.625em;line-height:.75em;font-weight:400}.spenn-points[_ngcontent-%COMP%]{display:inline-flex;font-family:SpennFont,var(--%NS%default-text-font);font-weight:700;gap:.4em}.spenn-logo[_ngcontent-%COMP%]{font-family:SpennFont,var(--%NS%default-text-font);font-weight:200} 23/*# sourceMappingURL=show-spenn.component.css.map */`],changeDetection:1})}}return t})();var FO=["loyaltyDropdown"],UO=["dropdown"],HO=["iframeButton"],Mm=()=>["modal-colors"],VO=(t,i)=>({name:t,points:i});function qO(t,i){if(t&1&&T(0,"app-show-spenn",10),t&2){u(2);let e=fe(2);b("spennPoints",e)}}function jO(t,i){if(t&1){let e=B();h(0,"div",7,0),k("openChange",function(o){N(e);let r=u();return I(r.onDropdownOpenChange(o))})("mouseenter",function(){N(e);let o=u();return I(o.onDropdownMouseEnter())})("mouseleave",function(){N(e);let o=u();return I(o.onDropdownMouseLeave())}),h(2,"app-button",8),y(3,"translocoStripHtml"),k("click",function(){N(e);let o=u();return I(o.openDropdown())}),h(4,"span",9),D(5),_(),w(6,qO,1,1,"app-show-spenn",10),_(),h(7,"div",11,1)(9,"div",12)(10,"span"),D(11),_(),h(12,"div",13),T(13,"app-icon",14)(14,"app-spacer",15),h(15,"span"),D(16),_()()(),T(17,"app-separator"),h(18,"div",16),y(19,"translocoStripHtml"),k("click",function(){N(e);let o=u();return I(o.logout())}),D(20),y(21,"translocoStripHtml"),_()()()}if(t&2){let e=u(),n=fe(0),o=fe(1),r=fe(2);ye("dropdown-hover-open",e.isOpen),p(2),b("appearance",e.ButtonStyle.SECONDARY)("additionalClasses",Pe(25,Mm)),he("aria-label",W(3,18,"header-loyalty.menu",St(26,VO,n.firstName+" "+n.lastName,r))),ue("aria-expanded",e.isOpen),p(2),ye("has-spenn",e.showPoints()&&r>0),p(),V(o),p(),x(e.showPoints()&&r>0?6:-1),p(5),So("",n.firstName," ",n.lastName),p(),b("ngClass","level-"+(n.membershipLevel.toLowerCase()||"blue")),p(),b("size",e.IconSize.TINY),p(),b("width",4),p(2),V(n.membershipLevel),p(2),ue("aria-label",O(19,21,"general.strawberry.sign-out")),p(2),ee(" ",O(21,23,"mypage.menu.sign-out")," ")}}function $O(t,i){if(t&1&&T(0,"app-show-spenn",10),t&2){u(2);let e=fe(2);b("spennPoints",e)}}function WO(t,i){if(t&1){let e=B();h(0,"app-button",17,2),k("btnClick",function(o){N(e);let r=u();return I(r.onLogoutFromIframe(o))}),h(2,"span",9),D(3),_(),w(4,$O,1,1,"app-show-spenn",10),h(5,"span",18),y(6,"translocoStripHtml"),y(7,"translocoStripHtml"),k("keyup.enter",function(o){N(e);let r=u();return I(r.onLogoutFromIframe(o))}),T(8,"app-icon",19),_()()}if(t&2){let e=u(),n=fe(1),o=fe(2);b("appearance",e.ButtonStyle.SECONDARY)("ngClass",e.alignInIframe()?e.alignInIframe():"")("additionalClasses",Pe(14,Mm)),p(2),ye("has-spenn",e.showPoints()&&o>0),p(),V(n),p(),x(e.strawberryParams().showSpenn!==!1&&e.showPoints()&&o>0?4:-1),p(),b("title",O(6,10,"general.strawberry.sign-out")),ue("aria-label",O(7,12,"general.strawberry.sign-out")),p(3),b("size",e.IconSize.TINY)}}function GO(t,i){if(t&1){let e=B();h(0,"app-button",20),y(1,"translocoStripHtml"),y(2,"translocoStripHtml"),k("btnClick",function(){N(e);let o=u();return I(o.signInWithStrawberrySso())}),_()}if(t&2){let e=u();ye("iframe",e.isInIframe()),b("label",O(1,9,"general.strawberry.sign-in"))("appearance",e.ButtonStyle.SECONDARY)("ngClass",e.alignInIframe()?e.alignInIframe():"")("additionalClasses",Pe(13,Mm))("iconLeft",e.isLoggingIn?"loadingDots":"strawberry")("disabled",e.isLoading()),he("aria-label",O(2,11,"loyalty.strawberry.login.sign-in.label"))}}function YO(t,i){if(t&1){let e=B();h(0,"app-strawberry-login",21),fn("isOpenChange",function(o){N(e);let r=u();return hn(r.isShowingModal,o)||(r.isShowingModal=o),I(o)}),_()}if(t&2){let e=u();Pn("isOpen",e.isShowingModal)}}var JC=(()=>{class t extends _e{constructor(){super(),this.showPoints=v(!0),this.loyaltyDropdown=We("loyaltyDropdown"),this.dropdown=We("dropdown"),this.iframeButton=We("iframeButton",{read:Ut}),this.isOpen=!1,this.hoverCloseTimeout=null,this.store=f(oe),this.spennService=f(Ma),this.processedService=f(ae),this.languageService=f(Nt),this.widgetService=f(li),this.loyaltyUser=Me(this.store.select(yi)),this.strawberryParams=Me(this.store.select(U_)),this.requireLogin=Me(this.store.select(d_)),this.currentLanguage=Me(this.languageService.getCurrentLanguage$()),this.isInIframe=Me(this.store.select(qi)),this.isLoading=Me(this.store.select(Bo)),this.isLoggingIn=!1,this.isShowingModal=!1,this.ButtonStyle=Oe,this.ButtonShape=At,this.IconSize=Se,this.strawberryUrl=A(()=>{this.currentLanguage();let e=this.processedService.getInit().loyalty.strawberry;return e?this.languageService.getTranslatedValue(e.signupUrl):""}),this.strawberryHost=A(()=>new URL(this.strawberryUrl()).host.replace("www.","")),this.alignInIframe=A(()=>this.strawberryParams()?.alignment?{left:"justify-content-start",right:"justify-content-end",center:"justify-content-center"}[this.strawberryParams().alignment]:""),this.spennService.fetchUser().then(e=>{e||this.spennService.fedcmLogin()}),et(()=>{this.requireLogin()&&(this.store.dispatch(oc({requireLogin:!1})),this.signInWithStrawberrySso())}),this.isInIframe()&&document.body.classList.add("login")}openDropdown(){this.dropdown()&&this.isOpen?wm(this.dropdown(),44):wm(null)}onDropdownOpenChange(e){this.isOpen=e,this.openDropdown()}onDropdownMouseEnter(){this.hoverCloseTimeout&&(clearTimeout(this.hoverCloseTimeout),this.hoverCloseTimeout=null),this.loyaltyDropdown()?.isOpen()||this.loyaltyDropdown()?.open()}onDropdownMouseLeave(){this.hoverCloseTimeout&&clearTimeout(this.hoverCloseTimeout),this.hoverCloseTimeout=setTimeout(()=>{this.loyaltyDropdown()?.isOpen()&&this.loyaltyDropdown()?.close(),this.hoverCloseTimeout=null},200)}ngOnDestroy(){this.hoverCloseTimeout&&(clearTimeout(this.hoverCloseTimeout),this.hoverCloseTimeout=null)}signInWithStrawberrySso(){if(this.isInIframe()){let e=this.store.selectSignal(z_)();if(!e)return;this.store.dispatch(oo({loadingMessageKey:"loyalty.strawberry.login.sign-in"})),this.isLoggingIn=!0,this.spennService.signInWithWidgetStrawberrySso({urlOnComplete:e,languageIsoCode:this.currentLanguage()}).subscribe({next:n=>{console.log("result",n),n&&window.open(n.redirectUrl,"_parent")},error:n=>{console.log("Not able to start SSO login, origin not whitelisted?")}})}else this.store.select(p_).pipe(Ke(1)).subscribe(e=>{e?this.isShowingModal=!0:(this.store.dispatch(oo({loadingMessageKey:"loyalty.strawberry.login.sign-in"})),this.isLoggingIn=!0,this.spennService.signInWithStrawberrySso(),this.isLoggingIn=!1,this.store.dispatch(Vi()))})}onLogoutFromIframe(e){(this.iframeButton()?.nativeElement.getElementsByClassName("leave-icon")[0]).contains(e.target)&&this.logout()}goToStrawberry(){window.open(this.strawberryUrl(),"_blank")}logout(){this.hoverCloseTimeout&&(clearTimeout(this.hoverCloseTimeout),this.hoverCloseTimeout=null),this.loyaltyDropdown()?.close(),this.isOpen=!1,this.openDropdown(),this.spennService.logout()}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=H({type:t,selectors:[["app-header-loyalty"]],viewQuery:function(n,o){n&1&&Ot(o.loyaltyDropdown,FO,5)(o.dropdown,UO,5)(o.iframeButton,HO,5,Ut),n&2&&xt(3)},inputs:{showPoints:[1,"showPoints"]},features:[re],decls:7,vars:5,consts:[["loyaltyDropdown","ngbDropdown"],["dropdown",""],["iframeButton",""],["ngbDropdown","","placement","bottom-end",3,"dropdown-hover-open"],[1,"iframe","d-flex",3,"appearance","ngClass","additionalClasses"],[1,"signin","d-flex",3,"label","appearance","iframe","ngClass","additionalClasses","iconLeft","disabled","aria-label"],[3,"isOpen"],["ngbDropdown","","placement","bottom-end",3,"openChange","mouseenter","mouseleave"],["ngbDropdownToggle","","aria-haspopup","menu","aria-controls","header-loyalty-menu",3,"click","appearance","additionalClasses","aria-label"],[1,"capitalized"],[3,"spennPoints"],["ngbDropdownMenu","","id","header-loyalty-menu","role","menu"],[1,"user-info","label-large"],[1,"label-small","membership",3,"ngClass"],["name","strawberryText","width","71",3,"size"],[3,"width"],["ngbDropdownItem","","role","menuitem",1,"body-medium",3,"click"],[1,"iframe","d-flex",3,"btnClick","appearance","ngClass","additionalClasses"],["role","button","tabindex","0",1,"leave-icon",3,"keyup.enter","title"],["name","leave",3,"size"],[1,"signin","d-flex",3,"btnClick","label","appearance","ngClass","additionalClasses","iconLeft","disabled","aria-label"],[3,"isOpenChange","isOpen"]],template:function(n,o){if(n&1&&(qe(0)(1)(2),w(3,jO,22,29,"div",3)(4,WO,9,15,"app-button",4)(5,GO,3,14,"app-button",5),w(6,YO,1,1,"app-strawberry-login",6)),n&2){let r=Je(o.loyaltyUser());p(),Je((r?.firstName?.[0]||"").toUpperCase()+(r?.lastName?.[0]||"").toUpperCase()),p(),Je(r?.bonusPoints?.spenn?.spennPoints||0),p(),x(r&&!o.isInIframe()?3:r?4:5),p(3),x(r?-1:6)}},dependencies:[st,bn,hd,Fe,ta,$t,rn,on,nn,HC,ZC,QC,De,Y],styles:[`.display-large[_ng
23content-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:3.25em;line-height:1.125em;font-weight:700}.display-medium[_ngcontent-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:2.875em;line-height:1.1em;font-weight:700}.display-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:2.5em;line-height:1.125em;font-weight:700}.headline-large[_ngcontent-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:2.25em;line-height:1.14em;font-weight:700}.headline-medium[_ngcontent-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:1.875em;line-height:1.1em;font-weight:700}.headline-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:1.5em;line-height:1.13125em;font-weight:700}.title-large[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:1.5em;line-height:1.1875em;font-weight:600}.title-medium[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:1.25em;line-height:1.1875em;font-weight:600}.title-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:1em;line-height:1em;font-weight:600}.label-large[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:1em;line-height:1.1875em;font-weight:600}.label-medium[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.875em;line-height:1.3em;font-weight:600}.label-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.75em;line-height:.875em;font-weight:600}.label-extra-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.625em;line-height:1.2em;font-weight:600}.body-large[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:1em;line-height:1.1875em;font-weight:400}
23.body-medium[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.875em;line-height:1.1em;font-weight:400}.body-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.75em;line-height:1.125em;font-weight:400}.body-extra-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.625em;line-height:.75em;font-weight:400}app-button[_ngcontent-%COMP%]{width:fit-content}app-button[_ngcontent-%COMP%] .btn{font-weight:700}app-button[_ngcontent-%COMP%] .btn:hover{background-color:var(--%NS%modal-background-darker)}app-button[_ngcontent-%COMP%] .btn app-show-spenn{margin-left:.5em}app-button[_ngcontent-%COMP%] .capitalized[_ngcontent-%COMP%]{width:28px;height:28px;font-size:.8em;border-radius:var(--%NS%radius-circle);background-color:#002d5a;color:#fff;display:inline-flex;align-items:center;justify-content:center}@media(max-width:767.98px){app-button[_ngcontent-%COMP%] .capitalized.has-spenn[_ngcontent-%COMP%]{display:none}}app-button.iframe[_ngcontent-%COMP%]:not(.signin) .btn{cursor:default}app-button.iframe[_ngcontent-%COMP%] .has-spenn[_ngcontent-%COMP%]{display:inline-flex}app-button.iframe[_ngcontent-%COMP%] .leave-icon[_ngcontent-%COMP%]{border-top-right-radius:4px;border-bottom-right-radius:4px;position:relative;top:-1px;padding:12px 10px 15px 0;margin-left:.5em;margin-right:-12px;cursor:pointer}app-button.iframe[_ngcontent-%COMP%] .leave-icon[_ngcontent-%COMP%]:before{content:"";border-left:1px solid var(--%NS%border-color);padding:3px 0 5px 10px}app-button.iframe[_ngcontent-%COMP%] .leave-icon[_ngcontent-%COMP%]:hover{background-color:var(--%NS%modal-background-darker)}app-button.iframe[_ngcontent-%COMP%] .leave-icon[_ngcontent-%COMP%] .icon-leave svg{transform:scale(-1)}[ngbDropdownMenu][_ngcontent-%COMP%]{padding:0;margin:0 auto;margin-top:-14px!important;border-radius:0;width:100vw;right:-1px!important;top:14px!important;background-color:var(--%NS%modal-background-color);border:1px solid var(--%NS%border-color)}@media screen and (width>=460px){[ngbDropdownMenu][_ngcontent-%COMP%]{width:auto;max-width:350px;margin:0;border-radius:var(--%NS%radius-regular)}}[ngbDropdownMenu][_ngcontent-%COMP%] [ngbDropdownItem][_ngcontent-%COMP%], [ngbDropdownMenu][_ngcontent-%COMP%] .user-info[_ngcontent-%COMP%]{padding:16px 12px;display:flex;align-items:center;cursor:pointer;border-radius:2px;color:var(--%NS%modal-color)}[ngbDropdownMenu][_ngcontent-%COMP%] [ngbDropdownItem][_ngcontent-%COMP%] > span[_ngcontent-%COMP%], [ngbDropdownMenu][_ngcontent-%COMP%] .user-info[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{flex:1;overflow:hidden;text-overflow:ellipsis;margin-right:1em}[ngbDropdownMenu][_ngcontent-%COMP%] [ngbDropdownItem][_ngcontent-%COMP%] .membership[_ngcontent-%COMP%], [ngbDropdownMenu][_ngcontent-%COMP%] .user-info[_ngcontent-%COMP%] .membership[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;padding:8px 12px;border-radius:var(--%NS%radius-pill);color:#fff}[ngbDropdownMenu][_ngcontent-%COMP%] [ngbDropdownItem][_ngcontent-%COMP%] .membership.level-blue[_ngcontent-%COMP%], [ngbDropdownMenu][_ngcontent-%COMP%] .user-info[_ngcontent-%COMP%] .membership.level-blue[_ngcontent-%COMP%]{background-color:var(--%NS%strawberry-blue)}[ngbDropdownMenu][_ngcontent-%COMP%] [ngbDropdownItem][_ngcontent-%COMP%] .membership.level-silver[_ngcontent-%COMP%], [ngbDropdownMenu][_ngcontent-%COMP%] .user-info[_ngcontent-%COMP%] .membership.level-silver[_ngcontent-%COMP%]{background-color:var(--%NS%strawberry-silver)}[ngbDropdownMenu][_ngcontent-%COMP%] [ngbDropdownItem][_ngcontent-%COMP%] .membership.level-gold[_ngcontent-%COMP%], [ngbDropdownMenu][_ngcontent-%COMP%] .user-info[_ngcontent-%COMP%] .membership.level-gold[_ngcontent-%COMP%]{background-color:var(--%NS%strawberry-gold)}[ngbDropdownMenu][_ngcontent-%COMP%] [ngbDropdownItem][_ngcontent-%COMP%] .membership.level-platinum[_ngcontent-%COMP%], [ngbDropdownMenu][_ngcontent-%COMP%] .user-info[_ngcontent-%COMP%] .membership.level-platinum[_ngcontent-%COMP%]{background-color:var(--%NS%strawberry-platinum)}[ngbDropdownMenu][_ngcontent-%COMP%] [ngbDropdownItem][_ngcontent-%COMP%]:hover, [ngbDropdownMenu][_ngcontent-%COMP%] [ngbDropdownItem][_ngcontent-%COMP%]:focus{color:var(--%NS%modal-color);background-color:var(--%NS%modal-background-darker)}[ngbDropdownMenu][_ngcontent-%COMP%] .user-info[_ngcontent-%COMP%]{white-space:nowrap;cursor:default}[ngbDropdown][_ngcontent-%COMP%]{position:relative}[ngbDropdown].dropdown-hover-open[_ngcontent-%COMP%]:after{content:"";position:absolute;top:100%;left:-8px;right:-8px;height:10px} 24/*# sourceMappingURL=header-loyalty.component.css.map */`],changeDetection:1})}}return t})();function KO(t,i){t&1&&T(0,"app-header-loyalty")}var XC=(()=>{class t extends ci{static{this.\u0275fac=(()=>{let e;return function(o){return(e||(e=Ne(t)))(o||t)}})()}static{this.\u0275cmp=H({type:t,selectors:[["ng-component"]],features:[re],decls:1,vars:1,template:function(n,o){n&1&&w(0,KO,1,0,"app-header-loyalty"),n&2&&x(o.isReady()?0:-1)}
24,dependencies:[JC],encapsulation:3,changeDetection:1})}}return t})();var vr=(()=>{class t{constructor(){this.languageService=f(Nt),this.processed=f(ae)}transform(e){let n=this.languageService.getCurrentLanguage();return e?new Intl.DateTimeFormat(n,{timeZone:this.processed.getTimezone(),hour:"2-digit",minute:"2-digit",hour12:!1}).format(e):""}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275pipe=yn({name:"siteTime",type:t,pure:!1})}}return t})();var Fs=(()=>{class t{constructor(){this.ngControl=f(Zr,{self:!0})}set disableControl(e){let n=e?"disable":"enable";setTimeout(()=>{this.ngControl.control?this.ngControl.control[n]({onlySelf:!0,emitEvent:!1}):console.warn("DisableControlDirective: control not found",this.ngControl)})}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275dir=tn({type:t,selectors:[["","appDisableControl",""]],inputs:{disableControl:[0,"appDisableControl","disableControl"]}})}}return t})();var ty=(()=>{class t{constructor(){this.translocoStripHtmlService=f(Y),this.localeService=f(_r),this.timeService=f(vr)}transform(e,n="UTC"){let o="short",r=this.translocoStripHtmlService.transform("email.receipt.timedevider"),a=this.localeService.localizeDate(e,void 0,{dateStyle:o,timeZone:n}),s=this.timeService.transform(e);return`${a} ${r} ${s}`}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275pipe=yn({name:"customDateTime",type:t,pure:!1})}}return t})(),wd=(()=>{class t{transform(e){if(e instanceof Date)return e.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"});{let n=e.split(":");return`${n[0]}:${n[1]}`}}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275pipe=yn({name:"shortTime",type:t,pure:!0})}}return t})();var ZO=()=>["modal-colors"],ny=t=>({currency:t});function QO(t,i){if(t&1){let e=B();h(0,"button",5),y(1,"translocoStripHtml"),k("click",function(){let o=N(e).$implicit,r=u(2);return I(r.onSelect(o))}),D(2),_()}if(t&2){let e=i.$implicit,n=u(2);ue("aria-label",W(1,3,"currency-calculator.select",Z(6,ny,e.currencyCode)))("aria-selected",n.selected.currencyCode===e.currencyCode),p(2),ee(" ",e.currencyCode," ")}}function JO(t,i){if(t&1){let e=B();h(0,"div",1),k("openChange",function(){N(e);let o=u();return I(o.isOpen=!o.isOpen)}),T(1,"app-button",2),y(2,"translocoStripHtml"),h(3,"div",3),we(4,QO,3,8,"button",4,Xe),_()()}if(t&2){let e=u();Ci(e.className()),p(),b("label",e.selected.currencyCode)("appearance",e.ButtonStyle.SECONDARY)("additionalClasses",Pe(11,ZO))("iconRight",e.isOpen?"chevronUp":"chevronDown"),he("aria-label",W(2,8,"currency-calculator.change",Z(12,ny,e.selected.currencyCode))),ue("aria-expanded",e.isOpen),p(3),xe(e.currencies)}}var iy=(function(t){return t.PRIMARY="primary",t.LIGHT="light",t})(iy||{}),oy=(()=>{class t extends _e{constructor(){super(),this.store=f(oe),this.processed=f(ae),this.appearance=v(iy.PRIMARY),this.className=A(()=>`calculator--${this.appearance()}`),this.isOpen=!1,this.isCoverImage=A(()=>!this.coverImage$),this.ButtonStyle=Oe,this.IconSize=Se;let e=this.processed.getInit();this.currencies=e.currencyConversion||[],this.default=this.currencies.find(n=>n.isDefaultCurrency)||null,this.selected=this.default,this.coverImage$=Me(this.store.select(E_)),this.store.select(Ro).pipe(lt(n=>!!n)).subscribe(n=>{this.selected=n}),this.selected&&!this.currencies.some(n=>n.currencyCode===this.selected?.currencyCode)&&this.store.dispatch(oa({currency:null})),e.currencyConversionUsed||this.store.dispatch(oa({currency:null}))}onSelect(e){this.selected=e,this.store.dispatch(oa({currency:this.selected}))}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=H({type:t,selectors:[["app-currency-calculator"]],inputs:{appearance:[1,"appearance"]},features:[re],decls:1,vars:1,consts:[["ngbDropdown","","container","body",3,"class"],["ngbDropdown","","container","body",3,"openChange"],["ngbDropdownToggle","","aria-haspopup","listbox",3,"label","appearance","additionalClasses","iconRight","aria-label"],["ngbDropdownMenu","","role","listbox"],["ngbDropdownItem","","role","option",1,"label-large"],["ngbDropdownItem","","role","option",1,"label-large",3,"click"]],template:function(n,o){n&1&&w(0,JO,6,14,"div",0),n&2&&x(!o.isCoverImage()&&o.currencies.length&&o.selected?0:-1)},dependencies:[ni,$t,rn,on,nn,Po,De,Y],styles:[`.display-large[_ng
24content-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:3.25em;line-height:1.125em;font-weight:700}.display-medium[_ngcontent-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:2.875em;line-height:1.1em;font-weight:700}.display-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:2.5em;line-height:1.125em;font-weight:700}.headline-large[_ngcontent-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:2.25em;line-height:1.14em;font-weight:700}.headline-medium[_ngcontent-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:1.875em;line-height:1.1em;font-weight:700}.headline-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:1.5em;line-height:1.13125em;font-weight:700}.title-large[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:1.5em;line-height:1.1875em;font-weight:600}.title-medium[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:1.25em;line-height:1.1875em;font-weight:600}.title-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:1em;line-height:1em;font-weight:600}.label-large[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:1em;line-height:1.1875em;font-weight:600}.label-medium[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.875em;line-height:1.3em;font-weight:600}.label-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.75em;line-height:.875em;font-weight:600}.label-extra-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.625em;line-height:1.2em;font-weight:600}.body-large[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:1em;line-height:1.1875em;font-weight:400}
24.body-medium[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.875em;line-height:1.1em;font-weight:400}.body-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.75em;line-height:1.125em;font-weight:400}.body-extra-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.625em;line-height:.75em;font-weight:400}[_nghost-%COMP%]{z-index:var(--%NS%z-index-header-items)}[_nghost-%COMP%] app-button[_ngcontent-%COMP%] .btn:hover{background-color:var(--%NS%modal-background-darker)}[_nghost-%COMP%] .calculator--primary[_ngcontent-%COMP%] .dropdown-menu[_ngcontent-%COMP%]{min-width:auto;background-color:var(--%NS%modal-background-color);border-color:var(--%NS%modal-color);border-radius:4px;z-index:var(--%NS%z-index-popover)}[_nghost-%COMP%] .calculator--primary[_ngcontent-%COMP%] .dropdown-menu[_ngcontent-%COMP%] .dropdown-item[_ngcontent-%COMP%]{color:var(--%NS%modal-color)}[_nghost-%COMP%] .calculator--primary[_ngcontent-%COMP%] .dropdown-menu[_ngcontent-%COMP%] .dropdown-item[_ngcontent-%COMP%]:hover, [_nghost-%COMP%] .calculator--primary[_ngcontent-%COMP%] .dropdown-menu[_ngcontent-%COMP%] .dropdown-item[_ngcontent-%COMP%]:focus{background-color:var(--%NS%modal-color);color:var(--%NS%modal-background-color)}[_nghost-%COMP%] .calculator--light[_ngcontent-%COMP%] .dropdown-menu[_ngcontent-%COMP%]{min-width:auto;background-color:#fff;border-color:var(--%NS%color-primary);border-radius:4px;z-index:var(--%NS%z-index-popover)}[_nghost-%COMP%] .calculator--light[_ngcontent-%COMP%] .dropdown-menu[_ngcontent-%COMP%] .dropdown-item[_ngcontent-%COMP%]{color:var(--%NS%color-primary)}[_nghost-%COMP%] .calculator--light[_ngcontent-%COMP%] .dropdown-menu[_ngcontent-%COMP%] .dropdown-item[_ngcontent-%COMP%]:hover, [_nghost-%COMP%] .calculator--light[_ngcontent-%COMP%] .dropdown-menu[_ngcontent-%COMP%] .dropdown-item[_ngcontent-%COMP%]:focus{background-color:var(--%NS%color-primary);color:#fff}@media(max-width:767.98px){[_nghost-%COMP%]{z-index:calc(var(--%NS%z-index-header-items) + 1)}} 25/*# sourceMappingURL=currency-calculator.component.css.map */`],changeDetection:1})}}return t})();var po=class extends Error{},Lm=class extends po{constructor(i){super(`Invalid DateTime: ${i.toMessage()}`)}},zm=class extends po{constructor(i){super(`Invalid Interval: ${i.toMessage()}`)}},Bm=class extends po{constructor(i){super(`Invalid Duration: ${i.toMessage()}`)}},Yo=class extends po{},kd=class extends po{constructor(i){super(`Invalid unit ${i}`)}},sn=class extends po{},Wi=class extends po{constructor(){super("Zone is an abstract class")}},ie="numeric",Oi="short",qn="long",Td={year:ie,month:ie,day:ie},Ay={year:ie,month:Oi,day:ie},XO={year:ie,month:Oi,day:ie,weekday:Oi},Ly={year:ie,month:qn,day:ie},zy={year:ie,month:qn,day:ie,weekday:qn},By={hour:ie,minute:ie},Fy={hour:ie,minute:ie,second:ie},Uy={hour:ie,minute:ie,second:ie,timeZoneName:Oi},Hy={hour:ie,minute:ie,second:ie,timeZoneName:qn},Vy={hour:ie,minute:ie,hourCycle:"h23"},qy={hour:ie,minute:ie,second:ie,hourCycle:"h23"},jy={hour:ie,minute:ie,second:ie,hourCycle:"h23",timeZoneName:Oi},$y={hour:ie,minute:ie,second:ie,hourCycle:"h23",timeZoneName:qn},Wy={year:ie,month:ie,day:ie,hour:ie,minute:ie},Gy={year:ie,month:ie,day:ie,hour:ie,minute:ie,second:ie},Yy={year:ie,month:Oi,day:ie,hour:ie,minute:ie},Ky={year:ie,month:Oi,day:ie,hour:ie,minute:ie,second:ie},eD={year:ie,month:Oi,day:ie,weekday:Oi,hour:ie,minute:ie},Zy={year:ie,month:qn,day:ie,hour:ie,minute:ie,timeZoneName:Oi},Qy={year:ie,month:qn,day:ie,hour:ie,minute:ie,second:ie,timeZoneName:Oi},Jy={year:ie,month:qn,day:ie,weekday:qn,hour:ie,minute:ie,timeZoneName:qn},Xy={year:ie,month:qn,day:ie,weekday:qn,hour:ie,minute:ie,second:ie,timeZoneName:qn},Mr=class{get type(){throw new Wi}get name(){throw new Wi}get ianaName(){return this.name}get isUniversal(){throw new Wi}offsetName(i,e){throw new Wi}formatOffset(i,e){throw new Wi}offset(i){throw new Wi}equals(i){throw new Wi}get isValid(){throw new Wi}},Om=null,Rd=class t extends Mr{static get instance(){return Om===null&&(Om=new t),Om}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(i,{format:e,locale:n}){return db(i,e,n)}formatOffset(i,e){return js(this.offset(i),e)}offset(i){return-new Date(i).getTimezoneOffset()}equals(i){return i.type==="system"}get isValid(){return!0}},Fm=new Map;function tD(t){let i=Fm.get(t);return i===void 0&&(i=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"}),Fm.set(t,i)),i}var nD={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function iD(t,i){let e=t.format(i).replace(/\u200E/g,""),n=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(e),[,o,r,a,s,l,c,d]=n;return[a,o,r,s,l,c,d]}function oD(t,i){let e=t.formatToParts(i),n=[];for(let o=0;o<e.length;o++){let{type:r,value:a}=e[o],s=nD[r];r==="era"?n[s]=a:Ie(s)||(n[s]=parseInt(a,10))}return n}var Dm=new Map,Zo=class t extends Mr{static create(i){let e=Dm.get(i);return e===void 0&&Dm.set(i,e=new t(i)),e}static resetCache(){Dm.clear(),Fm.clear()}static isValidSpecifier(i){return this.isValidZone(i)}static isValidZone(i){if(!i)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:i}).format(),!0}catch(e){return!1}}
25constructor(i){super(),this.zoneName=i,this.valid=t.isValidZone(i)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(i,{format:e,locale:n}){return db(i,e,n,this.name)}formatOffset(i,e){return js(this.offset(i),e)}offset(i){if(!this.valid)return NaN;let e=new Date(i);if(isNaN(e))return NaN;let n=tD(this.name),[o,r,a,s,l,c,d]=n.formatToParts?oD(n,e):iD(n,e);s==="BC"&&(o=-Math.abs(o)+1);let g=Fd({year:o,month:r,day:a,hour:l===24?0:l,minute:c,second:d,millisecond:0}),C=+e,R=C%1e3;return C-=R>=0?R:1e3+R,(g-C)/(60*1e3)}equals(i){return i.type==="iana"&&i.name===this.name}get isValid(){return this.valid}},ry={};function rD(t,i={}){let e=JSON.stringify([t,i]),n=ry[e];return n||(n=new Intl.ListFormat(t,i),ry[e]=n),n}var Um=new Map;function Hm(t,i={}){let e=JSON.stringify([t,i]),n=Um.get(e);return n===void 0&&(n=new Intl.DateTimeFormat(t,i),Um.set(e,n)),n}var Vm=new Map;function aD(t,i={}){let e=JSON.stringify([t,i]),n=Vm.get(e);return n===void 0&&(n=new Intl.NumberFormat(t,i),Vm.set(e,n)),n}var qm=new Map;function sD(t,i={}){let a=i,{base:e}=a,n=$p(a,["base"]),o=JSON.stringify([t,n]),r=qm.get(o);return r===void 0&&(r=new Intl.RelativeTimeFormat(t,i),qm.set(o,r)),r}var Hs=null;function lD(){return Hs||(Hs=new Intl.DateTimeFormat().resolvedOptions().locale,Hs)}var jm=new Map;function eb(t){let i=jm.get(t);return i===void 0&&(i=new Intl.DateTimeFormat(t).resolvedOptions(),jm.set(t,i)),i}var $m=new Map;function cD(t){let i=$m.get(t);if(!i){let e=new Intl.Locale(t);i="getWeekInfo"in e?e.getWeekInfo():e.weekInfo,"minimalDays"in i||(i=S(S({},tb),i)),$m.set(t,i)}return i}function dD(t){let i=t.indexOf("-x-");i!==-1&&(t=t.substring(0,i));let e=t.indexOf("-u-");if(e===-1)return[t];{let n,o;try{n=Hm(t).resolvedOptions(),o=t}catch(s){let l=t.substring(0,e);n=Hm(l).resolvedOptions(),o=l}let{numberingSystem:r,calendar:a}=n;return[o,r,a]}}function pD(t,i,e){return(e||i)&&(t.includes("-u-")||(t+="-u"),e&&(t+=`-ca-${e}`),i&&(t+=`-nu-${i}`)),t}function uD(t){let i=[];for(let e=1;e<=12;e++){let n=$e.utc(2009,e,1);i.push(t(n))}return i}function mD(t){let i=[];for(let e=1;e<=7;e++){let n=$e.utc(2016,11,13+e);i.push(t(n))}return i}function xd(t,i,e,n){let o=t.listingMode();return o==="error"?null:o==="en"?e(i):n(i)}function hD(t){return t.numberingSystem&&t.numberingSystem!=="latn"?!1:t.numberingSystem==="latn"||!t.locale||t.locale.startsWith("en")||eb(t.locale).numberingSystem==="latn"}var Wm=class{constructor(i,e,n){this.padTo=n.padTo||0,this.floor=n.floor||!1;let s=n,{padTo:o,floor:r}=s,a=$p(s,["padTo","floor"]);if(!e||Object.keys(a).length>0){let l=S({useGrouping:!1},n);n.padTo>0&&(l.minimumIntegerDigits=n.padTo),this.inf=aD(i,l)}}format(i){if(this.inf){let e=this.floor?Math.floor(i):i;return this.inf.format(e)}else{let e=this.floor?Math.floor(i):oh(i,3);return Yt(e,this.padTo)}}},Gm=class{constructor(i,e,n){this.opts=n,this.originalZone=void 0;let o;if(this.opts.timeZone)this.dt=i;else if(i.zone.type==="fixed"){let a=-1*(i.offset/60),s=a>=0?`Etc/GMT+${a}`:`Etc/GMT${a}`;i.offset!==0&&Zo.create(s).valid?(o=s,this.dt=i):(o="UTC",this.dt=i.offset===0?i:i.setZone("UTC").plus({minutes:i.offset}),this.originalZone=i.zone)}else i.zone.type==="system"?this.dt=i:i.zone.type==="iana"?(this.dt=i,o=i.zone.name):(o="UTC",this.dt=i.setZone("UTC").plus({minutes:i.offset}),this.originalZone=i.zone);let r=S({},this.opts);r.timeZone=r.timeZone||o,this.dtf=Hm(e,r)}format(){return this.originalZone?this.formatToParts().map(({value:i})=>i).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){let i=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?i.map(e=>{if(e.type==="timeZoneName"){let n=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return j(S({},e),{value:n})}else return e}):i}resolvedOptions(){return this.dtf.resolvedOptions()}},Ym=class{constructor(i,e,n){this.opts=S({style:"long"},n),!e&&lb()&&(this.rtf=sD(i,n))}format(i,e){return this.rtf?this.rtf.format(i,e):AD(e,i,this.opts.numeric,this.opts.style!=="long")}formatToParts(i,e){return this.rtf?this.rtf.formatToParts(i,e):[]}},tb={firstDay:1,minimalDays:4,weekend:[6,7]},ft=class t{static fromOpts(i){return t.create(i.locale,i.numberingSystem,i.outputCalendar,i.weekSettings,i.defaultToEN)}static create(i,e,n,o,r=!1){let a=i||It.defaultLocale,s=a||(r?"en-US":lD()),l=e||It.defaultNumberingSystem,c=n||It.defaultOutputCalendar,d=Qm(o)||It.defaultWeekSettings;return new t(s,l,c,d,a)}static resetCache(){Hs=null,Um.clear(),Vm.clear(),qm.clear(),jm.clear(),$m.clear()}static fromObject({locale:i,numberingSystem:e,outputCalendar:n,weekSettings:o}={}){return t.create(i,e,n,o)}
vendor: 18,686 bytes, line 25
25constructor(i,e,n,o,r){let[a,s,l]=dD(i);this.locale=a,this.numberingSystem=e||s||null,this.outputCalendar=n||l||null,this.weekSettings=o,this.intl=pD(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=r,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=hD(this)),this.fastNumbersCached}listingMode(){let i=this.isEnglish(),e=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return i&&e?"en":"intl"}clone(i){return!i||Object.getOwnPropertyNames(i).length===0?this:t.create(i.locale||this.specifiedLocale,i.numberingSystem||this.numberingSystem,i.outputCalendar||this.outputCalendar,Qm(i.weekSettings)||this.weekSettings,i.defaultToEN||!1)}redefaultToEN(i={}){return this.clone(j(S({},i),{defaultToEN:!0}))}redefaultToSystem(i={}){return this.clone(j(S({},i),{defaultToEN:!1}))}months(i,e=!1){return xd(this,i,mb,()=>{let n=this.intl==="ja"||this.intl.startsWith("ja-");e&=!n;let o=e?{month:i,day:"numeric"}:{month:i},r=e?"format":"standalone";if(!this.monthsCache[r][i]){let a=n?s=>this.dtFormatter(s,o).format():s=>this.extract(s,o,"month");this.monthsCache[r][i]=uD(a)}return this.monthsCache[r][i]})}weekdays(i,e=!1){return xd(this,i,gb,()=>{let n=e?{weekday:i,year:"numeric",month:"long",day:"numeric"}:{weekday:i},o=e?"format":"standalone";return this.weekdaysCache[o][i]||(this.weekdaysCache[o][i]=mD(r=>this.extract(r,n,"weekday"))),this.weekdaysCache[o][i]})}meridiems(){return xd(this,void 0,()=>_b,()=>{if(!this.meridiemCache){let i={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[$e.utc(2016,11,13,9),$e.utc(2016,11,13,19)].map(e=>this.extract(e,i,"dayperiod"))}return this.meridiemCache})}eras(i){return xd(this,i,Cb,()=>{let e={era:i};return this.eraCache[i]||(this.eraCache[i]=[$e.utc(-40,1,1),$e.utc(2017,1,1)].map(n=>this.extract(n,e,"era"))),this.eraCache[i]})}extract(i,e,n){let o=this.dtFormatter(i,e),r=o.formatToParts(),a=r.find(s=>s.type.toLowerCase()===n);return a?a.value:null}numberFormatter(i={}){return new Wm(this.intl,i.forceSimple||this.fastNumbers,i)}dtFormatter(i,e={}){return new Gm(i,this.intl,e)}relFormatter(i={}){return new Ym(this.intl,this.isEnglish(),i)}listFormatter(i={}){return rD(this.intl,i)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||eb(this.intl).locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:cb()?cD(this.locale):tb}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(i){return this.locale===i.locale&&this.numberingSystem===i.numberingSystem&&this.outputCalendar===i.outputCalendar}toString(){return`Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`}},Nm=null,hi=class t extends Mr{static get utcInstance(){return Nm===null&&(Nm=new t(0)),Nm}static instance(i){return i===0?t.utcInstance:new t(i)}static parseSpecifier(i){if(i){let e=i.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(e)return new t(Ud(e[1],e[2]))}return null}constructor(i){super(),this.fixed=i}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${js(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${js(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(i,e){return js(this.fixed,e)}get isUniversal(){return!0}offset(){return this.fixed}equals(i){return i.type==="fixed"&&i.fixed===this.fixed}get isValid(){return!0}},Km=class extends Mr{constructor(i){super(),this.zoneName=i}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}};function Go(t,i){if(Ie(t)||t===null)return i;if(t instanceof Mr)return t;if(bD(t)){let e=t.toLowerCase();return e==="default"?i:e==="local"||e==="system"?Rd.instance:e==="utc"||e==="gmt"?hi.utcInstance:hi.parseSpecifier(e)||Zo.create(t)}else return Ko(t)?hi.instance(t):typeof t=="object"&&"offset"in t&&typeof t.offset=="function"?t:new Km(t)}var eh={arab:"[\u0660-\u0669]",arabext:"[\u06F0-\u06F9]",bali:"[\u1B50-\u1B59]",beng:"[\u09E6-\u09EF]",deva:"[\u0966-\u096F]",fullwide:"[\uFF10-\uFF19]",gujr:"[\u0AE6-\u0AEF]",hanidec:"[\u3007|\u4E00|\u4E8C|\u4E09|\u56DB|\u4E94|\u516D|\u4E03|\u516B|\u4E5D]",khmr:"[\u17E0-\u17E9]",knda:"[\u0CE6-\u0CEF]",laoo:"[\u0ED0-\u0ED9]",limb:"[\u1946-\u194F]",mlym:"[\u0D66-\u0D6F]",mong:"[\u1810-\u1819]",mymr:"[\u1040-\u1049]",orya:"[\u0B66-\u0B6F]",tamldec:"[\u0BE6-\u0BEF]",telu:"[\u0C66-\u0C6F]",thai:"[\u0E50-\u0E59]",tibt:"[\u0F20-\u0F29]",latn:"\\d"},ay={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},fD=eh.hanidec.replace(/[\[|\]]/g,"").split("");function gD(t){let i=parseInt(t,10);if(isNaN(i)){i="";for(let e=0;e<t.length;e++){let n=t.charCodeAt(e);if(t[e].search(eh.hanidec)!==-1)i+=fD.indexOf(t[e]);else for(let o in ay){let[r,a]=ay[o];n>=r&&n<=a&&(i+=n-r)}}return parseInt(i,10)}else return i}var Zm=new Map;function _D(){Zm.clear()}function Pi({numberingSystem:t},i=""){let e=t||"latn",n=Zm.get(e);n===void 0&&(n=new Map,Zm.set(e,n));let o=n.get(i);return o===void 0&&(o=new RegExp(`${eh[e]}${i}`),n.set(i,o)),o}var sy=()=>Date.now(),ly="system",cy=null,dy=null,py=null,uy=60,my,hy=null,It=class{static get now(){return sy}static set now(i){sy=i}static set defaultZone(i){ly=i}static get defaultZone(){return Go(ly,Rd.instance)}static get defaultLocale(){return cy}static set defaultLocale(i){cy=i}static get defaultNumberingSystem(){return dy}static set defaultNumberingSystem(i){dy=i}static get defaultOutputCalendar(){return py}static set defaultOutputCalendar(i){py=i}static get defaultWeekSettings(){return hy}static set defaultWeekSettings(i){hy=Qm(i)}static get twoDigitCutoffYear(){return uy}static set twoDigitCutoffYear(i){uy=i%100}static get throwOnInvalid(){return my}static set throwOnInvalid(i){my=i}static resetCaches(){ft.resetCache(),Zo.resetCache(),$e.resetCache(),_D()}},Vn=class{constructor(i,e){this.reason=i,this.explanation=e}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}},nb=[0,31,59,90,120,151,181,212,243,273,304,334],ib=[0,31,60,91,121,152,182,213,244,274,305,335];function ui(t,i){return new Vn("unit out of range",`you specified ${i} (of type ${typeof i}) as a ${t}, which is invalid`)}function th(t,i,e){let n=new Date(Date.UTC(t,i-1,e));t<100&&t>=0&&n.setUTCFullYear(n.getUTCFullYear()-1900);let o=n.getUTCDay();return o===0?7:o}function ob(t,i,e){return e+(Ws(t)?ib:nb)[i-1]}function rb(t,i){let e=Ws(t)?ib:nb,n=e.findIndex(r=>r<i),o=i-e[n];return{month:n+1,day:o}}function nh(t,i){return(t-i+7)%7+1}function Ed(t,i=4,e=1){let{year:n,month:o,day:r}=t,a=ob(n,o,r),s=nh(th(n,o,r),e),l=Math.floor((a-s+14-i)/7),c;return l<1?(c=n-1,l=$s(c,i,e)):l>$s(n,i,e)?(c=n+1,l=1):c=n,S({weekYear:c,weekNumber:l,weekday:s},Hd(t))}function fy(t,i=4,e=1){let{weekYear:n,weekNumber:o,weekday:r}=t,a=nh(th(n,1,i),e),s=Ra(n),l=o*7+r-a-7+i,c;l<1?(c=n-1,l+=Ra(c)):l>s?(c=n+1,l-=Ra(n)):c=n;let{month:d,day:m}=rb(c,l);return S({year:c,month:d,day:m},Hd(t))}function Im(t){let{year:i,month:e,day:n}=t,o=ob(i,e,n);return S({year:i,ordinal:o},Hd(t))}function gy(t){let{year:i,ordinal:e}=t,{month:n,day:o}=rb(i,e);return S({year:i,month:n,day:o},Hd(t))}function _y(t,i){if(!Ie(t.localWeekday)||!Ie(t.localWeekNumber)||!Ie(t.localWeekYear)){if(!Ie(t.weekday)||!Ie(t.weekNumber)||!Ie(t.weekYear))throw new Yo("Cannot mix locale-based week fields with ISO-based week fields");return Ie(t.localWeekday)||(t.weekday=t.localWeekday),Ie(t.localWeekNumber)||(t.weekNumber=t.localWeekNumber),Ie(t.localWeekYear)||(t.weekYear=t.localWeekYear),delete t.localWeekday,delete t.localWeekNumber,delete t.localWeekYear,{minDaysInFirstWeek:i.getMinDaysInFirstWeek(),startOfWeek:i.getStartOfWeek()}}else return{minDaysInFirstWeek:4,startOfWeek:1}}function CD(t,i=4,e=1){let n=Bd(t.weekYear),o=mi(t.weekNumber,1,$s(t.weekYear,i,e)),r=mi(t.weekday,1,7);return n?o?r?!1:ui("weekday",t.weekday):ui("week",t.weekNumber):ui("weekYear",t.weekYear)}function yD(t){let i=Bd(t.year),e=mi(t.ordinal,1,Ra(t.year));return i?e?!1:ui("ordinal",t.ordinal):ui("year",t.year)}function ab(t){let i=Bd(t.year),e=mi(t.month,1,12),n=mi(t.day,1,Ad(t.year,t.month));return i?e?n?!1:ui("day",t.day):ui("month",t.month):ui("year",t.year)}function sb(t){let{hour:i,minute:e,second:n,millisecond:o}=t,r=mi(i,0,23)||i===24&&e===0&&n===0&&o===0,a=mi(e,0,59),s=mi(n,0,59),l=mi(o,0,999);return r?a?s?l?!1:ui("millisecond",o):ui("second",n):ui("minute",e):ui("hour",i)}function Ie(t){return typeof t>"u"}function Ko(t){return typeof t=="number"}function Bd(t){return typeof t=="number"&&t%1===0}function bD(t){return typeof t=="string"}function SD(t){return Object.prototype.toString.call(t)==="[object Date]"}function lb(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch(t){return!1}}function cb(){try{return typeof Intl<"u"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch(t){return!1}}function vD(t){return Array.isArray(t)?t:[t]}function Cy(t,i,e){if(t.length!==0)return t.reduce((n,o)=>{let r=[i(o),o];return n&&e(n[0],r[0])===n[0]?n:r},null)[1]}function wD(t,i){return i.reduce((e,n)=>(e[n]=t[n],e),{})}function La(t,i){return Object.prototype.hasOwnProperty.call(t,i)}function Qm(t){if(t==null)return null;if(typeof t!="object")throw new sn("Week settings must be an object");if(!mi(t.firstDay,1,7)||!mi(t.minimalDays,1,7)||!Array.isArray(t.weekend)||t.weekend.some(i=>!mi(i,1,7)))throw new sn("Invalid week settings");return{firstDay:t.firstDay,minimalDays:t.minimalDays,weekend:Array.from(t.weekend)}}function mi(t,i,e){return Bd(t)&&t>=i&&t<=e}function xD(t,i){return t-i*Math.floor(t/i)}function Yt(t,i=2){let e=t<0,n;return e?n="-"+(""+-t).padStart(i,"0"):n=(""+t).padStart(i,"0"),n}function Wo(t){if(!(Ie(t)||t===null||t===""))return parseInt(t,10)}function wr(t){if(!(Ie(t)||t===null||t===""))return parseFloat(t)}function ih(t){if(!(Ie(t)||t===null||t==="")){let i=parseFloat("0."+t)*1e3;return Math.floor(i)}}function oh(t,i,e="round"){let n=10**i;switch(e){case"expand":return t>0?Math.ceil(t*n)/n:Math.floor(t*n)/n;case"trunc":return Math.trunc(t*n)/n;case"round":return Math.round(t*n)/n;case"floor":return Math.floor(t*n)/n;case"ceil":return Math.ceil(t*n)/n;default:throw new RangeError(`Value rounding ${e} is out of range`)}}function Ws(t){return t%4===0&&(t%100!==0||t%400===0)}function Ra(t){return Ws(t)?366:365}function Ad(t,i){let e=xD(i-1,12)+1,n=t+(i-e)/12;return e===2?Ws(n)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][e-1]}function Fd(t){let i=Date.UTC(t.year,t.month-1,t.day,t.hour,t.minute,t.second,t.millisecond);return t.year<100&&t.year>=0&&(i=new Date(i),i.setUTCFullYear(t.year,t.month-1,t.day)),+i}function yy(t,i,e){return-nh(th(t,1,i),e)+i-1}function $s(t,i=4,e=1){let n=yy(t,i,e),o=yy(t+1,i,e);return(Ra(t)-n+o)/7}function Jm(t){return t>99?t:t>It.twoDigitCutoffYear?1900+t:2e3+t}function db(t,i,e,n=null){let o=new Date(t),r={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};n&&(r.timeZone=n);let a=S({timeZoneName:i},r),s=new Intl.DateTimeFormat(e,a).formatToParts(o).find(l=>l.type.toLowerCase()==="timezonename");return s?s.value:null}function Ud(t,i){let e=parseInt(t,10);Number.isNaN(e)&&(e=0);let n=parseInt(i,10)||0,o=e<0||Object.is(e,-0)?-n:n;return e*60+o}function pb(t){let i=Number(t);if(typeof t=="boolean"||t===""||!Number.isFinite(i))throw new sn(`Invalid unit value ${t}`);return i}function Ld(t,i){let e={};for(let n in t)if(La(t,n)){let o=t[n];if(o==null)continue;e[i(n)]=pb(o)}return e}function js(t,i){let e=Math.trunc(Math.abs(t/60)),n=Math.trunc(Math.abs(t%60)),o=t>=0?"+":"-";switch(i){case"short":return`${o}${Yt(e,2)}:${Yt(n,2)}`;case"narrow":return`${o}${e}${n>0?`:${n}`:""}`;case"techie":return`${o}${Yt(e,2)}${Yt(n,2)}`;default:throw new RangeError(`Value format ${i} is out of range for property format`)}}function Hd(t){return wD(t,["hour","minute","second","millisecond"])}var PD=["January","February","March","April","May","June","July","August","September","October","November","December"],ub=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],MD=["J","F","M","A","M","J","J","A","S","O","N","D"];function mb(t){switch(t){case"narrow":return[...MD];case"short":return[...ub];case"long":return[...PD];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}var hb=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],fb=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],OD=["M","T","W","T","F","S","S"];function gb(t){switch(t){case"narrow":return[...OD];case"short":return[...fb];case"long":return[...hb];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}var _b=["AM","PM"],DD=["Before Christ","Anno Domini"],ND=["BC","AD"],ID=["B","A"];function Cb(t){switch(t){case"narrow":return[...ID];case"short":return[...ND];case"long":return[...DD];default:return null}}function kD(t){return _b[t.hour<12?0:1]}function TD(t,i){return gb(i)[t.weekday-1]}function RD(t,i){return mb(i)[t.month-1]}function ED(t,i){return Cb(i)[t.year<0?0:1]}function AD(t,i,e="always",n=!1){let o={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},r=["hours","minutes","seconds"].indexOf(t)===-1;if(e==="auto"&&r){let m=t==="days";switch(i){case 1:return m?"tomorrow":`next ${o[t][0]}`;case-1:return m?"yesterday":`last ${o[t][0]}`;case 0:return m?"today":`this ${o[t][0]}`}}let a=Object.is(i,-0)||i<0,s=Math.abs(i),l=s===1,c=o[t],d=n?l?c[1]:c[2]||c[1]:l?o[t][0]:t;return a?`${s} ${d} ago`:`in ${s} ${d}`}function by(t,i){let e="";for(let n of t)n.literal?e+=n.val:e+=i(n.val);return e}var LD={D:Td,DD:Ay,DDD:Ly,DDDD:zy,t:By,tt:Fy,ttt:Uy,tttt:Hy,T:Vy,TT:qy,TTT:jy,TTTT:$y,f:Wy,ff:Yy,fff:Zy,ffff:Jy,F:Gy,FF:Ky,FFF:Qy,FFFF:Xy},Hn=class t{static create(i,e={}){return new t(i,e)}static parseFormat(i){let e=null,n="",o=!1,r=[];for(let a=0;a<i.length;a++){let s=i.charAt(a);s==="'"?((n.length>0||o)&&r.push({literal:o||/^\s+$/.test(n),val:n===""?"'":n}),e=null,n="",o=!o):o||s===e?n+=s:(n.length>0&&r.push({literal:/^\s+$/.test(n),val:n}),n=s,e=s)}return n.length>0&&r.push({literal:o||/^\s+$/.test(n),val:n}),r}static macroTokenToFormatOpts(i){return LD[i]}constructor(i,e){this.opts=e,this.loc=i,this.systemLoc=null}formatWithSystemDefault(i,e){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(i,S(S({},this.opts),e)).format()}dtFormatter(i,e={}){return this.loc.dtFormatter(i,S(S({},this.opts),e))}formatDateTime(i,e){return this.dtFormatter(i,e).format()}formatDateTimeParts(i,e){return this.dtFormatter(i,e).formatToParts()}formatInterval(i,e){return this.dtFormatter(i.start,e).dtf.formatRange(i.start.toJSDate(),i.end.toJSDate())}resolvedOptions(i,e){return this.dtFormatter(i,e).resolvedOptions()}num(i,e=0,n=void 0){if(this.opts.forceSimple)return Yt(i,e);let o=S({},this.opts);return e>0&&(o.padTo=e),n&&(o.signDisplay=n),this.loc.numberFormatter(o).format(i)}formatDateTimeFromString(i,e){let n=this.loc.listingMode()==="en",o=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",r=(C,R)=>this.loc.extract(i,C,R),a=C=>i.isOffsetFixed&&i.offset===0&&C.allowZ?"Z":i.isValid?i.zone.formatOffset(i.ts,C.format):"",s=()=>n?kD(i):r({hour:"numeric",hourCycle:"h12"},"dayperiod"),l=(C,R)=>n?RD(i,C):r(R?{month:C}:{month:C,day:"numeric"},"month"),c=(C,R)=>n?TD(i,C):r(R?{weekday:C}:{weekday:C,month:"long",day:"numeric"},"weekday"),d=C=>{let R=t.macroTokenToFormatOpts(C);return R?this.formatWithSystemDefault(i,R):C},m=C=>n?ED(i,C):r({era:C},"era"),g=C=>{switch(C){case"S":return this.num(i.millisecond);case"u":case"SSS":return this.num(i.millisecond,3);case"s":return this.num(i.second);case"ss":return this.num(i.second,2);case"uu":return this.num(Math.floor(i.millisecond/10),2);case"uuu":return this.num(Math.floor(i.millisecond/100));case"m":return this.num(i.minute);case"mm":return this.num(i.minute,2);case"h":return this.num(i.hour%12===0?12:i.hour%12);case"hh":return this.num(i.hour%12===0?12:i.hour%12,2);case"H":return this.num(i.hour);case"HH":return this.num(i.hour,2);case"Z":return a({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return a({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return a({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return i.zone.offsetName(i.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return i.zone.offsetName(i.ts,{format:"long",locale:this.loc.locale});case"z":return i.zoneName;case"a":return s();case"d":return o?r({day:"numeric"},"day"):this.num(i.day);case"dd":return o?r({day:"2-digit"},"day"):this.num(i.day,2);case"c":return this.num(i.weekday);case"ccc":return c("short",!0);case"cccc":return c("long",!0);case"ccccc":return c("narrow",!0);case"E":return this.num(i.weekday);case"EEE":return c("short",!1);case"EEEE":return c("long",!1);case"EEEEE":return c("narrow",!1);case"L":return o?r({month:"numeric",day:"numeric"},"month"):this.num(i.month);case"LL":return o?r({month:"2-digit",day:"numeric"},"month"):this.num(i.month,2);case"LLL":return l("short",!0);case"LLLL":return l("long",!0);case"LLLLL":return l("narrow",!0);case"M":return o?r({month:"numeric"},"month"):this.num(i.month);case"MM":return o?r({month:"2-digit"},"month"):this.num(i.month,2);case"MMM":return l("short",!1);case"MMMM":return l("long",!1);case"MMMMM":return l("narrow",!1);case"y":return o?r({year:"numeric"},"year"):this.num(i.year);case"yy":return o?r({year:"2-digit"},"year"):this.num(i.year.toString().slice(-2),2);case"yyyy":return o?r({year:"numeric"},"year"):this.num(i.year,4);case"yyyyyy":return o?r({year:"numeric"},"year"):this.num(i.year,6);case"G":return m("short");case"GG":return m("long");case"GGGGG":return m("narrow");case"kk":return this.num(i.weekYear.toString().slice(-2),2);case"kkkk":return this.num(i.weekYear,4);case"W":return this.num(i.weekNumber);
25case"WW":return this.num(i.weekNumber,2);case"n":return this.num(i.localWeekNumber);case"nn":return this.num(i.localWeekNumber,2);case"ii":return this.num(i.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(i.localWeekYear,4);case"o":return this.num(i.ordinal);case"ooo":return this.num(i.ordinal,3);case"q":return this.num(i.quarter);case"qq":return this.num(i.quarter,2);case"X":return this.num(Math.floor(i.ts/1e3));case"x":return this.num(i.ts);default:return d(C)}};return by(t.parseFormat(e),g)}formatDurationFromString(i,e){let n=this.opts.signMode==="negativeLargestOnly"?-1:1,o=d=>{switch(d[0]){case"S":return"milliseconds";case"s":return"seconds";case"m":return"minutes";case"h":return"hours";case"d":return"days";case"w":return"weeks";case"M":return"months";case"y":return"years";default:return null}},r=(d,m)=>g=>{let C=o(g);if(C){let R=m.isNegativeDuration&&C!==m.largestUnit?n:1,F;return this.opts.signMode==="negativeLargestOnly"&&C!==m.largestUnit?F="never":this.opts.signMode==="all"?F="always":F="auto",this.num(d.get(C)*R,g.length,F)}else return g},a=t.parseFormat(e),s=a.reduce((d,{literal:m,val:g})=>m?d:d.concat(g),[]),l=i.shiftTo(...s.map(o).filter(d=>d)),c={isNegativeDuration:l<0,largestUnit:Object.keys(l.values)[0]};return by(a,r(l,c))}},yb=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function za(...t){let i=t.reduce((e,n)=>e+n.source,"");return RegExp(`^${i}$`)}function Ba(...t){return i=>t.reduce(([e,n,o],r)=>{let[a,s,l]=r(i,o);return[S(S({},e),a),s||n,l]},[{},null,1]).slice(0,2)}function Fa(t,...i){if(t==null)return[null,null];for(let[e,n]of i){let o=e.exec(t);if(o)return n(o)}return[null,null]}function bb(...t){return(i,e)=>{let n={},o;for(o=0;o<t.length;o++)n[t[o]]=Wo(i[e+o]);return[n,null,e+o]}}var Sb=/(?:([Zz])|([+-]\d\d)(?::?(\d\d))?)/,zD=`(?:${Sb.source}?(?:\\[(${yb.source})\\])?)?`,rh=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,vb=RegExp(`${rh.source}${zD}`),ah=RegExp(`(?:[Tt]${vb.source})?`),BD=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,FD=/(\d{4})-?W(\d\d)(?:-?(\d))?/,UD=/(\d{4})-?(\d{3})/,HD=bb("weekYear","weekNumber","weekDay"),VD=bb("year","ordinal"),qD=/(\d{4})-(\d\d)-(\d\d)/,wb=RegExp(`${rh.source} ?(?:${Sb.source}|(${yb.source}))?`),jD=RegExp(`(?: ${wb.source})?`);function Ea(t,i,e){let n=t[i];return Ie(n)?e:Wo(n)}function $D(t,i){return[{year:Ea(t,i),month:Ea(t,i+1,1),day:Ea(t,i+2,1)},null,i+3]}function Ua(t,i){return[{hours:Ea(t,i,0),minutes:Ea(t,i+1,0),seconds:Ea(t,i+2,0),milliseconds:ih(t[i+3])},null,i+4]}function Gs(t,i){let e=!t[i]&&!t[i+1],n=Ud(t[i+1],t[i+2]),o=e?null:hi.instance(n);return[{},o,i+3]}function Ys(t,i){let e=t[i]?Zo.create(t[i]):null;return[{},e,i+1]}var WD=RegExp(`^T?${rh.source}$`),GD=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function YD(t){let[i,e,n,o,r,a,s,l,c]=t,d=i[0]==="-",m=l&&l[0]==="-",g=(C,R=!1)=>C!==void 0&&(R||C&&d)?-C:C;return[{years:g(wr(e)),months:g(wr(n)),weeks:g(wr(o)),days:g(wr(r)),hours:g(wr(a)),minutes:g(wr(s)),seconds:g(wr(l),l==="-0"),milliseconds:g(ih(c),m)}]}var KD={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function sh(t,i,e,n,o,r,a){let s={year:i.length===2?Jm(Wo(i)):Wo(i),month:ub.indexOf(e)+1,day:Wo(n),hour:Wo(o),minute:Wo(r)};return a&&(s.second=Wo(a)),t&&(s.weekday=t.length>3?hb.indexOf(t)+1:fb.indexOf(t)+1),s}var ZD=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function QD(t){let[,i,e,n,o,r,a,s,l,c,d,m]=t,g=sh(i,o,n,e,r,a,s),C;return l?C=KD[l]:c?C=0:C=Ud(d,m),[g,new hi(C)]}function JD(t){return t.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}var XD=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,eN=/^(Monday|Tuesday|Wednesday|Thursday|Frid
25ay|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,tN=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function Sy(t){let[,i,e,n,o,r,a,s]=t;return[sh(i,o,n,e,r,a,s),hi.utcInstance]}function nN(t){let[,i,e,n,o,r,a,s]=t;return[sh(i,s,e,n,o,r,a),hi.utcInstance]}var iN=za(BD,ah),oN=za(FD,ah),rN=za(UD,ah),aN=za(vb),xb=Ba($D,Ua,Gs,Ys),sN=Ba(HD,Ua,Gs,Ys),lN=Ba(VD,Ua,Gs,Ys),cN=Ba(Ua,Gs,Ys);function dN(t){return Fa(t,[iN,xb],[oN,sN],[rN,lN],[aN,cN])}function pN(t){return Fa(JD(t),[ZD,QD])}function uN(t){return Fa(t,[XD,Sy],[eN,Sy],[tN,nN])}function mN(t){return Fa(t,[GD,YD])}var hN=Ba(Ua);function fN(t){return Fa(t,[WD,hN])}var gN=za(qD,jD),_N=za(wb),CN=Ba(Ua,Gs,Ys);function yN(t){return Fa(t,[gN,xb],[_N,CN])}var vy="Invalid Duration",Pb={weeks:{days:7,hours:168,minutes:10080,seconds:10080*60,milliseconds:10080*60*1e3},days:{hours:24,minutes:1440,seconds:1440*60,milliseconds:1440*60*1e3},hours:{minutes:60,seconds:3600,milliseconds:3600*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},bN=S({years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:2184,minutes:2184*60,seconds:2184*60*60,milliseconds:2184*60*60*1e3},months:{weeks:4,days:30,hours:720,minutes:720*60,seconds:720*60*60,milliseconds:720*60*60*1e3}},Pb),pi=146097/400,Na=146097/4800,SN=S({years:{quarters:4,months:12,weeks:pi/7,days:pi,hours:pi*24,minutes:pi*24*60,seconds:pi*24*60*60,milliseconds:pi*24*60*60*1e3},quarters:{months:3,weeks:pi/28,days:pi/4,hours:pi*24/4,minutes:pi*24*60/4,seconds:pi*24*60*60/4,milliseconds:pi*24*60*60*1e3/4},months:{weeks:Na/7,days:Na,hours:Na*24,minutes:Na*24*60,seconds:Na*24*60*60,milliseconds:Na*24*60*60*1e3}},Pb),Pr=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],vN=Pr.slice(0).reverse();function co(t,i,e=!1){let n={values:e?i.values:S(S({},t.values),i.values||{}),loc:t.loc.clone(i.loc),conversionAccuracy:i.conversionAccuracy||t.conversionAccuracy,matrix:i.matrix||t.matrix};return new ln(n)}function Mb(t,i){let e=i.milliseconds??0;for(let n of vN.slice(1))i[n]&&(e+=i[n]*t[n].milliseconds);return e}function wy(t,i){let e=Mb(t,i)<0?-1:1;Pr.reduceRight((n,o)=>
vendor: 32,916 bytes, line 25
25{if(Ie(i[o]))return n;if(n){let r=i[n]*e,a=t[o][n],s=Math.floor(r/a);i[o]+=s*e,i[n]-=s*a*e}return o},null),Pr.reduce((n,o)=>{if(Ie(i[o]))return n;if(n){let r=i[n]%1;i[n]-=r,i[o]+=r*t[n][o]}return o},null)}function xy(t){let i={};for(let[e,n]of Object.entries(t))n!==0&&(i[e]=n);return i}var ln=class t{constructor(i){let e=i.conversionAccuracy==="longterm"||!1,n=e?SN:bN;i.matrix&&(n=i.matrix),this.values=i.values,this.loc=i.loc||ft.create(),this.conversionAccuracy=e?"longterm":"casual",this.invalid=i.invalid||null,this.matrix=n,this.isLuxonDuration=!0}static fromMillis(i,e){return t.fromObject({milliseconds:i},e)}static fromObject(i,e={}){if(i==null||typeof i!="object")throw new sn(`Duration.fromObject: argument expected to be an object, got ${i===null?"null":typeof i}`);return new t({values:Ld(i,t.normalizeUnit),loc:ft.fromObject(e),conversionAccuracy:e.conversionAccuracy,matrix:e.matrix})}static fromDurationLike(i){if(Ko(i))return t.fromMillis(i);if(t.isDuration(i))return i;if(typeof i=="object")return t.fromObject(i);throw new sn(`Unknown duration argument ${i} of type ${typeof i}`)}static fromISO(i,e){let[n]=mN(i);return n?t.fromObject(n,e):t.invalid("unparsable",`the input "${i}" can't be parsed as ISO 8601`)}static fromISOTime(i,e){let[n]=fN(i);return n?t.fromObject(n,e):t.invalid("unparsable",`the input "${i}" can't be parsed as ISO 8601`)}static invalid(i,e=null){if(!i)throw new sn("need to specify a reason the Duration is invalid");let n=i instanceof Vn?i:new Vn(i,e);if(It.throwOnInvalid)throw new Bm(n);return new t({invalid:n})}static normalizeUnit(i){let e={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[i&&i.toLowerCase()];if(!e)throw new kd(i);return e}static isDuration(i){return i&&i.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(i,e={}){let n=j(S({},e),{floor:e.round!==!1&&e.floor!==!1});return this.isValid?Hn.create(this.loc,n).formatDurationFromString(this,i):vy}toHuman(i={}){if(!this.isValid)return vy;let e=i.showZeros!==!1,n=Pr.map(o=>{let r=this.values[o];return Ie(r)||r===0&&!e?null:this.loc.numberFormatter(j(S({style:"unit",unitDisplay:"long"},i),{unit:o.slice(0,-1)})).format(r)}).filter(o=>o);return this.loc.listFormatter(S({type:"conjunction",style:i.listStyle||"narrow"},i)).format(n)}toObject(){return this.isValid?S({},this.values):{}}toISO(){if(!this.isValid)return null;let i="P";return this.years!==0&&(i+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(i+=this.months+this.quarters*3+"M"),this.weeks!==0&&(i+=this.weeks+"W"),this.days!==0&&(i+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(i+="T"),this.hours!==0&&(i+=this.hours+"H"),this.minutes!==0&&(i+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(i+=oh(this.seconds+this.milliseconds/1e3,3)+"S"),i==="P"&&(i+="T0S"),i}toISOTime(i={}){if(!this.isValid)return null;let e=this.toMillis();return e<0||e>=864e5?null:(i=j(S({suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended"},i),{includeOffset:!1}),$e.fromMillis(e,{zone:"UTC"}).toISOTime(i))}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?Mb(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(i){if(!this.isValid)return this;let e=t.fromDurationLike(i),n={};for(let o of Pr)(La(e.values,o)||La(this.values,o))&&(n[o]=e.get(o)+this.get(o));return co(this,{values:n},!0)}minus(i){if(!this.isValid)return this;let e=t.fromDurationLike(i);return this.plus(e.negate())}mapUnits(i){if(!this.isValid)return this;let e={};for(let n of Object.keys(this.values))e[n]=pb(i(this.values[n],n));return co(this,{values:e},!0)}get(i){return this[t.normalizeUnit(i)]}set(i){if(!this.isValid)return this;let e=S(S({},this.values),Ld(i,t.normalizeUnit));return co(this,{values:e})}reconfigure({locale:i,numberingSystem:e,conversionAccuracy:n,matrix:o}={}){let a={loc:this.loc.clone({locale:i,numberingSystem:e}),matrix:o,conversionAccuracy:n};return co(this,a)}as(i){return this.isValid?this.shiftTo(i).get(i):NaN}normalize(){if(!this.isValid)return this;let i=this.toObject();return wy(this.matrix,i),co(this,{values:i},!0)}rescale(){if(!this.isValid)return this;let i=xy(this.normalize().shiftToAll().toObject());return co(this,{values:i},!0)}shiftTo(...i){if(!this.isValid)return this;if(i.length===0)return this;i=i.map(a=>t.normalizeUnit(a));let e={},n={},o=this.toObject(),r;for(let a of Pr)if(i.indexOf(a)>=0){r=a;let s=0;for(let c in n)s+=this.matrix[c][a]*n[c],n[c]=0;Ko(o[a])&&(s+=o[a]);let l=Math.trunc(s);e[a]=l,n[a]=(s*1e3-l*1e3)/1e3}else Ko(o[a])&&(n[a]=o[a]);for(let a in n)n[a]!==0&&(e[r]+=a===r?n[a]:n[a]/this.matrix[r][a]);return wy(this.matrix,e),co(this,{values:e},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;let i={};for(let e of Object.keys(this.values))i[e]=this.values[e]===0?0:-this.values[e];return co(this,{values:i},!0)}removeZeros(){if(!this.isValid)return this;let i=xy(this.values);return co(this,{values:i},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(i){if(!this.isValid||!i.isValid||!this.loc.equals(i.loc))return!1;function e(n,o){return n===void 0||n===0?o===void 0||o===0:n===o}for(let n of Pr)if(!e(this.values[n],i.values[n]))return!1;return!0}},Ia="Invalid Interval";function wN(t,i){return!t||!t.isValid?Aa.invalid("missing or invalid start"):!i||!i.isValid?Aa.invalid("missing or invalid end"):i<t?Aa.invalid("end before start",`The end of an interval must be after its start, but you had start=${t.toISO()} and end=${i.toISO()}`):null}var Aa=class t{constructor(i){this.s=i.start,this.e=i.end,this.invalid=i.invalid||null,this.isLuxonInterval=!0}static invalid(i,e=null){if(!i)throw new sn("need to specify a reason the Interval is invalid");let n=i instanceof Vn?i:new Vn(i,e);if(It.throwOnInvalid)throw new zm(n);return new t({invalid:n})}static fromDateTimes(i,e){let n=Us(i),o=Us(e),r=wN(n,o);return r??new t({start:n,end:o})}static after(i,e){let n=ln.fromDurationLike(e),o=Us(i);return t.fromDateTimes(o,o.plus(n))}static before(i,e){let n=ln.fromDurationLike(e),o=Us(i);return t.fromDateTimes(o.minus(n),o)}static fromISO(i,e){let[n,o]=(i||"").split("/",2);if(n&&o){let r,a;try{r=$e.fromISO(n,e),a=r.isValid}catch(c){a=!1}let s,l;try{s=$e.fromISO(o,e),l=s.isValid}catch(c){l=!1}if(a&&l)return t.fromDateTimes(r,s);if(a){let c=ln.fromISO(o,e);if(c.isValid)return t.after(r,c)}else if(l){let c=ln.fromISO(n,e);if(c.isValid)return t.before(s,c)}}return t.invalid("unparsable",`the input "${i}" can't be parsed as ISO 8601`)}static isInterval(i){return i&&i.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get lastDateTime(){return this.isValid&&this.e?this.e.minus(1):null}get isValid(){return this.invalidReason===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(i="milliseconds"){return this.isValid?this.toDuration(i).get(i):NaN}count(i="milliseconds",e){if(!this.isValid)return NaN;let n=this.start.startOf(i,e),o;return e?.useLocaleWeeks?o=this.end.reconfigure({locale:n.locale}):o=this.end,o=o.startOf(i,e),Math.floor(o.diff(n,i).get(i))+(o.valueOf()!==this.end.valueOf())}hasSame(i){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,i):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(i){return this.isValid?this.s>i:!1}isBefore(i){return this.isValid?this.e<=i:!1}contains(i){return this.isValid?this.s<=i&&this.e>i:!1}set({start:i,end:e}={}){return this.isValid?t.fromDateTimes(i||this.s,e||this.e):this}splitAt(...i){if(!this.isValid)return[];let e=i.map(Us).filter(a=>this.contains(a)).sort((a,s)=>a.toMillis()-s.toMillis()),n=[],{s:o}=this,r=0;for(;o<this.e;){let a=e[r]||this.e,s=+a>+this.e?this.e:a;n.push(t.fromDateTimes(o,s)),o=s,r+=1}return n}splitBy(i){let e=ln.fromDurationLike(i);if(!this.isValid||!e.isValid||e.as("milliseconds")===0)return[];let{s:n}=this,o=1,r,a=[];for(;n<this.e;){let s=this.start.plus(e.mapUnits(l=>l*o));r=+s>+this.e?this.e:s,a.push(t.fromDateTimes(n,r)),n=r,o+=1}return a}divideEqually(i){return this.isValid?this.splitBy(this.length()/i).slice(0,i):[]}overlaps(i){return this.e>i.s&&this.s<i.e}abutsStart(i){return this.isValid?+this.e==+i.s:!1}abutsEnd(i){return this.isValid?+i.e==+this.s:!1}engulfs(i){return this.isValid?this.s<=i.s&&this.e>=i.e:!1}equals(i){return!this.isValid||!i.isValid?!1:this.s.equals(i.s)&&this.e.equals(i.e)}intersection(i){if(!this.isValid)return this;let e=this.s>i.s?this.s:i.s,n=this.e<i.e?this.e:i.e;return e>=n?null:t.fromDateTimes(e,n)}union(i){if(!this.isValid)return this;let e=this.s<i.s?this.s:i.s,n=this.e>i.e?this.e:i.e;return t.fromDateTimes(e,n)}static merge(i){let[e,n]=i.sort((o,r)=>o.s-r.s).reduce(([o,r],a)=>r?r.overlaps(a)||r.abutsStart(a)?[o,r.union(a)]:[o.concat([r]),a]:[o,a],[[],null]);return n&&e.push(n),e}static xor(i){let e=null,n=0,o=[],r=i.map(l=>[{time:l.s,type:"s"},{time:l.e,type:"e"}]),a=Array.prototype.concat(...r),s=a.sort((l,c)=>l.time-c.time);for(let l of s)n+=l.type==="s"?1:-1,n===1?e=l.time:(e&&+e!=+l.time&&o.push(t.fromDateTimes(e,l.time)),e=null);return t.merge(o)}difference(...i){return t.xor([this].concat(i)).map(e=>this.intersection(e)).filter(e=>e&&!e.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} \u2013 ${this.e.toISO()})`:Ia}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(i=Td,e={}){return this.isValid?Hn.create(this.s.loc.clone(e),i).formatInterval(this):Ia}toISO(i){return this.isValid?`${this.s.toISO(i)}/${this.e.toISO(i)}`:Ia}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:Ia}toISOTime(i){return this.isValid?`${this.s.toISOTime(i)}/${this.e.toISOTime(i)}`:Ia}toFormat(i,{separator:e=" \u2013 "}={}){return this.isValid?`${this.s.toFormat(i)}${e}${this.e.toFormat(i)}`:Ia}toDuration(i,e){return this.isValid?this.e.diff(this.s,i,e):ln.invalid(this.invalidReason)}mapEndpoints(i){return t.fromDateTimes(i(this.s),i(this.e))}},Ta=class{static hasDST(i=It.defaultZone){let e=$e.now().setZone(i).set({month:12});return!i.isUniversal&&e.offset!==e.set({month:6}).offset}static isValidIANAZone(i){return Zo.isValidZone(i)}static normalizeZone(i){return Go(i,It.defaultZone)}static getStartOfWeek({locale:i=null,locObj:e=null}={}){return(e||ft.create(i)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:i=null,locObj:e=null}={}){return(e||ft.create(i)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:i=null,locObj:e=null}={}){return(e||ft.create(i)).getWeekendDays().slice()}static months(i="long",{locale:e=null,numberingSystem:n=null,locObj:o=null,outputCalendar:r="gregory"}={}){return(o||ft.create(e,n,r)).months(i)}static monthsFormat(i="long",{locale:e=null,numberingSystem:n=null,locObj:o=null,outputCalendar:r="gregory"}={}){return(o||ft.create(e,n,r)).months(i,!0)}static weekdays(i="long",{locale:e=null,numberingSystem:n=null,locObj:o=null}={}){return(o||ft.create(e,n,null)).weekdays(i)}static weekdaysFormat(i="long",{locale:e=null,numberingSystem:n=null,locObj:o=null}={}){return(o||ft.create(e,n,null)).weekdays(i,!0)}static meridiems({locale:i=null}={}){return ft.create(i).meridiems()}static eras(i="short",{locale:e=null}={}){return ft.create(e,null,"gregory").eras(i)}static features(){return{relative:lb(),localeWeek:cb()}}};function Py(t,i){let e=o=>o.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),n=e(i)-e(t);return Math.floor(ln.fromMillis(n).as("days"))}function xN(t,i,e){let n=[["years",(l,c)=>c.year-l.year],["quarters",(l,c)=>c.quarter-l.quarter+(c.year-l.year)*4],["months",(l,c)=>c.month-l.month+(c.year-l.year)*12],["weeks",(l,c)=>{let d=Py(l,c);return(d-d%7)/7}],["days",Py]],o={},r=t,a,s;for(let[l,c]of n)e.indexOf(l)>=0&&(a=l,o[l]=c(t,i),s=r.plus(o),s>i?(o[l]--,t=r.plus(o),t>i&&(s=t,o[l]--,t=r.plus(o))):t=s);return[t,o,s,a]}function PN(t,i,e,n){let[o,r,a,s]=xN(t,i,e),l=i-o,c=e.filter(m=>["hours","minutes","seconds","milliseconds"].indexOf(m)>=0);c.length===0&&(a<i&&(a=o.plus({[s]:1})),a!==o&&(r[s]=(r[s]||0)+l/(a-o)));let d=ln.fromObject(r,n);return c.length>0?ln.fromMillis(l,n).shiftTo(...c).plus(d):d}var MN="missing Intl.DateTimeFormat.formatToParts support";function it(t,i=e=>e){return{regex:t,deser:([e])=>i(gD(e))}}var ON="\xA0",Ob=`[ ${ON}]`,Db=new RegExp(Ob,"g");function DN(t){return t.replace(/\./g,"\\.?").replace(Db,Ob)}function My(t){return t.replace(/\./g,"").replace(Db," ").toLowerCase()}function Mi(t,i){return t===null?null:{regex:RegExp(t.map(DN).join("|")),deser:([e])=>t.findIndex(n=>My(e)===My(n))+i}}function Oy(t,i){return{regex:t,deser:([,e,n])=>Ud(e,n),groups:i}}function Pd(t){return{regex:t,deser:([i])=>i}}function NN(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function IN(t,i){let e=Pi(i),n=Pi(i,"{2}"),o=Pi(i,"{3}"),r=Pi(i,"{4}"),a=Pi(i,"{6}"),s=Pi(i,"{1,2}"),l=Pi(i,"{1,3}"),c=Pi(i,"{1,6}"),d=Pi(i,"{1,9}"),m=Pi(i,"{2,4}"),g=Pi(i,"{4,6}"),C=X=>({regex:RegExp(NN(X.val)),deser:([q])=>q,literal:!0}),F=(X=>{if(t.literal)return C(X);switch(X.val){case"G":return Mi(i.eras("short"),0);case"GG":return Mi(i.eras("long"),0);case"y":return it(c);case"yy":return it(m,Jm);case"yyyy":return it(r);case"yyyyy":return it(g);case"yyyyyy":return it(a);case"M":return it(s);case"MM":return it(n);case"MMM":return Mi(i.months("short",!0),1);case"MMMM":return Mi(i.months("long",!0),1);case"L":return it(s);case"LL":return it(n);case"LLL":return Mi(i.months("short",!1),1);case"LLLL":return Mi(i.months("long",!1),1);case"d":return it(s);case"dd":return it(n);case"o":return it(l);case"ooo":return it(o);case"HH":return it(n);case"H":return it(s);case"hh":return it(n);case"h":return it(s);case"mm":return it(n);case"m":return it(s);case"q":return it(s);case"qq":return it(n);case"s":return it(s);case"ss":return it(n);case"S":return it(l);case"SSS":return it(o);case"u":return Pd(d);case"uu":return Pd(s);case"uuu":return it(e);case"a":return Mi(i.meridiems(),0);case"kkkk":return it(r);case"kk":return it(m,Jm);case"W":return it(s);case"WW":return it(n);case"E":case"c":return it(e);case"EEE":return Mi(i.weekdays("short",!1),1);case"EEEE":return Mi(i.weekdays("long",!1),1);case"ccc":return Mi(i.weekdays("short",!0),1);case"cccc":return Mi(i.weekdays("long",!0),1);case"Z":case"ZZ":return Oy(new RegExp(`([+-]${s.source})(?::(${n.source}))?`),2);case"ZZZ":return Oy(new RegExp(`([+-]${s.source})(${n.source})?`),2);case"z":return Pd(/[a-z_+-/]{1,256}?/i);case" ":return Pd(/[^\S\n\r]/);default:return C(X)}})(t)||{invalidReason:MN};return F.token=t,F}var kN={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};function TN(t,i,e){let{type:n,value:o}=t;if(n==="literal"){let l=/^\s+$/.test(o);return{literal:!l,val:l?" ":o}}let r=i[n],a=n;n==="hour"&&(i.hour12!=null?a=i.hour12?"hour12":"hour24":i.hourCycle!=null?i.hourCycle==="h11"||i.hourCycle==="h12"?a="hour12":a="hour24":a=e.hour12?"hour12":"hour24");let s=kN[a];if(typeof s=="object"&&(s=s[r]),s)return{literal:!1,val:s}}function RN(t){return[`^${t.map(e=>e.regex).reduce((e,n)=>`${e}(${n.source})`,"")}$`,t]}function EN(t,i,e){let n=t.match(i);if(n){let o={},r=1;for(let a in e)if(La(e,a)){let s=e[a],l=s.groups?s.groups+1:1;!s.literal&&s.token&&(o[s.token.val[0]]=s.deser(n.slice(r,r+l))),r+=l}return[n,o]}else return[n,{}]}function AN(t){let i=r=>{switch(r){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}},e=null,n;return Ie(t.z)||(e=Zo.create(t.z)),Ie(t.Z)||(e||(e=new hi(t.Z)),n=t.Z),Ie(t.q)||(t.M=(t.q-1)*3+1),Ie(t.h)||(t.h<12&&t.a===1?t.h+=12:t.h===12&&t.a===0&&(t.h=0)),t.G===0&&t.y&&(t.y=-t.y),Ie(t.u)||(t.S=ih(t.u)),[Object.keys(t).reduce((r,a)=>{let s=i(a);return s&&(r[s]=t[a]),r},{}),e,n]}var km=null;function LN(){return km||(km=$e.fromMillis(1555555555555)),km}function zN(t,i){if(t.literal)return t;let e=Hn.macroTokenToFormatOpts(t.val),n=kb(e,i);return n==null||n.includes(void 0)?t:n}function Nb(t,i){return Array.prototype.concat(...t.map(e=>zN(e,i)))}var zd=class{constructor(i,e){if(this.locale=i,this.format=e,this.tokens=Nb(Hn.parseFormat(e),i),this.units=this.tokens.map(n=>IN(n,i)),this.disqualifyingUnit=this.units.find(n=>n.invalidReason),!this.disqualifyingUnit){let[n,o]=RN(this.units);this.regex=RegExp(n,"i"),this.handlers=o}}explainFromTokens(i){if(this.isValid){let[e,n]=EN(i,this.regex,this.handlers),[o,r,a]=n?AN(n):[null,null,void 0];if(La(n,"a")&&La(n,"H"))throw new Yo("Can't include meridiem when specifying 24-hour format");return{input:i,tokens:this.tokens,regex:this.regex,rawMatches:e,matches:n,result:o,zone:r,specificOffset:a}}else return{input:i,tokens:this.tokens,invalidReason:this.invalidReason}}get isValid(){return!this.disqualifyingUnit}get invalidReason(){return this.disqualifyingUnit?this.disqualifyingUnit.invalidReason:null}};function Ib(t,i,e){return new zd(t,e).explainFromTokens(i)}function BN(t,i,e){let{result:n,zone:o,specificOffset:r,invalidReason:a}=Ib(t,i,e);return[n,o,r,a]}function kb(t,i){if(!t)return null;let n=Hn.create(i,t).dtFormatter(LN()),o=n.formatToParts(),r=n.resolvedOptions();return o.map(a=>TN(a,t,r))}var Tm="Invalid DateTime",Dy=864e13;function Vs(t){return new Vn("unsupported zone",`the zone "${t.name}" is not supported`)}function Rm(t){return t.weekData===null&&(t.weekData=Ed(t.c)),t.weekData}function Em(t){return t.localWeekData===null&&(t.localWeekData=Ed(t.c,t.loc.getMinDaysInFirstWeek(),t.loc.getStartOfWeek())),t.localWeekData}function xr(t,i){let e={ts:t.ts,zone:t.zone,c:t.c,o:t.o,loc:t.loc,invalid:t.invalid};return new $e(j(S(S({},e),i),{old:e}))}function Tb(t,i,e){let n=t-i*60*1e3,o=e.offset(n);if(i===o)return[n,i];n-=(o-i)*60*1e3;let r=e.offset(n);return o===r?[n,o]:[t-Math.min(o,r)*60*1e3,Math.max(o,r)]}function Md(t,i){t+=i*60*1e3;let e=new Date(t);return{year:e.getUTCFullYear(),month:e.getUTCMonth()+1,day:e.getUTCDate(),hour:e.getUTCHours(),minute:e.getUTCMinutes(),second:e.getUTCSeconds(),millisecond:e.getUTCMilliseconds()}}function Dd(t,i,e){return Tb(Fd(t),i,e)}function Ny(t,i){let e=t.o,n=t.c.year+Math.trunc(i.years),o=t.c.month+Math.trunc(i.months)+Math.trunc(i.quarters)*3,r=j(S({},t.c),{year:n,month:o,day:Math.min(t.c.day,Ad(n,o))+Math.trunc(i.days)+Math.trunc(i.weeks)*7}),a=ln.fromObject({years:i.years-Math.trunc(i.years),quarters:i.quarters-Math.trunc(i.quarters),months:i.months-Math.trunc(i.months),weeks:i.weeks-Math.trunc(i.weeks),days:i.days-Math.trunc(i.days),hours:i.hours,minutes:i.minutes,seconds:i.seconds,milliseconds:i.milliseconds}).as("milliseconds"),s=Fd(r),[l,c]=Tb(s,e,t.zone);return a!==0&&(l+=a,c=t.zone.offset(l)),{ts:l,o:c}}function ka(t,i,e,n,o,r){let{setZone:a,zone:s}=e;if(t&&Object.keys(t).length!==0||i){let l=i||s,c=$e.fromObject(t,j(S({},e),{zone:l,specificOffset:r}));return a?c:c.setZone(s)}else return $e.invalid(new Vn("unparsable",`the input "${o}" can't be parsed as ${n}`))}function Od(t,i,e=!0){return t.isValid?Hn.create(ft.create("en-US"),{allowZ:e,forceSimple:!0}).formatDateTimeFromString(t,i):null}function Am(t,i,e){let n=t.c.year>9999||t.c.year<0,o="";if(n&&t.c.year>=0&&(o+="+"),o+=Yt(t.c.year,n?6:4),e==="year")return o;if(i){if(o+="-",o+=Yt(t.c.month),e==="month")return o;o+="-"}else if(o+=Yt(t.c.month),e==="month")return o;return o+=Yt(t.c.day),o}function Iy(t,i,e,n,o,r,a){let s=!e||t.c.millisecond!==0||t.c.second!==0,l="";switch(a){case"day":case"month":case"year":break;default:if(l+=Yt(t.c.hour),a==="hour")break;if(i){if(l+=":",l+=Yt(t.c.minute),a==="minute")break;s&&(l+=":",l+=Yt(t.c.second))}else{if(l+=Yt(t.c.minute),a==="minute")break;s&&(l+=Yt(t.c.second))}if(a==="second")break;s&&(!n||t.c.millisecond!==0)&&(l+=".",l+=Yt(t.c.millisecond,3))}return o&&(t.isOffsetFixed&&t.offset===0&&!r?l+="Z":t.o<0?(l+="-",l+=Yt(Math.trunc(-t.o/60)),l+=":",l+=Yt(Math.trunc(-t.o%60))):(l+="+",l+=Yt(Math.trunc(t.o/60)),l+=":",l+=Yt(Math.trunc(t.o%60)))),r&&(l+="["+t.zone.ianaName+"]"),l}var Rb={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},FN={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},UN={ordinal:1,hour:0,minute:0,second:0,millisecond:0},Nd=["year","month","day","hour","minute","second","millisecond"],HN=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],VN=["year","ordinal","hour","minute","second","millisecond"];function Id(t){let i={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[t.toLowerCase()];if(!i)throw new kd(t);return i}function ky(t){switch(t.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return Id(t)}}function qN(t){if(qs===void 0&&(qs=It.now()),t.type!=="iana")return t.offset(qs);let i=t.name,e=Xm.get(i);return e===void 0&&(e=t.offset(qs),Xm.set(i,e)),e}function Ty(t,i){let e=Go(i.zone,It.defaultZone);if(!e.isValid)return $e.invalid(Vs(e));let n=ft.fromObject(i),o,r;if(Ie(t.year))o=It.now();else{for(let l of Nd)Ie(t[l])&&(t[l]=Rb[l]);let a=ab(t)||sb(t);if(a)return $e.invalid(a);let s=qN(e);[o,r]=Dd(t,s,e)}return new $e({ts:o,zone:e,loc:n,o:r})}function Ry(t,i,e){let n=Ie(e.round)?!0:e.round,o=Ie(e.rounding)?"trunc":e.rounding,r=(s,l)=>(s=oh(s,n||e.calendary?0:2,e.calendary?"round":o),i.loc.clone(e).relFormatter(e).format(s,l)),a=s=>e.calendary?i.hasSame(t,s)?0:i.startOf(s).diff(t.startOf(s),s).get(s):i.diff(t,s).get(s);if(e.unit)return r(a(e.unit),e.unit);for(let s of e.units){let l=a(s);if(Math.abs(l)>=1)return r(l,s)}return r(t>i?-0:0,e.units[e.units.length-1])}function Ey(t){let i={},e;return t.length>0&&typeof t[t.length-1]=="object"?(i=t[t.length-1],e=Array.from(t).slice(0,t.length-1)):e=Array.from(t),[i,e]}var qs,Xm=new Map,$e=class t{constructor(i){let e=i.zone||It.defaultZone,n=i.invalid||(Number.isNaN(i.ts)?new Vn("invalid input"):null)||(e.isValid?null:Vs(e));this.ts=Ie(i.ts)?It.now():i.ts;let o=null,r=null;if(!n)if(i.old&&i.old.ts===this.ts&&i.old.zone.equals(e))[o,r]=[i.old.c,i.old.o];else{let s=Ko(i.o)&&!i.old?i.o:e.offset(this.ts);o=Md(this.ts,s),n=Number.isNaN(o.year)?new Vn("invalid input"):null,o=n?null:o,r=n?null:s}this._zone=e,this.loc=i.loc||ft.create(),this.invalid=n,this.weekData=null,this.localWeekData=null,this.c=o,this.o=r,this.isLuxonDateTime=!0}static now(){return new t({})}static local(){let[i,e]=Ey(arguments),[n,o,r,a,s,l,c]=e;return Ty({year:n,month:o,day:r,hour:a,minute:s,second:l,millisecond:c},i)}static utc(){let[i,e]=Ey(arguments),[n,o,r,a,s,l,c]=e;return i.zone=hi.utcInstance,Ty({year:n,month:o,day:r,hour:a,minute:s,second:l,millisecond:c},i)}static fromJSDate(i,e={}){let n=SD(i)?i.valueOf():NaN;if(Number.isNaN(n))return t.invalid("invalid input");let o=Go(e.zone,It.defaultZone);return o.isValid?new t({ts:n,zone:o,loc:ft.fromObject(e)}):t.invalid(Vs(o))}static fromMillis(i,e={}){if(Ko(i))return i<-Dy||i>Dy?t.invalid("Timestamp out of range"):new t({ts:i,zone:Go(e.zone,It.defaultZone),loc:ft.fromObject(e)});throw new sn(`fromMillis requires a numerical input, but received a ${typeof i} with value ${i}`)}static fromSeconds(i,e={}){if(Ko(i))return new t({ts:i*1e3,zone:Go(e.zone,It.defaultZone),loc:ft.fromObject(e)});throw new sn("fromSeconds requires a numerical input")}static fromObject(i,e={}){i=i||{};let n=Go(e.zone,It.defaultZone);if(!n.isValid)return t.invalid(Vs(n));let o=ft.fromObject(e),r=Ld(i,ky),{minDaysInFirstWeek:a,startOfWeek:s}=_y(r,o),l=It.now(),c=Ie(e.specificOffset)?n.offset(l):e.specificOffset,d=!Ie(r.ordinal),m=!Ie(r.year),g=!Ie(r.month)||!Ie(r.day),C=m||g,R=r.weekYear||r.weekNumber;if((C||d)&&R)throw new Yo("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(g&&d)throw new Yo("Can't mix ordinal dates with month/day");let F=R||r.weekday&&!C,X,q,te=Md(l,c);F?(X=HN,q=FN,te=Ed(te,a,s)):d?(X=VN,q=UN,te=Im(te)):(X=Nd,q=Rb);let K=!1;for(let Lt of X){let Nn=r[Lt];Ie(Nn)?K?r[Lt]=q[Lt]:r[Lt]=te[Lt]:K=!0}let Ge=F?CD(r,a,s):d?yD(r):ab(r),se=Ge||sb(r);if(se)return t.invalid(se);let L=F?fy(r,a,s):d?gy(r):r,[Ye,Pt]=Dd(L,c,n),_t=new t({ts:Ye,zone:n,o:Pt,loc:o});return r.weekday&&C&&i.weekday!==_t.weekday?t.invalid("mismatched weekday",`you can't specify both a weekday of ${r.weekday} and a date of ${_t.toISO()}`):_t.isValid?_t:t.invalid(_t.invalid)}static fromISO(i,e={}){let[n,o]=dN(i);return ka(n,o,e,"ISO 8601",i)}static fromRFC2822(i,e={}){let[n,o]=pN(i);return ka(n,o,e,"RFC 2822",i)}static fromHTTP(i,e={}){let[n,o]=uN(i);return ka(n,o,e,"HTTP",e)}static fromFormat(i,e,n={}){if(Ie(i)||Ie(e))throw new sn("fromFormat requires an input string and a format");let{locale:o=null,numberingSystem:r=null}=n,a=ft.fromOpts({locale:o,numberingSystem:r,defaultToEN:!0}),[s,l,c,d]=BN(a,i,e);return d?t.invalid(d):ka(s,l,n,`format ${e}`,i,c)}static fromString(i,e,n={}){return t.fromFormat(i,e,n)}static fromSQL(i,e={}){let[n,o]=yN(i);return ka(n,o,e,"SQL",i)}static invalid(i,e=null){if(!i)throw new sn("need to specify a reason the DateTime is invalid");let n=i instanceof Vn?i:new Vn(i,e);if(It.throwOnInvalid)throw new Lm(n);return new t({invalid:n})}static isDateTime(i){return i&&i.isLuxonDateTime||!1}static parseFormatForOpts(i,e={}){let n=kb(i,ft.fromObject(e));return n?n.map(o=>o?o.val:null).join(""):null}static expandFormat(i,e={}){return Nb(Hn.parseFormat(i),ft.fromObject(e)).map(o=>o.val).join("")}static resetCache(){qs=void 0,Xm.clear()}get(i){return this[i]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?Rm(this).weekYear:NaN}get weekNumber(){return this.isValid?Rm(this).weekNumber:NaN}get weekday(){return this.isValid?Rm(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?Em(this).weekday:NaN}get localWeekNumber(){return this.isValid?Em(this).weekNumber:NaN}get localWeekYear(){return this.isValid?Em(this).weekYear:NaN}get ordinal(){return this.isValid?Im(this.c).ordinal:NaN}get monthShort(){return this.isValid?Ta.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?Ta.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?Ta.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?Ta.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return this.isOffsetFixed?!1:this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];let i=864e5,e=6e4,n=Fd(this.c),o=this.zone.offset(n-i),r=this.zone.offset(n+i),a=this.zone.offset(n-o*e),s=this.zone.offset(n-r*e);if(a===s)return[this];let l=n-a*e,c=n-s*e,d=Md(l,a),m=Md(c,s);return d.hour===m.hour&&d.minute===m.minute&&d.second===m.second&&d.millisecond===m.millisecond?[xr(this,{ts:l}),xr(this,{ts:c})]:[this]}get isInLeapYear(){return Ws(this.year)}get daysInMonth(){return Ad(this.year,this.month)}get daysInYear(){return this.isValid?Ra(this.year):NaN}get weeksInWeekYear(){return this.isValid?$s(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?$s(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(i={}){let{locale:e,numberingSystem:n,calendar:o}=Hn.create(this.loc.clone(i),i).resolvedOptions(this);return{locale:e,numberingSystem:n,outputCalendar:o}}toUTC(i=0,e={}){return this.setZone(hi.instance(i),e)}toLocal(){return this.setZone(It.defaultZone)}setZone(i,{keepLocalTime:e=!1,keepCalendarTime:n=!1}={}){if(i=Go(i,It.defaultZone),i.equals(this.zone))return this;if(i.isValid){let o=this.ts;if(e||n){let r=i.offset(this.ts),a=this.toObject();[o]=Dd(a,r,i)}return xr(this,{ts:o,zone:i})}else return t.invalid(Vs(i))}reconfigure({locale:i,numberingSystem:e,outputCalendar:n}={}){let o=this.loc.clone({locale:i,numberingSystem:e,outputCalendar:n});return xr(this,{loc:o})}setLocale(i){return this.reconfigure({locale:i})}set(i){if(!this.isValid)return this;let e=Ld(i,ky),{minDaysInFirstWeek:n,startOfWeek:o}=_y(e,this.loc),r=!Ie(e.weekYear)||!Ie(e.weekNumber)||!Ie(e.weekday),a=!Ie(e.ordinal),s=!Ie(e.year),l=!Ie(e.month)||!Ie(e.day),c=s||l,d=e.weekYear||e.weekNumber;if((c||a)&&d)throw new Yo("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(l&&a)throw new Yo("Can't mix ordinal dates with month/day");let m;r?m=fy(S(S({},Ed(this.c,n,o)),e),n,o):Ie(e.ordinal)?(m=S(S({},this.toObject()),e),Ie(e.day)&&(m.day=Math.min(Ad(m.year,m.month),m.day))):m=gy(S(S({},Im(this.c)),e));let[g,C]=Dd(m,this.o,this.zone);return xr(this,{ts:g,o:C})}plus(i){if(!this.isValid)return this;let e=ln.fromDurationLike(i);return xr(this,Ny(this,e))}minus(i){if(!this.isValid)return this;let e=ln.fromDurationLike(i).negate();return xr(this,Ny(this,e))}startOf(i,{useLocaleWeeks:e=!1}={}){if(!this.isValid)return this;let n={},o=ln.normalizeUnit(i);switch(o){case"years":n.month=1;case"quarters":case"months":n.day=1;case"weeks":case"days":n.hour=0;case"hours":n.minute=0;case"minutes":n.second=0;case"seconds":n.millisecond=0;break}if(o==="weeks")if(e){let r=this.loc.getStartOfWeek(),{weekday:a}=this;a<r&&(n.weekNumber=this.weekNumber-1),n.weekday=r}else n.weekday=1;if(o==="quarters"){let r=Math.ceil(this.month/3);n.month=(r-1)*3+1}return this.set(n)}endOf(i,e){return this.isValid?this.plus({[i]:1}).startOf(i,e).minus(1):this}toFormat(i,e={}){return this.isValid?Hn.create(this.loc.redefaultToEN(e)).formatDateTimeFromString(this,i):Tm}
25toLocaleString(i=Td,e={}){return this.isValid?Hn.create(this.loc.clone(e),i).formatDateTime(this):Tm}toLocaleParts(i={}){return this.isValid?Hn.create(this.loc.clone(i),i).formatDateTimeParts(this):[]}toISO({format:i="extended",suppressSeconds:e=!1,suppressMilliseconds:n=!1,includeOffset:o=!0,extendedZone:r=!1,precision:a="milliseconds"}={}){if(!this.isValid)return null;a=Id(a);let s=i==="extended",l=Am(this,s,a);return Nd.indexOf(a)>=3&&(l+="T"),l+=Iy(this,s,e,n,o,r,a),l}toISODate({format:i="extended",precision:e="day"}={}){return this.isValid?Am(this,i==="extended",Id(e)):null}toISOWeekDate(){return Od(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:i=!1,suppressSeconds:e=!1,includeOffset:n=!0,includePrefix:o=!1,extendedZone:r=!1,format:a="extended",precision:s="milliseconds"}={}){return this.isValid?(s=Id(s),(o&&Nd.indexOf(s)>=3?"T":"")+Iy(this,a==="extended",e,i,n,r,s)):null}toRFC2822(){return Od(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return Od(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?Am(this,!0):null}toSQLTime({includeOffset:i=!0,includeZone:e=!1,includeOffsetSpace:n=!0}={}){let o="HH:mm:ss.SSS";return(e||i)&&(n&&(o+=" "),e?o+="z":i&&(o+="ZZ")),Od(this,o,!0)}toSQL(i={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(i)}`:null}toString(){return this.isValid?this.toISO():Tm}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`DateTime { ts: ${this.toISO()}, zone: ${this.zone.name}, locale: ${this.locale} }`:`DateTime { Invalid, reason: ${this.invalidReason} }`}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(i={}){if(!this.isValid)return{};let e=S({},this.c);return i.includeConfig&&(e.outputCalendar=this.outputCalendar,e.numberingSystem=this.loc.numberingSystem,e.locale=this.loc.locale),e}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(i,e="milliseconds",n={}){if(!this.isValid||!i.isValid)return ln.invalid("created by diffing an invalid DateTime");let o=S({locale:this.locale,numberingSystem:this.numberingSystem},n),r=vD(e).map(ln.normalizeUnit),a=i.valueOf()>this.valueOf(),s=a?this:i,l=a?i:this,c=PN(s,l,r,o);return a?c.negate():c}diffNow(i="milliseconds",e={}){return this.diff(t.now(),i,e)}until(i){return this.isValid?Aa.fromDateTimes(this,i):this}hasSame(i,e,n){if(!this.isValid)return!1;let o=i.valueOf(),r=this.setZone(i.zone,{keepLocalTime:!0});return r.startOf(e,n)<=o&&o<=r.endOf(e,n)}equals(i){return this.isValid&&i.isValid&&this.valueOf()===i.valueOf()&&this.zone.equals(i.zone)&&this.loc.equals(i.loc)}toRelative(i={}){if(!this.isValid)return null;let e=i.base||t.fromObject({},{zone:this.zone}),n=i.padding?this<e?-i.padding:i.padding:0,o=["years","months","days","hours","minutes","seconds"],r=i.unit;return Array.isArray(i.unit)&&(o=i.unit,r=void 0),Ry(e,this.plus(n),j(S({},i),{numeric:"always",units:o,unit:r}))}toRelativeCalendar(i={}){return this.isValid?Ry(i.base||t.fromObject({},{zone:this.zone}),this,j(S({},i),{numeric:"auto",units:["years","months","days"],calendary:!0})):null}static min(...i){if(!i.every(t.isDateTime))throw new sn("min requires all arguments be DateTimes");return Cy(i,e=>e.valueOf(),Math.min)}static max(...i){if(!i.every(t.isDateTime))throw new sn("max requires all arguments be DateTimes");return Cy(i,e=>e.valueOf(),Math.max)}static fromFormatExplain(i,e,n={}){let{locale:o=null,numberingSystem:r=null}=n,a=ft.fromOpts({locale:o,numberingSystem:r,defaultToEN:!0});return Ib(a,i,e)}static fromStringExplain(i,e,n={}){return t.fromFormatExplain(i,e,n)}static buildFormatParser(i,e={}){let{locale:n=null,numberingSystem:o=null}=e,r=ft.fromOpts({locale:n,numberingSystem:o,defaultToEN:!0});return new zd(r,i)}static fromFormatParser(i,e,n={}){if(Ie(i)||Ie(e))throw new sn("fromFormatParser requires an input string and a format parser");let{locale:o=null,numberingSystem:r=null}=n,a=ft.fromOpts({locale:o,numberingSystem:r,defaultToEN:!0});if(!a.equals(e.locale))throw new sn(`fromFormatParser called with a locale of ${a}, but the format parser was created for ${e.locale}`);let{result:s,zone:l,specificOffset:c,invalidReason:d}=e.explainFromTokens(i);return d?t.invalid(d):ka(s,l,n,`format ${e.format}`,i,c)}static get DATE_SHORT(){return Td}static get DATE_MED(){return Ay}static get DATE_MED_WITH_WEEKDAY(){return XO}static get DATE_FULL(){return Ly}static get DATE_HUGE(){return zy}static get TIME_SIMPLE(){return By}static get TIME_WITH_SECONDS(){return Fy}static get TIME_WITH_SHORT_OFFSET(){return Uy}static get TIME_WITH_LONG_OFFSET(){return Hy}static get TIME_24_SIMPLE(){return Vy}static get TIME_24_WITH_SECONDS(){return qy}static get TIME_24_WITH_SHORT_OFFSET(){return jy}static get TIME_24_WITH_LONG_OFFSET(){return $y}static get DATETIME_SHORT(){return Wy}static get DATETIME_SHORT_WITH_SECONDS(){return Gy}static get DATETIME_MED(){return Yy}static get DATETIME_MED_WITH_SECONDS(){return Ky}static get DATETIME_MED_WITH_WEEKDAY(){return eD}static get DATETIME_FULL(){return Zy}static get DATETIME_FULL_WITH_SECONDS(){return Qy}static get DATETIME_HUGE(){return Jy}static get DATETIME_HUGE_WITH_SECONDS(){return Xy}};function Us(t){if($e.isDateTime(t))return t;if(t&&t.valueOf&&Ko(t.valueOf()))return $e.fromJSDate(t);if(t&&typeof t=="object")return $e.fromObject(t);throw new sn(`Unknown datetime argument: ${t}, of type ${typeof t}`)}var Ft=(()=>{class t{constructor(){this.processed=f(ae)}get ianaTimezone(){return this.processed.getTimezone()}newDateTime(){return $e.local().setZone(this.ianaTimezone)}newDateOnlyString(){return this.newDateTime().toISODate()}ngbDateToDateTime(e){return $e.local(e.year,e.month,e.day).setZone(this.ianaTimezone)}dateTimeToNgbDate(e){return{year:e.year,month:e.month,day:e.day}}stringToDateTime(e){let n=$e.fromISO(e,{zone:this.ianaTimezone});return n.isValid?n:$e.fromFormat(e,"yyyy-MM-dd HH:mm:ss",{zone:this.ianaTimezone})}dateTimeToString(e){return e.setZone(this.ianaTimezone).toISODate()}dateDifferenceInDays(e,n){if(!e||!n)return 0;
25typeof e!="string"&&typeof n!="string"&&(e=e.toISOString(),n=n.toISOString());let o=this.stringToDateTime(e),r=this.stringToDateTime(n);return Math.round(r.diff(o,"days").days)}ngbDateStructToString(e){if(!e)return"";let n=e.year,o=e.month.toString().padStart(2,"0"),r=e.day.toString().padStart(2,"0");return`${n}-${o}-${r}`}stringToNgDateStruct(e){if(!e)return null;let[n,o,r]=e.split("-"),a=parseInt(n,10),s=parseInt(o.padStart(2,"0"),10),l=parseInt(r.padStart(2,"0"),10);return{year:a,month:s,day:l}}addDays(e,n){let o=this.stringToDateTime(e);return this.dateTimeToString(o.plus({days:n}))}addMonths(e,n){let o=this.stringToDateTime(e);return o.set({day:1}),this.dateTimeToString(o.plus({months:n}))}getMonthDatesAsStringKeys(e,n){if(!n||n<1||n>12)return[];let r=42+$e.local(e,n,1).weekday-1,a=[];for(let s=1;s<=r;s++){let l=new Date(e,n-1,s);a.push(`${l.getFullYear()}-${(l.getMonth()+1).toString().padStart(2,"0")}-${l.getDate().toString().padStart(2,"0")}`)}return a}getTime(e){return e?this.stringToDateTime(e.toISOString()).toFormat("HH:mm"):""}formatDateRange(e,n,o,r,a=!0){let s=a?"d LLL yyyy":"d LLL",l=a?"\u2013d LLL yyyy":"\u2013d LLL",c=" @HH:mm",d="\u2013HH:mm";if(!e)return"";let m=typeof e!="string"?e.toISOString():e,g=n&&typeof n!="string"?n.toISOString():n,C=m?.slice(0,10)===g?.slice(0,10),R=this.stringToDateTime(m),F=g&&m!==g?this.stringToDateTime(g):null;if(!R.isValid)return"";C?l="":R.year===F?.year&&R.month===F?.month?s="d":R.year===F?.year&&(s="d LLL");let X=R.toFormat(s,{locale:r});return F&&(X+=F.toFormat(l,{locale:r})),o&&(!n||C)&&typeof e!="string"&&(X+=R.toFormat(c,{locale:r}),F&&m!==g&&(X+=F.toFormat(d,{locale:r}))),X}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=G({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Qo={"en-US":{weekdays:["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],daysLength:3,months:["January","February","March","April","May","June","July","August","September","October","November","December"]},"sv-SE":{weekdays:["M\xE5ndag","Tisdag","Onsdag","Torsdag","Fredag","L\xF6rdag","S\xF6ndag"],daysLength:3,months:["Januari","Februari","Mars","April","Maj","Juni","Juli","Augusti","September","Oktober","November","December"]},"nb-NO":{weekdays:["Mandag","Tirsdag","Onsdag","Torsdag","Fredag","L\xF8rdag","S\xF8ndag"],daysLength:3,months:["Januar","Februar","Mars","April","Mai","Juni","Juli","August","September","Oktober","November","Desember"]},"da-DK":{weekdays:["Mandag","Tirsdag","Onsdag","Torsdag","Fredag","L\xF8rdag","S\xF8ndag"],daysLength:3,months:["Januar","Februar","Marts","April","Maj","Juni","Juli","August","September","Oktober","November","December"]},"fi-FI":{weekdays:["Maanantai","Tiistai","Keskiviikko","Torstai","Perjantai","Lauantai","Sunnuntai"],daysLength:2,months:["Tammikuu","Helmikuu","Maaliskuu","Huhtikuu","Toukokuu","Kes\xE4kuu","Hein\xE4kuu","Elokuu","Syyskuu","Lokakuu","Marraskuu","Joulukuu"]},"fo-FO":{weekdays:["M\xE1nadagur","T\xFDsdagur","Mikudagur","H\xF3sdagur","Fr\xEDggjadagur","Leygardagur","Sunnudagur"],daysLength:3,months:["Januar","Februar","Mars","Apr\xEDl","Mei","Juni","Juli","August","September","Oktober","November","Desember"]}},uo=(()=>{class t extends ql{constructor(){super(),this.store=f(oe),this.currLng="en-US",this.store.select(ht).subscribe(n=>{this.currLng=n})}getWeekdayLabel(e,n){let o=Qo[this.currLng].weekdays[e-1];switch(n){case"narrow":return o.slice(0,1);case"short":return o.slice(0,3);default:return o}}getDayList(){let e=Qo[this.currLng].daysLength;return e==="full"?Qo[this.currLng].weekdays:Qo[this.currLng].weekdays.map(n=>n.slice(0,e))}getMonthShortName(e){return Qo[this.currLng].months[e].slice(0,3)}getMonthFullName(e){return Qo[this.currLng].months[e]}getMonthList(e="long"){return e==="long"?Qo[this.currLng].months:Qo[this.currLng].months.map((n,o)=>this.getMonthShortName(o))}getDayAriaLabel(e){return""}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=G({token:t,factory:t.\u0275fac})}}return t})();var Jo=(()=>{class t extends _e{constructor(){super(...arguments),this.subscriptions=[],this.$destroy=new Sl(1)}addSubscription(...e){this.subscriptions.push(...e)}clearSubscriptions(){this.subscriptions.filter(e=>
25!e.closed).forEach(e=>e.unsubscribe()),this.subscriptions=[]}ngOnDestroy(){this.$destroy.next(!0),this.$destroy.complete(),this.clearSubscriptions()}static{this.\u0275fac=(()=>{let e;return function(o){return(e||(e=Ne(t)))(o||t)}})()}static{this.\u0275dir=tn({type:t,features:[re]})}}return t})();var Ks=(()=>{class t{constructor(){this.dateUtils=f(Ft)}transform(e,n,o,r,a,s){if(!e||!n||!o||r===J.Restaurant)return!1;let l=n[this.dateUtils.ngbDateStructToString(e)];return!!l&&(!!l.minLengthOfStay&&l.minLengthOfStay>a||!!l.priceForOtherNightThanRequested)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275pipe=yn({name:"hasRestrictions",type:t,pure:!0})}}return t})();var Vd=t=>t.crossSell,Eb=me(Vd,t=>t.status),Ab=me(Vd,t=>t.alternatives),Lb=me(Vd,t=>t.currentHotelName),zb=me(Vd,t=>t.reason);function Bb(t,i="en-US"){return t==null?"":t>=1e3?`${(t/1e3).toLocaleString(i,{minimumFractionDigits:1,maximumFractionDigits:1})} km`:`${t} m`}var Zs=(function(t){return t[t.PerPerson=0]="PerPerson",t[t.Party=1]="Party",t[t.AllParties=2]="AllParties",t[t.PerProduct=3]="PerProduct",t})(Zs||{});var jN=()=>({noConversion:!0,hideCurrencyCode:!0}),lh=t=>({forceDecimals:t});function $N(t,i){if(t&1&&(h(0,"div",3),T(1,"span",5),_()),t&2){let e=u(2);p(),b("innerHTML",e.SpennLogo,Mt)}}function WN(t,i){if(t&1&&(h(0,"span",0),D(1,"\xA0"),_(),h(2,"span",1)(3,"span",2),D(4),_(),w(5,$N,2,1,"div",3),_(),h(6,"span",4),D(7,"\xA0"),_()),t&2){let e=u();p(4),V(e.loginText()),p(),x(e.showSpennLogo()?5:-1)}}function GN(t,i){t&1&&(h(0,"span",8),D(1),y(2,"translocoStripHtml"),_()),t&2&&(p(),V(O(2,1,"price-vat-included")))}function YN(t,i){t&1&&(h(0,"span",4),D(1,"\xA0"),_())}function KN(t,i){if(t&1&&(h(0,"span",6),T(1,"span",7),h(2,"span"),D(3),_()(),w(4,GN,3,3,"span",8)(5,YN,2,0,"span",4)),t&2){let e=u();p(),b("innerHTML",e.SpennPoints,Mt),p(2),V(e.priceText()),p(),x(e.showVAT()?4:5)}}function ZN(t,i){if(t&1&&(T(0,"span",9),y(1,"translate")),t&2){let e=u(2);b("innerHTML",O(1,1,e.price().discountPriceInformation?.label),Mt)}}function QN(t,i){t&1&&(h(0,"span",10),D(1),y(2,"translocoStripHtml"),_()),t&2&&(p(),V(O(2,1,"general.price.from")))}function JN(t,i){t&1&&(h(0,"span",11),D(1),y(2,"translocoStripHtml"),_()),t&2&&(p(),V(O(2,1,"general.price.additive-prefix")))}function XN(t,i){t&1&&(h(0,"span",4),D(1,"\xA0"),_())}function eI(t,i){if(t&1&&(h(0,"span",12),T(1,"span",7),h(2,"span",13),D(3),y(4,"customCurrency"),_()(),w(5,XN,2,0,"span",4)),t&2){let e=u(2);p(),b("innerHTML",e.SpennPoints,Mt),p(2),V(Rn(4,3,e.price().bonusPoints,!1,Pe(7,jN))),p(2),x(e.vatPlaceholder()?5:-1)}}function tI(t,i){if(t&1&&(h(0,"span",15),D(1),y(2,"customCurrency"),_()),t&2){let e=u(3);p(),V(Rn(2,1,e.price().discountPriceInformation?.ordinaryPrice??0,e.currency(),Z(5,lh,e.forceDecimals())))}}function nI(t,i){t&1&&(h(0,"span",16),D(1),y(2,"translocoStripHtml"),_()),t&2&&(p(),V(O(2,1,"pricetype.per-person.short")))}function iI(t,i){if(t&1&&(h(0,"span",17),D(1),y(2,"translate"),_()),t&2){let e=u(3);p(),V(O(2,1,e.priceUnitText()))}}function oI(t,i){if(t&1&&(h(0,"span",18),D(1),y(2,"translocoStripHtml"),_()),t&2){let e=u(3);p(),V(O(2,1,e.priceUnitTextKey()))}}function rI(t,i){if(t&1&&(h(0,"span",15),D(1),y(2,"customCurrency"),_()),t&2){let e=u(3);p(),V(Rn(2,1,e.price().discountPriceInformation?.ordinaryPrice??0,e.currency(),Z(5,lh,e.forceDecimals())))}}function aI(t,i){t&1&&(h(0,"span",8),D(1),y(2,"translocoStripHtml"),_()),t&2&&(p(),V(O(2,1,"price-vat-included")))}function sI(t,i){if(t&1&&(h(0,"span",14),D(1),y(2,"customCurrency"),_(),w(3,tI,3,7,"span",15),w(4,nI,3,3,"span",16),w(5,iI,3,3,"span",17),w(6,oI,3,3,"span",18),w(7,rI,3,7,"span",15),w(8,aI,3,3,"span",8)),t&2){let e=u(2);p(),V(Rn(2,7,e.price()?.price||e.priceNumber(),e.currency(),Z(11,lh,e.forceDecimals()))),p(2),x(e.style()!==e.PriceStyle.Full&&e.price()?.isDiscounted&&e.price()?.discountPriceInformation&&e.showDiscount()?3:-1),p(),x(e.price()?.priceType===e.PriceType.PerPerson&&!e.priceUnitText()&&!e.priceUnitTextKey()?4:-1),p(),x(e.priceUnitText()?5:-1),p(),x(e.priceUnitTextKey()?6:-1),p(),x(e.style()===e.PriceStyle.Full&&e.price()?.isDiscounted&&e.price()?.discountPriceInformation&&e.showDiscount()?7:-1),p(),x(e.showVAT()?8:-1)}}function lI(t,i){if(t&1&&(w(0,ZN,2,3,"span",9),w(1,QN,3,3,"span",10),w(2,JN,3,3,"span",11),w(3,eI,6,8)(4,sI,9,13)),t&2){let e=u();x(e.price()?.discountPriceInformation?.showLabel?0:-1),p(),x(e.forceFrom()||e.price()?.dis
25playFromPricePrefix&&e.showFrom()?1:-1),p(),x(e.forceAdd()||e.price()?.useAdditivePriceListing&&e.showAdd()?2:-1),p(),x(e.showBonusPoints()?3:4)}}function cI(t,i){if(t&1&&(h(0,"span",0),D(1,"\xA0"),_(),T(2,"app-icon",19),h(3,"span",4),D(4,"\xA0"),_()),t&2){let e=u();p(2),b("size",e.IconSize.SMALL)}}var qd=(function(t){return t.Full="full",t.Small="smaller",t.Tiny="tiny",t.Simple="simple",t})(qd||{});function jd(t){return t&&typeof t=="object"&&"price"in t}var Fb=(()=>{class t extends _e{constructor(){super(...arguments),this.style=v.required(),this.price=v(null),this.priceNumber=v(0),this.priceUnitText=v(),this.priceUnitTextKey=v(),this.showFrom=v(!0),this.forceFrom=v(!1),this.showAdd=v(!0),this.forceAdd=v(!1),this.showVAT=v(!0),this.forceDecimals=v(!1),this.showDiscount=v(!0),this.align=v("left"),this.store=f(oe),this.currency=Me(this.store.select(Ro)),this.dealLookupLoading=v(!1),this.loginText=v(),this.showSpennLogo=v(!0),this.suffixPriceNumber=v(),this.priceText=v(),this.vatPlaceholder=v(!1),this.showBonusPoints=A(()=>{let e=this.price();return e?.bonusPoints!==null&&e?.bonusPoints!==void 0}),this.showBonusPointsLoading=A(()=>{if(this.dealLookupLoading())return!0;let e=this.price();return!!e?.isBonusPointType&&e.bonusPoints==null}),this.showPrice=A(()=>{if(this.showBonusPoints()||this.showBonusPointsLoading())return!1;let e=this.price();return e?!e.priceNotDisplayed:!!this.priceNumber()}),this.SpennPoints=ma,this.SpennLogo=Lo,this.PriceType=Zs,this.PriceStyle=qd,this.IconSize=Se}get class(){let e=[this.style(),this.align()];return this.loginText()&&e.push("has-login-text"),e.join(" ")}static{this.\u0275fac=(()=>{let e;return function(o){return(e||(e=Ne(t)))(o||t)}})()}static{this.\u0275cmp=H({type:t,selectors:[["app-price"]],hostVars:2,hostBindings:function(n,o){n&2&&Ci(o.class)},inputs:{style:[1,"style"],price:[1,"price"],priceNumber:[1,"priceNumber"],priceUnitText:[1,"priceUnitText"],priceUnitTextKey:[1,"priceUnitTextKey"],showFrom:[1,"showFrom"],forceFrom:[1,"forceFrom"],showAdd:[1,"showAdd"],forceAdd:[1,"forceAdd"],showVAT:[1,"showVAT"],forceDecimals:[1,"forceDecimals"],showDiscount:[1,"showDiscount"],align:[1,"align"],dealLookupLoading:[1,"dealLookupLoading"],loginText:[1,"loginText"],showSpennLogo:[1,"showSpennLogo"],suffixPriceNumber:[1,"suffixPriceNumber"],priceText:[1,"priceText"],vatPlaceholder:[1,"vatPlaceholder"]},features:[re],decls:4,vars:3,consts:[["aria-hidden","true",1,"from-prefix",2,"visibility","hidden"],["data-qa","price-login-text",1,"login-wrapper"],[1,"price"],[1,"spenn-sticker"],["aria-hidden","true",1,"vat-info",2,"visibility","hidden"],[1,"spenn-logo",3,"innerHTML"],["data-qa","price-spenn-text",1,"price","spenn-price"],[1,"spenn-points",3,"innerHTML"],["data-qa","price-vat-info",1,"vat-info"],["data-qa","price-discount-label",1,"discount-label",3,"innerHTML"],["data-qa","price-from-prefix",1,"from-prefix"],["data-qa","price-add-prefix",1,"add-prefix"],["data-qa","price-spenn-points",1,"price","spenn-price"],[1,"spenn-value"],["data-qa","price-value",1,"price"],["data-qa","price-discount",1,"discount"],["data-qa","price-per-person",1,"per-person","per-unit"],["data-qa","price-unit-text",1,"per-unit"],["data-qa","price-unit-key",1,"per-unit"],["name","loadingDots","data-qa","price-spenn-loading",3,"size"]],template:function(n,o){n&1&&(w(0,WN,8,2),w(1,KN,6,3)(2,lI,5,4),w(3,cI,5,1)),n&2&&(x(o.loginText()?0:-1),p(),x(o.priceText()?1:o.showPrice()||o.showBonusPoints()?2:-1),p(2),x(o.showBonusPointsLoading()?3:-1))},dependencies:[Fe,rt,Y,Dn],styles:[`.display-large[_ngcontent-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:3.25em;line-height:1.125em;font-weight:700}
25.display-medium[_ngcontent-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:2.875em;line-height:1.1em;font-weight:700}.display-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:2.5em;line-height:1.125em;font-weight:700}.headline-large[_ngcontent-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:2.25em;line-height:1.14em;font-weight:700}.headline-medium[_ngcontent-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:1.875em;line-height:1.1em;font-weight:700}.headline-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:1.5em;line-height:1.13125em;font-weight:700}.title-large[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:1.5em;line-height:1.1875em;font-weight:600}.title-medium[_ngcontent-%COMP%], .full[_nghost-%COMP%] .price[_ngcontent-%COMP%], .full[_nghost-%COMP%] .add-prefix[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:1.25em;line-height:1.1875em;font-weight:600}.title-small[_ngcontent-%COMP%], .smaller[_nghost-%COMP%] .price[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:1em;line-height:1em;font-weight:600}.label-large[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:1em;line-height:1.1875em;font-weight:600}.label-medium[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.875em;line-height:1.3em;font-weight:600}.label-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.75em;line-height:.875em;font-weight:600}.label-extra-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.625em;line-height:1.2em;font-weight:600}.body-large[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:1em;line-height:1.1875em;font-weight:400}
25.body-medium[_ngcontent-%COMP%], .full[_nghost-%COMP%] .discount-label[_ngcontent-%COMP%], .full[_nghost-%COMP%] .from-prefix[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.875em;line-height:1.1em;font-weight:400}.body-small[_ngcontent-%COMP%], .tiny[_nghost-%COMP%], .smaller[_nghost-%COMP%] .from-prefix[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.75em;line-height:1.125em;font-weight:400}.body-extra-small[_ngcontent-%COMP%], .smaller[_nghost-%COMP%] .vat-info[_ngcontent-%COMP%], .full[_nghost-%COMP%] .vat-info[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.625em;line-height:.75em;font-weight:400}.discount[_ngcontent-%COMP%]{text-decoration:line-through;margin-left:.3em}.per-unit[_ngcontent-%COMP%]{margin-left:.2em}.right[_nghost-%COMP%] > span[_ngcontent-%COMP%]{display:inline-block;width:100%;text-align:right}.center[_nghost-%COMP%] > span[_ngcontent-%COMP%]{width:100%;text-align:center}.full[_nghost-%COMP%]{display:inline-block;margin-bottom:.25em}.full[_nghost-%COMP%] .discount-label[_ngcontent-%COMP%], .full[_nghost-%COMP%] .from-prefix[_ngcontent-%COMP%], .full[_nghost-%COMP%] .discount[_ngcontent-%COMP%], .full[_nghost-%COMP%] .vat-info[_ngcontent-%COMP%]{display:block}.full[_nghost-%COMP%] .discount-label[_ngcontent-%COMP%], .full[_nghost-%COMP%] .from-prefix[_ngcontent-%COMP%]{margin-bottom:.25em}.full[_nghost-%COMP%] .price[_ngcontent-%COMP%]{display:inline-block;margin-bottom:.1875em}.smaller[_nghost-%COMP%] .from-prefix[_ngcontent-%COMP%], .smaller[_nghost-%COMP%] .vat-info[_ngcontent-%COMP%]{display:block}.smaller[_nghost-%COMP%] .discount-label[_ngcontent-%COMP%], .smaller[_nghost-%COMP%] .add-prefix[_ngcontent-%COMP%]{display:none}.smaller[_nghost-%COMP%] .from-prefix[_ngcontent-%COMP%]{margin-bottom:.125em}.smaller[_nghost-%COMP%] .discount[_ngcontent-%COMP%], .smaller[_nghost-%COMP%] .per-person[_ngcontent-%COMP%], .smaller[_nghost-%COMP%] .per-unit[_ngcontent-%COMP%]{font-size:.88em}.tiny[_nghost-%COMP%] .from-prefix[_ngcontent-%COMP%]{margin-right:.2em}.tiny[_nghost-%COMP%] .add-prefix[_ngcontent-%COMP%], .tiny[_nghost-%COMP%] .discount-label[_ngcontent-%COMP%], .tiny[_nghost-%COMP%] .vat-info[_ngcontent-%COMP%]{display:none}.simple[_nghost-%COMP%] .discount-label[_ngcontent-%COMP%], .simple[_nghost-%COMP%] .from-prefix[_ngcontent-%COMP%], .simple[_nghost-%COMP%] .vat-info[_ngcontent-%COMP%]{display:none}.spenn-points[_ngcontent-%COMP%]{font-family:SpennFont,var(--%NS%default-text-font)}.spenn-price[_ngcontent-%COMP%]{display:inline-flex!important;gap:.3em;align-items:center;vertical-align:middle}.spenn-price[_ngcontent-%COMP%] .spenn-value[_ngcontent-%COMP%]{line-height:1em}.price-suffix[_ngcontent-%COMP%]{margin-left:.3em}.right[_nghost-%COMP%] .spenn-price[_ngcontent-%COMP%]{justify-content:flex-end}.login-wrapper[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:.4em}.login-wrapper[_ngcontent-%COMP%] .spenn-sticker[_ngcontent-%COMP%]{font-weight:400}.has-login-text[_nghost-%COMP%]{display:block} 26/*# sourceMappingURL=price.component.css.map */`],changeDetection:1})}}return t})();var dI=[[["","cardTitle",""]],"*"],pI=["[cardTitle]","*"];function uI(t,i){if(t&1&&(h(0,"a",3),y(1,"translocoStripHtml"),Et(2,4),h(3,"span",5),D(4),y(5,"translocoStripHtml"),_()()),t&2){let e=u(),n=Qe(3);ye("active",e.isActive()),b("ngClass",e.appearance())("href",e.href(),ut),ue("title",O(1,7,"general.link.external")),p(2),b("ngTemplateOutlet",n),p(2),V(O(5,9,"general.link.external"))}}function mI(t,i){if(t&1){let e=B();h(0,"div",6),k("click",function(){N(e);let o=u();return I(o.selectItem())})("keyup.enter",function(){N(e);let o=u();return I(o.selectItem())}),Et(1,4),_()}if(t&2){let e=u(),n=Qe(3);ye("active",e.isActive()),b("ngClass",e.appearance())("tabindex",e.tabIndex()),ue("role",e.appearance()!==e.MicroCardAppearance.InfoOpen?"button":void 0),p(),b("ngTemplateOutlet",n)}}function hI(t,i){if(t&1&&T(0,"app-icon",13)(1,"app-icon",14),t&2){let e=u(2);b("name",e.icon())("size",e.IconSize.TINY),p(),b("name",e.icon())("size",e.IconSize.SMALL)}}function fI(t,i){if(t&1&&(T(0,"img",8),y(1,"translate")),t&2){let e=u(2);b("src",e.imageUrl(),ut)("alt",e.image().altText?O(1,2,e.image().altText):"")}}function gI(t,i){if(t&1&&(h(0,"div",10),D(1),_()),t&2){let e=u(2);p(),V(e.title())}}function _I(t,i){if(t&1&&T(0,"app-price",17),t&2){let e=u(3);bo(e.PriceStyle.Tiny),b("price",e.price())("forceFrom",e.forceFrom())("showVAT",!1)}}function CI(t,i){if(t&1&&T(0,"app-price",18),t&2){let e=u(3);bo(e.PriceStyle.Tiny),b("priceNumber",e.price())("forceFrom",e.forceFrom())("showVAT",!1)}}function yI(t,i){if(t&1&&(h(0,"div",11),w(1,_I,1,5,"app-price",15)(2,CI,1,5,"app-price",16),_()),t&2){let e=u(2);p(),x(e.price().price!==void 0?1:2)}}function bI(t,i){if(t&1&&T(0,"app-icon",12),t&2){let e=u(2);b("name",e.iconRight())("size",e.IconSize.TINY)}}function SI(t,i){if(t&1&&(h(0,"div",7),w(1,hI,2,4)(2,fI,2,4,"img",8),_(),h(3,"div",9),w(4,gI,2,1,"div",10),at(5),at(6,1),_(),w(7,yI,3,1,"div",11),w(8,bI,1,2,"app-icon",12)),t&2){let e=u();p(),x(e.icon()?1:e.imageUrl()?2:-1),p(3),x(e.title()?4:-1),p(3),x(e.price()!==null&&e.price()!==void 0?7:-1),p(),x(e.iconRight()?8:-1)}}var Qs=(function(t){return t.Regular="regular",t.Small="small",t.InfoOpen="info-open",t.InfoFramed="info-framed",t})(Qs||{}),Ub=(()=>{class t{constructor(){this.title=v(""),this.image=v(""),this.icon=v(null),this.iconRight=v(null),this.href=v(),this.price=v(null),this.forceFrom=v(!1),this.isActive=v(!1),this.appearance=v(Qs.Regular),this.tabIndex=v(0),this.show=Re(),this.imageUrl=A(()=>{let e=this.image();return typeof e=="string"?e:$o([e],lo.Mini,An.One)}),this.MicroCardAppearance=Qs,this.PriceStyle=qd,this.IconSize=Se}selectItem(){this.show.emit()}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=H({type:t,selectors:[["app-micro-card"]],inputs:{title:[1,"title"],image:[1,"image"],icon:[1,"icon"],iconRight:[1,"iconRight"],href:[1,"href"],price:[1,"price"],forceFrom:[1,"forceFrom"],isActive:[1,"isActive"],appearance:[1,"appearance"],tabIndex:[1,"tabIndex"]},outputs:{show:"show"},ngContentSelectors:pI,decls:4,vars:1,consts:[["cardContent",""],["target","_blank","rel","noopener noreferrer",1,"micro-card",3,"ngClass","active","href"],[1,"micro-card",3,"ngClass","active","tabindex"],["target","_blank","rel","noopener noreferrer",1,"micro-card",3,"ngClass","href"],[3,"ngTemplateOutlet"],[1,"visually-hidden"],[1,"micro-card",3,"click","keyup.enter","ngClass","tabindex"],[1,"image-wrapper"],["loading","lazy",3,"src","alt"],[1,"details"],[1,"label-small"],[1,"price-wrapper"],["aria-hidden","true",3,"name","size"],[1,"d-inline-block","d-lg-none",3,"name","size"],[1,"d-none","d-lg-inline-block",3,"name","size"],["align","right",3,"style","price","forceFrom","showVAT"],["align","right",3,"style","priceNumber","forceFrom","showVAT"],["align","right",3,"price","forceFrom","showVAT"],["align","right",3,"priceNumber","forceFrom","showVAT"]],template:function(n,o){n&1&&(jt(dI),w(0,uI,6,11,"a",1)(1,mI,2,6,"div",2),bt(2,SI,9,4,"ng-template",null,0,mt)),n&2&&x(o.href()?0:1)}
26,dependencies:[st,bn,Jn,Fe,Fb,rt,Y],styles:[`.display-large[_ngcontent-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:3.25em;line-height:1.125em;font-weight:700}.display-medium[_ngcontent-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:2.875em;line-height:1.1em;font-weight:700}.display-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:2.5em;line-height:1.125em;font-weight:700}.headline-large[_ngcontent-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:2.25em;line-height:1.14em;font-weight:700}.headline-medium[_ngcontent-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:1.875em;line-height:1.1em;font-weight:700}.headline-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:1.5em;line-height:1.13125em;font-weight:700}.title-large[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:1.5em;line-height:1.1875em;font-weight:600}.title-medium[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:1.25em;line-height:1.1875em;font-weight:600}.title-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:1em;line-height:1em;font-weight:600}.label-large[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:1em;line-height:1.1875em;font-weight:600}.label-medium[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.875em;line-height:1.3em;font-weight:600}.label-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.75em;line-height:.875em;font-weight:600}.label-extra-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.625em;line-height:1.2em;font-weight:600}.body-large[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:1em;line-height:1.1875em;font-weight:400}
26.body-medium[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.875em;line-height:1.1em;font-weight:400}.body-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.75em;line-height:1.125em;font-weight:400}.body-extra-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.625em;line-height:.75em;font-weight:400}.micro-card[_ngcontent-%COMP%]{display:flex;margin:.1875em;padding:.3125em;gap:.5em;height:3.5em;transition:border-color .2s,background-color .2s;color:var(--%NS%default-text-color);background-color:var(--%NS%alternate-background-color);text-decoration:none}.micro-card[_ngcontent-%COMP%] .image-wrapper[_ngcontent-%COMP%]{width:2.5em;min-width:2.5em;height:100%;border-radius:var(--%NS%radius-regular);overflow:hidden}.micro-card[_ngcontent-%COMP%] .image-wrapper[_ngcontent-%COMP%]:empty{display:none}.micro-card[_ngcontent-%COMP%] .image-wrapper[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;height:100%;object-fit:cover}.micro-card[_ngcontent-%COMP%] > app-icon.icon[_ngcontent-%COMP%]{display:flex!important;flex:0 0 auto;align-items:center;padding:0}.micro-card[_ngcontent-%COMP%] .price-wrapper[_ngcontent-%COMP%]{display:flex;flex:0 0 auto;align-items:center;justify-content:flex-end;margin-left:auto}.micro-card[_ngcontent-%COMP%] .price-wrapper[_ngcontent-%COMP%] app-price[_ngcontent-%COMP%] .from-prefix{display:block;margin-right:0;margin-bottom:.125em;text-align:start}.micro-card[_ngcontent-%COMP%] .details[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;width:100%}.micro-card[_ngcontent-%COMP%] .details[_ngcontent-%COMP%] div[_ngcontent-%COMP%], .micro-card[_ngcontent-%COMP%] .details[_ngcontent-%COMP%] span[_ngcontent-%COMP%], .micro-card[_ngcontent-%COMP%] .details[_ngcontent-%COMP%] app-price[_ngcontent-%COMP%]{overflow:hidden}.micro-card[_ngcontent-%COMP%] .details[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{line-height:1.125em}.micro-card[_ngcontent-%COMP%] .details[_ngcontent-%COMP%] >:nth-child(2){margin-top:.25em}@media(min-width:576px){.micro-card[_ngcontent-%COMP%]:not(.small){height:4.25em}.micro-card[_ngcontent-%COMP%]:not(.small) .image-wrapper[_ngcontent-%COMP%]{width:3.25em;min-width:3.25em}.micro-card[_ngcontent-%COMP%]:not(.small) .details[_ngcontent-%COMP%] >:nth-child(2){margin-top:.5em}}.micro-card[_ngcontent-%COMP%]:not(.info-open){border:3px solid var(--%NS%alternate-background-color);border-radius:var(--%NS%radius-large)}.micro-card[_ngcontent-%COMP%]:not(.info-open):hover{background-color:var(--%NS%alternate-background-color-darker);border-color:var(--%NS%alternate-background-color-darker)}.micro-card[_ngcontent-%COMP%]:not(.info-open).active{background-color:var(--%NS%body-background-color);border-color:var(--%NS%color-primary)}.micro-card.info-framed[_ngcontent-%COMP%]{border:1px solid var(--%NS%border-color);padding:.5em;gap:.5em;background-color:var(--%NS%modal-background-color);color:var(--%NS%modal-color);height:4.25em}.micro-card.info-framed[_ngcontent-%COMP%]:hover{background-color:var(--%NS%modal-background-darker);border-color:var(--%NS%modal-color)}.micro-card.info-framed[_ngcontent-%COMP%] .image-wrapper[_ngcontent-%COMP%]{width:3.25em;min-width:3.25em}.micro-card.info-open[_ngcontent-%COMP%]{height:2em;margin:.1875em .375em .1875em 0;padding:.3125em .625em .3125em 0;gap:.5em}@media(min-width:1200px){.micro-card.info-open[_ngcontent-%COMP%]{height:2.875em}}.micro-card.info-open[_ngcontent-%COMP%] .image-wrapper[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;color:var(--%NS%default-text-color);background-color:var(--%NS%body-background-color);width:2em;min-width:2em}@media(min-width:1200px){.micro-card.info-open[_ngcontent-%COMP%] .image-wrapper[_ngcontent-%COMP%]{width:2.875em;min-width:2.875em}} 27/*# sourceMappingURL=micro-card.component.css.map */`],changeDetection:1})}}return t})();var $d=(()=>{class t{constructor(){this.MOBILE_QUERY="(max-width: 768px)",this.isMobile=ne(!1),this.platformId=f(Hr),this.listener=e=>{this.isMobile.set(e.matches)},eg(this.platformId)&&(this.mediaQueryList=window.matchMedia(this.MOBILE_QUERY),this.isMobile.set(this.mediaQueryList.matches),this.mediaQueryList.addEventListener("change",this.listener))}ngOnDestroy(){this.mediaQueryList&&this.mediaQueryList.removeEventListener("change",this.listener)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=G({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Hb=(()=>{class t extends _e{static{this.\u0275fac=(()=>{let e;return function(o){return(e||(e=Ne(t)))(o||t)}})()}static{this.\u0275cmp=H({type:t,selectors:[["app-loading-skeleton"]],features:[re],decls:0,vars:0,template:function(n,o){},styles:[`[_nghost-%COMP%]{display:block;position:relative;background-color:#ccc;overflow:hidden}[_nghost-%COMP%]:before{content:"";position:absolute;top:0;left:0;width:200%;height:100%;background-color:#999;filter:blur(75px);animation:_ngcontent-%COMP%_shimmer 2s infinite ease-in-out}@keyframes _ngcontent-%COMP%_shimmer{0%{transform:translate(-150%)}to{transform:translate(100%)}} 28/*# sourceMappingURL=loading-skeleton.component.css.map */`],changeDetection:1})}}return t})();var vI=[[["","panelNotice",""]],[["","panelFooter",""]],[["","panelHeader",""]],"*"],wI=["[panelNotice]","[panelFooter]","[panelHeader]","*"];function xI(t,i){if(t&1){let e=B();h(0,"button",5),k("click",function(o){N(e);let r=u();return I(r.onBackdropClick(o))}),_()}if(t&2){let e=u();ue("aria-label",e.backdropAriaLabel())}}function PI(t,i){t&1&&(h(0,"div",3)(1,"div",6),at(2,2),_(),at(3,3),_(
28))}var Vb=(()=>{class t{constructor(){this.store=f(oe),this.showBackdrop=v(!0),this.showBody=v(!0),this.isClosing=v(!1),this.backdropAriaLabel=v("Dismiss"),this.isInIframe=this.store.selectSignal(e=>e.runtimeState?.isInIframe??!1),this.shouldShowBackdrop=A(()=>this.showBackdrop()&&!this.isInIframe()),this.backdropClick=Re()}onBackdropClick(e){e.stopPropagation(),this.backdropClick.emit()}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=H({type:t,selectors:[["app-panel-card"]],inputs:{showBackdrop:[1,"showBackdrop"],showBody:[1,"showBody"],isClosing:[1,"isClosing"],backdropAriaLabel:[1,"backdropAriaLabel"]},outputs:{backdropClick:"backdropClick"},ngContentSelectors:wI,decls:7,vars:4,consts:[["type","button",1,"panel-card__backdrop"],["appAnimateStart","slideInAnimationShow",1,"panel-card","slideInAnimation","slideInAnimationHide",3,"click"],[1,"panel-card__notice"],[1,"panel-card__body"],[1,"panel-card__footer"],["type","button",1,"panel-card__backdrop",3,"click"],[1,"panel-card__header"]],template:function(n,o){n&1&&(jt(vI),w(0,xI,1,1,"button",0),h(1,"div",1),Co("slideInAnimationToHide"),k("click",function(a){return a.stopPropagation()}),h(2,"div",2),at(3),_(),w(4,PI,4,0,"div",3),h(5,"div",4),at(6,1),_()()),n&2&&(x(o.shouldShowBackdrop()?0:-1),p(),ye("panel-card--closing",o.isClosing()),p(3),x(o.showBody()?4:-1))},dependencies:[Sn],styles:[`.display-large[_ngcontent-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:3.25em;line-height:1.125em;font-weight:700}
28.display-medium[_ngcontent-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:2.875em;line-height:1.1em;font-weight:700}.display-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:2.5em;line-height:1.125em;font-weight:700}.headline-large[_ngcontent-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:2.25em;line-height:1.14em;font-weight:700}.headline-medium[_ngcontent-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:1.875em;line-height:1.1em;font-weight:700}.headline-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:1.5em;line-height:1.13125em;font-weight:700}.title-large[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:1.5em;line-height:1.1875em;font-weight:600}.title-medium[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:1.25em;line-height:1.1875em;font-weight:600}.title-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:1em;line-height:1em;font-weight:600}.label-large[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:1em;line-height:1.1875em;font-weight:600}.label-medium[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.875em;line-height:1.3em;font-weight:600}.label-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.75em;line-height:.875em;font-weight:600}.label-extra-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.625em;line-height:1.2em;font-weight:600}.body-large[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:1em;line-height:1.1875em;font-weight:400}
28.body-medium[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.875em;line-height:1.1em;font-weight:400}.body-small[_ngcontent-%COMP%], .panel-card__notice[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.75em;line-height:1.125em;font-weight:400}.body-extra-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.625em;line-height:.75em;font-weight:400}.foldAnimation[_ngcontent-%COMP%]{display:grid;overflow:hidden;transition:grid-template-rows .3s ease-in-out,opacity .3s ease-in-out}.foldAnimation[_ngcontent-%COMP%] > .foldAnimationContent[_ngcontent-%COMP%]{overflow:hidden}.foldAnimationHide[_ngcontent-%COMP%]{grid-template-rows:0fr;opacity:0}.foldAnimationShow[_ngcontent-%COMP%]{grid-template-rows:1fr;opacity:1}.foldAnimationToHide[_ngcontent-%COMP%]{grid-template-rows:0fr;opacity:0}.fadeAnimation[_ngcontent-%COMP%]{transition:opacity .5s ease-in-out}.fadeAnimationHide[_ngcontent-%COMP%]{opacity:0}.fadeAnimationShow[_ngcontent-%COMP%]{opacity:1}.fadeAnimationToHide[_ngcontent-%COMP%]{opacity:0}.slideUpAnimation[_ngcontent-%COMP%]{--%NS%slideup-translate-x: none;position:fixed;bottom:0;transition:transform .4s ease-out,opacity .4s ease-out;will-change:transform}.slideUpAnimationHide[_ngcontent-%COMP%]{transform:translate(var(--%NS%slideup-translate-x)) translateY(100vh);opacity:0}.slideUpAnimationShow[_ngcontent-%COMP%]{transform:translate(var(--%NS%slideup-translate-x)) translateY(0);opacity:1}.slideUpAnimationToHide[_ngcontent-%COMP%]{transform:translate(var(--%NS%slideup-translate-x)) translateY(100vh);opacity:0}.slideInAnimation[_ngcontent-%COMP%]{transition:transform .4s ease-out,opacity .4s ease-out;will-change:transform}.slideInAnimationHide[_ngcontent-%COMP%]{transform:translate(100%);opacity:0}.slideInAnimationShow[_ngcontent-%COMP%]{transform:translate(0);opacity:1}.slideInAnimationToHide[_ngcontent-%COMP%]{transform:translate(100%);opacity:0}@media(max-width:575.98px){.slideInAnimationHide[_ngcontent-%COMP%]{transform:translateY(100%);opacity:0}.slideInAnimationShow[_ngcontent-%COMP%]{transform:translateY(0);opacity:1}.slideInAnimationToHide[_ngcontent-%COMP%]{transform:translateY(100%);opacity:0}}.modalScaleAnimation[_ngcontent-%COMP%]{transition:transform .3s ease-in-out,opacity .3s ease-in-out;will-change:transform}.modalScaleAnimationHide[_ngcontent-%COMP%]{transform:scale(.9);opacity:0}.modalScaleAnimationShow[_ngcontent-%COMP%]{transform:scale(1);opacity:1}.modalScaleAnimationToHide[_ngcontent-%COMP%]{transform:scale(.9);opacity:0} .disable-animations .foldAnimation, .disable-animations .fadeAnimation, .disable-animations .slideUpAnimation, .disable-animations .slideInAnimation, .disable-animations .modalScaleAnimation{transition-duration:0ms!important}.panel-card[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:20em;max-width:calc(100vw - 1.5em);max-height:min(85dvh,35em);overflow:hidden;cursor:default;color:var(--%NS%default-text-color);background:var(--%NS%modal-background-color);border:1px solid var(--%NS%border-color);border-radius:var(--%NS%radius-large);box-shadow:var(--%NS%shadow-light)}.panel-card.slideInAnimationHide[_ngcontent-%COMP%], .panel-card.slideInAnimationToHide[_ngcontent-%COMP%]{opacity:0;transform:none}.panel-card.slideInAnimationShow[_ngcontent-%COMP%]{opacity:1;transform:none}.panel-card--closing[_ngcontent-%COMP%]{opacity:0;transform:none}.panel-card__notice[_ngcontent-%COMP%]{display:flex;align-items:center;width:100%;min-height:2.5em;padding:.75em;color:var(--%NS%primary-text-color);background:var(--%NS%alternate-background-color)}.panel-card__notice[_ngcontent-%COMP%]:empty{display:none}.panel-card__notice[_ngcontent-%COMP%] [panelNotice]{display:flex;align-items:center;gap:.25em;width:100%}.panel-card__notice[_ngcontent-%COMP%] app-icon, .panel-card__notice[_ngcontent-%COMP%] span{display:flex;align-items:center;line-height:1em}.panel-card__body[_ngcontent-%COMP%]{padding:.75em;overflow-y:auto}.panel-card__header[_ngcontent-%COMP%]{margin-bottom:.5em}.panel-card__header[_ngcontent-%COMP%]:empty{display:none}.panel-card__footer[_ngcontent-%COMP%]{padding:.75em;border-top:1px solid var(--%NS%border-color);background:var(--%NS%modal-background-color)}.panel-card__footer[_ngcontent-%COMP%]:empty{display:none}.panel-card__backdrop[_ngcontent-%COMP%]{display:none}@media(width<495px){.panel-card[_ngcontent-%COMP%]{position:relative;z-index:1;width:100vw;max-width:none;max-height:75vh;border-right:none;border-bottom:none;border-left:none;border-radius:var(--%NS%radius-large) var(--%NS%radius-large) 0 0}.panel-card__header[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:1em;line-height:1.1875em;font-weight:600}.panel-card__body[_ngcontent-%COMP%]{flex:1 1 auto;min-height:0}.panel-card__footer[_ngcontent-%COMP%]{flex:0 0 auto;padding-bottom:calc(.75em + env(safe-area-inset-bottom))}.panel-card__backdrop[_ngcontent-%COMP%]{display:block;position:fixed;inset:0;width:100vw;height:100dvh;z-index:0;padding:0;border:0;cursor:pointer;background:#000000bf}.panel-card.slideInAnimationHide[_ngcontent-%COMP%], .panel-card.slideInAnimationToHide[_ngcontent-%COMP%]{transform:translateY(100%)}.panel-card.slideInAnimationShow[_ngcontent-%COMP%]{transform:translateY(0)}.panel-card.panel-card--closing[_ngcontent-%COMP%]{opacity:0;transform:translateY(100%)}} 29/*# sourceMappingURL=panel-card.component.css.map */`],changeDetection:1})}}return t})();var MI=t=>({currentHotel:t}),OI=()=>["w-100"],DI=()=>[1,2,3],NI=(t,i)=>i.siteId;function II(t,i){if(t&1&&(h(0,"span"),D(1),_()),t&2){let e=u(2);p(),ee("\xA0",e.mobileNoticeDate())}}function kI(t,i){t&1&&(h(0,"div",10),T(1,"app-loading-skeleton",11),h(2,"div",12),T(3,"app-loading-skeleton",13)(4,"app-loading-skeleton",14),_()())}function TI(t,i){t&1&&(h(0,"div",8),D(1),y(2,"translocoStripHtml"),_(),h(3,"div",9),we(4,kI,5,0,"div",10,Xe),_()),t&2&&(p(),ee(" ",O(2,1,"search.date.cross-sell.looking-for-hotels")," "),p(3),xe(Pe(3,DI)))}function RI(t,i){t&1&&(h(0,"p",4),D(1),y(2,"translocoStripHtml"),_()),t&2&&(p(),V(O(2,1,"search.date.cross-sell.empty")))}function EI(t,i){t&1&&(h(0,"p",5),D(1),y(2,"translocoStripHtml"),_()),t&2&&(p(),V(O(2,1,"search.date.cross-sell.error")))}function AI(t,i){if(t&1&&(h(0,"span",19),D(1),y(2,"translocoStripHtml"),_()),t&2){let e=u().$implicit,n=u(3);p(),So("",n.formatDistance(e.distanceMeters)," ",O(2,2,"general.away"))}}function LI(t,i){if(t&1){let e=B();h(0,"li",16)(1,"a",17),k("click",function(o){let r=N(e).$implicit,a=u(3);return I(a.openHotelLink(r.deeplinkUrl,o))})("keydown.enter",function(o){let r=N(e).$implicit,a=u(3);return I(a.openHotelLink(r.deeplinkUrl,o))})("keydown.space",function(o){let r=N(e).$implicit,a=u(3);return I(a.openHotelLink(r.deeplinkUrl,o))}),h(2,"app-micro-card",18),w(3,AI,3,4,"span",19),_()()()}if(t&2){let e=i.$implicit,n=u(3);p(),b("href",e.deeplinkUrl,ut),p(),b("title",e.siteName)("image",e.imageUrl??"")("appearance",n.MicroCardAppearance.Small)("price",e.fromPrice)("forceFrom",!0)("tabIndex",-1),p(),x(e.distanceMeters!==null?3:-1)}}function zI(t,i){if(t&1&&(h(0,"div",8),D(1),y(2,"translocoStripHtml"),_(),h(3,"ul",15),we(4,LI,4,8,"li",16,NI),_()),t&2){let e=u(2);
29p(),ee(" ",O(2,1,"search.date.cross-sell.nearby-hotels")," "),p(3),xe(e.alternatives())}}function BI(t,i){if(t&1){let e=B();h(0,"app-panel-card",1),k("backdropClick",function(){N(e);let o=u();return I(o.dismiss())}),h(1,"div",2),T(2,"app-icon",3),h(3,"span"),D(4),y(5,"translocoStripHtml"),w(6,II,2,1,"span"),_()(),w(7,TI,6,4),w(8,RI,3,3,"p",4),w(9,EI,3,3,"p",5),w(10,zI,6,3),h(11,"div",6)(12,"app-button",7),y(13,"translocoStripHtml"),y(14,"translocoStripHtml"),k("btnClick",function(){N(e);let o=u();return I(o.dismiss())}),_()()()}if(t&2){let e=u();b("showBackdrop",!e.isInIframe())("isClosing",e.isClosing()),p(2),b("size",e.IconSize.TINY),p(2),ee(" ",W(5,15,e.noticeTranslationKey(),Z(22,MI,e.currentHotelName()))," "),p(2),x(e.mobileNoticeDate()?6:-1),p(),x(e.status()==="loading"?7:-1),p(),x(e.status()==="empty"?8:-1),p(),x(e.status()==="error"?9:-1),p(),x(e.status()==="loaded"?10:-1),p(2),b("label",Dt(O(13,18,"general.close"))),he("aria-label",Dt(O(14,20,"general.close"))),b("appearance",e.dismissButtonStyle())("additionalClasses",Pe(24,OI))}}var Wd=(()=>{class t{constructor(){this.closeAnimationDuration=400,this.closeTimeout=null,this.store=f(oe),this.viewportService=f($d),this.dateUtils=f(Ft),this.widgetService=f(li),this.selectedDate=v(""),this.isClosing=ne(!1),this.status=Me(this.store.select(Eb)),this.alternatives=Me(this.store.select(Ab)),this.currentHotelName=Me(this.store.select(Lb)),this.reason=Me(this.store.select(zb)),this.language=Me(this.store.select(ht)),this.isInIframe=Me(this.store.select(qi),{initialValue:!1}),this.formatDistance=Bb,this.IconSize=Se,this.MicroCardAppearance=Qs,this.ButtonStyle=Oe,this.dismissButtonStyle=A(()=>this.viewportService.isMobile()?Oe.PRIMARY:Oe.SECONDARY),this.noticeTranslationKey=A(()=>this.reason()==="noArrival"?"search.date.cross-sell.notice.no-arrival-at-current-hotel":"search.date.cross-sell.notice.no-availability-at-current-hotel"),this.mobileNoticeDate=A(()=>!this.viewportService.isMobile()||!this.selectedDate()?"":this.dateUtils.stringToDateTime(this.selectedDate()).setLocale(this.language()??"en-US").toFormat("d/M")),this.dismissed=Re()}dismiss(){this.isClosing()||(this.isClosing.set(!0),this.closeTimeout=setTimeout(()=>this.dismissed.emit(),this.closeAnimationDuration))}ngOnDestroy(){this.closeTimeout&&clearTimeout(this.closeTimeout)}openHotelLink(e,n){if(n.preventDefault(),n.stopPropagation(),this.isInIframe()){this.widgetService.doRedirect(new URL(e));return}window.open(e,"_blank","noopener,noreferrer")}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=H({type:t,selectors:[["app-cross-sell-panel"]],inputs:{selectedDate:[1,"selectedDate"]},outputs:{dismissed:"dismissed"},decls:1,vars:1,consts:[["backdropAriaLabel","Dismiss alternatives",3,"showBackdrop","isClosing"],["backdropAriaLabel","Dismiss alternatives",3,"backdropClick","showBackdrop","isClosing"],["panelNotice","",1,"cross-sell-panel__notice"],["name","info",3,"size"],[1,"cross-sell-panel__empty"],[1,"cross-sell-panel__error"],["panelFooter",""],[1,"cross-sell-panel__dismiss",3,"btnClick","appearance","label","aria-label","additionalClasses"],["panelHeader","",1,"cross-sell-panel__header"],["aria-busy","true","aria-label","Loading nearby hotels",1,"cross-sell-panel__skeleton"],[1,"cross-sell-panel__skeleton-row"],[1,"cross-sell-panel__skeleton-thumb"],[1,"cross-sell-panel__skeleton-lines"],[1,"cross-sell-panel__skeleton-line","cross-sell-panel__skeleton-line--name"],[1,"cross-sell-panel__skeleton-line","cross-sell-panel__skeleton-line--detail"],[1,"cross-sell-panel__list"],[1,"cross-sell-panel__item"],["target","_blank","rel","noopener noreferrer",1,"cross-sell-panel__link",3,"click","keydown.enter","keydown.space","href"],["iconRight","openExternal",3,"title","image","appearance","price","forceFrom","tabIndex"],[1,"body-small"]],template:function(n,o){n&1&&w(0,BI,15,25,"app-panel-card",0),n&2&&x(o.status()!=="idle"?0:-1)},dependencies:[Fe,Ub,De,Hb,Vb,Y],styles:[`.display-large[_ngcontent-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:3.25em;line-height:1.125em;font-weight:700}
29.display-medium[_ngcontent-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:2.875em;line-height:1.1em;font-weight:700}.display-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:2.5em;line-height:1.125em;font-weight:700}.headline-large[_ngcontent-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:2.25em;line-height:1.14em;font-weight:700}.headline-medium[_ngcontent-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:1.875em;line-height:1.1em;font-weight:700}.headline-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:1.5em;line-height:1.13125em;font-weight:700}.title-large[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:1.5em;line-height:1.1875em;font-weight:600}.title-medium[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:1.25em;line-height:1.1875em;font-weight:600}.title-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:1em;line-height:1em;font-weight:600}.label-large[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:1em;line-height:1.1875em;font-weight:600}.label-medium[_ngcontent-%COMP%], .cross-sell-panel__header[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.875em;line-height:1.3em;font-weight:600}.label-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.75em;line-height:.875em;font-weight:600}.label-extra-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.625em;line-height:1.2em;font-weight:600}.body-large[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:1em;line-height:1.1875em;font-weight:400}
29.body-medium[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.875em;line-height:1.1em;font-weight:400}.body-small[_ngcontent-%COMP%], .cross-sell-panel__empty[_ngcontent-%COMP%], .cross-sell-panel__error[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.75em;line-height:1.125em;font-weight:400}.body-extra-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.625em;line-height:.75em;font-weight:400}.cross-sell-panel__header[_ngcontent-%COMP%]{margin-bottom:.5em;color:var(--%NS%modal-color)}.cross-sell-panel__list[_ngcontent-%COMP%]{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:.5em}.cross-sell-panel__item[_ngcontent-%COMP%]{line-height:0}.cross-sell-panel__link[_ngcontent-%COMP%]{display:block;cursor:pointer;text-decoration:none;color:inherit}.cross-sell-panel__link[_ngcontent-%COMP%]:hover{text-decoration:none}.cross-sell-panel__link[_ngcontent-%COMP%] .micro-card{line-height:normal}.cross-sell-panel__link[_ngcontent-%COMP%] .micro-card:not(.info-open){border:none;margin:0;padding:.5em}.cross-sell-panel__dismiss[_ngcontent-%COMP%]{display:block}.cross-sell-panel__notice[_ngcontent-%COMP%] app-icon[_ngcontent-%COMP%]{flex-shrink:0}.cross-sell-panel__skeleton[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5em}.cross-sell-panel__skeleton-row[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5em;padding:.5em;background:var(--%NS%alternate-background-color);border-radius:var(--%NS%radius-large)}.cross-sell-panel__skeleton-thumb[_ngcontent-%COMP%]{width:2.5em;height:2.5em;flex-shrink:0;border-radius:var(--%NS%radius-regular)}.cross-sell-panel__skeleton-lines[_ngcontent-%COMP%]{display:flex;flex-direction:column;flex:1;gap:.375em}.cross-sell-panel__skeleton-line[_ngcontent-%COMP%]{height:.75em;border-radius:.125em}.cross-sell-panel__skeleton-line--name[_ngcontent-%COMP%]{width:60%}.cross-sell-panel__skeleton-line--detail[_ngcontent-%COMP%]{width:40%}.cross-sell-panel__empty[_ngcontent-%COMP%], .cross-sell-panel__error[_ngcontent-%COMP%]{margin:0;color:var(--%NS%modal-color)}@media(width<495px){.cross-sell-panel__header[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:1em;line-height:1.1875em;font-weight:600}} 30/*# sourceMappingURL=cross-sell-panel.component.css.map */`],changeDetection:1})}}return t})();var Gi=(()=>{class t{constructor(){this.popover=f(na,{optional:!0}),this.dropdown=f($t,{optional:!0}),this.elementRef=f(Ut),this.ngZone=f(Qn),this.extraTarget=v(void 0,{alias:"appCloseOnOutsideClick"}),this.popover&&(this.popover.autoClose=!1),this.dropdown&&(this.dropdown.autoClose=!1),this.ngZone.runOutsideAngular(()=>{let e=n=>this.onDocumentClick(n);document.addEventListener("click",e,!0),this.removeListener=()=>document.removeEventListener("click",e,!0)})}onDocumentClick(e){let n=this.popover??this.dropdown;if(!n||!n.isOpen())return;let o=e.composedPath(),r=o.includes(this.elementRef.nativeElement),a=this.extraTarget(),s=Array.isArray(a)?a:[a];for(let l of s){if(!l)continue;let c=typeof l=="string"?document.querySelector(l):l;if(c&&o.includes(c)){r=!0;break}}r||this.ngZone.run(()=>n.close())}ngOnDestroy(){this.removeListener?.()}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275dir=tn({type:t,selectors:[["","appCloseOnOutsideClick",""]],inputs:{extraTarget:[1,"appCloseOnOutsideClick","extraTarget"]}})}}return t})();function Xo(t,i){let e=t?.calendarStartDate;return!t?.preselectCalendarStartDate||!e||e<i?null:e}var FI=["dp"],UI=["nightsPopover"],HI=["previousMonth"],VI=["nextMonth"],jb=(t,i,e)=>({year:t,month:i,day:e}),qI=(t,i)=>({year:t,month:i}),$b=t=>({month:t}),jI=(t,i,e,n,o,r)=>[t,i,e,n,o,r],Wb=()=>[],$I=(t,i)=>({date:t,price:i}),WI=()=>({minimal:!0}),GI=(t,i)=>({minNights:t,maxNights:i}),YI=t=>({minNights:t}),KI=t=>({maxNights:t}),Gd=t=>({nights:t}),ZI=(t,i)=>i.nights;function QI(t,i){if(t&1&&(h(0,"span",16),D(1),_()),t&2){let e=i.$implicit;p(),V(e)}}function JI(t,i){if(t&1){let e=B();h(0,"div")(1,"div",9)(2,"a",10,2),y(4,"translocoStripHtml"),k("click",function(o){N(e);let r=u(3);return I(r.navigate(-1,o,!0))}),T(5,"app-icon",11),_(),h(6,"span",12),D(7),_(),h(8,"a",13,3),y(10,"translocoStripHtml"),k("click",function(o){N(e);let r=u(3);return I(r.navigate(1,o,!1))}),T(11,"app-icon",14),_()(),h(12,"div",15),we(13,QI,2,1,"span",16,Xe),_(),T(15,"ngb-datepicker-month",17),_()}if(t&2){let e=i.$implicit,n=u(3);p(2),ue("aria-label",W(4,7,"search.calendar.previous-month",Z(13,$b,n.monthLabels[(e.month-2+12)%12]))),p(3),b("size",n.IconSize.TINY),p(2),So(" ",n.monthLabels[e.month-1]," ",e.year," "),p(),ue("aria-label",W(10,10,"search.calendar.previous-month",Z(15,$b,n.monthLabels[e.month%12]))),p(3),b("size",n.IconSize.TINY),p(2),xe(n.weekdayLabels),p(2),b("month",e)}}function XI(t,i){if(t&1&&we(0,JI,16,17,"div",null,Xe),t&2){u();let e=Qe(1);xe(e.state.months)}}function ek(t,i){t&1&&(h(0,"span"),D(1),y(2,"translocoStripHtml"),_()),t&2&&(p(),V(O(2,1,"search.date.cross-sell.info")))}function tk(t,i){if(t&1&&T(0,"app-icon",25),t&2){let e=u(5);b("size",e.IconSize.XTINY)}}function nk(t,i){if(t&1){let e=B();h(0,"button",24),y(1,"translocoStripHtml"),k("click",function(o){N(e),u(2);let r=fe(0),a=u(2);return I(a.onDateInfoBadgeClick(r,o))}),w(2,ek,3,3,"span")(3,tk,1,1,"app-icon",25),_()}if(t&2){u(2);let e=fe(0),n=fe(3),o=u(2);ye("price-hidden",!o.fetchingDataLoader()&&!o.displayDayByDayPrices()&&o.fromDate()!==e&&n),he("aria-label",Dt(O(1,5,"search.date.cross-sell.info"))),p(2),x(o.fetchingDataLoader()?3:2)}}function ik(t,i){if(t&1&&(h(0,"span",26),D(1),y(2,"customCurrency"),_(),h(3,"span",27),D(4),y(5,"customCurrency"),_()),t&2){u(2);let e=fe(1);
30p(),V(Rn(2,2,e,!1,Pe(8,WI))),p(3),V(O(5,6,e))}}function ok(t,i){if(t&1&&T(0,"app-icon",25),t&2){let e=u(5);b("size",e.IconSize.XTINY)}}function rk(t,i){if(t&1&&(h(0,"span",22),w(1,ik,6,9)(2,ok,1,1,"app-icon",25),_()),t&2){let e=u(4);p(),x(e.fetchingDataLoader()?2:1)}}function ak(t,i){if(t&1&&(h(0,"span",26),D(1),_(),h(2,"span",27),D(3),_()),t&2){let e=u(3),n=fe(2);p(),V(n?e.perNightPriceMobile:e.priceMobile),p(2),V(n?e.perNightPriceDesktop:e.priceDesktop)}}function sk(t,i){if(t&1&&(h(0,"span",22),w(1,ak,4,2),_()),t&2){let e=i;u(3);let n=fe(0),o=fe(3),r=u(2);ye("price-hidden",!r.displayDayByDayPrices()&&r.fromDate()!==n&&o),p(),x(e.showPrice&&e.isAvailable?1:-1)}}function lk(t,i){if(t&1&&(h(0,"div",29),T(1,"app-icon",25),_()),t&2){let e=u(5);p(),b("size",e.IconSize.XTINY)}}function ck(t,i){if(t&1&&w(0,sk,2,3,"span",28)(1,lk,2,1,"div",29),t&2){let e,n=u(),o=u(3);x((e=o.priceForDates()&&!o.fetchingDataLoader()&&n.priceCalendarData)?0:o.fetchingDataLoader()?1:-1,e)}}function dk(t,i){if(t&1){let e=B();h(0,"app-cross-sell-panel",32),k("dismissed",function(){N(e);let o=u(5);return I(o.closeCurrentCrossSellPopover())}),_()}if(t&2){u(3);let e=fe(0);b("selectedDate",e)}}function pk(t,i){if(t&1){let e=B();h(0,"ul",31)(1,"li",33),k("click",function(o){N(e);let r=u(5);return I(r.ignoreDisabledNightOption(o))}),D(2),y(3,"translocoStripHtml"),_()()}t&2&&(p(2),ee(" ",O(3,1,"search.date.no-arrival")," "))}function uk(t,i){t&1&&(h(0,"span",38),D(1,"*"),_())}function mk(t,i){if(t&1&&(D(0),y(1,"translocoStripHtml")),t&2){u(2);let e=fe(1),n=fe(2);ee(" ",W(1,1,"search.restriction-message.text.minmax-nights",St(4,GI,e,n))," ")}}function hk(t,i){if(t&1&&(D(0),y(1,"translocoStripHtml")),t&2){u(2);let e=fe(1);ee(" ",W(1,1,"search.restriction-message.text.min-nights",Z(4,YI,e))," ")}}function fk(t,i){if(t&1&&(D(0),y(1,"translocoStripHtml")),t&2){u(2);let e=fe(2);ee(" ",W(1,1,"search.restriction-message.text.max-nights",Z(4,KI,e))," ")}}function gk(t,i){if(t&1){let e=B();h(0,"li",37),k("click",function(o){N(e);let r=u(6);return I(r.ignoreDisabledNightOption(o))}),w(1,uk,2,0,"span",38),w(2,mk,2,7)(3,hk,2,6)(4,fk,2,6),_()}if(t&2){u();let e=fe(3),n=fe(4);p(),x(e?1:-1),p(),x(e&&n?2:e?3:4)}}function _k(t,i){if(t&1){let e=B();h(0,"li",39),y(1,"translocoStripHtml"),k("keydown.enter",function(o){N(e);let r=u(6);return I(r.selectDateAndNights(0,o))})("click",function(o){N(e);let r=u(6);return I(r.selectDateAndNights(0,o))}),D(2),y(3,"translocoStripHtml"),_()}t&2&&(ue("aria-label",O(1,2,"search.calendar.date.day-package")),p(2),ee(" ",O(3,4,"search.popover.daypackage")," "))}function Ck(t,i){if(t&1){let e=B();h(0,"li",42),y(1,"translocoStripHtml"),k("click",function(o){N(e);let r=u(7);return I(r.ignoreDisabledNightOption(o))}),h(2,"span"),D(3),y(4,"translocoStripHtml"),_(),h(5,"span",43),D(6),y(7,"translocoStripHtml"),h(8,"span"),D(9),_()()()}if(t&2){let e=u().$implicit;u(4);let n=fe(0),o=u(2),r=o.dateUtils.addDays(n,e.nights);ue("aria-label",W(1,6,e.nights>1?"search.calendar.date.nights":"search.calendar.date.night",Z(14,Gd,e.nights)))("data-qa","calendar-night-option-"+e.nights)("data-disabled-date",r),p(3),ee(" ",W(4,9,e.nights>1?"search.popover.nights":"search.popover.night",Z(16,Gd,e.nights))," "),p(3),ee(" ",O(7,12,e.disabledReason)," "),p(3),V(o.getDisabledNightDateLabel(r))}}function yk(t,i){if(t&1){let e=B();h(0,"li",44),y(1,"translocoStripHtml"),k("keydown.enter",function(o){N(e);let r=u().$implicit,a=u(6);return I(a.selectDateAndNights(r.nights,o))})("click",function(o){N(e);let r=u().$implicit,a=u(6);return I(a.selectDateAndNights(r.nights,o))}),D(2),y(3,"translocoStripHtml"),_()}if(t&2){let e=u().$implicit;ue("aria-label",W(1,3,e.nights>1?"search.calendar.date.nights":"search.calendar.date.night",Z(9,Gd,e.nights)))("data-qa","calendar-night-option-"+e.nights),p(2),ee(" ",W(3,6,e.nights>1?"search.popover.nights":"search.popover.night",Z(11,Gd,e.nights))," ")}}function bk(t,i){if(t&1&&w(0,Ck,10,18,"li",40)(1,yk,4,13,"li",41),t&2){let e=i.$implicit;x(e.disabledReason?0:1)}}function Sk(t,i){if(t&1){let e=B();h(0,"li",45),y(1,"translocoStripHtml"),k("keydown.enter",function(o){N(e);let r=u(3),a=u(3);return I(a.toggleMoreNights(o,r.usedNights.length))})("click",function(o){N(e);let r=u(3),a=u(3);return I(a.toggleMoreNights(o,r.usedNights.length))}),D(2),y(3,"translocoStripHtml"),T(4,"app-icon",46),_()}if(t&2){let e=u(6);
30ue("aria-label",O(1,3,"search.popover.more-nights")),p(2),ee(" ",O(3,5,"search.popover.more-nights")," "),p(2),b("size",e.IconSize.XTINY)}}function vk(t,i){if(t&1&&(h(0,"ul",31),qe(1)(2)(3)(4),w(5,gk,5,2,"li",34),w(6,_k,4,6,"li",35),we(7,bk,2,1,null,null,ZI),w(9,Sk,5,7,"li",36),_()),t&2){let e=u(2),n=u(3);p();let o=Je(e.priceCalendarData?.minLengthOfStay??0);p();let r=Je(e.priceCalendarData?.maxLengthOfStay??n.maxNights);p();let a=Je(o>n.minNights);p();let s=Je(r<n.maxNights);p(),x(a||s?5:-1),p(),x(n.allowDayPackages?6:-1),p(),xe(e.usedNightOptions.concat(n.showMoreNights?e.usedShowMoreNightOptions:Pe(7,Wb))),p(2),x(!n.showMoreNights&&e.usedShowMoreNightOptions.length>0&&(!n.enforcedSearchType()||n.enforcedSearchType()===n.BookingSearchType.Overnight)?9:-1)}}function wk(t,i){if(t&1&&w(0,dk,1,1,"app-cross-sell-panel",30)(1,pk,4,3,"ul",31)(2,vk,10,8,"ul",31),t&2){let e=u(),n=fe(0);x(n&&e.crossSellEligible?0:n&&e.priceCalendarData?.noArrival?1:2)}}function xk(t,i){if(t&1){let e=B();qe(0)(1)(2),h(3,"div",19,4),y(6,"hasRestrictions"),y(7,"translocoStripHtml"),k("hidden",function(){N(e);let o=u(3);return I(o.onPopoverHidden())})("click",function(o){N(e);let r=u(3);return I(r.onCalendarClick(o))}),h(8,"span",20),D(9),_(),w(10,nk,4,7,"button",21),w(11,rk,3,1,"span",22),w(12,ck,2,1),qe(13),y(14,"customCurrency"),h(15,"span",23),D(16),y(17,"translocoStripHtml"),_(),bt(18,wk,3,1,"ng-template",null,5,mt),_()}if(t&2){let e=i,n=Qe(5),o=Qe(19),r=u(),a=r.date,s=r.currentMonth,l=r.selected,c=r.disabled,d=fe(0),m=fe(3),g=u(2),C=fe(0),R=c||d<g.minCalendarPickableDate().toFormat("yyyy-MM-dd")||d>g.maxCalendarPickableDate().toFormat("yyyy-MM-dd"),F=R||!e.isAvailable,X=Je(!g.isSearching()&&!g.disabled()&&!R&&!e.isAvailable&&e.hasActionableInfo&&g.priceCalendarEnabled()),te=g.priceForDates()?.[g.fromDate()]?.requestedPerNightPrice;p();let K=Je(te?.[d]),Ge=X&&m&&g.displayDayByDayPrices()&&K!==void 0&&K!==null,se=X&&m&&g.displayDayByDayPrices()&&(g.fetchingDataLoader()||Ge);p();let L=Je(g.displayOneNightPriceNonSelected()&&!g.displayDayByDayPrices()&&!m);p(),ye("chosen",l)("range-start",g.fromDate()===d||g.clickedDate()===d&&!m)("range-click-surface",g.clickedDate()===d&&m)("faded",(m||g.clickedDate()===d)&&(!F||g.isSearching()||X))("half-faded",g.searchType===g.BookingSearchType.Overnight&&d===g.toDate()&&g.nights()>0)("show-arrow",g.searchType===g.BookingSearchType.Overnight&&C&&d===g.toDate()&&g.nights()>0)("searching",g.isSearching())("disabled",g.isSearching()||F&&!X)("date-info-actionable",X)("has-allotment",!F&&!l&&(!g.priceForDates()||e.isAvailable))("has-restrictions",Ff(6,41,Bf(55,jI,a,g.priceForDates(),g.markDatesWithRestrictions(),g.searchType,g.minNights,g.maxNights)))("current-month",a.month===s),b("ngbPopover",o)("popoverClass",X&&e.crossSellEligible?"calendar-popover date-info-popover":"calendar-popover")("appCloseOnOutsideClick",g.getParentOfElement(n)||Pe(62,Wb)),ue("aria-selected",(m||d===g.toDate()||g.clickedDate()===d)&&(!F||g.isSearching()||X)?"true":"false")("aria-label",X?O(7,48,"search.date.cross-sell.info"):null)("aria-labelledby",g.ariaIdPrefix()+"-"+d)("data-qa","calendar-day-"+a.day)("data-date",d),p(6),V(a.day),p(),x(X&&!se?10:-1),p(),x(se?11:-1),p(),x(g.priceCalendarEnabled()&&!e.hasActionableInfo?12:-1);let Ye=g.priceCalendarEnabled()&&(Ge||e.priceCalendarData?.showPrice&&e.priceCalendarData?.isAvailable&&(g.displayDayByDayPrices()||g.fromDate()===d||!m)),Pt=Ge?O(14,50,K??0):L?e.perNightPriceDesktop:e.priceDesktop;p(3),b("id",g.ariaIdPrefix()+"-"+d),p(),V(W(17,52,Ye?"search.calendar.date-with-price":"search.calendar.date",St(63,$I,d,Pt)))}}function Pk(t,i){if(t&1&&(qe(0),y(1,"number"),y(2,"number"),qe(3),w(4,xk,20,66,"div",18)),t&2){let e,n=i.date,o=u(2),r=Je(n.year+"-"+W(1,1,n.month,"2.0-0")+"-"+W(2,4,n.day,"2.0-0"));p(3),Je(o.fromDate()===r||o.fromDate()&&o.toDate()&&o.fromDate()<=r&&o.toDate()>r),p(),x((e=o.calendarData[r])?4:-1,e)}}function Mk(t,i){if(t&1){let e=B();h(0,"ngb-datepicker",7,0),k("navigate",function(o){N(e);let r=u();return I(r.onDatePickerNavigate(o))})("dateSelect",function(o){N(e);let r=u();return I(r.setClickedDate(o))}),bt(2,XI,2,0,"ng-template",8)(3,Pk,5,9,"ng-template",null,1,mt),_(),un()}if(t&2){let e=Qe(4),n=u();b("ngModel",n.fromDateStruct())("dayTemplate",e)("disabled",n.disabled())("minDate",$r(6,jb,n.minCalendarPickableDate().year,n.minCalendarPickableDate().month,n.minCalendarPickableDate().day))("maxDate",$r(10,jb,n.maxCalendarPickableDate().year,n.maxCalendarPickableDate().month,n.maxCalendarPickableDate().day))("startDate",St(14,qI,n.currentShowingYearInCalendar,n.currentShowingMonthInCalendar)),mn()}}var ch=class{constructor(){this.crossSellEligible=!1,this.crossSellReason="soldOut",this.hasActionableInfo=!1,this.usedNights=[],this.usedShowMoreNights=[],this.usedNightOptions=[],this.usedShowMoreNightOptions=[]}},er=(()=>{class t extends Jo{get minNights(){return this._minNights}set minNights(e){!e||e<1?this._minNights=1:this._minNights=e}get maxNights(){return this._maxNights}set maxNights(e){!e||e<1?this._maxNights=this.processed.getInit().globals.maxSearchDays:this._maxNights=e}constructor(){super(),this.dateUtils=f(Ft),this.i18n=f(uo),this.processed=f(ae),this.hasRestrictions=f(Ks),this.currencyPipe=f(Dn),this.toastService=f(vs),this.translatePipe=f(Y),this.host=f(Ut),this.datepicker=We("dp"),this.nightsPopoverList=Hf("nightsPopover"),this.previousMonth=We("previousMonth"),this.nextMonth=We("nextMonth"),this.priceCalendarEnabled=v(!1),this.fetchingDataLoader=v(!1),this.minCalendarPickableDate=v(this.dateUtils.newDateTime()),this.maxCalendarPickableDate=v(this.minCalendarPickableDate().plus({years:100})),this.markDatesWithRestrictions=v(!0),this.ariaIdPrefix=v("date"),this.allowDayPackages=!0,this.clickedDate=ne(""),this.previousClickedDate=ne(""),this._hasSelectedRange=!1,this.calendarData={},this.currentNightPopover=null,this.currentDateInfoPopover=null,this.currentDateInfoDate=null,this._minNights=1,this._maxNights=10,this.disabled=v(!1),this.nights=Mn.required(),this.priceForDates=v.required(),this.currency=v(),this.enforcedSearchType=v(),this.selectSingleDate=v(!1),this.language=v(""),this.isSearching=v(!1),this.displayDayByDayPrices=v(!1),this.displayOneNightPriceNonSelected=v(!1),this.dateInfoDates=v([]),this.crossSellNights=v(null),this.calendarChange=Re(),this.calendarNavigate=Re(),this.dateInfoTriggered=Re(),this.crossSellTriggered=Re(),this.fromDate=Mn.required(),this.fromDateStruct=A(()=>this.fromDate()?this.dateUtils.stringToNgDateStruct(this.fromDate()):null),this.toDate=A(()=>this.fromDate()?this.dateUtils.addDays(this.fromDate(),this.nights()):null),this.monthLabels=this.i18n.getMonthList(),this.weekdayLabels=this.i18n.getDayList(),this.BookingSearchType=J,this.IconSize=Se,this.initializeCalendar=ne(!1),this.widgetStartDatePreselectionResolved=!1,this.widgetStartDateAvailabilityRequested=!1,et(()=>{this.fromDateStruct()?(this.currentShowingMonthInCalendar=this.fromDateStruct().month,this.currentShowingYearInCalendar=this.fromDateStruct().year):(this.currentShowingMonthInCalendar=this.minCalendarPickableDate().month,this.currentShowingYearInCalendar=this.minCalendarPickableDate().year)}),et(()=>
30{this.initializeCalendar()||setTimeout(()=>{this.initializeCalendar.set(!0),setTimeout(()=>this.initializeFromWidget())},1)})}ngOnInit(){this.processed.getInit().globals.hideDayPackageChoiceFromStartPageCalendar&&(this.allowDayPackages=!1),this.enforcedSearchType()===J.Overnight&&(this.allowDayPackages=!1)}ngOnChanges(e){e.fetchingDataLoader?.currentValue===!0&&(this.widgetStartDateAvailabilityRequested=!0),(e.priceForDates||e.currency||e.calendarCrossEligible||e.dateInfoDates)&&this.calcCalendarData(e.priceForDates?.currentValue||this.priceForDates()),(e.priceForDates||e.fetchingDataLoader)&&this.tryPreselectWidgetStartDate(),e.language&&(this.monthLabels=this.i18n.getMonthList(),this.weekdayLabels=this.i18n.getDayList())}initializeFromWidget(){let n=this.processed.getWidget()?.calendarStartDate;if(!n)return;let o=this.dateUtils.stringToDateTime(n);this.datepicker()?.navigateTo({year:o.year,month:o.month}),this.tryPreselectWidgetStartDate()}tryPreselectWidgetStartDate(){if(this.widgetStartDatePreselectionResolved)return;if(this.fromDate()){this.widgetStartDatePreselectionResolved=!0;return}let e=this.processed.getWidget();if(!e)return;let n=Xo(e,this.dateUtils.newDateOnlyString());if(!n){this.widgetStartDatePreselectionResolved=!0;return}if(this.priceCalendarEnabled()){let o=this.priceForDates();if(this.fetchingDataLoader()||o===null&&!this.widgetStartDateAvailabilityRequested||o?.[n]?.isAvailable===!1)return;this.widgetStartDatePreselectionResolved=!0}else this.widgetStartDatePreselectionResolved=!0;this.fromDate.set(n),this.nights.set(e.type===J.Overnight?1:0),this.searchType=e.type,this.emitChanges()}calcCalendarData(e=null){if(!this.currentShowingMonthInCalendar)return;let n=this.dateUtils.getMonthDatesAsStringKeys(this.currentShowingYearInCalendar,this.currentShowingMonthInCalendar),o={};for(let r of n){let a=new ch,s=e?.[r]||this.priceForDates()?.[r];a.date=this.dateUtils.stringToNgDateStruct(r),a.isAvailable=s?.isAvailable??!0,a.crossSellEligible=s?.crossSellEligible??!1,a.crossSellReason=this.resolveCrossSellReason(s),a.hasActionableInfo=a.crossSellEligible||!!s?.noArrival||this.dateInfoDates().includes(r),a.usesPriceCalendar=this.priceCalendarEnabled()&&!!s,a.priceCalendarData=s??null;let l=s?this.displayDayByDayPrices()?s.perNightPrice:s.price:0;a.priceMobile=s?this.currencyPipe.transform(l,!1,{minimal:!0}):"",a.priceDesktop=s?this.currencyPipe.transform(l):"",a.perNightPriceMobile=s?this.currencyPipe.transform(s.perNightPrice,!1,{minimal:!0}):"",a.perNightPriceDesktop=s?this.currencyPipe.transform(s.perNightPrice):"";let c=this.enforcedSearchType();if(!c||c===J.Overnight){let d=this.minNights;s?.minLengthOfStay&&(d=s.minLengthOfStay);let m=this.maxNights;s?.maxLengthOfStay&&(m=s.maxLengthOfStay);let g=this.getNightOptions(r,d,m,s,e??this.priceForDates());a.usedNightOptions=g.slice(0,3),a.usedShowMoreNightOptions=g.slice(3),a.usedNights=a.usedNightOptions.filter(C=>!C.disabledReason).map(C=>C.nights),a.usedShowMoreNights=a.usedShowMoreNightOptions.filter(C=>!C.disabledReason).map(C=>C.nights)}o[r]=a}this.calendarData=o}onPopoverHidden(){!this._hasSelectedRange&&(this.previousClickedDate()===""||this.previousClickedDate()===this.clickedDate())&&this.clickedDate.set(""),this.previousClickedDate.set(this.clickedDate())}onCalendarClick(e){if(e.preventDefault(),e.stopPropagation(),e.target instanceof Element){let n=e.target;for(;n&&!n.hasAttribute("data-date");)n=n.parentElement;if(n){if(n.classList.contains("disabled"))return;let o=n.getAttribute("data-date");if(typeof o=="string"){let r=this.calendarData[o];if(this.isDateInfoActionable(r)){if(this.toggleCurrentDateInfoPopover(o))return;this.selectDateInfoDate(o),this.emitDateInfoTriggered(o,r),this.shouldOpenDateInfoPopover(r)&&this.openDateInfoPopover(n);return}let a=o?.split("-");this.setClickedDate(new mg(parseInt(a[0],10),parseInt(a[1],10),parseInt(a[2],10)))}}}}setClickedDate(e){let n=this.dateUtils.ngbDateStructToString(e);if(this.clickedDate()===n&&this.currentNightPopover?.isOpen()){this.currentNightPopover.close(),this.currentNightPopover=null,this.clickedDate.set(""),this.previousClickedDate.set("");return}this.currentNightPopover?.close(),this.currentDateInfoDate&&this.currentDateInfoDate!==n&&this.closeCurrentDateInfoPopover(!1);let o=this.calendarData[n];if(o&&this.isDateInfoActionable(o)){if(this.toggleCurrentDateInfoPopover(n))return;this.selectDateInfoDate(n),this.emitDateInfoTriggered(n,o),this.shouldOpenDateInfoPopover(o)&&this.openDateInfoPopoverByDate(n);return}if(this.processed.getInit().globals.showPriceCalendarPrices&&this.priceForDates()?.[
30n]?.isAvailable===!1)return;let r=this.enforcedSearchType();if(!r||r===J.Overnight){let a=$e.local(this.currentShowingYearInCalendar,this.currentShowingMonthInCalendar,1).daysInMonth,s=this.currentShowingMonthInCalendar===e.month?e.day-1:a+e.day-1;this.currentNightPopover=this.nightsPopoverList()[s],this.currentNightPopover.open(),this._hasSelectedRange=!1}this.previousClickedDate.set(this.clickedDate()),this.clickedDate.set(n),(this.selectSingleDate()||this.searchType===J.Restaurant||r===J.Day||r===J.Restaurant)&&this.selectDateAndNights(0,null)}getParentOfElement(e){return e.parentNode}selectDateAndNights(e,n){n?.preventDefault(),n?.stopPropagation(),this._hasSelectedRange=!0,this.clickedDate()&&(this.currentNightPopover?.close(),this.currentNightPopover=null,this.setupDates(e),this.determineSearchType(e),this.emitChanges(),this.clickedDate.set(""),this.previousClickedDate.set(""))}ignoreDisabledNightOption(e){e.preventDefault(),e.stopPropagation()}getDisabledNightDateLabel(e){let n=$e.fromISO(e);return`${this.i18n.getWeekdayLabel(n.weekday)} ${n.day}/${n.month}`}emitChanges(){let e=this.priceForDates(),n={fromDate:this.fromDate()||null,nights:this.nights(),searchType:this.enforcedSearchType()??this.searchType,selectedDateHasRestrictions:e?this.hasRestrictions.transform(this.fromDate()?this.dateUtils.stringToNgDateStruct(this.fromDate()):null,e,this.markDatesWithRestrictions(),this.searchType,this.minNights,this.maxNights):!1};this.calendarChange.emit(n)}onKeyupHandler(e){this.calendarChange.emit(null)}setupDates(e){this.fromDate.set(this.clickedDate()),this.nights.set(e)}determineSearchType(e){this.searchType!==J.Restaurant&&(e===0?this.searchType=this.enforcedSearchType()??J.Day:this.searchType=this.enforcedSearchType()??J.Overnight)}onDatePickerNavigate(e){let n=e.next.year,o=e.next.month;this.currentShowingYearInCalendar=n,this.currentShowingMonthInCalendar=o,this.calendarNavigate.emit(e),this.calcCalendarData()}toggleMoreNights(e,n){e.preventDefault(),e.stopPropagation(),this.showMoreNights=!0,setTimeout(()=>{document.getElementsByClassName("list-group-item")?.[n+1]?.focus()},200)}getNightOptions(e,n,o,r,a){let s=new Set(r?.lengthOfStayAvailable??[]),l=s.size>0,c=n,m=o-c+1;return m<1?[]:Array.from({length:m},(g,C)=>c+C).map(g=>{let C=this.getNightDisabledReason(e,g,a);return(!l||s.has(g))&&!C?{nights:g}:C?{nights:g,disabledReason:C}:null}).filter(g=>g!==null)}getNightDisabledReason(e,n,o){let r=this.dateUtils.addDays(e,n);if(o?.[r]?.noDeparture)return"search.date.no-departure"}onDateInfoBadgeClick(e,n){if(n.preventDefault(),n.stopPropagation(),n.target instanceof Element&&n.target.closest(".custom-day.disabled"))return;let o=this.calendarData[e];this.isDateInfoActionable(o)&&(this.toggleCurrentDateInfoPopover(e)||(this.selectDateInfoDate(e),this.emitDateInfoTriggered(e,o),this.shouldOpenDateInfoPopover(o)&&this.openDateInfoPopoverByDate(e)))}closeCurrentCrossSellPopover(e=!0){this.closeCurrentDateInfoPopover(e)}closeCurrentDateInfoPopover(e=!0){this.currentDateInfoPopover?.close(),this.currentDateInfoPopover=null,this.currentDateInfoDate=null,e&&this.clickedDate.set("")}toggleCurrentDateInfoPopover(e){return this.currentDateInfoDate===e&&this.currentDateInfoPopover?.isOpen()?(this.closeCurrentDateInfoPopover(),!0):!1}openDateInfoPopoverByDate(e){let n=this.host.nativeElement.querySelector(`[data-date="${e}"]`);this.openDateInfoPopover(n)}selectDateInfoDate(e){this.previousClickedDate.set(this.clickedDate()),this.clickedDate.set(e),this._hasSelectedRange=!1}openDateInfoPopover(e){this.currentDateInfoPopover?.close(),this.currentNightPopover?.close(),this.currentDateInfoPopover=null;let o=Array.from(this.host.nativeElement.querySelectorAll("[data-date]")).findIndex(a=>a===e);if(o===-1)return;let r=this.nightsPopoverList()[o];r?.open(),this.currentDateInfoPopover=r??null,this.currentDateInfoDate=this.clickedDate()||null}isDateInfoActionable(e){return!!e&&this.priceCalendarEnabled()&&!e.isAvailable&&e.hasActionableInfo}resolveCrossSellReason(e){return e?.noArrival?"noArrival":"soldOut"}shouldOpenDateInfoPopover(e){return!!e&&(e.crossSellEligible||!!e.priceCalendarData?.noArrival)}emitDateInfoTriggered(e,n){this.dateInfoTriggered.emit(e),n?.crossSellEligible&&this.crossSellTriggered.emit({date:e,nights:this.getCrossSellNights(),reason:n.crossSellReason})}getCrossSellNights(){return this.nights()||this.crossSellNights()||this.minNights||1}navigate(e,n,o){n.preventDefault();let r=`${this.currentShowingYearInCalendar}-${this.currentShowingMonthInCalendar>9?this.currentShowingMonthInCalendar:`0${this.currentShowingMonthInCalendar}`}-01`;if(e>0&&r>=this.processed.getInit().maxSearchDepartureDate){this.toastService.showToast(this.translatePipe.transform("search.calendar.search-limit.title"),this.translatePipe.transform("search.calendar.search-limit.info"),zo.WARNING,"center",!0,5e3);return}if(this.datepicker()&&this.previousMonth()&&this.nextMonth()){let{state:a,calendar:s}=this.datepicker();this.datepicker().navigateTo(s.getNext(a.firstDate,"m",e)),setTimeout(()=>(o?this.previousMonth():this.nextMonth()).nativeElement.focus())}}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=H({type:t,selectors:[["app-calendar"]],viewQuery:function(n,o){n&1&&Ot(o.datepicker,FI,5)(o.nightsPopoverList,UI,5)(o.previousMonth,HI,5)(o.nextMonth,VI,5),n&2&&xt(4)},hostBindings:function(n,o){n&1&&k("keyup.escape",function(a){return o.onKeyupH
30andler(a)},_o)},inputs:{priceCalendarEnabled:[1,"priceCalendarEnabled"],fetchingDataLoader:[1,"fetchingDataLoader"],minCalendarPickableDate:[1,"minCalendarPickableDate"],maxCalendarPickableDate:[1,"maxCalendarPickableDate"],markDatesWithRestrictions:[1,"markDatesWithRestrictions"],ariaIdPrefix:[1,"ariaIdPrefix"],minNights:"minNights",maxNights:"maxNights",disabled:[1,"disabled"],searchType:"searchType",nights:[1,"nights"],priceForDates:[1,"priceForDates"],currency:[1,"currency"],enforcedSearchType:[1,"enforcedSearchType"],selectSingleDate:[1,"selectSingleDate"],language:[1,"language"],isSearching:[1,"isSearching"],displayDayByDayPrices:[1,"displayDayByDayPrices"],displayOneNightPriceNonSelected:[1,"displayOneNightPriceNonSelected"],dateInfoDates:[1,"dateInfoDates"],crossSellNights:[1,"crossSellNights"],fromDate:[1,"fromDate"]},outputs:{nights:"nightsChange",calendarChange:"calendarChange",calendarNavigate:"calendarNavigate",dateInfoTriggered:"dateInfoTriggered",crossSellTriggered:"crossSellTriggered",fromDate:"fromDateChange"},features:[re,go],decls:2,vars:2,consts:[["dp",""],["daytemplate",""],["previousMonth",""],["nextMonth",""],["nightsPopover","ngbPopover","popover",""],["popoverContent",""],["navigation","none","outsideDays","visible",1,"custom-dp",3,"ngModel","dayTemplate","disabled","minDate","maxDate","startDate"],["navigation","none","outsideDays","visible",1,"custom-dp",3,"navigate","dateSelect","ngModel","dayTemplate","disabled","minDate","maxDate","startDate"],["ngbDatepickerContent",""],[1,"custom-header","d-flex","justify-content-between","align-items-center"],["href","","data-qa","calendar-previous-month",3,"click"],["name","chevronLeft",3,"size"],["data-qa","calendar-month-year-title",1,"custom-dp-title","text-medium","fw-bold"],["href","","data-qa","calendar-next-month",3,"click"],["name","chevronRight",3,"size"],[1,"custom-dp-weekdays","ngb-dp-week","ngb-dp-weekdays"],[1,"ngb-dp-weekday","small"],[1,"custom-dp-month",3,"month"],["triggers","manual","placement","bottom auto","role","button","aria-haspopup","listbox",1,"custom-day",3,"chosen","range-start","range-click-surface","faded","half-faded","show-arrow","searching","disabled","date-info-actionable","has-allotment","has-restrictions","current-month","ngbPopover","popoverClass","appCloseOnOutsideClick"],["triggers","manual","placement","bottom auto","role","button","aria-haspopup","listbox",1,"custom-day",3,"hidden","click","ngbPopover","popoverClass","appCloseOnOutsideClick"],[1,"calendar-date-cell__day"],["type","button","tabindex","-1","data-qa","calendar-date-info-badge",1,"date-info-badge","calendar-date-cell__price",3,"price-hidden","aria-label"],["data-qa","calendar-day-price",1,"calendar-date-cell__price"],[1,"hide-element",3,"id"],["type","button","tabindex","-1","data-qa","calendar-date-info-badge",1,"date-info-badge","calendar-date-cell__price",3,"click","aria-label"],["name","loadingDots",3,"size"],[1,"cal-price","cal-price--mobile"],[1,"cal-price","cal-price--desktop"],["data-qa","calendar-day-price",1,"calendar-date-cell__price",3,"price-hidden"],[1,"calendar-date-cell__price"],[3,"selectedDate"],["role","listbox",1,"list-group"],[3,"dismissed","selectedDate"],["role","presentation","aria-disabled","true","data-qa","calendar-no-arrival-info",1,"list-group-item","restriction-info-item","border-end-0","border-start-0",3,"click"],["role","presentation","aria-disabled","true","data-qa","calendar-restriction-info",1,"list-group-item","restriction-info-item","border-end-0","border-start-0"],["role","option","tabindex","0","data-qa","calendar-day-package-option",1,"list-group-item","calendar-more-nights-option","border-end-0","border-start-0"],["role","option","tabindex","0","data-qa","calendar-more-nights-option",1,"list-group-item","border-end-0","border-start-0"],["role","presentation","aria-disabled","true","data-qa","calendar-restriction-info",1,"list-group-item","restriction-info-item","border-end-0","border-start-0",3,"click"],[1,"restriction-asterisk"],["role","option","tabindex","0","data-qa","calendar-day-package-option",1,"list-group-item","calendar-more-nights-option","border-end-0","border-start-0",3,"keydown.enter","click"],["role","option","aria-disabled","true",1,"list-group-item","calendar-night-option","calendar-night-option--disabled","border-end-0","border-start-0"],["role","option","tabindex","0",1,"list-group-item","calendar-night-option","border-end-0","border-start-0"],["role","option","aria-disabled","true",1,"list-group-item","calendar-night-option","calendar-night-option--disabled","border-end-0","border-start-0",3,"click"],[1,"calendar-night-option__disabled-label","d-flex","flex-column","gap-1","align-items-end"],["role","option","tabindex","0",1,"list-group-item","calendar-night-option","border-end-0","border-start-0",3,"keydown.enter","click"],["role","option","tabindex","0","data-qa","calendar-more-nights-option",1,"list-group-item","border-end-0","border-start-0",3,"keydown.enter","click"],["name","chevronDown",3,"size"]],template:function(n,o){n&1&&(qe(0),w(1,Mk,5,17,"ngb-datepicker",6)),n&2&&(Je(!o.fromDate()||!o.calendarData[o.fromDate()]||o.calendarData[o.fromDate()].isAvailable),p(),x(o.initializeCalendar(
30)?1:-1))},dependencies:[ti,ei,Jr,gg,hg,fg,na,Fe,Wd,Gi,Qf,Y,Dn,Ks],styles:[`.display-large[_ngcontent-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:3.25em;line-height:1.125em;font-weight:700}.display-medium[_ngcontent-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:2.875em;line-height:1.1em;font-weight:700}.display-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:2.5em;line-height:1.125em;font-weight:700}.headline-large[_ngcontent-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:2.25em;line-height:1.14em;font-weight:700}.headline-medium[_ngcontent-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:1.875em;line-height:1.1em;font-weight:700}.headline-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:1.5em;line-height:1.13125em;font-weight:700}.title-large[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:1.5em;line-height:1.1875em;font-weight:600}.title-medium[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:1.25em;line-height:1.1875em;font-weight:600}.title-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:1em;line-height:1em;font-weight:600}.label-large[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:1em;line-height:1.1875em;font-weight:600}.label-medium[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.875em;line-height:1.3em;font-weight:600}.label-small[_ngcontent-%COMP%], .custom-dp[_ngcontent-%COMP%] .ngb-dp-content .calendar-date-cell__day{font-family:var(--%NS%default-text-font);font-size:.75em;line-height:.875em;font-weight:600}.label-extra-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.625em;line-height:1.2em;font-weight:600}.body-large[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:1em;line-height:1.1875em;font-weight:400}
30.body-medium[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.875em;line-height:1.1em;font-weight:400}.body-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.75em;line-height:1.125em;font-weight:400}.body-extra-small[_ngcontent-%COMP%], .ngb-dp-content .date-info-badge, .custom-dp[_ngcontent-%COMP%] .ngb-dp-content .calendar-date-cell__price, .custom-dp[_ngcontent-%COMP%] .ngb-dp-content .custom-dp-month .list-group .list-group-item .calendar-night-option__disabled-label{font-family:var(--%NS%default-text-font);font-size:.625em;line-height:.75em;font-weight:400} .ngb-dp-content{display:block!important} .ngb-dp-week:not(.custom-dp-weekdays) .ngb-dp-weekday{display:none!important}[_nghost-%COMP%]{display:flex;flex-direction:column} .iframe app-calendar{min-height:384px}.custom-dp[_ngcontent-%COMP%]{width:100%;width:-webkit-fill-available;width:-moz-available;width:stretch;border:none}.custom-dp[_ngcontent-%COMP%] .ngb-dp-header{padding:0;border:none}.custom-dp[_ngcontent-%COMP%] .ngb-dp-content .custom-header, .custom-dp[_ngcontent-%COMP%] .ngb-dp-content .ngb-dp-weekday, .custom-dp[_ngcontent-%COMP%] .ngb-dp-content .ngb-dp-week{color:var(--%NS%search-calendar-date-color);background-color:var(--%NS%search-calendar-date-background)}.custom-dp[_ngcontent-%COMP%] .ngb-dp-content .custom-day{color:var(--%NS%search-calendar-date-color)}.custom-dp[_ngcontent-%COMP%] .ngb-dp-content .custom-day span{opacity:.75}.custom-dp[_ngcontent-%COMP%] .ngb-dp-content .custom-day.current-month span{opacity:1}.custom-dp[_ngcontent-%COMP%] .ngb-dp-content .ngb-dp-day:focus-visible{outline:none;box-shadow:var(--%NS%shadow-outline)}.custom-dp[_ngcontent-%COMP%] .ngb-dp-content .custom-header{border:var(--%NS%search-calendar-date-border)}@media(width<=300px){.custom-dp[_ngcontent-%COMP%] .ngb-dp-content .custom-header{padding:1px 4px 13px}}.custom-dp[_ngcontent-%COMP%] .ngb-dp-content .custom-header svg{vertical-align:baseline;color:var(--%NS%search-calendar-title-color)}.custom-dp[_ngcontent-%COMP%] .ngb-dp-content .custom-header .custom-dp-title{margin-top:4px;color:var(--%NS%search-calendar-title-color)}.custom-dp[_ngcontent-%COMP%] .ngb-dp-content .custom-day:not(.has-allotment){color:var(--%NS%calendar-text-disabled);background:linear-gradient(to top left,var(--%NS%calendar-background-disabled) calc(50% - 1px),var(--%NS%border-color),var(--%NS%calendar-background-disabled) calc(50% + 1px))}.custom-dp[_ngcontent-%COMP%] .ngb-dp-content .ngb-dp-week.ngb-dp-weekdays{border-bottom:none}.custom-dp[_ngcontent-%COMP%] .ngb-dp-content .ngb-dp-week{border-radius:0;border-bottom:var(--%NS%search-calendar-date-border);border-left:var(--%NS%search-calendar-date-border);border-right:var(--%NS%search-calendar-date-border)}@media(width<=495px){.custom-dp[_ngcontent-%COMP%] .ngb-dp-content .ngb-dp-week{display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}}.custom-dp[_ngcontent-%COMP%] .ngb-dp-content .ngb-dp-week .ngb-dp-day, .custom-dp[_ngcontent-%COMP%] .ngb-dp-content .ngb-dp-week .ngb-dp-week-number, .custom-dp[_ngcontent-%COMP%] .ngb-dp-content .ngb-dp-week .ngb-dp-weekday{width:100%;max-width:14.3%;height:3em}@media(width<=495px){.custom-dp[_ngcontent-%COMP%] .ngb-dp-content .ngb-dp-week .ngb-dp-day, .custom-dp[_ngcontent-%COMP%] .ngb-dp-content .ngb-dp-week .ngb-dp-week-number, .custom-dp[_ngcontent-%COMP%] .ngb-dp-content .ngb-dp-week .ngb-dp-weekday{width:auto;max-width:none}}.custom-dp[_ngcontent-%COMP%] .ngb-dp-content .ngb-dp-week .ngb-dp-weekday{border-bottom:var(--%NS%search-calendar-date-border);text-transform:uppercase;font-style:normal;font-size:.625em;line-height:1.8em;height:auto;padding:4px 0}.custom-dp[_ngcontent-%COMP%] .ngb-dp-content .ngb-dp-week .ngb-dp-day .custom-day{padding:.375em .75em .5em}@media(width<=495px){.custom-dp[_ngcontent-%COMP%] .ngb-dp-content .ngb-dp-week .ngb-dp-day .custom-day{padding:.25em .375em .375em}}.custom-dp[_ngcontent-%COMP%] .ngb-dp-content .ngb-dp-week .ngb-dp-day:not(:first-of-type) .custom-day{border-left:var(--%NS%search-calendar-date-border)}.custom-dp[_ngcontent-%COMP%] .ngb-dp-content .ngb-dp-week .ngb-dp-day:has(div.disabled){cursor:default;pointer-events:none}.custom-dp[_ngcontent-%COMP%] .ngb-dp-content .ngb-dp-week .ngb-dp-day:has(div.disabled).disabled, .custom-dp[_ngcontent-%COMP%] .ngb-dp-content .ngb-dp-week .custom-day.disabled{cursor:default;pointer-events:none}.custom-dp[_ngcontent-%COMP%] .ngb-dp-content .ngb-dp-week .ngb-dp-day:has(div.date-info-actionable){cursor:pointer;pointer-events:auto}.custom-dp[_ngcontent-%COMP%] .ngb-dp-content .ngb-dp-week .ngb-dp-day:has(div.date-info-actionable.searching){cursor:default;pointer-events:none}.custom-dp[_ngcontent-%COMP%] .ngb-dp-content .custom-dp-month{overflow:visible}.custom-dp[_ngcontent-%COMP%] .ngb-dp-content .custom-dp-month .popover-body{padding:0}.custom-dp[_ngcontent-%COMP%] .ngb-dp-content .custom-dp-month .list-group .list-group-item{font-size:1.15em;line-height:1.5em;color:var(--%NS%list-group-item-popover-text);background-color:var(--%NS%list-group-item-popover)}.custom-dp[_ngcontent-%COMP%] .ngb-dp-content .custom-dp-month .list-group .list-group-item:hover{background-color:var(--%NS%list-group-item-popover-hover)}.custom-dp[_ngcontent-%COMP%] .ngb-dp-content .custom-dp-month .list-group .list-group-item.restriction-info-item{cursor:default;font-style:italic;font-size:.92em;background-color:var(--%NS%calendar-background-disabled)}.custom-dp[_ngcontent-%COMP%] .ngb-dp-content .custom-dp-month .list-group .list-group-item.restriction-info-item .restriction-asterisk{font-style:normal;margin-right:.15em}.custom-dp[_ngcontent-%COMP%] .ngb-dp-content .custom-dp-month .list-group .list-group-item.restriction-info-item:hover{background-color:var(--%NS%calendar-background-disabled)}.custom-dp[_ngcontent-%COMP%] .ngb-dp-content .custom-dp-month .list-group .list-group-item.calendar-night-option{dis
30play:flex;align-items:center;justify-content:space-between;gap:.75em}.custom-dp[_ngcontent-%COMP%] .ngb-dp-content .custom-dp-month .list-group .list-group-item.calendar-night-option--disabled{cursor:default;color:color-mix(in srgb,var(--%NS%list-group-item-popover-text) 50%,transparent)}.custom-dp[_ngcontent-%COMP%] .ngb-dp-content .custom-dp-month .list-group .list-group-item.calendar-night-option--%NS%disabled:hover{background-color:var(--%NS%list-group-item-popover)}.custom-dp[_ngcontent-%COMP%] .ngb-dp-content .custom-dp-month .list-group .list-group-item .calendar-night-option__disabled-label{flex:0 0 auto;color:color-mix(in srgb,var(--%NS%list-group-item-popover-text) 50%,transparent)}.custom-dp[_ngcontent-%COMP%] .ngb-dp-content .custom-dp-month .list-group .list-group-item:first-child{border-top:none}.custom-dp[_ngcontent-%COMP%] .ngb-dp-content .custom-dp-month .list-group .list-group-item:last-child{border-bottom:none}.custom-dp[_ngcontent-%COMP%] .ngb-dp-content .custom-dp-month .list-group .list-group-item .icon{margin-left:.5em;vertical-align:center}.custom-dp[_ngcontent-%COMP%] .ngb-dp-content .custom-day{display:flex;flex-direction:column;align-items:flex-start;gap:.125em;text-align:left;height:100%;width:100%;position:relative;overflow:hidden;isolation:isolate}.custom-dp[_ngcontent-%COMP%] .ngb-dp-content .calendar-date-cell__day{dis
30play:block;width:100%;line-height:normal}.custom-dp[_ngcontent-%COMP%] .ngb-dp-content .calendar-date-cell__price{display:flex;align-items:center;width:100%;min-height:.75em;margin-top:auto;line-height:.75em}.custom-dp[_ngcontent-%COMP%] .ngb-dp-content .calendar-date-cell__price.price-hidden{display:none}.custom-dp[_ngcontent-%COMP%] .ngb-dp-content .custom-day.chosen.disabled:not(.searching){outline:var(--%NS%calendar-background-selected) solid 3px;overflow:visible;z-index:var(--%NS%z-index-regular)}.custom-dp[_ngcontent-%COMP%] .ngb-dp-content .custom-day.has-restrictions:before{position:absolute;content:"*";right:.5em;top:.1875em;font-size:.875em;line-height:normal;pointer-events:none}.custom-dp[_ngcontent-%COMP%] .ngb-dp-content .custom-day.date-info-actionable{cursor:pointer;color:var(--%NS%search-calendar-date-color);background:var(--%NS%search-calendar-date-background)}.custom-dp[_ngcontent-%COMP%] .ngb-dp-content .custom-day.date-info-actionable:focus-visible, .custom-dp[_ngcontent-%COMP%] .ngb-dp-content .custom-day.date-info-actionable:hover{color:var(--%NS%search-calendar-date-color);background:var(--%NS%search-calendar-date-background);box-shadow:inset 0 0 0 2px var(--%NS%color-primary)}@media(hover:hover){.custom-dp[_ngcontent-%COMP%] .ngb-dp-content .custom-day:hover{background:var(--%NS%color-primary);color:var(--%NS%calendar-text-selected)}}.custom-dp[_ngcontent-%COMP%] .ngb-dp-content .custom-day.faded{background:var(--%NS%calendar-background-selected);color:var(--%NS%calendar-text-selected)}.custom-dp[_ngcontent-%COMP%] .ngb-dp-content .ngb-dp-week .ngb-dp-day:not(:first-of-type) .custom-day.faded:not(.range-start){border-left-color:var(--%NS%calendar-background-selected)}.custom-dp[_ngcontent-%COMP%] .ngb-dp-content .ngb-dp-week .ngb-dp-day:not(:first-of-type) .custom-day.faded:is(:hover,.range-click-surface), .custom-dp[_ngcontent-%COMP%] .ngb-dp-content .ngb-dp-week .ngb-dp-day:has(.custom-day.faded:is(:hover,.range-click-surface))+.ngb-dp-day .custom-day.faded{border-left-color:var(--%NS%border-color)}.custom-dp[_ngcontent-%COMP%] .ngb-dp-content .custom-day.date-info-actionable.faded .date-info-badge.price-hidden{display:flex}.custom-dp[_ngcontent-%COMP%] .ngb-dp-content .custom-day.date-info-actionable.faded:focus-visible, .custom-dp[_ngcontent-%COMP%] .ngb-dp-content .custom-day.date-info-actionable.faded:hover{color:var(--%NS%calendar-text-selected);background:var(--%NS%calendar-background-selected);box-shadow:none}.custom-dp[_ngcontent-%COMP%] .ngb-dp-content .custom-day.date-info-actionable.searching{cursor:default;color:var(--%NS%calendar-text-disabled);background:linear-gradient(to top left,var(--%NS%calendar-background-disabled) calc(50% - 1px),var(--%NS%border-color),var(--%NS%calendar-background-disabled) calc(50% + 1px));box-shadow:none}.custom-dp[_ngcontent-%COMP%] .ngb-dp-content .custom-day.date-info-actionable.searching span{opacity:.75}.custom-dp[_ngcontent-%COMP%] .ngb-dp-content .custom-day.date-info-actionable.searching:focus-visible, .custom-dp[_ngcontent-%COMP%] .ngb-dp-content .custom-day.date-info-actionable.searching:hover{color:var(--%NS%calendar-text-disabled);background:linear-gradient(to top left,var(--%NS%calendar-background-disabled) calc(50% - 1px),var(--%NS%border-color),var(--%NS%calendar-background-disabled) calc(50% + 1px));box-shadow:none}.custom-dp[_ngcontent-%COMP%] .ngb-dp-content .custom-day.half-faded{position:relative}.custom-dp[_ngcontent-%COMP%] .ngb-dp-content .custom-day.half-faded.show-arrow:after{content:"";width:.625em;height:100%;position:absolute;top:0;left:0;background-color:var(--%NS%calendar-background-selected);pointer-events:none;mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 48' preserveAspectRatio='none'%3E%3Cpath d='M0 0 L10 24 L0 48 Z' fill='black'/%3E%3C/svg%3E");mask-repeat:no-repeat;mask-position:center;mask-size:100% 100%}@media(width<=495px){.custom-dp[_ngcontent-%COMP%] .ngb-dp-content .custom-day.half-faded.show-arrow:after{width:.5em}}.custom-dp[_ngcontent-%COMP%] .ngb-dp-content .ngb-dp-week .ngb-dp-day:not(:first-of-type) .custom-day.half-faded.show-arrow{border-left-color:var(--%NS%calendar-background-selected)}.popover-arrow[_ngcontent-%COMP%]:after{border-bottom-color:var(--%NS%list-group-item-popover)!important} .popover.calendar-popover{z-index:var(--%NS%z-index-popover)!important}.cal-price[_ngcontent-%COMP%]{white-space:nowrap}.cal-price--mobile[_ngcontent-%COMP%]{display:block}@media(width<=330px){.cal-price--mobile[_ngcontent-%COMP%]{font-size:.8em!important}}@media(width<=250px){.cal-price--mobile[_ngcontent-%COMP%]{font-size:.6em!important}}@media(width>=495px){.cal-price--mobile[_ngcontent-%COMP%]{display:none}}
30.cal-price--desktop[_ngcontent-%COMP%]{display:none}@media(width>=495px){.cal-price--desktop[_ngcontent-%COMP%]{display:block}}.price-hidden[_ngcontent-%COMP%]{display:none} .ngb-dp-content .date-info-badge{pointer-events:auto;cursor:pointer;display:flex;align-items:center;width:100%;min-height:.75em;background:none;border:none;padding:0;line-height:.75em;text-align:left;color:inherit;text-decoration:underline} .popover.date-info-popover{font-size:var(--%NS%guesthouse-root-font-size);max-width:none;z-index:var(--%NS%z-index-popover)!important;background:transparent;border:none;border-radius:0}@media(width<495px){ .popover.date-info-popover{position:fixed!important;inset:auto 0 0!important;width:100vw;margin:0;z-index:var(--%NS%z-index-prioritized)!important;transform:none!important} .popover.date-info-popover .popover-arrow{display:none}} 31/*# sourceMappingURL=calendar.component.css.map */`],changeDetection:1})}}return t})();var kt=t=>{if(t===null)return t;if(t instanceof Date)return new Date(t.getTime());if(t instanceof Array){let i=[];return t.forEach(e=>{i.push(e)}),i.map(e=>kt(e))}if(typeof t=="object"){let i=S({},t);
31return Object.keys(i).forEach(e=>{i[e]=kt(i[e])}),i}return t};var Yd=class{static getPropertyNames(){return["basketId","basketHash"]}};var Kd=class extends Yd{static getPropertyNames(){return["searchRequest","bookingStep","wantedUpdateFor","updateMessages","addOrderRows","removeOrderRows","updateCustomer","updateBooker","useBookerInformation","updateTravelAgent","useTravelAgentInformation","updateParties","updateLanguage","updateGiftcard","basketId","basketHash"]}};var Zd=class{static getPropertyNames(){return["forPartyId","bookingItemData","configId","type","count","startTime","endTime","forPersonId","parentOrderRowId"]}};var Ht=(function(t){return t[t.NotSet=0]="NotSet",t[t.Package=1]="Package",t[t.Room=2]="Room",t[t.Meal=3]="Meal",t[t.Activity=4]="Activity",t[t.Treatment=5]="Treatment",t[t.Stock=6]="Stock",t[t.PromoCode=7]="PromoCode",t[t.Category=8]="Category",t[t.Restaurant=9]="Restaurant",t[t.MarketingSegment=10]="MarketingSegment",t[t.MarketingChannel=11]="MarketingChannel",t[t.AddonGroup=12]="AddonGroup",t[t.BookingTerm=13]="BookingTerm",t[t.RefundProtection=14]="RefundProtection",t[t.ConfigurationGroup=15]="ConfigurationGroup",t[t.UpgradeOffer=16]="UpgradeOffer",t[t.ClosedDate=17]="ClosedDate",t[t.Discount=18]="Discount",t[t.AgeCategory=19]="AgeCategory",t[t.RestaurantMealTimeGroup=20]="RestaurantMealTimeGroup",t[t.Widget=21]="Widget",t[t.MyPageMenuLink=22]="MyPageMenuLink",t[t.MyPageMessageCategory=23]="MyPageMessageCategory",t[t.MyPageLoadingMessage=24]="MyPageLoadingMessage",t[t.CapacityLimit=26]="CapacityLimit",t[t.ScheduledInfo=27]="ScheduledInfo",t[t.ServiceLimit=28]="ServiceLimit",t[t.RoomBedding=29]="RoomBedding",t})(Ht||{});var Tt=(function(t){return t[t.PerPerson=1]="PerPerson",t[t.PerParty=2]="PerParty",t[t.PerBooking=3]="PerBooking",t})(Tt||{});function Ok(t){return t&&"timeslots"in t||!1}function dh(t){return t&&"dateTimeslots"in t||!1}function Js(t){return t&&"mealGroupId"in t||!1}function Or(t){return t?"choosableBookingMeals"in t:!1}function ph(t){return t?"selection"in t:!1}function Xs(t){return"mealGroupId"in t}function Yb(t){return dh(t)?t.dateTimeslots.flatMap(i=>i.timeslots):Ok(t)?[...t.timeslots]:[]}function uh(t){return t.timeslotIdentifier?{id:t.timeslotIdentifier,startTimeInUtc:new Date(t.startTime),endTimeInUtc:new Date(t.endTime),allotment:0,hasGottenAllotment:!0,isUnavailableDueToAllotment:!0,groupId:t.groupIdentifier}:null}function Kb(t,i=""){return t.filter(e=>e.timeslotIdentifier&&(i?e.configId===i:!0)).map(e=>uh(e))}function Zb(t,i){return i.forEach(e=>{t.find(n=>n.id===e.id)||t.push(e)}),t}function Qb(t){return t.sort((i,e)=>i.startTimeInUtc.getTime()-e.startTimeInUtc.getTime())}function Jb(t,i){return t.filter(e=>{let n=(Xs(e)?e.mealGroupId:e.groupId)||"";return i.length>0?i.includes(n):!n})}function Xb(t,i,e){return t.reduce((n,o)=>{let r=e.formatDateRange(o.startTimeInUtc,null,!1,i);return n[r]||(n[r]=[]),n[r].push(o),n},{})}function eS(t){return t.reduce((i,e)=>{let n=e.timeslot.id,o=[...i[n]||[],e.party?.partyId,e.person?.id].filter(r=>!!r);return i[n]=o,i},{})}function el(t,i=!1){let e=[];return Js(t)?e=dh(t)?t.dateTimeslots.map(n=>n.mealGroupId):t.mealGroupId?[t.mealGroupId]:[]:e=dh(t)?t.dateTimeslots.map(n=>n.groupId):(i?t.groupBaseId:t.groupId)?[i?t.groupBaseId:t.groupId]:[],e}function tS(t){return(Or(t)?t.choosableBookingMeals:t.serviceItems).reduce((e,n)=>[...e,...el(n)],[]).filter((e,n,o)=>o.indexOf(e)===n)}function Qd(t){return Or(t)?Tt.PerBooking:ph(t)?t.selection:Tt.PerPerson}var tl=class{constructor(i,e,n=null){if(this.bookingValidation=structuredClone(i),e&&(this.validationPrefix=["meal","activity","treatment"][e-3]),n&&(this.validationPrefix=["meal","treatment","activity"][n-3]),!this.bookingValidation||!this.validationPrefix)throw new Error("Missing booking validation info")}get partyIdList(){return Object.keys(this.bookingValidation.partyValidation).reduce((i,e)=>{let n=this.bookingValidation.partyValidation[e][this.getIndexOfParty("ToChooseTotalPerGroup")];return n&&(i[e]=Object.keys(n)),i},{})}setPartyAndGroup(i,e="",n=""){this.partyId=i,this.groupId=e,this.date=n}resetHaveChosenValues(){this.haveChosenTotal=0,Object.keys(this.bookingValidation[this.getIndex("ForBookingToChooseTotalPerGroup")]||{}
31).forEach(e=>{this.setPartyAndGroup("",e),this.haveChosenForGroup=0}),Object.keys(this.bookingValidation[this.getIndex("ForBookingToChooseTotalPerDate")]||{}).forEach(e=>{this.setPartyAndGroup("","",e),this.haveChosenForDate=0});let i=this.partyIdList;Object.keys(i).forEach(e=>{this.setPartyAndGroup(e),this.haveChosenForParty=0,i[e].forEach(n=>{this.setPartyAndGroup(e,n),this.haveChosenForPartyAndGroup=0,this.haveChosenForGroup=0,Object.keys(this.getObjectOfParty("ToChooseTotalPerDate")||{}).forEach(o=>{this.setPartyAndGroup(e,n,o),this.haveChosenForPartyAndDate=0})})})}get toChooseTotal(){return this.bookingValidation[this.getIndex("ForBookingToChooseTotal")]||0}get haveChosenTotal(){return this.bookingValidation[this.getIndex("ForBookingHaveChosenTotal")]||0}set haveChosenTotal(i){i>=0&&i<=this.toChooseTotal&&(this.bookingValidation[this.getIndex("ForBookingHaveChosenTotal")]=i)}get isChosenTotal(){return this.toChooseTotal>0&&this.haveChosenTotal===this.toChooseTotal}get toChooseForGroup(){return this.bookingValidation[this.getIndex("ForBookingToChooseTotalPerGroup")]?.[this.groupId]||0}get haveChosenForGroup(){return this.bookingValidation[this.getIndex("ForBookingHaveChosenTotalPerGroup")]?.[this.groupId]||0}set haveChosenForGroup(i){if(i>=0&&i<=this.toChooseForGroup){let e=this.getIndex("ForBookingHaveChosenTotalPerGroup");this.bookingValidation[e]||(this.bookingValidation[e]={}),this.bookingValidation[e][this.groupId]=i}}get isChosenForGroup(){return this.toChooseForGroup>0&&this.haveChosenForGroup===this.toChooseForGroup}get toChooseForDate(){return this.bookingValidation[this.getIndex("ForBookingToChooseTotalPerDate")]?.[this.date]||0}get haveChosenForDate(){return this.bookingValidation[this.getIndex("ForBookingHaveChosenTotalPerDate")]?.[this.date]||0}set haveChosenForDate(i){if(i>=0&&i<=this.toChooseForDate){let e=this.getIndex("ForBookingHaveChosenTotalPerDate");this.bookingValidation[e]||(this.bookingValidation[e]={}),this.bookingValidation[e][this.date]=i}}get isChosenForDate(){return this.toChooseForDate>0&&this.haveChosenForDate===this.toChooseForDate}get toChooseForParty(){return this.bookingValidation.partyValidation[this.partyId]?.[this.getIndexOfParty("ToChooseTotal")]||0}get haveChosenForParty(){return this.bookingValidation.partyValidation[this.partyId]?.[this.getIndexOfParty("HaveChosenTotal")]||0}set haveChosenForParty(i){i>=0&&i<=this.toChooseForParty&&this.bookingValidation.partyValidation[this.partyId]&&(this.bookingValidation.partyValidation[this.partyId][this.getIndexOfParty("HaveChosenTotal")]=i)}get isChosenForParty(){return this.toChooseForParty>0&&this.haveChosenForParty===this.toChooseForParty}get toChooseForPartyAndGroup(){return this.getObjectOfParty("ToChooseTotalPerGroup")?.[this.groupId]||0}get haveChosenForPartyAndGroup(){return this.getObjectOfParty("HaveChosenTotalPerGroup")?.[this.groupId]||0}set haveChosenForPartyAndGroup(i){if(i>=0&&i<=this.toChooseForPartyAndGroup){let e=this.getObjectOfParty("HaveChosenTotalPerGroup");if(e&&(e[this.groupId]=i,this.isChosenForPartyAndGroup)){let n=this.getObjectOfParty("GroupValidated");n&&(n[this.groupId]=!0)}}}get isChosenForPartyAndGroup(){return this.toChooseForPartyAndGroup>0&&this.haveChosenForPartyAndGroup===this.toChooseForPartyAndGroup}get toChooseForPartyAndDate(){return this.getObjectOfParty("ToChooseTotalPerDate")?.[this.date]||0}get haveChosenForPartyAndDate(){return this.getObjectOfParty("HaveChosenTotalPerDate")?.[this.date]||0}set haveChosenForPartyAndDate(i){if(i>=0&&i<=this.toChooseForPartyAndDate&&this.getObjectOfParty("HaveChosenTotalPerDate")){let e=this.getObjectOfParty("HaveChosenTotalPerDate");e&&(e[this.date]=i)}}get isChosenForPartyAndDate(){return this.toChooseForPartyAndDate>0&&this.haveChosenForPartyAndDate===this.toChooseForPartyAndDate}getIndex(i){return`${this.validationPrefix}${i}`}getIndexOfParty(i){return`${this.validationPrefix}${i}`}getObjectOfParty(i){return this.bookingValidation.partyValidation[this.partyId]?.[this.getIndexOfParty(i)]}isChosenForServiceItemGroup(i){let e=tS(i);return Qd(i)!==Tt.PerBooking?Object.keys(this.partyIdList).every(n=>(this.partyId=n,e=e.filter((o,r)=>e.indexOf(o)===r).filter(o=>Object.keys(this.partyIdList).some(r=>this.partyIdList[r].includes(o))),e.every(o=>(this.groupId=o,this.isChosenForPartyAndGroup)))):e.every(n=>(this.setPartyAndGroup("",n),this.isChosenForGroup))}getSummarized(i,e,n=!1){let o=i.filter(s=>Qd(s)!==Tt.PerBooking),r=i.filter(s=>Qd(s)===Tt.PerBooking&&!Or(s)),a=0;return o.length>0&&(a=Object.keys(this.partyIdList).reduce((s,l)=>(this.setPartyAndGroup(l,""),s+e()),0)),r.length>0&&r.forEach(s=>{let l=ph(s)?s:null;if(l?.isRepeatedSeveralDays){let c=l.serviceItems.reduce((d,m)=>
31(m.dateTimeslots.forEach(g=>d[g.date]=g.groupId),d),{});Object.keys(c).forEach(d=>{this.setPartyAndGroup("",c[d],d),a+=e()})}else this.setPartyAndGroup("",l?.groupedBaseGroupId),a+=e()}),Or(i[0])&&(a+=i.reduce((s,l)=>{let c=0;return l.choosableBookingMeals.filter(d=>n||!d.isUpgradeForIncludeGroup).forEach(d=>{el(d).forEach(m=>{this.setPartyAndGroup("",m),c+=e()})}),s+c},0)),a}hasChoosable(){if(this.toChooseTotal>0)return!0;let i=this.partyIdList;return Object.keys(i).some(e=>(this.setPartyAndGroup(e),this.toChooseForParty>0?!0:i[e].some(n=>(this.setPartyAndGroup(e,n),this.toChooseForGroup>0||this.toChooseForPartyAndGroup>0?!0:Object.keys(this.getObjectOfParty("ToChooseTotalPerDate")||{}).forEach(o=>(this.setPartyAndGroup(e,n,o),this.toChooseForDate>0||this.toChooseForPartyAndDate>0))))))}};function nS(t){return"bookingMealGroups"in t}function iS(t){return"bookingTreatmentGrouping"in t}function oS(t){return"bookingActivityGrouping"in t}function rS(t){return nS(t)?t.bookingMealGroups??[]:iS(t)?t.bookingTreatmentGrouping?.treatmentGroups??[]:oS(t)?t.bookingActivityGrouping?.activityGroups??[]:[]}var aS={[$.Search]:"",[$.Package]:"packages",[$.Room]:"rooms",[$.Meal]:"meals",[$.Treatment]:"treatments",[$.Activity]:"activities",[$.Restaurant]:"table",[$.Waitlist]:"waitlist",[$.Checkout]:"checkout",[$.Addons]:"addons"},Dk=Object.entries(aS).reduce((t,[i,e])=>j(S({},t),{[e]:Number(i)}),{});function mh(t){return aS[t??$.Search]??""}function Nk(t){return t?t==="restaurant"?$.Restaurant:Dk[t]??null:null}function hh(t){if(!t)return null;let e=t.split("?")[0].split("#")[0].split("/").filter(Boolean),n=e.findIndex(r=>r==="booking");if(n===-1)return null;let o=e[n+1]??"";return Nk(o)??$.Search}function Ik(t){return t?t==="/restaurant"||t.startsWith("/restaurant/"):!1}function kk(t){return Ik(t)?"/restaurant/booking":"/booking"}function Jd(t,i=window.location.pathname){let e=mh(t),n=kk(i);return e?`${n}/${e}`:n}var Yi=(()=>{class t extends Jo{constructor(){super(),this.store=f(oe),this.http=f(zl),this.widgetSvc=f(li),this.router=f(xi),this.processed=f(ae),this.languageService=f(Nt),this.trackingService=f($i),this.timelineKeys={[$.Restaurant]:"restaurant.title",[$.Waitlist]:"waitlist.title",[$.Package]:"packages.basket-item.title",[$.Room]:"rooms.basket-item.title",[$.Activity]:"timeline.choose-times",[$.Treatment]:"timeline.choose-times",[$.Meal]:"timeline.choose-times",[$.Checkout]:"timeline.confirmation"},this.store.pipe(no(n=>n.runtimeState.isInIframe)).subscribe(n=>this.isInIframe=n)}getStepGroups(e){return rS(e)}makeSearchCall(e){let n=new Kd;if(n.searchRequest=e,n.bookingStep=$.Search,this.isInIframe){let r=this.createQueryParamsForSearchRequest(e,this.widgetSvc.frameOrigin);r.pathname="newsearch",this.store.dispatch(Ui({searchRequest:null})),this.widgetSvc.doRedirect(r);return}let o=this.processed.getVariables();o&&o.currentlyInTestMode&&(e=S({},e),e.testModeWanted=!0,n.searchRequest=e),this.store.dispatch(nc()),this.store.dispatch(oo({loadingMessageKey:"global.loading.searching"})),this.store.dispatch(Ss({isSearching:!0})),this.bookingStepNextRequest(n).pipe(In(this.$destroy),Fr(()=>{this.store.dispatch(Ss({isSearching:!1})),this.store.dispatch(Ui({searchRequest:e}));let r=this.processed.getWidget()?.prefilledPromocode;e.promoCode&&e.promoCode!==r&&this.store.dispatch(Hi({promoCode:e.promoCode}))}),Ze(()=>this.store.dispatch(ic()))).subscribe({next:r=>{r.data&&(this.store.dispatch(Mo({response:r})),this.router.navigate([Jd(r.data.nextStep.forStep,this.router.url)],{queryParamsHandling:"preserve"})),this.store.dispatch(Vi())},error:r=>{this.store.dispatch(Vi()),console.error("Http error",r,"searchDto",e)}})}setupNextRequest(e,n,o,r=[]){let a={searchRequest:e,basketId:n.id,basketHash:n.hash,bookingStep:o,updateLanguage:this.languageService.getCurrentLanguage()};return r.length>0&&(a.updateParties=r),a}getConfigurationEntityType(e){return{[$.Meal]:Ht.Meal,[$.Treatment]:Ht.Treatment,[$.Activity]:Ht.Activity}[e]}makeServiceItemBooking(e,n,o,r,a=""){return n.forEach(s=>{if(!s.timeslot.bookingItemData)return;o.forEach(c=>{c.timeslotIdentifier===s.timeslot.id&&(s.person?.id&&c.forPersonId?.includes(s.person.id)||!s.person?.id&&s.party?.partyId===c.forPartyId)&&(e.removeOrderRows=[...e.removeOrderRows||[],c.id])});let l=new Zd;l.type=r,l.startTime=s.timeslot.startTimeInUtc,l.bookingItemData=s.timeslot.bookingItemData,l.configId=s.bookable.configId,s.bookable.selection===Tt.PerParty&&(l.forPartyId=s.party.partyId),s.bookable.selection===Tt.PerPerson&&(l.forPersonId=[s.person.id]),l.count=1,e.addOrderRows=[...e.addOrderRows||[],l]}),a&&(e.updateMessages={meal:a}),this.bookingStepNextRequest(e).pipe(Ze(s=>{let l=s.data?.changedOrderRows?.filter(c=>c.orderRow.type===r)||[];this.trackingService.track(ce.BuyAddon,{orderRows:l.map(c=>c.orderRow)}),this.store.dispatch(Mo({response:s}))}
31))}getTimelineList(e,n=J.Overnight){let o=[this.timelineKeys[n===J.Restaurant?$.Restaurant:$.Package]],r=!1;return(e?.bookingStepOrdering||[$.Room]).forEach(a=>{switch(a){case $.Room:n===J.Overnight&&o.push(this.timelineKeys[a]);break;case $.Treatment:case $.Activity:case $.Meal:if(e){let s=!1;[Ht.Treatment,Ht.Activity,Ht.Meal].forEach(l=>{let c=new tl(e,l);s||=c.hasChoosable()}),s&&o.push(this.timelineKeys[a])}break;case $.Waitlist:o.push(this.timelineKeys[a]),r=!0;break}}),r||o.push(this.timelineKeys[$.Checkout]),o.filter((a,s)=>o.indexOf(a)===s)}getCurrentInTimeline(e){return e&&this.timelineKeys[e]?this.timelineKeys[e]:this.timelineKeys[$.Activity]}getSelectionsPerPerson(e,n,o,r){if(!Js(e)&&e.selection===Tt.PerPerson){let s=n.find(l=>l.partyId===o)?.persons.filter(l=>e.ageCategoriesThatCanChoose?.includes(l.typeSubIdentifier)).length||0;return r/s}return 1}getSelectedTimeslots(e,n,o,r){if(!e)return[];let a=e.orderRows.filter(s=>s.timeslotIdentifier&&s.type===r).flatMap(s=>{let l=n.map(d=>(Or(d)?d.choosableBookingMeals:d.serviceItems).find(m=>m.configId===s.configId)).filter(d=>!!d)[0],c=l?.selection===Tt.PerPerson;return(c?s.forPersonId??[]:[null]).map(d=>({bookable:l||{},timeslot:uh(s),party:l?.selection!==Tt.PerBooking?e.parties.find(m=>m.partyId===s.forPartyId):void 0,person:c?e.parties.reduce((m,g)=>m=m||g.persons.find(C=>C.id===d),void 0):void 0,date:s.startTime.toISOString().split("T")[0]}))});return o.forEach(s=>{let l=[];if(s.bookable.selection===Tt.PerPerson)l=a.filter(d=>d.person?.id===s.person?.id&&d.timeslot.groupId===s.timeslot.groupId);else if(s.bookable.selection===Tt.PerParty)l=a.filter(d=>d.party?.partyId===s.party?.partyId&&d.timeslot.groupId===s.timeslot.groupId);else{let d=Xs(s.timeslot)?s.timeslot.mealGroupId:s.timeslot.groupId;l=a.filter(m=>(Xs(m.timeslot)?m.timeslot.mealGroupId:m.timeslot.groupId)===d)}let c=!1;if(l.length>=1){let d=l.pop();c=d?.timeslot.id===s.timeslot.id,a=a.filter(m=>d!==m)}c||a.push(s)}),a}getUpdatedValidation(e,n,o){if(e){let r=new tl(kt(e),o);
31return r.resetHaveChosenValues(),n.forEach(a=>{if(a.person||a.party)r.setPartyAndGroup(a.party.partyId,a.timeslot.groupId||"",a.date),r.haveChosenForPartyAndGroup+=1,r.haveChosenForPartyAndDate+=1,r.haveChosenForParty+=1;else{let s=Xs(a.timeslot)?a.timeslot.mealGroupId:a.timeslot.groupId;r.setPartyAndGroup("",s,a.date),r.haveChosenForDate+=1,r.haveChosenForGroup+=1,r.haveChosenTotal+=1}}),r.bookingValidation}return null}updateAvailability(e,n){return e.wantedUpdateFor=n,this.bookingStepNextRequest(e,!0,"global.loading.availability").pipe(Ze(o=>this.store.dispatch(Mo({response:o}))))}bookingStepNextRequest(e,n=!0,o){return n&&this.store.dispatch(oo({loadingMessageKey:o??this.getRelevantLoadingString(e)})),this.http.post("/api/private/nextstep",e).pipe(Ze(r=>{this.store.dispatch(Vi()),r.data&&r.data.isTestMode?this.store.dispatch(ds({testMode:!0})):this.store.dispatch(ds({testMode:!1})),!r.success&&!r.isSoftError&&this.store.dispatch(Iu({error:r}))}))}mealSuggestionRequest(e,n=!0,o){return n&&this.store.dispatch(oo({loadingMessageKey:o??"global.loading.mealSuggestion"})),this.http.post("/api/private/mealsuggestion",e).pipe(Ze(r=>{this.store.dispatch(Vi()),!r.success&&!r.isSoftError&&this.store.dispatch(Iu({error:r}))}))}bookingUpdateTimeout(){this.store.select(Jt).pipe(Ke(1),lt(Boolean),Be(e=>({basketId:e.id,basketHash:e.hash})),qt(e=>this.http.post("/api/private/updatetimeout",e))).subscribe({next:e=>{e.data&&e.success?(this.store.dispatch(Oo({basketTimeoutAt:new Date(e.data.basketTimeoutAt)})),this.store.dispatch(ec({basket:e.data.basket}))):e.success||this.store.dispatch(e0())},error:e=>{this.store.dispatch(Vi()),console.error("Http error",e)}})}getRelevantLoadingString(e){switch(e.bookingStep){case $.Room:return"global.loading.reservingRoom";case $.Activity:return"global.loading.reservingActivity";case $.Package:return"global.loading.reservingPackage";case $.Meal:case $.Restaurant:return"global.loading.reservingMeal";case $.Treatment:return"global.loading.reservingTreatment";case $.Addons:return"global.loading.reservingAddons";case $.Checkout:return"global.loading.checkingOut";case $.Search:return"global.loading.searching";default:return"global.loading.loading"}}cancelBasket(){this.store.select(Jt).pipe(Ke(1),lt(e=>!!e),Be(e=>({basketId:e.id,basketHash:e.hash}))).subscribe(e=>{this.http.post("/api/private/cancelongoing",e).subscribe()})}createQueryParamsForSearchRequest(e,n,o=window.location.href){let r=new URL(o);if(r.searchParams.set("f",e.from),e.to&&r.searchParams.set("t",e.to),r.searchParams.set("s",e.searchType),r.searchParams.set("l",e.language),r.searchParams.set("o",r.origin),e.widgetId&&r.searchParams.set("wid",e.widgetId),e.promoCode?.trim()&&r.searchParams.set("c",e.promoCode.trim()),n){let s=n.endsWith("/")?n.slice(0,-1):n;r.searchParams.set("o",encodeURIComponent(s))}e.wantedRestaurantId&&r.searchParams.set("r",e.wantedRestaurantId),e.wantedRestaurantMealTimeId&&r.searchParams.set("m",e.wantedRestaurantMealTimeId);let a=this.processed.getInit().ageCategories;return e.parties.forEach((s,l)=>{let c={},d={};s.persons.forEach(g=>{let C=a.findIndex(X=>X.typeSubIdentifier===g.typeSubIdentifier),R=`${g.type}:${C}`,F=a[C].beddingOptions.findIndex(X=>X.id===g.beddingOptionId);F>=0&&(d[R]===void 0&&(d[R]=[]),d[R].push(F)),c[R]=(c[R]||0)+1});let m=Object.keys(c).map(g=>`${g}:${c[g]}:${d[g]?.join("-")||""}`);r.searchParams.set(`p${l}`,m.join(","))}),r}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=G({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var sS=(()=>{class t extends Jo{constructor(e,n,o){super(),this.store=e,this.bookingService=n,this.lngService=o,this.componentState="full",this.componentIsOpen=()=>this.componentState==="edit"||this.componentState==="full",this.hideDefaultBasket=!1}ngOnInit(){this.isLoading$=this.store.select(Bo).pipe(In(this.$destroy),Xa(!1)),this.paymentIsOpen$=this.store.select(T_).pipe(In(this.$destroy),Xa(!1)),this.store.select(Jt).pipe(In(this.$destroy)).subscribe(e=>{this.basket=kt(e)}),this.store.select(gr).pipe(In(this.$destroy)).subscribe(e=>{e&&(this.searchRequest=e)})}ngOnDestroy(){super.ngOnDestroy()}detectChangesIfOnPush(){}static{this.\u0275fac=function(n){return new(n||t)(jr(oe),jr(Yi),jr(Nt))}}static{this.\u0275cmp=H({type:t,selectors:[["app-base-booking-step"]],inputs:{componentState:"componentState"},features:[re],decls:0,vars:0,template:function(n,o){},encapsulation:2,changeDetection:1})}}return t})();var Xd=(()=>{class t extends Jo{get currentView(){return this.activeStep()===$.Search?null:{componentIdentifier:mh(this.activeStep())}}constructor(){super(),this.store=f(oe),this.trackingService=f($i),this.router=f(xi),this.bookingService=f(Yi),this.transloco=f(xo),this.processedService=f(ae),this.backNavigationUpdateInFlight=!1,this.pendingPopstateUrl=null,this.defaultBasketHidden=new yt(!0),this.isInIframe=!1,this.activeStep=ne($.Search),this.isEditingCurrentStep=A(()=>{let n=this.store.selectSignal(Eo)()??null;return n!==null&&this.activeStep()!==$.Search&&this.activeStep()!==n}),this.isPackagePartsStepActive=A(()=>[$.Meal,$.Activity,$.Treatment].includes(this.activeStep())),this.store.pipe(no(n=>n.runtimeState.isInIframe)).subscribe(n=>this.isInIframe=n),this.router.events?.pipe(lt(n=>n instanceof so)).subscribe(n=>{!this.backNavigationUpdateInFlight&&n instanceof so&&n.navigationTrigger==="popstate"&&(this.pendingPopstateUrl=n.url)}),this.router.events?.pipe(lt(n=>n instanceof wi)).subscribe(n=>{if(n instanceof wi){let o=n.urlAfterRedirects;this.updateStateFromUrl(o),this.pendingPopstateUrl&&(this.syncBackNavigationStep(o),this.pendingPopstateUrl=null)}}),this.updateStateFromUrl(this.router.url||window.location.pathname||"/booking")}initialize(){this.store.select(Eo).pipe(Ke(1)).subscribe(e=>this.handleNextStep(e))}handleNextStep(e,n=!0){return z(this,null,function*(){let o=e??$.Search,r=Jd(o,this.router.url),a=this.router.url.split("?")[0].split("#")[0],s=r.split("?")[0].split("#")[0];a!==s&&(yield this.router.navigate([r],{queryParamsHandling:"preserve"})),this.activeStep.set(o),this.defaultBasketHidden.next([$.Search,$.Checkout].includes(o)),this.updateDocumentTitle(o,s),n&&vm(),o!==$.Search&&this.trackingService.track(ce.PageView)})}shouldScrollToTop(e){switch(e.nextStep.forStep){case $.Checkout:return!!e.changedOrderRows;case $.Package:case $.Room:case $.Restaurant:case $.Waitlist:case $.Meal:case $.Treatment:case $.Activity:return!0;default:return!1}}editComponent(e){return z(this,null,function*(){yield this.handleNextStep(e)})}stopEditingComponent(){return z(this,null,function*(){let e=this.store.selectSignal(Eo)()??null;return e&&e!==this.activeStep()?(yield this.handleNextStep(e),!0):(vm(),!1)})}updateStateFromUrl(e){let n=e.split("?")[0].split("#")[0],r=hh(n)??this.store.selectSignal(Eo)()??$.Search;this.activeStep.set(r),this.defaultBasketHidden.next([$.Search,$.Checkout].includes(r)),this.updateDocumentTitle(r,n)}syncBackNavigationStep(e){let n=hh(e);if(!n||[$.Search,$.Addons,this.activeStep()].includes(n))return;let{searchRequest:o,basket:r}=this.store.selectSignal(vt)();if(!o||!r)return;let a=this.bookingService.setupNextRequest(o,r,n);a.bookingStep=n,a.wantedUpdateFor=n,this.backNavigationUpdateInFlight=!0,this.bookingService.bookingStepNextRequest(a,!0,"global.loading.availability").subscribe({next:s=>{s.success&&s.data&&this.store.dispatch(Mo({response:s}))},error:()=>{this.backNavigationUpdateInFlight=!1},complete:()=>{this.backNavigationUpdateInFlight=!1}})}updateDocumentTitle(e,n){let r=`browser.title.${this.resolveTitleKeySuffix(e,n)}`,a=this.processedService.getInit().resort.siteName;document.title=`${a} - ${this.transloco.translate(r).replace(/<[^>]*>/g,"")}`}resolveTitleKeySuffix(e,n){return n.endsWith("/thankyou")?"thank-you":this.getBookingStepKey(e)}getBookingStepKey(e){return($[e]??"search").replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/\s+/g,"-").toLowerCase()}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=G({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Dr=class extends qo{static getPropertyNames(){return["from","to","parties","promoCode","widgetId","searchType","language","wantedRestaurantId","wantedRestaurantMealTimeId","testModeWanted"]}};var ep=class extends qo{static getPropertyNames(){return["persons"]}};var fi=(()=>{class t{constructor(){this.dateUtils=f(Ft),this.processed=f(ae),this.store=f(oe)}resolveWidgetId(e){if(this.store.selectSignal(qi)())return e??this.processed.getWidget()?.widgetId??null;let o=!!this.store.selectSignal(a=>a.runtimeState.queryParams.frameOrigin)(),r=this.store.selectSignal(a=>a.runtimeState.hasAutoSearchedFromRedirect)();return o&&r?null:e??this.processed.getWidget()?.widgetId??null}getBookableAgeCategories(e,n,o){if(!e||!n)return[];let r=(c,d)=>{let m=this.dateUtils.stringToDateTime(d.from),g=this.dateUtils.stringToDateTime(d.to);return c>=m&&c<=g},a=(c,d,m)=>c.isAlwaysBookable?!0:(c.bookPeriods??[]).some(g=>r(d,g)&&r(m,g)),s=this.dateUtils.stringToDateTime(e),l=this.dateUtils.stringToDateTime(n);return o.filter(c=>a(c,s,l))}tryGetSearchModeParam(e){let n=new URLSearchParams(e);if(n.get("s")!==null)switch(n.get("s")){case J.Day.toString():return J.Day;
31case J.Overnight.toString():return J.Overnight;case J.Restaurant.toString():return J.Restaurant;default:return J.Overnight}return null}createParty(e){let n=this.processed.getInit().globals,r=(this.processed.getInit().ageCategories||[]).filter(l=>l.isAlwaysBookable)[0],a=new ep;a.persons=[];let s;switch(e){case J.Overnight:s=n.defaultNumberOfAdultsForAccommodation;break;case J.Day:s=n.defaultNumberOfAdultsForDayPackage;break;case J.Restaurant:s=n.defaultNumberOfAdultsForTableReservation;break;default:s=2}for(let l=0;l<s;l++)a.persons.push({type:r.personType,typeSubIdentifier:r.typeSubIdentifier,beddingOptionId:""});return a}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=G({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var tp=class{};var nl=class{static getPropertyNames(){return["changeType","orderRow","removedReason"]}};var Rt=(()=>{class t{constructor(){this.translocoStripHtmlPipe=f(Y),this.translate=f(rt),this.processed=f(ae),this.dateUtils=f(Ft),this.currencyPipe=f(Dn)}partyString(e,n=!1){let{totalAdults:o,totalChildren:r}=this.partyCount(e);if(n)return this.translocoStripHtmlPipe.transform("search-summary.persons",{count:o+r});let a=o===1?this.translocoStripHtmlPipe.transform("search-summary.adult.singular",{count:o}):this.translocoStripHtmlPipe.transform("search-summary.adult.plural",{count:o});return r>0&&(a+=", ",a+=r===1?this.translocoStripHtmlPipe.transform("search-summary.child.singular",{count:r}):this.translocoStripHtmlPipe.transform("search-summary.child.plural",{count:r})),a}partyCount(e){let n=0,o=0;return(e||[]).forEach(r=>{(r.persons||[]).forEach(a=>{a.type===dt.Adult?n++:a.type===dt.Child&&o++})}),{totalAdults:n,totalChildren:o,total:n+o}}nightsString(e){switch(e){case 0:return this.translocoStripHtmlPipe.transform("search.popover.daypackage");case 1:return this.translocoStripHtmlPipe.transform("search.popover.night",{nights:e});default:return this.translocoStripHtmlPipe.transform("search.popover.nights",{nights:e})}}roomsString(e){let n=[],o=e.filter(r=>r.type===Ht.Room).map(r=>this.translate.transform(r.title));for(;o.length>0;){let r=o[0],a=o.filter(s=>s===r).length;n.push(`${a} ${r}`),o=o.filter(s=>s!==r)}return n}priceString(e,n=!1,o=!1){let r=jd(e)?e.price:e,a="",s="";return(n||jd(e)&&e.displayFromPricePrefix)&&(a=this.translocoStripHtmlPipe.transform("general.price.from")+" "),jd(e)&&e.priceType===Zs.PerPerson&&(s=" "+this.translocoStripHtmlPipe.transform("pricetype.per-person.short")),r?a+this.currencyPipe.transform(r,!1,{forceDecimals:o})+s:""}getNamesInOrderRow(e,n){let o=this.partyCount(e).total,r=n.forPersonId?.length||0,a=r===0||r>2;if(!a){let s=e.findIndex(l=>l.partyId===n.forPartyId);if(r>0&&r<=4){let l=[];if(e[s].persons.forEach(c=>{n.forPersonId?.includes(c.id)&&(c.firstName?l.push(c.firstName):a=!0)}),!a)return l.join(", ")}else if(n.forPartyId&&e.length>1)return this.translocoStripHtmlPipe.transform("general.room-name",{number:s+1})}return a&&n.type!==Ht.Stock?this.translocoStripHtmlPipe.transform("search-summary.persons",{count:n.personCount||r||o}):""}getOrderRoomName(e,n){let o=e.filter(r=>r.bookingStep===$.Room&&r.type===Ht.Room).find(r=>r.forPartyId===n);return o?.title?o.title:new tp}findPartyType(e,n){let o={};return e.persons.forEach(a=>{o[a.typeSubIdentifier]=(o[a.typeSubIdentifier]||0)+1}),n.find(a=>!!(a.ageCategoryTypes.length===Object.keys(o).length&&a.ageCategoryTypes.every(s=>o[s.ageCategoryId]===s.count)))||null}getOrderRowByType(e,n,o=null){return e.map(r=>r instanceof nl?r.orderRow:r).find(r=>r.type===n&&(o?r.subType===o:!0))||null}getOrderRowByStep(e,n){return e.map(o=>o instanceof nl?o.orderRow:o).find(o=>o.bookingStep===n)||null}getScheduledInfo(e,n,o=null){return!e||!n?[]:this.processed.getInit().scheduledInfo.filter(r=>{let a=new Date(r.startDate),s=new Date(r.endDate),l=new Date(e),c=new Date(n),d=a<=c&&s>=l,m=!o||r.bookingType.includes(o),g=this.matchesScheduledInfoWeekday(r,e,n);return d&&m&&g})}matchesScheduledInfoWeekday(e,n,o){if(!e.daysOfWeek)return!0;let r=[e.daysOfWeek.monday,e.daysOfWeek.tuesday,e.daysOfWeek.wednesday,e.daysOfWeek.thursday,e.daysOfWeek.friday,e.daysOfWeek.saturday,e.daysOfWeek.sunday];if(!r.some(Boolean))return!0;let a=this.dateUtils.stringToDateTime(typeof n=="string"?n:n.toISOString()),s=this.dateUtils.stringToDateTime(typeof o=="str
31ing"?o:o.toISOString());for(let l=a;l<=s;l=l.plus({days:1}))if(r[l.weekday-1])return!0;return!1}nameMissingInParties(e){return e.some(n=>n.persons.some(o=>!o.firstName))}findPartyOfPerson(e,n){return e.find(o=>o.persons.find(r=>r===n))}findPersonInParties(e,n){let o;return e.forEach(r=>o=o||r.persons.find(a=>a.id===n)),o}generateRange(e,n){return Array.from({length:n-e+1},(o,r)=>r+e)}updateFormValidity(e,n){Object.keys(e.controls).forEach(o=>{let r=e.get(o);r instanceof Hl?this.updateFormValidity(r,n):r?.updateValueAndValidity(n)})}getAmenityGroups(e,n){let o=[],r=new Map;return n.forEach(a=>{let s=a.categoryId;r.has(s)||r.set(s,[]),r.get(s).push(a)}),r.forEach((a,s)=>{let l=e.find(c=>c.categoryId===s);l&&o.push({category:l,items:a})}),o}getRoomAmenities(e){let n=this.processed.getInit().amenities,o=n.roomTypeAmenities.find(C=>C.configurationId===e);if(!o)return{amenitiesById:{},amenitiesByCategory:{},roomSizeSquareMeter:"",roomSizeAmenityId:null,bedSizes:[]};let r=new Map(n.roomAmenities.map(C=>[C.amenityId,C])),a=(C,R)=>C?.length?C.map(F=>{let X=r.get(F.amenityId);return X?j(S({},X),{onRequest:F.onRequest}):null}).filter(F=>!!F):n.roomAmenities.filter(F=>R?.includes(F.amenityId)),s=a(o.amenities,o.amenityIds),l={},c={};s.forEach(C=>{l[C.amenityId]=C,c[C.categoryId]=c[C.categoryId]||[],c[C.categoryId].push(C)});let d=a(o.bedAmenities,o.bedAmenityIds),m=o.roomSizeSquareMeter,g=o.roomSizeSquareMeterIconId;return{amenitiesById:l,amenitiesByCategory:c,roomSizeSquareMeter:m,roomSizeAmenityId:g,bedSizes:d}}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=G({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Di=(()=>{class t{constructor(){this.apiClient=f(Gt),this.processed=f(ae),this.utils=f(Rt),this.store=f(oe),this.searchService=f(fi),this._requestCache=new Map,this.pendingPriceCalRequest=void 0}fetchPriceCalenderData(e,n,o,r,a,s,l,c){if(!this.processed.getInit().globals.showPriceCalendarPrices)return;let d,m;n?.next?(m=n.next.year,d=n.next.month):(n||(n=new Date),m=typeof n=="string"?Number(n.split("-")[0]):n.getFullYear(),d=typeof n=="string"?Number(n.split("-")[1]):n.getMonth()+1),this.store.dispatch(pa({isLoadingPrices:!0}));let g=this.searchService.resolveWidgetId(null),C={year:m,month:d,nights:o,parties:r,widgetId:g??null,searchType:e,promoCode:a,wantedRestaurantId:e===J.Restaurant&&s?s:void 0,wantedRestaurantMealTimeId:e===J.Restaurant&&l?l:void 0};this.pendingPriceCalRequest&&!this.pendingPriceCalRequest.closed&&this.pendingPriceCalRequest.unsubscribe(),this.pendingPriceCalRequest=this.getCalendarData(C).pipe(cr(R=>(this.store.dispatch(pa({isLoadingPrices:!1})),Le(R)))).subscribe(R=>{this.store.dispatch(pa({isLoadingPrices:!1})),c?.(R),this.pendingPriceCalRequest=void 0})}getPricePerParty(e,n,o){if(!o||!e?.partyTypes||!e.priceForDates)return[];let r=e.partyTypes,a=e.priceForDates[o];return n.map(s=>{let l=this.utils.findPartyType(s,r);return a?.pricePerParty?.[l?.id??0]||0})}getCalendarData(e){return wn(this.hashCacheKey(e)).pipe(qt(n=>{let o=this.getFromCache(n);return o?Le(o):this.apiClient.post("/api/pricecalendar",e,{getOutcome:!0,showLoader:!1}).pipe(Ze(r=>{r.data&&this._requestCache.set(n,{data:r.data,expires:Date.now()+1e3*60*3})}),Be(r=>r.data))}))}hashCacheKey(e){return z(this,null,function*(){let n=JSON.stringify(e);if(typeof crypto<"u"&&crypto.subtle?.digest)try{let r=new TextEncoder().encode(n),a=yield crypto.subtle.digest("SHA-256",r);return Array.from(new Uint8Array(a)).map(l=>l.toString(16).padStart(2,"0")).join("")}catch(o){}return n})}getFromCache(e){let n=this._requestCache.get(e);return n&&n.expires>Date.now()?n.data:null}isCached(e){return this._requestCache.has(e)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=G({token:t,factory:t.\u0275fac,providedIn:null})}}return t})();var fh=(function(t){return t[t.Unknown=0]="Unknown",t[t.NoAllotment=1]="NoAllotment",t[t.NoRate=2]="NoRate",t[t.InvalidConfiguration=4]="InvalidConfiguration",t[t.InvalidExternalConfiguration=8]="InvalidExternalConfiguration",t[t.LimitingConfiguredSelection=16]="LimitingConfiguredSelection",t[t.LimitingExter
31nalAllotment=32]="LimitingExternalAllotment",t[t.PromoCodeRestriction=64]="PromoCodeRestriction",t[t.AgeCategoryRestriction=128]="AgeCategoryRestriction",t[t.LoyaltyRestriction=256]="LoyaltyRestriction",t[t.OutsideSellablePeriod=512]="OutsideSellablePeriod",t[t.CapacityLimitReached=1024]="CapacityLimitReached",t[t.LimitingChargesUnavailable=2048]="LimitingChargesUnavailable",t[t.MealsUnavailable=4096]="MealsUnavailable",t[t.TreatmentsUnavailable=8192]="TreatmentsUnavailable",t[t.ActivitiesUnavailable=16384]="ActivitiesUnavailable",t[t.RestaurantPackageInvalid=32768]="RestaurantPackageInvalid",t[t.ServiceLimitsInvalid=65536]="ServiceLimitsInvalid",t[t.TimeslotOutsideTimeRange=131072]="TimeslotOutsideTimeRange",t[t.RoomBeddingAreInvalid=262144]="RoomBeddingAreInvalid",t[t.DayPackageValidationInvalid=524288]="DayPackageValidationInvalid",t[t.LoyaltyLevelRestriction=1048576]="LoyaltyLevelRestriction",t})(fh||{});var Va=(()=>{class t{constructor(){this.apiClient=f(Gt),this.store=f(oe),this.searchService=f(fi)}fetchCrossSell(e){let{year:n,month:o,day:r,nights:a,searchType:s}=e,l={year:n,month:o,day:r,nights:a,searchType:s,parties:this.resolveParties(e)};return this.apiClient.post("/api/pricecalendar/crosssell",l,{getOutcome:!0,ignoreErrors:!0,showLoader:!1}).pipe(Be(c=>c.data??[]))}resolveParties(e){if(e.parties?.length)return e.parties;let n=this.store.selectSignal(Ec)()?.parties;return n?.length?n:[this.searchService.createParty(e.searchType)]}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=G({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function Rk(t,i){if(t&1&&(h(0,"label",2),D(1),_()),t&2){let e=u();p(),V(e.title())}}function Ek(t,i){if(t&1&&(T(0,"app-icon",5),h(1,"span",6),D(2),y(3,"translocoStripHtml"),_()),t&2){let e=u(2);b("size",e.IconSize.TINY),p(2),ee(" ",O(3,2,"general.link.external")," ")}}function Ak(t,i){if(t&1&&(h(0,"a",4),y(1,"translocoStripHtml"),D(2),y(3,"translocoStripHtml"),w(4,Ek,4,4),_()),t&2){let e=u();b("href",e.readMoreLink(),ut),ue("target",e.isReadMoreLinkExternal()?"_blank":null)("rel",e.isReadMoreLinkExternal()?"noopener noreferrer":null)("title",e.isReadMoreLinkExternal()?O(1,6,"general.link.external"):null),p(2),ee(" ",O(3,8,"general.read-more")," "),p(2),x(e.isReadMoreLinkExternal()?4:-1)}}var lS=(function(t){return t.LARGE="large",t.MEDIUM="medium",t.SMALL="small",t})(lS||{});var np=(()=>{class t extends _e{constructor(){super(...arguments),this.title=v(),this.icon=v("info"),this.info=v.required(),this.size=v(lS.MEDIUM),this.noteLabelKey=v("general.note"),this.showNoteLabel=v(!1),this.readMoreLink=v(),this.action=v(),this.className=A(()=>{let e=this.action()?` note-info--action-${this.action()}`:"";return`note-info--${this.size()}${e}`}),this.iconSize=A(()=>this.size()==="small"?Se.XTINY:Se.TINY),this.isReadMoreLinkExternal=A(()=>{let e=this.readMoreLink();if(!e)return!1;try{return new URL(e,window.location.href).origin!==window.location.origin}catch(n){return!1}}),this.IconSize=Se}static{this.\u0275fac=(()=>{let e;return function(o){return(e||(e=Ne(t)))(o||t)}})()}static{this.\u0275cmp=H({type:t,selectors:[["app-note-info"]],inputs:{title:[1,"title"],icon:[1,"icon"],info:[1,"info"],size:[1,"size"],noteLabelKey:[1,"noteLabelKey"],showNoteLabel:[1,"showNoteLabel"],readMoreLink:[1,"readMoreLink"],action:[1,"action"]},features:[re],decls:7,vars:10,consts:[["data-qa","note-info"],[3,"name","size"],[1,"label-large","mb-1"],["data-qa","note-info-text",2,"flex","1",3,"innerHTML"],["data-qa","note-info-read-more",1,"body-medium","note-info__read-more",3,"href"],["name","openExternal","aria-hidden","true",3,"size"],["data-qa","note-info-external-link-label",1,"visually-hidden"]],template:function(n,o){n&1&&(h(0,"div",0),T(1,"app-icon",1),h(2,"div"),w(3,Rk,2,1,"label",2),T(4,"div",3),y(5,"translocoStripHtml"),_(),w(6,Ak,5,10,"a",4),_()),n&2&&(Ci(o.className()),p(),b("name",o.icon())("size",o.iconSize()),p(2),x(o.title()?3:-1),p(),b("innerHTML",o.info(),Mt),ue("data-note",o.showNoteLabel()?O(5,8,o.noteLabelKey()):void 0),p(2),x(o.readMoreLink()?6:-1))}
31,dependencies:[Fe,Y],styles:[`.display-large[_ngcontent-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:3.25em;line-height:1.125em;font-weight:700}.display-medium[_ngcontent-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:2.875em;line-height:1.1em;font-weight:700}.display-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:2.5em;line-height:1.125em;font-weight:700}.headline-large[_ngcontent-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:2.25em;line-height:1.14em;font-weight:700}.headline-medium[_ngcontent-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:1.875em;line-height:1.1em;font-weight:700}.headline-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:1.5em;line-height:1.13125em;font-weight:700}.title-large[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:1.5em;line-height:1.1875em;font-weight:600}.title-medium[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:1.25em;line-height:1.1875em;font-weight:600}.title-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:1em;line-height:1em;font-weight:600}.label-large[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:1em;line-height:1.1875em;font-weight:600}.label-medium[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.875em;line-height:1.3em;font-weight:600}.label-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.75em;line-height:.875em;font-weight:600}.label-extra-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.625em;line-height:1.2em;font-weight:600}.body-large[_ngcontent-%COMP%], .note-info--%NS%large[_ngcontent-%COMP%] div, .note-info--large[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:1em;line-height:1.1875em;font-weight:400}
31.body-medium[_ngcontent-%COMP%], .note-info--%NS%medium[_ngcontent-%COMP%] div, .note-info--medium[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.875em;line-height:1.1em;font-weight:400}.body-small[_ngcontent-%COMP%], .note-info--%NS%small[_ngcontent-%COMP%] div, .note-info--small[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.75em;line-height:1.125em;font-weight:400}.body-extra-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.625em;line-height:.75em;font-weight:400}[_nghost-%COMP%] > div[_ngcontent-%COMP%]{border:1px solid var(--%NS%border-color);border-bottom:none}[_nghost-%COMP%]:not(:first-of-type){margin-top:0!important}[_nghost-%COMP%]:first-of-type > div[_ngcontent-%COMP%]{border-top-left-radius:var(--%NS%radius-regular);border-top-right-radius:var(--%NS%radius-regular)}[_nghost-%COMP%]:last-of-type > div[_ngcontent-%COMP%]{border-bottom-left-radius:var(--%NS%radius-regular);border-bottom-right-radius:var(--%NS%radius-regular);border-bottom:1px solid var(--%NS%border-color)}.note-info--large[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5em}.note-info--large[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{flex:1}.note-info--large[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] div[_ngcontent-%COMP%] p:first-child{display:inline}.note-info--large[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] div[_ngcontent-%COMP%] p:last-child{margin-bottom:0}.note-info--large[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] div[data-note][_ngcontent-%COMP%]:before{content:attr(data-note);margin-right:.25em;font-weight:600}.note-info--large[_ngcontent-%COMP%]{padding:1em}
31.note-info--medium[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5em}.note-info--medium[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{flex:1}.note-info--medium[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] div[_ngcontent-%COMP%] p:first-child{display:inline}.note-info--medium[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] div[_ngcontent-%COMP%] p:last-child{margin-bottom:0}.note-info--medium[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] div[data-note][_ngcontent-%COMP%]:before{content:attr(data-note);margin-right:.25em;font-weight:600}.note-info--%NS%medium[_ngcontent-%COMP%] div, .note-info--medium[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{font-size:.935em}.note-info--medium[_ngcontent-%COMP%]{padding:.75em}.note-info--small[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5em}.note-info--small[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{flex:1}.note-info--small[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] div[_ngcontent-%COMP%] p:first-child{display:inline}.note-info--small[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] div[_ngcontent-%COMP%] p:last-child{margin-bottom:0}.note-info--small[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] div[data-note][_ngcontent-%COMP%]:before{content:attr(data-note);margin-right:.25em;font-weight:600}.note-info--small[_ngcontent-%COMP%]{padding:.75em}.note-info--action-success[_ngcontent-%COMP%]{color:var(--%NS%action-color);background-color:var(--%NS%success-background-color)}.note-info--action-warning[_ngcontent-%COMP%]{color:var(--%NS%action-color);background-color:var(--%NS%warning-background-color)}.note-info--action-alert[_ngcontent-%COMP%]{color:var(--%NS%action-color);background-color:var(--%NS%alert-background-color)}.note-info__read-more[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:.25em}.note-info__read-more[_ngcontent-%COMP%] >.icon{padding:0} 32/*# sourceMappingURL=note-info.component.css.map */`],changeDetection:1})}}return t})();var qa=t=>({language:t}),Lk=t=>({"background-image":t});function zk(t,i){t&1&&(h(0,"span"),D(1),_()),t&2&&(p(),ee("",i,":"))}function Bk(t,i){if(t&1&&(h(0,"div",0),Co("foldAnimationToHide"),h(1,"div",3)(2,"h1",4),w(3,zk,2,1,"span"),y(4,"translate"),D(5),y(6,"translocoStripHtml"),_()()()),t&2){let e,n=u();p(),b("ngStyle",Z(8,Lk,"url("+n.restaurantImageUrl()+")")),p(2),x((e=O(4,3,n.chosenRestaurant().title))?3:-1,e),p(2),ee(" ",W(6,5,"search.restaurant.title",Z(10,qa,n.language()))," ")}}function Fk(t,i){if(t&1&&(h(0,"div",1)(1,"h1"),D(2),y(3,"translocoStripHtml"),_()()),t&2){let e=u();p(2),V(W(3,1,"search.restaurant.title",Z(4,qa,e.language())))}}function Uk(t,i){if(t&1){let e=B();h(0,"app-button",5),y(1,"translate"),k("btnClick",function(){N(e);let o=u().$implicit,r=u(2);return I(r.setChosenRestaurant(o))}),_()}if(t&2){let e=u().$implicit,n=u(2);b("disabled",n.isLoading())("label",O(1,4,e.title))("shape",n.ButtonShape.PILL)("appearance",n.chosenRestaurant()===e?n.ButtonStyle.ALTERNATE:n.ButtonStyle.SELECTION)}}function Hk(t,i){if(t&1&&w(0,Uk,2,6,"app-button",6),t&2){let e=i.$implicit;x(e?0:-1)}}function Vk(t,i){if(t&1){let e=B();h(0,"div",1)(1,"h2"),D(2),y(3,"translocoStripHtml"),_(),h(4,"div",2)(5,"app-button",5),y(6,"translocoStripHtml"),k("btnClick",function(){N(e);let o=u();return I(o.setChosenRestaurant(null))}),_(),we(7,Hk,1,1,null,null,Xe),_()()}if(t&2){let e=u();p(2),V(W(3,5,"search.restaurant.restaurant.header",Z(11,qa,e.language()))),p(3),b("disabled",e.isLoading())("label",W(6,8,"search.restaurant.restaurant.all",Z(13,qa,e.language())))("shape",e.ButtonShape.PILL)("appearance",e.chosenRestaurant()?e.ButtonStyle.SELECTION:e.ButtonStyle.ALTERNATE),p(2),xe(e.restaurants)}}function qk(t,i){if(t&1){let e=B();h(0,"app-button",14),k("btnClick",function(){let o=N(e).$implicit,r=u(2),a=fe(4);return I(r.setPersons(a,o))}),_()}if(t&2){let e=i.$implicit,n=u(2),o=fe(4);b("disabled",n.isLoading())("label",e.toString())("appearance",o.persons.length===e?n.ButtonStyle.ALTERNATE:n.ButtonStyle.SELECTION)}}function jk(t,i){if(t&1){let e=B();h(0,"button",15),k("click",function(){let o=N(e).$implicit,r=u(2),a=fe(4);return I(r.setPersons(a,o))}),h(1,"span"),D(2),_()()}if(t&2){let e=i.$implicit;u(2);let n=fe(4);ye("active",e===n.persons.length),p(2),V(e)}}function $k(t,i){if(t&1){let e=B();h(0,"div",2),we(1,qk,1,3,"app-button",7,Xe),h(3,"div",8),k("openChange",function(){N(e);let o=u();return I(o.isMultiPersonOpen=!o.isMultiPersonOpen)}),T(4,"app-button",9),h(5,"div",10),we(6,jk,3,3,"button",11,Xe),h(8,"div",12),T(9,"span",13),y(10,"transloco"),_()()()()}if(t&2){let e=u(),n=fe(4);p(),xe(e.personOptions1()),p(3),b("disabled",e.isLoading())("label",n.persons.length>4?n.persons.length.toString():e.maxNoOfPersons()>4?"5+":e.maxNoOfPersons()+"+")("iconRight",e.isMultiPersonOpen?"chevronUp":"chevronDown")("iconPosition",e.ButtonIconPosition.RIGHT)("appearance",n.persons.length>4?e.ButtonStyle.ALTERNATE:e.ButtonStyle.SELECTION),p(2),xe(e.personOptions2()),p(3),b("innerHTML",O(10,6,"search.restaurantPersons.maxpersonsInfotext"),Mt)}}function Wk(t,i){if(t&1){let e=B();h(0,"app-button",14),y(1,"translate"),k("btnClick",function(){N(e);let o=u().$implicit,r=u();return I(r.setMealTimeId(o.id))}),_()}if(t&2){let e=u().$implicit,n=u();b("disabled",n.chosenRestaurant()?.validMealTimeIds?.indexOf(e.id)===-1||n.isLoading())("label",O(1,3,e.title))("appearance",e.id===n.chosenMealType()?n.ButtonStyle.ALTERNATE:n.ButtonStyle.SELECTION)}}function Gk(t,i){if(t&1&&w(0,Wk,2,5,"app-button",7),t&2){let e=i.$implicit;x(e?0:-1)}}var ip=(()=>{class t{constructor(){this.processed=f(ae),this.store=f(oe),this.utils=f(Rt),this.chosen
32Restaurant=Mn(),this.chosenMealType=Mn(null),this.parties=Mn([]),this.language=v(""),this.isLoading=v(!1),this.restaurants=this.processed.getInit().restaurant?.restaurants||[],this.mealTimes=this.processed.getInit().restaurant?.mealTimes||[],this.ageCategories=this.processed.getInit().ageCategories||[],this.isMultiPersonOpen=!1,this.isInIframe=this.store.selectSignal(qi),this.restaurantImageUrl=A(()=>$o((this.chosenRestaurant()?.images||[]).slice(0,1),lo.AddonHeader,An.Double)),this.defaultMealType=A(()=>this.mealTimes.find(e=>e.isDefault)),this.maxNoOfPersons=A(()=>this.chosenRestaurant()?this.chosenRestaurant().maxPersonsRestaurant:this.processed.getInit().globals.maxPersonsRestaurant),this.personOptions1=A(()=>this.utils.generateRange(1,this.maxNoOfPersons()<5?this.maxNoOfPersons()-1:4)),this.personOptions2=A(()=>this.utils.generateRange(this.maxNoOfPersons()<5?this.maxNoOfPersons():5,this.maxNoOfPersons())),this.ButtonStyle=Oe,this.ButtonShape=At,this.ButtonIconPosition=Ao}ngOnInit(){this.restaurants.length===1&&setTimeout(()=>{this.setChosenRestaurant(this.restaurants[0])})}setChosenRestaurant(e){this.chosenRestaurant.set(e),this.parties()[0].persons.length>this.maxNoOfPersons()&&this.setPersons(this.parties()[0],this.maxNoOfPersons())}setPersons(e,n){let o=this.parties().findIndex(s=>s===e),r=kt(this.parties());r[o].persons=[];let a=this.ageCategories.filter(s=>s.isAlwaysBookable)[0];for(let s=0;s<n;s++){let l=new jo;l.type=a.personType,l.typeSubIdentifier=a.typeSubIdentifier,r[o].persons.push(l)}this.parties.set(r)}setMealTimeId(e){this.chosenMealType.set(this.chosenMealType()===e?null:e)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=H({type:t,selectors:[["app-search-restaurant"]],inputs:{chosenRestaurant:[1,"chosenRestaurant"],chosenMealType:[1,"chosenMealType"],parties:[1,"parties"],language:[1,"language"],isLoading:[1,"isLoading"]},outputs:{chosenRestaurant:"chosenRestaurantChange",chosenMealType:"chosenMealTypeChange",parties:"partiesChange"},decls:16,vars:17,consts:[["appAnimateStart","foldAnimationShow",1,"foldAnimation","foldAnimationHide"],[1,"row","mb-3"],[1,"col","d-flex","flex-wrap","gap-1"],[1,"row","mb-3","text-color-white","restbox","foldAnimationContent",2,"background-size","cover",3,"ngStyle"],[2,"margin-top","160px"],[3,"btnClick","disabled","label","shape","appearance"],[3,"disabled","label","shape","appearance"],[3,"disabled","label","appearance"],["ngbDropdown","",3,"openChange"],["ngbDropdownToggle","",3,"disabled","label","iconRight","iconPosition","appearance"],["ngbDropdownMenu",""],["ngbDropdownItem","",1,"dropdown-item",3,"active"],["ngbDropdownItem","",1,"dropdown-item"],[1,"extratext",3,"innerHTML"],[3,"btnClick","disabled","label","appearance"],["ngbDropdownItem","",1,"dropdown-item",3,"click"]],template:function(n,o){if(n&1&&(w(0,Bk,7,12,"div",0),w(1,Fk,4,6,"div",1),w(2,Vk,9,15,"div",1),h(3,"div",1),qe(4),h(5,"h2"),D(6),y(7,"translocoStripHtml"),_(),w(8,$k,11,8,"div",2),_(),h(9,"div",1)(10,"h2"),D(11),y(12,"translocoStripHtml"),_(),h(13,"div",2),we(14,Gk,1,1,null,null,Xe),_()()),n&2){x(o.chosenRestaurant()&&!o.isInIframe()?0:-1),p(),x(o.chosenRestaurant()?-1:1),p(),x(o.restaurants.length>1?2:-1),p(2);let r=Je(o.parties()[0]);p(2),V(W(7,7,"search.restaurantPersons.header",Z(13,qa,o.language()))),p(2),x(r?8:-1),p(3),V(W(12,10,"search.restaurant.time.header",Z(15,qa,o.language()))),p(3),xe(o.mealTimes)}},dependencies:[El,$t,rn,on,nn,Bl,De,Sn,sg,Y,rt],styles:[`.display-large[_ngcontent-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:3.25em;line-height:1.125em;font-weight:700}
32.display-medium[_ngcontent-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:2.875em;line-height:1.1em;font-weight:700}.display-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:2.5em;line-height:1.125em;font-weight:700}.headline-large[_ngcontent-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:2.25em;line-height:1.14em;font-weight:700}.headline-medium[_ngcontent-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:1.875em;line-height:1.1em;font-weight:700}.headline-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:1.5em;line-height:1.13125em;font-weight:700}.title-large[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:1.5em;line-height:1.1875em;font-weight:600}.title-medium[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:1.25em;line-height:1.1875em;font-weight:600}.title-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:1em;line-height:1em;font-weight:600}.label-large[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:1em;line-height:1.1875em;font-weight:600}.label-medium[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.875em;line-height:1.3em;font-weight:600}.label-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.75em;line-height:.875em;font-weight:600}.label-extra-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.625em;line-height:1.2em;font-weight:600}.body-large[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:1em;line-height:1.1875em;font-weight:400}
32.body-medium[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.875em;line-height:1.1em;font-weight:400}.body-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.75em;line-height:1.125em;font-weight:400}.body-extra-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.625em;line-height:.75em;font-weight:400}.foldAnimation[_ngcontent-%COMP%]{display:grid;overflow:hidden;transition:grid-template-rows .3s ease-in-out,opacity .3s ease-in-out}.foldAnimation[_ngcontent-%COMP%] > .foldAnimationContent[_ngcontent-%COMP%]{overflow:hidden}.foldAnimationHide[_ngcontent-%COMP%]{grid-template-rows:0fr;opacity:0}.foldAnimationShow[_ngcontent-%COMP%]{grid-template-rows:1fr;opacity:1}.foldAnimationToHide[_ngcontent-%COMP%]{grid-template-rows:0fr;opacity:0}.fadeAnimation[_ngcontent-%COMP%]{transition:opacity .5s ease-in-out}.fadeAnimationHide[_ngcontent-%COMP%]{opacity:0}.fadeAnimationShow[_ngcontent-%COMP%]{opacity:1}.fadeAnimationToHide[_ngcontent-%COMP%]{opacity:0}.slideUpAnimation[_ngcontent-%COMP%]{--%NS%slideup-translate-x: none;position:fixed;bottom:0;transition:transform .4s ease-out,opacity .4s ease-out;will-change:transform}.slideUpAnimationHide[_ngcontent-%COMP%]{transform:translate(var(--%NS%slideup-translate-x)) translateY(100vh);opacity:0}.slideUpAnimationShow[_ngcontent-%COMP%]{transform:translate(var(--%NS%slideup-translate-x)) translateY(0);opacity:1}.slideUpAnimationToHide[_ngcontent-%COMP%]{transform:translate(var(--%NS%slideup-translate-x)) translateY(100vh);opacity:0}.slideInAnimation[_ngcontent-%COMP%]{transition:transform .4s ease-out,opacity .4s ease-out;will-change:transform}.slideInAnimationHide[_ngcontent-%COMP%]{transform:translate(100%);opacity:0}.slideInAnimationShow[_ngcontent-%COMP%]{transform:translate(0);opacity:1}.slideInAnimationToHide[_ngcontent-%COMP%]{transform:translate(100%);opacity:0}@media(max-width:575.98px){.slideInAnimationHide[_ngcontent-%COMP%]{transform:translateY(100%);opacity:0}.slideInAnimationShow[_ngcontent-%COMP%]{transform:translateY(0);opacity:1}.slideInAnimationToHide[_ngcontent-%COMP%]{transform:translateY(100%);opacity:0}}.modalScaleAnimation[_ngcontent-%COMP%]{transition:transform .3s ease-in-out,opacity .3s ease-in-out;will-change:transform}.modalScaleAnimationHide[_ngcontent-%COMP%]{transform:scale(.9);opacity:0}.modalScaleAnimationShow[_ngcontent-%COMP%]{transform:scale(1);opacity:1}.modalScaleAnimationToHide[_ngcontent-%COMP%]{transform:scale(.9);opacity:0} .disable-animations .foldAnimation, .disable-animations .fadeAnimation, .disable-animations .slideUpAnimation, .disable-animations .slideInAnimation, .disable-animations .modalScaleAnimation{transition-duration:0ms!important}.extratext[_ngcontent-%COMP%]{background-color:#f2f2f2}.extratext[_ngcontent-%COMP%] >*{margin-bottom:0!important;font-size:10px}.extratext[_ngcontent-%COMP%] a{color:var(--%NS%default-text-color)} 33/*# sourceMappingURL=restaurant.component.css.map */`],changeDetection:1})}}return t})();var Yk=(t,i)=>({minNights:t,maxNights:i});function Kk(t,i){if(t&1&&(Li(0,"div",0)(1,"span"),D(2,"*"),zi(),Li(3,"span",1),D(4),y(5,"translocoStripHtml"),zi()()),t&2){let e=u();p(4),So("",W(5,2,"search.restriction-message.text."+e.key(),St(5,Yk,e.minNights(),e.maxNights()))," (",e.formattedDate(),")")}}var op=(()=>{class t{constructor(){this.processed=f(ae),this.datesService=f(Ft),this.store=f(oe),this.date=v.required(),this.minNights=v.required(),this.maxNights=v.required(),this.defaultMinLengthOfStay=1,this.defaultMaxLengthOfStay=this.processed.getInit().globals.maxSearchDays,this.language=Me(this.store.select(ht)),this.formattedDate=A(()=>this.datesService.formatDateRange(this.date(),null,!1,this.language())),this.key=A(()=>{let e=this.minNights(),n=this.maxNights(),o=!!e&&e>this.defaultMinLengthOfStay,r=!!n&&n<this.defaultMaxLengthOfStay;return o&&r?"minmax-nights":o?"min-nights":null})}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=H({type:t,selectors:[["app-restriction-message"]],inputs:{date:[1,"date"],minNights:[1,"minNights"],maxNights:[1,"maxNights"]},decls:1,vars:1,consts:[["data-qa","restriction-message",1,"restriction-message"],["data-qa","restriction-message-text"]],template:function(n,o){n&1&&w(0,Kk,6,8,"div",0),n&2&&x(o.key()?0:-1)}
33,dependencies:[Y],styles:[`.display-large[_ngcontent-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:3.25em;line-height:1.125em;font-weight:700}.display-medium[_ngcontent-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:2.875em;line-height:1.1em;font-weight:700}.display-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:2.5em;line-height:1.125em;font-weight:700}.headline-large[_ngcontent-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:2.25em;line-height:1.14em;font-weight:700}.headline-medium[_ngcontent-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:1.875em;line-height:1.1em;font-weight:700}.headline-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:1.5em;line-height:1.13125em;font-weight:700}.title-large[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:1.5em;line-height:1.1875em;font-weight:600}.title-medium[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:1.25em;line-height:1.1875em;font-weight:600}.title-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:1em;line-height:1em;font-weight:600}.label-large[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:1em;line-height:1.1875em;font-weight:600}.label-medium[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.875em;line-height:1.3em;font-weight:600}.label-small[_ngcontent-%COMP%], [_nghost-%COMP%] .restriction-message[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.75em;line-height:.875em;font-weight:600}.label-extra-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.625em;line-height:1.2em;font-weight:600}.body-large[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:1em;line-height:1.1875em;font-weight:400}
33.body-medium[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.875em;line-height:1.1em;font-weight:400}.body-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.75em;line-height:1.125em;font-weight:400}.body-extra-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.625em;line-height:.75em;font-weight:400}[_nghost-%COMP%] .restriction-message[_ngcontent-%COMP%]{display:flex;align-items:center;background-color:var(--%NS%alternate-background-color);color:var(--%NS%default-text-color);gap:.25em;padding:4px 4px 3px;line-height:1.2em} 34/*# sourceMappingURL=restriction-message.component.css.map */`],changeDetection:1})}}return t})();var cS=t=>({nights:t});function Qk(t,i){if(t&1&&(h(0,"span",4),T(1,"app-icon",8),h(2,"span",9),D(3),y(4,"translocoDate"),_()()),t&2){let e=u();p(3),V(O(4,1,e.fromDate()))}}function Jk(t,i){if(t&1&&(h(0,"span",5),D(1," \xA0 - \xA0 "),T(2,"app-icon",8),h(3,"span",10),D(4),y(5,"translocoDate"),_()()),t&2){let e=u();p(4),V(O(5,1,e.toDate()))}}var dS=(()=>{class t extends _e{constructor(){super(...arguments),this._qaTag=v("search-summary-component"),this.nights=v.required(),this.fromDate=v(),this.toDate=v(),this.showCalendar=Re(),this.Size=Se}static{this.\u0275fac=(()=>{let e;return function(o){return(e||(e=Ne(t)))(o||t)}})()}static{this.\u0275cmp=H({type:t,selectors:[["app-summary"]],inputs:{_qaTag:[1,"_qaTag"],nights:[1,"nights"],fromDate:[1,"fromDate"],toDate:[1,"toDate"]},outputs:{showCalendar:"showCalendar"},features:[re],decls:16,vars:19,consts:[[1,"search-summary","mb-3"],["data-qa","search-summary-title",1,"search-summary__title"],["data-qa","search-summary-nights"],["data-qa","search-summary-date-range",1,"search-summary__date","d-flex","justify-content-between"],["data-qa","search-summary-from"],["data-qa","search-summary-to"],["data-qa","search-summary-edit-dates-button",3,"click"],["name","pencil",3,"size"],["name","calendar"],["data-qa","search-summary-from-date",1,"date"],["data-qa","search-summary-to-date",1,"date"]],template:function(n,o){n&1&&(h(0,"div",0)(1,"div")(2,"div",1),D(3),y(4,"translocoStripHtml"),h(5,"span",2),D(6),y(7,"translocoStripHtml"),y(8,"translocoStripHtml"),y(9,"translocoStripHtml"),_()(),h(10,"div",3)(11,"div"),w(12,Qk,5,3,"span",4),w(13,Jk,6,3,"span",5),_(),h(14,"a",6),k("click",function(){return o.showCalendar.emit(!0)}),T(15,"app-icon",7),_()()()()),n&2&&(p(3),ee(" ",O(4,5,"search.summary.title.prefix")," "),p(3),V(o.nights()>1?W(7,7,"search.popover.nights",Z(15,cS,o.nights())):o.nights()===0?O(8,10,"search.popover.daypackage"):W(9,12,"search.popover.night",Z(17,cS,o.nights()))),p(6),x(o.fromDate()?12:-1),p(),x(o.toDate()&&o.nights()>0?13:-1),p(2),b("size",o.Size.TINY))},dependencies:[Fe,Y,Tc],styles:[`.search-summary[_ngcontent-%COMP%]{position:relative;padding:.5em 1em;background-color:var(--%NS%alternate-background-color);color:var(--%NS%search-summary-text-color)}.search-summary__title[_ngcontent-%COMP%]{font-size:var(--%NS%font-size-lg);line-height:1.5em;color:var(--%NS%search-summary-text-color);margin-bottom:23px}.search-summary__title[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-weight:700}.search-summary__date[_ngcontent-%COMP%] .icon{vertical-align:text-bottom}.search-summary__date[_ngcontent-%COMP%] .date[_ngcontent-%COMP%]{vertical-align:text-bottom;margin-left:.5em}.search-summary__date[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{position:relative;right:-1em;bottom:3px} 35/*# sourceMappingURL=summary.component.css.map */`],changeDetection:1})}}return t})();var Xk=()=>["shadowed"],eT=()=>[],tT=t=>({current:t}),ja=(()=>{class t extends _e{constructor(){super(...arguments),this.utilsService=f(Rt),this.translation=f(Y),this.parties=v([]),this.nights=v(0),this.allowRoomSelection=v(!0),this.language=v(""),this.dropdown=v(!1),this.disabled=v(!1),this.opened=v(void 0),this.editSearchParams=Re(),this.roomString="",this.partyString="",this.isOpen=!1,this.Size=Se,this.ButtonStyle=Oe,this.ButtonShape=At,this.ButtonSize=ct,this.ButtonType=gn}ngOnChanges(e){(e.parties||e.language||e.nights)&&(this.allowRoomSelection()&&this.nights()>0?this.roomString=this.translation.transform("search-summary.room."+(this.parties().length>
351?"plural":"singular"),{count:this.parties().length})+",":this.roomString="",this.partyString=this.utilsService.partyString(e.parties?.currentValue||this.parties()))}editSearchParamsClicked(){this.disabled()||(this.isOpen=!this.isOpen,this.editSearchParams.emit())}static{this.\u0275fac=(()=>{let e;return function(o){return(e||(e=Ne(t)))(o||t)}})()}static{this.\u0275cmp=H({type:t,selectors:[["app-party-view"]],inputs:{parties:[1,"parties"],nights:[1,"nights"],allowRoomSelection:[1,"allowRoomSelection"],language:[1,"language"],dropdown:[1,"dropdown"],disabled:[1,"disabled"],opened:[1,"opened"]},outputs:{editSearchParams:"editSearchParams"},features:[re,go],decls:2,vars:21,consts:[["aria-haspopup","true",1,"d-block","dropdown-toggle",3,"click","type","appearance","additionalClasses","shape","size","disabled","aria-label","label","iconRight"]],template:function(n,o){n&1&&(h(0,"app-button",0),y(1,"translocoStripHtml"),k("click",function(){return o.editSearchParamsClicked()}),_()),n&2&&(ye("open",o.isOpen),b("label",zf("",o.roomString," ",o.partyString))("type",o.ButtonType.BUTTON)("appearance",o.ButtonStyle.SECONDARY)("additionalClasses",o.dropdown()?Pe(17,Xk):Pe(18,eT))("shape",o.ButtonShape.SQUARE)("size",o.ButtonSize.LARGE)("disabled",o.disabled()),he("aria-label",W(1,14,"search.parties.info",Z(19,tT,o.roomString+" "+o.partyString))),b("iconRight",o.opened()??o.isOpen?"chevronUp":"chevronDown"),ue("aria-expanded",o.opened()??o.isOpen?"true":"false"))},dependencies:[De,Y],encapsulation:2,changeDetection:1})}}return t})();var pS=(t,i)=>({title:t,count:i}),uS=(()=>{class t extends _e{constructor(){super(...arguments),this.title=v.required(),this.counter=Mn.required(),this.min=v(0),this.max=v(100),this.isDisabled=v(!1),this.qaButtons=v(""),this.qaCounter=v(""),this.ariaDownKey=v(),this.ariaUpKey=v(),this.updated=Re(),this.disabledDown=A(()=>this.isDisabled()||this.counter()<=this.min()),this.disabledUp=A(()=>this.isDisabled()||this.counter()>=(this.max()??100)),this.ButtonStyle=Oe,this.ButtonSize=ct}updateCounter(e){this.counter.set(this.counter()+(e?1:-1)),this.updated.emit(e)}static{this.\u0275fac=(()=>{let e;return function(o){return(e||(e=Ne(t)))(o||t)}})()}static{this.\u0275cmp=H({type:t,selectors:[["app-counter"]],inputs:{title:[1,"title"],counter:[1,"counter"],min:[1,"min"],max:[1,"max"],isDisabled:[1,"isDisabled"],qaButtons:[1,"qaButtons"],qaCounter:[1,"qaCounter"],ariaDownKey:[1,"ariaDownKey"],ariaUpKey:[1,"ariaUpKey"]},outputs:{counter:"counterChange",updated:"updated"},features:[re],decls:8,vars:26,consts:[["iconLeft","minus",3,"btnClick","appearance","size","disabled","aria-label","data-qa"],[1,"m-2"],["iconLeft","plus",3,"btnClick","appearance","size","disabled","aria-label","data-qa"]],template:function(n,o){if(n&1&&(qe(0),y(1,"lowercase"),h(2,"app-button",0),y(3,"translocoStripHtml"),k("btnClick",function(){return o.updateCounter(!1)}),_(),h(4,"span",1),D(5),_(),h(6,"app-button",2),y(7,"translocoStripHtml"),k("btnClick",function(){return o.updateCounter(!0)}),_()),n&2){let r=O(1,12,o.title()).trim();p(2),b("appearance",o.ButtonStyle.SECONDARY)("size",o.ButtonSize.XSMALL)("disabled",o.disabledDown()),he("aria-label",o.disabledDown()?void 0:W(3,14,o.ariaDownKey(),St(20,pS,r,o.counter()-1))),b("data-qa","decrease-"+(o.qaButtons()||"counter")+"-button"),p(2),ue("data-qa","number-of-"+(o.qaCounter()||"items")+"-label"),p(),ee(" ",o.counter(),` 36`),p(),b("appearance",o.ButtonStyle.SECONDARY)("size",o.ButtonSize.XSMALL)("disabled",o.disabledUp()),he("aria-label",o.disabledUp()?void 0:W(7,17,o.ariaUpKey(),St(23,pS,r,o.counter()+1))),b("data-qa","increase-"+(o.qaButtons()||"counter")+"-button")}},dependencies:[De,Y,Al],styles:[`[_nghost-%COMP%] span[_ngcontent-%COMP%]{display:inline-block;min-width:24px;text-align:center} 37/*# sourceMappingURL=counter.component.css.map */`],changeDetection:1})}}return t})();var il=(function(t){return t[t.Normal=0]="Normal",t[t.ExtraBed=1]="ExtraBed",t[t.Crib=2]="Crib",t[t.ParentsBed=3]="ParentsBed",t})(il||{});var iT=()=>["no-transform"],oT=(t,i)=>({person:t,bedtype:i}),rT=t=>({bedtype:t}),aT=(t,i)=>i.id;function sT(t,i){if(t&1){let e=B();h(0,"button",4),y(1,"translocoStripHtml"),k("click",function(){let o=N(e).$implicit,r=u();return I(r.onSelect(o))}),T(2,"app-icon",5),D(3),_()}if(t&2){let e=i.$index,n=u();ue("aria-label",W(1,5,"bedtype.select.aria-label",Z(8,rT,n.optionTitles()[e])))("aria-selected",n.selectedIndex()===e),p(2),ye("invisible",n.selectedIndex()!==e),p(),ee(" ",n.optionTitles()[e]," ")}}var mS=(()=>
37{class t extends _e{constructor(){super(...arguments),this.label=v.required(),this.beddingOptions=v.required(),this.selected=v.required(),this.language=v(""),this.update=Re(),this.isOpen=!1,this.translatePipe=f(rt),this.translocoPipe=f(Y),this.ButtonStyle=Oe,this.ButtonSize=ct,this.ButtonShape=At,this.optionTitles=A(()=>{this.language();let e=Object.keys(il).filter(n=>isNaN(Number(n)));return this.beddingOptions().map(n=>n.hasOwnTitle&&n.title?this.translatePipe.transform(n.title):this.translocoPipe.transform(`bedtype.option.${e[n.option]}`))}),this.selectedIndex=A(()=>{let e=this.beddingOptions().findIndex(n=>n.id===this.selected());return e>-1?e:0})}onSelect(e){this.update.emit(e)}static{this.\u0275fac=(()=>{let e;return function(o){return(e||(e=Ne(t)))(o||t)}})()}static{this.\u0275cmp=H({type:t,selectors:[["app-bedtype-selection"]],inputs:{label:[1,"label"],beddingOptions:[1,"beddingOptions"],selected:[1,"selected"],language:[1,"language"]},outputs:{update:"update"},features:[re],decls:6,vars:15,consts:[["ngbDropdown","",3,"openChange"],["ngbDropdownToggle","","aria-haspopup","listbox","data-qa","bedtype-select",3,"label","appearance","size","shape","additionalClasses","iconRight","aria-label"],["ngbDropdownMenu","","role","listbox","data-qa","bedtype-options",1,"w-100"],["ngbDropdownItem","","role","option","data-qa","bed-type-option"],["ngbDropdownItem","","role","option","data-qa","bed-type-option",3,"click"],["name","checkFilled"]],template:function(n,o){n&1&&(h(0,"div",0),k("openChange",function(){return o.isOpen=!o.isOpen}),T(1,"app-button",1),y(2,"translocoStripHtml"),h(3,"div",2),we(4,sT,4,10,"button",3,aT),_()()),n&2&&(p(),b("label",o.optionTitles()[o.selectedIndex()])("appearance",o.ButtonStyle.SECONDARY)("size",o.ButtonSize.LARGE)("shape",o.ButtonShape.NARROW)("additionalClasses",Pe(11,iT))("iconRight",o.isOpen?"chevronUp":"chevronDown"),he("aria-label",W(2,8,"bedtype.selected.aria-label",St(12,oT,o.label(),o.optionTitles()[o.selectedIndex()]))),ue("aria-expanded",o.isOpen),p(3),xe(o.beddingOptions()))},dependencies:[ni,$t,rn,on,nn,Po,Fe,De,Y],styles:[`app-button[_ngcontent-%COMP%] .spacer{display:none}app-button[_ngcontent-%COMP%] .btn__label-container{width:100%}app-button[_ngcontent-%COMP%] .btn__label-container .btn__label{display:inline-block;width:100%;text-align:left} 38/*# sourceMappingURL=bedtype-selection.component.css.map */`],changeDetection:1})}}return t})();var lT=(t,i)=>({agecategory:t,count:i});function cT(t,i){if(t&1&&(h(0,"div",3),D(1),_()),t&2){u();let e=fe(6);p(),V(e)}}function dT(t,i){if(t&1){let e=B();h(0,"div")(1,"label",7),D(2),y(3,"translate"),y(4,"lowercase"),y(5,"translocoStripHtml"),_(),h(6,"app-bedtype-selection",8),y(7,"translate"),k("update",function(o){let r=N(e).$implicit,a=u(2);return I(a.updateBeddingOption(o,r))}),_()()}if(t&2){let e=i.$implicit,n=i.$index,o=u(2);p(2),V(W(5,9,"age-category.person.bed-type.label",St(14,lT,O(4,7,O(3,5,o.ageCategory().title)),n+1))),p(4),b("label",O(7,12,o.ageCategory().title))("beddingOptions",o.ageCategory().beddingOptions)("selected",e.beddingOptionId??"")("language",o.language())}}function pT(t,i){if(t&1&&(h(0,"div",6),we(1,dT,8,17,"div",null,Rf),_()),t&2){let e=u();p(),xe(e.personsOfType())}}var rp=(()=>{class t extends _e{constructor(){super(...arguments),this.ageCategory=v.required(),this.ageCategoryLabel=v(""),this.party=Mn.required(),this.searchType=v.required(),this.isLoading=v(!1),this.language=v(""),this.BasketPersonType=dt,this.BookingSearchType=J,this.processed=f(ae),this.utilsService=f(Rt),this.isAdult=A(()=>this.ageCategory().personType===dt.Adult),this.personsOfType=A(()=>this.party().persons.filter(e=>e.typeSubIdentifier===this.ageCategory().typeSubIdentifier)),this.personTypeMax=A(()=>{let e=this.processed.getInit().globals,n=this.searchType()===J.Day,o=n?e.maxAdultsDay:e.maxAdults,r=n?e.maxChildrenDay:e.maxChildren,a=this.utilsService.partyCount([this.party()]);return this.isAdult()?o:r+this.personsOfType().length-a.totalChildren})}updatePersons(e){let n=kt(this.party());if(e){let o=new jo;o.type=this.ageCategory().personType,o.typeSubIdentifier=this.ageCategory().typeSubIdentifier;let r=this.ageCategory().beddingOptions.find(a=>a.option===il.ParentsBed);o.beddingOptionId=this.ageCategory().canChooseBeddingOption?r?.id||this.ageCategory().beddingOptions[0].id:"",n.persons.push(o)}else{let o=-1;for(let r=n.persons.length-1;r>=0;r--)if(n.persons[r].typeSubIdentifier===this.ageCategory().typeSubIdentifier){o=r;break}o!==-1&&n.persons.splice(o,1)}this.party.set(n)}
38updateBeddingOption(e,n){n.beddingOptionId=e.id,this.party.set(kt(this.party()))}static{this.\u0275fac=(()=>{let e;return function(o){return(e||(e=Ne(t)))(o||t)}})()}static{this.\u0275cmp=H({type:t,selectors:[["app-age-category-control"]],inputs:{ageCategory:[1,"ageCategory"],ageCategoryLabel:[1,"ageCategoryLabel"],party:[1,"party"],searchType:[1,"searchType"],isLoading:[1,"isLoading"],language:[1,"language"]},outputs:{party:"partyChange"},features:[re],decls:14,vars:18,consts:[[1,"row","flex-nowrap"],[1,"age-group-name","col","d-flex","align-items-center"],[1,"category-title"],[1,"age","body-small"],[1,"col","d-flex","justify-content-end","align-items-center"],["ariaDownKey","search.parties.person.reduce","ariaUpKey","search.parties.person.increase",3,"updated","title","counter","min","max","isDisabled","qaCounter"],[1,"bed-types"],["for","bedType",1,"label-small","mb-2"],[3,"update","label","beddingOptions","selected","language"]],template:function(n,o){if(n&1&&(h(0,"div",0)(1,"div",1)(2,"div")(3,"div",2),D(4),y(5,"translate"),_(),qe(6),y(7,"translate"),w(8,cT,2,1,"div",3),_()(),h(9,"div",4)(10,"app-counter",5),y(11,"translate"),y(12,"translate"),k("updated",function(a){return o.updatePersons(a)}),_()()(),w(13,pT,3,0,"div",6)),n&2){p(4),ee(" ",O(5,9,o.personsOfType().length===1?o.ageCategory().title:o.ageCategory().titlePlural)," "),p(2);let r=Je(O(7,11,o.ageCategory().ageDescription));p(2),x(r?8:-1),p(2),b("title",O(11,14,o.ageCategory().titlePlural)+" "+O(12,16,o.ageCategory().ageDescription))("counter",o.personsOfType().length)("min",o.isAdult()?1:0)("max",o.personTypeMax())("isDisabled",o.isLoading())("qaCounter",o.ageCategory().personType===o.BasketPersonType.Adult?"adults":"children"),p(3),x(o.searchType()!==o.BookingSearchType.Day&&o.ageCategory().canChooseBeddingOption&&o.personsOfType().length>0?13:-1)}},dependencies:[uS,mS,Al,rt,Y],styles:[`.display-large[_ngcontent-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:3.25em;line-height:1.125em;font-weight:700}
38.display-medium[_ngcontent-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:2.875em;line-height:1.1em;font-weight:700}.display-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:2.5em;line-height:1.125em;font-weight:700}.headline-large[_ngcontent-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:2.25em;line-height:1.14em;font-weight:700}.headline-medium[_ngcontent-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:1.875em;line-height:1.1em;font-weight:700}.headline-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:1.5em;line-height:1.13125em;font-weight:700}.title-large[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:1.5em;line-height:1.1875em;font-weight:600}.title-medium[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:1.25em;line-height:1.1875em;font-weight:600}.title-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:1em;line-height:1em;font-weight:600}.label-large[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:1em;line-height:1.1875em;font-weight:600}.label-medium[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.875em;line-height:1.3em;font-weight:600}.label-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.75em;line-height:.875em;font-weight:600}.label-extra-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.625em;line-height:1.2em;font-weight:600}.body-large[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:1em;line-height:1.1875em;font-weight:400}
38.body-medium[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.875em;line-height:1.1em;font-weight:400}.body-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.75em;line-height:1.125em;font-weight:400}.body-extra-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.625em;line-height:.75em;font-weight:400}.age-group-name[_ngcontent-%COMP%]{width:calc(100% - 120px)}.age-group-name[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{display:inline-block;overflow:hidden;text-overflow:ellipsis}.age-group-name[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] .category-title[_ngcontent-%COMP%]{margin-right:.25em}.age-group-name[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] .age[_ngcontent-%COMP%]{margin-top:.25em;opacity:.7}.bed-types[_ngcontent-%COMP%]{margin-top:1em}.bed-types[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{margin-bottom:1em}.bed-types[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:last-child{margin-bottom:0}.bed-types[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{display:block;margin-bottom:.5em} 39/*# sourceMappingURL=age-category-control.component.css.map */`],changeDetection:1})}}return t})();var gh=t=>({number:t}),uT=()=>["ms-2"],mT=t=>({language:t}),hT=t=>({disabled:t}),fT=t=>({rooms:t}),gT=t=>({count:t});function _T(t,i){if(t&1&&T(0,"app-icon",10),t&2){let e=u(4);b("size",e.IconSize.TINY)}}function CT(t,i){if(t&1&&(h(0,"span",12),D(1),y(2,"translocoStripHtml"),_(),h(3,"span"),D(4),y(5,"customCurrency"),_()),t&2){u();let e=fe(0);p(),ee("",O(2,2,"general.price.from"),"\xA0"),p(3),V(O(5,4,e))}}function yT(t,i){t&1&&(h(0,"span",11),D(1),y(2,"translocoStripHtml"),_()),t&2&&(p(),V(O(2,1,"search.room-price.unavailable")))}function bT(t,i){if(t&1&&(qe(0),w(1,CT,6,6)(2,yT,3,3,"span",11)),t&2){let e=u(3).$index,n=Je(u().pricePerPartyForSelectedDay()[e]);p(),x(n?1:2)}}function ST(t,i){if(t&1&&w(0,_T,1,1,"app-icon",10)(1,bT,3,2),t&2){let e=u(3);x(e.isLoadingPriceCalendar()?0:1)}}function vT(t,i){if(t&1){let e=B();h(0,"app-button",13),y(1,"translocoStripHtml"),k("btnClick",function(){N(e);let o=u(2).$index,r=u();return I(r.removeRoom(o))}),_()}if(t&2){let e=u(2).$index,n=u();b("appearance",n.ButtonStyle.LINK)("additionalClasses",Pe(7,uT))("disabled",n.isLoading()),he("aria-label",W(1,4,"search.parties.remove-room.info",Z(8,gh,e+1)))}}function wT(t,i){if(t&1&&(h(0,"p",5),D(1),y(2,"translocoStripHtml"),h(3,"span",8),w(4,ST,2,1),w(5,vT,2,10,"app-button",9),_()()),t&2){let e=u().$index,n=u();ue("data-qa","room-label-"+(e+1)),p(),ee(" ",W(2,4,"search.room-name",Z(7,gh,e+1)),"\xA0 "),p(3),x(n.priceCalendarEnabled()?4:-1),p(),x(n.parties().length>1?5:-1)}}function xT(t,i){if(t&1){let e=B();h(0,"app-age-category-control",15),k("partyChange",function(o){N(e);let r=u(2).$index,a=u();return I(a.updatePartyPersons(o,r))}),_()}if(t&2){let e=u().$implicit,n=u().$index,o=u();b("hidden",!o.showChildren()&&e.personType===o.BasketPersonType.Child)("ageCategory",e)("ageCategoryLabel","age")("party",o.parties()[n])("searchType",o.searchType())("isLoading",o.isLoading())("language",o.language())}}function PT(t,i){if(t&1&&w(0,xT,1,7,"app-age-category-control",14),t&2){let e=i.$implicit,n=u(2);x(e.personType!==n.BasketPersonType.Child||n.showChildren()||n.allowChildrenToBeSelected()?0:-1)}}function MT(t,i){if(t&1){let e=B();h(0,"div",7)(1,"app-button",16),y(2,"translocoStripHtml"),k("btnClick",function(o){N(e);let r=u(2);return I(r.onClickShowChildren(o))}),_()()}if(t&2){let e=u(2);p(),b("label",Dt(W(2,3,"search.add-children",Z(6,mT,e.language()))))("appearance",e.ButtonStyle.LINK)}}function OT(t,i){if(t&1&&(h(0,"div")(1,"div",3)(2,"div",4),w(3,wT,6,9,"p",5),h(4,"div",6),we(5,PT,1,1,null,null,Tf().trackAgeCategory,!0),w(7,MT,3,8,"div",7),_()()()()),t&2){let e=u();p(3),x(e.nights()>0?3:-1),p(2),xe(e.ageCategories()),p(2),x(!e.showChildren()&&e.allowChildrenToBeSelected()?7:-1)}}function DT(t,i){if(t&1){let e=B();h(0,"div",24),y(1,"translocoStripHtml"),k("keyup.enter",function(){let o=N(e).$implicit,r=u(3);return I(r.setMultipleRooms(o))})("click",function(){let o=N(e).$implicit,r=u(3);return I(r.setMultipleRooms(o))}),h(2,"span"),D(3),y(4,"translocoStripHtml"),_()()}if(t&2){let e=i.$implicit,n=u(3);ye("active",e===n.parties().length),ue("aria-label",W(1,4,"search.rooms-dropdown.days.info",Z(10,fT,e))),p(3),V(W(4,7,"search.rooms-button.label."+(e>
391?"plural":"singular"),Z(12,gT,e)))}}function NT(t,i){if(t&1){let e=B();h(0,"div",20),k("openChange",function(){N(e);let o=u(2);return I(o.isMultiRoomOpen=!o.isMultiRoomOpen)}),T(1,"app-button",21),y(2,"translocoStripHtml"),y(3,"translocoStripHtml"),h(4,"div",22),we(5,DT,5,14,"div",23,Xe),_()()}if(t&2){let e=u(2);p(),b("disabled",e.isLoading())("label",W(2,5,"search.rooms-dropdown.label",Z(10,gh,e.parties.length>3?e.parties.length.toString():"4+")))("iconRight",e.isMultiRoomOpen?"chevronUp":"chevronDown")("appearance",e.ButtonStyle.SECONDARY),he("aria-label",O(3,8,"search.rooms-dropdown.info")),p(4),xe(e.maxRoomsToAdd())}}function IT(t,i){if(t&1){let e=B();h(0,"div",2)(1,"div",17)(2,"app-button",18),y(3,"translocoStripHtml"),k("btnClick",function(){N(e);let o=u();return I(o.addRoom())}),_(),w(4,NT,7,12,"div",19),_()()}if(t&2){let e=u();p(),ye("add-many-rooms",e.showAddMultipleRooms()),p(),b("label",Dt(O(3,7,"search.parties.add-room.label")))("appearance",e.ButtonStyle.LINK)("ngClass",Z(9,hT,e.isLoading())),p(2),x(e.showAddMultipleRooms()?4:-1)}}var tr=(()=>{class t extends _e{constructor(){super(),this.processed=f(ae),this.utilsService=f(Rt),this.searchService=f(fi),this.changeDetector=f(Gr),this.parties=Mn([]),this.searchType=v.required(),this._searchType=ne(J.Overnight),this.allowRoomSelection=v(!0),this.nights=v(0),this.ageCategories=v([]),this.priceCalendarEnabled=v(!1),this.pricePerPartyForSelectedDay=v([]),this.language=v(""),this.isLoading=v(!1),this.isLoadingPriceCalendar=v(!1),this.maxRooms=this.processed.getInit().globals.maxRooms,this.showAddMultipleRooms=A(()=>this.maxRooms>4),this.isMultiRoomOpen=!1,this._showChildren=ne(!1),this.showChildren=A(()=>this._showChildren()||this.parties().some(e=>e.persons.some(n=>n.type===dt.Child))),this.allowChildrenToBeSelected=A(()=>(this.processed.getWidget()?.childIsActive??!0)&&(this.searchType()===J.Overnight?this.processed.getInit().globals.maxChildren>0:this.processed.getInit().globals.maxChildrenDay>0)&&this.ageCategories().some(e=>e.personType===dt.Child)),this.maxRoomsToAdd=A(()=>this.utilsService.generateRange(4,this.maxRooms)),this.BookingSearchType=J,this.BasketPersonType=dt,this.IconSize=Se,this.ButtonStyle=Oe,et(()=>{this._searchType()!==this.searchType()&&(this._searchType.set(this.searchType()),this._showChildren.set(!1))})}setMultipleRooms(e){for(;this.parties().length<e&&this.parties().length<this.maxRooms;)this.addRoom();for(;this.parties().length>e&&this.parties().length>1;)this.removeRoom(this.parties().length-1)}addRoom(){if(this.isLoading()||this.parties().length>=this.maxRooms)return;let e=kt(this.parties());e.push(this.searchService.createParty(this.searchType())),this.parties.set(e)}removeRoom(e){this.isLoading()||this.parties().length<2||this.parties.set(this.parties().slice(0,e).concat(this.parties().slice(e+1)))}updatePartyPersons(e,n){let o=kt(this.parties());o[n]=e,this.parties.set(o)}onClickShowChildren(e){e.preventDefault(),this._showChildren.set(!0),this.changeDetector.markForCheck()}trackParty(e,n){return e}trackAgeCategory(e,n){return n.typeSubIdentifier}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=H({type:t,selectors:[["app-party-edit"]],inputs:{parties:[1,"parties"],searchType:[1,"searchType"],allowRoomSelection:[1,"allowRoomSelection"],nights:[1,"nights"],ageCategories:[1,"ageCategories"],priceCalendarEnabled:[1,"priceCalendarEnabled"],pricePerPartyForSelectedDay:[1,"pricePerPartyForSelectedDay"],language:[1,"language"],isLoading:[1,"isLoading"],isLoadingPriceCalendar:[1,"isLoadingPriceCalendar"]},outputs:{parties:"partiesChange"},features:[re],decls:5,vars:1,consts:[[1,"party-selection","row","d-block"],[1,"col-sm-12","mt-2"],[1,"room-selection"],[1,"dropdown","bd-bottom-primary","bd-top-primary"],[1,"dropdown-item"],[1,"dropdown-title","d-flex","justify-content-between","align-items-center"],[1,"persons-container"],[1,"add-children-container"],[1,"card-title__price"],["icon","trashcan",1,"remove-button",3,"appearance","additionalClasses","disabled","aria-label"],["name","loadingDots","alt","spinner",3,"size"],[1,"unavailable"],[1,"from","font-sm","font-normal"],["icon","trashcan",1,"remove-button",3,"btnClick","appearance","additionalClasses","disabled","aria-label"],[3,"hidden","ageCategory","ageCategoryLabel","party","searchType","isLoading","language"],[3,"partyChange","hidden","ageCategory","ageCategoryLabel","party","searchType","isLoading","language"],["iconLeft","plus","data-qa","add-children-link",1,"add-children","font-sm","font-bold",3,"btnClick","appearance","label"],[1,"col","d-flex","flex-wrap","room-wrap","gap-1","align-items-center"],["iconLeft","plus","data-qa","add-rooms-link",1,"my-2",3,"btnClick","appearance","ngClass","label"],["ngbDropdown",""],["ngbDropdown","",3,"openChange"],["ngbDropdownToggle","","aria-haspopup","listbox",3,"disabled","label","iconRight","appearance","aria-label"],["ngbDropdownMenu","","role","listbox",1,"nights-dropdown"],["role","option","ngbDropdownItem","",1,"dropdown-item",3,"active"],["role","option","ngbDropdownItem","",1,"dropdown-item",3,"keyup.enter","click"]],template:function(n,o){n&1&&(h(0,"div",0)(1,"div",1),we(2,OT,8,2,"div",null,o.trackParty,!0),_(),w(4,IT,5,11,"div",2),_()),n&2&&(p(2),xe(o.parties()),p(2),x(o.nights()>0&&o.allowRoomSelection()?4:-1))},dependencies:[bn,$t,rn,on,nn,Fe,De,rp,Y,Dn],styles:[`.display-large[_ng
39content-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:3.25em;line-height:1.125em;font-weight:700}.display-medium[_ngcontent-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:2.875em;line-height:1.1em;font-weight:700}.display-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:2.5em;line-height:1.125em;font-weight:700}.headline-large[_ngcontent-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:2.25em;line-height:1.14em;font-weight:700}.headline-medium[_ngcontent-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:1.875em;line-height:1.1em;font-weight:700}.headline-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:1.5em;line-height:1.13125em;font-weight:700}.title-large[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:1.5em;line-height:1.1875em;font-weight:600}.title-medium[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:1.25em;line-height:1.1875em;font-weight:600}.title-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:1em;line-height:1em;font-weight:600}.label-large[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:1em;line-height:1.1875em;font-weight:600}.label-medium[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.875em;line-height:1.3em;font-weight:600}.label-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.75em;line-height:.875em;font-weight:600}.label-extra-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.625em;line-height:1.2em;font-weight:600}.body-large[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:1em;line-height:1.1875em;font-weight:400}
39.body-medium[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.875em;line-height:1.1em;font-weight:400}.body-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.75em;line-height:1.125em;font-weight:400}.body-extra-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.625em;line-height:.75em;font-weight:400}[_nghost-%COMP%]{display:block;background-color:var(--%NS%alternate-background-color)!important;border-radius:0;max-height:364px;overflow:hidden;overflow-y:auto}[_nghost-%COMP%] .party-selection[_ngcontent-%COMP%]{overflow:hidden;overflow-y:auto}.dropdown[_ngcontent-%COMP%]{border:none;border-radius:0;position:relative}.dropdown[_ngcontent-%COMP%] .dropdown-item[_ngcontent-%COMP%]{background-color:var(--%NS%alternate-background-color)!important;padding:0 10px 10px;border-bottom:2px solid var(--%NS%color-primary);color:var(--%NS%default-text-color);cursor:pointer}.dropdown[_ngcontent-%COMP%] .dropdown-item[_ngcontent-%COMP%]:hover{color:var(--%NS%default-text-color)}.dropdown[_ngcontent-%COMP%] .dropdown-item__price[_ngcontent-%COMP%]{float:right}.dropdown[_ngcontent-%COMP%] .dropdown-item[_ngcontent-%COMP%] .card-body[_ngcontent-%COMP%]{background-color:var(--%NS%alternate-background-color);color:var(--%NS%search-summary-text-color)}.dropdown[_ngcontent-%COMP%] .dropdown-item[_ngcontent-%COMP%] .dropdown-title[_ngcontent-%COMP%]{font-size:var(--%NS%font-size-normal);font-weight:700;color:var(--%NS%search-summary-text-color);margin:.75em 0}.dropdown[_ngcontent-%COMP%] .dropdown-item[_ngcontent-%COMP%] .dropdown-title[_ngcontent-%COMP%] .from[_ngcontent-%COMP%], .dropdown[_ngcontent-%COMP%] .dropdown-item[_ngcontent-%COMP%] .dropdown-title[_ngcontent-%COMP%] .unavailable[_ngcontent-%COMP%]{font-size:.9em;font-weight:400}.dropdown[_ngcontent-%COMP%] .dropdown-item[_ngcontent-%COMP%] .dropdown-title__price[_ngcontent-%COMP%]{float:right}.dropdown[_ngcontent-%COMP%] .dropdown-item[_ngcontent-%COMP%] .dropdown-title[_ngcontent-%COMP%] .remove-button[_ngcontent-%COMP%] .btn{padding-right:0}.dropdown[_ngcontent-%COMP%] .dropdown-item[_ngcontent-%COMP%] .persons-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}.dropdown[_ngcontent-%COMP%] .dropdown-item[_ngcontent-%COMP%] .persons-container[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{border-bottom:1px solid var(--%NS%border-color);padding:0 .75em .75em;margin:0 -.75em .75em}.dropdown[_ngcontent-%COMP%] .dropdown-item[_ngcontent-%COMP%] .persons-container[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:last-child{border-bottom:none;padding:0;margin:0}.dropdown[_ngcontent-%COMP%] .dropdown-item[_ngcontent-%COMP%] .persons-container[_ngcontent-%COMP%] .add-children-container[_ngcontent-%COMP%]{color:var(--%NS%search-summary-text-color);font-size:1.14em}.dropdown[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:var(--%NS%text-link-color);text-decoration:none;text-transform:uppercase}.dropdown[_ngcontent-%COMP%] a[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{color:var(--%NS%search-summary-text-color)}.room-wrap[_ngcontent-%COMP%]{justify-content:center}.room-wrap.add-many-rooms[_ngcontent-%COMP%]{justify-content:space-between;margin-left:10px;margin-right:12px}.room-wrap.add-many-rooms[_ngcontent-%COMP%] [ngbDropdown][_ngcontent-%COMP%]{margin:.5em 0}.room-wrap.add-many-rooms[_ngcontent-%COMP%] [ngbDropdown][_ngcontent-%COMP%] .nights-dropdown[_ngcontent-%COMP%]{min-width:10em}@media(max-width:450px){.room-wrap[_ngcontent-%COMP%]{justify-content:space-between}} 40/*# sourceMappingURL=party.component.css.map */`],changeDetection:1})}}return t})();var _h=(()=>{class t{constructor(){this.el=f(Ut),this.ngControl=f(Zr,{optional:!0}),this.appTrimSpace=v()}onBlur(){let e=this.el.nativeElement.value;if(typeof e=="string"){let n=this.appTrimSpace()!=="all"?e.trim():e.replace(/\s+/g,"");n!==e&&(this.ngControl?.control?this.ngControl.control.setValue(n):this.el.nativeElement.value=n)}}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275dir=tn({type:t,selectors:[["","appTrimSpace",""]],hostBindings:function(n,o){n&1&&k("blur",function(){return o.onBlur()})}
40,inputs:{appTrimSpace:[1,"appTrimSpace"]}})}}return t})();var kT=["promocodeInput"],TT=()=>["shadowed"],RT=()=>[];function ET(t,i){if(t&1){let e=B();h(0,"app-button",3),y(1,"translocoStripHtml"),y(2,"translocoStripHtml"),k("btnClick",function(){N(e);let o=u();return I(o.openInput())}),_()}if(t&2){let e=u();b("appearance",e.showAsButton()?e.ButtonStyle.SECONDARY:e.ButtonStyle.LINK)("label",O(1,5,"search.promo-code.label"))("shape",e.ButtonShape.NARROW),he("aria-label",O(2,7,"search.promo-code.add")),b("additionalClasses",e.showAsButton()?Pe(9,TT):Pe(10,RT))}}function AT(t,i){if(t&1){let e=B();h(0,"app-icon",6),y(1,"translocoStripHtml"),k("click",function(){N(e);let o=u(2);return I(o.clearPromocode())})("keyup.enter",function(){N(e);let o=u(2);return I(o.clearPromocode())}),_()}if(t&2){let e=u(2);b("size",e.IconSize.TINY),ue("aria-label",O(1,2,"search.promo-code.clear"))}}function LT(t,i){if(t&1){let e=B();h(0,"input",4,0),y(2,"translocoStripHtml"),y(3,"translocoStripHtml"),y(4,"translocoStripHtml"),k("change",function(o){N(e);let r=u();return I(r.change(o))}),_(),un(),w(5,AT,2,4,"app-icon",5)}if(t&2){let e=u();ye("hide",e.hidePromoCodeField),b("placeholder",Dt(O(2,9,"search.promo-code.label")))("formControl",e.promocodeControl)("appDisableControl",e.disabled()||e.hidePromoCodeField)("title",e.hidePromoCodeField?O(3,11,"promocode.hidden"):""),ue("aria-label",O(4,13,"search.promo-code.add")),mn(),p(5),x(e.promocodeControl.value&&!e.hidePromoCodeField?5:-1)}}var nr=(()=>{class t{constructor(){this.promocode="",this.language=v(""),this.showAsButton=v(!1),this.disabled=v(!1),this.showInput=!1,this.promocodeChange=Re(),this.promocodeInput=We("promocodeInput"),this.prosessed=f(ae),this.promocodeControl=new zn(""),this.hidePromoCodeField=!1,this.ButtonStyle=Oe,this.ButtonShape=At,this.IconSize=Se}ngOnChanges(e){if(e.promocode){let n=e.promocode.currentValue,o=this.prosessed.getWidget();o?.prefilledPromocode&&e.promocode.firstChange&&(n=o.prefilledPromocode,this.hidePromoCodeField=o.hidePromoCodeField),this.promocodeControl.setValue(this.hidePromoCodeField?"#####":n),n&&!this.hidePromoCodeField&&(this.showInput=!0)}}openInput(){this.showInput=!0,setTimeout(()=>this.promocodeInput()?.nativeElement.focus(),50)}change(e){let n=e.target.value,o=this.prosessed.getWidget()?.prefilledPromocode;!this.hidePromoCodeField&&(!o||o!==n)&&this.promocodeChange.emit(n)}clearPromocode(){this.hidePromoCodeField||(this.promocodeControl.setValue(""),this.promocodeChange.emit(""))}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=H({type:t,selectors:[["app-promocode"]],viewQuery:function(n,o){n&1&&Ot(o.promocodeInput,kT,5),n&2&&xt()},inputs:{promocode:"promocode",language:[1,"language"],showAsButton:[1,"showAsButton"],disabled:[1,"disabled"],showInput:"showInput"},outputs:{promocodeChange:"promocodeChange"},features:[go],decls:3,vars:1,consts:[["promocodeInput",""],[1,"promocode-container","position-relative"],["data-qa","promo-code-link",3,"appearance","label","shape","aria-label","additionalClasses"],["data-qa","promo-code-link",3,"btnClick","appearance","label","shape","aria-label","additionalClasses"],["autocomplete","one-time-code","appTrimSpace","all","data-qa","promo-code-input",1,"form__input","form-control","d-inline-block",3,"change","formControl","placeholder","appDisableControl","title"],["name","close","tabindex","0","role","button","data-qa","promo-code-clear",3,"size"],["name","close","tabindex","0","role","button","data-qa","promo-code-clear",3,"click","keyup.enter","size"]],template:function(n,o){n&1&&(h(0,"div",1),w(1,ET,3,11,"app-button",2)(2,LT,6,15),_()),n&2&&(p(),x(o.showInput?2:1))},dependencies:[Fi,Bi,ei,ea,De,Fe,_h,Fs,Y],styles:[`.hide[_ngcontent-%COMP%]{-webkit-text-security:disc}app-icon[_ngcontent-%COMP%]{position:absolute;top:1rem;right:1rem} 41/*# sourceMappingURL=promocode.component.css.map */`],changeDetection:1})}}return t})();function zT(t,i){if(t&1){let e=B();h(0,"app-search-restaurant",9),fn("chosenRestaurantChange",function(o){N(e);let r=u(3);return hn(r.chosenRestaurant,o)||(r.chosenRestaurant=o),I(o)}),k("chosenRestaurantChange",function(){N(e);let o=u(3);return I(o.handleChangeRestaurant())}),fn("chosenMealTypeChange",function(o){N(e);let r=u(3);return hn(r.chosenMealType,o)||(r.chosenMealType=o),I(o)}),k("chosenMealTypeChange",function(){N(e);let o=u(3);return I(o.handleChangeMealtype())}),fn("partiesChange",function(o){N(e);let r=u(3);return hn(r.parties,o)||(r.parties=o),I(o)}),k("partiesChange",function(){N(e);let o=u(3);return I(o.handleChangeParties())}),_()}if(t&2){let e=u(3),n=fe(0);Pn("chosenRestaurant",e.chosenRestaurant)("chosenMealType",e.chosenMealType)("parties",e.parties),b("language",e.language)("isLoading",n)}}function BT(t,i){if(t&1&&T(0,"app-restriction-message",7),t&2){let e=u(3);b("date",e.fromDate())("minNights",e.priceResult().priceForDates[e.fromDate()].minLengthOfStay||e.priceResult().minLengthOfStay||1)("maxNights",e.priceResult().priceForDates[e.fromDate()].maxLengthOfStay||e.priceResult().maxLengthOfStay||10)}}function FT(t,i){if(t&1&&(T(0,"app-note-info",10),y(1,"translate"),y(2,"translate")),t&2){let e=u().$implicit;b("info",O(1,2,e.message))("readMoreLink",O(2,4,e.url))}}function UT(t,i){if(t&1&&w(0,FT,3,6,"app-note-info",10),t&2){let e=i.$implicit,n=u(3);x(n.chosenSearchType!==null&&e.bookingType.includes(n.chosenSearchType)?0:-1)}}function HT(t,i){t&1&&(T(0,"app-note-info",8),y(1,"translocoStripHtml")),t&2&&b("info",O(1,1,"search.date.bedding-not-available"))}function VT(t,i){t&1&&(T(0,"app-note-info",8),y(1,"translocoStripHtml")),t&2&&b("info",O(1,1,"search.date.no-availability"))}function qT(t,i){if(t&1){let e=B();h(0,"div"),w(1,zT,1,5,"app-search-restaurant",5),h(2,"app-calendar",6),k("c
41alendarChange",function(o){N(e);let r=u(2);return I(r.handleCalendarChange(o))})("calendarNavigate",function(o){N(e);let r=u(2);return I(r.fetchPrices(o))})("crossSellTriggered",function(o){N(e);let r=u(2);return I(r.onCrossSellTriggered(o))}),_(),w(3,BT,1,3,"app-restriction-message",7),we(4,UT,1,1,null,null,Xe),w(6,HT,2,3,"app-note-info",8)(7,VT,2,3,"app-note-info",8),_()}if(t&2){let e=u(2),n=fe(0);p(),x(e.chosenSearchType===e.BookingSearchType.Restaurant?1:-1),p(),b("fromDate",e.fromDate())("nights",e.nights())("priceCalendarEnabled",e.priceCalendarEnabled)("minNights",e.priceResult()?.minLengthOfStay||0)("maxNights",e.priceResult()?.maxLengthOfStay||10)("searchType",e.chosenSearchType)("enforcedSearchType",e.enforcedSearchType)("priceForDates",e.priceResult()?.priceForDates||null)("currency",e.currency())("fetchingDataLoader",e.isLoadingPriceCalendar())("language",e.language)("displayDayByDayPrices",e.displayDayByDayPrices())("displayOneNightPriceNonSelected",e.priceResult()?.displayOneNightPriceNonSelected??!1)("crossSellNights",e.priceResult()?.forNights||null)("disabled",n)("isSearching",e.isSearching()||!1),p(),x(e.chosenSearchType===e.BookingSearchType.Overnight&&e.fromDate()&&e.priceResult()?.priceForDates?.[e.fromDate()]?3:-1),p(),xe(e.scheduledInfo()),p(2),x(e.isBeddingInvalid()?6:!n&&!e.isLoadingPriceCalendar()&&e.fromDate()&&e.priceResult()?.priceForDates?.[e.fromDate()]&&!e.priceResult().priceForDates[e.fromDate()].isAvailable?7:-1)}}function jT(t,i){if(t&1){let e=B();h(0,"app-summary",11),k("showCalendar",function(){N(e);let o=u(2);return I(o.showCalendar=!0)}),_()}if(t&2){let e=u(2);b("nights",e.nights())("fromDate",e.fromDate())("toDate",e.toDate())}}function $T(t,i){if(t&1){let e=B();h(0,"div",17),Co("foldAnimationToHide"),h(1,"app-party-edit",18),fn("partiesChange",function(o){N(e);let r=u(4);return hn(r.parties,o)||(r.parties=o),I(o)}),k("partiesChange",function(){N(e);let o=u(4);return I(o.handleChangeParties())}),_()()}if(t&2){let e=u(4),n=fe(0);p(),ye("day",e.chosenSearchType!==e.BookingSearchType.Overnight),Pn("parties",e.parties),b("searchType",e.chosenSearchType)("allowRoomSelection",!e.enforcedSearchType||e.enforcedSearchType===e.BookingSearchType.Overnight)("nights",e.nights())("priceCalendarEnabled",e.priceCalendarEnabled)("pricePerPartyForSelectedDay",e.pricePerParty())("ageCategories",e.filteredAgeCategories)("isLoading",n)("isLoadingPriceCalendar",e.isLoadingPriceCalendar())("language",e.language)}}function WT(t,i){if(t&1){let e=B();h(0,"div",13)(1,"app-party-view",16),k("editSearchParams",function(){N(e);let o=u(3);return I(o.editParties=!o.editParties)}),_(),w(2,$T,2,12,"div",17),_()}if(t&2){let e=u(3);p(),b("parties",e.parties)("nights",e.nights())("allowRoomSelection",!e.enforcedSearchType||e.enforcedSearchType===e.BookingSearchType.Overnight)("language",e.language)("disabled",!e.chosenSearchType||!e.fromDate()),p(),x(e.editParties&&e.chosenSearchType?2:-1)}}function GT(t,i){if(t&1){let e=B();h(0,"div")(1,"div",12),w(2,WT,3,6,"div",13),h(3,"app-button",14),y(4,"translocoStripHtml"),y(5,"translocoStripHtml"),k("btnClick",function(){N(e);let o=u(2);return I(o.search())}),_()(),h(6,"app-promocode",15),fn("promocodeChange",function(o){N(e);let r=u(2);return hn(r.promocode,o)||(r.promocode=o),I(o)}),k("promocodeChange",function(o){N(e);let r=u(2);return I(r.handleChangePromocode(o))}),_()()}if(t&2){let e=u(2),n=fe(0);p(2),x(e.chosenSearchType!==e.BookingSearchType.Restaurant?2:-1),p(),b("label",O(4,8,"search.search-button.label"))("size",e.ButtonSize.LARGE)("appearance",e.ButtonStyle.PRIMARY)("disabled",!e.allowSearch||n),he("aria-label",O(5,10,"search.search-button.info")),p(3),Pn("promocode",e.promocode),b("disabled",n)}}function YT(t,i){if(t&1&&(T(0,"a",4),y(1,"translocoStripHtml")),t&2){let e=u(2);b("href",e.iPreferUrl,ut)("innerHTML",O(1,2,"search.iprefer"),Mt)}}function KT(t,i){if(t&1&&(h(0,"div",1)(1,"div",2),w(2,qT,8,19,"div"),w(3,jT,1,3,"app-summary",3),w(4,GT,7,12,"div"),w(5,YT,2,4,"a",4),_()()),t&2){let e=u();p(),ye("iframe",e.isInIframe),p(),x(e.showCalendar?2:-1),p(),x(e.showCalendar?-1:3),p(),x(e.searchFormsShown?4:-1),p(),x(e.iPreferUrl?5:-1)}}var gS=(()=>{class t extends sS{static{this.componentIdentifier="SearchComponent"}onRestoreCurrentViewToFullState(){}constructor(){let e=f(oe),n=f(Yi),o=f(Nt);super(e,n,o),this.viewManager=f(Xd),this.widgetSvc=f(li),this.route=f(Vo),this.dateUtils=f(Ft),this.searchService=f(fi),this.priceCalendarService=f(Di),this.utils=f(Rt),this.router=f(xi),this.processed=f(ae),this.crossSellService=f(Va),this.hideDefaultBasket=!0,this.timeZone=this.processed.getTimezone(),this.globals=this.processed.getInit().globals,this.fromDate=ne(""),this.nights=ne(1),this.toDate=A(()=>this.fromDate()?this.dateUtils.addDays(this.fromDate(),this.nights()):""),this.promocode="",this.lastCalendarChange=null,this.parties=new Array,this.chosenMealType=null,this.showCalendar=!0,this.ageCategories=this.processed.getInit().ageCategories||[],this.filteredAgeCategories=this.processed.getInit().ageCategories||[],this.searchFormsShown=!0,this.chosen
41Restaurant=null,this.isRestaurantSearchAvailable=this.processed.getInit().restaurant?.restaurantSearchIsAvailable||!1,this.restaurants=this.processed.getInit().restaurant?.restaurants||[],this.mealTimes=this.processed.getInit().restaurant?.mealTimes||[],this.enforcedSearchType=this.processed.getWidget()?.type??null,this.chosenSearchType=null,this.priceResult=ne(null),this.priceCalendarEnabled=this.processed.getInit().globals.showPriceCalendarPrices,this.isLoadingPriceCalendar=this.store.selectSignal(ha),this.currency=this.store.selectSignal(Ro),this.priceCalReadyToSearch=!1,this.editParties=!1,this.allowSearch=!1,this.iPreferUrl="",this.isSearching=Me(this.store.select(k_)),this.BasketPersonType=dt,this.BookingSearchType=J,this.Size=Se,this.ButtonStyle=Oe,this.ButtonShape=At,this.ButtonSize=ct,this.ButtonIconPosition=Ao,this.ButtonType=gn,this.scheduledInfo=A(()=>this.utils.getScheduledInfo(this.fromDate(),this.toDate())),this.pricePerParty=A(()=>this.priceCalendarService.getPricePerParty(this.priceResult(),this.parties,this.fromDate())),this.displayDayByDayPrices=A(()=>this.priceResult()?.displayDayByDayPrices??!1),this.isBeddingInvalid=A(()=>this.isLoadingPriceCalendar()||!this.fromDate()?!1:((this.priceResult()?.priceForDates?.[this.fromDate()]?.unavailableReason||0)&fh.RoomBeddingAreInvalid)!==0),this.store=e,this.bookingService=n,this.lngService=o,this.store.dispatch(tc()),this.store.dispatch(Oo({basketTimeoutAt:null}))}ngOnInit(){super.ngOnInit(),this.store.pipe(no(r=>r.runtimeState.hasAutoSearchedFromRedirect)).subscribe(r=>{this.hasAutoSearchedFromRedirect=r}),this.store.select(ht).pipe(In(this.$destroy)).subscribe(r=>{this.language=r}),this.store.select(r=>r.runtimeState.isInIframe).pipe(In(this.$destroy)).subscribe(r=>{this.isInIframe=r}),this.isInIframe||this.route.data.pipe(Be(r=>r?.searchType)).subscribe(r=>{let a=this.searchService.tryGetSearchModeParam(window.location.search),s=this.enforcedSearchType||r||a||null,l=s||this.chosenSearchType||null;l===J.Restaurant&&(this.isRestaurantSearchAvailable?this._setupForRestaurantAndDaySearch():this.router.navigate(["/"],{queryParamsHandling:"preserve"})),this.chosenSearchType=l,this.enforcedSearchType||(this.enforcedSearchType=s),this.allowSearch=this.canSearch()});let e=this.store.selectSignal(Ec)();e.searchType!==J.Overnight&&!e.to&&(e.to=e.from);let n=!!e.from&&!!e.to&&(e.parties||[]).length>0;this.resetSearchByWidget(e);let o=this.store.selectSignal(gr)();if(o&&!this.isInIframe&&this.setValuesFromSearchRequest(o),this.priceCalReadyToSearch=!0,!this.hasAutoSearchedFromRedirect&&n&&this.lookForWidgetRedirectParameters(e),this.isInIframe||e.widgetId){this.lookForWidgetInitParameters();let r=o?kt(o):new Dr;r.from=this.fromDate()||r.from,r.to=this.toDate()||r.to,r.parties=this.parties||r.parties,this.store.dispatch(Ui({searchRequest:r}));let a=this.processed.getWidget()?.prefilledPromocode;this.promocode&&this.promocode!==a&&this.store.dispatch(Hi({promoCode:this.promocode}))}if(!this.fromDate()){let r=this.store.selectSignal(B_)();if(r){let a=this.processed.getWidget()?.type;!this.chosenSearchType&&a&&(this.chosenSearchType=a),this.chosenSearchType||(this.chosenSearchType=J.Overnight),this.fromDate.set(r)}}this.allowSearch=this.canSearch(),this.ensurePartyExists(),this.priceCalendarEnabled&&this.priceResult()===null&&this.fetchPrices(),this.chosenSearchType!==J.Restaurant&&(this.iPreferUrl=this.globals.iPreferUrl??"")}_setupForRestaurantAndDaySearch(){this.nights.set(0),this.parties.length>1&&(this.parties=[this.parties[0]]),this.ensurePartyExists()}resetSearchByWidget(e){let n=this.processed.getWidget();(e?.widgetId||n?.widgetId)&&this.store.select(gr).pipe(Ke(1),lt(o=>!!o?.widgetId),lt(o=>o.widgetId!==e?.widgetId||o.widgetId!==n?.widgetId)).subscribe(o=>{this.store.dispatch(Ui({searchRequest:j(S({},o),{from:"",to:""})})),this.store.dispatch(Hi({promoCode:""}))})}lookForWidgetInitParameters(){let e=this.processed.getWidget();if(!this.hasAutoSearchedFromRedirect&&e&&(e.type!==J.Overnight&&this.nights.set(0),e.type===J.Restaurant?(this.chosenSearchType=J.Restaurant,this._setupForRestaurantAndDaySearch(),this.router.navigate(["/restaurant"],{queryParamsHandling:"preserve"})):this.enforcedSearchType&&(this.chosenSearchType=this.enforcedSearchType),e.type===J.Restaurant&&(this.chosen
41Restaurant||(this.chosenRestaurant=this.restaurants.find(n=>n.id===e.prechosenRestaurantId)||null),this.chosenMealType||(this.chosenMealType=this.mealTimes.find(n=>n.id===e.prechosenRestaurantMealTimeId)?.id||this.mealTimes.find(n=>n.isDefault)?.id||this.mealTimes[0]?.id||null,this.chosenRestaurant&&(this.chosenRestaurant.validMealTimeIds.indexOf(this.chosenMealType||"")!==-1||(this.chosenMealType=this.mealTimes.find(o=>this.chosenRestaurant?.validMealTimeIds.indexOf(o.id)!==-1)?.id||this.mealTimes.find(o=>o.isDefault)?.id||this.mealTimes[0]?.id||null)))),this.isInIframe&&e.prehideSearchForm&&(this.searchFormsShown=!1),e.useDefinedDefaultParties))try{this.setPartiesFromRequest(e.defaultSearchParties??[])}catch(n){console.error(n)}}lookForWidgetRedirectParameters(e){this.setValuesFromSearchRequest(e),this.isLoading$.pipe(lt(n=>!n),Ke(1)).subscribe(()=>{this.hasAutoSearchedFromRedirect=!0,this.search(e.widgetId)})}setValuesFromSearchRequest(e){e&&(this.chosenSearchType===J.Restaurant?this.handleRestaurantSearchRequest(e):this.handleRegularSearchRequest(e),this.setPartiesFromRequest(e?.parties),this.setPromoCodeFromSearchRequest(e))}handleRestaurantSearchRequest(e){if(e.searchType!==J.Restaurant){this.store.dispatch(Ui({searchRequest:null}));return}this.fromDate.set(e.from||""),this.fromDate()&&(this.chosenSearchType=J.Restaurant),e.wantedRestaurantMealTimeId&&(this.chosenMealType=e.wantedRestaurantMealTimeId),e.wantedRestaurantId&&(this.chosenRestaurant=this.restaurants.find(n=>n.id===e.wantedRestaurantId)||null),this.nights.set(0)}handleRegularSearchRequest(e){if(e.searchType===J.Restaurant){this.store.dispatch(Ui({searchRequest:null}));return}this.fromDate.set(e.from||""),this.nights.set(this.dateUtils.dateDifferenceInDays(e.from,e.to)),this.fromDate()&&(this.chosenSearchType=this.nights()>0?J.Overnight:J.Day)}setPartiesFromRequest(e){e&&e.length>0&&(this.parties=kt(e),this.partySanityCheck())}partySanityCheck(){this.parties.forEach(e=>{let n=0;e.persons=e.persons.filter(o=>{let r=this.ageCategories.some(a=>a.typeSubIdentifier===o.typeSubIdentifier);return r||n++,r});for(let o=0;o<n;o++){let r=this.ageCategories.filter(a=>a.isAlwaysBookable)[0];r&&e.persons.push({type:r.personType,typeSubIdentifier:r.typeSubIdentifier,beddingOptionId:""})}})}setPromoCodeFromSearchRequest(e){let n=this.processed.getWidget()?.prefilledPromocode,o=e.promoCode||this.store.selectSignal(c_)();(!n||o!==n)&&(this.promocode=o)}handleChangePromocode(e){this.store.dispatch(Hi({promoCode:e})),this.fetchPrices()}search(e=null){let n=new Dr;n.language=this.language,n.parties=kt(this.parties),n.promoCode=this.promocode||this.processed.getWidget()?.prefilledPromocode||"",n.widgetId=this.searchService.resolveWidgetId(e),n.searchType=this.chosenSearchType||J.Overnight,this.chosenRestaurant&&(n.wantedRestaurantId=this.chosenRestaurant.id),this.chosenMealType&&(n.wantedRestaurantMealTimeId=this.chosenMealType),n.from=this.fromDate()||"",this.nights()>0&&(n.to=this.toDate()||""),Object.keys(n).length>0&&this.store.dispatch(fr({params:n})),this.store.dispatch(Pc({hasSearched:!0}));try{this.bookingService.makeSearchCall(n)}catch(o){console.log("Error",o)}}handleCalendarChange(e){if(e){let n=this.fromDate()!==e.fromDate||this.nights()!==e.nights||this.chosenSearchType!==e.searchType;if(this.fromDate.set(e.fromDate||""),this.nights.set(e.nights),this.chosenSearchType!==e.searchType&&(this.parties=[]),this.chosenSearchType=e.searchType,this.filteredAgeCategories=this.searchService.getBookableAgeCategories(this.fromDate(),this.toDate(),this.ageCategories),this.ensurePartyExists(),this.handleDisplaySettings(),(e.searchType===J.Day||e.searchType===J.Restaurant)&&this._setupForRestaurantAndDaySearch(),this.allowSearch=this.canSearch(),!e.fromDate)return;(this.priceResult()===null||n)&&this.fetchPrices()}}fetchPrices(e){if(this.priceCalReadyToSearch){e&&(this.lastCalendarChange=e);let n=this.processed.getWidget(),o=this.searchService.resolveWidgetId(null);this.priceCalendarService.fetchPriceCalenderData(this.enforcedSearchType??this.chosenSearchType??(o?null:J.Overnight),e||this.lastCalendarChange||this.fromDate(),this.nights(),this.parties,this.promocode||n?.prefilledPromocode||"",this.chosen
41Restaurant?.id,this.chosenMealType||void 0,r=>{this.priceResult.set(r),this.allowSearch=this.canSearch()})}}handleChangeRestaurant(){this.fetchPrices()}handleChangeMealtype(){this.fetchPrices()}handleChangeParties(){this.priceResult.set(null),this.fetchPrices()}onCrossSellTriggered(e){let o=e.date.split("-");if(o.length!==3)return;let r=Number(o[0]),a=Number(o[1]),s=Number(o[2]),l=this.processed.getInit().resort.siteName;this.store.dispatch(No({currentHotelName:l,reason:e.reason})),this.crossSellService.fetchCrossSell({year:r,month:a,day:s,nights:e.nights,searchType:this.chosenSearchType??J.Overnight,parties:kt(this.parties)}).pipe(Ke(1)).subscribe({next:c=>{c.length>0?this.store.dispatch(Io({alternatives:c})):this.store.dispatch(ko())},error:()=>{this.store.dispatch(To())}})}ensurePartyExists(){this.parties.length===0&&(this.parties=[this.searchService.createParty(this.chosenSearchType)])}handleDisplaySettings(){this.priceCalendarEnabled||(this.showCalendar=this.chosenSearchType===J.Restaurant||!1),this.searchFormsShown=!0}canSearch(){let e=this.chosenSearchType===J.Restaurant;e&&this.chosenMealType&&(e=this.chosenRestaurant?.validMealTimeIds?.indexOf(this.chosenMealType)!==-1);let n=this.chosenSearchType===J.Overnight&&!!this.toDate(),o=this.chosenSearchType===J.Day;return!!this.fromDate()&&(this.priceResult()?.priceForDates?.[this.fromDate()]?.isAvailable===!0||!this.priceCalendarEnabled)&&(e||n||o)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=H({type:t,selectors:[["app-search"]],features:[vo([Di,Sn]),re],decls:6,vars:7,consts:[["data-qa","search-title",1,"hide-element"],[1,"page-wrapper","search-component"],[1,"calendar"],["data-qa","search-summary",3,"nights","fromDate","toDate"],["target","_blank","data-qa","search-iprefer-link",3,"href","innerHTML"],["data-qa","search-restaurant",3,"chosenRestaurant","chosenMealType","parties","language","isLoading"],["data-qa","search-calendar",3,"calendarChange","calendarNavigate","crossSellTriggered","fromDate","nights","priceCalendarEnabled","minNights","maxNights","searchType","enforcedSearchType","priceForDates","currency","fetchingDataLoader","language","displayDayByDayPrices","displayOneNightPriceNonSelected","crossSellNights","disabled","isSearching"],[3,"date","minNights","maxNights"],[1,"d-block","mt-2",3,"info"],["data-qa","search-restaurant",3,"chosenRestaurantChange","chosenMealTypeChange","partiesChange","chosenRestaurant","chosenMealType","parties","language","isLoading"],[1,"d-block","mt-2",3,"info","readMoreLink"],["data-qa","search-summary",3,"showCalendar","nights","fromDate","toDate"],[1,"edit-promo-container"],[1,"dropdown-container"],["data-qa","search-button",1,"calendar__submit-btn","d-block","w-100",3,"btnClick","label","size","appearance","disabled","aria-label"],["data-qa","promocode-input",1,"w-100",3,"promocodeChange","promocode","disabled"],["data-qa","rooms-and-guests-dropdown",1,"d-block","w-100","mb-1",3,"editSearchParams","parties","nights","allowRoomSelection","language","disabled"],["appAnimateStart","foldAnimationShow",1,"foldAnimation","foldAnimationHide"],["data-qa","party-edit-form",1,"d-block",3,"partiesChange","parties","searchType","allowRoomSelection","nights","priceCalendarEnabled","pricePerPartyForSelectedDay","ageCategories","isLoading","isLoadingPriceCalendar","language"]],template:function(n,o){n&1&&(qe(0),y(1,"async"),h(2,"h1",0),D(3),y(4,"translocoStripHtml"),_(),w(5,KT,6,6,"div",1)),n&2&&(Je(O(1,2,o.isLoading$)),p(3),V(O
41(4,5,"search.title.label")),p(2),x(o.componentState==="full"?5:-1))},dependencies:[Sn,De,np,ip,er,op,dS,ja,tr,nr,Kf,Y,rt],styles:[`.display-large[_ngcontent-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:3.25em;line-height:1.125em;font-weight:700}.display-medium[_ngcontent-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:2.875em;line-height:1.1em;font-weight:700}.display-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:2.5em;line-height:1.125em;font-weight:700}.headline-large[_ngcontent-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:2.25em;line-height:1.14em;font-weight:700}.headline-medium[_ngcontent-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:1.875em;line-height:1.1em;font-weight:700}.headline-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:1.5em;line-height:1.13125em;font-weight:700}.title-large[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:1.5em;line-height:1.1875em;font-weight:600}.title-medium[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:1.25em;line-height:1.1875em;font-weight:600}.title-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:1em;line-height:1em;font-weight:600}.label-large[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:1em;line-height:1.1875em;font-weight:600}.label-medium[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.875em;line-height:1.3em;font-weight:600}.label-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.75em;line-height:.875em;font-weight:600}.label-extra-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.625em;line-height:1.2em;font-weight:600}.body-large[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:1em;line-height:1.1875em;font-weight:400}
41.body-medium[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.875em;line-height:1.1em;font-weight:400}.body-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.75em;line-height:1.125em;font-weight:400}.body-extra-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.625em;line-height:.75em;font-weight:400}.foldAnimation[_ngcontent-%COMP%]{display:grid;overflow:hidden;transition:grid-template-rows .3s ease-in-out,opacity .3s ease-in-out}.foldAnimation[_ngcontent-%COMP%] > .foldAnimationContent[_ngcontent-%COMP%]{overflow:hidden}.foldAnimationHide[_ngcontent-%COMP%]{grid-template-rows:0fr;opacity:0}.foldAnimationShow[_ngcontent-%COMP%]{grid-template-rows:1fr;opacity:1}.foldAnimationToHide[_ngcontent-%COMP%]{grid-template-rows:0fr;opacity:0}.fadeAnimation[_ngcontent-%COMP%]{transition:opacity .5s ease-in-out}.fadeAnimationHide[_ngcontent-%COMP%]{opacity:0}.fadeAnimationShow[_ngcontent-%COMP%]{opacity:1}.fadeAnimationToHide[_ngcontent-%COMP%]{opacity:0}.slideUpAnimation[_ngcontent-%COMP%]{--%NS%slideup-translate-x: none;position:fixed;bottom:0;transition:transform .4s ease-out,opacity .4s ease-out;will-change:transform}.slideUpAnimationHide[_ngcontent-%COMP%]{transform:translate(var(--%NS%slideup-translate-x)) translateY(100vh);opacity:0}.slideUpAnimationShow[_ngcontent-%COMP%]{transform:translate(var(--%NS%slideup-translate-x)) translateY(0);opacity:1}.slideUpAnimationToHide[_ngcontent-%COMP%]{transform:translate(var(--%NS%slideup-translate-x)) translateY(100vh);opacity:0}.slideInAnimation[_ngcontent-%COMP%]{transition:transform .4s ease-out,opacity .4s ease-out;will-change:transform}.slideInAnimationHide[_ngcontent-%COMP%]{transform:translate(100%);opacity:0}.slideInAnimationShow[_ngcontent-%COMP%]{transform:translate(0);opacity:1}.slideInAnimationToHide[_ngcontent-%COMP%]{transform:translate(100%);opacity:0}@media(max-width:575.98px){.slideInAnimationHide[_ngcontent-%COMP%]{transform:translateY(100%);opacity:0}.slideInAnimationShow[_ngcontent-%COMP%]{transform:translateY(0);opacity:1}.slideInAnimationToHide[_ngcontent-%COMP%]{transform:translateY(100%);opacity:0}}.modalScaleAnimation[_ngcontent-%COMP%]{transition:transform .3s ease-in-out,opacity .3s ease-in-out;will-change:transform}.modalScaleAnimationHide[_ngcontent-%COMP%]{transform:scale(.9);opacity:0}.modalScaleAnimationShow[_ngcontent-%COMP%]{transform:scale(1);opacity:1}.modalScaleAnimationToHide[_ngcontent-%COMP%]{transform:scale(.9);opacity:0} .disable-animations .foldAnimation, .disable-animations .fadeAnimation, .disable-animations .slideUpAnimation, .disable-animations .slideInAnimation, .disable-animations .modalScaleAnimation{transition-duration:0ms!important}.dropdown-container[_ngcontent-%COMP%]{min-width:60%}.restbox[_ngcontent-%COMP%]{height:220px}a[_ngcontent-%COMP%] > .icon>svg{position:relative;bottom:3px}.calendar[_ngcontent-%COMP%]{max-width:595px;padding:0 0 16px}.calendar.iframe[_ngcontent-%COMP%]{max-width:none}.edit-promo-container[_ngcontent-%COMP%]{display:flex;gap:5px;margin-top:.75em;margin-bottom:.625em}@media(max-width:575.98px){.edit-promo-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}}app-party-edit[_ngcontent-%COMP%]{border:2px solid var(--%NS%color-primary)}app-party-edit.day[_ngcontent-%COMP%]{border-bottom:none}app-restriction-message[_ngcontent-%COMP%]{margin-top:.5em;display:block} 42/*# sourceMappingURL=search.component.css.map */`],changeDetection:1})}}return t})();var ZT=["gridItem"],QT=["gridContainer"],JT=["*"];function XT(t,i){t&1&&yo(0,"div",2)}var _S=(()=>{class t extends _e{constructor(){super(),this.elRef=f(Ut),this.gridContainer=We.required("gridContainer"),this.gridItems=Vf("gridItem",{descendants:!0}),this.fillers=ne([]),xf(()=>{this.calculateFillers()},{})}onResize(){this.calculateFillers()}calculateFillers(){let e=this.gridItems().filter(c=>!c.nativeElement.classList.contains("invisible"));if(e.length===0)return;let n=e[0].nativeElement.offsetWidth+8,o=this.gridContainer().nativeElement.offsetWidth+8,r=Math.round(o/n),s=e.length%r,l=s===0?0:r-s;l!=this.fillers().length&&this.fillers.set(Array.from({length:l},(c,d)=>d))}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=H({type:t,selectors:[["app-grid"]],contentQueries:function(n,o,r){n&1&&Af(r,o.gridItems,ZT,5),n&2&&xt()},viewQuery:function(n,o){n&1&&Ot(o.gridContainer,QT,5),n&2&&xt()},hostBindings:function(n,o){n&1&&k("resize",function(){return o.onResize()},Nl)},features:[re],ngContentSelectors:JT,decls:5,vars:0,consts:[["gridContainer",""],[1,"grid-container"],["aria-hidden","true",1,"grid-item","invisible"]],template:function(n,o){n&1&&(jt(),Li(0,"div",1,0),at(2),we(3,XT,1,0,"div",2,Xe),zi()),n&2&&(p(3),xe(o.fillers()))},styles:[`.grid-container[_ngcontent-%COMP%]{display:flex;flex-flow:row wrap;gap:8px} .grid-container>*{flex:1;position:relative}.grid-container[_ngcontent-%COMP%] > div.invisible[_ngcontent-%COMP%]{visibility:hidden} 43/*# sourceMappingURL=grid.component.css.map */`],changeDetection:1})}}return t})();
43var CS=(t,i)=>({current:t,new:i}),e2=()=>["modal-colors"],t2=t=>({current:t}),n2=(t,i)=>i.key;function i2(t,i){t&1&&Et(0)}function o2(t,i){if(t&1){let e=B();h(0,"div",4)(1,"a",5),y(2,"translocoStripHtml"),k("click",function(o){N(e);let r=u().$implicit,a=u(3);return I(a.changeLanguage(r.key,o))}),T(3,"app-icon",6),h(4,"span",7),D(5),y(6,"slice"),_()()()}if(t&2){let e=u().$implicit,n=fe(0);u();let o=fe(0),r=u(2);ye("small",r.small()),p(),ue("aria-label",W(2,5,"language-switcher.change",St(12,CS,o,n))),p(2),b("name","flag-"+e.key),p(2),V(Rn(6,8,e.value,0,r.small()?3:100))}}function r2(t,i){if(t&1&&(qe(0),y(1,"translocoStripHtml"),w(2,o2,7,15,"div",3)),t&2){let e=i.$implicit,n=u(3);Je(O(1,1,"global.languages."+e.key)),p(2),x(n.currentLanguage!==e.key?2:-1)}}function a2(t,i){if(t&1&&(qe(0),y(1,"translocoStripHtml"),we(2,r2,3,4,null,null,Xe)),t&2){let e=u(2);Je(O(1,0,"global.languages."+e.currentLanguage)),p(2),xe(e.languages)}}function s2(t,i){if(t&1){let e=B();h(0,"button",12),y(1,"translocoStripHtml"),k("click",function(o){N(e);let r=u().$implicit,a=u(3);return I(a.changeLanguage(r.key,o))}),T(2,"app-icon",13),h(3,"span",14),D(4),_()()}if(t&2){let e=u().$implicit,n=fe(0);u();let o=fe(0);ue("aria-label",W(1,3,"language-switcher.change",St(6,CS,o,n))),p(2),b("name","flag-"+e.key),p(2),V(n)}}function l2(t,i){if(t&1&&(qe(0),y(1,"translocoStripHtml"),w(2,s2,5,9,"button",11)),t&2){let e=i.$implicit,n=u(3);Je(O(1,1,"global.languages."+e.key)),p(2),x(n.currentLanguage!==e.key?2:-1)}}function c2(t,i){if(t&1&&(qe(0),y(1,"translocoStripHtml"),h(2,"div",8),T(3,"app-button",9),y(4,"slice"),y(5,"translocoStripHtml"),h(6,"div",10),we(7,l2,3,4,null,null,n2),_()()),t&2){let e=u(2),n=Je(O(1,8,"global.languages."+e.currentLanguage));p(2),ye("small",e.small()),p(),b("appearance",e.ButtonStyle.SECONDARY)("label",Rn(4,11,n,0,3))("iconLeft","flag-"+e.currentLanguage)("iconRight","chevronDown")("additionalClasses",Pe(18,e2)),he("aria-label",W(5,15,"language-switcher.multiple.change",Z(19,t2,n))),p(4),xe(e.languages)}}function d2(t,i){if(t&1&&bt(0,i2,1,0,"ng-container",2)(1,a2,4,3,"ng-template",null,0,mt)(3,c2,9,21,"ng-template",null,1,mt),t&2){let e=Qe(2),n=Qe(4),o=u();b("ngTemplateOutlet",o.languages.length>2?n:e)}}var yS=(()=>{class t extends _e{constructor(){super(),this.store=f(oe),this.languageService=f(Nt),this.processed=f(ae),this.small=v(!1),this.currentName="",this.ButtonStyle=Oe,this.languages=this.languageService.mapToLanguageSwitcher(this.processed.getInit().availableLanguages)}ngOnInit(){this.store.select(ht).subscribe(e=>{this.currentLanguage=e})}changeLanguage(e,n){n?.preventDefault(),this.store.dispatch(ii({language:e,isSetByUser:!0}))}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=H({type:t,selectors:[["app-language-switcher"]],inputs:{languages:"languages",small:[1,"small"]},features:[re],decls:1,vars:1,consts:[["defaultLs",""],["languageDropdown",""],[4,"ngTemplateOutlet"],["data-qa","language-switcher-item",3,"small"],["data-qa","language-switcher-item"],["href","","data-qa","language-switcher-link",3,"click"],["data-qa","language-switcher-flag",3,"name"],["data-qa","language-switcher-name"],["ngbDropdown","","data-qa","language-switcher-dropdown"],["ngbDropdownToggle","","aria-haspopup","listbox","data-qa","language-switcher-toggle",3,"appearance","label","iconLeft","iconRight","additionalClasses","aria-label"],["ngbDropdownMenu","","data-qa","language-switcher-menu"],["type","button","ngbDropdownItem","","role","option","data-qa","language-switcher-menu-item"],["type","button","ngbDropdownItem","","role","option","data-qa","language-switcher-menu-item",3,"click"],["data-qa","language-switcher-menu-flag",3,"name"],["data-qa","language-switcher-menu-name"]],template:function(n,o){n&1&&w(0,d2,5,1),n&2&&x(o.currentLanguage&&o.languages?0:-1)},dependencies:[st,Jn,ta,$t,rn,on,nn,Po,Fe,De,Ll,Y],styles:[`[_nghost-%COMP%] > div[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{margin-left:.5em}[_nghost-%COMP%] > div.small[_ngcontent-%COMP%] .btn__label-container{display:none}@media screen and (width>=440px){[_nghost-%COMP%] > div.small[_ngcontent-%COMP%] .btn__label-container{display:inline}}[_nghost-%COMP%] > div[_ngcontent-%COMP%] button[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:inline}[_nghost-%COMP%] > div[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{cursor:pointer;text-decoration:none;color:var(--%NS%footer-text-color)}[_nghost-%COMP%] > div[_ngcontent-%COMP%] a.small[_ngcontent-%COMP%]{text-transform:uppercase}[_nghost-%COMP%] > div[_ngcontent-%COMP%] a[_ngcontent-%COMP%] app-icon[_ngcontent-%COMP%]{padding:0}[_nghost-%COMP%] [ngbDropdown][_ngcontent-%COMP%] app-button[_ngcontent-%COMP%]{color:var(--%NS%modal-color)}[_nghost-%COMP%] [ngbDropdown][_ngcontent-%COMP%] app-button[_ngcontent-%COMP%] .btn .btn__label{text-transform:capitalize}[_nghost-%COMP%] [ngbDropdown][_ngcontent-%COMP%] [ngbDropdownItem][_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:var(--%NS%modal-color);text-transform:capitalize} 44/*# sourceMappingURL=language-switcher.component.css.map */`],changeDetection:1})}}return t})();var p2=()=>["label-large","form-control"],u2=t=>({label:t}),m2=t=>({active:t});function h2(t,i){if(t&1){let e=B();h(0,"button",5),k("click",function(){let o=N(e).$implicit,r=u();return I(r.onSelect(o))}),h(1,"div",6),T(2,"app-icon",7),_(),D(3),y(4,"translate"),_()}if(t&2){let e=i.$implicit,n=u();b("ngClass",Z(4,m2,n.selectedOption().id===e.id)),p(3),ee(" ",O(4,2,e.text)," ")}}var bS=(()=>
44{class t extends _e{constructor(){super(...arguments),this.uniqueId=++t.nextId,this.label=v(),this.selectedOption=Mn.required(),this.options=v.required(),this.isOpen=!1,this.ButtonStyle=Oe,this.ButtonSize=ct}static{this.nextId=0}onSelect(e){this.selectedOption.set(e)}static{this.\u0275fac=(()=>{let e;return function(o){return(e||(e=Ne(t)))(o||t)}})()}static{this.\u0275cmp=H({type:t,selectors:[["app-select-field"]],inputs:{label:[1,"label"],selectedOption:[1,"selectedOption"],options:[1,"options"]},outputs:{selectedOption:"selectedOptionChange"},features:[re],decls:10,vars:19,consts:[["data-qa","select-field-label",1,"title-small",3,"for"],["ngbDropdown","","data-qa","select-field-dropdown",1,"form-group",3,"openChange"],["ngbDropdownToggle","","data-qa","select-field-button",3,"id","label","iconRight","appearance","size","additionalClasses","aria-label","aria-expanded","aria-haspopup"],["ngbDropdownMenu","","data-qa","select-field-menu"],["ngbDropdownItem","","data-qa","select-field-option",1,"body-large",3,"ngClass"],["ngbDropdownItem","","data-qa","select-field-option",1,"body-large",3,"click","ngClass"],[1,"check-icon"],["name","check"]],template:function(n,o){if(n&1&&(h(0,"label",0),D(1),_(),h(2,"div",1),k("openChange",function(){return o.isOpen=!o.isOpen}),qe(3),y(4,"translate"),T(5,"app-button",2),y(6,"translocoStripHtml"),h(7,"div",3),we(8,h2,5,6,"button",4,Xe),_()()),n&2){b("for","select-field-dropdown-btn"+o.uniqueId),p(),ee(" ",o.label(),` 45`);let r=O(4,11,o.selectedOption().text);p(4),b("id","select-field-dropdown-btn"+o.uniqueId)("label",r)("iconRight",o.isOpen?"chevronUp":"chevronDown")("appearance",o.ButtonStyle.SECONDARY)("size",o.ButtonSize.LARGE)("additionalClasses",Pe(16,p2)),he("aria-label",W(6,13,"general.selected-field.label",Z(17,u2,r)))("aria-expanded",o.isOpen)("aria-haspopup","listbox"),p(3),xe(o.options())}},dependencies:[st,bn,ta,$t,rn,on,nn,Po,De,Fe,rt,Y],styles:[`.display-large[_ngcontent-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:3.25em;line-height:1.125em;font-weight:700}
45.display-medium[_ngcontent-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:2.875em;line-height:1.1em;font-weight:700}.display-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:2.5em;line-height:1.125em;font-weight:700}.headline-large[_ngcontent-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:2.25em;line-height:1.14em;font-weight:700}.headline-medium[_ngcontent-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:1.875em;line-height:1.1em;font-weight:700}.headline-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:1.5em;line-height:1.13125em;font-weight:700}.title-large[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:1.5em;line-height:1.1875em;font-weight:600}.title-medium[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:1.25em;line-height:1.1875em;font-weight:600}.title-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:1em;line-height:1em;font-weight:600}.label-large[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:1em;line-height:1.1875em;font-weight:600}.label-medium[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.875em;line-height:1.3em;font-weight:600}.label-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.75em;line-height:.875em;font-weight:600}.label-extra-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.625em;line-height:1.2em;font-weight:600}.body-large[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:1em;line-height:1.1875em;font-weight:400}
45.body-medium[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.875em;line-height:1.1em;font-weight:400}.body-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.75em;line-height:1.125em;font-weight:400}.body-extra-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.625em;line-height:.75em;font-weight:400}.form-group[_ngcontent-%COMP%] app-button[ngbDropdownToggle][_ngcontent-%COMP%] button{text-transform:none}.form-group[_ngcontent-%COMP%] .dropdown[_ngcontent-%COMP%]{position:absolute}.form-group[_ngcontent-%COMP%] .dropdown-item[_ngcontent-%COMP%]{border-bottom:1px solid #ccc;padding:14.5px 16px;display:flex;gap:.5em;align-items:center;color:var(--%NS%default-text-color);background-color:var(--%NS%modal-background-color)}.form-group[_ngcontent-%COMP%] .dropdown-item[_ngcontent-%COMP%] .check-icon[_ngcontent-%COMP%]{display:none}.form-group[_ngcontent-%COMP%] .dropdown-item[_ngcontent-%COMP%]:hover{background-color:var(--%NS%modal-background-darker)}.form-group[_ngcontent-%COMP%] .dropdown-item.active[_ngcontent-%COMP%]{color:var(--%NS%default-text-color);background-color:var(--%NS%modal-background-darker)}.form-group[_ngcontent-%COMP%] .dropdown-item.active[_ngcontent-%COMP%] .check-icon[_ngcontent-%COMP%]{display:inline-flex}.form-group[_ngcontent-%COMP%] .dropdown-item.active[_ngcontent-%COMP%] .check-icon[_ngcontent-%COMP%] app-icon[_ngcontent-%COMP%]{display:inline-flex!important}.form-group[_ngcontent-%COMP%] .dropdown-menu[_ngcontent-%COMP%]{border:2px solid var(--%NS%color-primary);border-top:0;border-radius:0;width:100%;padding:0;margin-top:-2px!important}.form-control[_ngcontent-%COMP%]:focus{box-shadow:none} 46/*# sourceMappingURL=select-field.component.css.map */`],changeDetection:1})}}return t})();var SS=(()=>{class t{transform(e,n){let o=[];return e&&n.forEach(r=>{r.persons.forEach(a=>{e.includes(a.id)&&o.push(a.firstName+"\xA0"+a.lastName)})}),o.join(", ")}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275pipe=yn({name:"partyName",type:t,pure:!0})}}return t})();var f2=["*"];function g2(t,i){if(t&1&&(Li(0,"span",2),D(1),zi()),t&2){u();let e=fe(0),n=u();kl("id",e),p(),V(n.ariaLabel())}}function _2(t,i){if(t&1){let e=B();qe(0),Li(1,"li",1),Ef("keyup.enter",function(){N(e);let o=u();return I(o.onSelect(o.person()))})("click",function(){N(e);let o=u();return I(o.onSelect(o.person()))}),at(2),w(3,g2,2,2,"span",2),zi()}if(t&2){let e=u(),n=Je("timeslot-dropdown-item-"+e.timeslot().id+(e.personId()?"-"+e.personId():""));p(),ye("selected",e.isBooked()),ue("role",e.isSelectable()?"option":void 0)("aria-labelledby",e.ariaLabel()?n:void 0)("aria-selected",e.isSelectable()?e.isBooked():void 0),p(2),x(e.ariaLabel()?3:-1)}}function Ch(t){return t.id!==void 0}var vS=(()=>{class t{constructor(){this.timeslot=v.required(),this.person=v(null),this.personId=v(null),this.isBooked=v(!1),this.allowSameTimeslot=v(!1),this.ariaLabel=v(void 0,{alias:"aria-label"}),this.selectItem=Re(),this.isSelectable=A(()=>this.allowSameTimeslot()&&this.isBooked()||!this.timeslot().isUnavailableDueToAllotment||!this.isBooked())}onSelect(e){this.selectItem.emit(e)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=H({type:t,selectors:[["app-popover-item"]],inputs:{timeslot:[1,"timeslot"],person:[1,"person"],personId:[1,"personId"],isBooked:[1,"isBooked"],allowSameTimeslot:[1,"allowSameTimeslot"],ariaLabel:[1,"aria-label","ariaLabel"]},outputs:{selectItem:"selectItem"},ngContentSelectors:f2,decls:1,vars:1,consts:[["tabindex","0",1,"list-group-item","border-end-0","border-start-0",3,"selected"],["tabindex","0",1,"list-group-item","border-end-0","border-start-0",3,"keyup.enter","click"],[1,"hide-element",3,"id"]],template:function(n,o){n&1&&(jt(),w(0,_2,4,7,"li",0)),n&2&&x(o.timeslot().isUnavailableDueToAllotment&&!o.isBooked?-1:0)},styles:[`.display-large[_ngcontent-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:3.25em;line-height:1.125em;font-weight:700}
46.display-medium[_ngcontent-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:2.875em;line-height:1.1em;font-weight:700}.display-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:2.5em;line-height:1.125em;font-weight:700}.headline-large[_ngcontent-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:2.25em;line-height:1.14em;font-weight:700}.headline-medium[_ngcontent-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:1.875em;line-height:1.1em;font-weight:700}.headline-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:1.5em;line-height:1.13125em;font-weight:700}.title-large[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:1.5em;line-height:1.1875em;font-weight:600}.title-medium[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:1.25em;line-height:1.1875em;font-weight:600}.title-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:1em;line-height:1em;font-weight:600}.label-large[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:1em;line-height:1.1875em;font-weight:600}.label-medium[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.875em;line-height:1.3em;font-weight:600}.label-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.75em;line-height:.875em;font-weight:600}.label-extra-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.625em;line-height:1.2em;font-weight:600}.body-large[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:1em;line-height:1.1875em;font-weight:400}
46.body-medium[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.875em;line-height:1.1em;font-weight:400}.body-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.75em;line-height:1.125em;font-weight:400}.body-extra-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.625em;line-height:.75em;font-weight:400}li[_ngcontent-%COMP%]{font-size:1.15em;line-height:1.5em;color:var(--%NS%list-group-item-popover-text);background-color:var(--%NS%list-group-item-popover);white-space:nowrap;max-width:17.125em;cursor:pointer}li.selected[_ngcontent-%COMP%], li[_ngcontent-%COMP%]:hover{background-color:var(--%NS%list-group-item-popover-hover)}li[_ngcontent-%COMP%]:first-child{border-top-left-radius:unset;border-top-right-radius:unset}li[_ngcontent-%COMP%]:last-child{border-bottom:none;border-radius:0 0 .5em .5em} 47/*# sourceMappingURL=popover-item.component.css.map */`],changeDetection:1})}}return t})();var C2=["popover"],y2=["addName"],b2=(t,i,e,n)=>({"timeslot-full":t,dropdown:i,clicked:e,waitlist:n}),S2=(t,i,e,n)=>({time:t,date:i,price:e,allotment:n}),v2=t=>({number:t}),wS=(t,i,e)=>({time:t,date:i,name:e}),w2=t=>({partyName:t}),x2=(t,i)=>({time:t,date:i}),P2=(t,i)=>({title:t,time:i}),M2=(t,i)=>i.partyId,O2=(t,i)=>i.id;function D2(t,i){t&1&&(h(0,"span",4),D(1),y(2,"translocoStripHtml"),_()),t&2&&(p(),V(O(2,1,"timeslot-select.waitlist.join")))}function N2(t,i){if(t&1&&T(0,"app-icon",5),t&2){let e=u();b("size",e.IconSize.XTINY)}}function I2(t,i){if(t&1&&T(0,"app-icon",10),t&2){let e=u(6);b("size",e.IconSize.TINY)}}function k2(t,i){if(t&1&&T(0,"app-icon",11),t&2){let e=u(6);b("size",e.IconSize.TINY)}}function T2(t,i){if(t&1){let e=B();qe(0),y(1,"translocoStripHtml"),h(2,"app-popover-item",9),y(3,"translocoStripHtml"),k("selectItem",function(o){N(e);let r=u(5);return I(r.selectTimeslotForPerson(o))}),w(4,I2,1,1,"app-icon",10)(5,k2,1,1,"app-icon",11),D(6),_()}if(t&2){let e=u(),n=e.$implicit,o=e.$index,r=u(4),a=n.firstName?n.firstName+" "+n.lastName:r.inputNames[n.id]?r.inputNames[n.id].firstName+" "+r.inputNames[n.id].lastName:W(1,8,"rooms.party-form.guest-heading",Z(14,v2,o+1)),s=r.isBookedByPersonId().indexOf(n.id)!==-1;p(2),b("timeslot",r.timeslot())("person",n)("personId",n.id)("isBooked",r.isBookedByPersonId().indexOf(n.id)!==-1)("allowSameTimeslot",r.allowSameTimeslot()),he("aria-label",s?W(3,11,"timeslot-select.item.selected.aria-label",$r(16,wS,r.timeLabel(),r.dateString(),a)):void 0),p(2),x(r.isBookedByPersonId().indexOf(n.id)===-1?4:5),p(2),ee(" ",a," ")}}function R2(t,i){if(t&1&&w(0,T2,7,20,"app-popover-item",8),t&2){let e=i.$implicit,n=u(4);x(e.type===n.BasketPersonType.Child&&n.bookable().childAvailable||e.type===n.BasketPersonType.Adult&&n.bookable().adultAvailable?0:-1)}}function E2(t,i){if(t&1&&we(0,R2,1,1,null,null,O2),t&2){let e=u().$implicit;xe(e.persons)}}function A2(t,i){if(t&1&&T(0,"app-icon",11),t&2){let e=u(4);b("size",e.IconSize.TINY)}}function L2(t,i){if(t&1){let e=B();qe(0),y(1,"translocoStripHtml"),h(2,"app-popover-item",9),y(3,"translocoStripHtml"),k("selectItem",function(o){N(e);let r=u(3);return I(r.selectTimeslotForParty(o))}),w(4,A2,1,1,"app-icon",11),D(5),_()}if(t&2){let e=u(),n=e.$implicit,o=e.$index,r=u(2),a=W(1,8,"addons.party-name",Z(14,w2,o+1)),s=r.isBookedByPersonId().indexOf(n.partyId)!==-1;p(2),b("timeslot",r.timeslot())("person",n)("personId",n.partyId)("isBooked",s)("allowSameTimeslot",r.allowSameTimeslot()),he("aria-label",s?W(3,11,"timeslot-select.item.selected.aria-label",$r(16,wS,r.timeLabel(),r.dateString(),a)):void 0),p(2),x(r.isBookedByPersonId().indexOf(n.partyId)!==-1?4:-1),p(),ee(" ",a," ")}}function z2(t,i){if(t&1&&(w(0,E2,2,0),w(1,L2,6,20,"app-popover-item",8)),t&2){let e=u(2);x(e.bookable().selection===e.ProductBookingSelection.PerPerson?0:-1),p(),x(e.bookable().selection===e.ProductBookingSelection.PerParty?1:-1)}}function B2(t,i){if(t&1){let e=B();h(0,"app-popover-item",12),y(1,"translocoStripHtml"),k("selectItem",function(){N(e);let o=u(2);return I(o.selectTimeslotForAll())}),T(2,"app-icon",13),D(3),y(4,"translocoStripHtml"),_()}if(t&2){let e=u(2);b("timeslot",e.timeslot())("allowSameTimeslot",e.allowSameTimeslot()),he("aria-label",W(1,5,"timeslot-select.item.select-all.aria-label",St(10,x2,e.timeLabel(),e.dateString()))),p(2),b("size",e.IconSize.TINY),p(),ee(" ",O(4,8,"timeslots.guests.all")," ")}}function F2(t,i){if(t&1&&(h(0,"ul",6),we(1,z2,2,2,null,null,M2),w(3,B2,5,13,"app-popover-item",7),_()),t&2){let e=u();b("id","timeslot-dropdown-"+e.timeslot().id),p(),xe(e.parties()),p(2),x(e.allowAll()&&e.allHasName()&&e.bookable().selection===e.ProductBookingSelection.PerPerson&&e.noOfPeople()<=(e.timeslot().allotment||100)&&e.noOfPeople()>2&&e.isBookedByPersonId().length/2<e.noOfPeople()?3:-1)}}function U2(t,i){if(t&1&&(h(0,"p"),D(1),y(2,"translate"),y(3,"siteTime"),y(4,"translocoStripHtml"),_()),t&2){let e=u(2);p(),ee(" ",W(4,5,"timeslot-select.info.name-missing",St(8,P2,O(2,1,e.bookable().title),O(3,3,e.timeslot().startTimeInUtc)))," ")}}function H2(t,i){t&1&&(h(0,"div",22),D(1),y(2,"translocoStripHtml"),_()),t&2&&(b("@foldAnimation",void 0),p(),ee(" ",O(2,2,"checkout.firstName.validationHint")," "))}function V2(t,i){t&1&&(h(0,"div",22),D(1),y(2,"translocoStripHtml"),_()),t&2&&(b("@foldAnimation",void 0),p(),ee(" ",O(2,2,"checkout.lastName.validationHint")," "))}function q2(t,i){if(t&1){let e=B();h(0,"form",14),k("submit",function(o){N(e);let r=u();return I(r.saveName(o))}),h(1,"div",15)(2,"h2",16),D(3),y(4,"translocoStripHtml"),_(),h(5,"button",17),k("click",function(){let o=N(e).$implicit;return I(o.dismiss("Cross click"))}),_()(),h(6,"div",18),w(7,U2,5,11,"p"),h(8,"div",19)(9,"div")(10,"label",20),D(11),y(12,"translocoStripHtml"),_(),T(13,"input",21),un(),w(14,H2,3,4,"div",22),_(),h(15,"div")(16,"label",23),D(17),y(18,"translocoStripHtml"),_(),T(19,"input",24),un(),w(20,V2,3,4,"div",22),_()()(),h(21,"div",25),T(22,"app-button",26),y(23,"translocoStripHtml"),_()()}if(t&2){let e=u();
47b("@foldAnimation",void 0),p(3),V(O(4,12,"timeslot-select.name-missing.title")),p(4),x(e.isOpen?7:-1),p(4),ee(" ",O(12,14,"checkout.form.firstname")," "),p(2),b("formControl",e.newFirstName),mn(),p(),x(e.newFirstName.invalid&&e.newFirstName.touched?14:-1),p(3),ee(" ",O(18,16,"checkout.form.surname")," "),p(2),b("formControl",e.newLastName),mn(),p(),x(e.newLastName.invalid&&e.newLastName.touched?20:-1),p(2),b("appearance",e.ButtonStyle.PRIMARY)("label",O(23,18,"timeslot-select.button.book"))("type",e.ButtonType.SUBMIT)}}var xS=(()=>{class t{constructor(){this.timeslot=v.required(),this.bookable=v.required(),this.parties=v.required(),this.isBookedByPersonId=v([]),this.isBooked=v(!1),this.sendDirectly=v(!1),this.allowSameTimeslot=v(!1),this.allowAll=v(!1),this.showEndTime=v(!0),this.isLoading=v(!1),this.closeCurrent=Re(),this.openTimeslot=Re(),this.selectTimeslots=Re(),this.personPopover=We("popover"),this.addName=We("addName"),this.personWithoutName=null,this.inputNames={},this.newFirstName=new zn("",Xn.required),this.newLastName=new zn("",Xn.required),this.nameModalRef=null,this.isOpen=!1,this.isFullWarning=!1,this.store=f(oe),this.ngbModal=f(jl),this.utilsService=f(Rt),this.datesService=f(Ft),this.UnitTestMode=Ul,this.siteTimePipe=f(vr),this.transloco=f(Y),this.partyNamePipe=f(SS),this.ProductBookingSelection=Tt,this.BasketPersonType=dt,this.ButtonStyle=Oe,this.ButtonType=gn,this.IconSize=Se,this.loyaltyUser=Me(this.store.select(yi)),this.language=Me(this.store.select(ht)),this._isBooked=A(()=>this.isBooked()||this.isBookedByPersonId().length>0),this.canSendDirectly=A(()=>this.sendDirectly()||this.bookable().type===Ht.Meal||this.bookable().selection===Tt.PerBooking||this.bookable().selection===Tt.PerParty&&this.parties().length===1||this.bookable().selection===Tt.PerPerson&&this.noOfPeople()===1),this.dateString=A(()=>this.datesService.formatDateRange(this.timeslot().startTimeInUtc,null,!1,this.language())),this.timeLabel=A(()=>{let e=this.siteTimePipe.transform(this.timeslot().startTimeInUtc);return this.showEndTime()&&this.timeslot().endTimeInUtc&&(e+="\u2013"+this.siteTimePipe.transform(this.timeslot().endTimeInUtc)),e}),this.availableSublabel=A(()=>{if(this.timeslot().isUnavailableDueToAllotment)return this.transloco.transform("general.fullybooked");let e=this.partyNamePipe.transform([],this.parties());return e||(this.timeslot().hasGottenAllotment?this.transloco.transform("meals.button.sublabel",{count:this.timeslot().allotment}):"")}),this.noOfPeople=A(()=>this.utilsService.partyCount(this.parties()).total),this.allHasName=A(()=>this.parties().every(e=>e.persons.every(n=>n.firstName)))}onOpenTimeslot(e){if(this.closeCurrent.emit(),this.isOpen=!this.isOpen,this.isOpen){this.timeslot().isUnavailableDueToAllotment&&(this.isFullWarning=!0,setTimeout(()=>{this.isFullWarning=!1},1e3));let n=this.bookable().selection===Tt.PerPerson,o=this.parties();n&&this.noOfPeople()===1&&!o[0].persons[0].firstName?this.selectTimeslotForPerson(o[0].persons[0]):this.canSendDirectly()?(this.nameModalRef?.close(),this.personPopover()?.close(),this.sendBooking(o[0],n?o[0].persons[0]:void 0)):(this.openTimeslot.emit(e),this.personPopover()?.open())}else this.personPopover()?.close()}selectTimeslotForPerson(e){!Ch(e)||!this.isOpen||this.timeslot().isUnavailableDueToAllotment||(e.firstName?(this.nameModalRef?.close(),this.personPopover()?.close(),this.sendBooking(void 0,e)):(this.loyaltyUser()&&this.parties()[0].persons[0]===e&&(this.newFirstName.setValue(this.loyaltyUser().firstName),this.newLastName.setValue(this.loyaltyUser().lastName)),this.personWithoutName=e,this.personPopover()?.close(),this.nameModalRef=this.ngbModal.open(this.addName(),{size:"md",container:this.UnitTestMode?".timeslot-list":"#timeslot-name-modal-tag"}),this.nameModalRef.result.then(()=>{},()=>this.cancelNameModal())))}selectTimeslotForParty(e){e&&!Ch(e)&&this.sendBooking(e)}selectTimeslotForAll(){let e=[];this.parties().forEach(n=>{n.persons.forEach(o=>{if(!this.isBookedByPersonId().includes(o.id)){let r=this.bookable();(Js(r)||o.type===dt.Child&&r.childAvailable||o.type===dt.Adult&&r.adultAvailable)&&e.push(this.getTimeslotContext(this.timeslot(),n,o))}})}),this.selectTimeslots.emit(e),this.personPopover()?.close(),this.isOpen=!1}saveName(e=null){e?.preventDefault(),this.personWithoutName&&this.newFirstName.value&&this.newLastName.value&&(this.inputNames[this.personWithoutName.id]=j(S({},this.personWithoutName),{firstName:this.newFirstName.value,lastName:this.newLastName.value}),this.sendBooking(void 0,this.personWithoutName),this.personWithoutName=null,this.newFirstName.setValue(""),this.newLastName.setValue(""))}sendBooking(e,n){this.nameModalRef?.close(),!(!this.allowSameTimeslot()&&(e&&this.isBookedByPersonId().indexOf(e.partyId)!==-1||n&&this.isBookedByPersonId().indexOf(n.id)!==-1))&&(this.timeslot().isUnavailableDueToAllotment||(this.selectTimeslots.emit([this.getTimeslotContext(this.timeslot(),e,n)]),this.personPopover()?.close(),this.isOpen=!1))}getTimeslotContext(e,n,o){return!n&&o&&(n=this.utilsService.findPart
47yOfPerson(this.parties(),o)),{bookable:this.bookable(),date:e.startTimeInUtc.toISOString().split("T")[0],timeslot:e,parties:this.parties(),party:this.bookable().selection!==Tt.PerBooking?n:void 0,person:this.bookable().selection===Tt.PerPerson?o:void 0,inputNames:this.inputNames}}cancelNameModal(){this.personWithoutName=null,this.newFirstName.setValue(""),this.newFirstName.markAsUntouched(),this.newLastName.setValue(""),this.newLastName.markAsUntouched(),this.nameModalRef?.close()}ngOnDestroy(){this.cancelNameModal()}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=H({type:t,selectors:[["app-timeslot-button"]],viewQuery:function(n,o){n&1&&Ot(o.personPopover,C2,5)(o.addName,y2,5),n&2&&xt(2)},inputs:{timeslot:[1,"timeslot"],bookable:[1,"bookable"],parties:[1,"parties"],isBookedByPersonId:[1,"isBookedByPersonId"],isBooked:[1,"isBooked"],sendDirectly:[1,"sendDirectly"],allowSameTimeslot:[1,"allowSameTimeslot"],allowAll:[1,"allowAll"],showEndTime:[1,"showEndTime"],isLoading:[1,"isLoading"]},outputs:{closeCurrent:"closeCurrent",openTimeslot:"openTimeslot",selectTimeslots:"selectTimeslots"},decls:12,vars:37,consts:[["popover","ngbPopover"],["popoverContent",""],["addName",""],["placement","bottom","autoClose","outside","data-qa","timeslot-button",1,"d-flex","flex-column",3,"btnClick","hidden","appearance","ngClass","stopPropagation","disabled","label","subLabel","tertiaryLabel","ignoreOneLiner","iconRight","role","aria-selected","aria-expanded","aria-controls","aria-label","aria-haspopup","ngbPopover","popoverTitle","container"],[1,"waitlist-button"],["name","checkFilled","data-qa","timeslot-selected-icon",3,"size"],["role","listbox","aria-multiselectable","true",1,"list-group",3,"id"],[3,"timeslot","allowSameTimeslot","aria-label"],[3,"timeslot","person","personId","isBooked","allowSameTimeslot","aria-label"],[3,"selectItem","timeslot","person","personId","isBooked","allowSameTimeslot","aria-label"],["name","person",3,"size"],["name","check",3,"size"],[3,"selectItem","timeslot","allowSameTimeslot","aria-label"],["name","group",3,"size"],[3,"submit"],[1,"modal-header"],[1,"modal-title"],["type","button","aria-label","Close",1,"btn-close",3,"click"],[1,"modal-body"],[1,"d-flex","flex-wrap"],["for","newFirstName",1,"d-block","mb-1"],["id","newFirstName","type","text","ngbAutoFocus","","appTrimSpace","","autocomplete","given-name","appAutoFillDemoData","firstName",1,"form-control",3,"formControl"],[1,"validation-message"],["for","newLastName",1,"d-block","mb-1"],["id","newLastName","type","text","appTrimSpace","","autocomplete","family-name","appAutoFillDemoData","lastName",1,"form-control",3,"formControl"],[1,"modal-footer"],[3,"appearance","label","type"]],template:function(n,o){if(n&1&&(qe(0),y(1,"customCurrency"),h(2,"app-button",3,0),y(4,"translocoStripHtml"),y(5,"translocoStripHtml"),k("btnClick",function(){return o.onOpenTimeslot(o.timeslot())})("hidden",function(){return o.isOpen&&!o.personWithoutName?o.closeCurrent.emit():null}),w(6,D2,3,3,"span",4),_(),w(7,N2,1,1,"app-icon",5),bt(8,F2,4,2,"ng-template",null,1,mt)(10,q2,24,20,"ng-template",null,2,mt)),n&2){let r=Qe(9),a=!o.timeslot().price||o.timeslot().price.priceNotDisplayed?"":"+"+O(1,20,o.timeslot().price.price);p(2),b("appearance",o._isBooked()?o.ButtonStyle.PRIMARY:o.ButtonStyle.TIMESLOT)("ngClass",iu(27,b2,o.timeslot().isUnavailableDueToAllotment,!o.canSendDirectly(),o.isFullWarning,o.timeslot().isWaitlist))("stopPropagation",!0)("disabled",o.isLoading())("label",o.timeLabel())("subLabel",o.availableSublabel())("tertiaryLabel",a)("ignoreOneLiner",!0)("iconRight",o.canSendDirectly()?null:"chevronDown")("role",o.canSendDirectly()?"option":void 0),he("aria-selected",o._isBooked())("aria-expanded",o.canSendDirectly()?void 0:o.isOpen)("aria-controls",o.isOpen?"timeslot-dropdown-"+o.timeslot().id:void 0)("aria-label",W(4,22,a?"timeslot-select.button.extra-price.label":"timeslot-select.button.label",iu(32,S2,o.timeLabel(),o.dateString(),a,o.availableSublabel())))("aria-haspopup",o.canSendDirectly()?void 0:"listbox"),b("ngbPopover",o.canSendDirectly()?void 0:r)("popoverTitle",o.canSendDirectly()?"":O(5,25,o.bookable().selection===o.ProductBookingSelection.PerParty?"timeslot-select.party.select.label":"timeslot-select.guest.select.label"))("container",o.UnitTestMode?"":"body"),p(4),x(o.timeslot().isWaitlist?6:-1),p(),x(o._isBooked()?7:-1)}},dependencies:[st,bn,ti,Xr,Bi,ei,Qr,Vl,Fi,ea,ni,na,De,Fe,vS,rt,Y,vr,Dn],styles:[`.display-large[_ng
47content-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:3.25em;line-height:1.125em;font-weight:700}.display-medium[_ngcontent-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:2.875em;line-height:1.1em;font-weight:700}.display-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:2.5em;line-height:1.125em;font-weight:700}.headline-large[_ngcontent-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:2.25em;line-height:1.14em;font-weight:700}.headline-medium[_ngcontent-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:1.875em;line-height:1.1em;font-weight:700}.headline-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:1.5em;line-height:1.13125em;font-weight:700}.title-large[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:1.5em;line-height:1.1875em;font-weight:600}.title-medium[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:1.25em;line-height:1.1875em;font-weight:600}.title-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:1em;line-height:1em;font-weight:600}.label-large[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:1em;line-height:1.1875em;font-weight:600}.label-medium[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.875em;line-height:1.3em;font-weight:600}.label-small[_ngcontent-%COMP%], ngb-popover-window .popover-header{font-family:var(--%NS%default-text-font);font-size:.75em;line-height:.875em;font-weight:600}.label-extra-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.625em;line-height:1.2em;font-weight:600}.body-large[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:1em;line-height:1.1875em;font-weight:400}
47.body-medium[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.875em;line-height:1.1em;font-weight:400}.body-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.75em;line-height:1.125em;font-weight:400}.body-extra-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.625em;line-height:.75em;font-weight:400} ngb-popover-window{width:auto!important;padding-left:0!important;padding-right:0!important;z-index:var(--%NS%z-index-prioritized)!important} ngb-popover-window .popover-header{color:var(--%NS%list-group-item-popover-text);background-color:var(--%NS%list-group-item-popover-hover)} ngb-popover-window .popover-body{padding:0} #timeslot-name-modal-tag ngb-modal-backdrop{z-index:calc(var(--%NS%z-index-prioritized) - 1)!important} #timeslot-name-modal-tag ngb-modal-window{z-index:var(--%NS%z-index-prioritized)}[_nghost-%COMP%]{position:relative;display:block;min-height:max-content}[_nghost-%COMP%] app-button[_ngcontent-%COMP%]{height:100%}[_nghost-%COMP%] app-button[_ngcontent-%COMP%] .btn .btn__sub-label{white-space:normal}[_nghost-%COMP%] app-button[_ngcontent-%COMP%] .btn .icon{position:absolute;right:.5em}[_nghost-%COMP%] app-button.dropdown[_ngcontent-%COMP%]{min-width:9.375em}[_nghost-%COMP%] app-button.timeslot-full[_ngcontent-%COMP%] .btn__label{text-decoration:line-through;opacity:.5}[_nghost-%COMP%] app-button.timeslot-full[_ngcontent-%COMP%] .btn__sub-label{color:var(--%NS%validation-error-color);font-weight:700}[_nghost-%COMP%] app-button.timeslot-full[_ngcontent-%COMP%] .btn:is(:hover,:focus-visible,:active) .btn__sub-label{color:inherit}[_nghost-%COMP%] app-button.timeslot-full.clicked[_ngcontent-%COMP%] .btn__sub-label{animation:_ngcontent-%COMP%_shake .82s cubic-bezier(.36,.07,.19,.97) both;transform:translateZ(0)}[_nghost-%COMP%] app-button.waitlist[_ngcontent-%COMP%] .btn__label{text-decoration:line-through;opacity:.5}[_nghost-%COMP%] app-button.waitlist[_ngcontent-%COMP%] .waitlist-button[_ngcontent-%COMP%]{display:inline-block;color:var(--%NS%button-timeslot-background);background-color:var(--%NS%button-timeslot-text-color);border-radius:var(--%NS%radius-regular);margin-left:1em;padding:.25em .5em;font-size:.8em;text-transform:none}[_nghost-%COMP%] app-button.waitlist[_ngcontent-%COMP%]:hover .waitlist-button[_ngcontent-%COMP%]{color:var(--%NS%button-timeslot-active-background);background-color:var(--%NS%button-timeslot-active-text-color)}[_nghost-%COMP%] .icon-checkFilled[_ngcontent-%COMP%]{position:absolute;top:4px;right:4px;color:var(--%NS%color-primary)}[_nghost-%COMP%] .icon-checkFilled[_ngcontent-%COMP%] svg circle{fill:var(--%NS%color-on-primary)}@keyframes _ngcontent-%COMP%_shake{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)}}form[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{display:inline;width:auto;margin-right:.5em}.list-group[_ngcontent-%COMP%] app-icon[_ngcontent-%COMP%]{position:relative;top:-.0625em;left:-.1875em} 48/*# sourceMappingURL=timeslot-button.component.css.map */`],changeDetection:1})}}return t})();var PS=()=>[],j2=(t,i)=>i.id,$2=(t,i)=>i.suggestedTime;function W2(t,i){if(t&1&&(h(0,"span",10),D(1),y(2,"translocoStripHtml"),_()),t&2){let e=u(3);p(),ee(" ",O(2,1,"timeslot-select.date."+e.selectionKey())," ")}}function G2(t,i){if(t&1){let e=B();h(0,"div",12,1)(2,"app-timeslot-button",13),k("selectTimeslots",function(o){N(e);let r=u(3);return I(r.onSelectTimeslots(o))}),_()()}if(t&2){let e=i.$implicit,n=u(3);p(2),b("timeslot",e)("bookable",n.bookable())("parties",n.parties())("isBookedByPersonId",n._timeslotsBooked()[e.id]||Pe(10,PS))("isBooked",n._timeslotsBooked()[e.id]?.length===0)("sendDirectly",n.sendDirectly())("allowSameTimeslot",n.allowSameTimeslot())("allowAll",n.allowAll())("showEndTime",n.showEndTime())("isLoading",n.isLoading())}}function Y2(t,i){if(t&1&&(h(0,"fieldset",6)(1,"legend",7)(2,"span",8),T(3,"app-icon",9),h(4,"span"),D(5),_()(),w(6,W2,3,3,"span",10),_(),h(7,"app-grid",11),we(8,G2,3,11,"div",12,j2),_(
48)()),t&2){let e=i.$implicit,n=u(2);p(5),V(e),p(),x(n.hasRepetition()?6:-1),p(2),xe(n.groupedTimeslots()[e])}}function K2(t,i){if(t&1&&we(0,Y2,10,2,"fieldset",6,Xe),t&2){let e=u();xe(e.Objectkeys(e.groupedTimeslots()))}}function Z2(t,i){if(t&1){let e=B();h(0,"div",14,1)(2,"app-button",15),y(3,"slice"),k("btnClick",function(){let o=N(e).$implicit,r=u(2);return I(r.selectSuggestedTime(o))}),_()()}if(t&2){let e=i.$implicit,n=u(2);p(2),b("appearance",n.ButtonStyle.TIMESLOT)("stopPropagation",!0)("disabled",n.isLoading())("label",Rn(3,4,e.suggestedTime,0,5))}}function Q2(t,i){if(t&1&&(h(0,"app-grid",5),we(1,Z2,4,8,"div",14,$2),_()),t&2){let e=u();p(),xe(e.suggestedMealPath()?.groupTimes||Pe(0,PS))}}var MS=(()=>{class t{constructor(){this.store=f(oe),this.dateUtilsService=f(Ft),this.bookable=v.required(),this.suggestedMealPath=v(null),this.parties=v([]),this.orderRows=v([]),this.timeslotsBooked=v(void 0),this.showEndTime=v(!0),this.allowSameTimeslot=v(!1),this.allowAll=v(!1),this.hasRepetition=v(!1),this.isLoading=v(!1),this.sendDirectly=v(!1),this.selectTimeslot=Re(),this.selectSuggested=Re(),this.language=Me(this.store.select(ht)),this.groupedTimeslots=A(()=>Xb(Qb(Jb(Zb(Yb(this.bookable()),Kb(this.orderRows(),this.bookable().configId)),el(this.bookable()))),this.language(),this.dateUtilsService)),this.selectionKey=A(()=>["per-person","per-party","per-booking"][this.bookable().selection-1]),this._timeslotsBooked=A(()=>this.timeslotsBooked()?eS(this.timeslotsBooked()):this.getTimeslotsBooked(this.orderRows())),this.Objectkeys=Object.keys,this.ButtonStyle=Oe}onSelectTimeslots(e){this.selectTimeslot.emit(e)}selectSuggestedTime(e){let n=this.suggestedMealPath();n?.forMealGroupIds.length&&this.selectSuggested.emit({forMealIds:n.forMealGroupIds,suggestedTime:e.suggestedTime})}getTimeslotsBooked(e){return e.filter(n=>n.timeslotIdentifier&&n.configId===this.bookable().configId).reduce((n,o)=>{let r=o.timeslotIdentifier,a=[o.forPartyId,...o.forPersonId||[]].filter(s=>!!s);return j(S({},n),{[r]:[...n[r]?n[r]:[],...a]})},{})}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=H({type:t,selectors:[["app-timeslot-select"]],inputs:{bookable:[1,"bookable"],suggestedMealPath:[1,"suggestedMealPath"],parties:[1,"parties"],orderRows:[1,"orderRows"],timeslotsBooked:[1,"timeslotsBooked"],showEndTime:[1,"showEndTime"],allowSameTimeslot:[1,"allowSameTimeslot"],allowAll:[1,"allowAll"],hasRepetition:[1,"hasRepetition"],isLoading:[1,"isLoading"],sendDirectly:[1,"sendDirectly"]},outputs:{selectTimeslot:"selectTimeslot",selectSuggested:"selectSuggested"},decls:8,vars:6,consts:[["showSuggested",""],["gridItem",""],["data-qa","timeslot-suggested-meal-form",1,"mb-3",3,"hidden"],["id","show-suggested","type","checkbox","data-qa","timeslot-suggested-meal-checkbox",3,"disabled"],["for","show-suggested","data-qa","timeslot-suggested-meal-label",1,"form-check-label"],[1,"d-block","mb-3"],["data-qa","timeslot-date-group"],["data-qa","timeslot-date-header",1,"mb-2","d-flex","justify-content-between"],["data-qa","timeslot-date",1,"label-large"],["name","calendar",1,"me-2"],["data-qa","timeslot-repetition",1,"repetition","label-small"],["data-qa","timeslot-grid",1,"d-block","mb-3"],["data-qa","timeslot-cell",1,"timeslot-cell","addons__timeslot-wrapper"],[3,"selectTimeslots","timeslot","bookable","parties","isBookedByPersonId","isBooked","sendDirectly","allowSameTimeslot","allowAll","showEndTime","isLoading"],[1,"timeslot-cell","addons__timeslot-wrapper"],[1,"d-flex","flex-column",3,"btnClick","appearance","stopPropagation","disabled","label"]],template:function(n,o){if(n&1&&(h(0,"form",2),T(1,"input",3,0),h(3,"label",4),D(4),y(5,"translocoStripHtml"),_()(),w(6,K2,2,0)(7,Q2,3,1,"app-grid",5)),n&2){let r=Qe(2);b("hidden",!o.suggestedMealPath()),p(),b("disabled",o.isLoading()),p(3),ee(" ",O(5,4,"meals.select-same-time.button")," "),p(2),x(!o.suggestedMealPath()||!r.checked?6:7)}},dependencies:[De,Fe,_S,ti,Xr,Qr,Vl,Fi,xS,Ll,Y],styles:[`.display-large[_ngcontent-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:3.25em;line-height:1.125em;font-weight:700}
48.display-medium[_ngcontent-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:2.875em;line-height:1.1em;font-weight:700}.display-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:2.5em;line-height:1.125em;font-weight:700}.headline-large[_ngcontent-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:2.25em;line-height:1.14em;font-weight:700}.headline-medium[_ngcontent-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:1.875em;line-height:1.1em;font-weight:700}.headline-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:1.5em;line-height:1.13125em;font-weight:700}.title-large[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:1.5em;line-height:1.1875em;font-weight:600}.title-medium[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:1.25em;line-height:1.1875em;font-weight:600}.title-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:1em;line-height:1em;font-weight:600}.label-large[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:1em;line-height:1.1875em;font-weight:600}.label-medium[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.875em;line-height:1.3em;font-weight:600}.label-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.75em;line-height:.875em;font-weight:600}.label-extra-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.625em;line-height:1.2em;font-weight:600}.body-large[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:1em;line-height:1.1875em;font-weight:400}
48.body-medium[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.875em;line-height:1.1em;font-weight:400}.body-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.75em;line-height:1.125em;font-weight:400}.body-extra-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.625em;line-height:.75em;font-weight:400}.repetition[_ngcontent-%COMP%]{margin-top:8px}.timeslot-cell[_ngcontent-%COMP%]{position:relative;min-height:max-content}.timeslot-cell[_ngcontent-%COMP%] app-button[_ngcontent-%COMP%]{height:100%} 49/*# sourceMappingURL=timeslot-select.component.css.map */`],changeDetection:1})}}return t})();var yh=(()=>{class t{constructor(){this.el=f(Ut),this.control=f(Zr),this.rootStore=f(oe),this.dataType=v(void 0,{alias:"appAutoFillDemoData"})}ngOnInit(){if(this.rootStore.selectSignal(q_)()===!1)return;this.initializeTestData(),(["localhost","127.0.0.1","app"].includes(location.hostname)||location.hostname.endsWith("guest-house.app"))&&this.dataType()&&setTimeout(()=>{let r=Math.floor(Math.random()*this.testData[this.dataType()].length);this.control.control?this.control.control?.getRawValue()||this.control.control?.setValue(this.testData[this.dataType()][r]):this.el.nativeElement.value||(this.el.nativeElement.value=this.testData[this.dataType()][r]),this.control.control?.markAsDirty()},1e3)}initializeTestData(){let n=new Array(4).fill(null).map((o,r)=>
49`email_${Math.floor(Math.random()*1e6)}@customers.tailoredsystems.se`);this.testData={firstName:["Liam","Nora","Caleb","Zoe","Julian","Leah","Miles","Hazel","Theo","Ivy","Elias","Ruby","Adrian","Clara","Rowan","Naomi","Felix","Elena","Silas","Lucy","Owen","Stella","Isaac","Maya","Jasper","Sadie","Roman","Violet","Ezra","Aurora","Cole"],lastName:["Bennett","Foster","Hayes","Sullivan","Parker","Reed","Brooks","Price","Morris","Powell","Ward","Coleman","Hughes","Russell","Griffin","Hayward","Porter","Bryant","Gibson","Ellis","West","Warren","Chapman","Stephens","Hudson","Pearson","Carr","Franklin","Watson","Palmer"],email:n,streetAddress:["82 Maple Ave","417 Birch Ln","965 Willow Dr","230 Spruce Ct"],zip:["11238","30318","60614","75219"],city:["\xD6rebro","Stockholm","V\xE4ster\xE5s","Karlstad"],tel:["707957130"],company:["Company 1","Company 2","Company 3","Company 4"],companyOrg:["Org 1","Org 2","Org 3","Org 4"],bookingNumber:["NO000S0078008","NO000S0089511","NO000S0089512","NO000S0098928"]}}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275dir=tn({type:t,selectors:[["","appAutoFillDemoData",""]],inputs:{dataType:[1,"appAutoFillDemoData","dataType"]}})}}return t})();var Nr=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=pr({type:t})}static{this.\u0275inj=dr({providers:[ty,Y,M_,Dn,rt,vr,{provide:ql,useClass:uo},Di,Tc,wd,Ks],imports:[st,ti,Fi,Bl,O_,ni,_g,Sd,vd,De,hd,MS,rp,oy,yS,bS,Wd,er,gS,ja,tr,nr,ip]})}}return t})();var J2=["calendarDropdown"],X2=["personsDropdown"],eR=["moreDropdown"],$a=t=>[t],ap=t=>({date:t}),OS=t=>({current:t}),DS=(t,i)=>({date:t,parties:i}),tR=()=>({ariaIdPrefix:"mobile"}),nR=()=>({ariaIdPrefix:"desktop"});function iR(t,i){t&1&&Et(0)}function oR(t,i){if(t&1&&(h(0,"div",8),bt(1,iR,1,0,"ng-container",30),_()),t&2){u(2);let e=Qe(2);p(),b("ngTemplateOutlet",e)("ngTemplateOutletContext",Pe(2,tR))}}function rR(t,i){t&1&&Et(0)}function aR(t,i){if(t&1&&(h(0,"div",8),bt(1,rR,1,0,"ng-container",22),_()),t&2){u(2);let e=Qe(4);p(),b("ngTemplateOutlet",e)}}function sR(t,i){if(t&1&&(h(0,"div",8),T(1,"a",31),y(2,"translocoStripHtml"),_()),t&2){let e=u(3);p(),b("href",e.iPreferUrl,ut)("innerHTML",O(2,2,"search.iprefer"),Mt)}}function lR(t,i){if(t&1){let e=B();h(0,"div",13)(1,"div",8)(2,"label",26),D(3,"Promocode"),_(),h(4,"app-promocode",27),fn("promocodeChange",function(o){N(e);let r=u(2);return hn(r.promocode,o)||(r.promocode=o),I(o)}),k("promocodeChange",function(o){N(e);let r=u(2);return I(r.handleChangePromocode(o))}),_()(),w(5,sR,3,4,"div",8),_()}if(t&2){let e=u(2);p(4),Pn("promocode",e.promocode),b("showInput",!0)("disabled",e.isLoading()),p(),x(e.iPreferUrl?5:-1)}}function cR(t,i){t&1&&Et(0)}function dR(t,i){if(t&1&&bt(0,cR,1,0,"ng-container",30),t&2){u(2);let e=Qe(2);b("ngTemplateOutlet",e)("ngTemplateOutletContext",Pe(2,nR))}}function pR(t,i){t&1&&Et(0)}function uR(t,i){if(t&1&&(T(0,"a",28),y(1,"translocoStripHtml")),t&2){let e=u(2);b("href",e.iPreferUrl,ut)("innerHTML",O(1,2,"search.iprefer"),Mt)}}function mR(t,i){if(t&1){let e=B();h(0,"div",5)(1,"div",6)(2,"app-button",7),y(3,"translocoStripHtml"),k("btnClick",function(){N(e);let o=u();return I(o.navigateMobileTab("calendar",o.isOpenCalendar))}),_(),w(4,oR,2,3,"div",8),_(),h(5,"div",9)(6,"app-button",10),y(7,"translocoStripHtml"),k("btnClick",function(){N(e);let o=u();return I(o.navigateMobileTab("persons",o.isOpenPersons))}),_(),w(8,aR,2,1,"div",8),_(),h(9,"div",11)(10,"app-button",12),y(11,"translocoStripHtml"),y(12,"translocoStripHtml"),k("btnClick",function(){N(e);let o=u();return I(o.navigateMobileTab("more",o.isOpenMore))}),_(),w(13,lR,6,4,"div",13),_(),h(14,"app-button",14),y(15,"translocoStripHtml"),k("click",function(){N(e);let o=u();return I(o.search())}),_()(),h(16,"div",15)(17,"div",16,2),k("openChange",function(o){N(e);let r=u();return I(r.isOpenCalendar=o)}),T(19,"app-button",17),y(20,"translocoStripHtml"),h(21,"div",18)(22,"div",19),w(23,dR,1,3,"ng-container"),_()()(),h(24,"div",20,3),k("openChange",function(o){N(e);let r=u();return I(r.isOpenPersons=o)}),T(26,"app-button",21),y(27,"translocoStripHtml"),h(28,"div",18)(29,"div",19),bt(30,pR,1,0,"ng-container",22),_()()(),h(31,"div",23,4),k("openChange",function(o){N(e);let r=u();return I(r.isOpenMore=o)}),T(33,"app-button",24),y(34,"translocoStripHtml"),y(35,"translocoStripHtml"),h(36,"div",25)(37,"div",19)(38,"label",26),D(39,"Promocode"),_(),h(40,"app-promocode",27),fn("promocodeChange",function(o){N(e);let r=u();return hn(r.promocode,o)||(r.promocode=o),I(o)}),k("promocodeChange",function(o){N(e);let r=u();return I(r.handleChangePromocode(o))}),_()(),w(41,uR,2,4,"a",28),_()(),h(42,"app-button",29),y(43,"translocoStripHtml"),y(44,"translocoStripHtml"),k("click",function(){N(e);let o=u();return I(o.search())}),_()()}if(t&2){let e=u(),n=Qe(4);p(2),b("label",e.dateString())("iconRight",e.isOpenCalendar?"chevronUp":"chevronDown")("size",e.ButtonSize.LARGE)("additionalClasses",Z(76,$a,e.isOpenCalendar?"activated":"")),he("aria-label",W(3,46,"search.horizontal.calendar.label",Z(78,ap,e.dateString()))),p(2),x(e.isOpenCalendar?4:-1),p(2),b("label",e.partiesString())("iconRight",e.isOpenPersons?"chevronUp":"chevronDown")("size",e.ButtonSize.LARGE)("additionalClasses",Z(80,$a,e.isOpenPersons?"activated":"")),he("aria-label",W(7,49,"search.parties.info",Z(82,OS,e.partiesString()))),p(2),x(e.isOpenPersons?8:-1),p(2),b("label",O(11,52,"search.horizontal.more-button.label"))("iconRight",e.isOpenMore?"chevronUp":"chevronDown")("size",e.ButtonSize.LARGE)("additionalClasses",Z(84,$a,e.isOpenMore?"activated":"")),he("aria-label",W(12,54,"search.horizontal.more.label",Z(86,ap,e.dateString()))),p(3),x(e.isOpenMore?13:-1),p(),b("appearance",e.ButtonStyle.PRIMARY)("size",e.ButtonSize.LARGE),he("aria-label",W(15,57,"search.horizontal.search-button.label",St(88,DS,e.dateString(),e.partiesString()))),p(5),b("label",e.dateString())("iconRight",e.isOpenCalendar?"chevronUp":"chevronDown")("size",e.ButtonSize.LARGE)("additionalClasses",Z(91,$a,e.isOpenCalendar?"activated":"")),he("aria-label",W(20,60,"search.horizontal.calendar.label",Z(93,ap,e.dateString()))),p(4),x(e.isOpenCalendar?23:-1),p(3),b("label",e.partiesString())("iconRight",e.isOpenPersons?"chevronUp":"chevronDown")("size",e.ButtonSize.LARGE)("additionalClasses",Z(95,$a,e.isOpenPersons?"activated":"")),he("aria-label",W(27,63,"search.parties.info",Z(97,OS,e.partiesString()))),p(4),b("ngTemplateOutlet",n),p(3),b("label",O(34,66,"search.horizontal.more-button.label"))("iconRight",e.isOpenMore?"chevronUp":"chevronDown")("size",e.ButtonSize.LARGE)("additionalClasses",Z(99,$a,e.isOpenMore?"activated":"")),he("aria-label",W(35,68,"search.horizontal.more.label",Z(101,ap,e.dateString()))),p(7),Pn("promocode",e.promocode),b("showInput",!0)("disabled",e.isLoading()),p(),x(e.iPreferUrl?41:-1),p(),b("label",Dt(O(43,71,"search.search-button.label")))("appearance",e.ButtonStyle.PRIMARY),he("aria-label",W(44,73,"search.horizontal.search-button.label",St(103,DS,e.dateString(),e.partiesString())))}}function hR(t,i){if(t&1){let e=B();h(0,"app-calendar",32),k("calendarNavigate",function(o){N(e);let r=u();return I(r.handleCalendarNavigate(o))})("calendarChange",function(o){N(e);let r=u();return I(r.handleCalendarChange(o))})("crossSellTriggered",function(o){N(e);let r=u();return I(r.onCrossSellTriggered(o))}),_()}if(t&2){let e=i.ariaIdPrefix,n=u();b("fromDate",n.fromDate())("nights",n.nights())("priceCalendarEnabled",n.priceCalendarEnabled)("minNights",n.priceResult()?.minLengthOfStay||0)("maxNights",n.priceResult()?.maxLengthOfStay||10)("searchType",n.searchType())("priceForDates",n.priceResult()?.priceForDates||null)("language",n.defaultLanguage())("fetchingDataLoader",n.isLoadingPriceCalendar(
49))("ariaIdPrefix",e)("displayDayByDayPrices",n.displayDayByDayPrices())("displayOneNightPriceNonSelected",n.priceResult()?.displayOneNightPriceNonSelected??!1)("crossSellNights",n.priceResult()?.forNights||null)}}function fR(t,i){if(t&1){let e=B();h(0,"app-party-edit",33),fn("partiesChange",function(o){N(e);let r=u();return hn(r.parties,o)||(r.parties=o),I(o)}),_()}if(t&2){let e=u();Pn("parties",e.parties),b("searchType",e.searchType())("nights",e.nights())("priceCalendarEnabled",e.priceCalendarEnabled)("pricePerPartyForSelectedDay",e.pricePerParty())("ageCategories",e.ageCategories)("language",e.defaultLanguage())("isLoading",e.isLoading())("isLoadingPriceCalendar",e.isLoadingPriceCalendar())}}var gR=" \u2022 ",NS=(()=>{class t extends ci{constructor(){super(),this.priceResult=ne(null),this.isOpenCalendar=!1,this.isOpenPersons=!1,this.isOpenMore=!1,this.calendarDropdown=We("calendarDropdown"),this.personsDropdown=We("personsDropdown"),this.moreDropdown=We("moreDropdown"),this.searchService=f(fi),this.priceCalendarService=f(Di),this.crossSellService=f(Va),this.bookingService=f(Yi),this.dateUtils=f(Ft),this.utils=f(Rt),this.processed=f(ae),this.translatePipe=f(Y),this.fromDate=ne(this.dateUtils.newDateOnlyString()),this.defaultFromDate=this.fromDate(),this.currentMonth=ne(this.fromDate()),this.toDate=A(()=>this.dateUtils.addDays(this.fromDate(),this.nights())),this.nights=ne(1),this.priceCalendarEnabled=!1,this.searchType=ne(J.Overnight),this.promocode=ne(""),this.iPreferUrl="",this.parties=ne([]),this.ageCategories=[],this.isLoading=this.store.selectSignal(Bo),this.isLoadingPriceCalendar=this.store.selectSignal(ha),this.BookingSearchType=J,this.ButtonStyle=Oe,this.ButtonSize=ct,this.IconSize=Se,this.personCount=A(()=>this.utils.partyCount(this.parties()).total),this.pricePerParty=A(()=>this.priceCalendarService.getPricePerParty(this.priceResult(),this.parties(),this.fromDate())),this.displayDayByDayPrices=A(()=>this.priceResult()?.displayDayByDayPrices??!1),this.dateString=A(()=>this.dateUtils.formatDateRange(this.fromDate(),this.toDate(),!1,this.defaultLanguage())),this.partiesString=A(()=>{let e=this.translatePipe.transform(this.parties().length>1?"search.rooms-button.label.plural":"search.rooms-button.label.singular",{count:this.parties().length}),n=this.translatePipe.transform(this.personCount()>1?"search-summary.persons":"search-summary.person",{count:this.personCount()});return`${e}${gR}${n}`}),et(()=>{this.priceResult.set(null),this.fetchPrices(this.currentMonth())})}isLoadedHandler(){super.isLoadedHandler(),this.ageCategories=this.processed.getInit().ageCategories,this.priceCalendarEnabled=this.processed.getInit().globals.showPriceCalendarPrices,this.iPreferUrl=this.processed.getInit().globals.iPreferUrl??"",this.parties.set([this.searchService.createParty(J.Overnight)]);let e=Xo(this.processed.getWidget(),this.defaultFromDate);e&&(e===this.currentMonth()?this.fetchPrices(e):this.currentMonth.set(e),this.priceCalendarEnabled||this.tryPreselectWidgetCalendarStartDate(null))}navigateMobileTab(e,n){n?this.isOpenCalendar=this.isOpenPersons=this.isOpenMore=!1:(this.isOpenCalendar=e==="calendar",this.isOpenPersons=e==="persons",this.isOpenMore=e==="more")}closeAllTabs(e){e.stopPropagation(),this.isOpenCalendar=this.isOpenPersons=this.isOpenMore=!1,this.calendarDropdown()?.close(),this.personsDropdown()?.close(),this.moreDropdown()?.close()}handleCalendarNavigate(e){this.currentMonth.set(`${e.next.year}-${e.next.month}-01`)}handleCalendarChange(e){e?.fromDate&&(this.fromDate.set(e.fromDate),this.nights.set(e.nights))}onCrossSellTriggered(e){let o=e.date.split("-");if(o.length!==3)return;let r=Number(o[0]),a=Number(o[1]),s=Number(o[2]),l=this.processed.getInit().resort.siteName;this.store.dispatch(No({currentHotelName:l,reason:e.reason})),this.crossSellService.fetchCrossSell({year:r,month:a,day:s,nights:e.nights,searchType:this.searchType(),parties:kt(this.parties())}).pipe(Ke(1)).subscribe({next:c=>{this.store.dispatch(c.length?Io({alternatives:c}):ko())},error:()=>{this.store.dispatch(To())}})}handleChangePromocode(e){this.store.dispatch(Hi({promoCode:e}))}search(){let e=window.bookingWidget?.backendUrl||window.location.origin,n={language:this.language(),searchType:this.searchType(),from:this.fromDate(),to:this.toDate(),parties:this.parties(),promoCode:this.promocode()},o=this.bookingService.createQueryParamsForSearchRequest(n,null,e);window.open(o,"_blank")}fetchPrices(e){this.priceCalendarEnabled&&this.priceCalendarService.fetchPriceCalenderData(this.searchType(),e,this.nights(),this.parties(),"",void 0,void 0,n=>{this.priceResult.set(n),this.tryPreselectWidgetCalendarStartDate(n)})}tryPreselectWidgetCalendarStartDate(e){if(this.fromDate()!==this.defaultFromDate)return;let n=Xo(this.processed.getWidget(),this.defaultFromDate);n&&(this.priceCalendarEnabled&&(!e?.priceForDates||e.priceForDates[n]?.isAvailable===!1)||this.fromDate.set(n))}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=H({type:t,selectors:[["ng-component"]],viewQuery:function(n,o){n&1&&Ot(o.calendarDropdown,J2,5)(o.personsDropdown,X2,5)(o.moreDropdown,eR,5),n&2&&xt(3)},hostBindings:function(n,o){n&1&&k("keydown.escape",function(a){return o.closeAllTabs(a)},_o)},features:[vo([uo,rt,Rt,Di,Y,Gi]),re],decls:5,vars:1,consts:[["searchTemplate",""],["partyTemplate",""],["calendarDropdown","ngbDropdown"],["personsDropdown","ngbDropdown"],["moreDropdown","ngbDropdown"],[1,"search-box","mobile","d-flex","flex-column","d-md-none"],[1,"calendar"],["iconLeft","calendar","data-qa","search-horizontal-mobile-calendar-button",3,"btnClick","label","iconRight","size","additionalClasses","aria-label"],[1,"content"],[1,"persons"],["iconLeft","person","data-qa","search-horizontal-mobile-persons-button",3,"btnClick","label","iconRight","size","additionalClasses","aria-label"],[1,"more"],["data-qa","search-horizontal-mobile-more-button",3,"btnClick","label","iconRight","size","additionalClasses","aria-label"],["data-qa","search-horizontal-mobile-more-content"],["label","search","data-qa","search-horizontal-mobile-search-button",1,"search",3,"click","appearance","size","aria-label"],[1,"search-box","de
49sktop","d-none","d-md-flex","flex-row"],["ngbDropdown","","appCloseOnOutsideClick","","data-qa","search-horizontal-desktop-calendar-button",1,"calendar",3,"openChange"],["ngbDropdownToggle","","iconLeft","calendar","data-qa","search-horizontal-desktop-calendar-button",3,"label","iconRight","size","additionalClasses","aria-label"],["ngbDropdownMenu",""],["ngbDropdownItem",""],["ngbDropdown","","appCloseOnOutsideClick","","data-qa","search-horizontal-desktop-persons-button",1,"persons",3,"openChange"],["ngbDropdownToggle","","iconLeft","person","data-qa","search-horizontal-desktop-persons-button",3,"label","iconRight","size","additionalClasses","aria-label"],[4,"ngTemplateOutlet"],["ngbDropdown","","appCloseOnOutsideClick","",1,"more",3,"openChange"],["ngbDropdownToggle","","data-qa","search-horizontal-desktop-more-button",3,"label","iconRight","size","additionalClasses","aria-label"],["ngbDropdownMenu","","data-qa","search-horizontal-desktop-more-content"],[1,"label-medium","mb-2"],["data-qa","promocode-input",3,"promocodeChange","promocode","showInput","disabled"],["ngbDropdownItem","","target","_blank","data-qa","search-iprefer-link",1,"iprefer","body-medium",3,"href","innerHTML"],["data-qa","search-horizontal-desktop-search-button",1,"search",3,"click","label","appearance","aria-label"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["target","_blank","data-qa","search-iprefer-link",1,"iprefer","body-medium",3,"href","innerHTML"],[3,"calendarNavigate","calendarChange","crossSellTriggered","fromDate","nights","priceCalendarEnabled","minNights","maxNights","searchType","priceForDates","language","fetchingDataLoader","ariaIdPrefix","displayDayByDayPrices","displayOneNightPriceNonSelected","crossSellNights"],[3,"partiesChange","parties","searchType","nights","priceCalendarEnabled","pricePerPartyForSelectedDay","ageCategories","language","isLoading","isLoadingPriceCalendar"]],template:function(n,o){n&1&&(w(0,mR,45,106),bt(1,hR,1,13,"ng-template",null,0,mt)(3,fR,1,9,"ng-template",null,1,mt)),n&2&&x(o.isReady()?0:-1)},dependencies:[st,Jn,ni,$t,rn,on,nn,De,Nr,er,tr,nr,Gi,Y],styles:[`.display-large{font-family:var(--%NS%default-heading-font);font-size:3.25em;line-height:1.125em;font-weight:700}.display-medium{font-family:var(--%NS%default-heading-font);font-size:2.875em;line-height:1.1em;font-weight:700}.display-small{font-family:var(--%NS%default-heading-font);font-size:2.5em;line-height:1.125em;font-weight:700}.headline-large{font-family:var(--%NS%default-heading-font);font-size:2.25em;line-height:1.14em;font-weight:700}.headline-medium{font-family:var(--%NS%default-heading-font);font-size:1.875em;line-height:1.1em;font-weight:700}.headline-small{font-family:var(--%NS%default-heading-font);font-size:1.5em;line-height:1.13125em;font-weight:700}.title-large{font-family:var(--%NS%default-text-font);font-size:1.5em;line-height:1.1875em;font-weight:600}.title-medium{font-family:var(--%NS%default-text-font);font-size:1.25em;line-height:1.1875em;font-weight:600}.title-small{font-family:var(--%NS%default-text-font);font-size:1em;line-height:1em;font-weight:600}.label-large{font-family:var(--%NS%default-text-font);font-size:1em;line-height:1.1875em;font-weight:600}.label-medium{font-family:var(--%NS%default-text-font);font-size:.875em;line-height:1.3em;font-weight:600}.label-small{font-family:var(--%NS%default-text-font);font-size:.75em;line-height:.875em;font-weight:600}.label-extra-small{font-family:var(--%NS%default-text-font);font-size:.625em;line-height:1.2em;font-weight:600}.body-large{font-family:var(--%NS%default-text-font);font-size:1em;line-height:1.1875em;font-weight:400}.body-medium{font-family:var(--%NS%default-text-font);font-size:.875em;line-height:1.1em;font-weight:400}.body-small{font-family:var(--%NS%default-text-font);font-size:.75em;line-height:1.125em;font-weight:400}.body-extra-small{font-family:var(--%NS%default-text-font);font-size:.625em;line-height:.75em;font-weight:400}.search-box{justify-content:space-between;align-items:center}.search-box .popover{font-family:var(--%NS%default-text-font);font-size:.9em}.search-box.mobile>app-button{display:block;padding:.75em;width:100%}.search-box [ngbDropdown]{display:flex}.search-box [ngbDropdown] [ngbDropdownMenu]{background-color:var(--%NS%body-background-color);border-radius:var(--%NS%radius-regular);
49box-shadow:var(--%NS%shadow-default);overflow:visible}.search-box [ngbDropdown] [ngbDropdownMenu] [ngbDropdownItem]:active,.search-box [ngbDropdown] [ngbDropdownMenu] [ngbDropdownItem]:hover{background-color:var(--%NS%body-background-color)}.search-box .calendar,.search-box .persons,.search-box .more{width:100%}.search-box .calendar .content,.search-box .persons .content,.search-box .more .content{background-color:var(--%NS%body-background-color);border-bottom:1px solid var(--%NS%border-color);padding:.75em}.search-box .calendar [ngbDropdownItem],.search-box .persons [ngbDropdownItem],.search-box .more [ngbDropdownItem]{padding:.75em}.search-box .calendar>app-button,.search-box .persons>app-button,.search-box .more>app-button{display:block;width:100%;border-bottom:1px solid var(--%NS%border-color)}@media(min-width:768px){.search-box .calendar>app-button,.search-box .persons>app-button,.search-box .more>app-button{border-bottom:none}}.search-box .calendar>app-button .btn,.search-box .persons>app-button .btn,.search-box .more>app-button .btn{color:var(--%NS%modal-color);background-color:var(--%NS%modal-background-color);border-radius:0}.search-box .calendar>app-button:hover .btn,.search-box .calendar>app-button .activated .btn,.search-box .persons>app-button:hover .btn,.search-box .persons>app-button .activated .btn,.search-box .more>app-button:hover .btn,.search-box .more>app-button .activated .btn{color:var(--%NS%default-text-color);background-color:var(--%NS%alternate-background-color)}.search-box .calendar>app-button .label-center,.search-box .persons>app-button .label-center,.search-box .more>app-button .label-center{text-transform:none;width:100%;justify-content:flex-start!important}.search-box .calendar>app-button .label-center .btn__label,.search-box .persons>app-button .label-center .btn__label,.search-box .more>app-button .label-center .btn__label{font-size:1em;font-weight:400}.search-box .calendar>app-button .label-center app-icon:last-child,.search-box .persons>app-button .label-center app-icon:last-child,.search-box .more>app-button .label-center app-icon:last-child{margin-left:auto}.search-box .calendar [ngbDropdownItem]{min-width:32.125em}@media(min-width:768px){.search-box .calendar>app-button .label-center{min-width:10em}}.search-box .calendar>app-button .btn{border-radius:var(--%NS%radius-regular) var(--%NS%radius-regular) 0 0}@media(min-width:768px){.search-box .calendar>app-button .btn{border-radius:var(--%NS%radius-regular) 0 0 var(--%NS%radius-regular)}}@media(min-width:768px){.search-box .calendar{border-right:1px solid var(--%NS%border-color)}}.search-box .persons [ngbDropdownItem]{min-width:23.125em}@media(min-width:768px){.search-box .persons>app-button .label-center{min-width:12.5em}}.search-box .persons app-party-edit{border:1px solid var(--%NS%color-primary)}
49.search-box .persons app-party-edit app-bedtype-selection app-button{width:100%}.search-box .persons .nights-dropdown{max-width:10em}@media(min-width:768px){.search-box .persons{border-right:1px solid var(--%NS%border-color)}}.search-box .more [ngbDropdownMenu]{min-width:18.75em}.search-box .more [ngbDropdownMenu] [ngbDropdownItem]{color:var(--%NS%default-text-color)}@media(min-width:768px){.search-box .more>app-button .label-center{min-width:4.375em}}.search-box .more>app-button .spacer{display:none}.search-box .more .iprefer{display:block;text-decoration:underline}@media(min-width:768px){.search-box .more .iprefer{margin-top:.75em;border-top:1px solid var(--%NS%border-color)}}.search-box app-button.search{background-color:var(--%NS%modal-background-color);border-radius:0 0 var(--%NS%radius-regular) var(--%NS%radius-regular)}@media(min-width:768px){.search-box app-button.search{border-radius:var(--%NS%radius-regular)}}.search-box app-button.search .btn{padding:0 1.5em}@media(min-width:768px){.search-box app-button.search .btn{border-radius:0 var(--%NS%radius-regular) var(--%NS%radius-regular) 0}} 50/*# sourceMappingURL=search-horizontal.component.css.map */ 51`],encapsulation:3,changeDetection:1})}}return t})();var _R=["fromCalendarDropdown"],CR=["toCalendarDropdown"],yR=["personsDropdown"],Sh=()=>["shadowed"],IS=t=>({date:t});function bR(t,i){if(t&1){let e=B();h(0,"app-calendar",21),k("calendarChange",function(o){N(e);let r=u(2);return I(r.handleCalendarChange(o))})("calendarNavigate",function(o){N(e);let r=u(2);return I(r.handleCalendarNavigate(o))})("crossSellTriggered",function(o){N(e);let r=u(2);return I(r.onCrossSellTriggered(o))}),_()}if(t&2){let e=u(2);b("fromDate",e.fromDate())("nights",0)("selectSingleDate",!0)("priceCalendarEnabled",e.priceCalendarEnabled)("priceForDates",e.priceResult()?.priceForDates||null)("fetchingDataLoader",e.isLoadingPriceCalendar())("displayDayByDayPrices",e.displayDayByDayPrices())("displayOneNightPriceNonSelected",e.priceResult()?.displayOneNightPriceNonSelected??!1)("crossSellNights",e.priceResult()?.forNights||null)("language",e.defaultLanguage())("disabled",e.isLoading())}}function SR(t,i){if(t&1){let e=B();h(0,"app-calendar",22),k("calendarChange",function(o){N(e);let r=u(2);return I(r.handleCalendarChange(o))})("calendarNavigate",function(o){N(e);let r=u(2);return I(r.handleCalendarNavigate(o))}),_()}if(t&2){let e=u(2);b("fromDate",e.toDate())("minCalendarPickableDate",e.toDateNotBefore)("maxCalendarPickableDate",e.toDateNotAfter)("nights",0)("selectSingleDate",!0)("priceCalendarEnabled",!1)("priceForDates",e.priceToDateList())("fetchingDataLoader",e.isLoadingPriceCalendar())("language",e.defaultLanguage())("disabled",e.isLoading())("markDatesWithRestrictions",!1)}}function vR(t,i){if(t&1&&T(0,"app-restriction-message",12),t&2){let e=u(2);b("date",e.fromDateInfo.date)("minNights",e.fromDateInfo.minLengthOfStay||1)("maxNights",e.fromDateInfo.maxLengthOfStay||10)}}function wR(t,i){if(t&1&&(T(0,"app-note-info",23),y(1,"translate"),y(2,"translate")),t&2){let e=u().$implicit;b("info",O(1,2,e.message))("readMoreLink",O(2,4,e.url))}}function xR(t,i){if(t&1&&w(0,wR,3,6,"app-note-info",23),t&2){let e=i.$implicit,n=u(2);x(e.bookingType.includes(n.searchType)?0:-1)}}function PR(t,i){if(t&1){let e=B();h(0,"app-party-edit",24),fn("partiesChange",function(o){N(e);let r=u(2);return hn(r.parties,o)||(r.parties=o),I(o)}),k("partiesChange",function(){N(e);let o=u(2);return I(o.handleChangeParties())}),_()}if(t&2){let e=u(2);Pn("parties",e.parties),b("searchType",e.searchType)("allowRoomSelection",!e.searchType||e.searchType===e.BookingSearchType.Overnight)("nights",1)("priceCalendarEnabled",e.priceCalendarEnabled)("pricePerPartyForSelectedDay",e.pricePerParty())("ageCategories",e.filteredAgeCategories)("language",e.defaultLanguage())("isLoading",e.isLoading())("isLoadingPriceCalendar",e.isLoadingPriceCalendar())}}function MR(t,i){if(t&1&&(h(0,"a",20),D(1),y(2,"translocoStripHtml"),_()),t&2){let e=u(2);b("href",e.iPreferUrl,ut),p(),ee(" ",O(2,2,"search.iprefer")," ")}}function OR(t,i){if(t&1){let e=B();h(0,"div",3)(1,"div",4)(2,"div",5,0),k("openChange",function(o){N(e);let r=u();return I(r.showFromCalendar=o)}),T(4,"app-button",6),y(5,"translocoStripHtml"),y(6,"date"),y(7,"date"),y(8,"date"),y(9,"date"),y(10,"translocoStripHtml"),h(11,"div",7)(12,"div",8),w(13,bR,1,11,"app-calendar",9),_()()(),h(14,"div",5,1),k("openChange",function(o){N(e);let r=u();return I(r.showToCalendar=o)}),T(16,"app-button",10),y(17,"translocoStripHtml"),y(18,"date"),y(19,"date"),y(20,"date"),y(21,"date"),y(22,"translocoStripHtml"),h(23,"div",7)(24,"div",8),w(25,SR,1,11,"app-calendar",11),_()()()(),w(26,vR,1,3,"app-restriction-message",12),h(27,"div",13),we(28,xR,1,1,null,null,Xe),_(),h(30,"div",14,2),k("openChange",function(o){N(e);let r=u();return I(r.onPersonsOpenChange(o))}),T(32,"app-party-view",15),h(33,"div",7)(34,"div",8),w(35,PR,1,10,"app-party-edit",16),_()()(),h(36,"app-button",17),y(37,"translocoStripHtml"),y(38,"translocoStripHtml"),k("btnClick",function(){N(e);let o=u();return I(o.search())}),_(),h(39,"div",18)(40,"app-promocode",19),fn("promocodeChange",function(o){N(e);let r=u();return hn(r.promocode,o)||(r.promocode=o),I(o)}),_(),w(41,MR,3,4,"a",20),_()()}if(t&2){let e=u();p(4),ye("restricted-date",e.selectedDateHasRestrictions),b("id","search-from-calendar")("label",O(5,41,"search.check-in"))("subLabel",e.dayLabels[W(6,43,e.fromDate(),"c")])("tertiaryLabel",W(7,46,e.fromDate(),"dd"))("quaternaryLabel",e.monthLabels[W(8,49,e.fromDate(),"L")-1])("appearance",e.ButtonStyle.ALTERNATE)("additionalClasses",Pe(79,Sh))("size",e.ButtonSize.LARGE),he("aria-label",W(10,55,"search.check-in.label",Z(80,IS,W(9,52,e.fromDate(),"fullDate"))))("aria-expanded",e.showFromCalendar),p(9),x(e.showFromCalendar?13:-1),p(3),b("id","search-to-calendar")("label",O(17,58,"search.check-out"))("subLabel",e.dayLabels[W(18,60,e.toDate(),"c")])("tertiaryLabel",W(19,63,e.toDate(),"dd"))("quaternaryLabel",e.monthLabels[W(20,66,e.toDate(),"L")-1])("appearance",e.ButtonStyle.ALTERNATE)("additionalClasses",Pe(82,Sh))("size",e.ButtonSize.LARGE),he("aria-label",W(22,72,"search.check-out.label",Z(83,IS,W(21,69,e.toDate(),"fullDate"))))("aria-expanded",e.showToCalendar),p(9),x(e.showToCalendar?25:-1),p(),x(e.searchType===e.BookingSearchType.Overnight&&e.fromDateInfo?26:-1),p(2),xe(e.scheduledInfo()),p(4),b("parties",e.parties())("nights",1)("language",e.defaultLanguage())("dropdown",!0)("opened",e.editParties),p(3),x(e.editParties?35:-1),p(),b("label",O(37,75,"search.search-button.label"))("appearance",e.ButtonStyle.PRIMARY)("size",e.ButtonSize.LARGE)("additionalClasses",Pe(85,Sh)),he("aria-label",O(38,77,"search.search-button.info")),p(4),Pn("promocode",e.promocode),b("language",e.defaultLanguage())("showAsButton",!0)("disabled",e.isLoading()),p(),x(e.iPreferUrl?41:-1)}}var kS=(()=>{class t extends ci{constructor(){super(),this.dateService=f(Ft),this.priceCalendarService=f(Di),this.searchService=f(fi),this.bookingService=f(Yi),this.i18n=f(uo),this.crossSellService=f(Va),this.processed=f(ae),this.utils=f(Rt),this.fromCalendarDropdown=We("fromCalendarDropdown"),this.toCalendarDropdown=We("toCalendarDropdown"),this.personsDropdown=We("personsDropdown"),this.fromDate=ne(this.dateService.newDateOnlyString()),this.defaultFromDate=this.fromDate(),this.toDate=ne(""),this.selectedDateHasRestrictions=!1,this.show
51FromCalendar=!1,this.showToCalendar=!1,this.editParties=!1,this.searchType=J.Overnight,this.parties=ne([]),this.filteredAgeCategories=[],this.isLoading=this.store.selectSignal(Bo),this.BookingSearchType=J,this.ButtonStyle=Oe,this.ButtonSize=ct,this.Size=Se,this.priceCalendarEnabled=!1,this.priceResult=ne(null),this.priceToDateList=ne({}),this.isLoadingPriceCalendar=this.store.selectSignal(ha),this.toDateNotBefore=$e.now(),this.toDateNotAfter=$e.now(),this.widgetData=null,this.promocode=ne(""),this.iPreferUrl="",this.monthLabels=[],this.dayLabels=[],this.scheduledInfo=A(()=>this.utils.getScheduledInfo(this.fromDate(),this.toDate())),this.pricePerParty=A(()=>this.priceCalendarService.getPricePerParty(this.priceResult(),this.parties(),this.fromDate())),this.displayDayByDayPrices=A(()=>this.priceResult()?.displayDayByDayPrices??!1),et(()=>{this.defaultLanguage()&&this.isReady()&&this.updateDateLabels()})}isLoadedHandler(){super.isLoadedHandler(),this.filteredAgeCategories=this.processed.getInit().ageCategories||[],this.priceCalendarEnabled=this.processed.getInit().globals.showPriceCalendarPrices,this.iPreferUrl=this.processed.getInit().globals.iPreferUrl??"",this.widgetData=this.processed.getWidget(),this.parties.set([this.searchService.createParty(this.searchType)]),this.toDate.set(this.dateService.addDays(this.fromDate(),1)),this.widgetData?.prefilledPromocode&&this.promocode.set(this.widgetData.prefilledPromocode),this.updateDateLabels();let e=Xo(this.widgetData,this.defaultFromDate);e?this.fetchPrices(e,n=>{this.priceResult.set(n),this.tryPreselectWidgetCalendarStartDate(n)&&n&&this.generatePriceCalendarDataTo()}):this.findStartMonth()}closeOverlays(){this.showFromCalendar=this.showToCalendar=!1,this.editParties=!1,this.fromCalendarDropdown()?.close(),this.toCalendarDropdown()?.close(),this.personsDropdown()?.close()}updateDateLabels(){this.monthLabels=this.i18n.getMonthList("short");let e=this.i18n.getDayList(),n=e[e.length-1];this.dayLabels=[n,...e]}findStartMonth(e=this.fromDate(),n=6){this.fetchPrices(e,o=>{let r=this.setDateLimits(e,o?.priceForDates);if(!r&&n>0?(e=this.dateService.addMonths(e,1),this.findStartMonth(e,n-1)):r&&(this.priceResult.set(o),this.fromDate.set(r),this.generatePriceCalendarDataTo()),n===0||r){let a=this.dateService.addDays(this.fromDate(),1);this.toDate.set(this.setDateLimits(a,this.priceResult()?.priceForDates)||a)}})}
51handleCalendarChange(e){if(e)if(this.showFromCalendar){this.fromDate.set(e.fromDate),this.generatePriceCalendarDataTo();let n=this.dateService.addDays(this.fromDate(),1);this.toDate.set(this.setDateLimits(n,this.priceResult()?.priceForDates)||n),this.selectedDateHasRestrictions=e.selectedDateHasRestrictions,this.fromDateInfo=e.fromDate?this.priceResult()?.priceForDates[e.fromDate]:void 0}else this.toDate.set(e.fromDate);this.showFromCalendar=this.showToCalendar=!1,this.fromCalendarDropdown()?.close(),this.toCalendarDropdown()?.close()}handleCalendarNavigate(e){this.showFromCalendar&&this.fetchPrices(e,n=>{this.priceResult.set(n),this.generatePriceCalendarDataTo()})}handleChangeParties(){this.priceResult.set(null),this.fetchPrices(this.fromDate(),e=>{this.priceResult.set(e),this.generatePriceCalendarDataTo()})}onPersonsOpenChange(e){this.editParties=e}setDateLimits(e,n){let o=n?.[e];for(;o&&!o.isAvailable;)e=this.dateService.addDays(e,1),o=n?.[e];return o&&o.isAvailable?e:null}fetchPrices(e,n){if(!this.priceCalendarEnabled){n?.(null);return}this.priceCalendarService.fetchPriceCalenderData(this.searchType,e||null,1,this.parties(),this.promocode()||this.processed.getWidget()?.prefilledPromocode||"",void 0,void 0,n)}generatePriceCalendarDataTo(){this.priceToDateList.set({});let e=(this.priceResult()?.priceForDates[this.fromDate()]?.lengthOfStayAvailable||[]).map(a=>this.dateService.addDays(this.fromDate(),a)),n=this.dateService.stringToNgDateStruct(this.fromDate()),o=this.dateService.getMonthDatesAsStringKeys(n.year,n.month).concat(this.dateService.getMonthDatesAsStringKeys(n.month<12?n.year:n.year+1,n.month%12+1)),r={};for(let a of o){let s=kt(this.priceResult()?.priceForDates[this.priceResult()?.priceForDates[a]?a:o[0]]);s&&(s.date=a,s.isAvailable=e.includes(a),r[a]=s)}this.priceToDateList.set(r),this.toDateNotBefore=this.dateService.stringToDateTime(this.dateService.addDays(this.fromDate(),this.priceResult()?.minLengthOfStay||1)),this.toDateNotAfter=this.dateService.stringToDateTime(this.dateService.addDays(this.fromDate(),this.priceResult()?.maxLengthOfStay||10))}tryPreselectWidgetCalendarStartDate(e){if(this.fromDate()!==this.defaultFromDate)return!1;let n=Xo(this.widgetData,this.defaultFromDate);return!n||this.priceCalendarEnabled&&(!e?.priceForDates||e.priceForDates[n]?.isAvailable===!1)?!1:(this.fromDate.set(n),this.toDate.set(this.dateService.addDays(n,1)),!0)}search(){let e=window.bookingWidget?.backendUrl||window.location.origin,n={language:this.language()||this.defaultLanguage(),parties:this.parties(),promoCode:this.promocode()||this.processed.getWidget()?.prefilledPromocode||"",searchType:this.toDate()>this.fromDate()?this.searchType:J.Day,widgetId:this.widgetId()||this.searchService.resolveWidgetId(null)||void 0,from:this.fromDate(),to:this.toDate()},o=this.bookingService.createQueryParamsForSearchRequest(n,null,e);window.open(o,"_blank")}onCrossSellTriggered(e){let n=e.date.split("-");if(n.length!==3)return;let o=Number(n[0]),r=Number(n[1]),a=Number(n[2]),s=this.processed.getInit().resort.siteName;this.store.dispatch(No({currentHotelName:s,reason:e.reason}));let l=e.nights;this.searchType===J.Overnight&&(l=l||(this.toDate()?this.dateService.dateDifferenceInDays(this.fromDate(),this.toDate()):1),l<1&&(l=1)),this.crossSellService.fetchCrossSell({year:o,month:r,day:a,nights:l,searchType:this.searchType,parties:kt(this.parties())}).pipe(Ke(1)).subscribe({next:c=>{this.store.dispatch(c.length?Io({alternatives:c}):ko())},error:()=>{this.store.dispatch(To())}})}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=H({type:t,selectors:[["ng-component"]],viewQuery:function(n,o){n&1&&Ot(o.fromCalendarDropdown,_R,5)(o.toCalendarDropdown,CR,5)(o.personsDropdown,yR,5),n&2&&xt(3)},hostBindings:function(n,o){n&1&&k("keydown.escape",function(){return o.closeOverlays()},_o)},features:[vo([uo,rt,Rt,Di,Y,Gi]),re],decls:1,vars:1,consts:[["fromCalendarDropdown","ngbDropdown"],["toCalendarDropdown","ngbDropdown"],["personsDropdown","ngbDropdown"],[1,"search-dropdown-root"],["data-qa","search-calendar-container",1,"calendar","d-flex"],["ngbDropdown","","appCloseOnOutsideClick","",1,"date",3,"openChange"],["ngbDropdownToggle","","iconDown","chevronDown","data-qa","search-check-in-button",1,"d-block","w-100",3,"id","label","subLabel","tertiaryLabel","quaternaryLabel","appearance","additionalClasses","size","aria-label","aria-expanded"],["ngbDropdownMenu",""],["ngbDropdownItem",""],["role","dialog","aria-labelledby","search-from-calendar","data-qa","search-from-calendar",3,"fromDate","nights","selectSingleDate","priceCalendarEnabled","priceForDates","fetchingDataLoader","displayDayByDayPrices","displayOneNightPriceNonSelected","crossSellNights","language","disabled"],["ngbDropdownToggle","","iconDown","chevronDown","data-qa","search-check-out-button",1,"d-block","w-100",3,"id","label","subLabel","tertiaryLabel","quaternaryLabel","appearance","additionalClasses","size","aria-label","aria-expanded"],["role","dialog","aria-labelledby","search-to-calendar","data-qa","search-to-calendar",3,"fromDate","minCalendarPickableDate","maxCalendarPickableDate","nights","selectSingleDate","priceCalendarEnabled","priceForDates","fetchingDataLoader","language","disabled","markDatesWithRestrictions"],["data-qa","search-restriction-message",3,"date","minNights","maxNights"],[1,"n
51otes"],["ngbDropdown","","appCloseOnOutsideClick","",1,"persons",3,"openChange"],["ngbDropdownToggle","","data-qa","search-party-view",1,"d-block",3,"parties","nights","language","dropdown","opened"],["tabindex","-1","data-qa","search-party-edit",3,"parties","searchType","allowRoomSelection","nights","priceCalendarEnabled","pricePerPartyForSelectedDay","ageCategories","language","isLoading","isLoadingPriceCalendar"],["data-qa","search-button",3,"btnClick","label","appearance","size","additionalClasses","aria-label"],["data-qa","search-additional-options",1,"d-flex","flex-column","align-items-center"],["data-qa","search-promocode",3,"promocodeChange","promocode","language","showAsButton","disabled"],["target","_blank","data-qa","search-iprefer-link",1,"body-small","iprefer",3,"href"],["role","dialog","aria-labelledby","search-from-calendar","data-qa","search-from-calendar",3,"calendarChange","calendarNavigate","crossSellTriggered","fromDate","nights","selectSingleDate","priceCalendarEnabled","priceForDates","fetchingDataLoader","displayDayByDayPrices","displayOneNightPriceNonSelected","crossSellNights","language","disabled"],["role","dialog","aria-labelledby","search-to-calendar","data-qa","search-to-calendar",3,"calendarChange","calendarNavigate","fromDate","minCalendarPickableDate","maxCalendarPickableDate","nights","selectSingleDate","priceCalendarEnabled","priceForDates","fetchingDataLoader","language","disabled","markDatesWithRestrictions"],["data-qa","search-note-info",3,"info","readMoreLink"],["tabindex","-1","data-qa","search-party-edit",3,"partiesChange","parties","searchType","allowRoomSelection","nights","priceCalendarEnabled","pricePerPartyForSelectedDay","ageCategories","language","isLoading","isLoadingPriceCalendar"]],template:function(n,o){n&1&&w(0,OR,42,86,"div",3),n&2&&x(o.isReady()?0:-1)},dependencies:[st,ni,$t,rn,on,nn,Nr,De,er,ja,tr,nr,op,Gi,np,Zf,Y,rt],styles:[`.display-large{font-family:var(--%NS%default-heading-font);font-size:3.25em;line-height:1.125em;font-weight:700}.display-medium{font-family:var(--%NS%default-heading-font);font-size:2.875em;line-height:1.1em;font-weight:700}.display-small{font-family:var(--%NS%default-heading-font);font-size:2.5em;line-height:1.125em;font-weight:700}.headline-large{font-family:var(--%NS%default-heading-font);font-size:2.25em;line-height:1.14em;font-weight:700}.headline-medium,.search-dropdown-root .calendar .restricted-date .btn__tertiary-label:after{font-family:var(--%NS%default-heading-font);font-size:1.875em;line-height:1.1em;font-weight:700}.headline-small{font-family:var(--%NS%default-heading-font);font-size:1.5em;line-height:1.13125em;font-weight:700}.title-large{font-family:var(--%NS%default-text-font);font-size:1.5em;line-height:1.1875em;font-weight:600}.title-medium{font-family:var(--%NS%default-text-font);font-size:1.25em;line-height:1.1875em;font-weight:600}.title-small{font-family:var(--%NS%default-text-font);font-size:1em;line-height:1em;font-weight:600}.label-large{font-family:var(--%NS%default-text-font);font-size:1em;line-height:1.1875em;font-weight:600}.label-medium{font-family:var(--%NS%default-text-font);font-size:.875em;line-height:1.3em;font-weight:600}.label-small{font-family:var(--%NS%default-text-font);font-size:.75em;line-height:.875em;font-weight:600}.label-extra-small{font-family:var(--%NS%default-text-font);font-size:.625em;line-height:1.2em;font-weight:600}.body-large{font-family:var(--%NS%default-text-font);font-size:1em;line-height:1.1875em;font-weight:400}.body-medium{font-family:var(--%NS%default-text-font);font-size:.875em;line-height:1.1em;font-weight:400}.body-small,.search-dropdown-root app-promocode app-button .btn .btn__label{font-family:var(--%NS%default-text-font);font-size:.75em;line-height:1.125em;font-weight:400}.body-extra-small{font-family:var(--%NS%default-text-font);font-size:.625em;line-height:.75em;font-weight:400}.search-dropdown-root{max-width:19em;position:relative;display:flex;flex-direction:column;gap:.5em;overflow:visible}.search-dropdown-root app-party-view>div,.search-dropdown-root app-party-view app-button button,.search-dropdown-root .calendar app-button button{width:100%;color:var(--%NS%search-dropdown-widget-color)!important;background-color:var(--%NS%search-dropdown-widget-background)!important;border-color:var(--%NS%search-dropdown-widget-background)!important}.search-dropdown-root [ngbDropdownMenu]{background-color:var(--%NS%body-background-color);border-radius:var(--%NS%radius-regular);
51box-shadow:var(--%NS%shadow-default);overflow:visible}.search-dropdown-root [ngbDropdownMenu] [ngbDropdownItem]{padding:.75em}.search-dropdown-root [ngbDropdownMenu] [ngbDropdownItem]:active,.search-dropdown-root [ngbDropdownMenu] [ngbDropdownItem]:hover{background-color:var(--%NS%body-background-color)}.search-dropdown-root .calendar{position:relative}.search-dropdown-root .calendar [ngbDropdown]{display:flex}.search-dropdown-root .calendar app-button button{height:auto}.search-dropdown-root .calendar app-button button .btn__label-container{width:100%}.search-dropdown-root .calendar app-button button svg{color:var(--%NS%color-primary)}.search-dropdown-root .calendar .restricted-date .btn__tertiary-label:after{content:"*";font-family:inherit;color:var(--%NS%color-primary);font-size:.9em;position:absolute;top:-.3em}.search-dropdown-root .calendar [ngbDropdownItem]{min-width:17em}@media(min-width:576px){.search-dropdown-root .calendar [ngbDropdownItem]{min-width:24em}}@media(min-width:768px){.search-dropdown-root .calendar [ngbDropdownItem]{min-width:32em}}@media screen and (min-width:240px){.search-dropdown-root .date{width:50%}}.search-dropdown-root .date:first-child{margin-right:.5em}.search-dropdown-root .date .btn__label{margin-bottom:.5em}.search-dropdown-root .date .btn__sub-label{text-transform:none;font-size:.8em;line-height:2em}.search-dropdown-root .date .btn__tertiary-label{position:relative;font-size:2.5em;font-weight:700;line-height:.875em}@media screen and (max-width:266px){.search-dropdown-root .date .btn__tertiary-label{font-size:1em}}.search-dropdown-root .persons [ngbDropdownItem]{min-width:17.5em}.search-dropdown-root .persons app-party-edit{width:100%;background-color:var(--%NS%body-background-color);border:1px solid var(--%NS%color-primary);border-radius:var(--%NS%radius-regular)}.search-dropdown-root .persons app-party-edit app-bedtype-selection a
51pp-button{width:100%}.search-dropdown-root app-party-view:focus-visible{outline:none;box-shadow:var(--%NS%shadow-outline)}.search-dropdown-root .notes:empty{display:none}.search-dropdown-root app-note-info>div{background-color:var(--%NS%search-dropdown-widget-background);color:var(--%NS%search-dropdown-widget-color)}.search-dropdown-root app-promocode label{display:none}.search-dropdown-root app-promocode .promocode-container{text-align:center;width:100%}.search-dropdown-root app-promocode app-button .btn{background-color:color-mix(in srgb,var(--%NS%color-primary) 70%,transparent);color:var(--%NS%button-primary-text-color)}.search-dropdown-root app-promocode app-button .btn:hover{background-color:color-mix(in srgb,var(--%NS%color-primary) 70%,transparent);border-color:color-mix(in srgb,var(--%NS%color-primary) 70%,transparent);color:var(--%NS%button-primary-text-color)}.search-dropdown-root app-promocode app-button .btn .btn__label{display:flex;text-transform:none}.search-dropdown-root .iprefer{background-color:color-mix(in srgb,var(--%NS%color-primary) 70%,transparent);border:1px solid color-mix(in srgb,var(--%NS%color-primary) 70%,transparent);color:var(--%NS%button-primary-text-color);padding:4px 12px;margin-top:.6875em;text-decoration:none!important} 52/*# sourceMappingURL=search-dropdown.component.css.map */ 53`],encapsulation:3})}}return t})();var vh=(function(t){return t.DisplayLarge="display-large",t.DisplayMedium="display-medium",t.DisplaySmall="display-small",t.HeadlineLarge="headline-large",t.HeadlineMedium="headline-medium",t.HeadlineSmall="headline-small",t.TitleLarge="title-large",t.TitleMedium="title-medium",t.TitleSmall="title-small",t.LabelLarge="label-large",t.LabelMedium="label-medium",t.LabelSmall="label-small",t.LabelExtraSmall="label-extra-small",t.BodyLarge="body-large",t.BodyMedium="body-medium",t.BodySmall="body-small",t.BodyExtraSmall="body-extra-small",t})(vh||{});var TS=(()=>{class t{constructor(){this.apiService=f(Gt)}initSubscription(e){return this.apiService.post("/api/subscription/Subscribe",e,{getOutcome:!0})}confirmSubscription(e){return this.apiService.post("/api/subscription/Subscribe",e,{getOutcome:!0})}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=G({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function DR(t,i){if(t&1&&(h(0,"div",0),Co("foldAnimationToHide"),h(1,"div",1),D(2),y(3,"translocoStripHtml"),_()()),t&2){let e=u();ue("data-qa",e.dataQa()),p(2),ee(" ",O(3,2,e.errorKey())," ")}}var NR=0,ol=class t{static{this.visibleErrors=new WeakMap}constructor(){this.control=v.required(),this.errorKey=v.required(),this.errors=v([]),this.id=v(),this.dataQa=v(void 0,{alias:"data-qa"}),this.stateTick=ne(0),this.generatedErrorId=`form-error-${NR++}`,this.host=f(Ut).nativeElement,this.renderer=f(Il),this.controlElement=null,this.errorId=A(()=>this.id()||this.generatedErrorId),this.shouldShowErrors=A(()=>{this.stateTick();let i=this.control();return i.invalid&&(i.touched||i.dirty)&&(this.errors().length===0||this.errors().some(e=>i.hasError(e)))}),et(i=>{let e=this.control().events?.subscribe(()=>this.stateTick.update(n=>n+1));i(()=>e?.unsubscribe())}),et(()=>{this.stateTick(),this.syncAria(this.shouldShowErrors())}),f(fo).onDestroy(()=>this.cleanupAria())}syncAria(i){if(!this.controlElement){if(this.controlElement=this.findControlElement(),!this.controlElement)return;t.visibleErrors.set(this.controlElement,t.visibleErrors.get(this.controlElement)??new Map)}let e=t.visibleErrors.get(this.controlElement);this.syncRequired(),e.set(this,i),[...e.values()].some(Boolean)?this.renderer.setAttribute(this.controlElement,"aria-invalid","true"):this.renderer.removeAttribute(this.controlElement,"aria-invalid"),this.setDescribedBy(i)}syncRequired(){let i=this.control();if(!(i instanceof zn)||!this.controlElement)return;let e=i.hasValidator(Xn.required)||i.hasValidator(Xn.requiredTrue);this.controlElement.matches("input, select, textarea")?e?this.renderer.setAttribute(this.controlElement,"required",""):this.renderer.removeAttribute(this.controlElement,"required"):this.controlElement.matches('[role="combobox"]')&&(e?this.renderer.setAttribute(this.controlElement,"aria-required","true"):this.renderer.removeAttribute(this.controlElement,"aria-required"))}findControlElement(){let i=this.host.parentElement?.querySelectorAll('input:not([type="hidden"])[id], select[id], textarea[id], button.form-control[
53id], [role="combobox"][id]');return Array.from(i??[]).filter(e=>e.compareDocumentPosition(this.host)&Node.DOCUMENT_POSITION_FOLLOWING).at(-1)??null}setDescribedBy(i){if(!this.controlElement)return;let e=new Set((this.controlElement.getAttribute("aria-describedby")??"").split(/\s+/).filter(Boolean));i?e.add(this.errorId()):e.delete(this.errorId()),e.size>0?this.renderer.setAttribute(this.controlElement,"aria-describedby",[...e].join(" ")):this.renderer.removeAttribute(this.controlElement,"aria-describedby")}cleanupAria(){if(!this.controlElement)return;this.setDescribedBy(!1);let i=t.visibleErrors.get(this.controlElement);i?.delete(this),(!i||![...i.values()].some(Boolean))&&this.renderer.removeAttribute(this.controlElement,"aria-invalid"),i?.size===0&&t.visibleErrors.delete(this.controlElement)}static{this.\u0275fac=function(e){return new(e||t)}}static{this.\u0275cmp=H({type:t,selectors:[["app-form-error"]],hostVars:1,hostBindings:function(e,n){e&2&&ue("id",n.errorId())},inputs:{control:[1,"control"],errorKey:[1,"errorKey"],errors:[1,"errors"],id:[1,"id"],dataQa:[1,"data-qa","dataQa"]},decls:1,vars:1,consts:[["appAnimateStart","foldAnimationShow",1,"foldAnimation","foldAnimationHide"],[1,"validation-message","foldAnimationContent"]],template:function(e,n){e&1&&w(0,DR,4,4,"div",0),e&2&&x(n.shouldShowErrors()?0:-1)},dependencies:[Sn,Y],styles:[`.display-large[_ngcontent-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:3.25em;line-height:1.125em;font-weight:700}
53.display-medium[_ngcontent-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:2.875em;line-height:1.1em;font-weight:700}.display-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:2.5em;line-height:1.125em;font-weight:700}.headline-large[_ngcontent-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:2.25em;line-height:1.14em;font-weight:700}.headline-medium[_ngcontent-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:1.875em;line-height:1.1em;font-weight:700}.headline-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:1.5em;line-height:1.13125em;font-weight:700}.title-large[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:1.5em;line-height:1.1875em;font-weight:600}.title-medium[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:1.25em;line-height:1.1875em;font-weight:600}.title-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:1em;line-height:1em;font-weight:600}.label-large[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:1em;line-height:1.1875em;font-weight:600}.label-medium[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.875em;line-height:1.3em;font-weight:600}.label-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.75em;line-height:.875em;font-weight:600}.label-extra-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.625em;line-height:1.2em;font-weight:600}.body-large[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:1em;line-height:1.1875em;font-weight:400}
53.body-medium[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.875em;line-height:1.1em;font-weight:400}.body-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.75em;line-height:1.125em;font-weight:400}.body-extra-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.625em;line-height:.75em;font-weight:400}.foldAnimation[_ngcontent-%COMP%]{display:grid;overflow:hidden;transition:grid-template-rows .3s ease-in-out,opacity .3s ease-in-out}.foldAnimation[_ngcontent-%COMP%] > .foldAnimationContent[_ngcontent-%COMP%]{overflow:hidden}.foldAnimationHide[_ngcontent-%COMP%]{grid-template-rows:0fr;opacity:0}.foldAnimationShow[_ngcontent-%COMP%]{grid-template-rows:1fr;opacity:1}.foldAnimationToHide[_ngcontent-%COMP%]{grid-template-rows:0fr;opacity:0}.fadeAnimation[_ngcontent-%COMP%]{transition:opacity .5s ease-in-out}.fadeAnimationHide[_ngcontent-%COMP%]{opacity:0}.fadeAnimationShow[_ngcontent-%COMP%]{opacity:1}.fadeAnimationToHide[_ngcontent-%COMP%]{opacity:0}.slideUpAnimation[_ngcontent-%COMP%]{--%NS%slideup-translate-x: none;position:fixed;bottom:0;transition:transform .4s ease-out,opacity .4s ease-out;will-change:transform}.slideUpAnimationHide[_ngcontent-%COMP%]{transform:translate(var(--%NS%slideup-translate-x)) translateY(100vh);opacity:0}.slideUpAnimationShow[_ngcontent-%COMP%]{transform:translate(var(--%NS%slideup-translate-x)) translateY(0);opacity:1}.slideUpAnimationToHide[_ngcontent-%COMP%]{transform:translate(var(--%NS%slideup-translate-x)) translateY(100vh);opacity:0}.slideInAnimation[_ngcontent-%COMP%]{transition:transform .4s ease-out,opacity .4s ease-out;will-change:transform}.slideInAnimationHide[_ngcontent-%COMP%]{transform:translate(100%);opacity:0}.slideInAnimationShow[_ngcontent-%COMP%]{transform:translate(0);opacity:1}.slideInAnimationToHide[_ngcontent-%COMP%]{transform:translate(100%);opacity:0}@media(max-width:575.98px){.slideInAnimationHide[_ngcontent-%COMP%]{transform:translateY(100%);opacity:0}.slideInAnimationShow[_ngcontent-%COMP%]{transform:translateY(0);opacity:1}.slideInAnimationToHide[_ngcontent-%COMP%]{transform:translateY(100%);opacity:0}}.modalScaleAnimation[_ngcontent-%COMP%]{transition:transform .3s ease-in-out,opacity .3s ease-in-out;will-change:transform}.modalScaleAnimationHide[_ngcontent-%COMP%]{transform:scale(.9);opacity:0}.modalScaleAnimationShow[_ngcontent-%COMP%]{transform:scale(1);opacity:1}.modalScaleAnimationToHide[_ngcontent-%COMP%]{transform:scale(.9);opacity:0} .disable-animations .foldAnimation, .disable-animations .fadeAnimation, .disable-animations .slideUpAnimation, .disable-animations .slideInAnimation, .disable-animations .modalScaleAnimation{transition-duration:0ms!important} 54/*# sourceMappingURL=form-error.component.css.map */`],changeDetection:1})}};var RS=/^(?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-z0-9-]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\])$/i;var ES=t=>[t,"title"],kR=t=>({email:t}),TR=()=>({});function RR(t,i){if(t&1&&(h(0,"h2",1),D(1),y(2,"translocoStripHtml"),_(),T(3,"span",2),y(4,"translocoStripHtml")),t&2){let e=u(2);b("ngClass",Z(10,ES,e.TypographyClass.HeadlineMedium)),p(),ee(" ",O(2,3,"newsletter.submitted.title")," "),p(2),b("innerHTML",Wr(4,5,"newsletter.submitted.message",Z(12,kR,e.email.value),void 0,e.LimitHtml.NONE),Mt)}}function ER(t,i){t&1&&T(0,"p",2),t&2&&b("innerHTML",i,Mt)}function AR(t,i){if(t&1){let e=B();h(0,"h2",1),D(1),y(2,"translocoStripHtml"),_(),w(3,ER,1,1,"p",2),y(4,"translocoStripHtml"),h(5,"form",3),k("ngSubmit",function(){N(e);let o=u(2);return I(o.onSubmit())}),h(6,"div",4)(7,"div",5)(8,"div",6)(9,"label",7),D(10),y(11,"translocoStripHtml"),h(12,"span",8),D(13,"*"),_()(),T(14,"input",9),un(),T(15,"app-form-error",10),_(),h(16,"div",6)(17,"label",11),D(18),y(19,"translocoStripHtml"),h(20,"span",8),D(21,"*"),_()(),T(22,"input",12),un(),T(23,"app-form-error",13),_()(),h(24,"div",6)(25,"label",14),D(26),y(27,"translocoStripHtml"),h(28,"span",8),D(29,"*"),_()(),T(30,"input",15),un(),T(31,"app-form-error",16),_(),h(32,"div",6)(33,"div",17),T(34,"input",18),un(),h(35,"label",19),D(36),y(37,"translocoStripHtml"),h(38,"a",20),D(39),y(40,"translocoStripHtml"),T(41,"app-icon",21),_()()(),T(42,"app-form-error",22),_(),T(43,"input",23),un(),T(44,"a
54pp-button",24),y(45,"translocoStripHtml"),_()()}if(t&2){let e,n=u(2);b("ngClass",Z(50,ES,n.TypographyClass.HeadlineMedium)),p(),V(O(2,31,"newsletter.header")),p(2),x((e=Wr(4,33,"newsletter.introText",Pe(52,TR),void 0,n.LimitHtml.NONE))?3:-1,e),p(2),b("formGroup",n.form),p(5),ee(" ",O(11,38,"newsletter.form.firstName.label")," "),p(4),b("formControl",n.firstName)("appDisableControl",n.isLoading)("appAutoFillDemoData","firstName"),mn(),p(),b("control",n.firstName),p(3),ee(" ",O(19,40,"newsletter.form.lastName.label")," "),p(4),b("formControl",n.lastName)("appDisableControl",n.isLoading)("appAutoFillDemoData","lastName"),mn(),p(),b("control",n.lastName),p(3),ee(" ",O(27,42,"newsletter.form.email.label")," "),p(4),b("formControl",n.email)("appDisableControl",n.isLoading)("appAutoFillDemoData","email"),mn(),p(),b("control",n.email),p(3),b("formControl",n.terms)("appDisableControl",n.isLoading),mn(),p(2),ee(" ",O(37,44,"newsletter.privacyPolicy.checkbox.label")," "),p(2),b("href",n.privacyPolicyUrl[n.language()||n.defaultLanguage()],ut),p(),ee(" ",O(40,46,"newsletter.privacyPolicy.checkbox.link")),p(2),b("size",n.IconSize.TINY),p(),b("control",n.terms),p(),b("formControl",n.city),mn(),p(),b("appearance",n.ButtonStyle.PRIMARY)("size",n.ButtonSize.LARGE)("type",n.ButtonType.SUBMIT)("label",O(45,48,"newsletter.form.button.label"))}}function LR(t,i){if(t&1&&(h(0,"div",0),w(1,RR,5,14)(2,AR,46,53),_()),t&2){let e=u();p(),x(e.formSubmitted?1:2)}}var AS=(()=>{class t extends ci{constructor(){super(...arguments),this.newsletterService=f(TS),this.utilsService=f(Rt),this.allowNewsletterSubscription=!1,this.privacyPolicyUrl={},this.firstName=new zn("",{validators:[Xn.required],nonNullable:!0}),this.lastName=new zn("",{validators:[Xn.required],nonNullable:!0}),this.email=new zn("",{validators:[Xn.required,Xn.pattern(RS)],nonNullable:!0}),this.city=new zn(""),this.terms=new zn(!1,{validators:[Xn.requiredTrue],nonNullable:!0}),this.isLoading=!1,this.formSubmitted=!1,this.formLoadingTime=new Date,this.form=new Hl({firstName:this.firstName,lastName:this.lastName,email:this.email,city:this.city,terms:this.terms}),this.ButtonType=gn,this.ButtonSize=ct,this.ButtonStyle=Oe,this.TypographyClass=vh,this.IconSize=Se,this.LimitHtml=Kr}isLoadedHandler(){super.isLoadedHandler(),this.allowNewsletterSubscription=this.processedService.getInit().allowNewsletterSubscription||!1,this.privacyPolicyUrl=this.processedService.getInit().globals.privacyPolicyUrl||{}}onSubmit(){this.form.valid?this.newsletterService.initSubscription(j(S({},this.form.getRawValue()),{created:this.formLoadingTime,language:this.defaultLanguage()})).subscribe(e=>{e.success&&(typeof e.data=="string"&&this.newsletterService.confirmSubscription(j(S({},this.form.getRawValue()),{token:e.data,language:this.defaultLanguage()})).subscribe(),this.formSubmitted=!0)}):(this.form.markAllAsTouched(),this.utilsService.updateFormValidity(this.form))}static{this.\u0275fac=(()=>{let e;return function(o){return(e||(e=Ne(t)))(o||t)}})()}static{this.\u0275cmp=H({type:t,selectors:[["ng-component"]],features:[vo([Rt]),re],decls:1,vars:1,consts:[[1,"newsletter-box","body-large"],[3,"ngClass"],[1,"introText",3,"innerHTML"],[3,"ngSubmit","formGroup"],[1,"form-inputs"],[1,"name-inputs"],[1,"form-group","form-input-group"],["for","firstName"],[1,"required-asterisk"],["id","firstName","type","text","appTrimSpace","all",1,"form-control","shadow-none",3,"formControl","appDisableControl","appAutoFillDemoData"],["errorKey","newsletter.firstName.validationHint","data-qa","newsletter-firstname-validation","id","newsletter-firstName-validation",3,"control"],["for","lastName"],["id","lastName","type","text","appTrimSpace","all",1,"form-control","shadow-none",3,"formControl","appDisableControl","appAutoFillDemoData"],["errorKey","newsletter.lastName.validationHint","data-qa","newsletter-lastname-validation","id","newsletter-lastName-validation",3,"control"],["for","email"],["id","email","type","email","appTrimSpace","all",1,"form-control","shadow-none",3,"formControl","appDisableControl","appAutoFillDemoData"],["errorKey","newsletter.email.validationHint","data-qa","newsletter-email-validation","id","newsletter-email-validation",3,"control"],[1,"form-check"],["type","checkbox","id","newsletterTerms",1,"form-check-input",3,"formControl","appDisableControl"],["for","newsletterTerms",1,"form-check-label"],["target","_blank",1,"privacy-policy-link",3,"href"],["name","openExternal",3,"size"],["errorKey","newsletter.privacyPolicy.validationHint","data-qa","newsletter-terms-vali
vendor: 20,059 bytes, lines 54-57
54dation","id","newsletter-terms-validation",3,"control"],["type","hidden",3,"formControl"],["data-qa","newsletter-submit-button",3,"appearance","size","type","label"]],template:function(n,o){n&1&&w(0,LR,3,1,"div",0),n&2&&x(o.isReady()?0:-1)},dependencies:[st,bn,De,Nr,Fs,Fe,Fi,Xr,Bi,dg,ei,Qr,ea,ug,yh,ol,Y],styles:[`.display-large{font-family:var(--%NS%default-heading-font);font-size:3.25em;line-height:1.125em;font-weight:700}.display-medium{font-family:var(--%NS%default-heading-font);font-size:2.875em;line-height:1.1em;font-weight:700}.display-small{font-family:var(--%NS%default-heading-font);font-size:2.5em;line-height:1.125em;font-weight:700}.headline-large{font-family:var(--%NS%default-heading-font);font-size:2.25em;line-height:1.14em;font-weight:700}.headline-medium{font-family:var(--%NS%default-heading-font);font-size:1.875em;line-height:1.1em;font-weight:700}.headline-small{font-family:var(--%NS%default-heading-font);font-size:1.5em;line-height:1.13125em;font-weight:700}.title-large{font-family:var(--%NS%default-text-font);font-size:1.5em;line-height:1.1875em;font-weight:600}.title-medium{font-family:var(--%NS%default-text-font);font-size:1.25em;line-height:1.1875em;font-weight:600}.title-small{font-family:var(--%NS%default-text-font);font-size:1em;line-height:1em;font-weight:600}.label-large,.newsletter-box label{font-family:var(--%NS%default-text-font);font-size:1em;line-height:1.1875em;font-weight:600}.label-medium{font-family:var(--%NS%default-text-font);font-size:.875em;line-height:1.3em;font-weight:600}.label-small{font-family:var(--%NS%default-text-font);font-size:.75em;line-height:.875em;font-weight:600}.label-extra-small{font-family:var(--%NS%default-text-font);font-size:.625em;line-height:1.2em;font-weight:600}.body-large,.newsletter-box input,.newsletter-box label.form-check-label,.newsletter-box{font-family:var(--%NS%default-text-font);font-size:1em;line-height:1.1875em;font-weight:400}.body-medium{font-family:var(--%NS%default-text-font);font-size:.875em;line-height:1.1em;font-weight:400}.body-small{font-family:var(--%NS%default-text-font);font-size:.75em;line-height:1.125em;font-weight:400}.body-extra-small{font-family:var(--%NS%default-text-font);font-size:.625em;line-height:.75em;font-weight:400}.newsletter-box{padding:1em}.newsletter-box a{color:inherit}.newsletter-box .title{color:inherit;margin-bottom:.45em}.newsletter-box .introText{display:block;margin-bottom:1.5em}.newsletter-box label.form-check-label{color:inherit}.newsletter-box .form-inputs{display:flex;flex-direction:column;gap:1.5em}.newsletter-box .name-inputs{display:flex;flex-wrap:wrap;gap:1.5em}.newsletter-box .form-input-group{flex:1;display:flex;flex-direction:column;gap:.5em;min-width:16em}.newsletter-box .form-check-label{vertical-align:middle}.newsletter-box .privacy-policy-link app-icon{color:inherit;padding:0;margin-left:.25em}.newsletter-box app-button .btn__label{font-size:1.2em} 55/*# sourceMappingURL=newsletter.component.css.map */ 56`],encapsulation:3,changeDetection:1})}}return t})();var LS=document.createElement("i");function sp(t){let i="&"+t+";";LS.innerHTML=i;let e=LS.textContent;return e.charCodeAt(e.length-1)===59&&t!=="semi"||e===i?!1:e}function _n(t,i,e,n){let o=t.length,r=0,a;if(i<0?i=-i>o?0:o+i:i=i>o?o:i,e=e>0?e:0,n.length<1e4)a=Array.from(n),a.unshift(i,e),t.splice(...a);else for(e&&t.splice(i,e);r<n.length;)a=n.slice(r,r+1e4),a.unshift(i,0),t.splice(...a),r+=1e4,i+=1e4}function Kt(t,i){return t.length>0?(_n(t,t.length,0,i),t):i}var wh={}.hasOwnProperty;function zS(t){let i={},e=-1;for(;++e<t.length;)zR(i,t[e]);return i}function zR(t,i){let e;for(e in i){let o=(wh.call(t,e)?t[e]:void 0)||(t[e]={}),r=i[e],a;if(r)for(a in r){wh.call(o,a)||(o[a]=[]);let s=r[a];BR(o[a],Array.isArray(s)?s:s?[s]:[])}}}function BR(t,i){let e=-1,n=[];for(;++e<i.length;)(i[e].add==="after"?t:n).push(i[e]);_n(t,0,0,n)}function BS(t){let i={},e=-1;for(;++e<t.length;)FR(i,t[e]);return i}function FR(t,i){let e;for(e in i){let o=(wh.call(t,e)?t[e]:void 0)||(t[e]={}),r=i[e],a;if(r)for(a in r)o[a]=r[a]}}function FS(t,i){let e=Number.parseInt(t,i);return e<9||e===11||e>13&&e<32||e>126&&e<160||e>55295&&e<57344||e>64975&&e<65008||(e&65535)===65535||(e&65535)===65534||e>1114111?"\uFFFD":String.fromCodePoint(e)}var UR={'"':"quot","&":"amp","<":"lt",">":"gt"};function lp(t){return t.replace(/["&<>]/g,i);function i(e){return"&"+UR[e]+";"}}function ir(t){return t.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}var jn=or(/[A-Za-z]/),cn=or(/[\dA-Za-z]/),US=or(/[#-'*+\--9=?A-Z^-~]/);function rl(t){return t!==null&&(t<32||t===127)}var al=or(/\d/),HS=or(/[\dA-Fa-f]/),VS=or(/[!-/:-@[-`{-~]/);function le(t){return t!==null&&t<-2}function Vt(t){return t!==null&&(t<0||t===32)}function Ae(t){return t===-2||t===-1||t===32}var qS=or(new RegExp("\\p{P}|\\p{S}","u")),jS=or(/\s/);function or(t){return i;function i(e){return e!==null&&e>-1&&t.test(String.fromCharCode(e))}}function sl(t,i){let e=lp(HR(t||""));if(!i)return e;let n=e.indexOf(":"),o=e.indexOf("?"),r=e.indexOf("#"),a=e.indexOf("/");return n<0||a>-1&&n>a||o>-1&&n>o||r>-1&&n>r||i.test(e.slice(0,n))?e:""}function HR(t){let i=[],e=-1,n=0,o=0;for(;++e<t.length;){let r=t.charCodeAt(e),a="";if(r===37&&cn(t.charCodeAt(e+1))&&cn(t.charCodeAt(e+2)))o=2;else if(r<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(r))||(a=String.fromCharCode(r));else if(r>55295&&r<57344){let s=t.charCodeAt(e+1);r<56320&&s>56319&&s<57344?(a=String.fromCharCode(r,s),o=1):a="\uFFFD"}else a=String.fromCharCode(r);a&&(i.push(t.slice(n,e),encodeURIComponent(a)),n=e+o+1,a=""),o&&(e+=o,o=0)}return i.join("")+t.slice(n)}var $S={}.hasOwnProperty,WS=/^(https?|ircs?|mailto|xmpp)$/i,VR=/^https?$/i;function GS(t){let i=t||{},e=!0,n={},o=[[]],r=[],a=[],l=BS([{enter:{blockQuote:He,codeFenced:Ii,codeFencedFenceInfo:X,codeFencedFenceMeta:X,codeIndented:Ji,codeText:Kv,content:zv,definition:kv,definitionDestinationString:Rv,definitionLabelString:X,definitionTitleString:X,emphasis:Gv,htmlFlow:Wv,htmlText:Vh,image:Ln,label:X,link:Ar,listItemMarker:Nn,listItemValue:Lt,listOrdered:Pt,listUnordered:_t,paragraph:Qt,reference:X,resource:Za,resourceDestinationString:Xi,resourceTitleString:X,setextHeading:Fv,strong:Yv},exit:{atxHeading:Hv,atxHeadingSequence:Bv,autolinkEmail:n1,autolinkProtocol:t1,blockQuote:zt,characterEscapeValue:Qa,characterReferenceMarkerHexadecimal:qh,characterReferenceMarkerNumeric:qh,characterReferenceValue:e1,codeFenced:M,codeFencedFence:Gn,codeFencedFenceInfo:P,codeFencedFenceMeta:Ye,codeFlowValue:$v,codeIndented:M,codeText:Zv,codeTextData:Qa,data:Qa,definition:Lv,definitionDestinationString:Ev,definitionLabelString:Tv,definitionTitleString:Av,emphasis:Qv,hardBreakEscape:Uh,hardBreakTrailing:Uh,htmlFlow:Hh,htmlFlowData:Qa,htmlText:Hh,htmlTextData:Qa,image:bl,label:yl,labelText:jp,lineEnding:jv,link:bl,listOrdered:Ct,listUnordered:Ce,paragraph:gi,reference:Ye,referenceString:pn,resource:Ye,resourceDestinationString:Lr,resourceTitleString:zr,setextHeading:qv,setextHeadingLineSequence:Vv,setextHeadingText:Uv,strong:Jv,thematicBreak:Xv}},...i.htmlExtensions||[]]),c={definitions:n,tightStack:a},d={buffer:X,encode:L,getData:F,lineEndingIfNeeded:se,options:i,raw:K,resume:q,setData:R,tag:te},m=i.defaultLineEnding;return g;function g(Q){let ge=-1,Cn=0,_i=[],ki=[],eo=[];for(;++ge<Q.length;)!m&&(Q[ge][1].type==="lineEnding"||Q[ge][1].type==="lineEndingBlank")&&(m=Q[ge][2].sliceSerialize(Q[ge][1])),(Q[ge][1].type==="listOrdered"||Q[ge][1].type==="listUnordered")&&(Q[ge][0]==="enter"?_i.push(ge):C(Q.slice(_i.pop(),ge))),Q[ge][1].type==="definition"&&(Q[ge][0]==="enter"?(eo=Kt(eo,Q.slice(Cn,ge)),Cn=ge):(ki=Kt(ki,Q.slice(Cn,ge+1)),Cn=ge+1));ki=Kt(ki,eo),ki=Kt(ki,Q.slice(Cn)),ge=-1;let Ti=ki;for(l.enter.null&&l.enter.null.call(d);++ge<Q.length;){let jh=l[Ti[ge][0]],$h=Ti[ge][1].type,Wh=jh[$h];$S.call(jh,$h)&&Wh&&Wh.call(S({sliceSerialize:Ti[ge][2].sliceSerialize},d),Ti[ge][1])}return l.exit.null&&l.exit.null.call(d),o[0].join("")}function C(Q){let ge=Q.length,Cn=0,_i=0,ki=!1,eo;for(;++Cn<ge;){let Ti=Q[Cn];if(Ti[1]._container)eo=void 0,Ti[0]==="enter"?_i++:_i--;else switch(Ti[1].type){case"listItemPrefix":{Ti[0]==="exit"&&(eo=!0);break}case"linePrefix":break;case"lineEndingBlank":{Ti[0]==="enter"&&!_i&&(eo?eo=void 0:ki=!0);break}default:eo=void 0}}Q[0][1]._loose=ki}function R(Q,ge){c[Q]=ge}function F(Q){return c[Q]}function X(){o.push([])}function q(){return o.pop().join("")}function te(Q){e&&(R("lastWasTag",!0),o[o.length-1].push(Q))}function K(Q){R("lastWasTag"),o[o.length-1].push(Q)}function Ge(){K(m||` 57`)}function se(){let Q=o[o.length-1],ge=Q[Q.length-1],Cn=ge?ge.charCodeAt(ge.length-1):null;Cn===10||Cn===13||Cn===null||Ge()}function L(Q){return F("ignoreEncode")?Q:lp(Q)}function Ye(){q()}function Pt(Q){a.push(!Q._loose),se(),te("<ol"),R("expectFirstItem",!0)}function _t(Q){a.push(!Q._loose),se(),te("<ul"),R("expectFirstItem",!0)}function Lt(Q){if(F("expectFirstItem")){let ge=Number.parseInt(this.sliceSerialize(Q),10);ge!==1&&te(' start="'+L(String(ge))+'"')}}function Nn(){F("expectFirstItem")?te(">"):Ue(),se(),te("<li>"),R("expectFirstItem"),R("lastWasTag")}function Ct(){Ue(),a.pop(),Ge(),te("</ol>")}function Ce(){Ue(),a.pop(),Ge(),te("</ul>")}function Ue(){F("lastWasTag")&&!F("slurpAllLineEndings")&&se(),te("</li>"),R("slurpAllLineEndings")}function He(){a.push(!1),se(),te("<blockquote>")}function zt(){a.pop(),se(),te("</blockquote>"),R("slurpAllLineEndings")}function Qt(){a[a.length-1]||(se(),te("<p>")),R("slurpAllLineEndings")}function gi(){a[a.length-1]?R("slurpAllLineEndings",!0):te("</p>")}function Ii(){se(),te("<pre><code"),R("fencesCount",0)}function P(){let Q=q();te(' class="language-'+Q+'"')}function Gn(){let Q=F("fencesCount")||0;Q||(te(">"),R("slurpOneLineEnding",!0)),R("fencesCount",Q+1)}function Ji(){se(),te("<pre><code>")}function M(){let Q=F("fencesCount");Q!==void 0&&Q<2&&c.tightStack.length>0&&!F("lastWasTag")&&Ge(),F("flowCodeSeenData")&&se(),te("</code></pre>"),Q!==void 0&&Q<2&&se(),R("flowCodeSeenData"),R("fencesCount"),R("slurpOneLineEnding")}function Ln(){r.push({image:!0}),e=void 0}function Ar(){r.push({})}function jp(Q){r[r.length-1].labelId=this.sliceSerialize(Q)}function yl(){r[r.length-1].label=q()}function pn(Q){r[r.length-1].referenceId=this.sliceSerialize(Q)}function Za(){X(),r[r.length-1].destination=""}function Xi(){X(),R("ignoreEncode",!0)}function Lr(){r[r.length-1].destination=q(),R("ignoreEncode")}function zr(){r[r.length-1].title=q()}function bl(){let Q=r.length-1,ge=r[Q],Cn=ge.referenceId||ge.labelId,_i=ge.destination===void 0?n[ir(Cn)]:ge;for(e=!0;Q--;)if(r[Q].image){e=void 0;break}ge.image?(te('<img src="'+sl(_i.destination,i.allowDangerousProtocol?void 0:VR)+'" alt="'),K(ge.label),te('"')):te('<a href="'+sl(_i.destination,i.allowDangerousProtocol?void 0:WS)+'"'),te(_i.title?' title="'+_i.title+'"':""),ge.image?te(" />"):(te(">"),K(ge.label),te("</a>")),r.pop()}function kv(){X(),r.push({})}function Tv(Q){q(),r[r.length-1].labelId=this.sliceSerialize(Q)}function Rv(){X(),R("ignoreEncode",!0)}function Ev(){r[r.length-1].destination=q(),R("ignoreEncode")}function Av(){r[r.length-1].title=q()}function Lv(){let Q=r[r.length-1],ge=ir(Q.labelId);q(),$S.call(n,ge)||(n[ge]=r[r.length-1]),r.pop()}function zv(){R("slurpAllLineEndings",!0)}function Bv(Q){F("headingRank")||(R("headingRank",this.sliceSerialize(Q).length),se(),te("<h"+F("headingRank")+">"))}function Fv(){X(),R("slurpAllLineEndings")}function Uv(){R("slurpAllLineEndings",!0)}function Hv(){te("</h"+F("headingRank")+">"),R("headingRank")}function Vv(Q){R("headingRank",this.sliceSerialize(Q).charCodeAt(0)===61?1:2)}function qv(){let Q=q();se(),te("<h"+F("headingRank")+">"),K(Q),te("</h"+F("headingRank")+">"),R("slurpAllLineEndings"),R("headingRank")}function Qa(Q){K(L(this.sliceSerialize(Q)))}function jv(Q){if(!F("slurpAllLineEndings")){if(F("slurpOneLineEnding")){R("slurpOneLineEnding");return}if(F("inCodeText")){K(" ");return}K(L(this.sliceSerialize(Q)))}}function $v(Q){K(L(this.sliceSerialize(Q))),R("flowCodeSeenData",!0)}function Uh(){te("<br />")}function Wv(){se(),Vh()}function Hh(){R("ignoreEncode")}function Vh(){i.allowDangerousHtml&&R("ignoreEncode",!0)}function Gv(){te("<em>")}function Yv(){te("<strong>")}function Kv(){R("inCodeText",!0),te("<code>")}function Zv(){R("inCodeText"),te("</code>")}function Qv(){te("</em>")}function Jv(){te("</strong>")}function Xv(){se(),te("<hr />")}function qh(Q){R("characterReferenceType",Q.type)}function e1(Q){let ge=this.sliceSerialize(Q),Cn=F("characterReferenceType")?FS(ge,F("characterReferenceType")==="characterReferenceMarkerNumeric"?10:16):sp(ge);K(L(Cn)),R("characterReferenceType")}function t1(Q){let ge=this.sliceSerialize(Q);te('<a href="'+sl(ge,i.allowDangerousProtocol?void 0:WS)+'">'),K(L(ge)),te("</a>")}function n1(Q){let ge=this.sliceSerialize(Q);te('<a href="'+sl("mailto:"+ge)+'">'),K(L(ge)),te("</a>")}}function ze(t,i,e,n){let o=n?n-1:Number.POSITIVE_INFINITY,r=0;return a;function a(l){return Ae(l)?(t.enter(e),s(l)):i(l)}function s(l){return Ae(l)&&r++<o?(t.consume(l),s):(t.exit(e),i(l))}}var YS={tokenize:qR};function qR(t){let i=t.attempt(this.parser.constructs.contentInitial,n,o),e;return i;function n(s){if(s===null){t.consume(s);return}return t.enter("lineEnding"),t.consume(s),t.exit("lineEnding"),ze(t,i,"linePrefix")}function o(s){return t.enter("paragraph"),r(s)}function r(s){let l=t.enter("chunkText",{contentType:"text",previous:e});return e&&(e.next=l),e=l,a(s)}function a(s){if(s===null){t.exit("chunkText"),t.exit("paragraph"),t.consume(s);return}return le(s)?(t.consume(s),t.exit("chunkText"),r):(t.consume(s),a)}}var ZS={tokenize:jR},KS={tokenize:$R};function jR(t){let i=this,e=[],n=0,o,r,a;return s;function s(K){if(n<e.length){let Ge=e[n];return i.containerState=Ge[1],t.attempt(Ge[0].continuation,l,c)(K)}return c(K)}function l(K){if(n++,i.containerState._closeFlow){i.containerState._closeFlow=void 0,o&&te();let Ge=i.events.length,se=Ge,L;for(;se--;)if(i.events[se][0]==="exit"&&i.events[se][1].type==="chunkFlow"){L=i.events[se][1].end;break}q(n);let Ye=Ge;for(;Ye<i.events.length;)i.events[Ye][1].end=S({},L),Ye++;return _n(i.events,se+1,0,i.events.slice(Ge)),i.events.length=Ye,c(K)}return s(K)}function c(K){if(n===e.length){if(!o)return g(K);if(o.currentConstruct&&o.currentConstruct.concrete)return R(K);i.interrupt=!!(o.currentConstruct&&!o._gfmTableDynamicInterruptHack)}return i.containerState={},t.check(KS,d,m)(K)}function d(K){return o&&te(),q(n),g(K)}function m(K){return i.parser.lazy[i.now().line]=n!==e.length,a=i.now().offset,R(K)}function g(K){return i.containerState={},t.attempt(KS,C,R)(K)}function C(K){return n++,e.push([i.currentConstruct,i.containerState]),g(K)}function R(K){if(K===null){o&&te(),q(0),t.consume(K);return}return o=o||i.parser.flow(i.now()),t.enter("chunkFlow",{_tokenizer:o,contentType:"flow",previous:r}),F(K)}function F(K){if(K===null){X(t.exit("chunkFlow"),!0),q(0),t.consume(K);return}return le(K)?(t.consume(K),X(t.exit("chunkFlow")),n=0,i.interrupt=void 0,s):(t.consume(K),F)}function X(K,Ge){let se=i.sliceStream(K);if(Ge&&se.push(null),K.previous=r,r&&(r.next=K),r=K,o.defineSkip(K.start),o.write(se),i.parser.lazy[K.start.line]){let L=o.events.length;for(;L--;)if(o.events[L][1].start.offset<a&&(!o.events[L][1].end||o.events[L][1].end.offset>a))return;let Ye=i.events.length,Pt=Ye,_t,Lt;for(;Pt--;)if(i.events[Pt][0]==="exit"&&i.events[Pt][1].type==="chunkFlow"){if(_t){Lt=i.events[Pt][1].end;break}_t=!0}for(q(n),L=Ye;L<i.events.length;)i.events[L][1].end=S({},Lt),L++;_n(i.events,Pt+1,0,i.events.slice(Ye)),i.events.length=L}}function q(K){let Ge=e.length;for(;Ge-- >K;){let se=e[Ge];i.containerState=se[1],se[0].exit.call(i,t)}e.length=K}function te(){o.write([null]),r=void 0,o=void 0,i.containerState._closeFlow=void 0}}function $R(t,i,e){return ze(t,t.attempt(this.parser.constructs.document,i,e),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function xh(t){if(t===null||Vt(t)||jS(t))return 1;if(qS(t))return 2}function Wa(t,i,e){let n=[],o=-1;for(;++o<t.length;){let r=t[o].resolveAll;r&&!n.includes(r)&&(i=r(i,e),n.push(r))}return i}var ll={name:"attention",resolveAll:WR,tokenize:GR};function WR(t,i){let e=-1,n,o,r,a,s,l,c,d;for(;++e<t.length;)if(t[e][0]==="enter"&&t[e][1].type==="attentionSequence"&&t[e][1]._close){for(n=e;n--;)if(t[n][0]==="exit"&&t[n][1].type==="attentionSequence"&&t[n][1]._open&&i.sliceSerialize(t[n][1]).charCodeAt(0)===i.sliceSerialize(t[e][1]).charCodeAt(0)){if((t[n][1]._close||t[e][1]._open)&&(t[e][1].end.offset-t[e][1].start.offset)%3&&!((t[n][1].end.offset-t[n][1].start.offset+t[e][1].end.offset-t[e][1].start.offset)%3))continue;l=t[n][1].end.offset-t[n][1].start.offset>1&&t[e][1].end.offset-t[e][1].start.offset>1?2:1;let m=S({},t[n][1].end),g=S({},t[e][1].start);QS(m,-l),QS(g,l),a={type:l>1?"strongSequence":"emphasisSequence",start:m,end:S({},t[n][1].end)},s={type:l>1?"strongSequence":"emphasisSequence",start:S({},t[e][1].start),end:g},r={type:l>1?"strongText":"emphasisText",start:S({},t[n][1].end),end:S({},t[e][1].start)},o={type:l>1?"strong":"emphasis",start:S({},a.start),end:S({},s.end)},t[n][1].end=S({},a.start),t[e][1].start=S({},s.end),c=[],t[n][1].end.offset-t[n][1].start.offset&&(c=Kt(c,[["enter",t[n][1],i],["exit",t[n][1],i]])),c=Kt(c,[["enter",o,i],["enter",a,i],["exit",a,i],["enter",r,i]]),c=Kt(c,Wa(i.parser.constructs.insideSpan.null,t.slice(n+1,e),i)),c=Kt(c,[["exit",r,i],["enter",s,i],["exit",s,i],["exit",o,i]]),t[e][1].end.offset-t[e][1].start.offset?(d=2,c=Kt(c,[["enter",t[e][1],i],["exit",t[e][1],i]])):d=0,_n(t,n-1,e-n+3,c),e=n+c.length-d-2;break}}for(e=-1;++e<t.length;)t[e][1].type==="attentionSequence"&&(t[e][1].type="data");return t}function GR(t,i){let e=this.parser.constructs.attentionMarkers.null,n=this.previous,o=xh(n),r;return a;function a(l){return r=l,t.enter("attentionSequence"),s(l)}function s(l){if(l===r)return t.consume(l),s;let c=t.exit("attentionSequence"),d=xh(l),m=!d||d===2&&o||e.includes(l),g=!o||o===2&&d||e.includes(n);return c._open=!!(r===42?m:m&&(o||!g)),c._close=!!(r===42?g:g&&(d||!m)),i(l)}}function QS(t,i){t.column+=i,t.offset+=i,t._bufferIndex+=i}var Ph={name:"autolink",tokenize:YR};function YR(t,i,e){let n=0;return o;function o(C){return t.enter("autolink"),t.enter("autolinkMarker"),t.consume(C),t.exit("autolinkMarker"),t.enter("autolinkProtocol"),r}function r(C){return jn(C)?(t.consume(C),a):C===64?e(C):c(C)}function a(C){return C===43||C===45||C===46||cn(C)?(n=1,s(C)):c(C)}function s(C){return C===58?(t.consume(C),n=0,l):(C===43||C===45||C===46||cn(C))&&n++<32?(t.consume(C),s):(n=0,c(C))}function l(C){return C===62?(t.exit("autolinkProtocol"),t.enter("autolinkMarker"),t.consume(C),t.exit("autolinkMarker"),t.exit("autolink"),i):C===null||C===32||C===60||rl(C)?e(C):(t.consume(C),l)}function c(C){return C===64?(t.consume(C),d):US(C)?(t.consume(C),c):e(C)}function d(C){return cn(C)?m(C):e(C)}function m(C){return C===46?(t.consume(C),n=0,d):C===62?(t.exit("autolinkProtocol").type="autolinkEmail",t.enter("autolinkMarker"),t.consume(C),t.exit("autolinkMarker"),t.exit("autolink"),i):g(C)}function g(C){if((C===45||cn(C))&&n++<63){let R=C===45?g:m;return t.consume(C),R}return e(C)}}var rr={partial:!0,tokenize:KR};function KR(t,i,e){return n;function n(r){return Ae(r)?ze(t,o,"linePrefix")(r):o(r)}function o(r){return r===null||le(r)?i(r):e(r)}}var cp={continuation:{tokenize:QR},exit:JR,name:"blockQuote",tokenize:ZR};function ZR(t,i,e){let n=this;return o;function o(a){if(a===62){let s=n.containerState;return s.open||(t.enter("blockQuote",{_container:!0}),s.open=!0),t.enter("blockQuotePrefix"),t.enter("blockQuoteMarker"),t.consume(a),t.exit("blockQuoteMarker"),r}return e(a)}function r(a){return Ae(a)?(t.enter("blockQuotePrefixWhitespace"),t.consume(a),t.exit("blockQuotePrefixWhitespace"),t.exit("blockQuotePrefix"),i):(t.exit("blockQuotePrefix"),i(a))}}function QR(t,i,e){let n=this;return o;function o(a){return Ae(a)?ze(t,r,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a):r(a)}
vendor: 4,098 bytes, line 57
57function r(a){return t.attempt(cp,i,e)(a)}}function JR(t){t.exit("blockQuote")}var dp={name:"characterEscape",tokenize:XR};function XR(t,i,e){return n;function n(r){return t.enter("characterEscape"),t.enter("escapeMarker"),t.consume(r),t.exit("escapeMarker"),o}function o(r){return VS(r)?(t.enter("characterEscapeValue"),t.consume(r),t.exit("characterEscapeValue"),t.exit("characterEscape"),i):e(r)}}var pp={name:"characterReference",tokenize:eE};function eE(t,i,e){let n=this,o=0,r,a;return s;function s(m){return t.enter("characterReference"),t.enter("characterReferenceMarker"),t.consume(m),t.exit("characterReferenceMarker"),l}function l(m){return m===35?(t.enter("characterReferenceMarkerNumeric"),t.consume(m),t.exit("characterReferenceMarkerNumeric"),c):(t.enter("characterReferenceValue"),r=31,a=cn,d(m))}function c(m){return m===88||m===120?(t.enter("characterReferenceMarkerHexadecimal"),t.consume(m),t.exit("characterReferenceMarkerHexadecimal"),t.enter("characterReferenceValue"),r=6,a=HS,d):(t.enter("characterReferenceValue"),r=7,a=al,d(m))}function d(m){if(m===59&&o){let g=t.exit("characterReferenceValue");return a===cn&&!sp(n.sliceSerialize(g))?e(m):(t.enter("characterReferenceMarker"),t.consume(m),t.exit("characterReferenceMarker"),t.exit("characterReference"),i)}return a(m)&&o++<r?(t.consume(m),d):e(m)}}var JS={partial:!0,tokenize:nE},up={concrete:!0,name:"codeFenced",tokenize:tE};function tE(t,i,e){let n=this,o={partial:!0,tokenize:se},r=0,a=0,s;return l;function l(L){return c(L)}function c(L){let Ye=n.events[n.events.length-1];return r=Ye&&Ye[1].type==="linePrefix"?Ye[2].sliceSerialize(Ye[1],!0).length:0,s=L,t.enter("codeFenced"),t.enter("codeFencedFence"),t.enter("codeFencedFenceSequence"),d(L)}function d(L){return L===s?(a++,t.consume(L),d):a<3?e(L):(t.exit("codeFencedFenceSequence"),Ae(L)?ze(t,m,"whitespace")(L):m(L))}function m(L){return L===null||le(L)?(t.exit("codeFencedFence"),n.interrupt?i(L):t.check(JS,F,Ge)(L)):(t.enter("codeFencedFenceInfo"),t.enter("chunkString",{contentType:"string"}),g(L))}function g(L){return L===null||le(L)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),m(L)):Ae(L)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),ze(t,C,"whitespace")(L)):L===96&&L===s?e(L):(t.consume(L),g)}function C(L){return L===null||le(L)?m(L):(t.enter("codeFencedFenceMeta"),t.enter("chunkString",{contentType:"string"}),R(L))}function R(L){return L===null||le(L)?(t.exit("chunkString"),t.exit("codeFencedFenceMeta"),m(L)):L===96&&L===s?e(L):(t.consume(L),R)}function F(L){return t.attempt(o,Ge,X)(L)}function X(L){return t.enter("lineEnding"),t.consume(L),t.exit("lineEnding"),q}function q(L){return r>0&&Ae(L)?ze(t,te,"linePrefix",r+1)(L):te(L)}function te(L){return L===null||le(L)?t.check(JS,F,Ge)(L):(t.enter("codeFlowValue"),K(L))}function K(L){return L===null||le(L)?(t.exit("codeFlowValue"),te(L)):(t.consume(L),K)}function Ge(L){return t.exit("codeFenced"),i(L)}function se(L,Ye,Pt){let _t=0;return Lt;function Lt(He){return L.enter("lineEnding"),L.consume(He),L.exit("lineEnding"),Nn}function Nn(He){return L.enter("codeFencedFence"),Ae(He)?ze(L,Ct,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(He):Ct(He)}function Ct(He){return He===s?(L.enter("codeFencedFenceSequence"),Ce(He)):Pt(He)}function Ce(He){return He===s?(_t++,L.consume(He),Ce):_t>=a?(L.exit("codeFencedFenceSequence"),Ae(He)?ze(L,Ue,"whitespace")(He):Ue(He)):Pt(He)}function Ue(He){return He===null||le(He)?(L.exit("codeFencedFence"),Ye(He)):Pt(He)}}}function nE(t,i,e){let n=this;return o;function o(a){return a===null?e(a):(t.enter("lineEnding"),t.consume(a),t.exit("lineEnding"),r)}function r(a){return n.parser.lazy[n.now().line]?e(a):i(a)}}var cl={name:"codeIndented",tokenize:oE},iE={partial:!0,tokenize:rE};function oE(t,i,e){let n=this;return o;function o(c){return t.enter("codeIndented"),ze(t,r,"linePrefix",5)(c)}function r(c){let d=n.events[n.events.length-1];return d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?a(c):e(c)}function a(c){return c===null?l(c):le(c)?t.attempt(iE,a,l)(c):(t.enter("co
57deFlowValue"),s(c))}function s(c){return c===null||le(c)?(t.exit("codeFlowValue"),a(c)):(t.consume(c),s)}function l(c){return t.exit("codeIndented"),i(c)}}function rE(t,i,e){let n=this;return o;function o(a){return n.parser.lazy[n.now().line]?e(a):le(a)?(t.enter("lineEnding"),t.consume(a),t.exit("lineEnding"),o):ze(t,r,"linePrefix",5)(a)}function r(a){let s=n.events[n.events.length-1];return s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?i(a):le(a)?o(a):e(a)}}var Mh={name:"codeText",previous:sE,resolve:aE,tokenize:lE};function aE(t){let i=t.length-4,e=3,n,o;if((t[e][1].type==="lineEnding"||t[e][1].type==="space")&&(t[i][1].type==="lineEnding"||t[i][1].type==="space")){for(n=e;++n<i;)if(t[n][1].type==="codeTextData"){t[e][1].type="codeTextPadding",t[i][1].type="codeTextPadding",e+=2,i-=2;break}}for(n=e-1,i++;++n<=i;)o===void 0?n!==i&&t[n][1].type!=="lineEnding"&&(o=n):(n===i||t[n][1].type==="lineEnding")&&(t[o][1].type="codeTextData",n!==o+2&&(t[o][1].end=t[n-1][1].end,t.splice(o+2,n-o-2),i-=n-o-2,n=o+2),o=void 0);return t}function sE(t){return t!==96||this.events[this.events.length-1][1].type==="characterEscape"}function lE(t,i,e){let n=this,o=0,r,a;return s;function s(g){return t.enter("codeText"),t.enter("codeTextSequence"),l(g)}function l(g){return g===96?(t.consume(g),o++,l):(t.exit("codeTextSequence"),c(g))}function c(g){return g===null?e(g):g===32?(t.enter("space"),t.consume(g),t.exit("space"),c):g===96?(a=t.enter("codeTextSequence"),r=0,m(g)):le(g)?(t.enter("lineEnding"),t.consume(g),t.exit("lineEnding"),c):(t.enter("codeTextData"),d(g))}function d(g){return g===null||g===32||g===96||le(g)?(t.exit("codeTextData"),c(g)):(t.consume(g),d)}function m(g){return g===96?(t.consume(g),r++,m):r===o?(t.exit("codeTextSequence"),t.exit("codeText"),i(g)):(a.type="codeTextData",d(g))}}var mp=class{constructor(i){this.left=i?[...i]:[],this.right=[]}get(i){if(i<0||i>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+i+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return i<this.left.length?this.left[i]:this.right[this.right.length-i+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(i,e){let n=e??Number.POSITIVE_INFINITY;return n<this.left.length?this.left.slice(i,n):i>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-i+this.left.length).reverse():this.left.slice(i).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(i,e,n){let o=e||0;this.setCursor(Math.trunc(i));let r=this.right.splice(this.right.length-o,Number.POSITIVE_INFINITY);return n&&dl(this.left,n),r.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(i){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(i)}pushMany(i){this.setCursor(Number.POSITIVE_INFINITY),dl(this.left,i)}unshift(i){this.setCursor(0),this.right.push(i)}unshiftMany(i){this.setCursor(0),dl(this.right,i.reverse())}setCursor(i){if(!(i===this.left.length||i>this.left.length&&this.right.length===0||i<0&&this.left.length===0))if(i<this.left.length){let e=this.left.splice(i,Number.POSITIVE_INFINITY);dl(this.right,e.reverse())}else{let e=this.right.splice(this.left.length+this.right.length-i,Number.POSITIVE_INFINITY);dl(this.left,e.reverse())}}};function dl(t,i){let e=0;if(i.length<1e4)t.push(...i);else for(;e<i.length;)t.push(...i.slice(e,e+1e4)),e+=1e4}function hp(t){let i={},e=-1,n,o,r,a,s,l,c,d=new mp(t);for(;++e<d.length;){for(;e in i;)e=i[e];if(n=d.get(e),e&&n[1].type==="chunkFlow"&&d.get(e-1)[1].type==="listItemPrefix"&&(l=n[1]._tokenizer.events,r=0,r<l.length&&l[r][1].type==="lineEndingBlank"&&(r+=2),r<l.length&&l[r][1].type==="content"))for(;++r<l.length&&l[r][1].type!=="content";)l[r][1].type==="chunkText"&&(l[r][1]._isInFirstContentOfListItem=!0,r++);if(n[0]==="enter")n[1].contentType&&(Object.assign(i,cE(d,e)),e=i[e],c=!0);else if(n[1]._container){for(r=e,o=void 0;r--;)if(a=d.get(r),a[1].type==="lineEnding"||a[1].type==="lineEndingBlank")a[0]==="enter"&&(o&&(d.get(o)[1].type="lineEndingBlank"),a[1].type="lineEnding",o=r);else if(!(a[1].type==="linePrefix"||a[1].type==="listItemIndent"))break;o&&(n[1].end=S({},d.get(o)[1].start),s=d.slice(o,e),s.unshift(n),d.splice(o,e-o+1,s))}}return _n(t,0,Number.POSITIVE_INFINITY,d.slice(0)),!c}function cE(t,i){let e=t.get(i)[1],n=t.get(i)[2],o=i-1,r=[],a=e._tokenizer;a||(a=n.parser[e.contentType](e.start),e._contentTypeTextTrailing&&(a._contentTypeTextTrailing=!0));let s=a.events,l=[],c={},d,m,g=-1,C=e,R=0,F=0,X=[F];for(;C;){for(;t.get(++o)[1]!==C;);r.push(o),C._tokenizer||(d=n.sliceStream(C),C.next||d.push(null),m&&a.defineSki
vendor: 15,092 bytes, line 57
57p(C.start),C._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=!0),a.write(d),C._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=void 0)),m=C,C=C.next}for(C=e;++g<s.length;)s[g][0]==="exit"&&s[g-1][0]==="enter"&&s[g][1].type===s[g-1][1].type&&s[g][1].start.line!==s[g][1].end.line&&(F=g+1,X.push(F),C._tokenizer=void 0,C.previous=void 0,C=C.next);for(a.events=[],C?(C._tokenizer=void 0,C.previous=void 0):X.pop(),g=X.length;g--;){let q=s.slice(X[g],X[g+1]),te=r.pop();l.push([te,te+q.length-1]),t.splice(te,2,q)}for(l.reverse(),g=-1;++g<l.length;)c[R+l[g][0]]=R+l[g][1],R+=l[g][1]-l[g][0]-1;return c}var Oh={resolve:pE,tokenize:uE},dE={partial:!0,tokenize:mE};function pE(t){return hp(t),t}function uE(t,i){let e;return n;function n(s){return t.enter("content"),e=t.enter("chunkContent",{contentType:"content"}),o(s)}function o(s){return s===null?r(s):le(s)?t.check(dE,a,r)(s):(t.consume(s),o)}function r(s){return t.exit("chunkContent"),t.exit("content"),i(s)}function a(s){return t.consume(s),t.exit("chunkContent"),e.next=t.enter("chunkContent",{contentType:"content",previous:e}),e=e.next,o}}function mE(t,i,e){let n=this;return o;function o(a){return t.exit("chunkContent"),t.enter("lineEnding"),t.consume(a),t.exit("lineEnding"),ze(t,r,"linePrefix")}function r(a){if(a===null||le(a))return e(a);let s=n.events[n.events.length-1];return!n.parser.constructs.disable.null.includes("codeIndented")&&s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?i(a):t.interrupt(n.parser.constructs.flow,e,i)(a)}}function fp(t,i,e,n,o,r,a,s,l){let c=l||Number.POSITIVE_INFINITY,d=0;return m;function m(q){return q===60?(t.enter(n),t.enter(o),t.enter(r),t.consume(q),t.exit(r),g):q===null||q===32||q===41||rl(q)?e(q):(t.enter(n),t.enter(a),t.enter(s),t.enter("chunkString",{contentType:"string"}),F(q))}function g(q){return q===62?(t.enter(r),t.consume(q),t.exit(r),t.exit(o),t.exit(n),i):(t.enter(s),t.enter("chunkString",{contentType:"string"}),C(q))}function C(q){return q===62?(t.exit("chunkString"),t.exit(s),g(q)):q===null||q===60||le(q)?e(q):(t.consume(q),q===92?R:C)}function R(q){return q===60||q===62||q===92?(t.consume(q),C):C(q)}function F(q){return!d&&(q===null||q===41||Vt(q))?(t.exit("chunkString"),t.exit(s),t.exit(a),t.exit(n),i(q)):d<c&&q===40?(t.consume(q),d++,F):q===41?(t.consume(q),d--,F):q===null||q===32||q===40||rl(q)?e(q):(t.consume(q),q===92?X:F)}function X(q){return q===40||q===41||q===92?(t.consume(q),F):F(q)}}function gp(t,i,e,n,o,r){let a=this,s=0,l;return c;function c(C){return t.enter(n),t.enter(o),t.consume(C),t.exit(o),t.enter(r),d}function d(C){return s>999||C===null||C===91||C===93&&!l||C===94&&!s&&"_hiddenFootnoteSupport"in a.parser.constructs?e(C):C===93?(t.exit(r),t.enter(o),t.consume(C),t.exit(o),t.exit(n),i):le(C)?(t.enter("lineEnding"),t.consume(C),t.exit("lineEnding"),d):(t.enter("chunkString",{contentType:"string"}),m(C))}function m(C){return C===null||C===91||C===93||le(C)||s++>999?(t.exit("chunkString"),d(C)):(t.consume(C),l||(l=!Ae(C)),C===92?g:m)}function g(C){return C===91||C===92||C===93?(t.consume(C),s++,m):m(C)}}function _p(t,i,e,n,o,r){let a;return s;function s(g){return g===34||g===39||g===40?(t.enter(n),t.enter(o),t.consume(g),t.exit(o),a=g===40?41:g,l):e(g)}function l(g){return g===a?(t.enter(o),t.consume(g),t.exit(o),t.exit(n),i):(t.enter(r),c(g))}function c(g){return g===a?(t.exit(r),l(a)):g===null?e(g):le(g)?(t.enter("lineEnding"),t.consume(g),t.exit("lineEnding"),ze(t,c,"linePrefix")):(t.enter("chunkString",{contentType:"string"}),d(g))}function d(g){return g===a||g===null||le(g)?(t.exit("chunkString"),c(g)):(t.consume(g),g===92?m:d)}function m(g){return g===a||g===92?(t.consume(g),d):d(g)}}function Ir(t,i){let e;return n;function n(o){return le(o)?(t.enter("lineEnding"),t.consume(o),t.exit("lineEnding"),e=!0,n):Ae(o)?ze(t,n,e?"linePrefix":"lineSuffix")(o):i(o)}}var Dh={name:"definition",tokenize:fE},hE={partial:!0,tokenize:gE};function fE(t,i,e){let n=this,o;return r;function r(C){return t.enter("definition"),a(C)}function a(C){return gp.call(n,t,s,e,"definitionLabel","definitionLabelMarker","definitionLabelString")(C)}function s(C){return o=ir(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)),C===58?(t.enter("definitionMarker"),t.consume(C),t.exit("definitionMarker"),l):e(C)}function l(C){return Vt(C)?Ir(t,c)(C):c(C)}function c(C){return fp(t,d,e,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(C)}function d(C){return t.attempt(hE,m,m)(C)}function m(C){return Ae(C)?ze(t,g,"whitespace")(C):g(C)}function g(C){return C===null||le(C)?(t.exit("definition"),n.parser.defined.push(o),i(C)):e(C)}}function gE(t,i,e){return n;function n(s){return Vt(s)?Ir(t,o)(s):e(s)}function o(s){return _p(t,r,e,"definitionTitle","definitionTitleMarker","definitionTitleString")(s)}function r(s){return Ae(s)?ze(t,a,"whitespace")(s):a(s)}function a(s){return s===null||le(s)?i(s):e(s)}}var Nh={name:"hardBreakEscape",tokenize:_E};function _E(t,i,e){return n;function n(r){return t.enter("hardBreakEscape"),t.consume(r),o}function o(r){return le(r)?(t.exit("hardBreakEscape"),i(r)):e(r)}}var Ih={name:"headingAtx",resolve:CE,tokenize:yE};function CE(t,i){let e=t.length-2,n=3,o,r;return t[n][1].type==="whitespace"&&(n+=2),e-2>n&&t[e][1].type==="whitespace"&&(e-=2),t[e][1].type==="atxHeadingSequence"&&(n===e-1||e-4>n&&t[e-2][1].type==="whitespace")&&(e-=n+1===e?2:4),e>n&&(o={type:"atxHeadingText",start:t[n][1].start,end:t[e][1].end},r={type:"chunkText",start:t[n][1].start,end:t[e][1].end,contentType:"text"},_n(t,n,e-n+1,[["enter",o,i],["enter",r,i],["exit",r,i],["exit",o,i]])),t}function yE(t,i,e){let n=0;return o;function o(d){return t.enter("atxHeading"),r(d)}function r(d){return t.enter("atxHeadingSequence"),a(d)}function a(d){return d===35&&n++<6?(t.consume(d),a):d===null||Vt(d)?(t.exit("atxHeadingSequence"),s(d)):e(d)}function s(d){return d===35?(t.enter("atxHeadingSequence"),l(d)):d===null||le(d)?(t.exit("atxHeading"),i(d)):Ae(d)?ze(t,s,"whitespace")(d):(t.enter("atxHeadingText"),c(d))}function l(d){return d===35?(t.consume(d),l):(t.exit("atxHeadingSequence"),s(d))}function c(d){return d===null||d===35||Vt(d)?(t.exit("atxHeadingText"),s(d)):(t.consume(d),c)}}var XS=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],kh=["pre","script","style","textarea"];var Th={concrete:!0,name:"htmlFlow",resolveTo:vE,tokenize:wE},bE={partial:!0,tokenize:PE},SE={partial:!0,tokenize:xE};function vE(t){let i=t.length;for(;i--&&!(t[i][0]==="enter"&&t[i][1].type==="htmlFlow"););return i>1&&t[i-2][1].type==="linePrefix"&&(t[i][1].start=t[i-2][1].start,t[i+1][1].start=t[i-2][1].start,t.splice(i-2,2)),t}function wE(t,i,e){let n=this,o,r,a,s,l;return c;function c(M){return d(M)}function d(M){return t.enter("htmlFlow"),t.enter("htmlFlowData"),t.consume(M),m}function m(M){return M===33?(t.consume(M),g):M===47?(t.consume(M),r=!0,F):M===63?(t.consume(M),o=3,n.interrupt?i:P):jn(M)?(t.consume(M),a=String.fromCharCode(M),X):e(M)}function g(M){return M===45?(t.consume(M),o=2,C):M===91?(t.consume(M),o=5,s=0,R):jn(M)?(t.consume(M),o=4,n.interrupt?i:P):e(M)}function C(M){return M===45?(t.consume(M),n.interrupt?i:P):e(M)}function R(M){let Ln="CDATA[";return M===Ln.charCodeAt(s++)?(t.consume(M),s===Ln.length?n.interrupt?i:Ct:R):e(M)}function F(M){return jn(M)?(t.consume(M),a=String.fromCharCode(M),X):e(M)}function X(M){if(M===null||M===47||M===62||Vt(M)){let Ln=M===47,Ar=a.toLowerCase();return!Ln&&!r&&kh.includes(Ar)?(o=1,n.interrupt?i(M):Ct(M)):XS.includes(a.toLowerCase())?(o=6,Ln?(t.consume(M),q):n.interrupt?i(M):Ct(M)):(o=7,n.interrupt&&!n.parser.lazy[n.now().line]?e(M):r?te(M):K(M))}return M===45||cn(M)?(t.consume(M),a+=String.fromCharCode(M),X):e(M)}function q(M){return M===62?(t.consume(M),n.interrupt?i:Ct):e(M)}function te(M){return Ae(M)?(t.consume(M),te):Lt(M)}function K(M){return M===47?(t.consume(M),Lt):M===58||M===95||jn(M)?(t.consume(M),Ge):Ae(M)?(t.consume(M),K):Lt(M)}function Ge(M){return M===45||M===46||M===58||M===95||cn(M)?(t.consume(M),Ge):se(M)}function se(M){return M===61?(t.consume(M),L):Ae(M)?(t.consume(M),se):K(M)}function L(M){return M===null||M===60||M===61||M===62||M===96?e(M):M===34||M===39?(t.consume(M),l=M,Ye):Ae(M)?(t.consume(M),L):Pt(M)}function Ye(M){return M===l?(t.consume(M),l=null,_t):M===null||le(M)?e(M):(t.consume(M),Ye)}function Pt(M){return M===null||M===34||M===39||M===47||M===60||M===61||M===62||M===96||Vt(M)?se(M):(t.consume(M),Pt)}function _t(M){return M===47||M===62||Ae(M)?K(M):e(M)}function Lt(M){return M===62?(t.consume(M),Nn):e(M)}function Nn(M){return M===null||le(M)?Ct(M):Ae(M)?(t.consume(M),Nn):e(M)}function Ct(M){return M===45&&o===2?(t.consume(M),zt):M===60&&o===1?(t.consume(M),Qt):M===62&&o===4?(t.consume(M),Gn):M===63&&o===3?(t.consume(M),P):M===93&&o===5?(t.consume(M),Ii):le(M)&&(o===6||o===7)?(t.exit("htmlFlowData"),t.check(bE,Ji,Ce)(M)):M===null||le(M)?(t.exit("htmlFlowData"),Ce(M)):(t.consume(M),Ct)}function Ce(M){return t.check(SE,Ue,Ji)(M)}function Ue(M){return t.enter("lineEnding"),t.consume(M),t.exit("lineEnding"),He}function He(M){return M===null||le(M)?Ce(M):(t.enter("htmlFlowData"),Ct(M))}function zt(M){return M===45?(t.consume(M),P):Ct(M)}function Qt(M){return M===47?(t.consume(M),a="",gi):Ct(M)}function gi(M){if(M===62){let Ln=a.toLowerCase();return kh.includes(Ln)?(t.consume(M),Gn):Ct(M)}return jn(M)&&a.length<8?(t.consume(M),a+=String.fromCharCode(M),gi):Ct(M)}function Ii(M){return M===93?(t.consume(M),P):Ct(M)}function P(M){return M===62?(t.consume(M),Gn):M===45&&o===2?(t.consume(M),P):Ct(M)}function Gn(M){return M===null||le(M)?(t.exit("htmlFlowData"),Ji(M)):(t.consume(M),Gn)}function Ji(M){return t.exit("htmlFlow"),i(M)}}function xE(t,i,e){let n=this;return o;function o(a){return le(a)?(t.enter("lineEnding"),t.consume(a),t.exit("lineEnding"),r):e(a)}function r(a){return n.parser.lazy[n.now().line]?e(a):i(a)}}function PE(t,i,e){return n;function n(o){return t.enter("lineEnding"),t.consume(o),t.exit("lineEnding"),t.attempt(rr,i,e)}}var Rh={name:"htmlText",tokenize:ME};function ME(t,i,e){let n=this,o,r,a;return s;function s(P){return t.enter("htmlText"),t.enter("htmlTextData"),t.consume(P),l}function l(P){return P===33?(t.consume(P),c):P===47?(t.consume(P),se):P===63?(t.consume(P),K):jn(P)?(t.consume(P),Pt):e(P)}function c(P){return P===45?(t.consume(P),d):P===91?(t.consume(P),r=0,R):jn(P)?(t.consume(P),te):e(P)}function d(P){return P===45?(t.consume(P),C):e(P)}function m(P){return P===null?e(P):P===45?(t.consume(P),g):le(P)?(a=m,Qt(P)):(t.consume(P),m)}function g(P){return P===45?(t.consume(P),C):m(P)}function C(P){return P===62?zt(P):P===45?g(P):m(P)}function R(P){let Gn="CDATA[";return P===Gn.charCodeAt(r++)?(t.consume(P),r===Gn.length?F:R):e(P)}function F(P){return P===null?e(P):P===93?(t.consume(P),X):le(P)?(a=F,Qt(P)):(t.consume(P),F)}function X(P){return P===93?(t.consume(P),q):F(P)}function q(P){return P===62?zt(P):P===93?(t.consume(P),q):F(P)}function te(P){return P===null||P===62?zt(P):le(P)?(a=te,Qt(P)):(t.consume(P),te)}function K(P){return P===null?e(P):P===63?(t.consume(P),Ge):le(P)?(a=K,Qt(P)):(t.consume(P),K)}function Ge(P){return P===62?zt(P):K(P)}function se(P){return jn(P)?(t.consume(P),L):e(P)}function L(P){return P===45||cn(P)?(t.consume(P),L):Ye(P)}function Ye(P){return le(P)?(a=Ye,Qt(P)):Ae(P)?(t.consume(P),Ye):zt(P)}function Pt(P){return P===45||cn(P)?(t.consume(P),Pt):P===47||P===62||Vt(P)?_t(P):e(P)}function _t(P){return P===47?(t.consume(P),zt):P===58||P===95||jn(P)?(t.consume(P),Lt):le(P)?(a=_t,Qt(P)):Ae(P)?(t.consume(P),_t):zt(P)}function Lt(P){return P===45||P===46||P===58||P===95||cn(P)?(t.consume(P),Lt):Nn(P)}function Nn(P){return P===61?(t.consume(P),Ct):le(P)?(a=Nn,Qt(P)):Ae(P)?(t.consume(P),Nn):_t(P)}function Ct(P){return P===null||P===60||P===61||P===62||P===96?e(P):P===34||P===39?(t.consume(P),o=P,Ce):le(P)?(a=Ct,Qt(P)):Ae(P)?(t.consume(P),Ct):(t.consume(P),Ue)}function Ce(P){return P===o?(t.consume(P),o=void 0,He):P===null?e(P):le(P)?(a=Ce,Qt(P)):(t.consume(P),Ce)}function Ue(P){return P===null||P===34||P===39||P===60||P===61||P===96?e(P):P===47||P===62||Vt(P)?_t(P):(t.consume(P),Ue)}function He(P){return P===47||P===62||Vt(P)?_t(P):e(P)}function zt(P){return P===62?(t.consume(P),t.exit("htmlTextData"),t.exit("htmlText"),i):e(P)}function Qt(P){return t.exit("htmlTextData"),t.enter("lineEnding"),t.consume(P),t.exit("lineEnding"),gi}function gi(P){return Ae(P)?ze(t,Ii,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(P):Ii(P)}function Ii(P){return t.enter("htmlTextData"),a(P)}}var kr={name:"labelEnd",resolveAll:IE,resolveTo:kE,tokenize:TE},OE={tokenize:RE},DE={tokenize:EE},NE={tokenize:AE};function IE(t){let i=-1,e=[];for(;++i<t.length;){let n=t[i][1];if(e.push(t[i]),n.type==="labelImage"||n.type==="labelLink"||n.type==="labelEnd"){let o=n.type==="labelImage"?4:2;n.type="data",i+=o}}return t.length!==e.length&&_n(t,0,t.length,e),t}function kE(t,i){let e=t.length,n=0,o,r,a,s;for(;e--;)if(o=t[e][1],r){if(o.type==="link"||o.type==="labelLink"&&o._inactive)break;t[e][0]==="enter"&&o.type==="labelLink"&&(o._inactive=!0)}else if(a){if(t[e][0]==="enter"&&(o.type==="labelImage"||o.type==="labelLink")&&!o._balanced&&(r=e,o.type!=="labelLink")){n=2;break}}else o.type==="labelEnd"&&(a=e);let l={type:t[r][1].type==="labelLink"?"link":"image",start:S({},t[r][1].start),end:S({},t[t.length-1][1].end)},c={type:"label",start:S({},t[r][1].start),end:S({},t[a][1].end)},d={type:"labelText",start:S({},t[r+n+2][1].end),end:S({},t[a-2][1].start)};return s=[["enter",l,i],["enter",c,i]],s=Kt(s,t.slice(r+1,r+n+3)),s=Kt(s,[["enter",d,i]]),s=Kt(s,Wa(i.parser.constructs.insideSpan.null,t.slice(r+n+4,a-3),i)),s=Kt(s,[["exit",d,i],t[a-2],t[a-1],["exit",c,i]]),s=Kt(s,t.slice(a+1)),s=Kt(s,[["exit",l,i]]),_n(t,r,t.length,s),t}function TE(t,i,e){let n=this,o=n.events.length,r,a;for(;o--;)if((n.events[o][1].type==="labelImage"||n.events[o][1].type==="labelLink")&&!n.events[o][1]._balanced){r=n.events[o][1];break}return s;function s(g){return r?r._inactive?m(g):(a=n.parser.defined.includes(ir(n.sliceSerialize({start:r.end,end:n.now()}))),t.enter("labelEnd"),t.enter("labelMarker"),t.consume(g),t.exit("labelMarker"),t.exit("labelEnd"),l):e(g)}function l(g){return g===40?t.attempt(OE,d,a?d:m)(g):g===91?t.attempt(DE,d,a?c:m)(g):a?d(g):m(g)}function c(g){return t.attempt(NE,d,m)(g)}function d(g){return i(g)}function m(g){return r._balanced=!0,e(g)}}function RE(t,i,e){return n;function n(m){return t.enter("resource"),t.enter("resourceMarker"),t.consume(m),t.exit("resourceMarker"),o}
vendor: 3,513 bytes, line 57
57function o(m){return Vt(m)?Ir(t,r)(m):r(m)}function r(m){return m===41?d(m):fp(t,a,s,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(m)}function a(m){return Vt(m)?Ir(t,l)(m):d(m)}function s(m){return e(m)}function l(m){return m===34||m===39||m===40?_p(t,c,e,"resourceTitle","resourceTitleMarker","resourceTitleString")(m):d(m)}function c(m){return Vt(m)?Ir(t,d)(m):d(m)}function d(m){return m===41?(t.enter("resourceMarker"),t.consume(m),t.exit("resourceMarker"),t.exit("resource"),i):e(m)}}function EE(t,i,e){let n=this;return o;function o(s){return gp.call(n,t,r,a,"reference","referenceMarker","referenceString")(s)}function r(s){return n.parser.defined.includes(ir(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)))?i(s):e(s)}function a(s){return e(s)}}function AE(t,i,e){return n;function n(r){return t.enter("reference"),t.enter("referenceMarker"),t.consume(r),t.exit("referenceMarker"),o}function o(r){return r===93?(t.enter("referenceMarker"),t.consume(r),t.exit("referenceMarker"),t.exit("reference"),i):e(r)}}var Eh={name:"labelStartImage",resolveAll:kr.resolveAll,tokenize:LE};function LE(t,i,e){let n=this;return o;function o(s){return t.enter("labelImage"),t.enter("labelImageMarker"),t.consume(s),t.exit("labelImageMarker"),r}function r(s){return s===91?(t.enter("labelMarker"),t.consume(s),t.exit("labelMarker"),t.exit("labelImage"),a):e(s)}function a(s){return s===94&&"_hiddenFootnoteSupport"in n.parser.constructs?e(s):i(s)}}var Ah={name:"labelStartLink",resolveAll:kr.resolveAll,tokenize:zE};function zE(t,i,e){let n=this;return o;function o(a){return t.enter("labelLink"),t.enter("labelMarker"),t.consume(a),t.exit("labelMarker"),t.exit("labelLink"),r}function r(a){return a===94&&"_hiddenFootnoteSupport"in n.parser.constructs?e(a):i(a)}}var pl={name:"lineEnding",tokenize:BE};function BE(t,i){return e;function e(n){return t.enter("lineEnding"),t.consume(n),t.exit("lineEnding"),ze(t,i,"linePrefix")}}var Tr={name:"thematicBreak",tokenize:FE};function FE(t,i,e){let n=0,o;return r;function r(c){return t.enter("thematicBreak"),a(c)}function a(c){return o=c,s(c)}function s(c){return c===o?(t.enter("thematicBreakSequence"),l(c)):n>=3&&(c===null||le(c))?(t.exit("thematicBreak"),i(c)):e(c)}function l(c){return c===o?(t.consume(c),n++,l):(t.exit("thematicBreakSequence"),Ae(c)?ze(t,s,"whitespace")(c):s(c))}}var vn={continuation:{tokenize:qE},exit:$E,name:"list",tokenize:VE},UE={partial:!0,tokenize:WE},HE={partial:!0,tokenize:jE};function VE(t,i,e){let n=this,o=n.events[n.events.length-1],r=o&&o[1].type==="linePrefix"?o[2].sliceSerialize(o[1],!0).length:0,a=0;return s;function s(C){let R=n.containerState.type||(C===42||C===43||C===45?"listUnordered":"listOrdered");if(R==="listUnordered"?!n.containerState.marker||C===n.containerState.marker:al(C)){if(n.containerState.type||(n.containerState.type=R,t.enter(R,{_container:!0})),R==="listUnordered")return t.enter("listItemPrefix"),C===42||C===45?t.check(Tr,e,c)(C):c(C);if(!n.interrupt||C===49)return t.enter("listItemPrefix"),t.enter("listItemValue"),l(C)}return e(C)}function l(C){return al(C)&&++a<10?(t.consume(C),l):(!n.interrupt||a<2)&&(n.containerState.marker?C===n.containerState.marker:C===41||C===46)?(t.exit("listItemValue"),c(C)):e(C)}function c(C){return t.enter("listItemMarker"),t.consume(C),t.exit("listItemMarker"),n.containerState.marker=n.containerState.marker||C,t.check(rr,n.interrupt?e:d,t.attempt(UE,g,m))}
vendor: 4,189 bytes, line 57
57function d(C){return n.containerState.initialBlankLine=!0,r++,g(C)}function m(C){return Ae(C)?(t.enter("listItemPrefixWhitespace"),t.consume(C),t.exit("listItemPrefixWhitespace"),g):e(C)}function g(C){return n.containerState.size=r+n.sliceSerialize(t.exit("listItemPrefix"),!0).length,i(C)}}function qE(t,i,e){let n=this;return n.containerState._closeFlow=void 0,t.check(rr,o,r);function o(s){return n.containerState.furtherBlankLines=n.containerState.furtherBlankLines||n.containerState.initialBlankLine,ze(t,i,"listItemIndent",n.containerState.size+1)(s)}function r(s){return n.containerState.furtherBlankLines||!Ae(s)?(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,a(s)):(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,t.attempt(HE,i,a)(s))}function a(s){return n.containerState._closeFlow=!0,n.interrupt=void 0,ze(t,t.attempt(vn,i,e),"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s)}}function jE(t,i,e){let n=this;return ze(t,o,"listItemIndent",n.containerState.size+1);function o(r){let a=n.events[n.events.length-1];return a&&a[1].type==="listItemIndent"&&a[2].sliceSerialize(a[1],!0).length===n.containerState.size?i(r):e(r)}}function $E(t){t.exit(this.containerState.type)}function WE(t,i,e){let n=this;return ze(t,o,"listItemPrefixWhitespace",n.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function o(r){let a=n.events[n.events.length-1];return!Ae(r)&&a&&a[1].type==="listItemPrefixWhitespace"?i(r):e(r)}}var Cp={name:"setextUnderline",resolveTo:GE,tokenize:YE};function GE(t,i){let e=t.length,n,o,r;for(;e--;)if(t[e][0]==="enter"){if(t[e][1].type==="content"){n=e;break}t[e][1].type==="paragraph"&&(o=e)}else t[e][1].type==="content"&&t.splice(e,1),!r&&t[e][1].type==="definition"&&(r=e);let a={type:"setextHeading",start:S({},t[n][1].start),end:S({},t[t.length-1][1].end)};return t[o][1].type="setextHeadingText",r?(t.splice(o,0,["enter",a,i]),t.splice(r+1,0,["exit",t[n][1],i]),t[n][1].end=S({},t[r][1].end)):t[n][1]=a,t.push(["exit",a,i]),t}function YE(t,i,e){let n=this,o;return r;function r(c){let d=n.events.length,m;for(;d--;)if(n.events[d][1].type!=="lineEnding"&&n.events[d][1].type!=="linePrefix"&&n.events[d][1].type!=="content"){m=n.events[d][1].type==="paragraph";break}return!n.parser.lazy[n.now().line]&&(n.interrupt||m)?(t.enter("setextHeadingLine"),o=c,a(c)):e(c)}function a(c){return t.enter("setextHeadingLineSequence"),s(c)}function s(c){return c===o?(t.consume(c),s):(t.exit("setextHeadingLineSequence"),Ae(c)?ze(t,l,"lineSuffix")(c):l(c))}function l(c){return c===null||le(c)?(t.exit("setextHeadingLine"),i(c)):e(c)}}var ev={tokenize:KE};function KE(t){let i=this,e=t.attempt(rr,n,t.attempt(this.parser.constructs.flowInitial,o,ze(t,t.attempt(this.parser.constructs.flow,o,t.attempt(Oh,o)),"linePrefix")));return e;function n(r){if(r===null){t.consume(r);return}return t.enter("lineEndingBlank"),t.consume(r),t.exit("lineEndingBlank"),i.currentConstruct=void 0,e}function o(r){if(r===null){t.consume(r);return}return t.enter("lineEnding"),t.consume(r),t.exit("lineEnding"),i.currentConstruct=void 0,e}}var tv={resolveAll:rv()},nv=ov("string"),iv=ov("text");function ov(t){return{resolveAll:rv(t==="text"?ZE:void 0),tokenize:i};function i(e){let n=this,o=this.parser.constructs[t],r=e.attempt(o,a,s);return a;function a(d){return c(d)?r(d):s(d)}function s(d){if(d===null){e.consume(d);return}return e.enter("data"),e.consume(d),l}function l(d){return c(d)?(e.exit("data"),r(d)):(e.consume(d),l)}function c(d){if(d===null)return!0;let m=o[d],g=-1;if(m)for(;++g<m.length;){let C=m[g];if(!C.previous||C.previous.call(n,n.previous))return!0}return!1}}}function rv(t){return i;function i(e,n){let o=-1,r;for(;++o<=e.length;)r===void 0?e[o]&&e[o][1].type==="data"&&(r=o,o++):(!e[o]||e[o][1].type!=="data")&&(o!==r+2&&(e[r][1].end=e[o-1][1].end,e.splice(r+2,o-r-2),o=r+2),r=void 0);return t?t(e,n):e}}function ZE(t,i){let e=0;for(;++e<=t.length;)if((e===t.length||t[e][1].type==="lineEnding")&&t[e-1][1].type==="data"){let n=t[e-1][1],o=i.sliceStream(n),r=o.length,a=-1,s=0,l;for(;r--;){let c=o[r];if(typeof c=="string"){for(a=c.length;
vendor: 5,229 bytes, lines 57-59
57c.charCodeAt(a-1)===32;)s++,a--;if(a)break;a=-1}else if(c===-2)l=!0,s++;else if(c!==-1){r++;break}}if(i._contentTypeTextTrailing&&e===t.length&&(s=0),s){let c={type:e===t.length||l||s<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:r?a:n.start._bufferIndex+a,_index:n.start._index+r,line:n.end.line,column:n.end.column-s,offset:n.end.offset-s},end:S({},n.end)};n.end=S({},c.start),n.start.offset===n.end.offset?Object.assign(n,c):(t.splice(e,0,["enter",c,i],["exit",c,i]),e+=2)}e++}return t}var Lh={};o1(Lh,{attentionMarkers:()=>oA,contentInitial:()=>JE,disable:()=>rA,document:()=>QE,flow:()=>eA,flowInitial:()=>XE,insideSpan:()=>iA,string:()=>tA,text:()=>nA});var QE={42:vn,43:vn,45:vn,48:vn,49:vn,50:vn,51:vn,52:vn,53:vn,54:vn,55:vn,56:vn,57:vn,62:cp},JE={91:Dh},XE={[-2]:cl,[-1]:cl,32:cl},eA={35:Ih,42:Tr,45:[Cp,Tr],60:Th,61:Cp,95:Tr,96:up,126:up},tA={38:pp,92:dp},nA={[-5]:pl,[-4]:pl,[-3]:pl,33:Eh,38:pp,42:ll,60:[Ph,Rh],91:Ah,92:[Nh,dp],93:kr,95:ll,96:Mh},iA={null:[ll,tv]},oA={null:[42,95]},rA={null:[]};function av(t,i,e){let n={_bufferIndex:-1,_index:0,line:e&&e.line||1,column:e&&e.column||1,offset:e&&e.offset||0},o={},r=[],a=[],s=[],l=!0,c={attempt:_t(Ye),check:_t(Pt),consume:Ge,enter:se,exit:L,interrupt:_t(Pt,{interrupt:!0})},d={code:null,containerState:{},defineSkip:q,events:[],now:X,parser:t,previous:null,sliceSerialize:R,sliceStream:F,write:C},m=i.tokenize.call(d,c),g;return i.resolveAll&&r.push(i),d;function C(Ce){return a=Kt(a,Ce),te(),a[a.length-1]!==null?[]:(Lt(i,0),d.events=Wa(r,d.events,d),d.events)}function R(Ce,Ue){return sA(F(Ce),Ue)}function F(Ce){return aA(a,Ce)}function X(){let{_bufferIndex:Ce,_index:Ue,line:He,column:zt,offset:Qt}=n;return{_bufferIndex:Ce,_index:Ue,line:He,column:zt,offset:Qt}}function q(Ce){o[Ce.line]=Ce.column,Ct()}function te(){let Ce;for(;n._index<a.length;){let Ue=a[n._index];if(typeof Ue=="string")for(Ce=n._index,n._bufferIndex<0&&(n._bufferIndex=0);n._index===Ce&&n._bufferIndex<Ue.length;)K(Ue.charCodeAt(n._bufferIndex));else K(Ue)}}function K(Ce){l=void 0,g=Ce,m=m(Ce)}function Ge(Ce){le(Ce)?(n.line++,n.column=1,n.offset+=Ce===-3?2:1,Ct()):Ce!==-1&&(n.column++,n.offset++),n._bufferIndex<0?n._index++:(n._bufferIndex++,n._bufferIndex===a[n._index].length&&(n._bufferIndex=-1,n._index++)),d.previous=Ce,l=!0}function se(Ce,Ue){let He=Ue||{};return He.type=Ce,He.start=X(),d.events.push(["enter",He,d]),s.push(He),He}function L(Ce){let Ue=s.pop();return Ue.end=X(),d.events.push(["exit",Ue,d]),Ue}function Ye(Ce,Ue){Lt(Ce,Ue.from)}function Pt(Ce,Ue){Ue.restore()}function _t(Ce,Ue){return He;function He(zt,Qt,gi){let Ii,P,Gn,Ji;return Array.isArray(zt)?Ln(zt):"tokenize"in zt?Ln([zt]):M(zt);function M(pn){return Za;function Za(Xi){let Lr=Xi!==null&&pn[Xi],zr=Xi!==null&&pn.null,bl=[...Array.isArray(Lr)?Lr:Lr?[Lr]:[],...Array.isArray(zr)?zr:zr?[zr]:[]];return Ln(bl)(Xi)}}function Ln(pn){return Ii=pn,P=0,pn.length===0?gi:Ar(pn[P])}function Ar(pn){return Za;function Za(Xi){return Ji=Nn(),Gn=pn,pn.partial||(d.currentConstruct=pn),pn.name&&d.parser.constructs.disable.null.includes(pn.name)?yl(Xi):pn.tokenize.call(Ue?Object.assign(Object.create(d),Ue):d,c,jp,yl)(Xi)}}function jp(pn){return l=!0,Ce(Gn,Ji),Qt}function yl(pn){return l=!0,Ji.restore(),++P<Ii.length?Ar(Ii[P]):gi}}}function Lt(Ce,Ue){Ce.resolveAll&&!r.includes(Ce)&&r.push(Ce),Ce.resolve&&_n(d.events,Ue,d.events.length-Ue,Ce.resolve(d.events.slice(Ue),d)),Ce.resolveTo&&(d.events=Ce.resolveTo(d.events,d))}function Nn(){let Ce=X(),Ue=d.previous,He=d.currentConstruct,zt=d.events.length,Qt=Array.from(s);return{from:zt,restore:gi};function gi(){n=Ce,d.previous=Ue,d.currentConstruct=He,d.events.length=zt,s=Qt,Ct()}}function Ct(){n.line in o&&n.column<2&&(n.column=o[n.line],n.offset+=o[n.line]-1)}}function aA(t,i){let e=i.start._index,n=i.start._bufferIndex,o=i.end._index,r=i.end._bufferIndex,a;if(e===o)a=[t[e].slice(n,r)];else{if(a=t.slice(e,o),n>-1){let s=a[0];typeof s=="string"?a[0]=s.slice(n):a.shift()}r>0&&a.push(t[o].slice(0,r))}return a}function sA(t,i){let e=-1,n=[],o;for(;++e<t.length;){let r=t[e],a;if(typeof r=="string")a=r;else switch(r){case-5:{a="\r";break}case-4:{a=` 58`;break}case-3:{a=`\r 59`;break}case-2:{a=i?" ":" ";break}case-1:{if(!i&&o)continue;a=" ";break}default:a=String.fromCharCode(r)}o=r===-2,n.push(a)}return n.join("")}function sv(t){let n={constructs:zS([Lh,...(t||{}).extensions||[]]),content:o(YS),defined:[],document:o(ZS),flow:o(ev),lazy:{},string:o(nv),text:o(iv)};return n;function o(r){return a;function a(s){return av(n,r,s)}}}function lv(t){for(;!hp(t););return t}var cv=/[\0\t\n\r]/g;function dv(){let t=1,i="",e=!0,n;return o;function o(r,a,s){let l=[],c,d,m,g,C;for(r=i+(typeof r=="string"?r.toString():new TextDecoder(a||void 0).decode(r)),m=0,i="",e&&(r.charCodeAt(0)===65279&&m++,e=void 0);m<r.length;){if(cv.lastIndex=m,c=cv.exec(r),g=c&&c.index!==void 0?c.index:r.length,C=r.charCodeAt(g),!c){i=r.slice(m);break}if(C===10&&m===g&&n)l.push(-3),n=void 0;else switch(n&&(l.push(-5),n=void 0),m<g&&(l.push(r.slice(m,g)),t+=g-m),C){case 0:{l.push(65533),t++;break}case 9:{for(d=Math.ceil(t/4)*4,l.push(-2);t++<d;)l.push(-1);break}case 10:{l.push(-4),t=1;break}default:n=!0,t=1}m=g+1}return s&&(n&&l.push(-5),i&&l.push(i),l.push(null)),l}}
59function pv(t,i,e){return typeof i!="string"&&(e=i,i=void 0),GS(e)(lv(sv(e).document().write(dv()(t,i,!0))))}var uv=(()=>{class t{constructor(){this.markdownContent=v(void 0,{alias:"appMarkdownRender"}),this.openLinksInNewTab=v(!1),this.elementRef=f(Ut),this.sanitizer=f(_u),et(()=>{let e=this.markdownContent(),n=this.openLinksInNewTab();if(e){let o=pv(e),r=this.sanitizer.sanitize(to.HTML,o);this.elementRef.nativeElement.innerHTML=r||"",n&&this.elementRef.nativeElement.querySelectorAll("a").forEach(s=>{s.target="_blank",s.rel="noopener noreferrer"})}else this.elementRef.nativeElement.innerHTML=""})}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275dir=tn({type:t,selectors:[["","appMarkdownRender",""]],inputs:{markdownContent:[1,"appMarkdownRender","markdownContent"],openLinksInNewTab:[1,"openLinksInNewTab"]}})}}return t})();var Xt=(function(t){return t[t.ConversationActivated=1]="ConversationActivated",t[t.ChatMessageAdded=2]="ChatMessageAdded",t[t.ChatMessageDelta=3]="ChatMessageDelta",t[t.ChatMessageUpdated=4]="ChatMessageUpdated",t[t.ChatImageAdded=5]="ChatImageAdded",t[t.AssistantStatusChanged=6]="AssistantStatusChanged",t[t.ChatMessageAcked=7]="ChatMessageAcked",t[t.ConversationClosed=8]="ConversationClosed",t[t.RateLimitTooManyMessages=9]="RateLimitTooManyMessages",t})(Xt||{});var $n=class extends Error{constructor(i,e){let n=new.target.prototype;super(`${i}: Status code '${e}'`),this.statusCode=e,this.__proto__=n}},ar=class extends Error{constructor(i="A timeout occurred."){let e=new.target.prototype;super(i),this.__proto__=e}},dn=class extends Error{constructor(i="An abort occurred."){let e=new.target.prototype;super(i),this.__proto__=e}},yp=class extends Error{constructor(i,e){let n=new.target.prototype;super(i),this.transport=e,this.errorType="UnsupportedTransportError",this.__proto__=n}},bp=class extends Error{constructor(i,e){let n=new.target.prototype;super(i),this.transport=e,this.errorType="DisabledTransportError",this.__proto__=n}},Sp=class extends Error{constructor(i,e){let n=new.target.prototype;super(i),this.transport=e,this.errorType="FailedToStartTransportError",this.__proto__=n}},ul=class extends Error{constructor(i){let e=new.target.prototype;super(i),this.errorType="FailedToNegotiateWithServerError",this.__proto__=e}},vp=class extends Error{constructor(i,e){let n=new.target.prototype;super(i),this.innerErrors=e,this.__proto__=n}};var Ga=class{constructor(i,e,n){this.statusCode=i,this.statusText=e,this.content=n}},Ki=class{get(i,e){return this.send(j(S({},e),{method:"GET",url:i}))}post(i,e){return this.send(j(S({},e),{method:"POST",url:i}))}delete(i,e){return this.send(j(S({},e),{method:"DELETE",url:i}))}getCookieString(i){return""}};var E=(function(t){return t[t.Trace=0]="Trace",t[t.Debug=1]="Debug",t[t.Information=2]="Information",t[t.Warning=3]="Warning",t[t.Error=4]="Error",t[t.Critical=5]="Critical",t[t.None=6]="None",t})(E||{});var Zi=class{constructor(){}log(i,e){}};Zi.instance=new Zi;var mv="10.0.0";var pt=class{static isRequired(i,e){if(i==null)throw new Error(`The '${e}' argument is required.`)}static isNotEmpty(i,e){if(!i||i.match(/^\s*$/))throw new Error(`The '${e}' argument should not be empty.`)}static isIn(i,e,n){if(!(i in e))throw new Error(`Unknown ${n} value: ${i}.`)}},gt=class t{static get isBrowser(){return!t.isNode&&typeof window=="object"&&typeof window.document=="object"}static get isWebWorker(){return!t.isNode&&typeof self=="object"&&"importScripts"in self}static get isReactNative(){return!t.isNode&&typeof window=="object"&&typeof window.document>"u"}static get isNode(){return typeof process<"u"&&process.release&&process.release.name==="node"}};function sr(t,i){let e="";return Ni(t)?(e=`Binary data of length ${t.byteLength}`,i&&(e+=`. Content: '${lA(t)}'`)):typeof t=="string"&&(e=`String data of length ${t.length}`,i&&(e+=`. Content: '${t}'`)),e}function lA(t){let i=new Uint8Array(t),e="";return i.forEach(n=>{let o=n<16?"0":"";e+=`0x${o}${n.toString(16)} `}),e.substring(0,e.length-1)}function Ni(t){return t&&typeof ArrayBuffer<"u"&&(t instanceof ArrayBuffer||t.constructor&&t.constructor.name==="ArrayBuffer")}function xp(t,i,e,n,o,r){return z(this,null,function*(){let a={},[s,l]=Qi();a[s]=l,t.log(E.Trace,`(${i} transport) sending data. ${sr(o,r.logMessageContent)}.`);let c=Ni(o)?"arraybuffer":"text",d=yield e.post(n,{content:o,headers:S(S({},a),r.headers),responseType:c,timeout:r.timeout,withCredentials:r.withCredentials});t.log(E.Trace,`(${i} transport) request complete. Response status: ${d.statusCode}.`)})}function hv(t){return t===void 0?new Rr(E.Information):t===null?Zi.instance:t.log!==void 0?t:new Rr(t)}var wp=class{constructor(i,e){this._subject=i,this._observer=e}dispose(){let i=this._subject.observers.indexOf(this._observer);i>-1&&this._subject.observers.splice(i,1),this._subject.observers.length===0&&this._subject.cancelCallback&&this._subject.cancelCallback().catch(e=>{})}},Rr=class{constructor(i){this._minLevel=i,this.out=console}log(i,e){if(i>=this._minLevel){let n=`[${new Date().toISOString()}] ${E[i]}: ${e}`;switch(i){case E.Critical:case E.Error:this.out.error(n);break;case E.Warning:this.out.warn(n);break;case E.Information:this.out.info(n);break;default:this.out.log(n);break}}}};function Qi(){let t="X-SignalR-User-Agent";return gt.isNode&&(t="User-Agent"),[t,cA(mv,dA(),uA(),pA())]}function cA(t,i,e,n){let o="Microsoft SignalR/",r=t.split(".");return o+=`${r[0]}.${r[1]}`,o+=` (${t}; `,i&&i!==""?o+=`${i}; `:o+="Unknown OS; ",o+=`${e}`,n?o+=`; ${n}`:o+="; Unknown Runtime Version",o+=")",o}function dA(){if(gt.isNode)switch(process.platform){case"win32":return"Windows NT";case"darwin":return"macOS";case"linux":return"Linux";default:return process.platform}else return""}function pA(){if(gt.isNode)return process.versions.node}function uA(){return gt.isNode?"NodeJS":"Browser"}function Pp(t){return t.stack?t.stack:t.message?t.message:`${t}`}function fv(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("could not find global")}var Mp=class extends Ki{constructor(i){if(super(),this._logger=i,typeof fetch>"u"||gt.isNode){let e=typeof __webpack_require__=="function"?__non_webpack_require__:Br;this._jar=new(e("tough-cookie")).CookieJar,typeof fetch>"u"?this._fetchType=e("node-fetch"):this._fetchType=fetch,this._fetchType=e("fetch-cookie")(this._fetchType,this._jar)}else this._fetchType=fetch.bind(fv());if(typeof AbortController>"u"){let e=typeof __webpack_require__=="function"?__non_webpack_require__:Br;this._abortControllerType=e("abort-controller")}else this._abortControllerType=AbortController}send(i){return z(this,null,function*(){if(i.abortSignal&&i.abortSignal.aborted)throw new dn;if(!i.method)throw new Error("No method defined.");if(!i.url)throw new Error("No url defined.");let e=new this._abortControllerType,n;i.abortSignal&&(i.abortSignal.onabort=()=>{e.abort(),n=new dn});let o=null;if(i.timeout){let l=i.timeout;o=setTimeout(()=>{e.abort(),this._logger.log(E.Warning,"Timeout from HTTP request."),n=new ar},l)}i.content===""&&(i.content=void 0),i.content&&(i.headers=i.headers||{},Ni(i.content)?i.headers["Content-Type"]="application/octet-stream":i.headers["Content-Type"]="text/plain;charset=UTF-8");let r;try{r=yield this._fetchType(i.url,{body:i.content,cache:"no-cache",credentials:i.withCredentials===!0?"include":"same-origin",headers:S({"X-Requested-With":"XMLHttpRequest"},i.headers),method:i.method,mode:"cors",redirect:"follow",signal:e.signal})}catch(l){throw n||(this._logger.log(E.Warning,`Error from HTTP request. ${l}.`),l)}finally{o&&clearTimeout(o),i.abortSignal&&(i.abortSignal.onabort=null)}if(!r.ok){let l=yield gv(r,"text");throw new $n(l||r.statusText,r.status)}let s=yield gv(r,i.responseType);return new Ga(r.status,r.statusText,s)})}getCookieString(i){let e="";return gt.isNode&&this._jar&&this._jar.getCookies(i,(n,o)=>e=o.join("; ")),e}};
59function gv(t,i){let e;switch(i){case"arraybuffer":e=t.arrayBuffer();break;case"text":e=t.text();break;case"blob":case"document":case"json":throw new Error(`${i} is not supported.`);default:e=t.text();break}return e}var Op=class extends Ki{constructor(i){super(),this._logger=i}send(i){return i.abortSignal&&i.abortSignal.aborted?Promise.reject(new dn):i.method?i.url?new Promise((e,n)=>{let o=new XMLHttpRequest;o.open(i.method,i.url,!0),o.withCredentials=i.withCredentials===void 0?!0:i.withCredentials,o.setRequestHeader("X-Requested-With","XMLHttpRequest"),i.content===""&&(i.content=void 0),i.content&&(Ni(i.content)?o.setRequestHeader("Content-Type","application/octet-stream"):o.setRequestHeader("Content-Type","text/plain;charset=UTF-8"));let r=i.headers;r&&Object.keys(r).forEach(a=>{o.setRequestHeader(a,r[a])}),i.responseType&&(o.responseType=i.responseType),i.abortSignal&&(i.abortSignal.onabort=()=>{o.abort(),n(new dn)}),i.timeout&&(o.timeout=i.timeout),o.onload=()=>{i.abortSignal&&(i.abortSignal.onabort=null),o.status>=200&&o.status<300?e(new Ga(o.status,o.statusText,o.response||o.responseText)):n(new $n(o.response||o.responseText||o.statusText,o.status))},o.onerror=()=>{this._logger.log(E.Warning,`Error from HTTP request. ${o.status}: ${o.statusText}.`),n(new $n(o.statusText,o.status))},o.ontimeout=()=>{this._logger.log(E.Warning,"Timeout from HTTP request."),n(new ar)},o.send(i.content)}):Promise.reject(new Error("No url defined.")):Promise.reject(new Error("No method defined."))}};var Dp=class extends Ki{constructor(i){if(super(),typeof fetch<"u"||gt.isNode)this._httpClient=new Mp(i);else if(typeof XMLHttpRequest<"u")this._httpClient=new Op(i);else throw new Error("No usable HttpClient found.")}send(i){return i.abortSignal&&i.abortSignal.aborted?Promise.reject(new dn):i.method?i.url?this._httpClient.send(i):Promise.reject(new Error("No url defined.")):Promise.reject(new Error("No method defined."))}getCookieString(i){return this._httpClient.getCookieString(i)}};var Wn=class t{static write(i){return`${i}${t.RecordSeparator}`}static parse(i){if(i[i.length-1]!==t.RecordSeparator)throw new Error("Message is incomplete.");let e=i.split(t.RecordSeparator);return e.pop(),e}};Wn.RecordSeparatorCode=30;Wn.RecordSeparator=String.fromCharCode(Wn.RecordSeparatorCode);var Np=class{writeHandshakeRequest(i){return Wn.write(JSON.stringify(i))}parseHandshakeResponse(i){let e,n;if(Ni(i)){let s=new Uint8Array(i),l=s.indexOf(Wn.RecordSeparatorCode);
59if(l===-1)throw new Error("Message is incomplete.");let c=l+1;e=String.fromCharCode.apply(null,Array.prototype.slice.call(s.slice(0,c))),n=s.byteLength>c?s.slice(c).buffer:null}else{let s=i,l=s.indexOf(Wn.RecordSeparator);if(l===-1)throw new Error("Message is incomplete.");let c=l+1;e=s.substring(0,c),n=s.length>c?s.substring(c):null}let o=Wn.parse(e),r=JSON.parse(o[0]);if(r.type)throw new Error("Expected a handshake response from the server.");return[n,r]}};var Te=(function(t){return t[t.Invocation=1]="Invocation",t[t.StreamItem=2]="StreamItem",t[t.Completion=3]="Completion",t[t.StreamInvocation=4]="StreamInvocation",t[t.CancelInvocation=5]="CancelInvocation",t[t.Ping=6]="Ping",t[t.Close=7]="Close",t[t.Ack=8]="Ack",t[t.Sequence=9]="Sequence",t})(Te||{});var Ip=class{constructor(){this.observers=[]}next(i){for(let e of this.observers)e.next(i)}error(i){for(let e of this.observers)e.error&&e.error(i)}complete(){for(let i of this.observers)i.complete&&i.complete()}subscribe(i){return this.observers.push(i),new wp(this,i)}};var kp=class{constructor(i,e,n){this._bufferSize=1e5,this._messages=[],this._totalMessageCount=0,this._waitForSequenceMessage=!1,this._nextReceivingSequenceId=1,this._latestReceivedSequenceId=0,this._bufferedByteCount=0,this._reconnectInProgress=!1,this._protocol=i,this._connection=e,this._bufferSize=n}_send(i){return z(this,null,function*(){let e=this._protocol.writeMessage(i),n=Promise.resolve();if(this._isInvocationMessage(i)){this._totalMessageCount++;let o=()=>{},r=()=>{};Ni(e)?this._bufferedByteCount+=e.byteLength:this._bufferedByteCount+=e.length,this._bufferedByteCount>=this._bufferSize&&(n=new Promise((a,s)=>{o=a,r=s})),this._messages.push(new zh(e,this._totalMessageCount,o,r))}try{this._reconnectInProgress||(yield this._connection.send(e))}catch(o){this._disconnected()}yield n})}_ack(i){let e=-1;for(let n=0;n<this._messages.length;n++){let o=this._messages[n];if(o._id<=i.sequenceId)e=n,Ni(o._message)?this._bufferedByteCount-=o._message.byteLength:this._bufferedByteCount-=o._message.length,o._resolver();else if(this._bufferedByteCount<this._bufferSize)o._resolver();else break}e!==-1&&(this._messages=this._messages.slice(e+1))}_shouldProcessMessage(i){if(this._waitForSequenceMessage)return i.type!==Te.Sequence?!1:(this._waitForSequenceMessage=!1,!0);if(!this._isInvocationMessage(i))return!0;let e=this._nextReceivingSequenceId;return this._nextReceivingSequenceId++,e<=this._latestReceivedSequenceId?(e===this._latestReceivedSequenceId&&this._ackTimer(),!1):(this._latestReceivedSequenceId=e,this._ackTimer(),!0)}_resetSequence(i){if(i.sequenceId>this._nextReceivingSequenceId){this._connection.stop(new Error("Sequence ID greater than amount of messages we've received."));return}this._nextReceivingSequenceId=i.sequenceId}_disconnected(){this._reconnectInProgress=!0,this._waitForSequenceMessage=!0}_resend(){return z(this,null,function*(){let i=this._messages.length!==0?this._messages[0]._id:this._totalMessageCount+1;yield this._connection.send(this._protocol.writeMessage({type:Te.Sequence,sequenceId:i}));let e=this._messages;for(let n of e)yield this._connection.send(n._message);this._reconnectInProgress=!1})}_dispose(i){i??(i=new Error("Unable to reconnect to server."));for(let e of this._messages)e._rejector(i)}_isInvocationMessage(i){switch(i.type){case Te.Invocation:case Te.StreamItem:case Te.Completion:case Te.StreamInvocation:case Te.CancelInvocation:return!0;case Te.Close:case Te.Sequence:case Te.Ping:case Te.Ack:return!1}}_ackTimer(){this._ackTimerHandle===void 0&&(this._ackTimerHandle=setTimeout(()=>z(this,null,function*(){try{this._reconnectInProgress||(yield this._connection.send(this._protocol.writeMessage({type:Te.Ack,sequenceId:this._latestReceivedSequenceId})))}catch(i){}clearTimeout(this._ackTimerHandle),this._ackTimerHandle=void 0}),1e3))}},zh=class{constructor(i,e,n,o){this._message=i,this._id=e,this._resolver=n,this._rejector=o}};var mA=30*1e3,hA=15*1e3,fA=1e5,ot=(function(t){return t.Disconnected="Disconnected",t.Connecting="Connecting",t.Connected="Connected",t.Disconnecting="Disconnecting",t.Reconnecting="Reconnecting",t})(ot||{}),ml=class t{static create(i,e,n,o,r,a,s){return new t(i,e,n,o,r,a,s)}
59constructor(i,e,n,o,r,a,s){this._nextKeepAlive=0,this._freezeEventListener=()=>{this._logger.log(E.Warning,"The page is being frozen, this will likely lead to the connection being closed and messages being lost. For more information see the docs at https://learn.microsoft.com/aspnet/core/signalr/javascript-client#bsleep")},pt.isRequired(i,"connection"),pt.isRequired(e,"logger"),pt.isRequired(n,"protocol"),this.serverTimeoutInMilliseconds=r??mA,this.keepAliveIntervalInMilliseconds=a??hA,this._statefulReconnectBufferSize=s??fA,this._logger=e,this._protocol=n,this.connection=i,this._reconnectPolicy=o,this._handshakeProtocol=new Np,this.connection.onreceive=l=>this._processIncomingData(l),this.connection.onclose=l=>this._connectionClosed(l),this._callbacks={},this._methods={},this._closedCallbacks=[],this._reconnectingCallbacks=[],this._reconnectedCallbacks=[],this._invocationId=0,this._receivedHandshakeResponse=!1,this._connectionState=ot.Disconnected,this._connectionStarted=!1,this._cachedPingMessage=this._protocol.writeMessage({type:Te.Ping})}get state(){return this._connectionState}get connectionId(){return this.connection&&this.connection.connectionId||null}get baseUrl(){return this.connection.baseUrl||""}set baseUrl(i){if(this._connectionState!==ot.Disconnected&&this._connectionState!==ot.Reconnecting)throw new Error("The HubConnection must be in the Disconnected or Reconnecting state to change the url.");if(!i)throw new Error("The HubConnection url must be a valid url.");this.connection.baseUrl=i}start(){return this._startPromise=this._startWithStateTransitions(),this._startPromise}_startWithStateTransitions(){return z(this,null,function*(){if(this._connectionState!==ot.Disconnected)return Promise.reject(new Error("Cannot start a HubConnection that is not in the 'Disconnected' state."));this._connectionState=ot.Connecting,this._logger.log(E.Debug,"Starting HubConnection.");try{yield this._startInternal(),gt.isBrowser&&window.document.addEventListener("freeze",this._freezeEventListener),this._connectionState=ot.Connected,this._connectionStarted=!0,this._logger.log(E.Debug,"HubConnection connected successfully.")}catch(i){return this._connectionState=ot.Disconnected,this._logger.log(E.Debug,`HubConnection failed to start successfully because of error '${i}'.`),Promise.reject(i)}})}_startInternal(){return z(this,null,function*(){this._stopDuringStartError=void 0,this._receivedHandshakeResponse=!1;let i=new Promise((e,n)=>{this._handshakeResolver=e,this._handshakeRejecter=n});yield this.connection.start(this._protocol.transferFormat);try{let e=this._protocol.version;this.connection.features.reconnect||(e=1);let n={protocol:this._protocol.name,version:e};if(this._logger.log(E.Debug,"Sending handshake request."),yield this._sendMessage(this._handshakeProtocol.writeHandshakeRequest(n)),this._logger.log(E.Information,`Using HubProtocol '${this._protocol.name}'.`),this._cleanupTimeout(),this._resetTimeoutPeriod(),this._resetKeepAliveInterval(),yield i,this._stopDuringStartError)throw this._stopDuringStartError;this.connection.features.reconnect&&(this._messageBuffer=new kp(this._protocol,this.connection,this._statefulReconnectBufferSize),this.connection.features.disconnected=this._messageBuffer._disconnected.bind(this._messageBuffer),this.connection.features.resend=()=>{if(this._messageBuffer)return this._messageBuffer._resend()}),this.connection.features.inherentKeepAlive||(yield this._sendMessage(this._cachedPingMessage))}catch(e){throw this._logger.log(E.Debug,`Hub handshake failed with error '${e}' during start(). Stopping HubConnection.`),this._cleanupTimeout(),this._cleanupPingTimer(),yield this.connection.stop(e),e}})}stop(){return z(this,null,function*(){let i=this._startPromise;this.connection.features.reconnect=!1,this._stopPromise=this._stopInternal(),yield this._stopPromise;try{yield i}catch(e){}})}_stopInternal(i){if(this._connectionState===ot.Disconnected)return this._logger.log(E.Debug,`Call to HubConnection.stop(${i}) ignored because it is already in the disconnected state.`),Promise.resolve();if(this._connectionState===ot.Disconnecting)return this._logger.log(E.Debug,`Call to HttpConnection.stop(${i}) ignored because the connection is already in the disconnecting state.`),this._stopPromise;let e=this._connectionState;return this._connectionState=ot.Disconnecting,this._logger.log(E.Debug,"Stopping HubConnection."),this._reconnectDelayHandle?(this._logger.log(E.Debug,"Connection stopped during reconnect delay. Done reconnecting."),clearTimeout(this._reconnectDelayHandle),this._reconnectDelayHandle=void 0,this._completeClose(),Promise.resolve()):(e===ot.Connected&&this._sendCloseMessage(),this._cleanupTimeout(),this._cleanupPingTimer(),this._stopDuringStartError=i||new dn("The connection was stopped before the hub handshake could complete."),this.connection.stop(i))}_sendCloseMessage(){return z(this,null,function*(){try{yield this._sendWithProtocol(this._createCloseMessage())}catch(i){}})}stream(i,...e){let[n,o]=this._replaceStreamingParams(e),r=this._createStreamInvocation(i,e,o),a,s=new Ip;return s.cancelCallback=()=>{let l=this._createCancelInvocation(r.invocationId);return delete this._callbacks[r.invocationId],a.then(()=>this._sendWithProtocol(l))},this._callbacks[r.invocationId]=(l,c)=>{if(c){s.error(c);return}else l&&(l.type===Te.Completion?l.error?s.error(new Error(l.error)):s.complete():s.next(l.item))},a=this._sendWithProtocol(r).catch(l=>{s.error(l),delete this._callbacks[r.invocationId]}),this._launchStreams(n,a),s}_sendMessage(i){return this._resetKeepAliveInterval(),this.connection.send(i)}_sendWithProtocol(i){return this._messageBuffer?this._messageBuffer._send(i):this._sendMessage(this._protocol.writeMessage(i))}send(i,...e){let[n,o]=this._replaceStreamingParams(e),r=this._sendWithProtocol(this._createInvocation(i,e,!0,o));return this._launchStreams(n,r),r}invoke(i,...e){let[n,o]=this._replaceStreamingParams(e),r=this._createInvocation(i,e,!1,o);return new Promise((s,l)=>{this._callbacks[r.invocationId]=(d,m)=>{if(m){l(m);return}else d&&(d.type===Te.Completion?d.error?l(new Error(d.error)):s(d.result):l(new Error(`Unexpected message type: ${d.type}`)))};let c=this._sendWithProtocol(r).catch(d=>{l(d),delete this._callbacks[r.invocationId]});this._launchStreams(n,c)})}on(i,e){!i||!e||(i=i.toLowerCase(),this._methods[i]||(this._methods[i]=[]),this._methods[i].indexOf(e)===-1&&this._methods[i].push(e))}off(i,e){if(!i)return;i=i.toLowerCase();let n=this._methods[i];if(n)if(e){let o=n.indexOf(e);o!==-1&&(n.splice(o,1),n.length===0&&delete this._methods[i])}else delete this._methods[i]}onclose(i){i&&this._closedCallbacks.push(i)}onreconnecting(i){i&&this._reconnectingCallbacks.push(i)}onreconnected(i){i&&this._reconnectedCallbacks.push(i)}_processIncomingData(i){if(this._cleanupTimeout(),this._receivedHandshakeResponse||(i=this._processHandshakeResponse(i),this._receivedHandshakeResponse=!0),i){let e=this._protocol.parseMessages(i,this._logger);for(let n of e)if(!(this._messageBuffer&&!this._messageBuffer._shouldProcessMessage(n)))switch(n.type){case Te.Invocation:this._invokeClientMethod(n).catch(o=>{this._logger.log(E.Error,`Invoke client method threw error: ${Pp(o)}`)});break;case Te.StreamItem:case Te.Completion:{let o=this._callbacks[n.invocationId];if(o){n.type===Te.Completion&&delete this._callbacks[n.invocationId];try{o(n)}catch(r){this._logger.log(E.Error,`Stream callback threw error: ${Pp(r)}`)}}break}case Te.Ping:break;case Te.Close:{this._logger.log(E.Information,"Close message received from server.");let o=n.error?new Error("Server returned an error on close: "+n.error):void 0;n.allowReconnect===!0?this.connection.stop(o):this._stopPromise=this._stopInternal(o);break}case Te.Ack:this._messageBuffer&&this._messageBuffer._ack(n);break;case Te.Sequence:this._messageBuffer&&this._messageBuffer._resetSequence(n);break;default:this._logger.log(E.Warning,`Invalid message type: ${n.type}.`);break}}this._resetTimeoutPeriod()}_processHandshakeResponse(i){let e,n;try{[n,e]=this._handshakeProtocol.parseHandshakeResponse(i)}catch(o){let r="Error parsing handshake response: "+o;this._logger.log(E.Error,r);let a=new Error(r);throw this._handshakeRejecter(a),a}if(e.error){let o="Server returned handshake error: "+e.error;this._logger.log(E.Error,o);let r=new Error(o);throw this._handshakeRejecter(r),r}else this._logger.log(E.Debug,"Server handshake complete.");return this._handshakeResolver(),n}_resetKeepAliveInterval(){this.connection.features.inherentKeepAlive||(this._nextKeepAlive=new Date().getTime()+this.keepAliveIntervalInMilliseconds,this._cleanupPingTimer())}
59_resetTimeoutPeriod(){if(!this.connection.features||!this.connection.features.inherentKeepAlive){this._timeoutHandle=setTimeout(()=>this.serverTimeout(),this.serverTimeoutInMilliseconds);let i=this._nextKeepAlive-new Date().getTime();if(i<0){this._connectionState===ot.Connected&&this._trySendPingMessage();return}this._pingServerHandle===void 0&&(i<0&&(i=0),this._pingServerHandle=setTimeout(()=>z(this,null,function*(){this._connectionState===ot.Connected&&(yield this._trySendPingMessage())}),i))}}serverTimeout(){this.connection.stop(new Error("Server timeout elapsed without receiving a message from the server."))}_invokeClientMethod(i){return z(this,null,function*(){let e=i.target.toLowerCase(),n=this._methods[e];if(!n){this._logger.log(E.Warning,`No client method with the name '${e}' found.`),i.invocationId&&(this._logger.log(E.Warning,`No result given for '${e}' method and invocation ID '${i.invocationId}'.`),yield this._sendWithProtocol(this._createCompletionMessage(i.invocationId,"Client didn't provide a result.",null)));return}let o=n.slice(),r=!!i.invocationId,a,s,l;for(let c of o)try{let d=a;a=yield c.apply(this,i.arguments),r&&a&&d&&(this._logger.log(E.Error,`Multiple results provided for '${e}'. Sending error to server.`),l=this._createCompletionMessage(i.invocationId,"Client provided multiple results.",null)),s=void 0}catch(d){s=d,this._logger.log(E.Error,`A callback for the method '${e}' threw error '${d}'.`)}l?yield this._sendWithProtocol(l):r?(s?l=this._createCompletionMessage(i.invocationId,`${s}`,null):a!==void 0?l=this._createCompletionMessage(i.invocationId,null,a):(this._logger.log(E.Warning,`No result given for '${e}' method and invocation ID '${i.invocationId}'.`),l=this._createCompletionMessage(i.invocationId,"Client didn't provide a result.",null)),yield this._sendWithProtocol(l)):a&&this._logger.log(E.Error,`Result given for '${e}' method but server is not expecting a result.`)})}_connectionClosed(i){this._logger.log(E.Debug,`HubConnection.connectionClosed(${i}) called while in state ${this._connectionState}.`),this._stopDuringStartError=this._stopDuringStartError||i||new dn("The underlying connection was closed before the hub handshake could complete."),this._handshakeResolver&&this._handshakeResolver(),this._cancelCallbacksWithError(i||new Error("Invocation canceled due to the underlying connection being closed.")),this._cleanupTimeout(),this._cleanupPingTimer(),this._connectionState===ot.Disconnecting?this._completeClose(i):this._connectionState===ot.Connected&&this._reconnectPolicy?this._reconnect(i):this._connectionState===ot.Connected&&this._completeClose(i)}_completeClose(i){if(this._connectionStarted){this._connectionState=ot.Disconnected,this._connectionStarted=!1,this._messageBuffer&&(this._messageBuffer._dispose(i??new Error("Connection closed.")),this._messageBuffer=void 0),gt.isBrowser&&window.document.removeEventListener("freeze",this._freezeEventListener);try{this._closedCallbacks.forEach(e=>e.apply(this,[i]))}catch(e){this._logger.log(E.Error,`An onclose callback called with error '${i}' threw error '${e}'.`)}}}_reconnect(i){return z(this,null,function*(){let e=Date.now(),n=0,o=i!==void 0?i:new Error("Attempting to reconnect due to a unknown error."),r=this._getNextRetryDelay(n,0,o);if(r===null){this._logger.log(E.Debug,"Connection not reconnecting because the IRetryPolicy returned null on the first reconnect attempt."),this._completeClose(i);return}if(this._connectionState=ot.Reconnecting,i?this._logger.log(E.Information,`Connection reconnecting because of error '${i}'.`):this._logger.log(E.Information,"Connection reconnecting."),this._reconnectingCallbacks.length!==0){try{this._reconnectingCallbacks.forEach(a=>a.apply(this,[i]))}catch(a){this._logger.log(E.Error,`An onreconnecting callback called with error '${i}' threw error '${a}'.`)}if(this._connectionState!==ot.Reconnecting){this._logger.log(E.Debug,"Connection left the reconnecting state in onreconnecting callback. Done reconnecting.");return}}for(;r!==null;){if(this._logger.log(E.Information,`Reconnect attempt number ${n+1} will start in ${r} ms.`),yield new Promise(a=>{this._reconnectDelayHandle=setTimeout(a,r)}),this._reconnectDelayHandle=void 0,this._connectionState!==ot.Reconnecting){this._logger.log(E.Debug,"Connection left the reconnecting state during reconnect delay. Done reconnecting.");return}try{if(yield this._startInternal(),this._connectionState=ot.Connected,this._logger.log(E.Information,"HubConnection reconnected successfully."),this._reconnectedCallbacks.length!==0)try{this._reconnectedCallbacks.forEach(a=>a.apply(this,[this.connection.connectionId]))}catch(a){this._logger.log(E.Error,`An onreconnected callback called with connectionId '${this.connection.connectionId}; threw error '${a}'.`)}return}catch(a){if(this._logger.log(E.Information,`Reconnect attempt failed because of error '${a}'.`),this._connectionState!==ot.Reconnecting){this._logger.log(E.Debug,`Connection moved to the '${this._connectionState}' from the reconnecting state during reconnect attempt. Done reconnecting.`),this._connectionState===ot.Disconnecting&&this._completeClose();return}n++,o=a instanceof Error?a:new Error(a.toString()),r=this._getNextRetryDelay(n,Date.now()-e,o)}}this._logger.log(E.Information,`Reconnect retries have been exhausted after ${Date.now()-e} ms and ${n} failed attempts. Connection disconnecting.`),this._completeClose()})}_getNextRetryDelay(i,e,n){try{return this._reconnectPolicy.nextRetryDelayInMilliseconds({elapsedMilliseconds:e,previousRetryCount:i,retryReason:n})}catch(o){return this._logger.log(E.Error,`IRetryPolicy.nextRetryDelayInMilliseconds(${i}, ${e}) threw error '${o}'.`),null}}_cancelCallbacksWithError(i){let e=this._callbacks;this._callbacks={},Object.keys(e).forEach(n=>{let o=e[n];try{o(null,i)}catch(r){this._logger.log(E.Error,`Stream 'error' callback called with '${i}' threw error: ${Pp(r)}`)}})}_cleanupPingTimer(){this._pingServerHandle&&(clearTimeout(this._pingServerHandle),this._pingServerHandle=void 0)}_cleanupTimeout(){this._timeoutHandle&&clearTimeout(this._timeoutHandle)}_createInvocation(i,e,n,o){if(n)return o.length!==0?{target:i,arguments:e,streamIds:o,type:Te.Invocation}:{target:i,arguments:e,type:Te.Invocation};{let r=this._invocationId;return this._invocationId++,o.length!==0?{target:i,arguments:e,invocationId:r.toString(),streamIds:o,type:Te.Invocation}:{target:i,arguments:e,invocationId:r.toString(),type:Te.Invocation}}}_launchStreams(i,e){if(i.length!==0){e||(e=Promise.resolve());for(let n in i)i[n].subscribe({complete:()=>{e=e.then(()=>this._sendWithProtocol(this._createCompletionMessage(n)))},error:o=>{let r;o instanceof Error?r=o.message:o&&o.toString?r=o.toString():r="Unknown error",e=e.then(()=>this._sendWithProtocol(this._createCompletionMessage(n,r)))},next:o=>{e=e.then(()=>this._sendWithProtocol(this._createStreamItemMessage(n,o)))}})}}_replaceStreamingParams(i){let e=[],n=[];for(let o=0;o<i.length;o++){let r=i[o];if(this._isObservable(r)){let a=this._invocationId;this._invocationId++,e[a]=r,n.push(a.toString()),i.splice(o,1)}}return[e,n]}_isObservable(i){return i&&i.subscribe&&typeof i.subscribe=="function"}_createStreamInvocation(i,e,n){let o=this._invocationId;return this._invocationId++,n.length!==0?{target:i,arguments:e,invocationId:o.toString(),streamIds:n,type:Te.StreamInvocation}:{target:i,arguments:e,invocationId:o.toString(),type:Te.StreamInvocation}}_createCancelInvocation(i){return{invocationId:i,type:Te.CancelInvocation}}_createStreamItemMessage(i,e){return{invocationId:i,item:e,type:Te.StreamItem}}_createCompletionMessage(i,e,n){return e?{error:e,invocationId:i,type:Te.Completion}:{invocationId:i,result:n,type:Te.Completion}}_createCloseMessage(){return{type:Te.Close}}_trySendPingMessage(){return z(this,null,function*(){try{yield this._sendMessage(this._cachedPingMessage)}catch(i){this._cleanupPingTimer()}})}};var gA=[0,2e3,1e4,3e4,null],hl=class{constructor(i){this._retryDelays=i!==void 0?[...i,null]:gA}nextRetryDelayInMilliseconds(i){return this._retryDelays[i.previousRetryCount]}};var Er=(()=>{class t{}return t.Authorization="Authorization",t.Cookie="Cookie",t})();var Tp=class extends Ki{constructor(i,e){super(),this._innerClient=i,this._accessTokenFactory=e}send(i){return z(this,null,function*(){let e=!0;this._accessTokenFactory&&(!this._accessToken||i.url&&i.url.indexOf("/negotiate?")>0)&&(e=!1,this._accessToken=yield this._accessTokenFactory()),this._setAuthorizationHeader(i);let n=yield this._innerClient.send(i);return e&&n.statusCode===401&&this._accessTokenFactory?(this._accessToken=yield this._accessTokenFactory(),this._setAuthorizationHeader(i),yield this._innerClient.send(i)):n})}_setAuthorizationHeader(i){i.headers||(i.headers={}),this._accessToken?i.headers[Er.Authorization]=`Bearer ${this._accessToken}`:this._accessTokenFactory&&i.headers[Er.Authorization]&&delete i.headers[Er.Authorization]}getCookieString(i){return this._innerClient.getCookieString(i)}};var en=(function(t){return t[t.None=0]="None",t[t.WebSockets=1]="WebSockets",t[t.ServerSentEvents=2]="ServerSentEvents",t[t.LongPolling=4]="LongPolling",t})(en||{}),Zt=(function(t){return t[t.Text=1]="Text",t[t.Binary=2]="Binary",t})(Zt||{});var Rp=class{constructor(){this._isAborted=!1,this.onabort=null}abort(){this._isAborted||(this._isAborted=!0,this.onabort&&this.onabort())}get signal(){return this}get aborted(){return this._isAborted}};var fl=class{get pollAborted(){return this._pollAbort.aborted}
59constructor(i,e,n){this._httpClient=i,this._logger=e,this._pollAbort=new Rp,this._options=n,this._running=!1,this.onreceive=null,this.onclose=null}connect(i,e){return z(this,null,function*(){if(pt.isRequired(i,"url"),pt.isRequired(e,"transferFormat"),pt.isIn(e,Zt,"transferFormat"),this._url=i,this._logger.log(E.Trace,"(LongPolling transport) Connecting."),e===Zt.Binary&&typeof XMLHttpRequest<"u"&&typeof new XMLHttpRequest().responseType!="string")throw new Error("Binary protocols over XmlHttpRequest not implementing advanced features are not supported.");let[n,o]=Qi(),r=S({[n]:o},this._options.headers),a={abortSignal:this._pollAbort.signal,headers:r,timeout:1e5,withCredentials:this._options.withCredentials};e===Zt.Binary&&(a.responseType="arraybuffer");let s=`${i}&_=${Date.now()}`;this._logger.log(E.Trace,`(LongPolling transport) polling: ${s}.`);let l=yield this._httpClient.get(s,a);l.statusCode!==200?(this._logger.log(E.Error,`(LongPolling transport) Unexpected response code: ${l.statusCode}.`),this._closeError=new $n(l.statusText||"",l.statusCode),this._running=!1):this._running=!0,this._receiving=this._poll(this._url,a)})}_poll(i,e){return z(this,null,function*(){try{for(;this._running;)try{let n=`${i}&_=${Date.now()}`;this._logger.log(E.Trace,`(LongPolling transport) polling: ${n}.`);let o=yield this._httpClient.get(n,e);o.statusCode===204?(this._logger.log(E.Information,"(LongPolling transport) Poll terminated by server."),this._running=!1):o.statusCode!==200?(this._logger.log(E.Error,`(LongPolling transport) Unexpected response code: ${o.statusCode}.`),this._closeError=new $n(o.statusText||"",o.statusCode),this._running=!1):o.content?(this._logger.log(E.Trace,`(LongPolling transport) data received. ${sr(o.content,this._options.logMessageContent)}.`),this.onreceive&&this.onreceive(o.content)):this._logger.log(E.Trace,"(LongPolling transport) Poll timed out, reissuing.")}catch(n){this._running?n instanceof ar?this._logger.log(E.Trace,"(LongPolling transport) Poll timed out, reissuing."):(this._closeError=n,this._running=!1):this._logger.log(E.Trace,`(LongPolling transport) Poll errored after shutdown: ${n.message}`)}}finally{this._logger.log(E.Trace,"(LongPolling transport) Polling complete."),this.pollAborted||this._raiseOnClose()}})}send(i){return z(this,null,function*(){return this._running?xp(this._logger,"LongPolling",this._httpClient,this._url,i,this._options):Promise.reject(new Error("Cannot send until the transport is connected"))})}stop(){return z(this,null,function*(){this._logger.log(E.Trace,"(LongPolling transport) Stopping polling."),this._running=!1,this._pollAbort.abort();try{yield this._receiving,this._logger.log(E.Trace,`(LongPolling transport) sending DELETE request to ${this._url}.`);let i={},[e,n]=Qi();i[e]=n;let o={headers:S(S({},i),this._options.headers),timeout:this._options.timeout,withCredentials:this._options.withCredentials},r;try{yield this._httpClient.delete(this._url,o)}catch(a){r=a}r?r instanceof $n&&(r.statusCode===404?this._logger.log(E.Trace,"(LongPolling transport) A 404 response was returned from sending a DELETE request."):this._logger.log(E.Trace,`(LongPolling transport) Error sending a DELETE request: ${r}`)):this._logger.log(E.Trace,"(LongPolling transport) DELETE request accepted.")}finally{this._logger.log(E.Trace,"(LongPolling transport) Stop finished."),this._raiseOnClose()}})}_raiseOnClose(){if(this.onclose){let i="(LongPolling transport) Firing onclose event.";this._closeError&&(i+=" Error: "+this._closeError),this._logger.log(E.Trace,i),this.onclose(this._closeError)}}};var Ep=class{constructor(i,e,n,o){this._httpClient=i,this._accessToken=e,this._logger=n,this._options=o,this.onreceive=null,this.onclose=null}connect(i,e){return z(this,null,function*(){return pt.isRequired(i,"url"),pt.isRequired(e,"transferFormat"),pt.isIn(e,Zt,"transferFormat"),this._logger.log(E.Trace,"(SSE transport) Connecting."),this._url=i,this._accessToken&&(i+=(i.indexOf("?")<0?"?":"&")+`access_token=${encodeURIComponent(this._accessToken)}`),new Promise((n,o)=>{let r=!1;if(e!==Zt.Text){o(new Error("The Server-Sent Events transport only supports the 'Text' transfer format"));return}let a;if(gt.isBrowser||gt.isWebWorker)a=new this._options.EventSource(i,{withCredentials:this._options.withCredentials});else{let s=this._httpClient.getCookieString(i),l={};l.Cookie=s;let[c,d]=Qi();l[c]=d,a=new this._options.EventSource(i,{withCredentials:this._options.withCredentials,headers:S(S({},l),this._options.headers)})}try{a.onmessage=s=>{if(this.onreceive)try{this._logger.log(E.Trace,`(SSE transport) data received. ${sr(s.data,this._options.logMessageContent)}.`),this.onreceive(s.data)}catch(l){this._close(l);return}},a.onerror=s=>{r?this._close():o(new Error("EventSource failed to connect. The connection could not be found on the server, either the connection ID is not present on the server, or a proxy is refusing/buffering the connection. If you have multiple servers check that sticky
59sessions are enabled."))},a.onopen=()=>{this._logger.log(E.Information,`SSE connected to ${this._url}`),this._eventSource=a,r=!0,n()}}catch(s){o(s);return}})})}send(i){return z(this,null,function*(){return this._eventSource?xp(this._logger,"SSE",this._httpClient,this._url,i,this._options):Promise.reject(new Error("Cannot send until the transport is connected"))})}stop(){return this._close(),Promise.resolve()}_close(i){this._eventSource&&(this._eventSource.close(),this._eventSource=void 0,this.onclose&&this.onclose(i))}};var Ap=class{constructor(i,e,n,o,r,a){this._logger=n,this._accessTokenFactory=e,this._logMessageContent=o,this._webSocketConstructor=r,this._httpClient=i,this.onreceive=null,this.onclose=null,this._headers=a}connect(i,e){return z(this,null,function*(){pt.isRequired(i,"url"),pt.isRequired(e,"transferFormat"),pt.isIn(e,Zt,"transferFormat"),this._logger.log(E.Trace,"(WebSockets transport) Connecting.");let n;return this._accessTokenFactory&&(n=yield this._accessTokenFactory()),new Promise((o,r)=>{i=i.replace(/^http/,"ws");let a,s=this._httpClient.getCookieString(i),l=!1;if(gt.isNode||gt.isReactNative){let c={},[d,m]=Qi();c[d]=m,n&&(c[Er.Authorization]=`Bearer ${n}`),s&&(c[Er.Cookie]=s),a=new this._webSocketConstructor(i,void 0,{headers:S(S({},c),this._headers)})}else n&&(i+=(i.indexOf("?")<0?"?":"&")+`access_token=${encodeURIComponent(n)}`);a||(a=new this._webSocketConstructor(i)),e===Zt.Binary&&(a.binaryType="arraybuffer"),a.onopen=c=>{this._logger.log(E.Information,`WebSocket connected to ${i}.`),this._webSocket=a,l=!0,o()},a.onerror=c=>{let d=null;typeof ErrorEvent<"u"&&c instanceof ErrorEvent?d=c.error:d="There was an error with the transport",this._logger.log(E.Information,`(WebSockets transport) ${d}.`)},a.onmessage=c=>{if(this._logger.log(E.Trace,`(WebSockets transport) data received. ${sr(c.data,this._logMessageContent)}.`),this.onreceive)try{this.onreceive(c.data)}catch(d){this._close(d);return}},a.onclose=c=>{if(l)this._close(c);else{let d=null;typeof ErrorEvent<"u"&&c instanceof ErrorEvent?d=c.error:d="WebSocket failed to connect. The connection could not be found on the server, either the endpoint may not be a SignalR endpoint, the connection ID is not present on the server, or there is a proxy blocking WebSockets. If you have multiple servers check that sticky sessions are enabled.",r(new Error(d))}}})})}send(i){return this._webSocket&&this._webSocket.readyState===this._webSocketConstructor.OPEN?(this._logger.log(E.Trace,`(WebSockets transport) sending data. ${sr(i,this._logMessageContent)}.`),this._webSocket.send(i),Promise.resolve()):Promise.reject("WebSocket is not in the OPEN state")}stop(){return this._webSocket&&this._close(void 0),Promise.resolve()}_close(i){this._webSocket&&(this._webSocket.onclose=()=>{},this._webSocket.onmessage=()=>{},this._webSocket.onerror=()=>{},this._webSocket.close(),this._webSocket=void 0),this._logger.log(E.Trace,"(WebSockets transport) socket closed."),this.onclose&&(this._isCloseEvent(i)&&(i.wasClean===!1||i.code!==1e3)?this.onclose(new Error(`WebSocket closed with status code: ${i.code} (${i.reason||"no reason given"}).`)):i instanceof Error?this.onclose(i):this.onclose())}_isCloseEvent(i){return i&&typeof i.wasClean=="boolean"&&typeof i.code=="number"}};var _v=100,Lp=class{constructor(i,e={}){if(this._stopPromiseResolver=()=>{},this.features={},this._negotiateVersion=1,pt.isRequired(i,"url"),this._logger=hv(e.logger),this.baseUrl=this._resolveUrl(i),e=e||{},e.logMessageContent=e.logMessageContent===void 0?!1:e.logMessageContent,typeof e.withCredentials=="boolean"||e.withCredentials===void 0)e.withCredentials=e.withCredentials===void 0?!0:e.withCredentials;else throw new Error("withCredentials option was not a 'boolean' or 'undefined' value");e.timeout=e.timeout===void 0?100*1e3:e.timeout;let n=null,o=null;if(gt.isNode&&typeof Br<"u"){let r=typeof __webpack_require__=="function"?__non_webpack_require__:Br;n=r("ws"),o=r("eventsource")}!gt.isNode&&typeof WebSocket<"u"&&!e.WebSocket?e.WebSocket=WebSocket:gt.isNode&&!e.WebSocket&&n&&(e.WebSocket=n),!gt.isNode&&typeof EventSource<"u"&&!e.EventSource?e.
59EventSource=EventSource:gt.isNode&&!e.EventSource&&typeof o<"u"&&(e.EventSource=o),this._httpClient=new Tp(e.httpClient||new Dp(this._logger),e.accessTokenFactory),this._connectionState="Disconnected",this._connectionStarted=!1,this._options=e,this.onreceive=null,this.onclose=null}start(i){return z(this,null,function*(){if(i=i||Zt.Binary,pt.isIn(i,Zt,"transferFormat"),this._logger.log(E.Debug,`Starting connection with transfer format '${Zt[i]}'.`),this._connectionState!=="Disconnected")return Promise.reject(new Error("Cannot start an HttpConnection that is not in the 'Disconnected' state."));if(this._connectionState="Connecting",this._startInternalPromise=this._startInternal(i),yield this._startInternalPromise,this._connectionState==="Disconnecting"){let e="Failed to start the HttpConnection before stop() was called.";return this._logger.log(E.Error,e),yield this._stopPromise,Promise.reject(new dn(e))}else if(this._connectionState!=="Connected"){let e="HttpConnection.startInternal completed gracefully but didn't enter the connection into the connected state!";return this._logger.log(E.Error,e),Promise.reject(new dn(e))}this._connectionStarted=!0})}send(i){return this._connectionState!=="Connected"?Promise.reject(new Error("Cannot send data if the connection is not in the 'Connected' State.")):(this._sendQueue||(this._sendQueue=new Bh(this.transport)),this._sendQueue.send(i))}stop(i){return z(this,null,function*(){if(this._connectionState==="Disconnected")return this._logger.log(E.Debug,`Call to HttpConnection.stop(${i}) ignored because the connection is already in the disconnected state.`),Promise.resolve();if(this._connectionState==="Disconnecting")return this._logger.log(E.Debug,`Call to HttpConnection.stop(${i}) ignored because the connection is already in the disconnecting state.`),this._stopPromise;this._connectionState="Disconnecting",this._stopPromise=new Promise(e=>{this._stopPromiseResolver=e}),yield this._stopInternal(i),yield this._stopPromise})}_stopInternal(i){return z(this,null,function*(){this._stopError=i;try{yield this._startInternalPromise}catch(e){}if(this.transport){try{yield this.transport.stop()}catch(e){this._logger.log(E.Error,`HttpConnection.transport.stop() threw error '${e}'.`),this._stopConnection()}this.transport=void 0}else this._logger.log(E.Debug,"HttpConnection.transport is undefined in HttpConnection.stop() because start() failed.")})}_startInternal(i){return z(this,null,function*(){let e=this.baseUrl;this._accessTokenFactory=this._options.accessTokenFactory,this._httpClient._accessTokenFactory=this._accessTokenFactory;try{if(this._options.skipNegotiation)if(this._options.transport===en.WebSockets)this.transport=this._constructTransport(en.WebSockets),yield this._startTransport(e,i);else throw new Error("Negotiation can only be skipped when using the WebSocket transport directly.");else{let n=null,o=0;do{if(n=yield this._getNegotiationResponse(e),this._connectionState==="Disconnecting"||this._connectionState==="Disconnected")throw new dn("The connection was stopped during negotiation.");if(n.error)throw new Error(n.error);if(n.ProtocolVersion)throw new Error("Detected a connection attempt to an ASP.NET SignalR Server. This client only supports connecting to an ASP.NET Core SignalR Server. See https://aka.ms/signalr-core-differences for details.");if(n.url&&(e=n.url),n.accessToken){let r=n.accessToken;this._accessTokenFactory=()=>r,this._httpClient._accessToken=r,this._httpClient._accessTokenFactory=void 0}o++}while(n.url&&o<_v);if(o===_v&&n.url)throw new Error("Negotiate redirection limit exceeded.");yield this._createTransport(e,this._options.transport,n,i)}this.transport instanceof fl&&(this.features.inherentKeepAlive=!0),this._connectionState==="Connecting"&&(this._logger.log(E.Debug,"The HttpConnection connected successfully."),this._connectionState="Connected")}catch(n){return this._logger.log(E.Error,"Failed to start the connection: "+n),this._connectionState="Disconnected",this.transport=void 0,this._stopPromiseResolver(),Promise.reject(n)}})}_getNegotiationResponse(i){return z(this,null,function*(){let e={},[n,o]=Qi();e[n]=o;let r=this._resolveNegotiateUrl(i);this._logger.log(E.Debug,`Sending negotiation request: ${r}.`);try{let a=yield this._httpClient.post(r,{content:"",headers:S(S({},e),this._options.headers),timeout:this._options.timeout,withCredentials:this._options.withCredentials});if(a.statusCode!==200)return Promise.reject(new Error(`Unexpected status code returned from negotiate '${a.statusCode}'`));let s=JSON.parse(a.content);return(!s.negotiateVersion||s.negotiateVersion<1)&&(s.connectionToken=s.connectionId),s.useStatefulReconnect&&this._options._useStatefulReconnect!==!0?Promise.reject(new ul("Client didn't negotiate Stateful Reconnect but the server did.")):s}catch(a){let s="Failed to complete negotiation with the server: "+a;return a instanceof $n&&a.statusCode===404&&(s=s+" Either this is not a SignalR endpoint or there is a proxy blocking the connection."),this._logger.log(E.Error,s),Promise.reject(new ul(s))}})}_createConnectUrl(i,e){return e?i+(i.indexOf("?")===-1?"?":"&")+`id=${e}
59`:i}_createTransport(i,e,n,o){return z(this,null,function*(){let r=this._createConnectUrl(i,n.connectionToken);if(this._isITransport(e)){this._logger.log(E.Debug,"Connection was provided an instance of ITransport, using that directly."),this.transport=e,yield this._startTransport(r,o),this.connectionId=n.connectionId;return}let a=[],s=n.availableTransports||[],l=n;for(let c of s){let d=this._resolveTransportOrError(c,e,o,l?.useStatefulReconnect===!0);if(d instanceof Error)a.push(`${c.transport} failed:`),a.push(d);else if(this._isITransport(d)){if(this.transport=d,!l){try{l=yield this._getNegotiationResponse(i)}catch(m){return Promise.reject(m)}r=this._createConnectUrl(i,l.connectionToken)}try{yield this._startTransport(r,o),this.connectionId=l.connectionId;return}catch(m){if(this._logger.log(E.Error,`Failed to start the transport '${c.transport}': ${m}`),l=void 0,a.push(new Sp(`${c.transport} failed: ${m}`,en[c.transport])),this._connectionState!=="Connecting"){let g="Failed to select transport before stop() was called.";return this._logger.log(E.Debug,g),Promise.reject(new dn(g))}}}}return a.length>0?Promise.reject(new vp(`Unable to connect to the server with any of the available transports. ${a.join(" ")}`,a)):Promise.reject(new Error("None of the transports supported by the client are supported by the server."))})}_constructTransport(i){switch(i){case en.WebSockets:if(!this._options.WebSocket)throw new Error("'WebSocket' is not supported in your environment.");return new Ap(this._httpClient,this._accessTokenFactory,this._logger,this._options.logMessageContent,this._options.WebSocket,this._options.headers||{});case en.ServerSentEvents:if(!this._options.EventSource)throw new Error("'EventSource' is not supported in your environment.");return new Ep(this._httpClient,this._httpClient._accessToken,this._logger,this._options);case en.LongPolling:return new fl(this._httpClient,this._logger,this._options);default:throw new Error(`Unknown transport: ${i}.`)}}_startTransport(i,e){return this.transport.onreceive=this.onreceive,this.features.reconnect?this.transport.onclose=n=>z(this,null,function*(){let o=!1;if(this.features.reconnect)try{this.features.disconnected(),yield this.transport.connect(i,e),yield this.features.resend()}catch(r){o=!0}else{this._stopConnection(n);return}o&&this._stopConnection(n)}):this.transport.onclose=n=>this._stopConnection(n),this.transport.connect(i,e)}_resolveTransportOrError(i,e,n,o){let r=en[i.transport];if(r==null)return this._logger.log(E.Debug,`Skipping transport '${i.transport}' because it is not supported by this client.`),new Error(`Skipping transport '${i.transport}' because it is not supported by this client.`);if(_A(e,r))if(i.transferFormats.map(s=>Zt[s]).indexOf(n)>=0){if(r===en.WebSockets&&!this._options.WebSocket||r===en.ServerSentEvents&&!this._options.EventSource)return this._logger.log(E.Debug,`Skipping transport '${en[r]}' because it is not supported in your environment.'`),new yp(`'${en[r]}' is not supported in your environment.`,r);this._logger.log(E.Debug,`Selecting transport '${en[r]}'.`);try{return this.features.reconnect=r===en.WebSockets?o:void 0,this._constructTransport(r)}catch(s){return s}}else return this._logger.log(E.Debug,`Skipping transport '${en[r]}' because it does not support the requested transfer format '${Zt[n]}'.`),new Error(`'${en[r]}' does not support ${Zt[n]}.`);else return this._logger.log(E.Debug,`Skipping transport '${en[r]}' because it was disabled by the client.`),new bp(`'${en[r]}' is disabled by the client.`,r)}_isITransport(i){return i&&typeof i=="object"&&"connect"in i}_stopConnection(i){if(this._logger.log(E.Debug,`HttpConnection.stopConnection(${i}) called while in state ${this._connectionState}.`),this.transport=void 0,i=this._stopError||i,this._stopError=void 0,this._connectionState==="Disconnected"){this._logger.log(E.Debug,`Call to HttpConnection.stopConnection(${i}) was ignored because the connection is already in the disconnected state.`);return}if(this._connectionState==="Connecting")throw this._logger.log(E.Warning,`Call to HttpConnection.stopConnection(${i}) was ignored because the connection is still in the connecting state.`),new Error(`HttpConnection.stopConnection(${i}) was called while the connection is still in the connecting state.`);if(this._connectionState==="Disconnecting"&&this._stopPromiseResolver(),i?this._logger.log(E.Error,`Connection disconnected with error '${i}'.`):this._logger.log(E.Information,"Connection disconnected."),this._sendQueue&&(this._sendQueue.stop().catch(e=>{this._logger.log(E.Error,`TransportSendQueue.stop() threw error '${e}'.`)}),this._sendQueue=void 0),this.connectionId=void 0,this._connectionState="Disconnected",this._connectionStarted){this._connectionStarted=!1;try{this.onclose&&this.onclose(i)}catch(e){this._logger.log(E.Error,`HttpConnection.onclose(${i}) threw error '${e}'.`)}}}_resolveUrl(i){if(i.lastIndexOf("https://",0)===0||i.lastIndexOf("http://",0)===0)return i;if(!gt.isBrowser)throw new Error(`Cannot resolve '${i}'.`);let e=window.document.createElement("a");return e.href=i,this._logger.log(E.Information,`Normalizing '${i}' to '${e.href}'.`),e.href}_resolveNegotiateUrl(i){let e=new URL(i);e.pathname.endsWith("/")?e.pathname+="negotiate":e.pathname+="/negotiate";let n=new URLSearchParams(e.searchParams);return n.has("negotiateVersion")||n.append("negotiateVersion",this._negotiateVersion.toString()),n.has("useStatefulReconnect")?n.get("useStatefulReconnect")==="true"&&(this._options._useStatefulReconnect=!0):this._options._useStatefulReconnect===!0&&n.append("useStatefulReconnect","true"),e.search=n.toString(),e.toString()}};function _A(t,i){return!t||(i&t)!==0}var Bh=class t{constructor(i){this._transport=i,this._buffer=[],this._executing=!0,this._sendBufferedData=new Ya,this._transportResult=new Ya,this._sendLoopPromise=this._sendLoop()}send(i){return this._bufferData(i),this._transportResult||(this._transportResult=new Ya),this._transportResult.promise}stop(){return this._executing=!1,this._sendBufferedData.resolve(),this._sendLoopPromise}_bufferData(i){if(this._buffer.length&&typeof this._buffer[0]!=typeof i)throw new Error(`Expected data to be of type ${typeof this._buffer} but was of type ${typeof i}`);this._buffer.push(i),this._sendBufferedData.resolve()}_sendLoop(){return z(this,null,function*(){for(;;){if(yield this._sendBufferedData.promise,!this._executing){this._transportResult&&this._transportResult.reject("Connection stopped.");break}this._sendBufferedData=new Ya;let i=this._transportResult;this._transportResult=void 0;let e=typeof this._buffer[0]=="string"?this._buffer.join(""):t._concatBuffers(this._buffer);this._buffer.length=0;try{yield this._transport.send(e),i.resolve()}catch(n){i.reject(n)}}})}static _concatBuffers(i){let e=i.map(r=>r.byteLength).reduce((r,a)=>r+a),n=new Uint8Array(e),o=0;for(let r of i)n.set(new Uint8Array(r),o),o+=r.byteLength;return n.buffer}},Ya=class{constructor(){this.promise=new Promise((i,e)=>[this._resolver,this._rejecter]=[i,e])}resolve(){this._resolver()}reject(i){this._rejecter(i)}};var CA="json",zp=class{constructor(){this.name=CA,this.version=2,this.transferFormat=Zt.Text}
59parseMessages(i,e){if(typeof i!="string")throw new Error("Invalid input for JSON hub protocol. Expected a string.");if(!i)return[];e===null&&(e=Zi.instance);let n=Wn.parse(i),o=[];for(let r of n){let a=JSON.parse(r);if(typeof a.type!="number")throw new Error("Invalid payload.");switch(a.type){case Te.Invocation:this._isInvocationMessage(a);break;case Te.StreamItem:this._isStreamItemMessage(a);break;case Te.Completion:this._isCompletionMessage(a);break;case Te.Ping:break;case Te.Close:break;case Te.Ack:this._isAckMessage(a);break;case Te.Sequence:this._isSequenceMessage(a);break;default:e.log(E.Information,"Unknown message type '"+a.type+"' ignored.");continue}o.push(a)}return o}writeMessage(i){return Wn.write(JSON.stringify(i))}_isInvocationMessage(i){this._assertNotEmptyString(i.target,"Invalid payload for Invocation message."),i.invocationId!==void 0&&this._assertNotEmptyString(i.invocationId,"Invalid payload for Invocation message.")}_isStreamItemMessage(i){if(this._assertNotEmptyString(i.invocationId,"Invalid payload for StreamItem message."),i.item===void 0)throw new Error("Invalid payload for StreamItem message.")}_isCompletionMessage(i){if(i.result&&i.error)throw new Error("Invalid payload for Completion message.");!i.result&&i.error&&this._assertNotEmptyString(i.error,"Invalid payload for Completion message."),this._assertNotEmptyString(i.invocationId,"Invalid payload for Completion message.")}_isAckMessage(i){if(typeof i.sequenceId!="number")throw new Error("Invalid SequenceId for Ack message.")}_isSequenceMessage(i){if(typeof i.sequenceId!="number")throw new Error("Invalid SequenceId for Sequence message.")}_assertNotEmptyString(i,e){if(typeof i!="string"||i==="")throw new Error(e)}};var yA={trace:E.Trace,debug:E.Debug,info:E.Information,information:E.Information,warn:E.Warning,warning:E.Warning,error:E.Error,critical:E.Critical,none:E.None};function bA(t){let i=yA[t.toLowerCase()];if(typeof i<"u")return i;throw new Error(`Unknown log level: ${t}`)}var gl=class{configureLogging(i){if(pt.isRequired(i,"logging"),SA(i))this.logger=i;else if(typeof i=="string"){let e=bA(i);this.logger=new Rr(e)}else this.logger=new Rr(i);return this}withUrl(i,e){return pt.isRequired(i,"url"),pt.isNotEmpty(i,"url"),this.url=i,typeof e=="object"?this.httpConnectionOptions=S(S({},this.httpConnectionOptions),e):this.httpConnectionOptions=j(S({},this.httpConnectionOptions),{transport:e}),this}withHubProtocol(i){return pt.isRequired(i,"protocol"),this.protocol=i,this}withAutomaticReconnect(i){if(this.reconnectPolicy)throw new Error("A reconnectPolicy has already been set.");return i?Array.isArray(i)?this.reconnectPolicy=new hl(i):this.reconnectPolicy=i:this.reconnectPolicy=new hl,this}withServerTimeout(i){return pt.isRequired(i,"milliseconds"),this._serverTimeoutInMilliseconds=i,this}withKeepAliveInterval(i){return pt.isRequired(i,"milliseconds"),this._keepAliveIntervalInMilliseconds=i,this}withStatefulReconnect(i){return this.httpConnectionOptions===void 0&&(this.httpConnectionOptions={}),this.httpConnectionOptions._useStatefulReconnect=!0,this._statefulReconnectBufferSize=i?.bufferSize,this}build(){let i=this.httpConnectionOptions||{};if(i.logger===void 0&&(i.logger=this.logger),!this.url)throw new Error("The 'HubConnectionBuilder.withUrl' method must be called before building the connection.");let e=new Lp(this.url,i);return ml.create(e,this.logger||Zi.instance,this.protocol||new zp,this.reconnectPolicy,this._serverTimeoutInMilliseconds,this._keepAliveIntervalInMilliseconds,this._statefulReconnectBufferSize)}};function SA(t){return t.log!==void 0}var Bp=(()=>{class t{static{this.iso8601=/^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(\.\d+)?(([+-]\d\d:\d\d)|Z)?$/}static convertToDateForObjectProperties(e){if(typeof e=="object"&&e!==null){let n=e;for(let o of Object.keys(n)){let r=n[o];this.isIso8601(r)?n[o]=new Date(r):typeof r=="object"&&r!==null&&this.convertToDateForObjectProperties(r)}return e}else return e}static isIso8601(e){return typeof e=="string"?this.iso8601.test(e):!1}}return t})();var Cv=(()=>{class t{constructor(){this.connection=null,this.connected$=new yt(!1),this.started$=new yt(!1),this.events$=new Ei,this.lastPing$=new yt(null),this.isConnected$=this.connected$.asObservable().pipe(Ol(1)),this.isStarted$=this.started$.asObservable().pipe(Ol(1)),this.allEvents$=this.events$.asObservable().pipe(Ol(1)),this.eventHistory=[],this.maxEventHistory=500,this.activeCallers=new Set,this.startInFlight=null,this.stopInFlight=null,this.apiService=f(Gt),this.zone=f(Qn)}start(e,n=null){return z(this,null,function*(){if(!e)throw new Error("RealtimeService.start requires a non-empty callerId");
59if(!this.activeCallers.has(e)){if(this.activeCallers.add(e),this.startInFlight){yield this.startInFlight;return}if(this.connection){if(this.connection.state===ot.Connected)return;yield this.waitUntilConnectedOnce(1e4);return}this.startInFlight=z(this,null,function*(){let o=n?.reconnectDelaysMs??[0,2e3,5e3,1e4,2e4],r=n?.logLevel??E.Information,a=this.apiService.getBackendUrl(n?.hubUrl??"/hubs/frontend");n?.knownVisitorId&&n?.knownVisitorIdHash&&(a+=`?ghvi=${n.knownVisitorId}&ghvh=${n.knownVisitorIdHash}`);let s=new gl().withUrl(a,{}).withAutomaticReconnect(o).configureLogging(r).withKeepAliveInterval(29e3);this.connection=s.build(),this.connection.on("OnEvent",l=>{this.zone.run(()=>{let c=Bp.convertToDateForObjectProperties(l);this.eventHistory.push(c),this.eventHistory.length>this.maxEventHistory&&this.eventHistory.shift(),this.events$.next(c)})}),this.connection.on("OnPing",l=>{this.zone.run(()=>{this.lastPing$.next(l)})}),this.connection.onreconnecting(()=>{this.zone.run(()=>this.connected$.next(!1))}),this.connection.onreconnected(()=>z(this,null,function*(){this.zone.run(()=>this.connected$.next(!0)),yield this.replayClientStateAfterReconnect()})),this.connection.onclose(()=>{this.zone.run(()=>{this.connected$.next(!1),this.started$.next(!1)}),this.cleanupConnection()}),yield this.connection.start(),this.zone.run(()=>{this.started$.next(!0),this.connected$.next(!0)}),yield this.invokeSafe("Ping")});try{yield this.startInFlight}finally{this.startInFlight=null}}})}stop(e){return z(this,null,function*(){if(!e)throw new Error("RealtimeService.stop requires a non-empty callerId");if(this.activeCallers.delete(e)&&!(this.activeCallers.size>0)){if(this.stopInFlight){yield this.stopInFlight;return}this.startInFlight&&(yield this.startInFlight),this.stopInFlight=z(this,null,function*(){if(this.connection)try{yield this.connection.stop()}finally{this.cleanupConnection(),this.zone.run(()=>{this.connected$.next(!1),this.started$.next(!1),this.connection=null})}});try{yield this.stopInFlight}finally{this.stopInFlight=null}}})}eventsOfType$(e){let n=Array.isArray(e)?e:[e];return this.allEvents$.pipe(lt(o=>n.includes(o.type)),Be(o=>o))}eventsOfTypeReplayAll$(e){let n=Array.isArray(e)?e:[e],o=this.eventHistory.slice(),r=wn(o).pipe(lt(s=>n.includes(s.type)),Be(s=>s)),a=this.eventsOfType$(n);return xl(r,a)}waitUntilConnectedOnce(e){let n=this.isConnected$.pipe(lt(r=>r),Ke(1),Be(()=>!0));if(e==null)return mo(n);let o=new Ri(r=>{let a=setTimeout(()=>{r.next(!1),r.complete()},e);return()=>clearTimeout(a)}).pipe(Ke(1));return mo(ef(n,o))}invokeServerMethod(e,...n){return z(this,null,function*(){if(this.connection?.state!==ot.Connected)if(this.connection?.state===ot.Reconnecting){if(yield new Promise(o=>setTimeout(o,5e3)),this.connection?.state!==ot.Connected)return!1}else return!1;return this.invokeSafe(e,...n)})}replayClientStateAfterReconnect(){return z(this,null,function*(){yield this.invokeSafe("ping")})}invokeSafe(e,...n){return z(this,null,function*(){let o=this.connection;if(!o||o.state!==ot.Connected)return!1;try{return yield o.invoke(e,...n),!0}catch(r){return console.warn("Error invoking method",e,r),!1}})}cleanupConnection(){this.connection&&(this.connection.off("OnEvent"),this.connection.off("OnPing"),this.connection=null)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=G({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var _l=class{static getPropertyNames(){return["currentUrl","currentLanguage","currentBasketId","currentBasketHash","currentView","currentViewArea","clientTzOffset","gaContext"]}};var Fp=class{static getPropertyNames(){return["gaClientId","gaSessionId"]}};var yv=(()=>{class t{constructor(){this.store=f(oe),this.router=f(xi),this.webComponentService=f(Pa),this.injector=f(kn),this.stepToViewMap={[$.Search]:ke.Search,[$.Package]:ke.BookingStepPackage,[$.Room]:ke.BookingStepRoom,[$.Meal]:ke.BookingStepMeal,[$.Treatment]:ke.BookingStepTreatment,[$.Activity]:ke.BookingStepActivity,[$.Checkout]:ke.BookingStepCheckoutWithAddons,[$.Restaurant]:ke.BookingStepRestaurant,[$.Waitlist]:ke.BookingStepWaitlist,[$.Addons]:ke.BookingStepCheckoutWithAddons,[$.MyPage]:ke.MyPage}}getContext(){try{let e=new _l,n=this.store.selectSignal(Jt);return e.clientTzOffset=new Date().getTimezoneOffset()*-1,e.currentUrl=window.location.href.split("?")[0].split("#")[0],e.currentLanguage=this.store.selectSignal(ht)(),n()&&(e.currentBasketId=n().id,e.currentBasketHash=n().hash),e.currentView=this.determineCurrentView(),e.currentViewArea=this.mapViewToArea(e.currentView),e.gaContext=this.getGaContext(),e}catch(e){return new _l}}getGaContext(){try{let e=this.getGaClientId(),n=this.getGaSessionId();if(!e&&!n)return null;let o=new Fp;return o.gaClientId=e,o.gaSessionId=n,o}catch(e){return null}}getGaClientId(){let e=this.getCookieValue("_ga");if(!e)return null;let n=e.split(".");if(n.length<4)return null;let o=n.slice(-2);return o.every(r=>/^\d+$/.test(r))?o.join("."):null}getGaSessionId(){let e=this.getCookies();for(let n of e){if(!n.name.startsWith("_ga_"))continue;let o=/(?:^|[.$])s(\d+)(?:[$.]|$)/.exec(n.value);if(o?.[1])return o[1]}return null}getCookieValue(e){return this.getCookies().find(n=>n.name===e)?.value??null}getCookies(){return document.cookie.split(";").map(e=>e.trim()).filter(e=>e.length>0).map(e=>{let n=e.indexOf("=");return n<0?{name:e,value:""}:{name:decodeURIComponent(e.slice(0,n).trim()),value:decodeURIComponent(e.slice(n+1).trim())}})}determineCurrentView(){if(this.webComponentService.isWebComponent())return ke.ResortWebsite;let e=window.location.pathname;switch(!0){case e.startsWith("/mypage/login"):return ke.MyPageLogin;case e.startsWith("/mypage"):return ke.MyPage;case(e.endsWith("/thankyou")||e.endsWith("/confirmed")):return ke.BookingStepConfirmation;case(e.startsWith("/booking")||e.startsWith("/restaurant/booking")):{let o=this.injector.get(Xd,null)?.activeStep()??$.Search;return this.stepToViewMap[o]??ke.Unknown}case(e==="/"||e==="/restaurant"):return ke.Search;default:return ke.Unknown}}mapViewToArea(e){switch(e){case ke.MyPage:case ke.MyPageLogin:return En.MyPage;case ke.ResortWebsite:return En.Webpage;case ke.Search:case ke.BookingStepPackage:case ke.BookingStepRoom:case ke.BookingStepMeal:case ke.BookingStepTreatment:case ke.BookingStepActivity:case ke.BookingStepCheckoutWithAddons:case ke.BookingStepRestaurant:case ke.BookingStepWaitlist:case ke.BookingStepConfirmation:return En.PrivateBooking;default:return En.Unknown}}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=G({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Ka=(()=>{class t{constructor(){this.apiService=f(Gt),this.clientContextService=f(yv),this.realtime=f(Cv),this._activeConversationId=ne(null),this.activeVisitorId=null,this.activeVisitorIdHash=null,this.connectedAndReady=!1,this.chatRealTimeToken="chat-realtime-service",this.realTimeEventsForChat=[Xt.ChatImageAdded,Xt.ConversationActivated,Xt.ChatMessageAdded,Xt.ChatMessageDelta,Xt.ChatMessageUpdated,Xt.AssistantStatusChanged,Xt.ChatMessageAcked,Xt.ConversationClosed,Xt.RateLimitTooManyMessages]}get conversationId(){return this._activeConversationId.asReadonly()}connect(){return z(this,null,function*(){let e=this.clientContextService.getContext(),n=yield mo(this.apiService.post("/api/realtime/frontend/getactiveconversationsession",{clientContext:e},{getOutcome:!0}));if(n?.success&&n.data?.conversationId)this._activeConversationId.set(n.data.conversationId),this.activeVisitorId=n.data.visitorId,this.activeVisitorIdHash=n.data.visitorIdHash;else return{history:null,connected:!1};yield this.realtime.start(this.chatRealTimeToken,{knownVisitorId:this.activeVisitorId,knownVisitorIdHash:this.activeVisitorIdHash}),this.conversationIdChange$=this.realtime.eventsOfType$(Xt.ConversationActivated).pipe(Ze(r=>{let a=r.payload?.conversationId;
59typeof a=="string"&&a.length>0&&this._activeConversationId.set(a)})).subscribe();let o=yield this.joinActiveConversation();return this.connectedAndReady=o,{history:o?n.data.history:null,connected:o}})}disconnect(){return z(this,null,function*(){this.conversationIdChange$?.unsubscribe(),yield this.realtime.stop(this.chatRealTimeToken)})}getActiveConversationHistory(){return z(this,null,function*(){let e=yield mo(this.apiService.get("/api/realtime/frontend/GetActiveConversationHistory",{getOutcome:!0}));return e?.success?e.data:null})}endActiveConversationSession(){return z(this,null,function*(){try{return yield mo(this.apiService.get("/api/realtime/frontend/EndActiveConversationSession")),this._activeConversationId.set(null),this.connectedAndReady=!1,!0}catch(e){return!1}})}joinActiveConversation(){return this.realtime.invokeServerMethod("JoinActiveConversation")}sendMessage(e,n,o){return z(this,null,function*(){if(!this.connectedAndReady)return!1;let r=o??this.clientContextService.getContext(),a={conversationId:this._activeConversationId()??"",text:e,clientMessageId:n,clientContext:r};return this.realtime.invokeServerMethod("SendUserMessage",a)})}submitMessageReaction(e,n,o=null){return z(this,null,function*(){if(!e)return!1;let r={messageId:e,isHelpful:n,feedback:o,clientContext:this.clientContextService.getContext()};try{return yield mo(this.apiService.post("/api/realtime/frontend/SubmitMessageReaction",r,{ignoreErrors:!0,showLoader:!1})),!0}catch(a){return console.warn("RealtimeChatService.submitMessageReaction failed to persist",a),!1}})}eventsForConversation$(){return this.realtime.eventsOfType$(this.realTimeEventsForChat).pipe(lt(e=>e.conversationId===this._activeConversationId()))}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=G({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Cl=(function(t){return t[t.User=1]="User",t[t.Assistant=2]="Assistant",t[t.System=3]="System",t})(Cl||{});var Up=class{static getPropertyNames(){return["messageId","conversationId","role","type","hadError","isStartMessage","translateKey","text","markdown","images","createdAt","correlationId","clientMessageId","isFinal","isLoading","view","area","reaction","id","timestamp"]}};var Fh=(function(t){return t[t.Idle=1]="Idle",t[t.Thinking=2]="Thinking",t[t.Streaming=3]="Streaming",t})(Fh||{});var wA=t=>["no-transform","label-small",t],xA=()=>["no-transform","label-small","chat-feedback-option-button"],PA=()=>["w-100"];function MA(t,i){if(t&1){let e=B();h(0,"span",9),y(1,"translocoStripHtml"),k("click",function(){N(e);let o=u(2);return I(o.onTellUsMore())})("keydown.enter",function(){N(e);let o=u(2);return I(o.onTellUsMore())})("keydown.space",function(o){return N(e),u(2).onTellUsMore(),I(o.preventDefault())}),D(2),y(3,"translocoStripHtml"),T(4,"app-icon",5),_()}if(t&2){let e=u(2);he("aria-label",Dt(O(1,5,"chat.feedback.tell-more"))),p(2),ee(" ",O(3,7,"chat.feedback.tell-more")," "),p(2),b("name",e.showFeedbackOptions()?"chevronUp":"chevronDown")("size",e.IconSize.TINY)}}function OA(t,i){if(t&1){let e=B();h(0,"app-button",12),y(1,"translocoStripHtml"),y(2,"translocoStripHtml"),k("click",function(){let o=N(e).$implicit,r=u(3);return I(r.onFeedbackOption(o))}),_()}if(t&2){let e=i.$implicit,n=u(3);he("aria-label",Dt(O(1,7,e))),b("label",O(2,9,e))("appearance",n.ButtonStyle.SECONDARY)("shape",n.ButtonShape.PILL)("size",n.ButtonSize.XSMALL)("additionalClasses",Pe(11,xA))}}function DA(t,i){if(t&1){let e=B();h(0,"textarea",13),y(1,"translocoStripHtml"),y(2,"translocoStripHtml"),k("ngModelChange",function(o){N(e);let r=u(3);return I(r.setFeedbackText(o))}),_(),un(),h(3,"app-button",14),y(4,"translocoStripHtml"),k("click",function(){N(e);let o=u(3);return I(o.submitCustomFeedback())}),_()}if(t&2){let e=u(3);b("placeholder",Dt(O(1,10,"chat.feedback.placeholder"))),he("aria-label",Dt(O(2,12,"chat.feedback.placeholder"))),b("ngModel",e.feedbackTextFor()),mn(),p(3),b("label",Dt(O(4,14,"chat.input.send")))("appearance",e.ButtonStyle.PRIMARY)("additionalClasses",Pe(16,PA))("disabled",!e.feedbackTextFor().trim().length)}}function NA(t,i){if(t&1){let e=B();h(0,"div",8)(1,"div",10),we(2,OA,3,12,"app-button",11,Xe),h(4,"app-button",12),y(5,"translocoStripHtml"),y(6,"translocoStripHtml"),k("click",function(){N(e);let o=u(2);return I(o.onFeedbackOption("chat.feedback.other"))}),_()(),w(7,DA,5,17),_()}if(t&2){let e=u(2);ue("id",e.feedbackPanelId()),p(2),xe(e.feedbackOptions()),p(2),he("aria-label",Dt(O(5,9,"chat.feedback.other"))),b("label",O(6,11,"chat.feedback.other"))("appearance",e.ButtonStyle.SECONDARY)("shape",e.ButtonShape.PILL)("size",e.ButtonSize.XSMALL)("additionalClasses",Z(13,wA,e.selectedFeedbackOption()==="chat.feedback.other"?"active":"")),p(3),x(e.showCustomFeedback()?7:-1)}}function IA(t,i){if(t&1){let e=B();h(0,"div",1)(1,"span",2),D(2),y(3,"translocoStripHtml"),_(),h(4,"span",3)(5,"button",4),k("click",function(){N(e);let o=u();return I(o.onMessageReaction(!0))}),T(6,"app-icon",5),_(),h(7,"button",6),k("click",function(){N(e);let o=u();return I(o.onMessageReaction(!1))}),T(8,"app-icon",5),_()(),w(9,MA,5,9,"span",7),_(),w(10,NA,8,15,"div",8)}if(t&2){let e=u(),n=fe(0);p(2),V(O(3,13,"chat.helpful.question")),p(3),ye("active",n===!0),b("disabled",n!==null),p(),b("name",n===!0?"thumbUpFilled":"thumbUp")("size",e.IconSize.XTINY),p(),ye("active",n===!1),b("disabled",n!==null),p(),b("name",n===!1?"thumbDownFilled":"thumbDown")("size",e.IconSize.XTINY),p(),x(e.showTellUsMore()?9:-1),p(),x(e.showFeedbackOptions()?10:-1)}}function kA(t,i){if(t&1&&(h(0,"div",0),T(1,"app-icon",5),h(2,"span",15),D(3),y(4,"translocoStripHtml"),_()()),t&2){let e=u(),n=fe(0);p(),b("name",n===!1?"thumbDownFilled":"thumbUpFilled")("size",e.IconSize.XTINY),p(2),ee(" ",O(4,3,n?"chat.feedback.thank-you.positive":"chat.feedback.thank-you.negative")," ")}}var bv=(()=>{class t{constructor(){this.message=v.required(),this.reactionChange=Re(),this.processedService=f(ae),this.chatService=f(Ka),this.feedbackOpen=ne(!1),this.feedbackCustomInputOpen=ne(!1),this.feedbackCustomText=ne(""),this.feedbackPromptActive=ne(!1),this.feedbackPromptTimeout=null,this.feedbackPromptDelayMs=1e4,this.helpfulFeedbackOptions=this.processedService.getInit().aiChat?.helpfulReactions??[],this.nonHelpfulFeedbackOptions=this.processedService.getInit().aiChat?.nonHelpfulReactions??[],this.selectedFeedbackOption=ne(null),this.reaction=A(()=>this.message().reaction),this.LimitHtml=Kr,this.ButtonType=gn,this.ButtonShape=At,this.ButtonSize=ct,this.ButtonStyle=Oe,this.IconSize=Se,this.hasFeedbackAck=A(()=>{let e=this.reaction(),n=e?.isHelpful;return(n===!0||n===!1)&&(!!e?.feedback||!this.feedbackPromptActive())}),this.showTellUsMore=A(()=>{let e=this.reaction(),n=e?.isHelpful;
59return this.feedbackPromptActive()&&(n===!0||n===!1)&&!e?.feedback})}onMessageReaction(e){return z(this,null,function*(){let n=this.message().messageId;if(!n)return;let o=this.reaction(),r=o?.isHelpful===e?null:e,a=j(S({},o??{feedback:"",feedbackIsLangKey:null}),{isHelpful:r});this.reactionChange.emit(a),r===null?(this.clearFeedbackState(),this.clearFeedbackPrompt()):this.openFeedbackPrompt(),this.chatService.submitMessageReaction(n,r,null).catch(s=>{console.warn("submitMessageReaction failed",s)})})}onTellUsMore(){let e=!this.feedbackOpen();this.clearFeedbackPromptTimeout(),this.feedbackOpen.update(n=>!n),e&&this.scrollFeedbackPanelIntoViewIfNeeded()}feedbackPanelId(){return`feedback-panel-${this.message().messageId}`}showFeedbackOptions(){return this.feedbackOpen()}showCustomFeedback(){return this.feedbackCustomInputOpen()}feedbackTextFor(){return this.feedbackCustomText()}setFeedbackText(e){this.feedbackCustomText.set(e)}feedbackOptions(){return this.reaction()?.isHelpful===!0?this.helpfulFeedbackOptions:this.nonHelpfulFeedbackOptions}onFeedbackOption(e){if(this.clearFeedbackPromptTimeout(),e==="Other"||e==="chat.feedback.other"){this.selectedFeedbackOption.set(e),this.feedbackCustomInputOpen.set(!0),this.feedbackCustomText.set(""),this.scrollFeedbackPanelIntoViewIfNeeded();return}this.submitMessageFeedback(e)}submitCustomFeedback(){let e=this.feedbackCustomText().trim();e&&(this.submitMessageFeedback(e),this.selectedFeedbackOption.set(null),this.feedbackCustomInputOpen.set(!1),this.feedbackOpen.set(!1))}submitMessageFeedback(e){let n=this.message().messageId;if(!n)return;let o=e.trim();if(!o)return;let r=j(S({},this.reaction()??{isHelpful:null,feedbackIsLangKey:null}),{feedback:o});this.reactionChange.emit(r),this.clearFeedbackState(),this.clearFeedbackPrompt(),this.chatService.submitMessageReaction(n,r.isHelpful??null,o).catch(a=>{console.warn("submitMessageReaction failed",a)})}clearFeedbackState(){this.feedbackOpen.set(!1),this.feedbackCustomInputOpen.set(!1),this.feedbackCustomText.set(""),this.selectedFeedbackOption.set(null)}openFeedbackPrompt(){this.feedbackPromptActive.set(!0),this.clearFeedbackPromptTimeout(),this.feedbackPromptTimeout=setTimeout(()=>{let e=this.reaction(),n=e?.isHelpful!==null&&e?.isHelpful!==void 0,o=!!e?.feedback,r=this.feedbackOpen();!n||o||r||(this.clearFeedbackState(),this.clearFeedbackPrompt())},this.feedbackPromptDelayMs)}clearFeedbackPromptTimeout(){this.feedbackPromptTimeout&&(clearTimeout(this.feedbackPromptTimeout),this.feedbackPromptTimeout=null)}clearFeedbackPrompt(){this.clearFeedbackPromptTimeout(),this.feedbackPromptActive.set(!1)}scrollFeedbackPanelIntoViewIfNeeded(){let e=this.feedbackPanelId();requestAnimationFrame(()=>{let n=document.getElementById(e);n&&n.scrollIntoView({behavior:"smooth",block:"nearest"})})}ngOnDestroy(){this.clearFeedbackPromptTimeout()}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=H({type:t,selectors:[["app-chat-message-reaction"]],inputs:{message:[1,"message"]},outputs:{reactionChange:"reactionChange"},decls:3,vars:2,consts:[[1,"feedback-acknowledgement"],[1,"chat-reaction-controls"],[1,"chat-reaction-label","body-small"],[1,"reaction-thumb-group"],["type","button","aria-label","Helpful",1,"reaction-button",3,"click","disabled"],[3,"name","size"],["type","button","aria-label","Not helpful",1,"reaction-button",3,"click","disabled"],["role","button","tabindex","0",1,"chat-reaction-label","chat-reaction-label-action","body-small",3,"aria-label"],[1,"feedback"],["role","button","tabindex","0",1,"chat-reaction-label","chat-reaction-label-action","body-small",3,"click","keydown.enter","keydown.space","aria-label"],[1,"feedback-option-list"],[3,"label","appearance","shape","size","additionalClasses","aria-label"],[3,"click","label","appearance","shape","size","additionalClasses","aria-label"],["maxlength","200",1,"feedback-textarea","body-medium",3,"ngModelChange","ngModel","placeholder","aria-label"],[3,"click","label","appearance","additionalClasses","disabled"],[1,"body-small"]],template:function(n,o){n&1&&(qe(0),w(1,IA,11,15)(2,kA,5,5,"div",0)),n&2&&(Je(o.reaction()?.isHelpful??null),p(),x(o.hasFeedbackAck()?2:1))},dependencies:[ti,Bi,ei,pg,Jr,De,Fe,Y],styles:[`.display-large[_ng
59content-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:3.25em;line-height:1.125em;font-weight:700}.display-medium[_ngcontent-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:2.875em;line-height:1.1em;font-weight:700}.display-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:2.5em;line-height:1.125em;font-weight:700}.headline-large[_ngcontent-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:2.25em;line-height:1.14em;font-weight:700}.headline-medium[_ngcontent-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:1.875em;line-height:1.1em;font-weight:700}.headline-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:1.5em;line-height:1.13125em;font-weight:700}.title-large[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:1.5em;line-height:1.1875em;font-weight:600}.title-medium[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:1.25em;line-height:1.1875em;font-weight:600}.title-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:1em;line-height:1em;font-weight:600}.label-large[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:1em;line-height:1.1875em;font-weight:600}.label-medium[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.875em;line-height:1.3em;font-weight:600}.label-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.75em;line-height:.875em;font-weight:600}.label-extra-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.625em;line-height:1.2em;font-weight:600}.body-large[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:1em;line-height:1.1875em;font-weight:400}
59.body-medium[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.875em;line-height:1.1em;font-weight:400}.body-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.75em;line-height:1.125em;font-weight:400}.body-extra-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.625em;line-height:.75em;font-weight:400}.foldAnimation[_ngcontent-%COMP%]{display:grid;overflow:hidden;transition:grid-template-rows .3s ease-in-out,opacity .3s ease-in-out}.foldAnimation[_ngcontent-%COMP%] > .foldAnimationContent[_ngcontent-%COMP%]{overflow:hidden}.foldAnimationHide[_ngcontent-%COMP%]{grid-template-rows:0fr;opacity:0}.foldAnimationShow[_ngcontent-%COMP%]{grid-template-rows:1fr;opacity:1}.foldAnimationToHide[_ngcontent-%COMP%]{grid-template-rows:0fr;opacity:0}.fadeAnimation[_ngcontent-%COMP%]{transition:opacity .5s ease-in-out}.fadeAnimationHide[_ngcontent-%COMP%]{opacity:0}.fadeAnimationShow[_ngcontent-%COMP%]{opacity:1}.fadeAnimationToHide[_ngcontent-%COMP%]{opacity:0}.slideUpAnimation[_ngcontent-%COMP%]{--%NS%slideup-translate-x: none;position:fixed;bottom:0;transition:transform .4s ease-out,opacity .4s ease-out;will-change:transform}.slideUpAnimationHide[_ngcontent-%COMP%]{transform:translate(var(--%NS%slideup-translate-x)) translateY(100vh);opacity:0}.slideUpAnimationShow[_ngcontent-%COMP%]{transform:translate(var(--%NS%slideup-translate-x)) translateY(0);opacity:1}.slideUpAnimationToHide[_ngcontent-%COMP%]{transform:translate(var(--%NS%slideup-translate-x)) translateY(100vh);opacity:0}.slideInAnimation[_ngcontent-%COMP%]{transition:transform .4s ease-out,opacity .4s ease-out;will-change:transform}.slideInAnimationHide[_ngcontent-%COMP%]{transform:translate(100%);opacity:0}.slideInAnimationShow[_ngcontent-%COMP%]{transform:translate(0);opacity:1}.slideInAnimationToHide[_ngcontent-%COMP%]{transform:translate(100%);opacity:0}@media(max-width:575.98px){.slideInAnimationHide[_ngcontent-%COMP%]{transform:translateY(100%);opacity:0}.slideInAnimationShow[_ngcontent-%COMP%]{transform:translateY(0);opacity:1}.slideInAnimationToHide[_ngcontent-%COMP%]{transform:translateY(100%);opacity:0}}.modalScaleAnimation[_ngcontent-%COMP%]{transition:transform .3s ease-in-out,opacity .3s ease-in-out;will-change:transform}.modalScaleAnimationHide[_ngcontent-%COMP%]{transform:scale(.9);opacity:0}.modalScaleAnimationShow[_ngcontent-%COMP%]{transform:scale(1);opacity:1}.modalScaleAnimationToHide[_ngcontent-%COMP%]{transform:scale(.9);opacity:0} .disable-animations .foldAnimation, .disable-animations .fadeAnimation, .disable-animations .slideUpAnimation, .disable-animations .slideInAnimation, .disable-animations .modalScaleAnimation{transition-duration:0ms!important}.chat-reaction-controls[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;gap:.375em;color:var(--%NS%secondary-text-color)}.chat-reaction-label[_ngcontent-%COMP%]{display:inline-flex;align-items:center;line-height:1}.chat-reaction-label-action[_ngcontent-%COMP%]{gap:.25em;cursor:pointer;color:var(--%NS%secondary-text-color)}.reaction-thumb-group[_ngcontent-%COMP%]{display:inline-flex}.reaction-button[_ngcontent-%COMP%]{border:none;background-color:transparent;cursor:pointer;color:var(--%NS%secondary-text-color);min-width:1.75em;min-height:1.75em;display:inline-flex;justify-content:center;align-items:center}.reaction-button[_ngcontent-%COMP%]:hover{background-color:var(--%NS%alternate-background-color);border-radius:var(--%NS%radius-circle)}.reaction-button[_ngcontent-%COMP%]:disabled:not(.active){cursor:default;opacity:.35}.reaction-button.active[_ngcontent-%COMP%]:disabled{cursor:default;opacity:1}.reaction-button[_ngcontent-%COMP%]:disabled:hover{background-color:transparent}.feedback[_ngcontent-%COMP%]{max-width:100%;padding:.75em;color:var(--%NS%modal-color);border:1px solid var(--%NS%border-color);border-radius:var(--%NS%radius-large);overflow-wrap:break-word}.feedback[_ngcontent-%COMP%] p{white-space:pre-line;line-height:1.2em}.feedback[_ngcontent-%COMP%] p:empty{display:none}.feedback[_ngcontent-%COMP%] p:last-child{margin:0}.feedback[_ngcontent-%COMP%] ul li:not(:last-child){margin-bottom:.5em}.feedback-option-list[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:flex-start;align-content:flex-start;gap:.5em;align-self:stretch}.feedback-textarea[_ngcontent-%COMP%]{width:100%;min-height:5.25em;padding:.625em .75em;margin-top:.5em;border:1px solid var(--%NS%border-color);background:var(--%NS%form-background-color);color:var(--%NS%form-text-color);resize:none}.chat-feedback-option-button[_ngcontent-%COMP%]{display:flex;padding:4px 6px;align-items:center}.feedback-acknowledgement[_ngcontent-%COMP%]{display:inline-flex;color:var(--%NS%secondary-text-color);gap:.375em;margin-top:.375em} 60/*# sourceMappingURL=chat-message-reaction.component.css.map */`],changeDetection:1})}}return t})();var TA=["chatBody"],RA=["chatInput"],EA=(t,i)=>({iconSizeMobile:t,iconSizeDesktop:i,cssClass:"custom-avatar"}),Hp=t=>({chatAgentName:t}),AA=()=>["color-default"],LA=t=>({iconSize:t,cssClass:"custom-avatar small"}),zA=t=>({"is-error":t}),Sv=t=>({$implicit:t}),BA=(t,i)=>i.messageId;function FA(t,i){t&1&&T(0,"p",15),t&2&&b("innerHTML",i,Mt)}function UA(t,i){if(t&1&&(h(0,"div",23)(1,"div",24),T(2,"app-icon",25),_()(),h(3,"div",26)(4,"p",27),D(5),y(6,"translocoStripHtml"),_()()),t&2){let e=u().$implicit,n=u(3);
60p(2),b("size",n.IconSize.SMALL),p(3),V(O(6,2,e.translateKey))}}function HA(t,i){t&1&&Et(0)}function VA(t,i){if(t&1&&(h(0,"span",29),D(1),y(2,"shortTime"),_()),t&2){let e=u(2).$implicit;p(),V(O(2,1,e.createdAt))}}function qA(t,i){t&1&&Et(0)}function jA(t,i){if(t&1&&(h(0,"p",32),D(1),y(2,"translocoStripHtml"),_()),t&2){let e=u(5);p(),ee(" ",W(2,1,"chat.start-message-info",Z(4,Hp,e.aiChatAgentName))," ")}}function $A(t,i){if(t&1){let e=B();h(0,"app-chat-message-reaction",34),k("reactionChange",function(o){N(e);let r=u(2).$implicit,a=u(3);return I(a.patchMessageReaction(r.messageId,o))}),_()}if(t&2){let e=u(2).$implicit;b("message",e)}}function WA(t,i){if(t&1&&(h(0,"div",28),bt(1,HA,1,0,"ng-container",6),w(2,VA,3,3,"span",29),_(),h(3,"div",30)(4,"div",31),bt(5,qA,1,0,"ng-container",6),_(),w(6,jA,3,6,"p",32),w(7,$A,1,1,"app-chat-message-reaction",33),_()),t&2){let e=u(),n=e.$implicit,o=e.$index,r=e.$count;u();let a=Qe(15);u();let s=Qe(9),l=u();p(),b("ngTemplateOutlet",s)("ngTemplateOutletContext",Z(8,LA,l.IconSize.XLARGE)),p(),x(n.createdAt?2:-1),p(2),b("ngClass",Z(10,zA,n.hadError)),p(),b("ngTemplateOutlet",a)("ngTemplateOutletContext",Z(12,Sv,n)),p(),x(n.isStartMessage?6:-1),p(),x(l.reactionsEnabled()&&o===r-1&&n.role===l.ChatRole.Assistant&&!n.isLoading&&!n.hadError?7:-1)}}function GA(t,i){if(t&1&&(h(0,"span",36),D(1),_()),t&2){let e=u(5);p(),V(e.userInitials())}}function YA(t,i){if(t&1&&T(0,"app-icon",37),t&2){let e=u(5);b("size",e.IconSize.SMALL)}}function KA(t,i){if(t&1&&(h(0,"span",29),D(1),y(2,"shortTime"),_()),t&2){let e=u(2).$implicit;p(),V(O(2,1,e.createdAt))}}function ZA(t,i){t&1&&Et(0)}function QA(t,i){if(t&1&&(h(0,"div",28)(1,"div",35),w(2,GA,2,1,"span",36)(3,YA,1,1,"app-icon",37),_(),w(4,KA,3,3,"span",29),_(),h(5,"div",38),bt(6,ZA,1,0,"ng-container",6),_()),t&2){let e=u().$implicit;u();let n=Qe(15),o=u(2);p(2),x(o.loyaltyUser()?2:3),p(2),x(e.createdAt?4:-1),p(2),b("ngTemplateOutlet",n)("ngTemplateOutletContext",Z(4,Sv,e))}}function JA(t,i){if(t&1&&(h(0,"div",22),w(1,UA,7,4)(2,WA,8,14)(3,QA,7,6),_()),t&2){let e=i.$implicit,n=u(3);ye("user-message",e.role===n.ChatRole.User),p(),x(e.isLoading?1:e.role===n.ChatRole.Assistant||e.role===n.ChatRole.System?2:3)}}function XA(t,i){if(t&1&&T(0,"span",39),t&2){let e=u().$implicit;b("appMarkdownRender",e.markdown)("openLinksInNewTab",!0)}}function eL(t,i){if(t&1&&(T(0,"span",40),y(1,"translocoStripHtml")),t&2){let e=u().$implicit,n=u(3);b("innerHTML",Wr(1,1,e.translateKey,Z(6,Hp,n.aiChatAgentName),void 0,n.LimitHtml.MINIMUM),Mt)}}function tL(t,i){if(t&1&&(h(0,"p",27),D(1),_()),t&2){let e=u().$implicit;p(),V(e.text)}}function nL(t,i){if(t&1&&w(0,XA,1,2,"span",39)(1,eL,2,8,"span",40)(2,tL,2,1,"p",27),t&2){let e=i.$implicit;x(e.markdown?0:e.translateKey?1:2)}}function iL(t,i){t&1&&(h(0,"p",21),D(1,"* The chat is available because you are logged in to Backoffice."),_())}function oL(t,i){if(t&1){let e=B();h(0,"div",9),k("click",function(o){N(e);let r=u(2);return I(r.closeChat(o))}),_(),h(1,"div",10)(2,"div",11)(3,"div",12)(4,"h3",13),D(5),y(6,"translocoStripHtml"),_(),h(7,"app-button",14),k("click",function(o){N(e);let r=u(2);return I(r.closeChat(o))}),_()(),w(8,FA,1,1,"p",15),y(9,"translocoStripHtml"),_(),h(10,"div",16,1),k("click",function(o){N(e);let r=u(2);return I(r.handleChatBodyClick(o))}),we(12,JA,4,3,"div",17,BA),_(),bt(14,nL,3,1,"ng-template",null,2,mt),h(16,"div",18)(17,"div")(18,"textarea",19,3),y(20,"translocoStripHtml"),y(21,"translocoStripHtml"),fn("ngModelChange",function(o){N(e);let r=u(2);return hn(r.inputValue,o)||(r.inputValue=o),I(o)}),k("keydown",function(o){N(e);let r=u(2);return I(r.handleKeydown(o))}),_(),un(),h(22,"app-button",20),y(23,"translocoStripHtml"),k("click",function(){N(e);let o=u(2);return I(o.sendMessage())}),_()(),w(24,iL,2,0,"p",21),_()()}if(t&2){let e,n=u(2);p(5),ee(" ",W(6,16,"chat.title",Z(30,Hp,n.aiChatAgentName))," "),p(2),b("appearance",n.ButtonStyle.LINK)("icon","chevronDown")("iconSize",n.IconSize.SMALL)("additionalClasses",Pe(32,AA)),p(),x((e=Wr(9,19,"chat.introText",Z(33,Hp,n.aiChatAgentName),void 0,n.LimitHtml.MINIMUM))?8:-1,e),p(4),xe(n.messages()),p(6),b("placeholder",Dt(O(20,24,"chat.input.placeholder"))),he("aria-label",Dt(O(21,26,"chat.input.placeholder"))),Pn("ngModel",n.inputValue),mn(),p(4),b("label",Dt(O(23,28,"chat.input.send")))("appearance",n.ButtonStyle.PRIMARY)("disabled",!n.inputValue().trim().length||n.isSendingMessage()||n.isWaitingForResponse()),p(2),x(n.showForcedEnabled()?24:-1)}}function rL(t,i){t&1&&Et(0)}function aL(t,i){t&1&&(h(0,"div",8),y(1,"translocoStripHtml"),h(2,"span",36),D(3,"1"),_(
60)()),t&2&&he("aria-label",Dt(O(1,2,"chat.notification.badge.aria-label")))}function sL(t,i){if(t&1&&T(0,"img",42),t&2){let e=u().cssClass,n=u(2);Ci(e),b("src",n.aiChatAgentIconUrl,ut)}}function lL(t,i){if(t&1&&T(0,"app-icon",43),t&2){let e=u(2).iconSize;b("size",e)}}function cL(t,i){if(t&1&&(h(0,"div",44),T(1,"app-icon",43),_()),t&2){let e=u(2).iconSizeMobile;p(),b("size",e)}}function dL(t,i){if(t&1&&(h(0,"div",45),T(1,"app-icon",43),_()),t&2){let e=u(2).iconSizeDesktop;p(),b("size",e)}}function pL(t,i){if(t&1&&(w(0,lL,1,1,"app-icon",43),w(1,cL,2,1,"div",44),w(2,dL,2,1,"div",45)),t&2){let e=u(),n=e.iconSize,o=e.iconSizeMobile,r=e.iconSizeDesktop;x(n?0:-1),p(),x(o?1:-1),p(),x(r?2:-1)}}function uL(t,i){if(t&1&&w(0,sL,1,3,"img",41)(1,pL,3,3),t&2){let e=u(2);x(e.aiChatAgentIconUrl?0:1)}}function mL(t,i){if(t&1){let e=B();h(0,"div",4),w(1,oL,25,35),h(2,"button",5),k("click",function(){N(e);let o=u();return I(o.toggleOpen())})("keydown.enter",function(){N(e);let o=u();return I(o.toggleOpen())}),bt(3,rL,1,0,"ng-container",6),h(4,"span",7),D(5),y(6,"translocoStripHtml"),_(),w(7,aL,4,4,"div",8),_()(),bt(8,uL,2,1,"ng-template",null,0,mt)}if(t&2){let e=Qe(9),n=u();ye("below-sidepanels",n.hasSidePanels())("has-basket",!!n.basket())("has-confirmation",n.isCheckout())("left",n.position()==="left"),p(),x(n.isOpen()?1:-1),p(),Ci(n.isOpen()?"chat-fab chat-open":"chat-fab"),ue("aria-expanded",n.isOpen())("aria-label",n.isOpen()?"Close chat":"Open chat"),p(),b("ngTemplateOutlet",e)("ngTemplateOutletContext",St(21,EA,n.IconSize.LARGE,n.IconSize.XXLARGE)),p(),ye("collapsed",n.isFabCollapsed()),p(),V(O(6,19,`chat.${n.isOpen()?"hide.":""}button.label`)),p(2),x(n.showNotificationBadge()?7:-1)}}var vv=(()=>{class t extends _e{onWindowScroll(e){let n=e.target,o=n.documentElement.scrollTop||n.body.scrollTop||0;this.isFabCollapsed.set(o>50)}constructor(){super(),this.store=f(oe),this.chatService=f(Ka),this.processedService=f(ae),this.trackingService=f($i),this.modalService=f(bd),this.viewportService=f($d),this.spennService=f(Ma),this.webcomponentService=f(Pa),this.document=f(xn),this.renderer=f(Il),this.position=v("right"),this.aiChatAgentName=this.processedService.getInit().aiChat?.agentName||"Scout",this.aiChatAgentIconUrl=this.processedService.getInit().aiChat?.agentIconUrl,this.forceEnabled=this.processedService.getVariables()?.aiChatAlwaysEnabled||!1,this.reactionsEnabled=A(()=>this.processedService.getInit().aiChat?.reactionsEnabled!==!1),this.inputValue=ne(""),this.isOpen=ne(!1),this.isSendingMessage=ne(!1),this.isWaitingForResponse=ne(!1),this.originalBodyOverflow=null,this.overflowSetByChat=!1,this.loyaltyUser=Me(this.store.select(yi)),this.conversationId=ne(null),this.messages=ne([]),this.basket=Me(this.store.select(Jt)),this.nextStep=this.store.selectSignal(Eo),this.isCheckout=A(()=>this.nextStep()===$.Checkout),this.disconnectTimeout=null,this.inactivityTimeout=null,this.waitingForResponseResetTimeout=null,this.waitingForResponseResetSeq=0,this.unreadMessage=this.store.selectSignal(u_),this.isChatStarted=this.store.selectSignal(m_),this.firstVisitDelayPassed=this.store.selectSignal(h_),this.showNotificationBadge=A(()=>this.isOpen()?!1:!!(!this.isChatStarted()&&this.firstVisitDelayPassed()||this.unreadMessage())),this.isFabCollapsed=ne(!1),this.hasSidePanels=this.modalService.hasSidePanels,this.className=A(()=>{let e=["ai-chat-wrapper"];return this.viewportService.isMobile()&&this.basket()&&e.push("above-basket"),this.hasSidePanels()&&e.push("below-sidepanels"),this.basket()&&e.push("has-basket"),this.position()==="left"&&e.push("left"),e.join(" ")}),this.chatBody=We("chatBody"),this.ChatRole=Cl,this.LimitHtml=Kr,this.ButtonType=gn,this.ButtonShape=At,this.ButtonSize=ct,this.ButtonStyle=Oe,this.IconSize=Se,this.inputRef=We("chatInput"),this.userInitials=A(()=>{let e=this.loyaltyUser();if(e){let n=e.firstName?.charAt(0)||"",o=e.lastName?.charAt(0)||"";return(n+o).toUpperCase()||""}return""}),this.isEnabled=A(()=>this.processedService.getInit().aiChat?.enabled?this.webcomponentService.isWebComponent()||this.processedService.getInit().aiChat?.enabledInEngine?!0:this.forceEnabled:!1),this.show
60ForcedEnabled=A(()=>this.forceEnabled&&!(this.webcomponentService.isWebComponent()||this.processedService.getInit().aiChat?.enabledInEngine)),this.chatEventSubscription=null,!this.isChatStarted()&&!this.firstVisitDelayPassed()&&setTimeout(()=>{this.store.dispatch(sc({passed:!0}))},3e3),this.spennService.fetchUser().then(e=>{e||this.spennService.fedcmLogin()}),et(()=>{if(this.viewportService.isMobile()&&this.isOpen())return this.document.body.style.overflow!=="hidden"&&(this.originalBodyOverflow=this.document.body.style.overflow||null,this.renderer.setStyle(this.document.body,"overflow","hidden"),this.overflowSetByChat=!0),this.resetOverflow;this.isOpen()&&this.resetOverflow()}),$f(()=>{this.messages().length>0&&this.scrollToBottom()})}initializeChat(){return z(this,null,function*(){yield this.chatService.connect().then(({history:e})=>{let n=this.chatService.conversationId();n?(this.conversationId.set(n),this.conversationId()&&this.store.dispatch(us({started:!0})),e&&e.length>0&&this.messages.set(e)):this.store.dispatch(us({started:!1}))}).catch(e=>console.error("Failed to connect chat",e)),this.chatEventSubscription&&this.chatEventSubscription.unsubscribe(),this.chatEventSubscription=this.chatService.eventsForConversation$().subscribe(e=>this.handleIncomingChatEvent(e))})}handleIncomingChatEvent(e){switch(e.type){case Xt.ChatMessageAdded:this.handleChatMessageAdded(e.payload);break;case Xt.ChatMessageDelta:case Xt.ChatMessageUpdated:this.handleChatMessageUpdated(e.payload);break;case Xt.RateLimitTooManyMessages:this.handleRateLimitTooManyMessages(e.payload);break;case Xt.ChatMessageAcked:this.handleChatMessageAcked(e.payload);break;case Xt.AssistantStatusChanged:this.handleAssistantStatusChanged(e.payload);break;default:break}this.startInactivityTimer()}handleChatMessageAdded(e){let n=e;this.messages.update(o=>{let r=o.find(a=>a.messageId&&a.messageId===n.messageId);return r?(Object.assign(r,n),o):[...o,n]})}handleChatMessageUpdated(e){let n=e;this.messages.update(o=>o.map(r=>r.messageId&&r.messageId===n.messageId?(!r.isFinal&&n.isFinal&&n.role===Cl.Assistant&&!this.isOpen()&&this.store.dispatch(ps({unread:!0})),n):r))}handleRateLimitTooManyMessages(e){let n=e;this.messages.update(o=>o.some(a=>a.messageId&&a.messageId===n.messageId)?o:[...o,n])}handleChatMessageAcked(e){this.messages.update(n=>{let o=n.find(r=>r.clientMessageId===e.clientMessageId);return o?(o.messageId=e.messageId,[...n]):n})}handleAssistantStatusChanged(e){let n=e.state!==Fh.Idle;this.isWaitingForResponse.set(n),n?this.scheduleWaitingForResponseAutoReset():this.clearWaitingForResponseAutoReset()}scheduleWaitingForResponseAutoReset(){this.waitingForResponseResetSeq+=1;let e=this.waitingForResponseResetSeq;this.waitingForResponseResetTimeout&&(clearTimeout(this.waitingForResponseResetTimeout),this.waitingForResponseResetTimeout=null),this.waitingForResponseResetTimeout=setTimeout(()=>{e===this.waitingForResponseResetSeq&&this.isWaitingForResponse.set(!1)},2e4)}clearWaitingForResponseAutoReset(){this.waitingForResponseResetSeq+=1,this.waitingForResponseResetTimeout&&(clearTimeout(this.waitingForResponseResetTimeout),this.waitingForResponseResetTimeout=null)}toggleOpen(){return z(this,null,function*(){this.isOpen.set(!this.isOpen()),this.isOpen()?(this.clearDisconnectTimer(),this.startInactivityTimer(),this.modalService.closeAllSidePanels(),setTimeout(()=>{this.inputRef()?.nativeElement.focus()},0),this.store.dispatch(ps({unread:!1})),this.scrollToBottom(),this.conversationId()===null&&(yield this.initializeChat()),this.trackingService.track(ce.ChatOpened,{conversationId:this.conversationId()})):(this.resetOverflow(),this.stopInactivityTimer(),this.startDisconnectTimer(),this.trackingService.track(ce.ChatClosed,{conversationId:this.conversationId()}))})}closeChat(e){e.stopPropagation(),this.toggleOpen()}patchMessageReaction(e,n){e&&this.messages.update(o=>o.map(r=>r.messageId===e?j(S({},r),{reaction:n}):r))}startDisconnectTimer(){this.clearDisconnectTimer(),this.disconnectTimeout=setTimeout(()=>{this.chatService.disconnect(),this.conversationId.set(null)},6e4)}clearDisconnectTimer(){this.disconnectTimeout&&(clearTimeout(this.disconnectTimeout),this.disconnectTimeout=null)}startInactivityTimer(){this.stopInactivityTimer(),this.inactivityTimeout=setTimeout(()=>{this.chatService.disconnect(),this.conversationId.set(null)},18e4)}stopInactivityTimer(){this.inactivityTimeout&&(clearTimeout(this.inactivityTimeout),this.inactivityTimeout=null)}handleKeydown(e){e.key==="Enter"&&!e.shiftKey&&(e.preventDefault(),(!this.isSendingMessage()||this.isWaitingForResponse())&&this.sendMessage())}handleChatBodyClick(e){let o=e.target?.closest("a"),r=!!o?.closest(".assistant-rich-text");if(o&&r){let a=o.href||o.getAttribute("href")||"",s=(o.textContent||"").trim();this.trackingService.track(ce.ChatLinkClicked,{conversationId:this.conversationId(),href:a,linkText:s})}}sendMessage(){return z(this,null,function*(){if(!(this.isSendingMessage()||this.isWaitingForResponse()))try{this.isSendingMessage.set(!0),this.conversationId()===null&&(yield this.initializeChat());let e=this.inputValue().trim();if(!e)return;if(!this.conversationId()){console.warn("No active chat session yet");return}
60let o=Date.now().toString(),r=new Up;r.clientMessageId=o,r.role=Cl.User,r.text=e,r.createdAt=new Date,this.messages.update(a=>[...a,r]),this.inputValue.set(""),this.scrollToBottom(),this.startInactivityTimer(),yield this.chatService.sendMessage(e,o).then(a=>{a?this.trackingService.track(ce.ChatMessage,{conversationId:this.conversationId()}):(console.error("Failed to send message"),r.hadError=!0)})}finally{this.isSendingMessage.set(!1)}})}resetOverflow(){this.overflowSetByChat&&(this.renderer.setStyle(this.document.body,"overflow",this.originalBodyOverflow||""),this.overflowSetByChat=!1)}scrollToBottom(){setTimeout(()=>{let e=this.chatBody();e&&(e.nativeElement.scrollTop=e.nativeElement.scrollHeight)},50)}ngOnDestroy(){this.resetOverflow(),this.clearDisconnectTimer(),this.stopInactivityTimer(),this.clearWaitingForResponseAutoReset(),this.chatService.disconnect()}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=H({type:t,selectors:[["app-chat"]],viewQuery:function(n,o){n&1&&Ot(o.chatBody,TA,5)(o.inputRef,RA,5),n&2&&xt(2)},hostBindings:function(n,o){n&1&&k("scroll",function(a){return o.onWindowScroll(a)},Nl)},inputs:{position:[1,"position"]},features:[re],decls:1,vars:1,consts:[["aiAvatar",""],["chatBody",""],["chatmessagecontent",""],["chatInput",""],[1,"ai-chat-wrapper"],["tabindex","0","aria-haspopup","dialog",3,"click","keydown.enter"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"fab-text"],[1,"notification-badge",3,"aria-label"],[1,"ai-chat-overlay",3,"click"],["role","dialog","aria-label","Chat window","aria-modal","false","appAnimateStart","fadeAnimationShow",1,"ai-chat-container","fadeAnimation","fadeAnimationHide"],[1,"ai-chat-header"],[1,"header-top"],["id","chat-title","data-qa","ai-chat-title",1,"header-title"],["aria-label","Minimize chat",3,"click","appearance","icon","iconSize","additionalClasses"],["data-qa","ai-chat-welcome-message",1,"body-small","m-0",3,"innerHTML"],["role","log","aria-live","polite","aria-relevant","additions",1,"ai-chat-body",3,"click"],[1,"message-row",3,"user-message"],[1,"ai-chat-footer"],["spellcheck","false","data-qa","ai-chat-message-input",1,"chat-input-field","body-medium",3,"ngModelChange","keydown","ngModel","placeholder","aria-label"],["data-qa","ai-chat-send-message-button",3,"click","label","appearance","disabled"],[1,"backoffice-notice"],[1,"message-row"],[1,"avatar-container","loading-message"],[1,"avatar","ai-thinking"],["name","loadingDots",3,"size"],[1,"chat-bubble"],[1,"body-medium"],[1,"avatar-container"],[1,"timestamp","body-extra-small"],[1,"message-content"],["data-qa","ai-chat-ai-bubble",1,"chat-bubble",3,"ngClass"],[1,"chat-start-info","body-small","mt-2"],[3,"message"],[3,"reactionChange","message"],[1,"avatar","user-avatar"],[1,"label-small"],["name","person",3,"size"],["data-qa","ai-chat-user-bubble",1,"chat-bubble","user-bubble"],[1,"assistant-rich-text","body-medium",3,"appMarkdownRender","openLinksInNewTab"],[1,"body-medium",3,"innerHTML"],["alt","",3,"src","class"],["alt","",3,"src"],["name","scout",3,"size"],[1,"avatar-mobile-only","d-flex","align-items-center","d-sm-none"],[1,"avatar-tablet-and-above","d-none","d-sm-flex","align-items-center"]],template:function(n,o){n&1&&w(0,mL,10,24),n&2&&x(o.isEnabled()?0:-1)},dependencies:[st,bn,Jn,De,Fe,ti,Bi,ei,Jr,uv,Sn,bv,wd,Y],styles:[`.display-large[_ngcontent-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:3.25em;line-height:1.125em;font-weight:700}
60.display-medium[_ngcontent-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:2.875em;line-height:1.1em;font-weight:700}.display-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:2.5em;line-height:1.125em;font-weight:700}.headline-large[_ngcontent-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:2.25em;line-height:1.14em;font-weight:700}.headline-medium[_ngcontent-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:1.875em;line-height:1.1em;font-weight:700}.headline-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-heading-font);font-size:1.5em;line-height:1.13125em;font-weight:700}.title-large[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:1.5em;line-height:1.1875em;font-weight:600}.title-medium[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:1.25em;line-height:1.1875em;font-weight:600}.title-small[_ngcontent-%COMP%], .chat-fab[_ngcontent-%COMP%] .fab-text[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:1em;line-height:1em;font-weight:600}.label-large[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:1em;line-height:1.1875em;font-weight:600}.label-medium[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.875em;line-height:1.3em;font-weight:600}.label-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.75em;line-height:.875em;font-weight:600}.label-extra-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.625em;line-height:1.2em;font-weight:600}.body-large[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:1em;line-height:1.1875em;font-weight:400}
60.body-medium[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.875em;line-height:1.1em;font-weight:400}.body-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.75em;line-height:1.125em;font-weight:400}.body-extra-small[_ngcontent-%COMP%]{font-family:var(--%NS%default-text-font);font-size:.625em;line-height:.75em;font-weight:400}.foldAnimation[_ngcontent-%COMP%]{display:grid;overflow:hidden;transition:grid-template-rows .3s ease-in-out,opacity .3s ease-in-out}.foldAnimation[_ngcontent-%COMP%] > .foldAnimationContent[_ngcontent-%COMP%]{overflow:hidden}.foldAnimationHide[_ngcontent-%COMP%]{grid-template-rows:0fr;opacity:0}.foldAnimationShow[_ngcontent-%COMP%]{grid-template-rows:1fr;opacity:1}.foldAnimationToHide[_ngcontent-%COMP%]{grid-template-rows:0fr;opacity:0}.fadeAnimation[_ngcontent-%COMP%]{transition:opacity .5s ease-in-out}.fadeAnimationHide[_ngcontent-%COMP%]{opacity:0}.fadeAnimationShow[_ngcontent-%COMP%]{opacity:1}.fadeAnimationToHide[_ngcontent-%COMP%]{opacity:0}.slideUpAnimation[_ngcontent-%COMP%]{--%NS%slideup-translate-x: none;position:fixed;bottom:0;transition:transform .4s ease-out,opacity .4s ease-out;will-change:transform}.slideUpAnimationHide[_ngcontent-%COMP%]{transform:translate(var(--%NS%slideup-translate-x)) translateY(100vh);opacity:0}.slideUpAnimationShow[_ngcontent-%COMP%]{transform:translate(var(--%NS%slideup-translate-x)) translateY(0);opacity:1}.slideUpAnimationToHide[_ngcontent-%COMP%]{transform:translate(var(--%NS%slideup-translate-x)) translateY(100vh);opacity:0}.slideInAnimation[_ngcontent-%COMP%]{transition:transform .4s ease-out,opacity .4s ease-out;will-change:transform}.slideInAnimationHide[_ngcontent-%COMP%]{transform:translate(100%);opacity:0}.slideInAnimationShow[_ngcontent-%COMP%]{transform:translate(0);opacity:1}.slideInAnimationToHide[_ngcontent-%COMP%]{transform:translate(100%);opacity:0}@media(max-width:575.98px){.slideInAnimationHide[_ngcontent-%COMP%]{transform:translateY(100%);opacity:0}.slideInAnimationShow[_ngcontent-%COMP%]{transform:translateY(0);opacity:1}.slideInAnimationToHide[_ngcontent-%COMP%]{transform:translateY(100%);opacity:0}}.modalScaleAnimation[_ngcontent-%COMP%]{transition:transform .3s ease-in-out,opacity .3s ease-in-out;will-change:transform}.modalScaleAnimationHide[_ngcontent-%COMP%]{transform:scale(.9);opacity:0}.modalScaleAnimationShow[_ngcontent-%COMP%]{transform:scale(1);opacity:1}.modalScaleAnimationToHide[_ngcontent-%COMP%]{transform:scale(.9);opacity:0} .disable-animations .foldAnimation, .disable-animations .fadeAnimation, .disable-animations .slideUpAnimation, .disable-animations .slideInAnimation, .disable-animations .modalScaleAnimation{transition-duration:0ms!important}.ai-chat-container[_ngcontent-%COMP%]{background-color:var(--%NS%modal-background-color);border-radius:var(--%NS%radius-large) var(--%NS%radius-large) 0 0;border:1px solid var(--%NS%border-color);box-shadow:var(--%NS%shadow-light);display:flex;flex-direction:column;position:fixed;bottom:0;right:0;left:0;width:100%;max-height:calc(100vh - 9.5em);margin:0;overflow:hidden}@media(min-width:576px){.ai-chat-container[_ngcontent-%COMP%]{position:relative;width:26.25em;max-height:calc(100vh - 7.5em);bottom:auto;right:auto;left:auto;margin-bottom:1em;border-radius:var(--%NS%radius-large)}}@media(min-width:1400px){.ai-chat-container[_ngcontent-%COMP%]{width:28em}}.ai-chat-overlay[_ngcontent-%COMP%]{position:fixed;width:100dvw;height:100dvh;top:0;left:0;background-color:#000000bf}@media(min-width:576px){.ai-chat-overlay[_ngcontent-%COMP%]{display:none;width:0;height:0}}.ai-chat-header[_ngcontent-%COMP%]{background-color:var(--%NS%alternate-background-color);color:var(--%NS%default-text-color);padding:1em;display:flex;flex-direction:column;gap:.75em;justify-content:center;align-items:flex-start;border-bottom:1px solid var(--%NS%border-color)}.ai-chat-header[_ngcontent-%COMP%] .header-top[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;align-self:stretch}.ai-chat-header[_ngcontent-%COMP%] .header-title[_ngcontent-%COMP%]{margin:0}.ai-chat-body[_ngcontent-%COMP%]{padding:1em;flex:1;display:flex;flex-direction:column;gap:.75em;overflow-y:auto}.message-row[_ngcontent-%COMP%]{display:flex;gap:.75em}.message-row.user-message[_ngcontent-%COMP%]{flex-direction:row-reverse}.chat-bubble[_ngcontent-%COMP%]{max-width:80%;padding:1em;color:var(--%NS%modal-color);border:1px solid var(--%NS%border-color);border-radius:var(--%NS%radius-large);overflow-wrap:break-word}.chat-bubble.user-bubble[_ngcontent-%COMP%]{color:var(--%NS%default-text-color);background-color:var(--%NS%alternate-background-color)}.chat-bubble[_ngcontent-%COMP%] p{white-space:pre-line;line-height:1.2em}.chat-bubble[_ngcontent-%COMP%] p:empty{display:none}.chat-bubble[_ngcontent-%COMP%] p:last-child{margin:0}.chat-bubble[_ngcontent-%COMP%] ul li:not(:last-child){margin-bottom:.5em}.message-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-start;gap:.125em;max-width:80%;min-width:0;flex:1 0 0}.message-content[_ngcontent-%COMP%] .chat-bubble[_ngcontent-%COMP%]{width:100%;min-width:100%}.message-content[_ngcontent-%COMP%] .chat-start-info[_ngcontent-%COMP%]{color:var(--%NS%secondary-text-color)}.avatar-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:.5em;flex-shrink:0}.avatar-container.loading-message[_ngcontent-%COMP%]{justify-content:center}.avatar-container[_ngcontent-%COMP%] .timestamp[_ngcontent-%COMP%]{color:var(--%NS%secondary-text-color)}
60.avatar[_ngcontent-%COMP%]{width:2em;height:2em;border-radius:var(--%NS%radius-circle);display:flex;align-items:center;justify-content:center}.avatar[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;height:100%;object-fit:cover}.avatar.user-avatar[_ngcontent-%COMP%]{background-color:var(--%NS%color-primary);color:var(--%NS%button-primary-text-color)}.avatar.ai-thinking[_ngcontent-%COMP%]{border:none}.avatar.ai-thinking[_ngcontent-%COMP%] app-icon[_ngcontent-%COMP%]{color:var(--%NS%default-text-color)}.ai-chat-footer[_ngcontent-%COMP%]{background-color:var(--%NS%alternate-background-color);padding:1em;border-top:1px solid var(--%NS%border-color)}.ai-chat-footer[_ngcontent-%COMP%] .backoffice-notice[_ngcontent-%COMP%]{font-size:.75em;font-style:italic;margin:0;height:1em}.ai-chat-footer[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5em}.ai-chat-footer[_ngcontent-%COMP%] .chat-input-field[_ngcontent-%COMP%]{width:100%;margin:0;padding:.75em;color:var(--%NS%form-text-color);outline:none;background-color:var(--%NS%form-background-color);border:1px solid var(--%NS%border-color);resize:none;overflow-y:auto;line-height:1.2em;font-size:16px;field-sizing:content;min-height:2.875em;max-height:6em}.ai-chat-footer[_ngcontent-%COMP%] .chat-input-field[_ngcontent-%COMP%]::placeholder{color:var(--%NS%secondary-text-color)}@supports (-moz-appearance: none){.ai-chat-footer[_ngcontent-%COMP%] .chat-input-field[_ngcontent-%COMP%]{padding:.5em .75em}}.ai-chat-wrapper[_ngcontent-%COMP%]{position:fixed;bottom:1em;right:1em;z-index:var(--%NS%z-index-modal);display:flex;flex-direction:column;align-items:flex-end}@media(min-width:576px){.ai-chat-wrapper[_ngcontent-%COMP%]{bottom:1.5em;right:1.5em}}@media(max-width:575.98px){.ai-chat-wrapper.has-basket[_ngcontent-%COMP%]{bottom:5.5em}}@media(max-width:991.98px){.ai-chat-wrapper.has-confirmation[_ngcontent-%COMP%]{bottom:5.5em}}@media(max-width:575.98px){.ai-chat-wrapper.has-confirmation[_ngcontent-%COMP%]{bottom:5em}}.ai-chat-wrapper.below-sidepanels[_ngcontent-%COMP%]{z-index:calc(var(--%NS%z-index-basket) - 1)}.ai-chat-wrapper.left[_ngcontent-%COMP%]{right:auto;left:1.5em}.ai-chat-wrapper.left[_ngcontent-%COMP%] .chat-fab[_ngcontent-%COMP%]{margin-right:auto}.chat-fab[_ngcontent-%COMP%]{background-color:var(--%NS%button-secondary-background);box-shadow:var(--%NS%shadow-light);display:flex;align-items:center;padding:.25em;cursor:pointer;position:relative;transition:transform .2s cubic-bezier(.25,.8,.25,1);-webkit-user-select:none;user-select:none;border:1px solid var(--%NS%border-color);border-radius:var(--%NS%radius-pill);backdrop-filter:blur(8px)}.chat-fab.chat-open[_ngcontent-%COMP%]{display:none}@media(min-width:576px){.chat-fab.chat-open[_ngcontent-%COMP%]{display:flex}}@media(min-width:576px){.chat-fab[_ngcontent-%COMP%]{padding:.375em}}.chat-fab[_ngcontent-%COMP%] .fab-text[_ngcontent-%COMP%]{padding-left:.375em;padding-right:.75em;color:var(--%NS%button-secondary-text-color);white-space:nowrap;transition:max-width .3s ease,opacity .3s ease,padding .3s ease;max-width:10em;opacity:1;overflow:hidden}@media(min-width:576px){.chat-fab[_ngcontent-%COMP%] .fab-text[_ngcontent-%COMP%]{font-size:1.25em;line-height:1.1875em;font-weight:600}}.chat-fab[_ngcontent-%COMP%] .fab-text.collapsed[_ngcontent-%COMP%]{padding-left:0;padding-right:0;max-width:0;opacity:0}@media(min-width:576px){.chat-fab[_ngcontent-%COMP%] .fab-text.collapsed[_ngcontent-%COMP%]{padding-left:.375em;padding-right:.75em;max-width:10em;opacity:1}}.chat-fab[_ngcontent-%COMP%]:hover{background-color:var(--%NS%button-secondary-active-background);transform:scale(1.05)}.chat-fab[_ngcontent-%COMP%]:hover .fab-text[_ngcontent-%COMP%]{color:var(--%NS%button-secondary-active-text-color)}.chat-fab[_ngcontent-%COMP%] .notification-badge[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;position:absolute;top:-.75em;right:-.0625em;background-color:var(--%NS%color-primary);color:var(--%NS%button-primary-text-color);min-width:1.5em;height:1.5em;border-radius:var(--%NS%radius-circle);line-height:1;
60box-shadow:var(--%NS%shadow-light)}.custom-avatar[_ngcontent-%COMP%]{border-radius:var(--%NS%radius-circle);background-color:var(--%NS%avatar-background-color);object-fit:contain;display:flex;align-items:center;justify-content:center;overflow:hidden;width:2em;height:2em;border:1px solid var(--%NS%border-color)}@media(min-width:576px){.custom-avatar[_ngcontent-%COMP%]{width:2.5em;height:2.5em}}.custom-avatar.small[_ngcontent-%COMP%]{width:2em;height:2em}.custom-avatar[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{width:100%;height:100%;display:block} 61/*# sourceMappingURL=chat.component.css.map */`],changeDetection:1})}}return t})();function hL(t,i){if(t&1&&T(0,"app-chat",0),t&2){let e=u();b("position",e.position())}}var wv=(()=>{class t extends ci{constructor(){super(...arguments),this.position=v("right")}static{this.\u0275fac=(()=>{let e;return function(o){return(e||(e=Ne(t)))(o||t)}})()}static{this.\u0275cmp=H({type:t,selectors:[["ng-component"]],inputs:{position:[1,"position"]},features:[re],decls:1,vars:1,consts:[[3,"position"]],template:function(n,o){n&1&&w(0,hL,1,1,"app-chat",0),n&2&&x(o.isReady()?0:-1)},dependencies:[vv],encapsulation:3,changeDetection:1})}}return t})();var Vp=class{intercept(i,e){return e.handle(i).pipe(Ze({next:n=>{if(n instanceof tg){let o=n.body;Bp.convertToDateForObjectProperties(o)}},error:n=>{n instanceof ng&&n.status}}))}};var xv=new ve("RealtimeChatGetter");var lr=class{constructor(i,e,n,o,r,a=1,s=0){this.productId=i,this.productName=e,this.productPrice=n,this.productPriceExcludingVat=o,this.productCategory=r,this.count=a,this.productSubCategory=s}},Pv=(()=>{class t{constructor(){this.store=f(oe),this.processed=f(ae),this.lngSvc=f(Nt),this.basket=Me(this.store.select(Jt)),this.searchRequest=Me(this.store.select(gr)),this.willNotLoadGtm=!1,this.currencyIso=this.processed.getInit().globals.currencyIso,this.trackerDebug=Me(this.store.select(Fo)),this.isServerside=(()=>{let{gtmDomain:e,gtmTrackerId:n}=this.processed.getInit().globals;return!!(e&&n)})(),this.dataToPush=[],this.dataPushChecker=void 0}initGtm(){if(this.initGtmLoadDone)return;let{gtmId:e,gtmDomain:n,gtmTrackerId:o}=this.processed.getInit().globals,r=!!(n&&o);if(!r&&!e){this.setWillNotLoadGtm();return}r?this.initGtmServerside(e,n,o):this.initGtmStandard(e);let a=setInterval(()=>{window.dataLayer&&(clearInterval(a),this.initGtmLoadDone=!0)},5)}initGtmStandard(e){if(!document.querySelector(`script[src*="id=${e}"]`)){let n=document.createElement("script"),o=`(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': 62new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], 63j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
64'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); 65})(window,document,'script','dataLayer','${e}');`;n.innerHTML=o,window.document.head.appendChild(n)}}initGtmServerside(e,n,o){if(!document.querySelector(`script[src*="${n}"]`)){let r=document.createElement("script"),a=`(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': 66new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], 67j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= 68'https://${n}/${o}.js?tg='+i+dl;f.parentNode.insertBefore(j,f); 69})(window,document,'script','dataLayer','${e}');`;r.innerHTML=a,window.document.head.appendChild(r);let s=document.createElement("noscript"),l=document.createElement("iframe");l.src=`https://${n}/${o}.html?tg=${e}`,l.height="0",l.width="0",l.style.cssText="display:none;visibility:hidden",s.appendChild(l),window.document.body.prepend(s)}}setWillNotLoadGtm(){this.willNotLoadGtm=!0,this.dataPushChecker&&clearInterval(this.dataPushChecker)}trackingContextForDataLayer(e){let n={environment:e.environment,currentUrl:e.currentUrl??"",view:ke[e.view],area:En[e.area],loyalty_member_logged_in:e.loyalty_member_logged_in,resortName:e.resortName,collection:e.collection,language:e.language,iframe:e.iframe,tracking_event_type:e.eventType};return e.dynamic_yield_uid!==void 0&&(n.item_list_id=e.item_list_id),e.dynamic_yield_uid!==void 0&&(n.item_list_name=e.item_list_name),e.dynamic_yield_uid!==void 0&&(n.dynamic_yield_uid=e.dynamic_yield_uid),n}tryPushEvent(e,n){if(!this.willNotLoadGtm)try{let o=S(S({},this.trackingContextForDataLayer(n)),e);this.trackerDebug()&&console.debug("GTM event",o),this.initGtmLoadDone?window.dataLayer.push(o):(this.dataToPush.find(r=>JSON.stringify(r)===JSON.stringify(o))||this.dataToPush.push(o),this.dataPushChecker||(this.dataPushChecker=setInterval(()=>{if(this.initGtmLoadDone){clearInterval(this.dataPushChecker),this.dataPushChecker=void 0;for(let r of this.dataToPush)window.dataLayer.push(r);this.dataToPush=[]}},50)))}catch(o){console.error("Something went gtm-ably wrong, damn it",o)}}static getProductDetails(e,n){return new lr(e.configId,n.getTranslatedValue(e.title),(e.trackedValueModifier||0)>0?e.trackedValueModifier:e?.price?.price,e.price?.netPrice?.netPrice||0,e.type,e.type===
69Ht.Room?1:e.count)}onSearchErrorEvent(e){try{let n=this.searchRequest()??new Dr,o=$e.fromISO(n.from),r=0;n.to&&(r=$e.fromISO(n.to).diff(o,"days").days);let a={event:"noSearchResult",startDate:`${o.toFormat("yyyy-MM-dd")}`,numberOfNights:r,numberOfRooms:n.parties.length,adultsInFirstRoom:this.getPersonTypeCount(n.parties[0].persons,dt.Adult),childrenInFirstRoom:this.getPersonTypeCount(n.parties[0].persons,dt.Child)};this.tryPushEvent(a,e)}catch(n){}}getPersonTypeCount(e,n){let o=0;for(let r of e)o+=r.type===n?1:0;return o}onFinalize(e,n,o){return this.trackPurchase(e,n,o)}onCheckoutBegin(e){this.trackBeginCheckout(e)}addToCart(e,n){let o=e.map(r=>t.getProductDetails(r||r,this.lngSvc));this.addRemove("add_to_cart",o,n)}removeFromCart(e,n){let o=e.map(r=>t.getProductDetails(r,this.lngSvc));this.addRemove("remove_from_cart",o,n)}addRemove(e,n,o){let r=this.basket(),a=n.map(m=>this.mapProductToGtmItem(m)),s=a.reduce((m,g)=>m+g.price*(g.quantity??1),0),l=a.reduce((m,g)=>m+(g.price_excluding_vat??0)*(g.quantity??1),0),c=r?.searchParameters.promoCode&&r?.searchPromoCodeUsedForProducts?r.searchParameters.promoCode.toUpperCase():"",d={event:e,ecommerce:{value:s,value_excluding_vat:l,currency:this.currencyIso,coupon:c,items:a}};this.tryPushEvent(d,o)}loyaltyMemberLoggedIn(e){this.tryPushEvent({event:"loyaltyMemberLoggedIn"},e)}loyaltyMemberLoggedOut(e){this.tryPushEvent({event:"loyaltyMemberLoggedOut"},e)}addedToWaitList(e){this.tryPushEvent({event:"addedToWaitList"},e)}onChatOpened(e){this.tryPushEvent({event:"chat_opened"},e)}onChatClosed(e){this.tryPushEvent({event:"chat_closed"},e)}onCalendarClick(e,n){this.tryPushEvent({event:"calendar_click",calendar:e},n)}onChatMessageSent(e){this.tryPushEvent({event:"chat_message_sent"},e)}onChatLinkOpened(e,n,o){this.tryPushEvent({event:"chat_link_opened",link_url:e,link_text:n},o)}viewItem(e,...n){let o={event:"view_item",ecommerce:{currency:this.currencyIso,items:n.map(r=>this.mapProductToGtmItem(r))}};this.tryPushEvent(o,e)}onViewItemList(e,n){let o={event:"view_item_list",item_list_id:n.item_list_id,item_list_name:n.item_list_name,items:e.map((r,a)=>({item_id:r.productId,item_name:r.productName,index:a,item_list_id:n.item_list_id,item_list_name:n.item_list_name,price:r.productPrice||0,price_excluding_vat:r.productPriceExcludingVat,quantity:r.count||1}))};this.tryPushEvent(o,n)}onViewPackageList(e,n){if(!e?.length)return;let o=e.map(r=>{let a=Object.keys(r.partyPrice||{})[0],s=a?r.partyPrice[a]:void 0;return new lr(r.configId,this.lngSvc.getEnglishValue(r.title),s?.price??r.price?.price??0,s?.netPrice?.netPrice??r.price?.netPrice?.netPrice??0,"Package",1)});this.onViewItemList(o,n)}viewRooms(e,...n){if(!n?.length)return;let o=n.map(r=>{let a=r.room;return new lr(a.configId,this.lngSvc.getEnglishValue(a.title),r.price??a.price?.price??0,r.netPrice??a.price?.netPrice?.netPrice??0,r.category??a.type??"Room",1)});this.viewItem(e,...o)}onViewRoomList(e,n){if(!e?.length)return;let o=e.map(r=>{let a=r.room;return new lr(a.configId,this.lngSvc.getEnglishValue(a.title),r.price??a.price?.price??0,r.netPrice??a.price?.netPrice?.netPrice??0,r.category??a.type??"Room",1)});this.onViewItemList(o,n)}viewServiceItem(e,n){let o=new lr(e.configId,this.lngSvc.getEnglishValue(e.title),e.price.price,e.price.netPrice?.netPrice??0,e.type);this.viewItem(n,o)}viewMeal(e,n){let o=new lr(e.configId,this.lngSvc.getEnglishValue(e.title),e.price.price,e.price.netPrice?.netPrice??0,e.type);this.viewItem(n,o)}static normalizeForHash(e){return e?.trim().toLowerCase()||null}static normalizePhone(e){return e?.trim()&&e.trim().replace(/[\s\-().]/g,"")||null}static sha256(e){return z(this,null,function*(){if(!e)return null;try{let n=new TextEncoder().encode(e),o=yield crypto.subtle.digest("SHA-256",n);return Array.from(new Uint8Array(o)).map(r=>r.toString(16).padStart(2,"0")).join("")}catch(n){return null}})}buildUserData(e){return z(this,null,function*(){let n=e.useBookerInformation?e.booker:e.customer,o=n?.email,r=n?.phone,a=n?.firstName,s=n?.lastName,l=n?.country?.trim().toUpperCase()||null,[c,d,m,g]=yield Promise.all([t.sha256(t.normalizeForHash(o)),t.sha256(t.normalizePhone(r)),t.sha256(t.normalizeForHash(a)),t.sha256(t.normalizeForHash(s))]);return{sha256_email_address:c,sha256_phone_number:d,address:{sha256_first_name:m,sha256_last_name:g,country:l}}})}trackPurchase(e,n,o){return z(this,null,function*(){let r=o??this.basket();if(!r)return;let a=this.getBasketMetrics(),s=this.isServerside?yield this.buildUserData(r):void 0;this.tryPushEvent({event:"purchase",staff:!!this.processed.getVariables().backofficeUserIsLoggedIn,ecommerce:j(S({package_type:this.getBookingSearchTypeName(r.searchParameters.searchType),coupon:a.couponcode,transaction_id:r.id,booking_number:e,value:a.items.reduce((l,c)=>l+c.price*(c.quantity??1),0),value_excluding_vat:a.items.reduce((l,c)=>l+(c.price_excluding_vat??0)*(c.quantity??1),0),arrival_date:a.arrivalDate,departure_date:a.departureDate,arrival_day:a.arrivalDay,departure_day:a.departureDay,days_to_check_in:a.daysToCheckIn,length_of_stay:a.lengthOfStay,number_of_nights:a.numberOfNights,package_name:a.packageName,loyalty_value:r.loyaltyPayments?.reduce((l,c)=>l+c.bonusPointValue,0)||0,loyalty_points:r.loyaltyPayments?.reduce((l,c)=>l+c.bonusPoints,0)||0,loyalty_points_used:(r.loyaltyPayments?.reduce((l,c)=>l+c.bonusPoints,0)||0)>0,loyalty_member_logged_in:r.metaData?.loyaltyUserLoggedIn||!1,rooms:a.rooms,staff:!!this.processed.getVariables().backofficeUserIsLoggedIn,number_of_rooms:a.numberOfRooms,number_of_adults:a.numberOfAdults,number_of_kids:a.numberOfKids,number_of_addons:a.numberOfAddons,currency:this.currencyIso,email_address:r.useBookerInformation?r.booker?.email:r.customer?.email},s?{user_data:s}:{}),{items:a.items,chat_used:(r.metaData?.chatUsedBeforeBooking??!1)||(r.metaData?.chatUsedDuringBooking??!1),chat_used_before_booking:r.metaData?.chatUsedBeforeBooking||!1,chat_used_during_booking:r.metaData?.chatUsedDuringBooking||!1})},n)})}trackBeginCheckout(e){let n=this.basket();if(!n)return;let o=this.getBasketMetrics();this.tryPushEvent({event:"begin_checkout",ecommerce:{staff:this.processed.getVariables().backofficeUserIsLoggedIn,package_type:this.getBookingSearchTypeName(n.searchParameters.searchType),coupon:o.couponcode,value:o.items.reduce((r,a)=>r+a.price*(a.quantity??1),0),value_excluding_vat:o.items.reduce((r,a)=>r+(a.price_excluding_vat??0)*(a.quantity??1),0),currency:this.currencyIso,items:o.items}},e)}getBasketMetrics(){let e=this.basket(),n=new Date,o=e.searchParameters.searchType===J.Overnight,r=0,a=0,s=0,l=0,c=0,d,m,g,C,R,F,X,q=[],te=e.searchPromoCodeUsedForProducts&&e.searchParameters.promoCode?.toUpperCase()||"",K=[];e.orderRows.forEach(se=>
69{if(o&&se.type===Ht.Room){let L=new Date(se.startTime),Ye=new Date(se.endTime);L.setHours(0,0,0,0),Ye.setHours(0,0,0,0),r=this.getDaysBetween(L,Ye)}se.type===Ht.Package?(d=se.startTime.toISOString().split("T")[0],m=se.endTime.toISOString().split("T")[0],g=se.startTime.toLocaleDateString("en-US",{weekday:"long"}).toLowerCase(),C=se.endTime.toLocaleDateString("en-US",{weekday:"long"}).toLowerCase(),R=this.getDaysBetween(n,se.startTime),F=this.getDaysBetween(se.startTime,se.endTime),X=this.lngSvc.getEnglishValue(se.title)?.trim()):se.type===Ht.Room?(a+=se.count,q.push(this.lngSvc.getEnglishValue(se.title))):c+=se.count,K.push(t.getProductDetails(se,this.lngSvc))}),e.parties?.forEach(se=>{se.persons.forEach(L=>{L.type===dt.Adult?s++:L.type===dt.Child&&l++})});let Ge=K.map(se=>this.mapProductToGtmItem(se,r));return{numberOfNights:r,numberOfRooms:a,numberOfAdults:s,numberOfKids:l,numberOfAddons:c,arrivalDate:d,departureDate:m,arrivalDay:g,departureDay:C,daysToCheckIn:R,lengthOfStay:F,packageName:X,rooms:q,couponcode:te,items:Ge}}onChangePurchase(e,n){return z(this,null,function*(){let o=e.bookingInformation?.basket;if(!o||!e.changedOrderRows)return;let r=e.changedOrderRows[0].orderRow,a=0,s=0;if(e.changedOrderRows.length===2){let d=e.changedOrderRows[1].orderRow;a=r.price.price-(d?.price?.price??0),s=r.price.netPrice.netPrice-(d?.price?.netPrice?.netPrice??0)}let l=[this.mapOrderRowToGtmItem(r,a,s)],c=this.isServerside?yield this.buildUserData(o):void 0;this.tryPushEvent({event:"purchase",ecommerce:j(S({package_type:this.getBookingSearchTypeName(e.bookingInformation.searchType),coupon:o.searchPromoCodeUsedForProducts&&o.searchParameters.promoCode?.toUpperCase()||"",transaction_id:`${o.id}-${Date.now()}`,original_transaction_id:o.id,booking_number:e.bookingInformation.bookingNumber,value:l.reduce((d,m)=>d+m.price*(m.quantity??1),0),value_excluding_vat:l.reduce((d,m)=>d+(m.price_excluding_vat??0)*(m.quantity??1),0),currency:this.currencyIso,email_address:o.useBookerInformation?o.booker?.email:o.customer?.email},c?{user_data:c}:{}),{items:l,chat_used:(o.metaData?.chatUsedBeforeBooking??!1)||(o.metaData?.chatUsedDuringBooking??!1)||(o.metaData?.chatUsedDuringMyPage??!1),chat_used_before_booking:o.metaData?.chatUsedBeforeBooking||!1,chat_used_during_booking:o.metaData?.chatUsedDuringBooking||!1,chat_used_in_mypage:o.metaData?.chatUsedDuringMyPage||!1})},n)})}onChangeRequest(e,n){this.trackMyPageOrderEvent("mypage_changerequest",e,{includeBookingNumber:!0},n)}onCancelRequest(e,n){this.trackMyPageOrderEvent("mypage_cancelrequest",e,{},n)}trackMyPageOrderEvent(e,n,o,r){if(!n.bookingInformation?.basket||!n.changedOrderRows)return;let a=n.changedOrderRows[0].orderRow;this.tryPushEvent(j(S({event:e},o.includeBookingNumber&&{booking_number:n.bookingInformation.bookingNumber}),{days_to_check_in:this.getDaysBetween(new Date,a.startTime),package_type:this.getBookingSearchTypeName(n.bookingInformation.searchType),items:[this.mapOrderRowToGtmItem(a)]}),r)}mapProductToGtmItem(e,n=1){let o=e.productSubCategory>0?this.getBusinessObjectTypeName(Number(e.productSubCategory)):isNaN(Number(e.productCategory))?String(e.productCategory):this.getBusinessObjectTypeName(Number(e.productCategory)),r=o==="Room"&&n>1;return{item_id:e.productId,item_name:e.productName,price:r?e.productPrice/n:e.productPrice,price_excluding_vat:r?e.productPriceExcludingVat/n:e.productPriceExcludingVat,item_category:o,quantity:r?e.count*n:e.count}}mapOrderRowToGtmItem(e,n=0,o=0){let r=e.trackedValueModifier||0,a=e.type===Ht.Room;return{item_id:e.configId,item_name:this.lngSvc.getEnglishValue(e.title),price:r>0?r:a?n:e.price.price,price_excluding_vat:r>0?r:a?o:e.price.netPrice?.netPrice??0,item_category:isNaN(Number(e.type))?String(e.type):this.getBusinessObjectTypeName(Number(e.type)),quantity:e.count}}getBusinessObjectTypeName(e){return Ht[e]??null}getBookingSearchTypeName(e){return J[e]||"Unknown booking type"}getDaysBetween(e,n){let r=n.getTime()-e.getTime();return Math.ceil((r>=0?r:-r)/864e5)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=G({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Mv=(()=>{class t{constructor(){this.gtm=f(Pv)}initialize(){this.gtm.initGtm()}track(e){if(!this.gtm.willNotLoadGtm)switch(e.eventType){case ce.ChatOpened:this.gtm.onChatOpened(e);return;case ce.ChatClosed:this.gtm.onChatClosed(e);return;case ce.ChatMessage:this.gtm.onChatMessageSent(e);return;case ce.ChatLinkClicked:{let{link:n,linkText:o}=e.eventData??{};n&&o&&this.gtm.onChatLinkOpened(n,o,e);return}case ce.NoSearchResult:this.gtm.onSearchErrorEvent(e);return;case ce.LoyaltyMemberLoggedIn:this.gtm.loyaltyMemberLoggedIn(e);return;case ce.LoyaltyMemberLoggedOut:this.gtm.loyaltyMemberLoggedOut(e);return;case ce.AddedToWaitList:this.gtm.addedToWaitList(e);return;case ce.CheckoutBegin:this.gtm.onCheckoutBegin(e);return;case ce.ViewItem:{let{products:n,roomItems:o,serviceItem:r,meal:a}=e.eventData??{};if(Array.isArray(o)&&o.length){this.gtm.viewRooms(e,...o);return}if(Array.isArray(n)&&n.length){this.gtm.viewItem(e,...n);return}if(r){this.gtm.viewServiceItem(r,e);return}if(a){this.gtm.viewMeal(a,e);return}return}case ce.ViewItemList:{let{items:n,roomItems:o,packages:r}=e.eventData??{};if(Array.isArray(o)&&o.length){this.gtm.onViewRoomList(o,e);return}if(Array.isArray(r)&&r.length){this.gtm.onViewPackageList(r,e);return}if(Array.isArray(n)&&n.length){this.gtm.onViewItemList(n,e);return}return}case ce.Purchase:{let{bookingNumber:n,response:o,basket:r}=e.eventData??{};if(n){this.gtm.onFinalize(n,e,r);return}o&&this.gtm.onChangePurchase(o,e);return}case ce.SelectPackage:case ce.SelectRoom:case ce.AddRefundProtection:case ce.BuyAddon:{let n=e.eventData?.orderRows||[];n.length>0&&this.gtm.addToCart(n,e);return}case ce.MyPageAddAddon:{let{response:n}=e.eventData??{};n&&this.gtm.onChangePurchase(n,e);return}case ce.RemovePackage:case ce.RemoveRoom:case ce.RemoveRefundProtection:case ce.RemoveAddon:{let n=e.eventData?.orderRows||[];n.length>0&&this.gtm.removeFromCart(n,e);return}case ce.MyPageChangeRequest:{let{response:n}=e.eventData??{};n&&this.gtm.onChangeRequest(n,e);return}case ce.MyPageCancelRequest:{let{response:n}=e.eventData??{};n&&this.gtm.onCancelRequest(n,e);return}case ce.CalendarClick:{let{calendar:n}=e.eventData??{};n&&this.gtm.onCalendarClick(n,e);return}default:{let n=S({event:ce[e.eventType]},e.eventData??{});this.gtm.tryPushEvent(n,e);return}}}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=G({token:t,factory:t.\u0275fac})}}return t})();var Ov=(()=>{class t{constructor(){this.initialized=!1,this.loadStarted=!1,this.posthogClient=null,this.pendingPageViews=[],this.processed=f(ae),this.store=f(oe),this.frameworks=null,this.resortName="",this.collection="",this.language=Me(this.store.select(ht)),this.currencyIso=this.processed.getInit().globals.currencyIso,this.trackerDebug=Me(this.store.select(Fo))}initialize(){this.frameworks=this.processed.getInit().globals.activeFrontendFrameworks,!(!this.frameworks.posthog||!this.frameworks.posthogKey)&&
69(this.loadStarted||(this.loadStarted=!0,this.resortName=this.processed.getInit().resort.siteName,this.collection=this.processed.getInit().resort.hotelCollection,this.loadPosthogAndInit()))}loadPosthogAndInit(){return z(this,null,function*(){try{let{default:e}=yield import("./module-EGPTRBPQ.js");e.init(this.frameworks?.posthogKey??"",{api_host:"https://eu.i.posthog.com",defaults:"2025-11-30",autocapture:!1,person_profiles:"identified_only",capture_pageview:!1,capture_pageleave:!1,disable_session_recording:!this.frameworks?.posthogRecordingsActive,capture_dead_clicks:!1,enable_heatmaps:!1,rageclick:!1}),this.posthogClient=e,this.initialized=!0;let n=this.pendingPageViews.splice(0,this.pendingPageViews.length);for(let{url:o,data:r}of n)this.emitPageView(o,r)}catch(e){this.pendingPageViews.length=0}})}pageView(e,n={}){if(this.loadStarted){if(!this.initialized||!this.posthogClient){this.pendingPageViews.push({url:e,data:n});return}this.emitPageView(e,n)}}emitPageView(e,n){let o=j(S({},n),{resort_name:n.resortName??this.resortName,collection:n.collection??this.collection,language:n.language??this.language()});n.eventType===ce.Payment&&(o.currency=this.currencyIso),this.trackerDebug()&&console.debug("Posthog event",e,o),this.posthogClient?.capture("$pageview",S({$current_url:e},o))}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=G({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Dv=(()=>{class t{constructor(){this.posthog=f(Ov)}initialize(){this.posthog.initialize()}track(e){if(!e.iframe&&[ce.PageView,ce.MyPageLoggedIn,ce.StartPayment,ce.CancelPayment,ce.Payment,ce.UpgradeRoom,ce.BuyAddon,ce.MyPageAddAddon,ce.MyPageChangeRequest,ce.MyPageCancelRequest,ce.RemoveAddon].includes(e.eventType)){let n=e.eventType===ce.PageView?ke[e.view]:ce[e.eventType];this.posthog.pageView(n,S(S({},e),e.eventData??{}))}}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=G({token:t,factory:t.\u0275fac})}}return t})();var Nv=(()=>{class t{constructor(){this.store=f(oe),this.apiService=f(Gt),this.trackerDebug=Me(this.store.select(Fo))}track(e){this.trackerDebug()&&console.debug("Backend tracking event",e),this.apiService.post("/api/events",Array.isArray(e)?e:[e],{showLoader:!1,ignoreErrors:!0,logoutOnUnauthorized:!1}).subscribe()}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=G({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var qp=class{static getPropertyNames(){return["eventType","currentUrl","view","area","eventData"]}};var Iv=(()=>{class t{constructor(){this.backendTracking=f(Nv),this.injector=f(kn)}initialize(){}track(e){if([ce.ChatOpened,ce.ChatClosed,ce.ChatMessage,ce.ChatLinkClicked].includes(e.eventType)){let n=this.mapToFrontendTrackedData(e);this.backendTracking.track(n)}}mapToFrontendTrackedData(e){let n=new qp,o=this.injector.get(xa,null)?.getContext();return n.currentUrl=window.location.href.split("?")[0].split("#")[0],n.view=o?.currentView??ke.Unknown,n.area=o?.currentViewArea??En.Unknown,n.eventType=e.eventType,n.eventData=S({},e.eventData),n}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=G({token:t,factory:t.\u0275fac})}}return t})();gu({providers:[{provide:xa,useValue:{getContext:()=>({currentView:ke.ResortWebsite,currentViewArea:En.Webpage,currentUrl:window.location.href.split("?")[0].split("#")[0],currentLanguage:null,currentBasketId:null,currentBasketHash:null,clientTzOffset:new Date().getTimezoneOffset()*-1})}},{provide:xv,useExisting:Ka},og(ag(),rg()),{provide:ig,useClass:Vp,multi:!0},{provide:Bs,useClass:Mv,multi:!0},{provide:Bs,useClass:Dv,multi:!0},{provide:Bs,useClass:Iv,multi:!0},Kg(a_,{metaReducers:s_}),lg(f_),D_(ae.getLocaleConfig()),Fl(Nc),Y,qf()]}).then(t=>{customElements.define("gh-test-web-component",mr(UC,{injector:t.injector})),customElements.define("gh-strawberry-login",mr(XC,{injector:t.injector})),customElements.define("gh-search-horizontal",mr(NS,{injector:t.injector})),customElements.define("gh-search-dropdown",mr(kS,{injector:t.injector})),customElements.define("gh-newsletter",mr(AS,{injector:t.injector})),customElements.define("gh-chat",mr(wv,{injector:t.injector}))}); 70//# debugId=b4b079c5-aec6-5a79-b548-622256e2581b
71//# sourceMappingURL=main.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.