!function(e){function t(t){for(var s,n,o=t[0],a=t[1],r=0,l=[];r{if(i.profile&&performance.mark){const s=`st:${e}:${t}:${c++}`;return performance.mark(s),()=>performance.measure(`[Stencil] ${e}() <${t}>`,s)}return()=>{}},v="slot-fb{display:contents}slot-fb[hidden]{display:none}",x="http://www.w3.org/1999/xlink",y=["formAssociatedCallback","formResetCallback","formDisabledCallback","formStateRestoreCallback"],w={},k=e=>"object"===(e=typeof e)||"function"===e;function O(e){var t,s,i;return null!==(i=null===(s=null===(t=e.head)||void 0===t?void 0:t.querySelector('meta[name="csp-nonce"]'))||void 0===s?void 0:s.getAttribute("content"))&&void 0!==i?i:void 0}const $=(e,t,...s)=>{let n=null,o=null,a=null,r=!1,c=!1;const l=[],d=t=>{for(let s=0;se[t]).join(" "))}if(i.isDev&&l.some(E)&&rt("The must be the single root component. Make sure:\n- You are NOT using hostData() and in the same component.\n- is used once, and it's the single root component of the render() function."),i.vdomFunctional&&"function"==typeof e)return e(null===t?{}:t,l,C);const h=S(e,null);return h.$attrs$=t,l.length>0&&(h.$children$=l),i.vdomKey&&(h.$key$=o),i.slotRelocation&&(h.$name$=a),h},S=(e,t)=>{const s={$flags$:0,$tag$:e,$text$:t,$elm$:null,$children$:null};return i.vdomAttribute&&(s.$attrs$=null),i.vdomKey&&(s.$key$=null),i.slotRelocation&&(s.$name$=null),s},D={},E=e=>e&&e.$tag$===D,C={forEach:(e,t)=>e.map(j).forEach(t),map:(e,t)=>e.map(j).map(t).map(A)},j=e=>({vattrs:e.$attrs$,vchildren:e.$children$,vkey:e.$key$,vname:e.$name$,vtag:e.$tag$,vtext:e.$text$}),A=e=>{if("function"==typeof e.vtag){const t=Object.assign({},e.vattrs);return e.vkey&&(t.key=e.vkey),e.vname&&(t.name=e.vname),$(e.vtag,t,...e.vchildren||[])}const t=S(e.vtag,e.vtext);return t.$attrs$=e.vattrs,t.$children$=e.vchildren,t.$key$=e.vkey,t.$name$=e.vname,t},T=e=>{const t=Object.keys(e),s=t.indexOf("value");if(-1===s)return;const i=t.indexOf("type"),n=t.indexOf("min"),o=t.indexOf("max"),a=t.indexOf("step");(s should be set after "min", "max", "type" and "step"')},I=(e,t,s,n,o,a,r)=>{let c,l,d,h;if(1===a.nodeType){for(c=a.getAttribute("c-id"),c&&(l=c.split("."),l[0]!==r&&"0"!==l[0]||(d={$flags$:0,$hostId$:l[0],$nodeId$:l[1],$depth$:l[2],$index$:l[3],$tag$:a.tagName.toLowerCase(),$elm$:a,$attrs$:null,$children$:null,$key$:null,$name$:null,$text$:null},t.push(d),a.removeAttribute("c-id"),e.$children$||(e.$children$=[]),e.$children$[d.$index$]=d,e=d,n&&"0"===d.$depth$&&(n[d.$index$]=d.$elm$))),h=a.childNodes.length-1;h>=0;h--)I(e,t,s,n,o,a.childNodes[h],r);if(a.shadowRoot)for(h=a.shadowRoot.childNodes.length-1;h>=0;h--)I(e,t,s,n,o,a.shadowRoot.childNodes[h],r)}else if(8===a.nodeType)l=a.nodeValue.split("."),l[1]!==r&&"0"!==l[1]||(c=l[0],d={$flags$:0,$hostId$:l[1],$nodeId$:l[2],$depth$:l[3],$index$:l[4],$elm$:a,$attrs$:null,$children$:null,$key$:null,$name$:null,$tag$:null,$text$:null},"t"===c?(d.$elm$=a.nextSibling,d.$elm$&&3===d.$elm$.nodeType&&(d.$text$=d.$elm$.textContent,t.push(d),a.remove(),e.$children$||(e.$children$=[]),e.$children$[d.$index$]=d,n&&"0"===d.$depth$&&(n[d.$index$]=d.$elm$))):d.$hostId$===r&&("s"===c?(d.$tag$="slot",l[5]?a["s-sn"]=d.$name$=l[5]:a["s-sn"]="",a["s-sr"]=!0,i.shadowDom&&n&&(d.$elm$=ut.createElement(d.$tag$),d.$name$&&d.$elm$.setAttribute("name",d.$name$),a.parentNode.insertBefore(d.$elm$,a),a.remove(),"0"===d.$depth$&&(n[d.$index$]=d.$elm$)),s.push(d),e.$children$||(e.$children$=[]),e.$children$[d.$index$]=d):"r"===c&&(i.shadowDom&&n?a.remove():i.slotRelocation&&(o["s-cr"]=a,a["s-cn"]=!0))));else if(e&&"style"===e.$tag$){const t=S(null,a.textContent);t.$elm$=a,t.$index$="0",e.$children$=[t]}},R=(e,t)=>{if(1===e.nodeType){let s=0;for(;spt.map(t=>t(e)).find(e=>!!e),M=(e,t,s)=>{const n=(e=>i.lazyLoad?st(e).$hostElement$:e)(e);return{emit:e=>(i.isDev&&!n.isConnected&&ct(`The "${t}" event was emitted, but the dispatcher node is no longer connected to the dom.`),N(n,t,{bubbles:!!(4&s),composed:!!(2&s),cancelable:!!(1&s),detail:e}))}},N=(e,t,s)=>{const i=gt.ce(t,s);return e.dispatchEvent(i),i},P=new WeakMap,V=(e,t,s)=>{let i=ht.get(e);xt&&s?(i=i||new CSSStyleSheet,"string"==typeof i?i=t:i.replaceSync(t)):i=t,ht.set(e,i)},F=(e,t,s)=>{var n;const o=_(t,s),a=ht.get(o);if(!i.attachStyles)return o;if(e=11===e.nodeType?e:ut,a)if("string"==typeof a){e=e.head||e;let s,r=P.get(e);if(r||P.set(e,r=new Set),!r.has(o)){if(i.hydrateClientSide&&e.host&&(s=e.querySelector(`[sty-id="${o}"]`)))s.innerHTML=a;else{s=ut.createElement("style"),s.innerHTML=a;const t=null!==(n=gt.$nonce$)&&void 0!==n?n:O(ut);null!=t&&s.setAttribute("nonce",t),(i.hydrateServerSide||i.hotModuleReplacement)&&s.setAttribute("sty-id",o),e.insertBefore(s,e.querySelector("link"))}4&t.$flags$&&(s.innerHTML+=v),r&&r.add(o)}}else i.constructableCSS&&!e.adoptedStyleSheets.includes(a)&&(e.adoptedStyleSheets=[...e.adoptedStyleSheets,a]);return o},H=e=>{const t=e.$cmpMeta$,s=e.$hostElement$,n=t.$flags$,o=f("attachStyles",t.$tagName$),a=F(i.shadowDom&&ft&&s.shadowRoot?s.shadowRoot:s.getRootNode(),t,e.$modeName$);(i.shadowDom||i.scoped)&&i.cssAnnotations&&10&n&&(s["s-sc"]=a,s.classList.add(a+"-h"),i.scoped&&2&n&&s.classList.add(a+"-s")),o()},_=(e,t)=>"sc-"+(i.mode&&t&&32&e.$flags$?e.$tagName$+"-"+t:e.$tagName$),z=(e,t,s,n,o,a)=>{if(s!==n){let r=nt(e,t),c=t.toLowerCase();if(i.vdomClass&&"class"===t){const t=e.classList,i=q(s),o=q(n);t.remove(...i.filter(e=>e&&!o.includes(e))),t.add(...o.filter(e=>e&&!i.includes(e)))}else if(i.vdomStyle&&"style"===t){if(i.updatable)for(const t in s)n&&null!=n[t]||(!i.hydrateServerSide&&t.includes("-")?e.style.removeProperty(t):e.style[t]="");for(const t in n)s&&n[t]===s[t]||(!i.hydrateServerSide&&t.includes("-")?e.style.setProperty(t,n[t]):e.style[t]=n[t])}else if(i.vdomKey&&"key"===t);else if(i.vdomRef&&"ref"===t)n&&n(e);else if(!i.vdomListener||(i.lazyLoad?r:e.__lookupSetter__(t))||"o"!==t[0]||"n"!==t[1]){if(i.vdomPropOrAttr){const l=k(n);if((r||l&&null!==n)&&!o)try{if(e.tagName.includes("-"))e[t]=n;else{const i=null==n?"":n;"list"===t?r=!1:null!=s&&e[t]==i||(e[t]=i)}}catch(e){}let d=!1;i.vdomXlink&&c!==(c=c.replace(/^xlink\:?/,""))&&(t=c,d=!0),null==n||!1===n?!1===n&&""!==e.getAttribute(t)||(i.vdomXlink&&d?e.removeAttributeNS(x,t):e.removeAttribute(t)):(!r||4&a||o)&&!l&&(n=!0===n?"":n,i.vdomXlink&&d?e.setAttributeNS(x,t,n):e.setAttribute(t,n))}}else if(t="-"===t[2]?t.slice(3):nt(bt,c)?c.slice(2):c[2]+t.slice(3),s||n){const i=t.endsWith(G);t=t.replace(W,""),s&>.rel(e,t,s,i),n&>.ael(e,t,n,i)}}},B=/\s/,q=e=>e?e.split(B):[],G="Capture",W=new RegExp(G+"$"),Q=(e,t,s,n)=>{const o=11===t.$elm$.nodeType&&t.$elm$.host?t.$elm$.host:t.$elm$,a=e&&e.$attrs$||w,r=t.$attrs$||w;if(i.updatable)for(n in a)n in r||z(o,n,a[n],void 0,s,t.$flags$);for(n in r)z(o,n,a[n],r[n],s,t.$flags$)},U=(e,t,s,r)=>{const c=t.$children$[s];let d,b,u,m=0;if(i.slotRelocation&&!l&&(h=!0,"slot"===c.$tag$&&(n&&r.classList.add(n+"-s"),c.$flags$|=c.$children$?2:1)),i.isDev&&c.$elm$&&rt(`The JSX ${null!==c.$text$?`"${c.$text$}" text`:`"${c.$tag$}" element`} node should not be shared within the same renderer. The renderer caches element lookups in order to improve performance. However, a side effect from this is that the exact same JSX node should not be reused. For more information please see https://stenciljs.com/docs/templating-jsx#avoid-shared-jsx-nodes`),i.vdomText&&null!==c.$text$)d=c.$elm$=ut.createTextNode(c.$text$);else if(i.slotRelocation&&1&c.$flags$)d=c.$elm$=i.isDebug||i.hydrateServerSide?le(c):ut.createTextNode("");else{if(i.svg&&!p&&(p="svg"===c.$tag$),d=c.$elm$=i.svg?ut.createElementNS(p?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",i.slotRelocation&&2&c.$flags$?"slot-fb":c.$tag$):ut.createElement(i.slotRelocation&&2&c.$flags$?"slot-fb":c.$tag$),i.svg&&p&&"foreignObject"===c.$tag$&&(p=!1),i.vdomAttribute&&Q(null,c,p),(i.shadowDom||i.scoped)&&null!=n&&d["s-si"]!==n&&d.classList.add(d["s-si"]=n),c.$children$)for(m=0;m{gt.$flags$|=1;const t=e.closest(a.toLowerCase());if(null!=t){const s=Array.from(t.childNodes).find(e=>e["s-cr"]),i=Array.from(e.childNodes);for(const e of s?i.reverse():i)null!=e["s-sh"]&&(t.insertBefore(e,null!=s?s:null),e["s-sh"]=void 0,h=!0)}gt.$flags$&=-2},Y=(e,t)=>{gt.$flags$|=1;const s=e.childNodes;for(let e=s.length-1;e>=0;e--){const i=s[e];i["s-hn"]!==a&&i["s-ol"]&&(te(i).insertBefore(i,ee(i)),i["s-ol"].remove(),i["s-ol"]=void 0,i["s-sh"]=void 0,h=!0),t&&Y(i,t)}gt.$flags$&=-2},J=(e,t,s,n,o,r)=>{let c,l=i.slotRelocation&&e["s-cr"]&&e["s-cr"].parentNode||e;for(i.shadowDom&&l.shadowRoot&&l.tagName===a&&(l=l.shadowRoot);o<=r;++o)n[o]&&(c=U(null,s,o,e),c&&(n[o].$elm$=c,l.insertBefore(c,i.slotRelocation?ee(t):t)))},X=(e,t,s)=>{for(let n=t;n<=s;++n){const t=e[n];if(t){const e=t.$elm$;re(t),e&&(i.slotRelocation&&(d=!0,e["s-ol"]?e["s-ol"].remove():Y(e,!0)),e.remove())}}},Z=(e,t,s=!1)=>e.$tag$===t.$tag$&&(i.slotRelocation&&"slot"===e.$tag$?e.$name$===t.$name$:!(i.vdomKey&&!s)||e.$key$===t.$key$),ee=e=>e&&e["s-ol"]||e,te=e=>(e["s-ol"]?e["s-ol"]:e).parentNode,se=(e,t,s=!1)=>{const n=t.$elm$=e.$elm$,o=e.$children$,a=t.$children$,r=t.$tag$,c=t.$text$;let d;i.vdomText&&null!==c?i.vdomText&&i.slotRelocation&&(d=n["s-cr"])?d.parentNode.textContent=c:i.vdomText&&e.$text$!==c&&(n.data=c):(i.svg&&(p="svg"===r||"foreignObject"!==r&&p),(i.vdomAttribute||i.reflect)&&(i.slot&&"slot"===r&&!l?i.experimentalSlotFixes&&e.$name$!==t.$name$&&(t.$elm$["s-sn"]=t.$name$||"",K(t.$elm$.parentElement)):Q(e,t,p)),i.updatable&&null!==o&&null!==a?((e,t,s,n,o=!1)=>{let a,r,c=0,l=0,d=0,h=0,p=t.length-1,b=t[0],u=t[p],m=n.length-1,g=n[0],f=n[m];for(;c<=p&&l<=m;)if(null==b)b=t[++c];else if(null==u)u=t[--p];else if(null==g)g=n[++l];else if(null==f)f=n[--m];else if(Z(b,g,o))se(b,g,o),b=t[++c],g=n[++l];else if(Z(u,f,o))se(u,f,o),u=t[--p],f=n[--m];else if(Z(b,f,o))!i.slotRelocation||"slot"!==b.$tag$&&"slot"!==f.$tag$||Y(b.$elm$.parentNode,!1),se(b,f,o),e.insertBefore(b.$elm$,u.$elm$.nextSibling),b=t[++c],f=n[--m];else if(Z(u,g,o))!i.slotRelocation||"slot"!==b.$tag$&&"slot"!==f.$tag$||Y(u.$elm$.parentNode,!1),se(u,g,o),e.insertBefore(u.$elm$,b.$elm$),u=t[--p],g=n[++l];else{if(d=-1,i.vdomKey)for(h=c;h<=p;++h)if(t[h]&&null!==t[h].$key$&&t[h].$key$===g.$key$){d=h;break}i.vdomKey&&d>=0?(r=t[d],r.$tag$!==g.$tag$?a=U(t&&t[l],s,d,e):(se(r,g,o),t[d]=void 0,a=r.$elm$),g=n[++l]):(a=U(t&&t[l],s,l,e),g=n[++l]),a&&(i.slotRelocation?te(b.$elm$).insertBefore(a,ee(b.$elm$)):b.$elm$.parentNode.insertBefore(a,b.$elm$))}c>p?J(e,null==n[m+1]?null:n[m+1].$elm$,s,n,l,m):i.updatable&&l>m&&X(t,c,p)})(n,o,t,a,s):null!==a?(i.updatable&&i.vdomText&&null!==e.$text$&&(n.textContent=""),J(n,null,t,a,0,a.length-1)):i.updatable&&null!==o&&X(o,0,o.length-1),i.svg&&p&&"svg"===r&&(p=!1))},ie=e=>{const t=e.childNodes;for(const e of t)if(1===e.nodeType){if(e["s-sr"]){const s=e["s-sn"];e.hidden=!1;for(const i of t)if(i!==e)if(i["s-hn"]!==e["s-hn"]||""!==s){if(1===i.nodeType&&(s===i.getAttribute("slot")||s===i["s-sn"])){e.hidden=!0;break}}else if(1===i.nodeType||3===i.nodeType&&""!==i.textContent.trim()){e.hidden=!0;break}}ie(e)}},ne=[],oe=e=>{let t,s,n;for(const o of e.childNodes){if(o["s-sr"]&&(t=o["s-cr"])&&t.parentNode){s=t.parentNode.childNodes;const e=o["s-sn"];for(n=s.length-1;n>=0;n--)if(t=s[n],!(t["s-cn"]||t["s-nr"]||t["s-hn"]===o["s-hn"]||i.experimentalSlotFixes&&t["s-sh"]&&t["s-sh"]===o["s-hn"]))if(ae(t,e)){let s=ne.find(e=>e.$nodeToRelocate$===t);d=!0,t["s-sn"]=t["s-sn"]||e,s?(s.$nodeToRelocate$["s-sh"]=o["s-hn"],s.$slotRefNode$=o):(t["s-sh"]=o["s-hn"],ne.push({$slotRefNode$:o,$nodeToRelocate$:t})),t["s-sr"]&&ne.map(e=>{ae(e.$nodeToRelocate$,t["s-sn"])&&(s=ne.find(e=>e.$nodeToRelocate$===t),s&&!e.$slotRefNode$&&(e.$slotRefNode$=s.$slotRefNode$))})}else ne.some(e=>e.$nodeToRelocate$===t)||ne.push({$nodeToRelocate$:t})}1===o.nodeType&&oe(o)}},ae=(e,t)=>1===e.nodeType?null===e.getAttribute("slot")&&""===t||e.getAttribute("slot")===t:e["s-sn"]===t||""===t,re=e=>{i.vdomRef&&(e.$attrs$&&e.$attrs$.ref&&e.$attrs$.ref(null),e.$children$&&e.$children$.map(re))},ce=(e,t,s=!1)=>{var r,c,p,b,u;const m=e.$hostElement$,g=e.$cmpMeta$,f=e.$vnode$||S(null,null),v=E(t)?t:$(null,null,t);if(a=m.tagName,i.isDev&&Array.isArray(t)&&t.some(E))throw new Error(`The must be the single root component.\nLooks like the render() function of "${a.toLowerCase()}" is returning an array that contains the .\n\nThe render() function should look like this instead:\n\nrender() {\n // Do not return an array\n return (\n {content}\n );\n}\n `);if(i.reflect&&g.$attrsToReflect$&&(v.$attrs$=v.$attrs$||{},g.$attrsToReflect$.map(([e,t])=>v.$attrs$[t]=m[e])),s&&v.$attrs$)for(const e of Object.keys(v.$attrs$))m.hasAttribute(e)&&!["key","ref","style","class"].includes(e)&&(v.$attrs$[e]=m[e]);if(v.$tag$=null,v.$flags$|=4,e.$vnode$=v,v.$elm$=f.$elm$=i.shadowDom&&m.shadowRoot||m,(i.scoped||i.shadowDom)&&(n=m["s-sc"]),l=ft&&0!=(1&g.$flags$),i.slotRelocation&&(o=m["s-cr"],d=!1),se(f,v,s),i.slotRelocation){if(gt.$flags$|=1,h){oe(v.$elm$);for(const e of ne){const t=e.$nodeToRelocate$;if(!t["s-ol"]){const e=i.isDebug||i.hydrateServerSide?de(t):ut.createTextNode("");e["s-nr"]=t,t.parentNode.insertBefore(t["s-ol"]=e,t)}}for(const e of ne){const t=e.$nodeToRelocate$,n=e.$slotRefNode$;if(n){const e=n.parentNode;let s=n.nextSibling;if(!i.experimentalSlotFixes||s&&1===s.nodeType){let i=null===(r=t["s-ol"])||void 0===r?void 0:r.previousSibling;for(;i;){let n=null!==(c=i["s-nr"])&&void 0!==c?c:null;if(n&&n["s-sn"]===t["s-sn"]&&e===n.parentNode&&(n=n.nextSibling,!n||!n["s-nr"])){s=n;break}i=i.previousSibling}}(!s&&e!==t.parentNode||t.nextSibling!==s)&&t!==s&&(i.experimentalSlotFixes||t["s-hn"]||!t["s-ol"]||(t["s-hn"]=t["s-ol"].parentNode.nodeName),e.insertBefore(t,s),1===t.nodeType&&(t.hidden=null!==(p=t["s-ih"])&&void 0!==p&&p))}else 1===t.nodeType&&(s&&(t["s-ih"]=null!==(b=t.hidden)&&void 0!==b&&b),t.hidden=!0)}}d&&ie(v.$elm$),gt.$flags$&=-2,ne.length=0}if(i.experimentalScopedSlotChanges&&2&g.$flags$)for(const e of v.$elm$.childNodes)e["s-hn"]===a||e["s-sh"]||(s&&null==e["s-ih"]&&(e["s-ih"]=null!==(u=e.hidden)&&void 0!==u&&u),e.hidden=!0);o=void 0},le=e=>ut.createComment(` (host=${a.toLowerCase()})`),de=e=>ut.createComment("org-location for "+(e.localName?`<${e.localName}> (host=${e["s-hn"]})`:`[${e.textContent}]`)),he=(e,t)=>{i.asyncLoading&&t&&!e.$onRenderResolve$&&t["s-p"]&&t["s-p"].push(new Promise(t=>e.$onRenderResolve$=t))},pe=(e,t)=>{if(i.taskQueue&&i.updatable&&(e.$flags$|=16),i.asyncLoading&&4&e.$flags$)return void(e.$flags$|=512);he(e,e.$ancestorComponent$);const s=()=>be(e,t);return i.taskQueue?Ct(s):s()},be=(e,t)=>{const s=e.$hostElement$,n=f("scheduleUpdate",e.$cmpMeta$.$tagName$),o=i.lazyLoad?e.$lazyInstance$:s;let a;return t?(i.lazyLoad&&i.hostListener&&(e.$flags$|=256,e.$queuedListeners$&&(e.$queuedListeners$.map(([e,t])=>ke(o,e,t)),e.$queuedListeners$=void 0)),Oe(s,"componentWillLoad"),i.cmpWillLoad&&(a=ke(o,"componentWillLoad"))):(Oe(s,"componentWillUpdate"),i.cmpWillUpdate&&(a=ke(o,"componentWillUpdate"))),Oe(s,"componentWillRender"),i.cmpWillRender&&(a=ue(a,()=>ke(o,"componentWillRender"))),n(),ue(a,()=>ge(e,o,t))},ue=(e,t)=>me(e)?e.then(t):t(),me=e=>e instanceof Promise||e&&e.then&&"function"==typeof e.then,ge=async(e,t,s)=>{var n;const o=e.$hostElement$,a=f("update",e.$cmpMeta$.$tagName$),r=o["s-rc"];i.style&&s&&H(e);const c=f("render",e.$cmpMeta$.$tagName$);if(i.isDev&&(e.$flags$|=1024),i.hydrateServerSide?await fe(e,t,o,s):fe(e,t,o,s),i.isDev&&(e.$renderCount$=void 0===e.$renderCount$?1:e.$renderCount$+1,e.$flags$&=-1025),i.hydrateServerSide)try{Se(o),s&&(1&e.$cmpMeta$.$flags$?o["s-en"]="":2&e.$cmpMeta$.$flags$&&(o["s-en"]="c"))}catch(e){ot(e,o)}if(i.asyncLoading&&r&&(r.map(e=>e()),o["s-rc"]=void 0),c(),a(),i.asyncLoading){const t=null!==(n=o["s-p"])&&void 0!==n?n:[],s=()=>xe(e);0===t.length?s():(Promise.all(t).then(s),e.$flags$|=4,t.length=0)}else xe(e)},fe=(e,t,s,n)=>{const o=!!i.allRenderFn,a=!!i.lazyLoad,r=!!i.taskQueue,c=!!i.updatable;try{if(b=t,t=(o||t.render)&&t.render(),c&&r&&(e.$flags$&=-17),(c||a)&&(e.$flags$|=2),i.hasRenderFn||i.reflect)if(i.vdomRender||i.reflect){if(i.hydrateServerSide)return Promise.resolve(t).then(t=>ce(e,t,n));ce(e,t,n)}else{const i=s.shadowRoot;1&e.$cmpMeta$.$flags$?i.textContent=t:s.textContent=t}}catch(t){ot(t,e.$hostElement$)}return b=null,null},ve=()=>b,xe=e=>{const t=e.$cmpMeta$.$tagName$,s=e.$hostElement$,n=f("postUpdate",t),o=i.lazyLoad?e.$lazyInstance$:s,a=e.$ancestorComponent$;i.cmpDidRender&&(i.isDev&&(e.$flags$|=1024),ke(o,"componentDidRender"),i.isDev&&(e.$flags$&=-1025)),Oe(s,"componentDidRender"),64&e.$flags$?(i.cmpDidUpdate&&(i.isDev&&(e.$flags$|=1024),ke(o,"componentDidUpdate"),i.isDev&&(e.$flags$&=-1025)),Oe(s,"componentDidUpdate"),n()):(e.$flags$|=64,i.asyncLoading&&i.cssAnnotations&&$e(s),i.cmpDidLoad&&(i.isDev&&(e.$flags$|=2048),ke(o,"componentDidLoad"),i.isDev&&(e.$flags$&=-2049)),Oe(s,"componentDidLoad"),n(),i.asyncLoading&&(e.$onReadyResolve$(s),a||we(t))),i.method&&i.lazyLoad&&e.$onInstanceResolve$(s),i.asyncLoading&&(e.$onRenderResolve$&&(e.$onRenderResolve$(),e.$onRenderResolve$=void 0),512&e.$flags$&&Et(()=>pe(e,!1)),e.$flags$&=-517)},ye=e=>{if(i.updatable&&(g.isBrowser||g.isTesting)){const t=st(e),s=t.$hostElement$.isConnected;return s&&2==(18&t.$flags$)&&pe(t,!1),s}return!1},we=e=>{i.cssAnnotations&&$e(ut.documentElement),i.asyncQueue&&(gt.$flags$|=2),Et(()=>N(bt,"appload",{detail:{namespace:"app"}})),i.profile&&performance.measure&&performance.measure(`[Stencil] app initial load (by ${e})`,"st:app:start")},ke=(e,t,s)=>{if(e&&e[t])try{return e[t](s)}catch(e){ot(e)}},Oe=(e,t)=>{i.lifecycleDOMEvents&&N(e,"stencil_"+t,{bubbles:!0,composed:!0,detail:{namespace:"app"}})},$e=e=>i.hydratedClass?e.classList.add("hydrated"):i.hydratedAttribute?e.setAttribute("hydrated",""):void 0,Se=e=>{const t=e.children;if(null!=t)for(let e=0,s=t.length;e{const o=st(e),a=i.lazyLoad?o.$hostElement$:e,r=o.$instanceValues$.get(t),c=o.$flags$,l=i.lazyLoad?o.$lazyInstance$:a;var d,h;d=s,h=n.$members$[t][0],s=null==d||k(d)?d:i.propBoolean&&4&h?"false"!==d&&(""===d||!!d):i.propNumber&&2&h?parseFloat(d):i.propString&&1&h?String(d):d;const p=Number.isNaN(r)&&Number.isNaN(s);if((!i.lazyLoad||!(8&c)||void 0===r)&&(s!==r&&!p)&&(o.$instanceValues$.set(t,s),i.isDev&&(1024&o.$flags$?ct(`The state/prop "${t}" changed during rendering. This can potentially lead to infinite-loops and other bugs.`,"\nElement",a,"\nNew value",s,"\nOld value",r):2048&o.$flags$&&ct(`The state/prop "${t}" changed during "componentDidLoad()", this triggers extra re-renders, try to setup on "componentWillLoad()"`,"\nElement",a,"\nNew value",s,"\nOld value",r)),!i.lazyLoad||l)){if(i.watchCallback&&n.$watchers$&&128&c){const e=n.$watchers$[t];e&&e.map(e=>{try{l[e](s,r,t)}catch(e){ot(e,a)}})}if(i.updatable&&2==(18&c)){if(i.cmpShouldUpdate&&l.componentShouldUpdate&&!1===l.componentShouldUpdate(s,r,t))return;pe(o,!1)}}},Ee=(e,t,s)=>{var n;const o=e.prototype;if(i.formAssociated&&64&t.$flags$&&1&s&&y.forEach(e=>Object.defineProperty(o,e,{value(...t){const s=st(this),n=i.lazyLoad?s.$hostElement$:this,o=i.lazyLoad?s.$lazyInstance$:n;if(o){const s=o[e];"function"==typeof s&&s.call(o,...t)}else s.$onReadyPromise$.then(s=>{const i=s[e];"function"==typeof i&&i.call(s,...t)})}})),i.member&&t.$members$){i.watchCallback&&e.watchers&&(t.$watchers$=e.watchers);const a=Object.entries(t.$members$);if(a.map(([e,[n]])=>{(i.prop||i.state)&&(31&n||(!i.lazyLoad||2&s)&&32&n)?Object.defineProperty(o,e,{get(){return t=e,st(this).$instanceValues$.get(t);var t},set(o){if(i.isDev){const i=st(this);0==(1&s)&&0===(i&&8&i.$flags$)&&0!=(31&n)&&0==(1024&n)&&ct(`@Prop() "${e}" on <${t.$tagName$}> is immutable but was modified from within the component.\nMore information: https://stenciljs.com/docs/properties#prop-mutability`)}De(this,e,o,t)},configurable:!0,enumerable:!0}):i.lazyLoad&&i.method&&1&s&&64&n&&Object.defineProperty(o,e,{value(...t){var s;const i=st(this);return null===(s=null==i?void 0:i.$onInstancePromise$)||void 0===s?void 0:s.then(()=>{var s;return null===(s=i.$lazyInstance$)||void 0===s?void 0:s[e](...t)})}})}),i.observeAttribute&&(!i.lazyLoad||1&s)){const s=new Map;o.attributeChangedCallback=function(e,n,a){gt.jmp(()=>{var r;const c=s.get(e);if(this.hasOwnProperty(c))a=this[c],delete this[c];else{if(o.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==a)return;if(null==c){const s=st(this),o=null==s?void 0:s.$flags$;if(o&&!(8&o)&&128&o&&a!==n){const o=i.lazyLoad?s.$hostElement$:this,c=i.lazyLoad?s.$lazyInstance$:o,l=null===(r=t.$watchers$)||void 0===r?void 0:r[e];null==l||l.forEach(t=>{null!=c[t]&&c[t].call(c,a,n,e)})}return}}this[c]=(null!==a||"boolean"!=typeof this[c])&&a})},e.observedAttributes=Array.from(new Set([...Object.keys(null!==(n=t.$watchers$)&&void 0!==n?n:{}),...a.filter(([e,t])=>15&t[0]).map(([e,n])=>{var o;const a=n[1]||e;return s.set(a,e),i.reflect&&512&n[0]&&(null===(o=t.$attrsToReflect$)||void 0===o||o.push([e,a])),a})]))}}return e},Ce=async(e,t,n,o)=>{let a;if(0==(32&t.$flags$)){if(t.$flags$|=32,i.lazyLoad||i.hydrateClientSide){if(a=dt(n,t,o),a.then){const e=(r=`st:load:${n.$tagName$}:${t.$modeName$}`,c=`[Stencil] Load module for <${n.$tagName$}>`,i.profile&&performance.mark?(0===performance.getEntriesByName(r,"mark").length&&performance.mark(r),()=>{0===performance.getEntriesByName(c,"measure").length&&performance.measure(c,r)}):()=>{});a=await a,e()}if((i.isDev||i.isDebug)&&!a)throw new Error(`Constructor for "${n.$tagName$}#${t.$modeName$}" was not found`);i.member&&!a.isProxied&&(i.watchCallback&&(n.$watchers$=a.watchers),Ee(a,n,2),a.isProxied=!0);const e=f("createInstance",n.$tagName$);i.member&&(t.$flags$|=8);try{new a(t)}catch(e){ot(e)}i.member&&(t.$flags$&=-9),i.watchCallback&&(t.$flags$|=128),e(),je(t.$lazyInstance$)}else a=e.constructor,customElements.whenDefined(n.$tagName$).then(()=>t.$flags$|=128);if(i.style&&a.style){let o=a.style;i.mode&&"string"!=typeof o&&(o=o[t.$modeName$=L(e)],i.hydrateServerSide&&t.$modeName$&&e.setAttribute("s-mode",t.$modeName$));const r=_(n,t.$modeName$);if(!ht.has(r)){const e=f("registerStyles",n.$tagName$);!i.hydrateServerSide&&i.shadowDom&&i.shadowDomShim&&8&n.$flags$&&(o=await s.e(31).then(s.bind(null,103)).then(e=>e.scopeCss(o,r,!1))),V(r,o,!!(1&n.$flags$)),e()}}}var r,c;const l=t.$ancestorComponent$,d=()=>pe(t,!0);i.asyncLoading&&l&&l["s-rc"]?l["s-rc"].push(d):d()},je=e=>{i.lazyLoad&&i.connectedCallback&&ke(e,"connectedCallback")},Ae=e=>{if(0==(1>.$flags$)){const t=st(e),s=t.$cmpMeta$,n=f("connectedCallback",s.$tagName$);if(i.hostListenerTargetParent&&Ye(e,t,s.$listeners$,!0),1&t.$flags$)Ye(e,t,s.$listeners$,!1),(null==t?void 0:t.$lazyInstance$)?je(t.$lazyInstance$):(null==t?void 0:t.$onReadyPromise$)&&t.$onReadyPromise$.then(()=>je(t.$lazyInstance$));else{let n;if(t.$flags$|=1,i.hydrateClientSide&&(n=e.getAttribute("s-id"),n)){if(i.shadowDom&&ft&&1&s.$flags$){const t=i.mode?F(e.shadowRoot,s,e.getAttribute("s-mode")):F(e.shadowRoot,s);e.classList.remove(t+"-h",t+"-s")}((e,t,s,n)=>{const o=f("hydrateClient",t),a=e.shadowRoot,r=[],c=i.shadowDom&&a?[]:null,l=n.$vnode$=S(t,null);gt.$orgLocNodes$||R(ut.body,gt.$orgLocNodes$=new Map),e["s-id"]=s,e.removeAttribute("s-id"),I(l,r,[],c,e,e,s),r.map(e=>{const s=e.$hostId$+"."+e.$nodeId$,i=gt.$orgLocNodes$.get(s),n=e.$elm$;i&&ft&&""===i["s-en"]&&i.parentNode.insertBefore(n,i.nextSibling),a||(n["s-hn"]=t,i&&(n["s-ol"]=i,n["s-ol"]["s-nr"]=n)),gt.$orgLocNodes$.delete(s)}),i.shadowDom&&a&&c.map(e=>{e&&a.appendChild(e)}),o()})(e,s.$tagName$,n,t)}if(i.slotRelocation&&!n&&(i.hydrateServerSide||(i.slot||i.shadowDom)&&12&s.$flags$)&&Te(e),i.asyncLoading){let s=e;for(;s=s.parentNode||s.host;)if(i.hydrateClientSide&&1===s.nodeType&&s.hasAttribute("s-id")&&s["s-p"]||s["s-p"]){he(t,t.$ancestorComponent$=s);break}}i.prop&&!i.hydrateServerSide&&s.$members$&&Object.entries(s.$members$).map(([t,[s]])=>{if(31&s&&e.hasOwnProperty(t)){const s=e[t];delete e[t],e[t]=s}}),i.initializeNextTick?Et(()=>Ce(e,t,s)):Ce(e,t,s)}n()}},Te=e=>{const t=e["s-cr"]=ut.createComment(i.isDebug?`content-ref (host=${e.localName})`:"");t["s-cn"]=!0,e.insertBefore(t,e.firstChild)},Ie=e=>{i.lazyLoad&&i.disconnectedCallback&&ke(e,"disconnectedCallback"),i.cmpDidUnload&&ke(e,"componentDidUnload")},Re=async e=>{if(0==(1>.$flags$)){const t=st(e);i.hostListener&&t.$rmListeners$&&(t.$rmListeners$.map(e=>e()),t.$rmListeners$=void 0),i.lazyLoad?(null==t?void 0:t.$lazyInstance$)?Ie(t.$lazyInstance$):(null==t?void 0:t.$onReadyPromise$)&&t.$onReadyPromise$.then(()=>Ie(t.$lazyInstance$)):Ie(e)}},Le=(e,t)=>{Me(e),Ne(e),Fe(e),Ve(e),ze(e),He(e),_e(e),Be(e),qe(e,t),Pe(e)},Me=e=>{const t=e.cloneNode;e.cloneNode=function(e){const s=this,n=!!i.shadowDom&&(s.shadowRoot&&ft),o=t.call(s,!!n&&e);if(i.slot&&!n&&e){let e,t,n=0;const a=["s-id","s-cr","s-lr","s-rc","s-sc","s-p","s-cn","s-sr","s-sn","s-hn","s-ol","s-nr","s-si"];for(;n!s.childNodes[n][e]),e&&(i.appendChildSlotFix&&o.__appendChild?o.__appendChild(e.cloneNode(!0)):o.appendChild(e.cloneNode(!0))),t&&o.appendChild(s.childNodes[n].cloneNode(!0))}return o}},Ne=e=>{e.__appendChild=e.appendChild,e.appendChild=function(e){const t=e["s-sn"]=We(e),s=Qe(this.childNodes,t);if(s){const i=Ue(s,t),n=i[i.length-1],o=n.parentNode.insertBefore(e,n.nextSibling);return ie(this),ye(this),o}return this.__appendChild(e)}},Pe=e=>{e.__removeChild=e.removeChild,e.removeChild=function(e){if(e&&void 0!==e["s-sn"]){const t=Qe(this.childNodes,e["s-sn"]);if(t){const s=Ue(t,e["s-sn"]).find(t=>t===e);if(s)return s.remove(),void ie(this)}}return this.__removeChild(e)}},Ve=e=>{const t=e.prepend;e.prepend=function(...e){e.forEach(e=>{"string"==typeof e&&(e=this.ownerDocument.createTextNode(e));const s=e["s-sn"]=We(e),i=Qe(this.childNodes,s);if(i){const t=document.createTextNode("");t["s-nr"]=e,i["s-cr"].parentNode.__appendChild(t),e["s-ol"]=t;const n=Ue(i,s)[0];return n.parentNode.insertBefore(e,n.nextSibling)}return 1===e.nodeType&&e.getAttribute("slot")&&(e.hidden=!0),t.call(this,e)})}},Fe=e=>{e.append=function(...e){e.forEach(e=>{"string"==typeof e&&(e=this.ownerDocument.createTextNode(e)),this.appendChild(e)})}},He=e=>{const t=e.insertAdjacentHTML;e.insertAdjacentHTML=function(e,s){if("afterbegin"!==e&&"beforeend"!==e)return t.call(this,e,s);const i=this.ownerDocument.createElement("_");let n;if(i.innerHTML=s,"afterbegin"===e)for(;n=i.firstChild;)this.prepend(n);else if("beforeend"===e)for(;n=i.firstChild;)this.append(n)}},_e=e=>{e.insertAdjacentText=function(e,t){this.insertAdjacentHTML(e,t)}},ze=e=>{const t=e.insertAdjacentElement;e.insertAdjacentElement=function(e,s){return"afterbegin"!==e&&"beforeend"!==e?t.call(this,e,s):"afterbegin"===e?(this.prepend(s),s):"beforeend"===e?(this.append(s),s):s}},Be=e=>{const t=Object.getOwnPropertyDescriptor(Node.prototype,"textContent");Object.defineProperty(e,"__textContent",t),i.experimentalScopedSlotChanges?Object.defineProperty(e,"textContent",{get(){return" "+Ge(this.childNodes).map(e=>{var t,s;const i=[];let n=e.nextSibling;for(;n&&n["s-sn"]===e["s-sn"];)3!==n.nodeType&&1!==n.nodeType||i.push(null!==(s=null===(t=n.textContent)||void 0===t?void 0:t.trim())&&void 0!==s?s:""),n=n.nextSibling;return i.filter(e=>""!==e).join(" ")}).filter(e=>""!==e).join(" ")+" "},set(e){Ge(this.childNodes).forEach(t=>{let s=t.nextSibling;for(;s&&s["s-sn"]===t["s-sn"];){const e=s;s=s.nextSibling,e.remove()}if(""===t["s-sn"]){const s=this.ownerDocument.createTextNode(e);s["s-sn"]="",t.parentElement.insertBefore(s,t.nextSibling)}else t.remove()})}}):Object.defineProperty(e,"textContent",{get(){var e;const t=Qe(this.childNodes,"");return 3===(null===(e=null==t?void 0:t.nextSibling)||void 0===e?void 0:e.nodeType)?t.nextSibling.textContent:t?t.textContent:this.__textContent},set(e){var t;const s=Qe(this.childNodes,"");if(3===(null===(t=null==s?void 0:s.nextSibling)||void 0===t?void 0:t.nodeType))s.nextSibling.textContent=e;else if(s)s.textContent=e;else{this.__textContent=e;const t=this["s-cr"];t&&this.insertBefore(t,this.firstChild)}}})},qe=(e,t)=>{class s extends Array{item(e){return this[e]}}if(8&t.$flags$){const t=e.__lookupGetter__("childNodes");Object.defineProperty(e,"children",{get(){return this.childNodes.map(e=>1===e.nodeType)}}),Object.defineProperty(e,"childElementCount",{get:()=>e.children.length}),Object.defineProperty(e,"childNodes",{get(){const e=t.call(this);if(0==(1>.$flags$)&&2&st(this).$flags$){const t=new s;for(let s=0;s{const t=[];for(const s of Array.from(e))s["s-sr"]&&t.push(s),t.push(...Ge(s.childNodes));return t},We=e=>e["s-sn"]||1===e.nodeType&&e.getAttribute("slot")||"",Qe=(e,t)=>{let s,i=0;for(;i{const s=[e];for(;(e=e.nextSibling)&&e["s-sn"]===t;)s.push(e);return s},Ke=(e,t)=>{const s={$flags$:t[0],$tagName$:t[1]};i.member&&(s.$members$=t[2]),i.hostListener&&(s.$listeners$=t[3]),i.watchCallback&&(s.$watchers$=e.$watchers$),i.reflect&&(s.$attrsToReflect$=[]),i.shadowDom&&!ft&&1&s.$flags$&&(s.$flags$|=8),i.experimentalSlotFixes?i.scoped&&2&s.$flags$&&Le(e.prototype,s):(i.slotChildNodesFix&&qe(e.prototype,s),i.cloneNodeFix&&Me(e.prototype),i.appendChildSlotFix&&Ne(e.prototype),i.scopedSlotTextContentFix&&2&s.$flags$&&Be(e.prototype));const n=e.prototype.connectedCallback,o=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__registerHost(){it(this,s)},connectedCallback(){Ae(this),i.connectedCallback&&n&&n.call(this)},disconnectedCallback(){Re(this),i.disconnectedCallback&&o&&o.call(this)},__attachShadow(){ft?i.shadowDelegatesFocus?this.attachShadow({mode:"open",delegatesFocus:!!(16&s.$flags$)}):this.attachShadow({mode:"open"}):this.shadowRoot=this}}),e.is=s.$tagName$,Ee(e,s,3)},Ye=(e,t,s,n)=>{i.hostListener&&s&&(i.hostListenerTargetParent&&(s=n?s.filter(([e])=>32&e):s.filter(([e])=>!(32&e))),s.map(([s,n,o])=>{const a=i.hostListenerTarget?Xe(e,s):e,r=Je(t,o),c=Ze(s);gt.ael(a,n,r,c),(t.$rmListeners$=t.$rmListeners$||[]).push(()=>gt.rel(a,n,r,c))}))},Je=(e,t)=>s=>{try{i.lazyLoad?256&e.$flags$?e.$lazyInstance$[t](s):(e.$queuedListeners$=e.$queuedListeners$||[]).push([t,s]):e.$hostElement$[t](s)}catch(e){ot(e)}},Xe=(e,t)=>i.hostListenerTargetDocument&&4&t?ut:i.hostListenerTargetWindow&&8&t?bt:i.hostListenerTargetBody&&16&t?ut.body:i.hostListenerTargetParent&&32&t?e.parentElement:e,Ze=e=>vt?{passive:0!=(1&e),capture:0!=(2&e)}:0!=(2&e);var et;const tt=i.hotModuleReplacement?(et=window).__STENCIL_HOSTREFS__||(et.__STENCIL_HOSTREFS__=new WeakMap):new WeakMap,st=e=>tt.get(e),it=(e,t)=>{const s={$flags$:0,$hostElement$:e,$cmpMeta$:t,$instanceValues$:new Map};return i.isDev&&(s.$renderCount$=0),i.method&&i.lazyLoad&&(s.$onInstancePromise$=new Promise(e=>s.$onInstanceResolve$=e)),i.asyncLoading&&(s.$onReadyPromise$=new Promise(e=>s.$onReadyResolve$=e),e["s-p"]=[],e["s-rc"]=[]),Ye(e,s,t.$listeners$,!1),tt.set(e,s)},nt=(e,t)=>t in e,ot=(e,t)=>(r||console.error)(e,t),at=i.isTesting?["STENCIL:"]:["%cstencil","color: white;background:#4c47ff;font-weight: bold; font-size:10px; padding:2px 6px; border-radius: 5px"],rt=(...e)=>console.error(...at,...e),ct=(...e)=>console.warn(...at,...e),lt=new Map,dt=(e,t,n)=>{const o=e.$tagName$.replace(/-/g,"_"),a=e.$lazyBundleId$;if(i.isDev&&"string"!=typeof a)return void rt(`Trying to lazily load component <${e.$tagName$}> with style mode "${t.$modeName$}", but it does not exist.`);const r=!i.hotModuleReplacement&<.get(a);return r?r[o]:s(22)(`./${a}.entry.js${i.hotModuleReplacement&&n?"?s-hmr="+n:""}`).then(e=>(i.hotModuleReplacement||lt.set(a,e),e[o]),ot) /*!__STENCIL_STATIC_IMPORT_SWITCH__*/},ht=new Map,pt=[],bt="undefined"!=typeof window?window:{},ut=bt.document||{head:{}},mt=bt.HTMLElement||class{},gt={$flags$:0,$resourcesUrl$:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,s,i)=>e.addEventListener(t,s,i),rel:(e,t,s,i)=>e.removeEventListener(t,s,i),ce:(e,t)=>new CustomEvent(e,t)},ft=!i.shadowDomShim||!i.shadowDom||(()=>(ut.head.attachShadow+"").indexOf("[native")>-1)(),vt=(()=>{let e=!1;try{ut.addEventListener("e",null,Object.defineProperty({},"passive",{get(){e=!0}}))}catch(e){}return e})(),xt=!!i.constructableCSS&&(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),yt=[],wt=[],kt=[],Ot=(e,t)=>s=>{e.push(s),m||(m=!0,t&&4>.$flags$?Et(Dt):gt.raf(Dt))},$t=e=>{for(let t=0;t{let s=0,i=0;for(;s{if(i.asyncQueue&&u++,$t(yt),i.asyncQueue){const e=2==(6>.$flags$)?performance.now()+14*Math.ceil(.1*u):1/0;St(wt,e),St(kt,e),wt.length>0&&(kt.push(...wt),wt.length=0),(m=yt.length+wt.length+kt.length>0)?gt.raf(Dt):u=0}else $t(wt),(m=yt.length>0)&>.raf(Dt)},Et=e=>{return Promise.resolve(t).then(e);var t},Ct=Ot(wt,!0)},22:function(e,t){function s(e){return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}))}s.keys=function(){return[]},s.resolve=s,e.exports=s,s.id=22},66:function(e,t,s){e.exports=s(91)},91:function(e,t,s){"use strict";s.r(t);var i,n,o,a,r,c=s(0);!function(e){e.DEV="DEV",e.INTEGRATION="INTEGRATION",e.TEST="TEST",e.STAGING="STAGING",e.PRODUCTION="PRODUCTION",e.UNKNOWN="UNKNOWN"}(i||(i={})),function(e){e.DEV="dlite.dev.thomascook.io",e.INTEGRATION="dlite.int.thomascook.io",e.TEST="dlite.test.thomascook.io",e.STAGING="dlite.stg.thomascook.com",e.PRODUCTION="www.thomascook.com"}(n||(n={})),function(e){e.Io=".thomascook.io",e.Com=".thomascook.com"}(o||(o={})),function(e){e.uk="uk",e.nl="nl",e.be="be"}(a||(a={})),function(e){e["en-GB"]="en-GB",e["nl-NL"]="nl-NL",e["fr-BE"]="fr-BE",e["nl-BE"]="nl-BE"}(r||(r={}));function l(e){return function(t,s){Object.defineProperty(t,s,{configurable:!1,get:()=>function(e){return Object.keys(e).reduce((t,s)=>{const i=e[s];return"object"==typeof i&&(t[s]=function(e,t,s){return e[s]||e[t]||e.default||null}(i,"nl","nl-NL")),t},{})}(e)})}}const d={shortMonth:{[a.uk]:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],[a.nl]:["Jan","Feb","Mrt","Apr","Mei","Jun","Jul","Aug","Sep","Okt","Nov","Dec"],[a.be]:["Jan","Feb","Mrt","Apr","Mei","Jun","Jul","Aug","Sep","Okt","Nov","Dec"]},longMonths:{[a.uk]:["January","February","March","April","May","June","July","August","September","October","November","December"],[a.nl]:["januari","februari","maart","april","mei","juni","juli","augustus","september","oktober","november","december"],[a.be]:["januari","februari","maart","april","mei","juni","juli","augustus","september","oktober","november","december"]},shortDays:{[a.uk]:["m","t","w","t","f","s","s"],[a.nl]:["m","d","w","d","v","z","z"],[a.be]:["m","d","w","d","v","z","z"]},mediumDays:{[a.uk]:["mon","tue","wed","thu","fri","sat","sun"],[a.nl]:["ma","di","wo","do","vr","za","zo"],[a.be]:["ma","di","wo","do","vr","za","zo"]}};var h=function(e,t,s,i){var n,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,s):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,s,i);else for(var r=e.length-1;r>=0;r--)(n=e[r])&&(a=(o<3?n(a):o>3?n(t,s,a):n(t,s))||a);return o>3&&a&&Object.defineProperty(t,s,a),a};class p{static allDays(e){const t=p.copyDate(e),s=new Date(t.getFullYear(),t.getMonth()+1,0).getDate();return new Array(s).fill(null).map((e,t)=>t+1)}static getAvailableOptions(e,t){const s=p.copyDate(e);return p.allDays(p.copyDate(e)).map(e=>({formatted:""+e,date:new Date(s.getFullYear(),s.getMonth(),e),available:!!t.find(t=>p.sameDay(new Date(t),new Date(s.getFullYear(),s.getMonth(),e)))}))}static getMonthsList(){return new Array(12).fill(null).map((e,t)=>t+1)}static getMonthsRange(e,t){return t?p.getMonthsList().filter(s=>new Date(e,s)>t.start&&new Date(e,s)e.start.getFullYear()+s).reduce((t,s)=>Object.assign(Object.assign({},t),{[""+s]:p.getMonthsRange(s,e)}),{})}static getAvailableDatesWith(e){return p.monthToOption(p.getAvailableMonthsWith(e)).map(t=>p.getAvailableDates(t.date,e)).reduce((e,t)=>[...e,...t],[])}static getAvailableDates(e,t){const s=e.getFullYear(),i=e.getMonth();return p.allDays(e).map(e=>new Date(s,i,e)).filter(e=>e>t.start&&ep.format(e))}static getAllMonthOptions(e,t){const s=p.shortMonths(),i=p.longMonths();return p.getMonthsRange(e).map(t=>p.getDate(+e,t)).map(e=>({formatted:s[e.getMonth()],formattedLong:`${i[e.getMonth()]} ${e.getFullYear()}`,date:e,available:!t||!!t.find(t=>p.sameMonth(e,t.date))}))}static getAllMonthOptionsGrouped(e){const t=p.shortMonths(),s=p.longMonths(),i={},n=new Date,o=Object.assign({[n.getFullYear().toString()]:[],[(n.getFullYear()+1).toString()]:[]},e);return Object.entries(o).forEach(([e,o])=>{let a=0;+e===n.getFullYear()&&(a=4*Math.ceil((12-n.getMonth())/4)),i[e]=p.getMonthsRange(+e).slice(-a).map(t=>p.getDate(+e,t)).map(e=>({formatted:t[e.getMonth()],formattedLong:`${s[e.getMonth()]} ${e.getFullYear()}`,date:e,available:!!(null==o?void 0:o.find(t=>t===e.getMonth()+1))}))}),i}static monthToOption(e){const t=p.shortMonths(),s=p.longMonths();return Object.entries(e).length?Object.entries(e).map(([e,t])=>t.map(t=>p.getDate(+e,t))).reduce((e,t)=>e.concat(t)).map(e=>({formatted:t[e.getMonth()],formattedLong:`${s[e.getMonth()]} ${e.getFullYear()}`,date:e,available:!0})):[]}static getDate(e,t){return new Date(e,t-1,1)}static getEmptyBlocks(e){const t=p.copyDate(e);t.setDate(1);const s=t.getDay();return new Array(s>0?s-1:6).fill(null)}static format(e,t="iso"){const s=p.copyDate(e),i={MM:p.shortMonths()[s.getMonth()],LLL:p.longMonths()[s.getMonth()],mm:p.prependZero(s.getMonth()+1),dd:p.prependZero(s.getDate()),yyyy:s.getFullYear(),iso:p.getISODate(s)};return t.replace(/MM|LLL|mm|dd|yyyy|iso/gi,e=>i[e])}static getOffseted(e,t=!0){const s=e.getTimezoneOffset();return new Date((t?6e4*s:6e4*-s)+e.getTime())}static getISODate(e){const t=p.copyDate(e);return t.setUTCHours(24,0,0,0),t.toISOString()}static getCurrentDay(e){const t=new Date;return t.setDate(t.getDate()+e||0),t}static sameDay(e,t){return(null==e?void 0:e.getFullYear())===(null==t?void 0:t.getFullYear())&&(null==e?void 0:e.getMonth())===(null==t?void 0:t.getMonth())&&(null==e?void 0:e.getDate())===(null==t?void 0:t.getDate())}static sameMonth(e,t){return(null==e?void 0:e.getFullYear())===(null==t?void 0:t.getFullYear())&&(null==e?void 0:e.getMonth())===(null==t?void 0:t.getMonth())}static shortMonths(){return this.marketConfiguration.shortMonth}static longMonths(){return this.marketConfiguration.longMonths}static shortDays(){return this.marketConfiguration.shortDays}static mediumDays(){return this.marketConfiguration.mediumDays}static copyDate(e){return"object"==typeof e?new Date(e.getTime()):new Date(e)}static prependZero(e){return e>9?""+e:"0"+e}}var b,u,m;h([l(d)],p,"marketConfiguration",void 0),function(e){e[e.destinations=0]="destinations",e[e.departures=1]="departures",e[e.both=2]="both"}(b||(b={})),function(e){e[e.month=0]="month",e[e.day=1]="day"}(u||(u={})),function(e){e[e.PACKAGES=1]="PACKAGES",e[e.HOTELS=2]="HOTELS"}(m||(m={}));const g=(e,t)=>{let s;return(...i)=>{clearTimeout(s),s=setTimeout(()=>{clearTimeout(s),e(...i)},t)}},f=function(e,t,s){const i=[...e];return arguments.length>2?i.splice(t,1,s):i.splice(t,1),i};function v(e,t){const s=/\W+/g;if(!t)return e;return t.replace(s," ").split(" ").map(e=>e.trim()).filter(e=>!!e).reduce((e,t)=>{const s=new RegExp("(?![^<]*>)"+t,"gi");return e.replace(s,"$&")},e)}var x;function y(e,t,...s){if(x[e.code])return e.preventDefault(),null==t||t(...s),!1}!function(e){e.Enter="Enter",e.Space="Space"}(x||(x={}));class w{constructor(){this.subscriptions=new Map}next(e){this.subscriptions.forEach(t=>t(e))}subscribe(e){const t=Symbol();return this.subscriptions.set(t,e),{unsubscribe:()=>this.unsubscribe(t)}}asObservable(){return{subscribe:this.subscribe.bind(this)}}unsubscribe(e){this.subscriptions.delete(e)}}class k extends w{constructor(){super()}next(e){this.value=e,super.next(this.value)}subscribe(e){return void 0!==this.value&&e(this.value),super.subscribe(e)}}const O=new class{constructor(){var e;this.window=window,this.document=document,this.location=null===(e=this.document)||void 0===e?void 0:e.location,this.rootElement="#sb-connector"}get userAgent(){var e;return null===(e=this.getWindowProperty("navigator"))||void 0===e?void 0:e.userAgent}get isIPhoneOrIpad(){return!!/iPhone|iPad/i.test(this.userAgent)}getCookie(e){let t;try{const s=RegExp(e+"[^;]+").exec(this.document.cookie);t=decodeURIComponent(s?s.toString().replace(/^[^=]+./,""):"")}catch(e){t=""}return t}setCookie(e,t,s=!1,i=!1){if(!this.document)return;const a=new Date,r=s?0:new Date(a.setFullYear(a.getFullYear()+1)),c=i?" secure=true;":"",l=(d=this.getHostname(),null!==(h={[n.DEV]:o.Io,[n.INTEGRATION]:o.Io,[n.TEST]:o.Io,[n.STAGING]:o.Com,[n.PRODUCTION]:o.Com}[d])&&void 0!==h?h:d);var d,h;this.document.cookie=`${e}=${t}; expires=${r}; path=/; domain=${l};${c}`}getCookiesByPattern(e){var t,s,i;return null!==(i=null===(s=null===(t=this.document)||void 0===t?void 0:t.cookie)||void 0===s?void 0:s.match(e))&&void 0!==i?i:[]}isCookieTruthy(e){const t=this.getCookie(e);return"true"===t||"1"===t}scrollIntoViewPort(e,t){const s=this.getElement(e);s&&s.scrollIntoView(t)}scrollToTop(){this.window&&this.window.scrollTo(0,0)}getElement(e,t=this.rootElement){return this.document.querySelector(t).querySelector(e)}getGlobalElement(e){return this.document.querySelector(e)}navigate(e){this.location&&this.location.assign(e)}getLocationProperty(e){var t;return this.location&&e&&null!==(t=this.location[e])&&void 0!==t?t:""}getWindowProperty(e){var t;return this.window&&e&&null!==(t=this.window[e])&&void 0!==t?t:""}getScrollY(){return this.getWindowProperty("scrollY")||this.getWindowProperty("pageYOffset")||0}waitUntilScrollTo(e=0){var t;const s=new k,i=()=>{const t=this.getWindowProperty("pageYOffset");return t+1>=e&&t-1<=e};if(i())s.next(!0);else{const e=((e,t)=>{let s;return(...i)=>{s||(e(...i),s=setTimeout(()=>s=null,t))}})(()=>{var t;i()&&(s.next(!0),null===(t=this.window)||void 0===t||t.removeEventListener("scroll",e))},20);null===(t=this.window)||void 0===t||t.addEventListener("scroll",e,{passive:!0})}return s.asObservable()}addTag(e,t,s,i=""){const n="string"==typeof s?document.querySelector(s):s,o=document.createElement(e);Object.keys(t).map(e=>{o[e]=t[e]}),"insertAfter"===i&&n.parentNode?n.parentNode.insertBefore(o,n.nextSibling):"insertBefore"===i&&n?n.insertBefore(o,n.firstChild):n.appendChild(o)}setStyle(e,t,s){e.style[t]=s}createElement(e){return this.document.createElement(e)}getHostname(){var e;return null!==(e=this.location.hostname)&&void 0!==e?e:""}pushToDataLayer(e){if(!this.window)return;this.getDataLayer().push(e)}isElementVisibleInContainer(e,t){const s=e.offsetTop,i=s+e.clientHeight,n=t.scrollTop,o=n+t.clientHeight;return s>=n&&i<=o||sString(t+2))],S={id:1,adults:2,children:[]},D={id:-1,adults:1,children:[]},E=e=>(e=>(null==e?void 0:e.length)&&-1!==e.indexOf("(")&&-1!==e.indexOf(")")?e.substr(1,e.length-2).split(")("):[])(e).map(e=>(e=>{if(-1===e.indexOf(":")){const[t,s]=e.split(",");return{adults:+t,children:new Array(+s).fill("")}}const t=e.split(":");return{adults:+t[0],children:t[1].split(",").map(e=>+e)}})(e)),C=e=>e.reduce((e,t)=>e+t.children.filter(e=>"<2"===e).length,0),j=e=>e.reduce((e,t)=>e+t.adults,0),A=e=>e.reduce((e,t)=>e+t.children.filter(e=>"<2"!==e).length,0),T=e=>j(e)+A(e)+C(e),I=e=>e.reduce((e,t)=>e+(e=>{return e.children.filter(Boolean).length?`(${e.adults}${e.children.length?":":""}${t=e.children,t.map(e=>"<2"===e?"0":e).join(",")})`:`(${e.adults},${e.children.length})`;var t})(t),""),R=e=>0===e?"<2":e.toString(),L=e=>E(e).map((e,t)=>({id:1+t,adults:e.adults,children:(e.children||[]).map(R)})),M=e=>!("isConnected"in e)||e.isConnected,N=((e,t)=>{let s;return(...i)=>{s&&clearTimeout(s),s=setTimeout(()=>{s=0,e(...i)},t)}})(e=>{for(let t of e.keys())e.set(t,e.get(t).filter(M))},2e3),P=e=>"function"==typeof e?e():e,V=(e,t)=>{const s=e.indexOf(t);s>=0&&(e[s]=e[e.length-1],e.length--)},F=(e,t)=>{const s=((e,t=((e,t)=>e!==t))=>{const s=P(e);let i=new Map(Object.entries(null!=s?s:{}));const n={dispose:[],get:[],set:[],reset:[]},o=()=>{var t;i=new Map(Object.entries(null!==(t=P(e))&&void 0!==t?t:{})),n.reset.forEach(e=>e())},a=e=>(n.get.forEach(t=>t(e)),i.get(e)),r=(e,s)=>{const o=i.get(e);t(s,o,e)&&(i.set(e,s),n.set.forEach(t=>t(e,s,o)))},c="undefined"==typeof Proxy?{}:new Proxy(s,{get:(e,t)=>a(t),ownKeys:e=>Array.from(i.keys()),getOwnPropertyDescriptor:()=>({enumerable:!0,configurable:!0}),has:(e,t)=>i.has(t),set:(e,t,s)=>(r(t,s),!0)}),l=(e,t)=>(n[e].push(t),()=>{V(n[e],t)});return{state:c,get:a,set:r,on:l,onChange:(t,s)=>{const i=l("set",(e,i)=>{e===t&&s(i)}),n=l("reset",()=>s(P(e)[t]));return()=>{i(),n()}},use:(...e)=>{const t=e.reduce((e,t)=>(t.set&&e.push(l("set",t.set)),t.get&&e.push(l("get",t.get)),t.reset&&e.push(l("reset",t.reset)),t.dispose&&e.push(l("dispose",t.dispose)),e),[]);return()=>t.forEach(e=>e())},dispose:()=>{n.dispose.forEach(e=>e()),o()},reset:o,forceUpdate:e=>{const t=i.get(e);n.set.forEach(s=>s(e,t,t))}}})(e,t);return s.use((()=>{if("function"!=typeof c.f)return{};const e=new Map;return{dispose:()=>e.clear(),get:t=>{const s=Object(c.f)();s&&((e,t,s)=>{const i=e.get(t);i?i.includes(s)||i.push(s):e.set(t,[s])})(e,t,s)},set:t=>{const s=e.get(t);s&&e.set(t,s.filter(c.e)),N(e)},reset:()=>{e.forEach(e=>e.forEach(c.e)),N(e)}}})()),s};var H;!function(e){e.FLIGHT_HOTEL="flightTab",e.HOTEL="hotelTab"}(H||(H={}));const _=new class{saveQueryParam(e,t){const s=this.getParams();s.set(e,t),this.setNewUrlInState(s)}getQueryParam(e){return this.getParams().get(e)}getOfferTypeFromUrl(){const e=this.getQueryParam("sp-opened-tab");return(e&&Object.values(H).includes(e)?e:H.FLIGHT_HOTEL)===H.FLIGHT_HOTEL?m.PACKAGES:m.HOTELS}getParams(){return new URLSearchParams(O.getLocationProperty("search"))}setNewUrlInState(e){const t=`${O.getLocationProperty("protocol")}//${O.getLocationProperty("host")}${O.getLocationProperty("pathname")}?${e.toString()}`;O.getWindowProperty("history").replaceState({path:t},"",t)}},z=p.getCurrentDay(4).toISOString(),B=p.getCurrentDay(2).toISOString(),q=[{name:"Maand",id:u.month},{name:"Kalender",id:u.day}],G=[{name:"Exacte datum",id:0,value:0},{name:"+/- 3 dagen",id:3,value:3},{name:"Hele maand",id:30,value:30}];var W,Q;!function(e){e.updatePageData="update-page-data",e.updateUserData="update-user-data",e.navigationEvent="navigation-event",e.domEvent="dom-event",e.errorEvent="error-event",e.debugEvent="debug-event"}(W||(W={})),function(e){e.pageView="page-view",e.transferChange="transfer-change",e.gtmAttributes="gtm-attributes"}(Q||(Q={}));var U=function(e,t){var s={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(s[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(i=Object.getOwnPropertySymbols(e);n{let i;const[n,o]=s.split("="),a=n.replace("tc.features.","");try{i=JSON.parse(o.toLowerCase())}catch(e){return t}return"object"==typeof i&&Object.hasOwnProperty.call(i,e)&&(t[a]=i[e]),"boolean"==typeof i&&(t[a]=i),t},{})}const ae=(e=>{const t=oe("nl"),s={};return Object.entries(e).forEach(([e,i])=>{if(Object.hasOwnProperty.call(t,e))return void(s[e]=t[e]);const n=i.markets.includes("nl"),o=ne(i.envs,O.getHostname());s[e]=n&&o}),F(s)})(se),{state:re}=ae;class ce{get loaded(){return this._loaded}constructor(e){this.url=e,this.svgIcon$=new k,this._loaded=!1}setSvgIcon(e){e&&(this._loaded=!0,this.svgIcon$.next(e))}}const le=new class{get sessionId(){return this._sessionId||this.establishSession()}establishSession(){return this._sessionId=O.getCookie("tct.session_id"),this._sessionId||(this._sessionId=crypto.randomUUID(),O.setCookie("tct.session_id",this._sessionId,!0,!0)),this._sessionId}};const de=new class{async post(e,t){try{const s=await fetch(e,{method:"POST",headers:this.getHeaders(),body:JSON.stringify(t)});return this.handleHttpResponse(s)}catch(e){return this.handleHttpError(e),null}}async getTextContent(e,t={}){return await fetch(e,t).then(e=>200===e.status?e.text():"").catch(this.handleHttpError.bind(this))}getHeaders(){return{"Content-Type":"application/json","x-session-id":le.sessionId}}async handleHttpResponse(e){return 200!==e.status?(this.handleHttpError(new Error(`${e.status}: ${e.text()}`)),null):await e.json()}handleHttpError(e){console.log(e)}},he={pinIcon:"/assets/icons/time-location/pin.svg",crossIcon:"/assets/icons/interface/cross-cancel.svg",mic:"/assets/icons/mic.svg",tripAdvisor:"/assets/icons/accom/tripadvisor.svg",star:"/assets/icons/star.svg",airplaneUpRight:"/assets/icons/travel/airplane-up-right.svg",plus:"/assets/icons/plus.svg",airportHotel:"/assets/icons/airport-hotel.svg",airplane:"/assets/icons/airplane.svg",calendarEmpty:"/assets/icons/time-location/calendar-empty.svg",male:"/assets/icons/user/male.svg",walletFinance:"/assets/icons/ecommerce/wallet-finance.svg",hotelIcon:"/assets/icons/time-location/local-center.svg",flight:"/assets/icons/travel/airplane-up-right.svg",weatherTemperature:"/assets/icons/weather/weather_temperature.svg",chatConversation:"/assets/icons/communication/chat-conversation-new.svg",chatBtn:"/assets/icons/misc/orange-chat-button.svg",search:"/assets/icons/search.svg",mobileSearch:"/assets/icons/mobile-search.svg",warning:"/assets/icons/interface/warning-notification.svg",tickDone:"/assets/icons/interface/tick-done-unfilled.svg",hotelBuilding:"/assets/icons/hotel-building.svg",history:"/assets/icons/interface/history.svg"};const pe=new class{constructor(){this.svgIconConfigs=new Map,this.inProgressFetches=new Map,this.iconsToRegister=he,Object.entries(this.iconsToRegister).forEach(([e,t])=>this.addSvgIcon(e,t))}getSvgIcon(e){const t=this.svgIconConfigs.get(e);if(t)return this.getSvgIconFromConfig(t);throw new Error(`Icon ${e} not registered`)}addSvgIcon(e,t){this.svgIconConfigs.set(e,new ce(t))}getSvgIconFromConfig(e){return e.loaded||this.fetchIcon(e),e.svgIcon$}svgElementFromString(e){const t=document.createElement("DIV");t.innerHTML=e;return t.querySelector("svg")}fetchIcon(e){const{url:t}=e;if(this.inProgressFetches.has(e.url))return;const s=de.getTextContent(t).then(t=>{const s=this.svgElementFromString(t).outerHTML;e.setSvgIcon(s)}).catch(e=>{c.a.isDev&&console.log("Error on fetching icons: "+e)}).finally(()=>this.inProgressFetches.delete(t));this.inProgressFetches.set(t,s)}},be=Object(c.h)(class extends c.b{constructor(){super(),this.__registerHost(),this.icon=void 0,this.svg=void 0}componentWillLoad(){this.iconSubscription=pe.getSvgIcon(this.icon).subscribe(e=>{this.svg=e,setTimeout(()=>{var e;return null===(e=this.iconSubscription)||void 0===e?void 0:e.unsubscribe()})})}disconnectedCallback(){var e;null===(e=this.iconSubscription)||void 0===e||e.unsubscribe()}render(){return Object(c.g)(c.c,{key:"7d6ea0a249994be6aea1b51631cb6d65663038ba"},Object(c.g)("div",{key:"c62a4d84241da47b085cc1a7752a8d26d676bd2e",class:"svg-icon-container",innerHTML:this.svg||""}))}static get style(){return".sc-sb-svg-icon-h{display:inline-block;line-height:1;height:24px;width:24px}.svg-icon-container.sc-sb-svg-icon{height:100%;width:100%}.svg-icon-container.sc-sb-svg-icon svg.sc-sb-svg-icon{display:block;width:100%;height:100%}"}},[2,"sb-svg-icon",{icon:[1],svg:[32]}]);function ue(){if("undefined"==typeof customElements)return;["sb-svg-icon"].forEach(e=>{switch(e){case"sb-svg-icon":customElements.get(e)||customElements.define(e,be)}})}ue();const me="nl"!==a.uk?"/eu":"",ge="/tc/api/ssapi/search/1.60";var fe;!function(e){e[e.package=1]="package",e[e.hotel=2]="hotel"}(fe||(fe={}));const ve=new class{async getQuickSearch(e){return await de.post((t=e.offerType,`${me}${ge}/${fe[t]}/GetQuickSearch`),e);var t}async getQuickSearchLite(e){return await de.post((t=e.offerType,`${me}${ge}/${fe[t]}/GetQuickSearchLite`),e);var t}async getAvailabilitySearch(e){return await de.post((t=e.offerType,`${me}${ge}/${fe[t]}/GetAvailability`),e);var t}},xe="Selecteer een bestemming, vertrek luchthaven en datum voordat u gaat zoeken a.u.b.",ye="Selecteer een bestemming en datum voordat u gaat zoeken a.u.b.",we="Selecteer een bestemming en vertrek luchthaven voordat u gaat zoeken a.u.b.",ke="Selecteer een bestemming voordat u gaat zoeken a.u.b.",Oe="Selecteer een bestemming a.u.b.",$e="Selecteer een vertrek luchthaven en datum voordat u gaat zoeken a.u.b.",Se="Selecteer een vertrek luchthaven voordat u gaat zoeken a.u.b.",De="Selecteer een vertrek luchthaven a.u.b.",Ee="Selecteer een datum voordat u gaat zoeken a.u.b.",Ce="Selecteer een bestemming en vertrek luchthaven voordat u een vertrekdatum selecteert a.u.b.",je="Selecteer een bestemming voordat u een vertrekdatum selecteert a.u.b.",Ae="Selecteer een vertrek luchthaven voordat u een vertrekdatum selecteert a.u.b.";var Te,Ie,Re,Le,Me,Ne,Pe;!function(e){e[e.info=0]="info",e[e.warning=1]="warning",e[e.error=2]="error"}(Te||(Te={})),function(e){e[e.Country=1]="Country",e[e.Region=2]="Region",e[e.Resort=3]="Resort",e[e.Hotel=4]="Hotel"}(Ie||(Ie={})),function(e){e.DESTINATIONS="destinations",e.DEP_AIRPORTS="departureAirports",e.DEP_DATE="departureDate",e.DURATION="duration",e.OCCUPATION="occupation"}(Re||(Re={})),function(e){e[e.GREEN=1]="GREEN",e[e.AMBER=2]="AMBER",e[e.RED=3]="RED"}(Le||(Le={})),function(e){e.top="top",e.center="center",e.bottom="bottom",e.auto="auto"}(Me||(Me={})),function(e){e.start="start",e.center="center",e.end="end"}(Ne||(Ne={})),function(e){e[e.HolidayType=1]="HolidayType",e[e.OfficialRating=2]="OfficialRating",e[e.Facilities=3]="Facilities",e[e.Tripadvisor=4]="Tripadvisor",e[e.BoardBasis=5]="BoardBasis",e[e.BudgetHotelFlight=6]="BudgetHotelFlight",e[e.BudgetHotelOnly=7]="BudgetHotelOnly",e[e.Destination=8]="Destination",e[e.Departure=9]="Departure",e[e.Airlines=10]="Airlines"}(Pe||(Pe={}));const Ve=new class{constructor(e){this.storage=e}getItem(e){return this.storage?this.storage.getItem(e):null}setItem(e,t){this.storage&&this.storage.setItem(e,t)}removeItem(e){this.storage&&this.storage.removeItem(e)}}(localStorage);function Fe(e){let t=null;try{const s=Ve.getItem(e);t=(null==s?void 0:s.startsWith("{"))||(null==s?void 0:s.startsWith("["))?JSON.parse(s):s}catch(e){if(c.a.isDev)throw e}return t}const He=e=>e===m.HOTELS?"recent-searches-hotels":"recent-searches-packages";const _e=new class{getSavedContext(){return Fe("recent-search-context")}saveSearch(e){const t=this.getSavedContext();t&&(e=>Object.keys(e).every(e=>-1!==Object.keys(a).indexOf(e)))(t)?Ve.setItem("recent-search-context",JSON.stringify(Object.assign(Object.assign({},t),{[e.market]:e}))):Ve.setItem("recent-search-context",JSON.stringify({[e.market]:e}))}getRecentSearches(e){var t;const s=this.getParsedRecentSearches(e);return null!==(t=null==s?void 0:s.nl)&&void 0!==t?t:[]}saveRecentSearch(e,t){let s=this.getParsedRecentSearches(t).nl;(null==s?void 0:s.find(t=>t.url===e.url))&&(s=s.filter(t=>t.url!==e.url));const i=[e,...null!=s?s:[]];this.saveRecentSearchesForCurrentMarket(i,t)}removeRecentSearch(e,t){const s=this.getParsedRecentSearches(t),i=s.nl;if(!i)return;const n=i.filter(t=>t.url!==e);this.saveRecentSearchesForCurrentMarket(n,t,s)}getParsedRecentSearches(e){const t=He(e),s=Ve.getItem(t);if(!s)return{};try{return JSON.parse(s)}catch(e){return{}}}saveRecentSearchesForCurrentMarket(e,t,s){s=s||this.getParsedRecentSearches(t);const i=He(t),n=Object.assign(Object.assign({},s),{nl:e.slice(0,5)});Ve.setItem(i,JSON.stringify(n))}},ze=e=>{var t,s,i;const[n,...o]=null!==(t=e.destinations)&&void 0!==t?t:[],a=(null===(s=e.accommodation)||void 0===s?void 0:s.id)?e.accommodation.name:`${n.name}${o.length?" +"+o.length:""}`;return{url:e.url,destination:a,departure:p.format(e.departure,"dd MM"),duration:e.durations[0],occupation:T(L(e.pax)),airport:(null===(i=e.departureAirports)||void 0===i?void 0:i.length)?e.departureAirports.map(e=>e.isGroup?e.name:e.code).join(", "):null}},Be=Object(c.h)(class extends c.b{constructor(){super(),this.__registerHost(),this.search=Object(c.d)(this,"search",7),this.savedSearches={},this.offerType=void 0,this.searches=[],this.searchesToShow=[]}componentWillLoad(){const e=_e.getRecentSearches(this.offerType);this.savedSearches=e.reduce((e,t)=>(e[t.url]=t,e),{}),this.searches=e.map(ze),this.searchesToShow=this.searches.slice(0,3)}onSearchesChange(){this.searchesToShow=this.searches.slice(0,3)}navigateTo(e){const t=this.savedSearches[e];_e.saveRecentSearch(t,this.offerType),this.updateRequestOptions(t),setTimeout(()=>this.search.emit(e))}removeSearch(e,t){t.stopPropagation(),this.searches=this.searches.filter(t=>t.url!==e),_e.removeRecentSearch(e,this.offerType)}updateRequestOptions(e){var t;te.requestOptions=Object.assign(Object.assign(Object.assign({},te.requestOptions),(null===(t=e.accommodation)||void 0===t?void 0:t.id)?{accommodation:e.accommodation.id,destinations:[]}:{destinations:e.destinations.map(e=>e.id),accommodation:null}),{departureAirports:this.getAirportParamFromSaved(e.departureAirports),departure:e.departure,postOffset:e.postOffset,preOffset:e.preOffset,durations:e.durations,pax:e.pax})}getAirportParamFromSaved(e){var t;return[...null!==(t=null==e?void 0:e.reduce((e,t)=>(t.isGroup?t.code.split(",").forEach(t=>e.add(t)):e.add(t.code),e),new Set))&&void 0!==t?t:[]]}render(){return Object(c.g)(c.c,{key:"c97988d844caaedb5d447c5bd3ef2382f6bae974"},this.searchesToShow.length?Object(c.g)("div",{class:"recent-searches"},Object(c.g)("h4",{class:"recent-searches-title"},"Jouw recente zoekopdrachten"),Object(c.g)("div",{class:"recent-searches-list"},this.searchesToShow.map(e=>{var t;return Object(c.g)("div",{class:"recent-searches-item",onClick:()=>this.navigateTo(e.url)},Object(c.g)("sb-svg-icon",{icon:"history",class:"recent-searches-item-icon"}),Object(c.g)("div",{class:"recent-searches-item-label"},Object(c.g)("div",{class:"recent-searches-item-destination"},e.destination),Object(c.g)("div",{class:"recent-searches-item-details"},`${(null===(t=e.airport)||void 0===t?void 0:t.length)?e.airport+" - ":""}${e.departure?e.departure+" - ":""}${e.duration} nachten - ${e.occupation} gasten`)),Object(c.g)("sb-svg-icon",{icon:"crossIcon",class:"recent-searches-item-remove",onClick:t=>this.removeSearch(e.url,t)}))}))):null)}static get watchers(){return{searches:["onSearchesChange"]}}static get style(){return'.recent-searches.sc-sb-recent-searches{margin-bottom:8px}.recent-searches-title.sc-sb-recent-searches{font-size:16px;line-height:24px;font-weight:600;font-family:"Source Sans Pro", arial, sans-serif;letter-spacing:normal;margin:0;margin-bottom:12px}.recent-searches-list.sc-sb-recent-searches{margin-bottom:12px}.recent-searches-item.sc-sb-recent-searches{display:flex;align-items:center;gap:16px;padding:4px 0;cursor:pointer}.recent-searches-item-label.sc-sb-recent-searches{flex:1}.recent-searches-item-destination.sc-sb-recent-searches{font-size:16px;line-height:24px;font-weight:400;font-family:"Source Sans Pro", arial, sans-serif;letter-spacing:normal;margin:0}.recent-searches-item-details.sc-sb-recent-searches{font-size:14px;line-height:22px;font-weight:400;font-family:"Source Sans Pro", arial, sans-serif;letter-spacing:normal;margin:0;color:#555}.recent-searches-item-icon.sc-sb-recent-searches,.recent-searches-item-remove.sc-sb-recent-searches{width:20px;height:20px}'}},[2,"sb-recent-searches",{offerType:[2,"offer-type"],searches:[32],searchesToShow:[32]},void 0,{searches:["onSearchesChange"]}]);function qe(){if("undefined"==typeof customElements)return;["sb-recent-searches","sb-svg-icon"].forEach(e=>{switch(e){case"sb-recent-searches":customElements.get(e)||customElements.define(e,Be);break;case"sb-svg-icon":customElements.get(e)||ue()}})}function Ge(e,t,s,i){var n;const o=t.offerType===m.PACKAGES;let a=`${e?e.split("?")[0]:`/${o?"nl/zoek":"nl/hotels"}/`}?duration=${t.durations}&pax=${t.pax}`;if(t.destinations.length&&(a+="&destination="+t.destinations.join(",")),t.departure||e&&t.accommodation){const e=J(t.departure||z,t.postOffset,t.preOffset);a+="&date="+p.format(e,"yyyy-mm-dd")}t.offerType===m.PACKAGES&&(null===(n=t.departureAirports)||void 0===n?void 0:n.length)&&(a+="&airport="+t.departureAirports.filter(Boolean).join(",")),(t.hotelId||!e&&t.accommodation)&&(a+="&hotelId="+(t.hotelId||t.accommodation));const r=function(e,t){var s,i;let n="";e.budget&&(n+=`(${t===m.PACKAGES?Pe.BudgetHotelFlight:Pe.BudgetHotelOnly},${e.budget})`);e.holidayType&&(n+=`(${Pe.HolidayType},${e.holidayType})`);(null===(s=e.officialRating)||void 0===s?void 0:s.length)&&(n+=`(${Pe.OfficialRating},${e.officialRating.join(",")})`);e.tripadvisorRating&&(n+=`(${Pe.Tripadvisor},${e.tripadvisorRating})`);(null===(i=e.boardBasis)||void 0===i?void 0:i.length)&&(n+=`(${Pe.BoardBasis},${e.boardBasis.join(",")})`);return n?"&facets="+n:""}(s||{},t.offerType);if(r?a+=r:i&&(a+="&facets="+i),t.departure&&t.postOffset){let e="";e=t.postOffset===t.preOffset?t.postOffset.toString():`(${t.preOffset},${t.postOffset})`,a+="&offset="+e}return encodeURI(a)}qe();class We extends w{constructor(e=null){super(),this.value=e}next(e){this.value=e,super.next(this.value)}subscribe(e){return e(this.value),super.subscribe(e)}getValue(){return this.value}}const Qe=(e,t)=>e===t,Ue=(e,t)=>{let s,i=!0;const n=null!=t?t:Qe;return t=>{const o=t;!i&&n(s,o)||(i=!1,s=o,e(o))}},Ke=(e,t)=>{if(e===t)return!0;if(!(e instanceof Object&&t instanceof Object))return!1;for(const s in e)if(Object.hasOwnProperty.call(e,s)){if(!Object.hasOwnProperty.call(t,s))return!1;if(e[s]!==t[s]){if("object"!=typeof e[s])return!1;if(!Ke(e[s],t[s]))return!1}}for(const s in t)if(Object.hasOwnProperty.call(t,s)&&!Object.hasOwnProperty.call(e,s))return!1;return!0},Ye=(e,t=!1)=>(t&&e(ee.state.requestOptions),ee.onChange("requestOptions",e)),Je=(e,t)=>Ke(e,t),Xe=(e,t={emitInitial:!1},s=Je)=>((e,t)=>Ye(t=>e({departure:null==t?void 0:t.departure,preOffset:null==t?void 0:t.preOffset,postOffset:null==t?void 0:t.postOffset}),t))(e=s?Ue(e,s):e,t.emitInitial),Ze=(e,t)=>(null==e?void 0:e.length)===(null==t?void 0:t.length)&&e.every(e=>t.includes(e)),et=(e,t={emitInitial:!1},s=Ze)=>((e,t)=>Ye(t=>e(null==t?void 0:t.durations),t))(e=s?Ue(e,s):e,t.emitInitial),tt=e=>Ye(t=>e(null==t?void 0:t.destinationQuery)),st=(e,t)=>Ke(e,t),it=(e,t=st)=>(e=>Ye(t=>e(null==t?void 0:t.departureAirports)))(e=t?Ue(e,t):e);const nt=new class{constructor(){this.openSectionSub=new w,this.onOpenSection$=this.openSectionSub.asObservable()}openSection(e){this.openSectionSub.next(e)}},ot={regions:[],hotel:"",airports:[],date:{displayDate:"",isFlexible:!1},duration:"",guests:""};const at=new class{constructor(){this.summary$=new We(ot)}get summary(){return this.summary$.getValue()}set summary(e){this.summary$.next(Object.assign(Object.assign({},this.summary),e))}updateSummary(e){this.summary=Object.assign({},e)}},rt=e=>(e(ee.state.global),ee.onChange("global",e)),ct=e=>rt(t=>e(null==t?void 0:t.isQuickSearchLoading)),lt=(e,t=((e,t)=>e===t))=>rt(s=>(e=t?Ue(e,t):e)(null==s?void 0:s.searchOptionsLoaded)),dt=(e,t)=>((null==t?void 0:t.emitInitial)&&e(ee.state.searchOptions),ee.onChange("searchOptions",e)),ht=(e,t)=>Ke(e,t),pt=(e,t=ht)=>dt(s=>(e=t?Ue(e,t):e)(null==s?void 0:s.departureAirports)),bt={confirm:{text:"Toepassen",owat:"compact-search"},cancel:{text:"Annuleer",owat:"compact-cancel"}},ut={confirm:{text:"Volgende",owat:"next"},cancel:{text:"Klaar",owat:"done"}},mt={confirm:{text:"Zoek",owat:"search"},cancel:{text:"Klaar",owat:"done"}};const gt=new class{constructor(){this.closeSub=new w,this.openedByClickSub=new w,this.onClose$=this.closeSub.asObservable(),this.openedByClick$=this.openedByClickSub.asObservable()}close(){this.closeSub.next()}triggerOpenedByClick(){this.openedByClickSub.next(),te.isBarPristine=!1}getDropdownActions(e,t,s){return e?bt:t||(s?mt:ut)}},ft=Object(c.h)(class extends c.b{constructor(){super(),this.__registerHost(),this.changed=Object(c.d)(this,"changed",7),this.activated=Object(c.d)(this,"activated",7),this.value=void 0,this.align=Me.center,this.alignOffsets={},this.menuHeight=256,this.opened=!1}get topOffset(){var e;return(null===(e=this.alignOffsets)||void 0===e?void 0:e.top)||0}get bottomOffset(){var e;return(null===(e=this.alignOffsets)||void 0===e?void 0:e.bottom)||0}get calculatedAlignClass(){if(!(this.align in Me))return"";const e=this.hostElement.getBoundingClientRect();return this.align!==Me.auto?this.align:e.y+this.menuHeight+this.bottomOffset{this.autoScrollToSelected()},0))}onOptionSelected(e){this.changed.emit(e.detail),this.opened=!1}toggle(){this.opened=!this.opened}autoScrollToSelected(){var e;const t=null===(e=this.menuRef)||void 0===e?void 0:e.querySelector("sb-custom-select-option[selected]");t&&!O.isElementVisibleInContainer(t,this.menuRef)&&t.scrollIntoView({behavior:"auto",block:"nearest"})}render(){return Object(c.g)(c.c,{key:"27fbd118d0fa4337072a49e1a9ced0e5ab856ff0"},Object(c.g)("div",{key:"8264b413cb5accc38ffacadd13b43d823ddf411d",class:"custom-select-value"},this.value||Object(c.g)("span",{class:"custom-select-placeholder"},"Selecteer"),Object(c.g)("div",{key:"7f2b693b3bdf7b9f41bd3240342711e3baa17ecd",class:"custom-select-arrow"})),Object(c.g)("div",{key:"fbb156a3286c6ee3cb89ff854e63994b7c6fb5ff",class:"custom-select-value-backdrop",tabindex:"0",role:"select",onKeyDown:e=>y(e,this.toggle.bind(this)),onClick:this.toggle.bind(this)}),this.opened?[Object(c.g)("div",{class:"custom-select-backdrop",onClick:this.toggle.bind(this)}),Object(c.g)("div",{ref:e=>this.menuRef=e,class:"custom-select-menu "+this.calculatedAlignClass,style:this.calculatedStyles},Object(c.g)("slot",null))]:Object(c.g)("template",null,Object(c.g)("slot",null)))}get hostElement(){return this}static get watchers(){return{opened:["onOpenedChange"]}}static get style(){return".sc-sb-custom-select-h{display:flex;align-items:center;min-width:70px;position:relative}.invalid.sc-sb-custom-select-h .custom-select-placeholder.sc-sb-custom-select{color:inherit}.custom-select-value.sc-sb-custom-select{display:flex;align-items:center}.custom-select-value.sc-sb-custom-select:focus{outline:thin dotted;outline-color:#000}.custom-select-value-backdrop.sc-sb-custom-select{cursor:pointer;position:absolute;width:100%;height:100%}.custom-select-placeholder.sc-sb-custom-select{color:rgba(0, 0, 0, 0.5)}.custom-select-arrow.sc-sb-custom-select{border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid rgba(0, 0, 0, 0.5);margin-left:6px}.custom-select-menu.sc-sb-custom-select{scrollbar-width:thin;scrollbar-color:#c4c4c4 #f5f5f5;position:absolute;left:2px;z-index:1;max-height:256px;background:#fff;overflow:hidden auto;border-radius:4px;box-shadow:0 2px 4px -1px rgba(0, 0, 0, 0.2), 0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12)}.custom-select-menu.sc-sb-custom-select::-webkit-scrollbar{width:4px;height:0;background-color:#f5f5f5}.custom-select-menu.sc-sb-custom-select::-webkit-scrollbar-track{border-radius:30px;background-color:#f5f5f5}.custom-select-menu.sc-sb-custom-select::-webkit-scrollbar-thumb{border-radius:30px;background-color:#c4c4c4}.custom-select-menu.top.sc-sb-custom-select{top:-256px}.custom-select-menu.center.sc-sb-custom-select{top:-128px}.custom-select-menu.bottom.sc-sb-custom-select{top:2px}.custom-select-menu-container.sc-sb-custom-select:not(.opened){display:none}.custom-select-backdrop.sc-sb-custom-select{position:fixed;top:0;left:0;height:100vh;width:100vw;z-index:1}"}},[6,"sb-custom-select",{value:[1],align:[1],alignOffsets:[16],menuHeight:[2,"menu-height"],opened:[32]},[[0,"optionSelected","onOptionSelected"]],{opened:["onOpenedChange"]}]);function vt(){if("undefined"==typeof customElements)return;["sb-custom-select"].forEach(e=>{switch(e){case"sb-custom-select":customElements.get(e)||customElements.define(e,ft)}})}vt();const xt=Object(c.h)(class extends c.b{constructor(){super(),this.__registerHost(),this.optionSelected=Object(c.d)(this,"optionSelected",7),this.value=void 0,this.selected=void 0}selectOption(){this.optionSelected.emit(this.value)}render(){return Object(c.g)(c.c,{key:"4e341e84b6acf4434042b4d515a6b1c3ea01d193",onClick:this.selectOption.bind(this),onKeyDown:e=>y(e,this.selectOption.bind(this)),tabindex:"0",role:"option"},Object(c.g)("slot",{key:"ce2feed168332a8cac62f203859c7118ceabecba"}))}static get style(){return".sc-sb-custom-select-option-h{display:block;min-width:112px;line-height:3em;height:3em;padding:0 16px;cursor:pointer;color:#000}.sc-sb-custom-select-option-h:focus{background-color:rgba(0, 0, 0, 0.05);outline:none}.sc-sb-custom-select-option-h:hover{background:rgba(0, 0, 0, 0.04)}[selected].sc-sb-custom-select-option-h{background:rgba(0, 0, 0, 0.12)}"}},[6,"sb-custom-select-option",{value:[8],selected:[516]}]);function yt(){if("undefined"==typeof customElements)return;["sb-custom-select-option"].forEach(e=>{switch(e){case"sb-custom-select-option":customElements.get(e)||customElements.define(e,xt)}})}yt();const wt=Object(c.h)(class extends c.b{constructor(){super(),this.__registerHost()}render(){return Object(c.g)(c.c,{key:"bd913c025d1d6aa42c26913693854536e33b7618"})}static get style(){return".sc-sb-list-divider-h{display:flex;background-color:#d9d9d9;flex-shrink:0;height:1px;margin:20px 0}"}},[2,"sb-list-divider"]);function kt(){if("undefined"==typeof customElements)return;["sb-list-divider"].forEach(e=>{switch(e){case"sb-list-divider":customElements.get(e)||customElements.define(e,wt)}})}kt();const Ot=Object(c.h)(class extends c.b{constructor(){super(),this.__registerHost(),this.type=void 0,this.align=Ne.start}render(){return Object(c.g)(c.c,{key:"fdfa8a64c99226e30095560e8872416714d9d413"},Object(c.g)("div",{key:"f352808b96ce56dbd950ccd6b7ce8c0ba30746fc",class:`message ${Te[this.type]} ${this.align in Ne?this.align:""}`},Object(c.g)("slot",{key:"4a4d5047074dedcb1e3708af015e74bc3a1a03a5"})))}static get style(){return'.sc-sb-notification-text-h{font-size:16px;line-height:24px;font-weight:400;font-family:"Source Sans Pro", arial, sans-serif;letter-spacing:normal;margin:0;display:block;margin-bottom:16px;color:#59a498}.sc-sb-notification-text-h .message.sc-sb-notification-text{display:flex;align-items:baseline}.sc-sb-notification-text-h .message.start.sc-sb-notification-text{justify-content:flex-start}.sc-sb-notification-text-h .message.center.sc-sb-notification-text{justify-content:center}.sc-sb-notification-text-h .message.end.sc-sb-notification-text{justify-content:flex-end}.sc-sb-notification-text-h .info.sc-sb-notification-text{color:#59a498}.sc-sb-notification-text-h .warning.sc-sb-notification-text{color:#ffbc10}.sc-sb-notification-text-h .error.sc-sb-notification-text{color:#970202}'}},[6,"sb-notification-text",{type:[2],align:[1]}]);function $t(){if("undefined"==typeof customElements)return;["sb-notification-text"].forEach(e=>{switch(e){case"sb-notification-text":customElements.get(e)||customElements.define(e,Ot)}})}$t();const St=Object(c.h)(class extends c.b{constructor(){super(),this.__registerHost(),this.circle=60,this.bullet=5,this.isGreen=!1}get bulletSize(){return this.bullet+"px"}get circleSize(){return this.circle+"px"}render(){return Object(c.g)(c.c,{key:"c5cd98c107e187e184f3508667ca6fe5be9c098c"},Object(c.g)("div",{key:"d44f3a395b311dc55eb0ba24a1218cabe158e996",class:"lds-default"+(this.isGreen?" green":""),style:{width:this.circleSize,height:this.circleSize}},new Array(12).fill(null).map(()=>Object(c.g)("div",{style:{width:this.bulletSize,height:this.bulletSize}}))))}static get style(){return".sc-sb-spinner-circle-h{display:flex;justify-content:center;align-items:center}.lds-default.sc-sb-spinner-circle{display:inline-block;position:relative;width:80px;height:80px}.lds-default.green.sc-sb-spinner-circle div.sc-sb-spinner-circle{background:#59a498}.lds-default.sc-sb-spinner-circle div.sc-sb-spinner-circle{position:absolute;width:6px;height:6px;background:#fff;border-radius:50%;animation:lds-default 1.2s linear infinite}@keyframes lds-default{0%,20%,80%,100%{transform:scale(1)}50%{transform:scale(1.5)}}.lds-default.sc-sb-spinner-circle div.sc-sb-spinner-circle:nth-child(1){animation-delay:0s;top:46.5%;left:82.5%}.lds-default.sc-sb-spinner-circle div.sc-sb-spinner-circle:nth-child(2){animation-delay:-0.1s;top:27.5%;left:77.5%}.lds-default.sc-sb-spinner-circle div.sc-sb-spinner-circle:nth-child(3){animation-delay:-0.2s;top:13.7%;left:65%}.lds-default.sc-sb-spinner-circle div.sc-sb-spinner-circle:nth-child(4){animation-delay:-0.3s;top:8.7%;left:46.2%}.lds-default.sc-sb-spinner-circle div.sc-sb-spinner-circle:nth-child(5){animation-delay:-0.4s;top:13.7%;left:27.5%}.lds-default.sc-sb-spinner-circle div.sc-sb-spinner-circle:nth-child(6){animation-delay:-0.5s;top:27.5%;left:13.7%}.lds-default.sc-sb-spinner-circle div.sc-sb-spinner-circle:nth-child(7){animation-delay:-0.6s;top:46.25%;left:8.7%}.lds-default.sc-sb-spinner-circle div.sc-sb-spinner-circle:nth-child(8){animation-delay:-0.7s;top:65%;left:13.7%}.lds-default.sc-sb-spinner-circle div.sc-sb-spinner-circle:nth-child(9){animation-delay:-0.8s;top:77.5%;left:27.5%}.lds-default.sc-sb-spinner-circle div.sc-sb-spinner-circle:nth-child(10){animation-delay:-0.9s;top:82.5%;left:46.2%}.lds-default.sc-sb-spinner-circle div.sc-sb-spinner-circle:nth-child(11){animation-delay:-1s;top:77.5%;left:65%}.lds-default.sc-sb-spinner-circle div.sc-sb-spinner-circle:nth-child(12){animation-delay:-1.1s;top:65%;left:77.5%}"}},[2,"sb-spinner-circle",{circle:[2],bullet:[2],isGreen:[4,"is-green"]}]);function Dt(){if("undefined"==typeof customElements)return;["sb-spinner-circle"].forEach(e=>{switch(e){case"sb-spinner-circle":customElements.get(e)||customElements.define(e,St)}})}Dt();const Et=Object(c.h)(class extends c.b{constructor(){super(),this.__registerHost()}render(){return Object(c.g)(c.c,{key:"d2bbe00feb82e61df6151498badc4ad9cafa1c23"},Object(c.g)("slot",{key:"c1de26c6c7c8c5091d7f92f6fc9d76427e0d9b8d"}))}static get style(){return".sc-sb-spinner-underlay-h{position:absolute;background-color:rgba(255, 255, 255, 0.2);backdrop-filter:blur(4px);border-radius:12px;display:flex;align-items:center;justify-content:space-around;top:0;left:0;right:0;z-index:10;bottom:0}"}},[6,"sb-spinner-underlay"]);function Ct(){if("undefined"==typeof customElements)return;["sb-spinner-underlay"].forEach(e=>{switch(e){case"sb-spinner-underlay":customElements.get(e)||customElements.define(e,Et)}})}Ct();var jt;!function(e){e.confirm="confirm",e.cancel="cancel"}(jt||(jt={}));const At=Object(c.h)(class extends c.b{constructor(){super(),this.__registerHost(),this.apply=Object(c.d)(this,"apply",3),this.cancel=Object(c.d)(this,"cancel",3),this.contentRefInit=Object(c.d)(this,"contentRefInit",7),this.withTitle=!0,this.actions=void 0,this.withDesktopActions=void 0,this.leftSide=void 0,this.maxHeight="",this.disabledConfirm=void 0,this.isLoading=!1,this.extraActionsContent=void 0}async scrollToBottom(){this.contentRef.scrollTo({top:this.contentRef.scrollHeight,behavior:"smooth"})}onScreenResize(){this.adjustScrollPosition({horizontal:!0})}componentDidLoad(){this.contentRefInit.emit(this.contentRef)}connectedCallback(){var e,t;e=this.element,t=()=>{this.resizeObserver=new ResizeObserver(()=>this.adjustScrollPosition()),this.resizeObserver.observe(this.element)},e.componentOnReady?e.componentOnReady().then(e=>t(e)):requestAnimationFrame(()=>t(e))}disconnectedCallback(){this.resizeObserver.disconnect()}onApply(e){e.stopPropagation(),this.apply.emit()}onCancel(e){e.stopPropagation(),this.cancel.emit()}getActionText(e){var t,s,i,n;return this.actions&&(null===(s=null===(t=this.actions)||void 0===t?void 0:t[e])||void 0===s?void 0:s.text)?null===(n=null===(i=this.actions)||void 0===i?void 0:i[e])||void 0===n?void 0:n.text:mt[e].text}adjustScrollPosition(e){const t=this.element.getBoundingClientRect(),s=O.getWindowProperty("innerHeight"),i=O.getWindowProperty("innerWidth"),n=t.bottom+20>s,o=t.top-60<0&&t.height+60i;(n||o||a)&&(a&&(this.element.style.right="0"),(null==e?void 0:e.horizontal)||(n?O.getWindowProperty("scrollTo")({top:O.getScrollY()-(s-t.bottom)+20,behavior:"smooth"}):o&&O.getWindowProperty("scrollTo")({top:O.getScrollY()+(t.top-60),behavior:"smooth"})))}render(){var e,t,s;return Object(c.g)(c.c,{key:"faa8ae887f59a5d6407a9e8e96d5c40a5c1a32c6",class:{"with-desktop-actions":this.withDesktopActions,"left-side":this.leftSide},style:{"--max-dropdown-height":this.maxHeight}},this.isLoading&&Object(c.g)("sb-spinner-underlay",null,Object(c.g)("sb-spinner-circle",{isGreen:!0})),Object(c.g)("div",{key:"acc8819310bf5e457905be0d392514c166687217",class:"header"},Object(c.g)("slot",{key:"371d802fe518aacca395fd29bb4ecec13c3f308e",name:"header"})),this.withTitle?Object(c.g)("div",{class:"title"},Object(c.g)("slot",{name:"title"})):Object(c.g)("template",null,Object(c.g)("slot",{name:"title"})),Object(c.g)("div",{key:"de1ca8c216503f4902d9be67503858628e94a261",class:"content",ref:e=>this.contentRef=e},Object(c.g)("slot",{key:"2cc747b06a75b2800ed72adcd0e3d8ecbd1e3fce",name:"content"})),Object(c.g)("div",{key:"1b7691c1dbbf9fa8f5e95e12a36b401a794df958",class:"actions"},this.extraActionsContent?[null===(e=this.extraActionsContent)||void 0===e?void 0:e.call(this),Object(c.g)("list-divider",{class:"extra-divider"})]:null,Object(c.g)("div",{key:"1aa65a161e93c8654c68a3ba957177b1f71bbd78",class:"actions-buttons"},(null===(t=this.actions)||void 0===t?void 0:t.cancel)&&Object(c.g)("button",{class:"actions-button actions-button-close",onKeyDown:e=>y(e,this.onCancel.bind(this),e),onClick:this.onCancel.bind(this)},this.getActionText(jt.cancel)),Object(c.g)("button",{key:"51315783fc775a2da93371efac30b71aa5e6c583",class:{"actions-button":!0,"actions-button-apply":!0},"data-caption":null===(s=this.getActionText(jt.confirm))||void 0===s?void 0:s.toLowerCase(),disabled:this.disabledConfirm,onKeyDown:e=>y(e,this.onApply.bind(this),e),onClick:this.onApply.bind(this)},this.getActionText(jt.confirm)))))}get element(){return this}static get style(){return'.sc-sb-overlay-dropdown-h{display:flex;flex-direction:column;background:#fff;height:100%;width:100%;position:relative}.sc-sb-overlay-dropdown-h:has(sb-spinner-underlay){min-height:375px}@media (min-width: 1200px){.sc-sb-overlay-dropdown-h{--max-height:var(--max-dropdown-height, 65vh);position:absolute;border-radius:12px;box-shadow:0 2px 4px 0 rgba(0, 0, 0, 0.5);min-height:200px;max-height:var(--max-height);max-width:375px;height:auto;width:375px;padding-top:16px}.left-side.sc-sb-overlay-dropdown-h{--max-height:var(--max-dropdown-height, 80vh);top:-150px;right:calc(100% - 50px);left:auto;max-height:var(--max-height)}.with-desktop-actions.sc-sb-overlay-dropdown-h{min-width:300px}.with-desktop-actions.sc-sb-overlay-dropdown-h .actions-buttons.sc-sb-overlay-dropdown{display:flex;border-bottom-left-radius:12px;border-bottom-right-radius:12px}}.header.sc-sb-overlay-dropdown{padding-top:16px}@media (min-width: 1200px){.header.sc-sb-overlay-dropdown{padding-top:0}}.title.sc-sb-overlay-dropdown{font-size:16px;line-height:24px;font-weight:600;font-family:"Source Sans Pro", arial, sans-serif;letter-spacing:normal;margin:0;display:flex;flex-direction:column;justify-content:center;padding:0 16px;background:#fff;border-top-left-radius:12px;border-top-right-radius:12px}.content.sc-sb-overlay-dropdown{flex-grow:1;display:flex;flex-direction:column;max-height:100%;padding:10px 16px 174px;overflow-y:auto;background-color:#fff;position:relative}@media (min-width: 1200px){.content.sc-sb-overlay-dropdown{border-radius:12px;padding-top:0;padding-bottom:16px}}.actions.sc-sb-overlay-dropdown{display:flex;position:fixed;bottom:0;left:0;width:100%;flex-direction:column;box-shadow:0 -2px 8px rgba(0, 0, 0, 0.1);background:#fff}@media (min-width: 1200px){.actions.sc-sb-overlay-dropdown{position:relative;border-bottom-left-radius:12px;border-bottom-right-radius:12px}}.actions-buttons.sc-sb-overlay-dropdown{display:flex;justify-content:space-between;align-items:center;width:100%;height:64px;padding:0 48px}@media (min-width: 1200px){.actions-buttons.sc-sb-overlay-dropdown{display:none}}.actions-button.sc-sb-overlay-dropdown{background:none;color:inherit;border:0;padding:0;font:inherit;cursor:pointer;outline:inherit;font-size:16px;line-height:16px;font-weight:600;font-family:"Source Sans Pro", arial, sans-serif;letter-spacing:0.8px;margin:0;text-transform:uppercase;border-radius:100px;padding:12px 24px}.actions-button.sc-sb-overlay-dropdown:focus{box-shadow:0 0 0 4px #f6c8ba;outline-offset:4px}.actions-button-apply.sc-sb-overlay-dropdown{color:#fff;background-color:#d74113;margin-left:auto}.actions-button-apply.sc-sb-overlay-dropdown:hover{background-color:#cd441b}.actions-button-apply.sc-sb-overlay-dropdown:disabled{opacity:0.4}.actions-button-close.sc-sb-overlay-dropdown{color:#d74113}.actions-button-close.sc-sb-overlay-dropdown:hover{color:#cd441b;background-color:rgba(215, 65, 19, 0.04)}.actions.sc-sb-overlay-dropdown .extra-divider.sc-sb-overlay-dropdown{margin:0 16px}'}},[6,"sb-overlay-dropdown",{withTitle:[4,"with-title"],actions:[16],withDesktopActions:[4,"with-desktop-actions"],leftSide:[4,"left-side"],maxHeight:[1,"max-height"],disabledConfirm:[4,"disabled-confirm"],isLoading:[4,"is-loading"],extraActionsContent:[16],scrollToBottom:[64]},[[9,"resize","onScreenResize"]]]);function Tt(){if("undefined"==typeof customElements)return;["sb-overlay-dropdown","sb-spinner-circle","sb-spinner-underlay"].forEach(e=>{switch(e){case"sb-overlay-dropdown":customElements.get(e)||customElements.define(e,At);break;case"sb-spinner-circle":customElements.get(e)||Dt();break;case"sb-spinner-underlay":customElements.get(e)||Ct()}})}Tt();const It=Object(c.h)(class extends c.b{constructor(){super(),this.__registerHost(),this.roomRemoved=Object(c.d)(this,"roomRemoved",7),this.availableGuests=6,this.index=void 0,this.room=void 0}roomChanged(){this.guestCount=this.room.adults+this.room.children.length}componentWillLoad(){this.guestCount=this.room.adults+this.room.children.length}get isRemovable(){return this.index>0}render(){return Object(c.g)(c.c,{key:"bdb857d7c50ddf400c17e1656b4d0892ab8ef8ea"},Object(c.g)("div",{key:"868e26ab425c6dc83d5a7940ac8755e4a7e20300",class:"room-header"},Object(c.g)("div",{key:"e6167cba769415e73438266e4a3772b648ed702d",class:"room-name"},"Kamer "+(this.index+1)),Object(c.g)("div",{key:"1d67565804e72f315d06c5cb6b8c538aecdf887f",class:"room-guest-count"},`${this.guestCount}/${this.availableGuests}`)),Object(c.g)("slot",{key:"c347a9b751af684292b6ff2e29dcec2479343a53"}))}static get watchers(){return{room:["roomChanged"]}}static get style(){return'.sc-sb-pax-room-h{font-size:16px;line-height:24px;font-weight:400;font-family:"Source Sans Pro", arial, sans-serif;letter-spacing:normal;margin:0;display:block}.sc-sb-pax-room-h:not(:first-of-type){border-top:1px solid #d9d9d9;margin-top:16px;padding-top:32px}.room-header.sc-sb-pax-room{display:flex;align-items:center;margin-bottom:16px}.room-name.sc-sb-pax-room{font-size:16px;line-height:24px;font-weight:600;font-family:"Source Sans Pro", arial, sans-serif;letter-spacing:normal;margin:0;line-height:1em}.room-remove.sc-sb-pax-room{background:none;color:inherit;border:0;padding:0;font:inherit;cursor:pointer;outline:inherit;font-size:16px;line-height:24px;font-weight:400;font-family:"Source Sans Pro", arial, sans-serif;letter-spacing:normal;margin:0;color:#37675c;font-size:16px;line-height:1em;margin-left:24px;text-decoration:underline}.room-remove.sc-sb-pax-room:focus{outline:thin dotted;outline-color:#000}.room-guest-count.sc-sb-pax-room{font-size:16px;line-height:24px;font-weight:400;font-family:"Source Sans Pro", arial, sans-serif;letter-spacing:normal;margin:0;margin-left:auto;margin-right:4px;line-height:16px}'}},[6,"sb-pax-room",{index:[2],room:[16]},void 0,{room:["roomChanged"]}]);function Rt(){if("undefined"==typeof customElements)return;["sb-pax-room"].forEach(e=>{switch(e){case"sb-pax-room":customElements.get(e)||customElements.define(e,It)}})}Rt();const Lt=Object(c.h)(class extends c.b{constructor(){super(),this.__registerHost(),this.changed=Object(c.d)(this,"changed",7),this.text=void 0,this.value=void 0,this.min=void 0,this.max=void 0}getDisabled(){this.isDecrementDisabled="number"==typeof this.min&&this.min>=this.value,this.isIncrementDisabled="number"==typeof this.max&&this.max<=this.value}componentWillLoad(){this.getDisabled()}onDecrement(){this.changed.emit(this.value-1)}onIncrement(){this.changed.emit(this.value+1)}render(){return Object(c.g)(c.c,{key:"76692238c2ef4b6bb47d05a3c7a5413a08e2cdd3"},this.text&&Object(c.g)("div",{class:"stepper-text"},this.text),Object(c.g)("div",{key:"eb1cf7f88197b17e693ab6ffacd92037ea59026e"},Object(c.g)("button",{key:"bed263aaaa19242f8608f82f19158566ae598db7",class:"stepper-increment-decrement"+(this.isDecrementDisabled?" stepper-increment-decrement-disabled":""),disabled:this.isDecrementDisabled,onClick:this.onDecrement.bind(this),onKeyDown:e=>y(e,this.onDecrement.bind(this)),"aria-label":"decrement "+this.text},"-"),Object(c.g)("span",{key:"8cb19c6530d3227e68c3fde2bb00c79adbcfa42e",class:"stepper-value"},this.value),Object(c.g)("button",{key:"e9888f2ba27842a5cfeb274273bdbc5b06ec1545",class:"stepper-increment-decrement"+(this.isIncrementDisabled?" stepper-increment-decrement-disabled":""),disabled:this.isIncrementDisabled,onClick:this.onIncrement.bind(this),onKeyDown:e=>y(e,this.onIncrement.bind(this)),"aria-label":"increment "+this.text},"+")))}static get watchers(){return{value:["getDisabled"],min:["getDisabled"],max:["getDisabled"]}}static get style(){return'.sc-sb-pax-stepper-h{display:flex;justify-content:space-between;align-items:baseline}.stepper-text.sc-sb-pax-stepper{font-size:16px;line-height:24px;font-weight:400;font-family:"Source Sans Pro", arial, sans-serif;letter-spacing:normal;margin:0;line-height:16px}.stepper-increment-decrement.sc-sb-pax-stepper{background:none;color:inherit;border:0;padding:0;font:inherit;cursor:pointer;outline:inherit;border:1px solid #6db4a9;border-radius:50%;width:32px;height:32px}.stepper-increment-decrement.sc-sb-pax-stepper:focus{background-color:rgba(89, 164, 152, 0.12)}.stepper-increment-decrement-disabled.sc-sb-pax-stepper{cursor:default;border-color:#d9d9d9;color:#c4c4c4}.stepper-value.sc-sb-pax-stepper{font-size:16px;line-height:24px;font-weight:400;font-family:"Source Sans Pro", arial, sans-serif;letter-spacing:normal;margin:0;display:inline-block;min-width:42px;text-align:center}'}},[2,"sb-pax-stepper",{text:[1],value:[2],min:[2],max:[2]},void 0,{value:["getDisabled"],min:["getDisabled"],max:["getDisabled"]}]);function Mt(){if("undefined"==typeof customElements)return;["sb-pax-stepper"].forEach(e=>{switch(e){case"sb-pax-stepper":customElements.get(e)||customElements.define(e,Lt)}})}Mt();const Nt=Object(c.h)(class extends c.b{constructor(){super(),this.__registerHost(),this.adultsChanged=Object(c.d)(this,"adultsChanged",7),this.childrenChanged=Object(c.d)(this,"childrenChanged",7),this.childAgeChanged=Object(c.d)(this,"childAgeChanged",7),this.activatedSelectOffset=Object(c.d)(this,"activatedSelectOffset",7),this.isMaxReached=!1,this.childAges=$,this.childrenErrors=[],this.index=void 0,this.room=void 0,this.isAbleToAddPassenger=void 0,this.hasInfantCountError=void 0,this.isDirty=void 0}get childMenuHeight(){return O.getWindowProperty("document").documentElement.clientHeight/3*2}get childMenuVerticalOffsets(){return{top:64}}getIsMaxReached(){this.isMaxReached=this.room.adults+this.room.children.length>=6||!this.isAbleToAddPassenger}getChildrenErrors(){this.childrenErrors=(this.room.children||[]).map(e=>!e&&this.isDirty)}componentWillLoad(){this.getIsMaxReached(),this.getChildrenErrors()}onAdultsChange(e){this.adultsChanged.emit(e.detail)}onChildrenChange(e){this.childrenChanged.emit(e.detail)}onChildAgeChange(e,t){const s=t.detail;this.childAgeChanged.emit({childIndex:e,childAge:s})}onSelectActivated(e){this.activatedSelectOffset.emit(e.target.offsetTop)}render(){var e;return Object(c.g)(c.c,{key:"13ae0e933ebeaab7cd5a513d9e754ea4ce42380f"},Object(c.g)("sb-pax-stepper",{key:"7930d6aef8118fabac75f31b550084d2bd7fc0cb",class:"pax-selection-stepper",text:"Volwassen(en)",value:this.room.adults,min:1,max:this.isMaxReached?this.room.adults:null,onChanged:this.onAdultsChange.bind(this)}),Object(c.g)("sb-pax-stepper",{key:"1c93327b18c189b54b8c9daa69ab865631b892ad",class:"pax-selection-stepper",text:"Kind(eren) (0-17)",value:this.room.children.length,min:0,max:this.isMaxReached?this.room.children.length:null,onChanged:this.onChildrenChange.bind(this)}),!!(null===(e=this.room.children)||void 0===e?void 0:e.length)&&Object(c.g)("p",{class:"pax-selection-age-title"},"Hoe oud zijn ze bij terugkomst van vakantie?"),this.room.children.map((e,t)=>Object(c.g)("div",{class:"pax-selection-age-wrapper"+(this.childrenErrors[t]||this.hasInfantCountError?" invalid":"")},Object(c.g)("div",{class:"pax-selection-age"},Object(c.g)("span",null,"Kind"," ",t+1),Object(c.g)("sb-custom-select",{class:"pax-selection-age-selector fullscreen"+(this.childrenErrors[t]||this.hasInfantCountError?" invalid":""),value:e,align:Me.auto,menuHeight:this.childMenuHeight,alignOffsets:this.childMenuVerticalOffsets,onActivated:this.onSelectActivated.bind(this),onChanged:e=>this.onChildAgeChange(t,e)},this.childAges.map(t=>Object(c.g)("sb-custom-select-option",{value:t,selected:t===e},t))),Object(c.g)("sb-custom-select",{class:"pax-selection-age-selector dropdown"+(this.childrenErrors[t]||this.hasInfantCountError?" invalid":""),value:e,align:Me.center,onActivated:this.onSelectActivated.bind(this),onChanged:e=>this.onChildAgeChange(t,e)},this.childAges.map(t=>Object(c.g)("sb-custom-select-option",{value:t,selected:t===e},t)))),this.childrenErrors[t]&&Object(c.g)("p",{class:"pax-selection-age-error"},"Vul leeftijd van het kind in a.u.b."))),this.hasInfantCountError&&C([this.room])?Object(c.g)("sb-notification-text",{class:"notification-text",type:Te.error},"U kunt online maximaal 1 baby per volwassene voor een vakantie boeken. Als u een reservering wilt maken, neem dan contact met ons op op +31 26 201 0052 ma – vr 10.00 - 20.00 uur en za - zo 9.00 – 18.00 uur."):null)}static get watchers(){return{room:["getIsMaxReached","getChildrenErrors"],isDirty:["getChildrenErrors"]}}static get style(){return'.sc-sb-pax-selection-h{display:flex;flex:1;flex-direction:column}.pax-selection-stepper.sc-sb-pax-selection+.pax-selection-stepper.sc-sb-pax-selection{margin-top:20px}.pax-selection-age.sc-sb-pax-selection{display:flex;flex-grow:1;max-width:50%}.pax-selection-age-title.sc-sb-pax-selection{font-size:16px;line-height:24px;font-weight:400;font-family:"Source Sans Pro", arial, sans-serif;letter-spacing:normal;margin:0;margin:16px 0}.pax-selection-age-wrapper.sc-sb-pax-selection{font-size:16px;line-height:24px;font-weight:400;font-family:"Source Sans Pro", arial, sans-serif;letter-spacing:normal;margin:0;display:flex;justify-content:space-between;align-items:baseline;white-space:nowrap;padding-bottom:16px}.pax-selection-age-wrapper.sc-sb-pax-selection+.pax-selection-age-wrapper.sc-sb-pax-selection{margin-top:16px}.pax-selection-age-wrapper.invalid.sc-sb-pax-selection{color:#970202}.pax-selection-age-wrapper.sc-sb-pax-selection:not(:last-of-type){border-bottom:1px solid #e9e9e9}.pax-selection-age-selector.sc-sb-pax-selection{flex-basis:40%;margin-left:12px;justify-content:flex-end}.pax-selection-age-selector-invalid.sc-sb-pax-selection{color:#970202}.pax-selection-age-selector.fullscreen.sc-sb-pax-selection{display:flex}@media (min-width: 1200px){.pax-selection-age-selector.fullscreen.sc-sb-pax-selection{display:none}}.pax-selection-age-selector.dropdown.sc-sb-pax-selection{display:none}@media (min-width: 1200px){.pax-selection-age-selector.dropdown.sc-sb-pax-selection{display:flex}}.pax-selection-age-error.sc-sb-pax-selection{margin:0;text-align:end;color:#970202}'}},[2,"sb-pax-selection",{index:[2],room:[16],isAbleToAddPassenger:[4,"is-able-to-add-passenger"],hasInfantCountError:[4,"has-infant-count-error"],isDirty:[4,"is-dirty"]},void 0,{room:["getIsMaxReached","getChildrenErrors"],isDirty:["getChildrenErrors"]}]);function Pt(){if("undefined"==typeof customElements)return;["sb-pax-selection","sb-custom-select","sb-custom-select-option","sb-notification-text","sb-pax-stepper"].forEach(e=>{switch(e){case"sb-pax-selection":customElements.get(e)||customElements.define(e,Nt);break;case"sb-custom-select":customElements.get(e)||vt();break;case"sb-custom-select-option":customElements.get(e)||yt();break;case"sb-notification-text":customElements.get(e)||$t();break;case"sb-pax-stepper":customElements.get(e)||Mt()}})}Pt();const Vt=new class{constructor(){var e;this.appliedPax=te.requestOptions.pax?L(te.requestOptions.pax):[S],this.rooms$=new We(this.appliedPax),this.onOpen$=new w,this.isDirty$=new We(!1),at.updateSummary({guests:this.paxMixView}),e=e=>{this.isChildrenValid()&&(this.appliedPax=e?L(e):[S],this.rooms=this.appliedPax,at.updateSummary({guests:this.paxMixView}))},Ye(t=>e(null==t?void 0:t.pax)),nt.onOpenSection$.subscribe(e=>{e===Re.OCCUPATION&&this.onOpen$.next()})}get rooms(){return this.rooms$.getValue()}set rooms(e){this.rooms$.next(e)}get maximumRooms(){return te.searchOptions.maximumRooms}get paxMixView(){const e=this.rooms.length,t=T(this.rooms);return`${e} ${1===e?"Kamer":"Kamers"}, ${t} Gasten`}get isAbleToAddPassenger(){return T(this.rooms)<18}get isAbleToAddRoom(){return this.rooms.lengththis.rooms.length&&this.addRoom(),et?s.children.slice(0,t):[...s.children,...new Array(t-s.children.length).fill(null)]});this.rooms=f(this.rooms,e,i)}childAgeChange(e,t,s){const i=this.rooms[e],n=Object.assign(Object.assign({},i),{children:f(i.children,t,s)});this.rooms=f(this.rooms,e,n)}applyPax(){this.wasChanged()&&(te.requestOptions=Object.assign(Object.assign({},te.requestOptions),{pax:I(this.rooms)}))}saveSelected(){this.lastApplied=this.appliedPax}restoreSelected(){this.rooms=this.lastApplied}isDirty(){return I(this.lastApplied)!==I(this.rooms)}isChildrenValid(){return this.rooms.every(e=>e.children.every(e=>!!e))&&this.isValidInfantCount}validate(){return this.isDirty$.next(!0),this.isChildrenValid()}wasChanged(){const e=te.requestOptions.pax;return I(this.rooms)!==e}getSearchUrl(){return Ge(te.searchOptions.url,te.requestOptions,te.facetsOptions)}},Ft=Object(c.h)(class extends c.b{constructor(){super(),this.__registerHost(),this.closeOverlayDropdown=Object(c.d)(this,"closeOverlayDropdown",7),this.apply=Object(c.d)(this,"apply",7),this.done=Object(c.d)(this,"done",7),this.cancel=Object(c.d)(this,"cancel",7),this.compactSearch=Object(c.d)(this,"compactSearch",7),this.config=void 0,this.label="Kamers & gasten",this.compact=void 0,this.minimal=void 0,this.rooms=[],this.isDirty=void 0}get paxMixView(){return[Vt.paxMixView]}get isAbleToAddPassenger(){return Vt.isAbleToAddPassenger}get isAbleToAddRoom(){return Vt.isAbleToAddRoom}get isValidInfantCount(){return Vt.isValidInfantCount}get maximumRooms(){return Vt.maximumRooms}handleContentRefInit(e){this.scrollableContentRef=e.detail}componentWillLoad(){var e;this.dropdownActions=gt.getDropdownActions(this.compact,null===(e=this.config)||void 0===e?void 0:e.actions,!0)}connectedCallback(){this.roomsSubscription=Vt.rooms$.subscribe(e=>this.rooms=e),this.isDirtySubscription=Vt.isDirty$.subscribe(e=>this.isDirty=e),Vt.saveSelected()}disconnectedCallback(){this.roomsSubscription.unsubscribe(),this.isDirtySubscription.unsubscribe(),Vt.isDirty$.next(!1)}onAdultsChanged(e,t){Vt.adultsChange(e,t.detail)}onChildrenChanged(e,t){Vt.childrenChange(e,t.detail)}onChildAgeChanged(e,{detail:t}){Vt.childAgeChange(e,t.childIndex,t.childAge)}onRoomAdded(){Vt.addRoom()}onRoomRemoved(e){Vt.removeRoom(e)}onRoomsChange(e){Vt.setRooms(e.detail)}onApply(){if(Vt.validate()){if(Vt.applyPax(),this.closeDropdown(),this.compact)return void this.compactSearch.emit();const e=Vt.getSearchUrl();this.apply.emit(e)}}onCancel(){if(this.compact||this.config)return this.cancel.emit(),void this.closeDropdown();Vt.validate()&&(this.closeDropdown(),this.done.emit())}onActivatedSelectOffset(e){const t=this.getScrollTop(e.detail);t&&this.scrollableContentRef.scrollTo({top:t,behavior:"smooth"})}getScrollTop(e){let t;return this.scrollableContentRef.scrollTop+130>e?t=e-130:this.scrollableContentRef.scrollTop+this.scrollableContentRef.clientHeight-130Object(c.g)("sb-pax-room",{class:"pax-room",room:e,index:t,onRoomRemoved:()=>this.onRoomRemoved(t)},Object(c.g)("sb-pax-selection",{room:e,isAbleToAddPassenger:this.isAbleToAddPassenger,hasInfantCountError:!this.isValidInfantCount,isDirty:this.isDirty,onAdultsChanged:e=>this.onAdultsChanged(t,e),onChildrenChanged:e=>this.onChildrenChanged(t,e),onChildAgeChanged:e=>this.onChildAgeChanged(t,e),onActivatedSelectOffset:this.onActivatedSelectOffset.bind(this)}))))))}static get style(){return'@media (min-width: 1200px){.dropdown-header.sc-sb-bar-pax-dropdown{display:none}}.selected-value.sc-sb-bar-pax-dropdown{font-size:16px;line-height:24px;font-weight:600;font-family:"Source Sans Pro", arial, sans-serif;letter-spacing:normal;margin:0;margin:0 16px}@media (min-width: 1200px){.selected-value.sc-sb-bar-pax-dropdown{margin:0}}.list-divider.sc-sb-bar-pax-dropdown{margin:16px 16px 10px}@media (min-width: 1200px){.list-divider.sc-sb-bar-pax-dropdown{margin:16px 0}}.rooms-divider.sc-sb-bar-pax-dropdown{margin:16px 0}.title.sc-sb-bar-pax-dropdown{font-size:20px;line-height:28px;font-weight:600;font-family:"Source Sans Pro", arial, sans-serif;letter-spacing:normal;margin:0;color:#262626}.content.sc-sb-bar-pax-dropdown{margin-bottom:32px}@media (min-width: 1200px){.content.sc-sb-bar-pax-dropdown{margin-bottom:0}}.pax-mix-add-room.sc-sb-bar-pax-dropdown{background:none;color:inherit;border:0;padding:0;font:inherit;cursor:pointer;outline:inherit;font-size:16px;line-height:24px;font-weight:400;font-family:"Source Sans Pro", arial, sans-serif;letter-spacing:normal;margin:0;outline:medium;color:#37675c;font-weight:normal;text-decoration:underline;line-height:1em;flex-shrink:0}.pax-mix-add-room.sc-sb-bar-pax-dropdown:focus{outline:thin dotted;outline-color:#000}.pax-mix-add-room-wrapper.sc-sb-bar-pax-dropdown{text-align:center;border-top:1px solid #d9d9d9;padding:16px 10px 0;margin-top:16px}@media (min-width: 1200px){.pax-room.sc-sb-bar-pax-dropdown{margin-bottom:0}}'}},[2,"sb-bar-pax-dropdown",{config:[16],label:[1],compact:[4],minimal:[4],rooms:[32],isDirty:[32]},[[0,"contentRefInit","handleContentRefInit"]]]);function Ht(){if("undefined"==typeof customElements)return;["sb-bar-pax-dropdown","sb-custom-select","sb-custom-select-option","sb-list-divider","sb-notification-text","sb-overlay-dropdown","sb-pax-room","sb-pax-selection","sb-pax-stepper","sb-spinner-circle","sb-spinner-underlay"].forEach(e=>{switch(e){case"sb-bar-pax-dropdown":customElements.get(e)||customElements.define(e,Ft);break;case"sb-custom-select":customElements.get(e)||vt();break;case"sb-custom-select-option":customElements.get(e)||yt();break;case"sb-list-divider":customElements.get(e)||kt();break;case"sb-notification-text":customElements.get(e)||$t();break;case"sb-overlay-dropdown":customElements.get(e)||Tt();break;case"sb-pax-room":customElements.get(e)||Rt();break;case"sb-pax-selection":customElements.get(e)||Pt();break;case"sb-pax-stepper":customElements.get(e)||Mt();break;case"sb-spinner-circle":customElements.get(e)||Dt();break;case"sb-spinner-underlay":customElements.get(e)||Ct()}})}Ht();const _t=new class{get currentDate(){const e=new Date(te.requestOptions.departure);return isNaN(e.getTime())?null:p.getOffseted(e)}get inputValue(){return this.inputValue$.getValue()}get displayDate(){var e;return null!==(e=this.inputValue[0])&&void 0!==e?e:""}get viewDate(){return this.viewDate$.getValue()}get isFlexible(){return this.isFlexible$.getValue()}get selectedDate(){return this.selectedDate$.getValue()}get availableDates(){return this.availableDates$.getValue()}get availableMonths(){return this.availableMonths$.getValue()}get initialInputValue(){if(!this.currentDate)return[];const e=te.requestOptions.postOffset===te.requestOptions.preOffset?u.day:u.month,t=this.getInputFormat(e);return[p.format(this.currentDate,t)]}get datepickerError(){const e=te.requestOptions.offerType,t=!!te.requestOptions.destinations.length||!!te.requestOptions.accommodation,s=!!te.requestOptions.departureAirports.length;return e!==m.PACKAGES||s||t?e!==m.PACKAGES||s?t?null:b.destinations:b.departures:b.both}constructor(){var e;this.onOpen$=new w,this.availableDates$=new We([]),this.availableMonths$=new We([]),this.availableMonthsByYears$=new We({}),this.selectedDate$=new We(new Date(this.currentDate)),this.inputValue$=new We(this.initialInputValue),this.viewDate$=new We(this.initialViewDate),this.isFlexible$=new We(3===te.requestOptions.postOffset&&3===te.requestOptions.preOffset),this.flexibilityState$=new We(this.getFlexibilityState(te.requestOptions.preOffset,te.requestOptions.postOffset)),this.isAvailabilityLoading$=new We(!1),this.showNoDatesNotification$=new We(!1),nt.onOpenSection$.subscribe(e=>{e===Re.DEP_DATE&&this.onOpen$.next()}),dt(e=>{this.availableMonths$.next(this.getAvailableMonths(e.months)),this.availableMonthsByYears$.next(e.months),this.availableDates$.next(this.getAvailableDates(e.dates))}),e=e=>{this.availableMonths$.next(this.getAvailableMonths(e.months)),this.availableMonthsByYears$.next(e.months),this.availableDates$.next(this.getAvailableDates(e.dates))},ee.onChange("availability",e),(e=>{ee.onChange("viewDate",e)})(e=>this.viewDate$.next(e)),(e=>{ee.onChange("cached",e)})(()=>this.showNoDatesNotification$.next(zt.hasDefaultDurationResponse)),(e=>{rt(t=>e(null==t?void 0:t.isAvailabilityLoading))})(e=>this.isAvailabilityLoading$.next(e)),Xe(({preOffset:e,postOffset:t,departure:s})=>{const i=new Date(s),n=t===e?u.day:u.month,o=this.getFlexibilityState(e,t),a=!!o&&30!==o;if(this.flexibilityState$.next(o),isNaN(i.getTime()))return this.selectedDate$.next(null),this.inputValue$.next([]),void this.viewDate$.next({date:new Date(z),type:n});const r=this.getInputFormat(n);this.selectedDate$.next(i),this.inputValue$.next([p.format(this.selectedDate$.getValue(),r)]),this.viewDate$.next({date:i,type:n}),at.updateSummary({date:{displayDate:this.displayDate,date:this.viewDate.date,isFlexible:a}})}),this.flexibilityState$.subscribe(e=>{this.isFlexible$.next(!!e&&30!==e)})}onChangeDate(e){te.cached.requestData.prevDateEventDetail=e,te.cached.requestData.isFlexible=this.isFlexible;const t=this.getInputFormat(e.type);this.inputValue$.next([p.format(e.date,t)]),this.viewDate$.next(e),this.updateDate(e,this.isFlexible)}updateDate(e,t){const s=p.getOffseted(e.date,!1),i=s.toISOString(),n=K(s),o=e.type===u.month?n:t?3:0,a=e.type===u.month?0:t?3:0;te.requestOptions=Object.assign(Object.assign({},te.requestOptions),{postOffset:o,departure:i,preOffset:a}),te.global.isDeparturePristine=!1}updateFlexibility(e){let t=te.requestOptions.departure;t||(t=this.initialViewDate.date.toISOString());let s=e,i=e;30===e&&(s=0,i=K(new Date(t))),te.requestOptions=Object.assign(Object.assign({},te.requestOptions),{postOffset:i,departure:t,preOffset:s}),te.global.isDeparturePristine=!1}setViewDate(e){te.viewDate=e}saveSelected(){this.lastApplied=this.initialViewDate,this.lastFlexible=this.isFlexible}restoreSelected(){this.lastApplied&&this.updateDate(this.lastApplied,this.lastFlexible)}isDirty(){return!p.sameDay(this.lastApplied.date,this.selectedDate)||this.lastFlexible!==this.isFlexible}restoreInitialViewDate(){this.lastApplied&&this.setViewDate(this.lastApplied)}setCached(){const e=_.getQueryParam("date");te.cached={requestData:{isFlexible:this.isFlexible,prevDateEventDetail:{date:e?new Date(e):_t.selectedDate,type:1}}}}openNextSection(){nt.openSection(Re.DURATION)}get initialViewDate(){const e=p.getOffseted(new Date(te.requestOptions.departure||z)),t=K(e);return{date:e,type:te.requestOptions.postOffset===t?u.month:u.day}}getAvailableDates(e){return[...null!=e?e:[]]}getAvailableMonths(e){const t=Object.assign({},null!=e?e:{});return p.monthToOption(t)}getInputFormat(e){return e===u.day?"dd MM yyyy":"LLL yyyy"}getFlexibilityState(e,t){return 3===e&&3===t?3:e||t?30:0}};const zt=new class{get currentDuration(){return te.requestOptions.durations[0]}get currentDestination(){var e;const t=(null===(e=te.cached.quickSearch)||void 0===e?void 0:e.destinations)||[];return te.requestOptions.destinations.map(e=>{var s;return null===(s=t.find(t=>t.id===e))||void 0===s?void 0:s.name})}get currentMonth(){return p.format(_t.currentDate,"LLL")}get hasDefaultDurationResponse(){return!!te.cached.quickSearch}durationFallBack(){var e,t,s;const{prevDateEventDetail:i,isFlexible:n}=te.cached.requestData;if(!(null===(t=null===(e=te.cached.quickSearch)||void 0===e?void 0:e.dates)||void 0===t?void 0:t.length)){const e=null===(s=p.monthToOption(te.cached.quickSearch.months))||void 0===s?void 0:s[0];i.date=e.date}te.searchOptions=Object.assign({},te.cached.quickSearch),te.requestOptions.durations=[7],te.cached=Object.assign(Object.assign({},te.cached),{quickSearch:null}),_t.updateDate(i,n)}},Bt=Object(c.h)(class extends c.b{constructor(){super(),this.__registerHost()}onShowAlternativeDates(){zt.durationFallBack()}render(){return Object(c.g)(c.c,{key:"e25ec081686fedc94561324e2ba87cc7d6dfdb76"},Object(c.g)("div",{key:"b097fdc79f35f43d0dffa02c768b923aafb74b3e",class:"alternative-duration-notification"},Object(c.g)("div",{key:"dd4ac804c337f09f7361024bf5ba7431c1a74382",class:"notification-text"},`Sorry! Er zijn geen ${zt.currentDuration} nachten vakantie naar\n ${zt.currentDestination} beschikbaar in ${zt.currentMonth},`,Object(c.g)("div",{key:"fe477f1bb93562a2f71ba50770f590eff53621f5",class:"notification-link",onClick:()=>this.onShowAlternativeDates()},"bekijk andere reisduren en data"))))}static get style(){return'.sc-sb-alt-duration-notif-h{display:block}.notification-link.sc-sb-alt-duration-notif{text-decoration:underline}@media (min-width: 768px){.notification-link.sc-sb-alt-duration-notif{text-decoration:underline;cursor:pointer}}.alternative-duration-notification.sc-sb-alt-duration-notif{font-size:16px;line-height:24px;font-weight:600;font-family:"Source Sans Pro", arial, sans-serif;letter-spacing:normal;margin:0;height:250px;bottom:0;background:rgba(255, 255, 255, 0.9);display:flex;align-items:center}.notification-text.sc-sb-alt-duration-notif{text-align:center}'}},[2,"sb-alt-duration-notif"]);function qt(){if("undefined"==typeof customElements)return;["sb-alt-duration-notif"].forEach(e=>{switch(e){case"sb-alt-duration-notif":customElements.get(e)||customElements.define(e,Bt)}})}qt();const Gt=Object(c.h)(class extends c.b{constructor(){super(),this.__registerHost(),this.changed=Object(c.d)(this,"changed",7),this.value=void 0,this.name=void 0,this.checked=void 0}onChange(){this.changed.emit(this.value)}onKeyDown(e){y(e,()=>this.onChange())}render(){return Object(c.g)(c.c,{key:"c88350b5a0d7fe7908f9b120da5f0d197a0f66a0"},Object(c.g)("label",{key:"68449cd9320f96c10159de22fc75696a81e4ad9b",class:"radio-label",onKeyDown:e=>this.onKeyDown(e),tabindex:this.checked?-1:0,role:"button"},Object(c.g)("input",{key:"f0bbc0da2344d3161224a180cd98b993bdee0aba",type:"radio",class:"radio-input",name:this.name,value:this.value,checked:this.checked,onChange:()=>this.onChange()}),Object(c.g)("span",{key:"9fefd2c7a30edfc611fd331caa879cccca7b1327",class:"radio-label-text"},Object(c.g)("slot",{key:"b8efbded7638377e4e96d5acf5e6b533959da72a"}))))}static get style(){return'.radio-label.sc-sb-radio-button{display:grid;grid-template-columns:1em auto;grid-gap:8px;margin:0;cursor:pointer}.radio-label-text.sc-sb-radio-button{font-size:16px;line-height:24px;font-weight:400;font-family:"Source Sans Pro", arial, sans-serif;letter-spacing:normal;margin:0;line-height:1}.radio-input.sc-sb-radio-button{display:grid;place-content:center;width:20px;height:20px;margin:0;appearance:none;color:#59a498;border:1px solid #59a498;border-radius:50%;transform:translateY(-2px)}.radio-input.sc-sb-radio-button::before{content:"";width:12px;height:12px;border-radius:50%;transform:scale(0);transition:120ms transform ease-in-out;background-color:#59a498}.radio-input.sc-sb-radio-button:checked::before{transform:scale(1)}'}},[6,"sb-radio-button",{value:[8],name:[1],checked:[4]}]);function Wt(){if("undefined"==typeof customElements)return;["sb-radio-button"].forEach(e=>{switch(e){case"sb-radio-button":customElements.get(e)||customElements.define(e,Gt)}})}Wt();const Qt=Object(c.h)(class extends c.b{constructor(){super(),this.__registerHost(),this.selectedFlexibility=void 0,this.flexibilityOptions=G}connectedCallback(){this.selectedFlexibilitySubscription=_t.flexibilityState$.subscribe(e=>this.selectedFlexibility=e)}disconnectedCallback(){this.selectedFlexibilitySubscription.unsubscribe()}isChecked(e){return this.selectedFlexibility===e}onChange(e){_t.updateFlexibility(e)}render(){return Object(c.g)(c.c,{key:"c429b0edea58f8743705144b0efbdb66ba4586fe"},Object(c.g)("div",{key:"ac2bf8c4fa2fb2eb93c5a230458a676f389c327a",class:"flexibility-form"},this.flexibilityOptions.map(e=>Object(c.g)("sb-radio-button",{class:"radio-button",name:"flexibility",value:e.value,checked:this.isChecked(e.value),onChanged:()=>this.onChange(e.value)},e.name))))}static get style(){return'.sc-sb-date-flexibility-h{font-size:16px;line-height:24px;font-weight:400;font-family:"Source Sans Pro", arial, sans-serif;letter-spacing:normal;margin:0;display:flex;flex-direction:column;align-items:center;padding:24px 0 20px}.flexibility-form.sc-sb-date-flexibility{display:flex;justify-content:space-between}.radio-button.sc-sb-date-flexibility+.radio-button.sc-sb-date-flexibility{margin-left:16px}'}},[2,"sb-date-flexibility",{selectedFlexibility:[32],flexibilityOptions:[32]}]);function Ut(){if("undefined"==typeof customElements)return;["sb-date-flexibility","sb-radio-button"].forEach(e=>{switch(e){case"sb-date-flexibility":customElements.get(e)||customElements.define(e,Qt);break;case"sb-radio-button":customElements.get(e)||Wt()}})}Ut();const Kt=Object(c.h)(class extends c.b{constructor(){super(),this.__registerHost(),this.updateDate=Object(c.d)(this,"updateDate",7),this.availableDates=void 0,this.viewDate=void 0,this.selectedDate=void 0,this.closestMonth=void 0,this.isWholeMonthSelected=void 0,this.showNoDatesNotif=!1}get _list(){return this.availableDates&&this.viewDate?p.getAvailableOptions(this.viewDate.date,this.availableDates):[]}get _emptyDates(){return p.getEmptyBlocks(this.viewDate.date)}moveTo(e){const t={date:e,type:u.month};_t.setViewDate(t)}clickItem(e){this.updateDate.emit({date:e.date,type:u.day})}isSame(e,t){return!(!e||!t)&&p.sameDay(e,t)}componentWillLoad(){this._days=p.mediumDays()}render(){return Object(c.g)(c.c,{key:"43bfefe5f33de3f6c48d2b8f645891185ec9098b"},Object(c.g)("div",{key:"3e7dac55351f5d0537cf437b5ee19929e7be33dc",class:"days-list"},this._days.map(e=>Object(c.g)("div",{class:"day"}," ",e," "))),!!this.availableDates.length&&Object(c.g)("div",{class:"dates-list"},this._emptyDates.map(()=>Object(c.g)("div",{class:"empty date-item"})),this._list.map(e=>Object(c.g)("div",{class:"date-item"},Object(c.g)("span",{onClick:()=>e.available&&this.clickItem(e),onKeyDown:t=>y(t,()=>e.available&&this.clickItem(e)),tabindex:this.isSame(e.date,this.selectedDate)||!e.available?-1:0,role:"button",class:{"date-item-inner":!0,unavailable:!e.available,selected:!this.isWholeMonthSelected&&this.isSame(e.date,this.selectedDate)}},e.formatted)))),!this.availableDates.length&&!this.showNoDatesNotif&&Object(c.g)("div",{class:"empty-dates"},this.closestMonth?Object(c.g)("span",null,"Sorry, er is geen beschikbaarheid voor deze maand, probeer"," ",Object(c.g)("span",{class:"closest-link",onClick:()=>this.moveTo(this.closestMonth.date)},this.closestMonth.formatted)," ","om beschikbaarheid te vinden."):"Sorry, er zijn geen beschikbare data. Wijzig jouw data om beschikbaarheid te vinden."),this.showNoDatesNotif&&Object(c.g)("sb-alt-duration-notif",null))}static get style(){return'.sc-sb-date-picker-list-h{display:block}.days-list.sc-sb-date-picker-list{display:flex;justify-content:space-between;padding-bottom:15px;border-bottom:1px solid #c4c4c4;margin-bottom:12px}.day.sc-sb-date-picker-list{font-size:16px;line-height:24px;font-weight:400;font-family:"Source Sans Pro", arial, sans-serif;letter-spacing:normal;margin:0;flex:0 0 14.285%;text-align:center;text-transform:uppercase}.dates-list.sc-sb-date-picker-list{display:flex;flex-wrap:wrap}.date-item.sc-sb-date-picker-list{flex:0 0 14.285%;text-align:center;padding:4px 0}.date-item-inner.sc-sb-date-picker-list{font-size:14px;line-height:22px;font-weight:400;font-family:"Source Sans Pro", arial, sans-serif;letter-spacing:normal;margin:0;border-top:1px solid transparent;border-bottom:1px solid transparent;text-transform:uppercase;cursor:pointer;text-align:center;display:inline-block;line-height:1;width:38px;height:38px;padding:10.5px}@media (max-width: 320px){.date-item-inner.sc-sb-date-picker-list{width:34px;height:34px;padding:9px}}.date-item-inner.sc-sb-date-picker-list:focus{outline:thin dotted;outline-color:#000}.date-item-inner.selected.sc-sb-date-picker-list{border-radius:50%}.selected.sc-sb-date-picker-list{background:#e3f2f0;border:2px solid #59a498}.empty-dates.sc-sb-date-picker-list{font-size:16px;line-height:24px;font-weight:400;font-family:"Source Sans Pro", arial, sans-serif;letter-spacing:normal;margin:0;display:flex;justify-content:space-around;height:250px;align-items:center;text-align:center}.unavailable.sc-sb-date-picker-list{color:rgba(0, 0, 0, 0.2);cursor:default}.closest-link.sc-sb-date-picker-list{cursor:pointer;text-decoration:underline;text-transform:capitalize;white-space:nowrap}'}},[2,"sb-date-picker-list",{availableDates:[16],viewDate:[16],selectedDate:[16],closestMonth:[16],isWholeMonthSelected:[4,"is-whole-month-selected"],showNoDatesNotif:[4,"show-no-dates-notif"]}]);function Yt(){if("undefined"==typeof customElements)return;["sb-date-picker-list","sb-alt-duration-notif"].forEach(e=>{switch(e){case"sb-date-picker-list":customElements.get(e)||customElements.define(e,Kt);break;case"sb-alt-duration-notif":customElements.get(e)||qt()}})}Yt();const Jt=Object(c.h)(class extends c.b{constructor(){super(),this.__registerHost(),this.changeDate=Object(c.d)(this,"changeDate",7),this.availableMonths=void 0,this.viewDate=void 0,this.isYearMode=void 0,this.compact=void 0}get selectedHeader(){return this.isYearMode?p.format(this.viewDate,"yyyy"):p.format(this.viewDate,"LLL yyyy")}get prevTabIndex(){return this.getClosestDate(!1)?0:-1}get nexTabIndex(){return this.getClosestDate(!0)?0:-1}checkAndSetMonth(e){const t=this.getClosestDate(e);t&&this.setMonth(t)}getClosestDate(e){return this.isYearMode?this.getClosestYear(e):this.getClosestMonth(e)}onMonthSelected(e){e&&!p.sameMonth(this.viewDate,e)&&this.setMonth(e)}setMonth(e){const t={date:e,type:u.month};_t.setViewDate(t),this.changeDate.emit(t)}getClosestYear(e){const t=this.availableMonths.map(e=>e.date.getFullYear()),s=this.viewDate.getFullYear(),i=e?s+1:s-1,n=t.findIndex(e=>e===i);return-1!==n?this.availableMonths[n].date:null}getClosestMonth(e){const t=new Date(this.viewDate),s=this.availableMonths.findIndex(e=>p.sameMonth(e.date,t)),i=e?s+1:s-1;return this.availableMonths[i]?this.availableMonths[i].date:null}render(){return Object(c.g)(c.c,{key:"1b07ac853efc27a84e98c1047bf0b0c6cde3b85d"},Object(c.g)("div",{key:"925b476b3f247ceb4f2f24fa5cedc4330b4d337d",class:{"year-header":!0,"year-underline":this.isYearMode}},Object(c.g)("span",{key:"98726cd44267b1b7f2cd60718c460f3248dc729e",class:{"year-prev":!0,disabled:!this.getClosestDate(!1)},onClick:()=>!!this.getClosestDate(!1)&&this.checkAndSetMonth(!1),onKeyDown:e=>y(e,()=>!!this.getClosestDate(!1)&&this.checkAndSetMonth(!1)),tabindex:this.prevTabIndex,role:"button"},Object(c.g)("i",{key:"53609e6fcdda8cf99a822c8e6c5a8b7f0d652c08",class:"left"})),this.compact?Object(c.g)("sb-custom-select",{class:"custom-select",value:this.selectedHeader,align:Me.bottom,onChanged:e=>this.onMonthSelected(e.detail)},this.availableMonths.map(e=>Object(c.g)("sb-custom-select-option",{class:"custom-select-option",value:e.date,selected:e.formattedLong===this.selectedHeader},e.formattedLong,Object(c.g)("sb-svg-icon",{class:"selected-icon",icon:"tickDone"})))):Object(c.g)("p",{class:"year-text"}," ",this.selectedHeader),Object(c.g)("span",{key:"b55090f4a2255533c280b71e09feeca2c6232da3",class:{"year-next":!0,disabled:!this.getClosestDate(!0)},onClick:()=>!!this.getClosestDate(!0)&&this.checkAndSetMonth(!0),onKeyDown:e=>y(e,()=>!!this.getClosestDate(!0)&&this.checkAndSetMonth(!0)),tabindex:this.nexTabIndex,role:"button"},Object(c.g)("i",{key:"a864a7ec5b5286d5142d15fcbd276c9f83cb6cce",class:"right"}))))}static get style(){return'.sc-sb-year-picker-h{display:block}.year-prev.sc-sb-year-picker,.year-next.sc-sb-year-picker{align-items:center;display:flex;cursor:pointer;border-radius:0;margin:0 -1px;padding:4px}.year-prev.sc-sb-year-picker:focus,.year-next.sc-sb-year-picker:focus{outline:thin dotted;outline-color:#000}.year-prev.sc-sb-year-picker{padding-left:12px}.year-next.sc-sb-year-picker{padding-right:12px}.year-text.sc-sb-year-picker{font-size:18px;line-height:14px;font-weight:600;font-family:"Source Sans Pro", arial, sans-serif;letter-spacing:normal;margin:0;text-align:center;text-transform:capitalize}.year-header.sc-sb-year-picker{display:flex;justify-content:space-between;align-items:center}.year-header.year-underline.sc-sb-year-picker{border-bottom:1px solid rgba(0, 0, 0, 0.2);padding-bottom:12px;margin-bottom:12px}.disabled.sc-sb-year-picker{opacity:0.2}i.sc-sb-year-picker{border:solid #434343;border-width:0 1px 1px 0;display:inline-block;padding:3px}.left.sc-sb-year-picker,.right.sc-sb-year-picker{padding:6px;border-width:0 2px 2px 0}.right.sc-sb-year-picker{transform:rotate(-45deg);margin-left:-3px}.left.sc-sb-year-picker{transform:rotate(135deg);margin-right:-3px}.custom-select.sc-sb-year-picker{font-size:16px;line-height:24px;font-weight:400;font-family:"Source Sans Pro", arial, sans-serif;letter-spacing:normal;margin:0;line-height:16px;min-width:168px;justify-content:center;padding:8px 0;border:1px solid #757575;border-radius:8px}.custom-select-option.sc-sb-year-picker{display:flex;align-items:center;justify-content:space-between;white-space:nowrap;min-width:168px;line-height:3.75em;height:3.75em;padding-right:12px}.custom-select-option.sc-sb-year-picker .selected-icon.sc-sb-year-picker{display:none}.custom-select-option.sc-sb-year-picker:hover{background:rgba(227, 242, 240, 0.4)}.custom-select-option[selected].sc-sb-year-picker{background:#e3f2f0}.custom-select-option[selected].sc-sb-year-picker .selected-icon.sc-sb-year-picker{display:inline-block;fill:#59a498;width:20px;height:20px}'}},[2,"sb-year-picker",{availableMonths:[16],viewDate:[16],isYearMode:[4,"is-year-mode"],compact:[4]}]);function Xt(){if("undefined"==typeof customElements)return;["sb-year-picker","sb-custom-select","sb-custom-select-option","sb-svg-icon"].forEach(e=>{switch(e){case"sb-year-picker":customElements.get(e)||customElements.define(e,Jt);break;case"sb-custom-select":customElements.get(e)||vt();break;case"sb-custom-select-option":customElements.get(e)||yt();break;case"sb-svg-icon":customElements.get(e)||ue()}})}Xt();const Zt=Object(c.h)(class extends c.b{constructor(){super(),this.__registerHost(),this.updateDate=Object(c.d)(this,"updateDate",7),this.selectedDate=void 0,this.viewDate=void 0,this.availableDates=void 0,this.availableMonths=void 0,this.isWholeMonthSelected=void 0,this.compact=void 0,this.showNoDatesNotif=void 0}get closestMonth(){const e=this.availableMonths.find(e=>!p.sameMonth(e.date,this.selectedDate));return e&&Object.assign(Object.assign({},e),{formatted:p.format(e.date,"LLL yyyy")})}get showExactDateNotification(){return this.compact&&!p.sameMonth(this.selectedDate,this.viewDate.date)}render(){return Object(c.g)(c.c,{key:"115a6676072de8a137621dd7887dff8845768fec"},Object(c.g)("sb-year-picker",{key:"76eba923df66815058489f5c1355c277c6db5670",class:"year-picker",compact:this.compact,availableMonths:this.availableMonths,viewDate:this.viewDate.date}),Object(c.g)("div",{key:"8be6fb180f61574f7e0f59ca39694e9abd6584ee",class:"notification"},this.showExactDateNotification?Object(c.g)("sb-notification-text",{class:"notification-text",type:Te.error,align:Ne.center},Object(c.g)("sb-svg-icon",{class:"warning-icon",icon:"warning"}),"Selecteer de exacte datum a.u.b."):null),Object(c.g)("sb-date-picker-list",{key:"92c44ad978e95f6ffab43eeb0abc95be9904c8a6",availableDates:this.availableDates,viewDate:this.viewDate,onUpdateDate:e=>this.updateDate.emit(e.detail),selectedDate:this.selectedDate,isWholeMonthSelected:this.isWholeMonthSelected,closestMonth:this.closestMonth,showNoDatesNotif:this.showNoDatesNotif}))}static get style(){return".sc-sb-date-picker-h{display:block}.year-picker.sc-sb-date-picker{margin-top:10px}.notification.sc-sb-date-picker{padding:6px 0;min-height:36px}.notification-text.sc-sb-date-picker{margin:0}.notification-text.sc-sb-date-picker .warning-icon.sc-sb-date-picker{width:12px;height:12px;margin-right:8px;fill:#970202}"}},[2,"sb-date-picker",{selectedDate:[16],viewDate:[16],availableDates:[16],availableMonths:[16],isWholeMonthSelected:[4,"is-whole-month-selected"],compact:[4],showNoDatesNotif:[4,"show-no-dates-notif"]}]);function es(){if("undefined"==typeof customElements)return;["sb-date-picker","sb-alt-duration-notif","sb-custom-select","sb-custom-select-option","sb-date-picker-list","sb-notification-text","sb-svg-icon","sb-year-picker"].forEach(e=>{switch(e){case"sb-date-picker":customElements.get(e)||customElements.define(e,Zt);break;case"sb-alt-duration-notif":customElements.get(e)||qt();break;case"sb-custom-select":customElements.get(e)||vt();break;case"sb-custom-select-option":customElements.get(e)||yt();break;case"sb-date-picker-list":customElements.get(e)||Yt();break;case"sb-notification-text":customElements.get(e)||$t();break;case"sb-svg-icon":customElements.get(e)||ue();break;case"sb-year-picker":customElements.get(e)||Xt()}})}es();const ts=Object(c.h)(class extends c.b{constructor(){super(),this.__registerHost(),this.updateDate=Object(c.d)(this,"updateDate",7),this.viewDate=void 0,this.selectedDate=void 0,this.availableMonths=void 0,this.availableMonthsByYears=void 0,this.showNoDatesNotif=!1}isSame(e,t){return!(!e||!t)&&p.sameMonth(e,t)}clickItem(e){this.isDisabled(e.available)||this.updateDate.emit({date:e.date,type:u.month})}isDisabled(e){return void 0!==e&&!e}get months(){return p.getAllMonthOptions(this.viewDate.getFullYear(),this.availableMonths)}get allMonths(){return p.getAllMonthOptionsGrouped(this.availableMonthsByYears)}render(){return Object(c.g)(c.c,{key:"67b883c0ef698bf11b187a9d265bc216eef3a231"},Object.entries(this.allMonths).map(([e,t])=>[Object(c.g)("h4",{class:"month-heading"},e),Object(c.g)("div",{class:"month-list"},t.map(e=>Object(c.g)("div",{class:{month:!0,selected:this.isSame(e.date,this.selectedDate),disabled:this.isDisabled(e.available)},onClick:()=>this.clickItem(e),onKeyDown:t=>y(t,this.clickItem.bind(this),e),tabindex:this.isSame(e.date,this.selectedDate)||this.isDisabled(e.available)?-1:0,role:"button"},e.formatted)))]))}static get style(){return'.sc-sb-month-picker-h{display:block}.month-list.sc-sb-month-picker{display:flex;flex-wrap:wrap;justify-content:space-around}.month.sc-sb-month-picker{font-size:16px;line-height:24px;font-weight:400;font-family:"Source Sans Pro", arial, sans-serif;letter-spacing:normal;margin:0;flex-grow:1;width:20%;padding:10px;border:1px solid #757575;box-sizing:border-box;border-radius:18px;text-align:center;margin:7px 1.5%;cursor:pointer;text-transform:uppercase;line-height:1}.month.sc-sb-month-picker:focus{outline:thin dotted;outline-color:#000}@media (max-width: 767px){.month.sc-sb-month-picker{border-radius:24px;padding:12px}}@media (min-width: 768px) and (max-width: 1199px){.month.sc-sb-month-picker{padding:35px}}.selected.sc-sb-month-picker{background:#e3f2f0;border:1px solid #59a498}.disabled.sc-sb-month-picker{opacity:0.2}.month-heading.sc-sb-month-picker{font-size:20px;line-height:28px;font-weight:600;font-family:"Source Sans Pro", arial, sans-serif;letter-spacing:normal;margin:0;font-size:18px;line-height:1;color:#262626;text-align:center;margin:24px 0}'}},[2,"sb-month-picker",{viewDate:[16],selectedDate:[16],availableMonths:[16],availableMonthsByYears:[16],showNoDatesNotif:[4,"show-no-dates-notif"]}]);function ss(){if("undefined"==typeof customElements)return;["sb-month-picker"].forEach(e=>{switch(e){case"sb-month-picker":customElements.get(e)||customElements.define(e,ts)}})}ss();const is=Object(c.h)(class extends c.b{constructor(){super(),this.__registerHost(),this.changed=Object(c.d)(this,"changed",7),this.items=[],this.selected=void 0}isSelected(e){return e===this.selected.id}onChangeOption(e){this.changed.emit(e)}render(){return Object(c.g)(c.c,{key:"9d35b8a64377d3fbab78e63fda64920416b6caf6"},Object(c.g)("div",{key:"3fd68de5e8c74fa7b2a0ee456c821c7430be7b55",class:"switch-container"},this.items.map(e=>Object(c.g)("div",{class:{"switch-inner":!0,selected:this.isSelected(e.id)},onClick:()=>this.onChangeOption(e),onKeyDown:t=>y(t,this.onChangeOption.bind(this),e),tabindex:this.isSelected(e.id)?-1:0,role:"button"},e.name))))}static get style(){return'.sc-sb-text-switch-h{display:block}.switch-container.sc-sb-text-switch{display:flex;justify-content:center;align-items:center}.switch-inner.sc-sb-text-switch{font-size:16px;line-height:24px;font-weight:400;font-family:"Source Sans Pro", arial, sans-serif;letter-spacing:normal;margin:0;padding:4px 16px;text-align:center;border:1px solid #59a498;font-size:18px;cursor:pointer;white-space:nowrap}.switch-inner.sc-sb-text-switch:focus{background-color:#e3f2f0;outline:none}.switch-inner.selected.sc-sb-text-switch{padding:3px 16px;background:#e3f2f0;border:2px solid #59a498;z-index:1}.switch-inner.sc-sb-text-switch:first-child{border-radius:100px 0 0 100px}.switch-inner.sc-sb-text-switch:first-child:not(.selected){border-right:0;padding-right:32px}.switch-inner.sc-sb-text-switch:first-child.selected{border-radius:100px;margin-right:-16px}.switch-inner.sc-sb-text-switch:last-child{border-radius:0 100px 100px 0}.switch-inner.sc-sb-text-switch:last-child:not(.selected){border-left:0;padding-left:32px}.switch-inner.sc-sb-text-switch:last-child.selected{border-radius:100px;margin-left:-16px}'}},[2,"sb-text-switch",{items:[16],selected:[16]}]);function ns(){if("undefined"==typeof customElements)return;["sb-text-switch"].forEach(e=>{switch(e){case"sb-text-switch":customElements.get(e)||customElements.define(e,is)}})}ns();const os=Object(c.h)(class extends c.b{constructor(){super(),this.__registerHost(),this.dismissError=Object(c.d)(this,"dismissError",7),this.apply=Object(c.d)(this,"apply",7),this.cancel=Object(c.d)(this,"cancel",7),this.prevDateEventDetail=null,this.label=void 0,this.dateRange=void 0,this.isInvalid=void 0,this.compact=void 0,this.minimal=void 0,this.isCompactDismissed=void 0,this.skipValidation=void 0,this.activeDates=void 0,this.activeMonths=void 0,this.availableMonthsByYears=void 0,this.selectedDate=void 0,this.viewDate=void 0,this.inputValue=void 0,this.selectedDateType=void 0,this.isAvailabilityLoading=!1,this.isQuickSearchLoading=void 0,this.isMonthLoading=void 0,this.isFlexible=void 0,this.isWholeMonthSelected=void 0,this.showNoDatesNotif=!1}get headers(){return q}quickSearchLoadingChanged(){this.isQuickSearchLoading||(this.isMonthLoading=!1)}componentWillLoad(){ct(e=>this.isQuickSearchLoading=e),this.dropdownActions=gt.getDropdownActions(this.compact),this.selectedDateType=q[this.isWholeMonthSelected?0:1]}connectedCallback(){this.availableDatesSubscription=_t.availableDates$.subscribe(e=>this.activeDates=this.dateRange?p.getAvailableDatesWith(this.dateRange):e),this.availableMonthsSubscription=_t.availableMonths$.subscribe(e=>this.activeMonths=this.dateRange?p.monthToOption(p.getAvailableMonthsWith(this.dateRange)):e),this.availableMonthsByYearsSubscription=_t.availableMonthsByYears$.subscribe(e=>this.availableMonthsByYears=this.dateRange?p.getAvailableMonthsWith(this.dateRange):e),this.selectedDateSubscription=_t.selectedDate$.subscribe(e=>this.selectedDate=e),this.inputValueSubscription=_t.inputValue$.subscribe(e=>this.inputValue=e),this.viewDateSubscription=_t.viewDate$.subscribe(e=>this.viewDate=e),this.isFlexibleSubscription=_t.isFlexible$.subscribe(e=>this.isFlexible=e),this.isAvailabilityLoadingSubscription=_t.isAvailabilityLoading$.subscribe(e=>this.isAvailabilityLoading=e),this.flexibilityStateSubscription=_t.flexibilityState$.subscribe(e=>this.isWholeMonthSelected=30===e),this.showNoDatesNotificationSubscription=_t.showNoDatesNotification$.subscribe(e=>this.showNoDatesNotif=e),_t.saveSelected(),_t.restoreInitialViewDate()}disconnectedCallback(){this.availableDatesSubscription.unsubscribe(),this.availableMonthsSubscription.unsubscribe(),this.availableMonthsByYearsSubscription.unsubscribe(),this.selectedDateSubscription.unsubscribe(),this.inputValueSubscription.unsubscribe(),this.viewDateSubscription.unsubscribe(),this.isFlexibleSubscription.unsubscribe(),this.isAvailabilityLoadingSubscription.unsubscribe(),this.flexibilityStateSubscription.unsubscribe(),this.showNoDatesNotificationSubscription.unsubscribe()}onChangeDateType({detail:e}){this.selectedDateType=e}onChangeDate(e){const t=Object.assign({},e.detail);t.type===u.month?(this.compact&&(t.type=u.day,_t.flexibilityState$.next(0)),this.activeDates.length&&p.sameMonth(new Date(this.activeDates[0]),t.date)||(this.isMonthLoading=!0),this.onChangeDateType({detail:q[1]})):t.type===u.day&&_t.flexibilityState$.next(this.isFlexible?3:0),this.prevDateEventDetail=t,_t.onChangeDate(t)}onApply(){this.apply.emit()}onCancel(){this.cancel.emit()}toggleFlexible(){_t.isFlexible$.next(!this.isFlexible),this.prevDateEventDetail&&_t.updateDate(this.prevDateEventDetail,this.isFlexible)}onCloseError(){this.dismissError.emit()}render(){return Object(c.g)(c.c,{key:"467c0d63db0d0bc9fab842b60ce80bcbc6c954c2"},Object(c.g)("sb-overlay-dropdown",{key:"8c5c47501ab90f3f0cc752b43491da93b1da7cd4",slot:"dropdown",actions:this.dropdownActions,onApply:this.onApply.bind(this),onCancel:this.onCancel.bind(this),disabledConfirm:this.compact&&(this.isQuickSearchLoading||this.isAvailabilityLoading),isLoading:!this.skipValidation&&(this.isMonthLoading||this.isAvailabilityLoading),withDesktopActions:this.compact,leftSide:this.compact||this.minimal,maxHeight:"560px",extraActionsContent:this.selectedDateType.id!==u.day||this.compact?null:()=>Object(c.g)("sb-date-flexibility",{class:"date-flexibility"})},Object(c.g)("div",{key:"707027a80314bd208e7d8ea4753be003607f2c48",class:"dropdown-header",slot:"header"},Object(c.g)("span",{key:"70333cadca3050ddd0875c65e45648641232ec88",class:"selected-value"},this.inputValue),Object(c.g)("sb-list-divider",{key:"b29440b8016e902a76b5fac789901e15830e57d9",class:"list-divider"})),Object(c.g)("div",{key:"af03d7cf0ad9bd43ff6c5d1016d2447f5e9a3d2c",slot:"content",class:"dropdown-content"},!this.compact&&Object(c.g)("sb-text-switch",{class:"date-type",items:this.headers,selected:this.selectedDateType,onChanged:this.onChangeDateType.bind(this)}),Object(c.g)("div",{key:"2db47f694199a26f0d746b82c129e6f8cf4d1542",class:"date-picker"},this.selectedDateType.id===u.day&&Object(c.g)("sb-date-picker",{selectedDate:this.selectedDate,viewDate:this.viewDate,availableDates:this.activeDates,availableMonths:this.activeMonths,isWholeMonthSelected:this.isWholeMonthSelected,compact:this.compact,onUpdateDate:this.onChangeDate.bind(this),showNoDatesNotif:this.showNoDatesNotif}),this.selectedDateType.id===u.month&&Object(c.g)("sb-month-picker",{selectedDate:this.selectedDate,viewDate:this.viewDate.date,availableMonths:this.activeMonths,availableMonthsByYears:this.availableMonthsByYears,onUpdateDate:this.onChangeDate.bind(this),showNoDatesNotif:this.showNoDatesNotif})))))}static get watchers(){return{isQuickSearchLoading:["quickSearchLoadingChanged"]}}static get style(){return'@media (max-width: 767px){.sc-sb-bar-date-dropdown-h{flex-wrap:wrap}}.sc-sb-bar-date-dropdown-h .selected-value.sc-sb-bar-date-dropdown{font-size:16px;line-height:24px;font-weight:600;font-family:"Source Sans Pro", arial, sans-serif;letter-spacing:normal;margin:0;margin:0 16px}@media (min-width: 1200px){.sc-sb-bar-date-dropdown-h .selected-value.sc-sb-bar-date-dropdown{margin:0}}.sc-sb-bar-date-dropdown-h .list-divider.sc-sb-bar-date-dropdown{margin:16px}@media (min-width: 1200px){.sc-sb-bar-date-dropdown-h .list-divider.sc-sb-bar-date-dropdown{margin:16px 0}}.title.sc-sb-bar-date-dropdown{font-size:20px;line-height:28px;font-weight:600;font-family:"Source Sans Pro", arial, sans-serif;letter-spacing:normal;margin:0;color:#262626}.title-container.sc-sb-bar-date-dropdown{width:100%}@media (min-width: 1200px){.dropdown-header.sc-sb-bar-date-dropdown{display:none}}.dropdown-content.sc-sb-bar-date-dropdown{margin-bottom:32px}@media (min-width: 1200px){.dropdown-content.sc-sb-bar-date-dropdown{margin-bottom:0}}.flexible-checkbox.sc-sb-bar-date-dropdown{display:flex;justify-content:center;flex-direction:row-reverse;align-items:flex-start}.flexible-checkbox.sc-sb-bar-date-dropdown span.sc-sb-bar-date-dropdown{font-size:14px;line-height:24px;font-weight:400;font-family:"Source Sans Pro", arial, sans-serif;letter-spacing:normal;margin:0;cursor:pointer;padding:0 0 0 10px;text-align:center;color:#757575}.flexible-slide.sc-sb-bar-date-dropdown{align-items:center;display:flex;justify-content:center;padding:24px 0}.flexible-slide-text.sc-sb-bar-date-dropdown{font-size:16px;line-height:24px;font-weight:600;font-family:"Source Sans Pro", arial, sans-serif;letter-spacing:normal;margin:0}.flexible-slide-toggle.sc-sb-bar-date-dropdown{margin:0 24px}.date-type.sc-sb-bar-date-dropdown{margin-bottom:16px}'}},[2,"sb-bar-date-dropdown",{label:[1],dateRange:[16],isInvalid:[4,"is-invalid"],compact:[4],minimal:[4],isCompactDismissed:[4,"is-compact-dismissed"],skipValidation:[4,"skip-validation"],activeDates:[32],activeMonths:[32],availableMonthsByYears:[32],selectedDate:[32],viewDate:[32],inputValue:[32],selectedDateType:[32],isAvailabilityLoading:[32],isQuickSearchLoading:[32],isMonthLoading:[32],isFlexible:[32],isWholeMonthSelected:[32],showNoDatesNotif:[32]},void 0,{isQuickSearchLoading:["quickSearchLoadingChanged"]}]);function as(){if("undefined"==typeof customElements)return;["sb-bar-date-dropdown","sb-alt-duration-notif","sb-custom-select","sb-custom-select-option","sb-date-flexibility","sb-date-picker","sb-date-picker-list","sb-list-divider","sb-month-picker","sb-notification-text","sb-overlay-dropdown","sb-radio-button","sb-spinner-circle","sb-spinner-underlay","sb-svg-icon","sb-text-switch","sb-year-picker"].forEach(e=>{switch(e){case"sb-bar-date-dropdown":customElements.get(e)||customElements.define(e,os);break;case"sb-alt-duration-notif":customElements.get(e)||qt();break;case"sb-custom-select":customElements.get(e)||vt();break;case"sb-custom-select-option":customElements.get(e)||yt();break;case"sb-date-flexibility":customElements.get(e)||Ut();break;case"sb-date-picker":customElements.get(e)||es();break;case"sb-date-picker-list":customElements.get(e)||Yt();break;case"sb-list-divider":customElements.get(e)||kt();break;case"sb-month-picker":customElements.get(e)||ss();break;case"sb-notification-text":customElements.get(e)||$t();break;case"sb-overlay-dropdown":customElements.get(e)||Tt();break;case"sb-radio-button":customElements.get(e)||Wt();break;case"sb-spinner-circle":customElements.get(e)||Dt();break;case"sb-spinner-underlay":customElements.get(e)||Ct();break;case"sb-svg-icon":customElements.get(e)||ue();break;case"sb-text-switch":customElements.get(e)||ns();break;case"sb-year-picker":customElements.get(e)||Xt()}})}as();const rs=Object(c.h)(class extends c.b{constructor(){super(),this.__registerHost(),this.beforeClose=Object(c.d)(this,"beforeClose",7),this.closed=Object(c.d)(this,"closed",7),this.opened=Object(c.d)(this,"opened",7),this.hasValidation=void 0,this.dropdownRenderFunc=void 0,this.isDropdownActive=!1}watchActive(e,t){e&&!t?this.dropdownOpened():!e&&t&&this.dropdownClosed()}connectedCallback(){this.closeSubscription=gt.onClose$.subscribe(()=>{this.isDropdownActive&&(this.isDropdownActive=!1)})}disconnectedCallback(){var e;this.closeSubscription.unsubscribe(),null===(e=this.disposeScrollingListeners)||void 0===e||e.call(this)}handleClickOutside(){this.isDropdownActive&&(this.hasValidation?this.beforeClose.emit():this.isDropdownActive=!1)}openByClick(e){e.stopPropagation(),this.isDropdownActive||(gt.triggerOpenedByClick(),this.openIfClosed())}processKeyPress(e){x[e.code]&&this.openByClick(e),"Escape"===e.code&&this.handleClickOutside()}handleContentRefInit(e){O.isIPhoneOrIpad&&(this.disposeScrollingListeners=(e=>{if(!e)return;let t=!1;const s=g(()=>{t||(e.scrollTop=Math.max(1,Math.min(e.scrollTop,e.scrollHeight-e.clientHeight-1)))},50),i=()=>t=!0,n=()=>t=!1;e.addEventListener("scroll",s),e.addEventListener("touchstart",i),e.addEventListener("touchend",n);return()=>{e.removeEventListener("scroll",s),e.removeEventListener("touchstart",i),e.removeEventListener("touchend",n)}})(e.detail))}openIfClosed(){gt.close(),this.isDropdownActive||(this.isDropdownActive=!0)}async open(){this.openIfClosed()}dropdownOpened(){this.setLockPage(!0),this.opened.emit()}dropdownClosed(){var e;this.setLockPage(!1),this.closed.emit(),null===(e=this.disposeScrollingListeners)||void 0===e||e.call(this)}setLockPage(e){O.toggleConnectorsBackdrop({locked:e})}render(){return Object(c.g)(c.c,{key:"5d1008df922f6ccedfee45dc3527dcb10c701c71",tabindex:"0",role:"button"},Object(c.g)("div",{key:"ca8e4dceb7c2b01783bd8bc183914e62abd5db41"},Object(c.g)("slot",{key:"172e75c32520e32a8610cdab37b4608085c8270c",name:"input"})),this.isDropdownActive&&Object(c.g)("div",{class:"dropdown-wrapper"},this.dropdownRenderFunc()))}static get watchers(){return{isDropdownActive:["watchActive"]}}static get style(){return".sc-sb-overlay-emitter-h{display:block;width:100%;position:relative}.sc-sb-overlay-emitter-h:focus{outline:thin dotted;outline-color:#000}.dropdown-wrapper.sc-sb-overlay-emitter{position:fixed;top:0;left:0;z-index:1011;height:100vh;width:100vw}@media (min-width: 1200px){.dropdown-wrapper.sc-sb-overlay-emitter{position:absolute;top:44px;left:1px;right:0;height:auto;width:auto}}"}},[6,"sb-overlay-emitter",{hasValidation:[4,"has-validation"],dropdownRenderFunc:[16],isDropdownActive:[32],open:[64]},[[4,"click","handleClickOutside"],[1,"click","openByClick"],[1,"keydown","processKeyPress"],[0,"contentRefInit","handleContentRefInit"]],{isDropdownActive:["watchActive"]}]);function cs(){if("undefined"==typeof customElements)return;["sb-overlay-emitter"].forEach(e=>{switch(e){case"sb-overlay-emitter":customElements.get(e)||customElements.define(e,rs)}})}cs();const ls=Object(c.h)(class extends c.b{constructor(){super(),this.__registerHost(),this.labelOnly=!0,this.label=void 0,this.isInvalid=void 0,this.value=void 0,this.valueSecondary=void 0,this.isFloat=!1}componentWillRender(){this.labelOnly=!this.value||0===this.value.length,this.value&&(this._value={val:this.value[0],hiddenCounter:this.value.length-1})}render(){var e,t,s,i;return Object(c.g)(c.c,{key:"cfa675a9e11cbf1fb5d334580af62337b1a1d76e"},Object(c.g)("div",{key:"9c8c59ec35a805dd87dd218f9997de0eeb1d02f5",class:"status-wrapper"+(this.isInvalid?" invalid":"")},Object(c.g)("label",{key:"47ab46f032b6fe336cfd79a9b114c47a7cf37282",class:"label-container"},Object(c.g)("div",{key:"7c2d2135869689af0cf91b2bfaac4c588768bbec",class:"label"+(this.labelOnly&&!this.isFloat?" placeholder":"")},this.label),(!this.labelOnly||this.isFloat)&&Object(c.g)("div",{class:"value"},Object(c.g)("span",{class:"text",tabindex:"-1",key:null===(e=this.label)||void 0===e?void 0:e.toLowerCase().replace(/\s+/g,"-")},null===(t=this._value)||void 0===t?void 0:t.val),(null===(s=this._value)||void 0===s?void 0:s.hiddenCounter)>0&&Object(c.g)("div",null,"+",null===(i=this._value)||void 0===i?void 0:i.hiddenCounter),this.valueSecondary&&Object(c.g)("span",{class:"value-secondary"},this.valueSecondary)))))}static get style(){return'.sc-sb-status-input-h{cursor:pointer;-webkit-tap-highlight-color:transparent}.status-wrapper.sc-sb-status-input{display:flex;align-items:center;cursor:pointer;background-color:#fff;padding:0 14px;height:43px;pointer-events:none;border:1px solid #d9d9d9;border-radius:8px}@media (min-width: 768px){.status-wrapper.sc-sb-status-input{margin-bottom:0}}.status-wrapper.invalid.sc-sb-status-input{border-color:#970202}.status-wrapper.invalid.sc-sb-status-input .label.sc-sb-status-input{color:#970202}.label.sc-sb-status-input{font-size:12px;line-height:16px;font-weight:400;font-family:"Source Sans Pro", arial, sans-serif;letter-spacing:normal;margin:0;color:#262626;white-space:nowrap;cursor:pointer;position:relative;width:fit-content;top:-9px;background:#fff;padding:0 4px;margin-left:-4px}.label.placeholder.sc-sb-status-input{font-size:16px;line-height:24px;font-weight:400;font-family:"Source Sans Pro", arial, sans-serif;letter-spacing:normal;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;width:100%;padding:0;top:8px}.label-container.sc-sb-status-input{display:flex;flex-direction:column;flex-grow:1;margin:0;width:100%;height:100%}.value.sc-sb-status-input{font-size:16px;line-height:24px;font-weight:600;font-family:"Source Sans Pro", arial, sans-serif;letter-spacing:normal;margin:0;display:flex;justify-content:flex-start;align-items:baseline;position:relative;top:-8px}.value-secondary.sc-sb-status-input{font-size:12px;line-height:16px;font-weight:400;font-family:"Source Sans Pro", arial, sans-serif;letter-spacing:normal;margin:0;text-wrap:nowrap}.text.sc-sb-status-input{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;width:100%;letter-spacing:normal;line-height:1em;color:#262626;caret-color:#262626;background:transparent;border:0;outline:none;padding:0;margin:0;vertical-align:bottom;text-align:inherit;font-size:16px;line-height:24px;font-weight:600;font-family:"Source Sans Pro", arial, sans-serif;letter-spacing:normal;margin:0;width:auto;margin-right:4px}'}},[2,"sb-status-input",{label:[1],isInvalid:[4,"is-invalid"],value:[16],valueSecondary:[1,"value-secondary"],isFloat:[4,"is-float"]}]);function ds(){if("undefined"==typeof customElements)return;["sb-status-input"].forEach(e=>{switch(e){case"sb-status-input":customElements.get(e)||customElements.define(e,ls)}})}ds();const hs=Object(c.h)(class extends c.b{constructor(){super(),this.__registerHost(),this.showError=Object(c.d)(this,"showError",7),this.compactSearch=Object(c.d)(this,"compactSearch",7),this.dismiss=Object(c.d)(this,"dismiss",7),this.label="Wanneer",this.valueSecondary="+/- 3 dagen",this.dateRange=void 0,this.isInvalid=void 0,this.compact=void 0,this.minimal=void 0,this.skipValidation=void 0,this.isDropDownActive=!1,this.isCompactDismissed=void 0,this.errorMessage=void 0,this.inputValue=void 0,this.isFlexible=void 0}componentWillLoad(){_t.setCached()}connectedCallback(){this.openOverlaySubscription=_t.onOpen$.subscribe(async()=>{var e;return await(null===(e=this.overlayEmitterRef)||void 0===e?void 0:e.open())}),this.inputValueSubscription=_t.inputValue$.subscribe(e=>this.inputValue=e),this.isFlexibleSubscription=_t.isFlexible$.subscribe(e=>this.isFlexible=e)}disconnectedCallback(){this.openOverlaySubscription.unsubscribe(),this.inputValueSubscription.unsubscribe(),this.isFlexibleSubscription.unsubscribe()}checkValidation(e){const t=this.skipValidation?null:_t.datepickerError;null!==t&&(null==e||e.stopPropagation(),this.errorMessage=function(e){switch(e){case b.both:return""+Ce;case b.departures:return""+Ae;case b.destinations:return""+je;default:return""}}(t),this.showError.emit(this.errorMessage),gt.close())}onCloseError(){this.dismiss.emit(),this.isCompactDismissed=!0,this.errorMessage=""}onOpened(){_t.availableDates.length||_t.availableMonths.length||_t.setViewDate(_t.initialViewDate),this.checkValidation(),this.isDropDownActive=!this.errorMessage}onApply(){gt.close(),this.compact?_t.isDirty()&&this.compactSearch.emit():_t.openNextSection()}onCancel(){this.compact&&_t.restoreSelected(),gt.close()}onOverlayClosed(){this.isDropDownActive=!1}onBeforeClose(){this.compact?this.onCancel():this.isInvalid&&this.errorMessage||(this.onApply(),this.onOverlayClosed())}render(){return Object(c.g)(c.c,{key:"05fc876fe52501ac5b5a71f4927846b0b17b75a4"},Object(c.g)("sb-overlay-emitter",{key:"c2a3e499d90bbbc158bd9e2611a6293ee3c933ca",onKeyDown:e=>y(e,()=>!this.compact&&this.checkValidation.call(this,e)),hasValidation:this.compact,ref:e=>this.overlayEmitterRef=e,onBeforeClose:this.onBeforeClose.bind(this),onOpened:this.onOpened.bind(this),onClosed:this.onOverlayClosed.bind(this),dropdownRenderFunc:()=>Object(c.g)("sb-bar-date-dropdown",{label:this.label,compact:this.compact,minimal:this.minimal,isInvalid:this.isInvalid,skipValidation:this.skipValidation,dateRange:this.dateRange,isCompactDismissed:this.isCompactDismissed,onApply:this.onApply.bind(this),onCancel:this.onCancel.bind(this),onDismissError:this.onCloseError.bind(this)})},Object(c.g)("sb-status-input",{key:"ac11385dd217e1100da3ef6b7b3ded66c1d03ff3",slot:"input",isInvalid:this.isInvalid,isFloat:this.isDropDownActive,label:this.label,value:this.inputValue,valueSecondary:this.isFlexible?this.valueSecondary:""})))}static get style(){return'@media (max-width: 767px){.sc-sb-bar-date-h{flex-wrap:wrap}}.title.sc-sb-bar-date{padding-bottom:12px}.title-container.sc-sb-bar-date{width:100%;margin-bottom:8px}@media (min-width: 1200px){.dropdown-header.sc-sb-bar-date{display:none}}.flexible-checkbox.sc-sb-bar-date{display:flex;justify-content:center;flex-direction:row-reverse;align-items:flex-start}.flexible-checkbox.sc-sb-bar-date span.sc-sb-bar-date{font-size:14px;line-height:24px;font-weight:400;font-family:"Source Sans Pro", arial, sans-serif;letter-spacing:normal;margin:0;cursor:pointer;padding:0 0 0 10px;text-align:center;color:#757575}.flexible-slide.sc-sb-bar-date{align-items:center;display:flex;justify-content:center;padding:24px 0}.flexible-slide-text.sc-sb-bar-date{font-size:16px;line-height:24px;font-weight:600;font-family:"Source Sans Pro", arial, sans-serif;letter-spacing:normal;margin:0}.flexible-slide-toggle.sc-sb-bar-date{margin:0 24px}'}},[2,"sb-bar-date",{dateRange:[16],isInvalid:[4,"is-invalid"],compact:[4],minimal:[4],skipValidation:[4,"skip-validation"],isDropDownActive:[32],isCompactDismissed:[32],errorMessage:[32],inputValue:[32],isFlexible:[32]}]);function ps(){if("undefined"==typeof customElements)return;["sb-bar-date","sb-alt-duration-notif","sb-bar-date-dropdown","sb-custom-select","sb-custom-select-option","sb-date-flexibility","sb-date-picker","sb-date-picker-list","sb-list-divider","sb-month-picker","sb-notification-text","sb-overlay-dropdown","sb-overlay-emitter","sb-radio-button","sb-spinner-circle","sb-spinner-underlay","sb-status-input","sb-svg-icon","sb-text-switch","sb-year-picker"].forEach(e=>{switch(e){case"sb-bar-date":customElements.get(e)||customElements.define(e,hs);break;case"sb-alt-duration-notif":customElements.get(e)||qt();break;case"sb-bar-date-dropdown":customElements.get(e)||as();break;case"sb-custom-select":customElements.get(e)||vt();break;case"sb-custom-select-option":customElements.get(e)||yt();break;case"sb-date-flexibility":customElements.get(e)||Ut();break;case"sb-date-picker":customElements.get(e)||es();break;case"sb-date-picker-list":customElements.get(e)||Yt();break;case"sb-list-divider":customElements.get(e)||kt();break;case"sb-month-picker":customElements.get(e)||ss();break;case"sb-notification-text":customElements.get(e)||$t();break;case"sb-overlay-dropdown":customElements.get(e)||Tt();break;case"sb-overlay-emitter":customElements.get(e)||cs();break;case"sb-radio-button":customElements.get(e)||Wt();break;case"sb-spinner-circle":customElements.get(e)||Dt();break;case"sb-spinner-underlay":customElements.get(e)||Ct();break;case"sb-status-input":customElements.get(e)||ds();break;case"sb-svg-icon":customElements.get(e)||ue();break;case"sb-text-switch":customElements.get(e)||ns();break;case"sb-year-picker":customElements.get(e)||Xt()}})}function bs(e,t){t?function(e,t){const s=Fe("sb-recent-facets"),i=Object.assign(Object.assign({},s),{[t]:e});Ve.setItem("sb-recent-facets",JSON.stringify(i))}(t,e):Ve.removeItem("sb-recent-facets")}ps();const us=Object(c.h)(class extends c.b{constructor(){super(),this.__registerHost(),this.changed=Object(c.d)(this,"changed",7),this.value=void 0,this.checked=void 0,this.disabled=void 0,this.reverse=void 0,this.canBeChanged=!1,this.checkBeforeChange=()=>!0}get tabIndex(){return this.disabled?-1:0}onChange(e){e.preventDefault();const t=!this.checked,s=""+this.value;this.changed.emit({value:s,selected:t})}render(){return Object(c.g)(c.c,{key:"0ff7d591c04b668dc7516f3dcecd4969e497f175"},Object(c.g)("label",{key:"7707b32e55c4131fced0d3dd2d68eeaf806ee0e6",class:`checkbox-label${this.disabled?" disabled":""}${this.reverse?" reverse":""}`,tabindex:"-1"},Object(c.g)("input",{key:"2ee7cb423906c602af58ae05529a78d9c85108bb",class:"checkbox-input",type:"checkbox",tabindex:this.tabIndex,value:this.value,checked:this.checked,disabled:this.disabled,onClick:e=>{this.checkBeforeChange(!this.checked)||(e.preventDefault(),e.stopImmediatePropagation())},onKeyDown:e=>y(e,()=>this.checkBeforeChange(!this.checked)&&this.onChange(e),e),onChange:this.onChange.bind(this)}),Object(c.g)("slot",{key:"7e6e049372ecbc8a2596f4d475a081105ac58089"})))}static get style(){return'.checkbox-label.sc-sb-checkbox{font-size:16px;line-height:24px;font-weight:400;font-family:"Source Sans Pro", arial, sans-serif;letter-spacing:normal;margin:0;display:flex;align-items:center;grid-gap:16px;cursor:pointer}.checkbox-label.reverse.sc-sb-checkbox{flex-direction:row-reverse;justify-content:space-between}.checkbox-label.disabled.sc-sb-checkbox{cursor:default;color:#9d9d9d}.checkbox-label.sc-sb-checkbox .checkbox-input.sc-sb-checkbox{--active:#59a498;--active-inner:#fff;--border:#9d9d9d;--border-hover:#59a498;--background:#fff;--disabled:#e9e9e9;--disabled-inner:#9d9d9d;appearance:none;-webkit-appearance:none;-moz-appearance:none;height:18px;width:18px;outline:none;display:inline-block;vertical-align:top;position:relative;margin:0;cursor:pointer;border:1px solid var(--bc, var(--border));border-radius:4px;background:var(--b, var(--background));transition:background 0.3s, border-color 0.3s, box-shadow 0.2s}.checkbox-label.sc-sb-checkbox .checkbox-input.sc-sb-checkbox:focus-visible{--bc:var(--border-hover);box-shadow:0 0 2px 3px rgba(89, 164, 152, 0.3)}.checkbox-label.sc-sb-checkbox .checkbox-input.sc-sb-checkbox::after{content:"";display:block;position:absolute;transition:transform var(--d-t, 0.3s) var(--d-t-e, ease), opacity var(--d-o, 0.2s);opacity:var(--o, 0);width:6px;height:12px;border:2px solid var(--active-inner);border-top:0;border-left:0;left:5px;top:0;transform:rotate(var(--r, 20deg))}.checkbox-label.sc-sb-checkbox .checkbox-input.sc-sb-checkbox:checked{--b:var(--active);--bc:var(--active);--d-o:0.3s;--d-t:0.6s;--d-t-e:cubic-bezier(0.2, 0.85, 0.32, 1.2);--o:1;--r:43deg}.checkbox-label.sc-sb-checkbox .checkbox-input.sc-sb-checkbox:disabled{--b:var(--disabled);opacity:0.6;cursor:default}.checkbox-label.sc-sb-checkbox .checkbox-input.sc-sb-checkbox:disabled:checked{--b:var(--disabled-inner);--bc:var(--border)}.checkbox-label.sc-sb-checkbox .checkbox-input.sc-sb-checkbox:hover:not(:checked):not(:disabled){--bc:var(--border-hover)}'}},[6,"sb-checkbox",{value:[8],checked:[4],disabled:[4],reverse:[4],canBeChanged:[4,"can-be-changed"],checkBeforeChange:[16]}]);function ms(){if("undefined"==typeof customElements)return;["sb-checkbox"].forEach(e=>{switch(e){case"sb-checkbox":customElements.get(e)||customElements.define(e,us)}})}ms();const gs=Object(c.h)(class extends c.b{constructor(){super(),this.__registerHost(),this.clicked=Object(c.d)(this,"clicked",7),this.value=void 0,this.name=void 0,this.selected=void 0,this.disabled=void 0}get tabIndex(){return this.disabled?-1:0}onChange(e){e.preventDefault();const t=!this.selected,s=""+this.value;this.clicked.emit({value:s,selected:t})}render(){return Object(c.g)(c.c,{key:"9ff28d90f776aeae824c8378f9c5c5e347e1573a"},Object(c.g)("label",{key:"27e78f5a82e74f69d5af6bff23707145dd24e729",class:"checkbox-label "+(this.disabled?"disabled":"")},this.name&&Object(c.g)("span",{class:"checkbox-label-text"},Object(c.g)("sb-svg-icon",{icon:"pinIcon",class:"pin-icon"}),Object(c.g)("span",{innerHTML:this.name})),Object(c.g)("input",{key:"ea4b337c0e6a00b881832e173196cd30d690aa99",type:"checkbox",class:"checkbox-input",value:this.value,checked:this.selected,disabled:this.disabled,onClick:this.onChange.bind(this)}),Object(c.g)("div",{key:"63a2408521737e57abfdc77694b1f55431a6b5c9",class:"checkbox-frame",tabindex:this.tabIndex,role:"button",onKeyDown:e=>y(e,this.onChange.bind(this),e)},Object(c.g)("div",{key:"a2b7783244466533c9dc743486fdcee91dd491b5",class:"checkbox-checked"}))))}static get style(){return'.sc-sb-checkbox-item-h{display:block;-webkit-tap-highlight-color:transparent}.sc-sb-checkbox-item-h:not(:last-of-type) .checkbox-label.sc-sb-checkbox-item{padding-bottom:16px}.checkbox-label.sc-sb-checkbox-item{font-size:16px;line-height:24px;font-weight:400;font-family:"Source Sans Pro", arial, sans-serif;letter-spacing:normal;margin:0;display:flex;justify-content:space-between;align-items:baseline;position:relative;cursor:pointer}.checkbox-label.disabled.sc-sb-checkbox-item{color:#9d9d9d}.checkbox-label.disabled.sc-sb-checkbox-item .checkbox-frame.sc-sb-checkbox-item{border-color:#e9e9e9;background-color:#f5f5f5}.checkbox-label.disabled.sc-sb-checkbox-item .checkbox-checked.sc-sb-checkbox-item{background-color:#e9e9e9}.checkbox-label-text.sc-sb-checkbox-item{display:flex;align-items:center}.checkbox-input.sc-sb-checkbox-item{visibility:hidden;position:absolute;top:0;right:0}.checkbox-input.sc-sb-checkbox-item:checked~.checkbox-frame.sc-sb-checkbox-item .checkbox-checked.sc-sb-checkbox-item{display:block}.checkbox-frame.sc-sb-checkbox-item{display:flex;align-items:center;justify-content:center;align-self:center;width:calc(20px - 2px);height:calc(20px - 2px);border:1px solid #59a498;border-radius:4px}.checkbox-frame.sc-sb-checkbox-item:focus{background-color:#e3f2f0;outline:none}.checkbox-checked.sc-sb-checkbox-item{display:none;background-color:#59a498;width:calc(20px - 8px);height:calc(20px - 8px);border-radius:4px}.pin-icon.sc-sb-checkbox-item{width:16px;height:16px;margin-right:16px}'}},[2,"sb-checkbox-item",{value:[8],name:[1],selected:[4],disabled:[4]}]);function fs(){if("undefined"==typeof customElements)return;["sb-checkbox-item","sb-svg-icon"].forEach(e=>{switch(e){case"sb-checkbox-item":customElements.get(e)||customElements.define(e,gs);break;case"sb-svg-icon":customElements.get(e)||ue()}})}fs();const vs=Object(c.h)(class extends c.b{constructor(){super(),this.__registerHost(),this.chipsEmpty=Object(c.d)(this,"chipsEmpty",7),this.inputChanged=Object(c.d)(this,"inputChanged",7),this.deleted=Object(c.d)(this,"deleted",7),this.clear=Object(c.d)(this,"clear",7),this.addBestMatch=Object(c.d)(this,"addBestMatch",7),this.handleInputChange=g(e=>{this.inputValue=e,this.inputChanged.emit(e||"")},200),this.label=void 0,this.chipPlaceholder=void 0,this.filterPlaceholder=void 0,this.list=[],this.showFilter=!0,this.initialFilter="",this.reverse=void 0,this._list=void 0,this.inputValue=""}async resetSearchString(e=!1){this.inputValue&&(this.inputValue="",e&&this.inputChanged.emit(""))}async focusOnSearch(){setTimeout(()=>{var e;return null===(e=this.inputRef)||void 0===e?void 0:e.focus({preventScroll:!0})},0)}watchHandler(e,t){this._list=e,!e.length&&(null==t?void 0:t.length)&&this.chipsEmpty.emit(),setTimeout(()=>{if(e.length!==t.length){const e=this.element.querySelector(".chip-list");null==e||e.scroll({left:null==e?void 0:e.scrollWidth,behavior:"smooth"})}})}deleteChipHandler(e){e&&this.deleted.emit(e)}clearAll(){this.clear.emit()}inputChangedHandler(e){var t;const s=null===(t=e.path[0])||void 0===t?void 0:t.value;this.inputValue=s,this.inputChanged.emit(s||"")}componentWillLoad(){this._list=[...this.list],setTimeout(()=>{const e=this.element.querySelector(".chip-list");null==e||e.scroll({left:null==e?void 0:e.scrollWidth,behavior:"smooth"})}),!this.inputValue&&this.initialFilter&&(this.inputValue=this.initialFilter)}render(){var e;return Object(c.g)(c.c,{key:"9e9be5e67a2d0589949d58abff46e7f96c0ef9f9",class:""+(this.reverse?" reverse":"")},Object(c.g)("div",{key:"b73455128d6c68acd228a4f37f566c6211583f13",class:"float-label"},this.label),Object(c.g)("div",{key:"64c7e5ad9ff85cf76b48b8b77c7d7997d8d3f255",class:"chip-list-search"},!!this._list.length&&Object(c.g)("div",{class:"chip-list"},this._list.map(e=>Object(c.g)("div",{class:"chip "+(e.highlighted?"highlighted":"")},Object(c.g)("span",{class:"chip-label"},e.name),Object(c.g)("div",{class:"close-icon-container",tabindex:"0",onKeyDown:t=>y(t,this.deleteChipHandler.bind(this),e.id),onClick:()=>this.deleteChipHandler(e.id),"item-id":e.id},Object(c.g)("sb-svg-icon",{icon:"crossIcon",class:"close-icon"})))),Object(c.g)("a",{class:"clear-all",onClick:this.clearAll.bind(this),onKeyDown:e=>y(e,this.clearAll.bind(this)),tabindex:"0"},"wis alle"," ",Object(c.g)("sb-svg-icon",{icon:"crossIcon",class:"close-icon"}))),this.showFilter&&Object(c.g)("div",{class:"filter"},Object(c.g)("sb-svg-icon",{class:"filter-icon",icon:"mobileSearch"}),Object(c.g)("input",{class:"filter-input",onKeyDown:e=>{!function(e){"Escape"!==e.code&&e.stopPropagation()}(e),e.code===x.Enter&&this.inputValue&&this.addBestMatch.emit()},type:"text",ref:e=>this.inputRef=e,onInput:e=>this.handleInputChange(e.target.value),placeholder:(null===(e=this._list)||void 0===e?void 0:e.length)?this.filterPlaceholder:this.chipPlaceholder,value:this.inputValue,tabindex:"0"}))))}get element(){return this}static get watchers(){return{list:["watchHandler"]}}static get style(){return'.sc-sb-chip-list-h{display:block;background:#fff}.reverse.sc-sb-chip-list-h .chip-list.sc-sb-chip-list:not(:last-child){margin-top:12px}.reverse.sc-sb-chip-list-h .chip-list-search.sc-sb-chip-list{flex-direction:column-reverse}.reverse.sc-sb-chip-list-h .filter.sc-sb-chip-list{margin-top:0}.chip.sc-sb-chip-list{font-size:14px;line-height:22px;font-weight:400;font-family:"Source Sans Pro", arial, sans-serif;letter-spacing:normal;margin:0;display:inline-flex;align-items:center;letter-spacing:normal;margin:4px 4px 4px 0;background-color:#e3f2f0;border:1px solid #59a498;color:#262626;border-radius:18px;height:32px;min-height:auto;padding:0 12px;transform:none;max-width:calc(100% - 14px);overflow:unset;text-overflow:ellipsis;white-space:nowrap}.chip.highlighted.sc-sb-chip-list{background-color:#ffbc1080;border-color:#262626}.chip-list.sc-sb-chip-list{scrollbar-width:thin;scrollbar-color:#c4c4c4 #f5f5f5;display:flex;flex-wrap:nowrap;overflow-x:auto;padding-left:16px}.chip-list.sc-sb-chip-list::-webkit-scrollbar{width:12px;height:4px;background-color:#f5f5f5}.chip-list.sc-sb-chip-list::-webkit-scrollbar-track{border-radius:30px;background-color:#f5f5f5}.chip-list.sc-sb-chip-list::-webkit-scrollbar-thumb{border-radius:30px;background-color:#c4c4c4}@media (min-width: 1200px){.chip-list.sc-sb-chip-list:not(:last-child){margin-top:12px}}.chip-list-search.sc-sb-chip-list{display:flex;flex-direction:column}@media (min-width: 1200px){.chip-list-search.sc-sb-chip-list{flex-direction:column-reverse}}.chip-label.sc-sb-chip-list{margin-right:4px;width:calc(100% - 20px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.close-icon.sc-sb-chip-list{cursor:pointer;margin:0 4px;height:12px;width:10px}.close-icon-container.sc-sb-chip-list{display:flex;align-items:center;height:100%}.close-icon-container.sc-sb-chip-list:focus{outline:thin dotted;outline-color:#000}.float-label.sc-sb-chip-list{font-size:14px;line-height:22px;font-weight:400;font-family:"Source Sans Pro", arial, sans-serif;letter-spacing:normal;margin:0;color:rgba(0, 0, 0, 0.5);margin:0 16px 10px}@media (min-width: 1200px){.float-label.sc-sb-chip-list{display:none}}.clear-all.sc-sb-chip-list{font-size:16px;line-height:24px;font-weight:400;font-family:"Source Sans Pro", arial, sans-serif;letter-spacing:normal;margin:0;display:flex;white-space:nowrap;line-height:16px;padding:12px 16px 12px 10px;cursor:pointer;color:#262626}.clear-all.sc-sb-chip-list:focus{outline:thin dotted;outline-color:#000}.clear-all.sc-sb-chip-list:hover{color:#262626}.filter.sc-sb-chip-list{display:flex;align-items:center;min-width:100%;margin:8px 0 0;padding:0 16px}@media (min-width: 1200px){.filter.sc-sb-chip-list{margin-top:0}}.filter-icon.sc-sb-chip-list{width:20px;height:20px;margin-right:10px}.filter-input.sc-sb-chip-list{font-size:16px;line-height:24px;font-weight:400;font-family:"Source Sans Pro", arial, sans-serif;letter-spacing:normal;margin:0;padding:0;caret-color:#59a498;border:0;outline:none;min-width:150px;flex:1 0 150px;max-width:100%;margin:0}'}},[2,"sb-chip-list",{label:[1],chipPlaceholder:[1,"chip-placeholder"],filterPlaceholder:[1,"filter-placeholder"],list:[16],showFilter:[4,"show-filter"],initialFilter:[1,"initial-filter"],reverse:[4],_list:[32],inputValue:[32],resetSearchString:[64],focusOnSearch:[64]},void 0,{list:["watchHandler"]}]);function xs(){if("undefined"==typeof customElements)return;["sb-chip-list","sb-svg-icon"].forEach(e=>{switch(e){case"sb-chip-list":customElements.get(e)||customElements.define(e,vs);break;case"sb-svg-icon":customElements.get(e)||ue()}})}xs();const ys=Object(c.h)(class extends c.b{constructor(){super(),this.__registerHost(),this.level=Te.error,this.inline=!1}componentWillLoad(){this.hasAction1=!!this.hostElement.querySelector('[slot="action-1"]'),this.hasAction2=!!this.hostElement.querySelector('[slot="action-2"]')}render(){return Object(c.g)(c.c,{key:"114fbce5c0e012c51eaaa8936a1bfa11669c82a5"},Object(c.g)("div",{key:"19ba7858ee86dd8459d13dfcd830377f7a39d6d1",class:`notification ${Te[this.level]}${this.inline?" inline":""}`},Object(c.g)("div",{key:"dbc94b807a6aae7b11fd368a04c4356b6f4d1e49",class:"message"},Object(c.g)("slot",{key:"708d0119baeaaaad708fc32b761854c49547d99f",name:"message"})),Object(c.g)("div",{key:"ebc0de1fa78c5fc68ff5d87d993068daa75a9fa4",class:"actions"},this.hasAction1?Object(c.g)("div",{class:"action"},Object(c.g)("slot",{name:"action-1"})):null,this.hasAction2?Object(c.g)("div",{class:"action"},Object(c.g)("slot",{name:"action-2"})):null)))}get hostElement(){return this}static get style(){return'.sc-sb-notification-dialog-h{font-size:16px;line-height:24px;font-weight:400;font-family:"Source Sans Pro", arial, sans-serif;letter-spacing:normal;margin:0}.notification.sc-sb-notification-dialog{align-items:center;display:flex;gap:16px;flex-wrap:wrap;justify-content:space-between;max-width:100%;padding:16px;border-radius:16px;border-left:16px solid #59a498;box-shadow:0 2px 8px rgba(0, 0, 0, 0.1);background:#f4f4f0}.notification.inline.sc-sb-notification-dialog{flex-wrap:initial}.notification.inline.sc-sb-notification-dialog .actions.sc-sb-notification-dialog{width:auto}.error.sc-sb-notification-dialog{border-left-color:#970202}.info.sc-sb-notification-dialog{border-left-color:#59a498}.warning.sc-sb-notification-dialog{border-left-color:#ffbc10}.actions.sc-sb-notification-dialog{display:flex;flex-direction:row;justify-content:flex-end;width:100%}.action.sc-sb-notification-dialog{font-size:16px;line-height:24px;font-weight:600;font-family:"Source Sans Pro", arial, sans-serif;letter-spacing:normal;margin:0;color:#d74113;cursor:pointer;letter-spacing:normal;margin:0;text-transform:uppercase}.action.sc-sb-notification-dialog:nth-child(2){margin-left:16px}'}},[6,"sb-notification-dialog",{level:[2],inline:[4]}]);function ws(){if("undefined"==typeof customElements)return;["sb-notification-dialog"].forEach(e=>{switch(e){case"sb-notification-dialog":customElements.get(e)||customElements.define(e,ys)}})}ws();const ks=Object(c.h)(class extends c.b{constructor(){super(),this.__registerHost(),this.dismiss=Object(c.d)(this,"dismiss",7)}onDismissHandler(){this.dismiss.emit()}render(){return Object(c.g)(c.c,{key:"178bcb21f5a5d880a5916d040e663655cfa1dc6c"},Object(c.g)("sb-notification-dialog",{key:"cc6000a453be135ec2fd4bac7df595f163ba0fe9",level:Te.error},Object(c.g)("div",{key:"d4d0495dbe03e3fe2d41369f7322cf6af4dc2e95",slot:"message"},"Sorry u heeft het maximaal aantal luchthavens bereikt. Verwijder er een aantal voordat u er meer toevoegt."),Object(c.g)("div",{key:"6e9dae86849a8b7a32c81bf43838f96047175376",class:"mdn-control",slot:"action-1",onClick:this.onDismissHandler.bind(this),onKeyDown:e=>y(e,this.onDismissHandler.bind(this)),tabindex:"0",role:"button"},"Sluit")))}static get style(){return".sc-sb-max-departure-notification-h{display:block;margin-bottom:8px}.mdn-control.sc-sb-max-departure-notification:focus{outline:thin dotted;outline-color:#000}"}},[2,"sb-max-departure-notification"]);function Os(){if("undefined"==typeof customElements)return;["sb-max-departure-notification","sb-notification-dialog"].forEach(e=>{switch(e){case"sb-max-departure-notification":customElements.get(e)||customElements.define(e,ks);break;case"sb-notification-dialog":customElements.get(e)||ws()}})}Os();const $s=new class{get selectedAirports(){return this.selectedAirports$.getValue()}get departureOptions(){var e,t;return null!==(t=null===(e=te.searchOptions)||void 0===e?void 0:e.departureAirports)&&void 0!==t?t:[]}get maxDepartureAirports(){return te.searchOptions.maximumDepartureAirports}get departureAirportsChips(){return this.departureAirportsChips$.getValue()}get departureAirportsView(){return this.departureAirportsView$.getValue()}constructor(){this.onOpen$=new w,this.selectedAirports$=new We(te.requestOptions.departureAirports),this.departureAirportsChips$=new We(this.getDepartureAirportsChips()),this.departureAirportsView$=new We(this.getDepartureAirportsView()),nt.onOpenSection$.subscribe(e=>{e===Re.DEP_AIRPORTS&&this.onOpen$.next()}),it(e=>{this.selectedAirports$.next(e),this.departureAirportsChips$.next(this.getDepartureAirportsChips()),this.departureAirportsView$.next(this.getDepartureAirportsView())}),pt(()=>{this.departureAirportsChips$.next(this.getDepartureAirportsChips()),this.departureAirportsView$.next(this.getDepartureAirportsView())})}saveSelected(){this.lastApplied=this.selectedAirports}restoreSelected(){var e;(null===(e=this.lastApplied)||void 0===e?void 0:e.length)&&this.selectAirports(this.lastApplied)}isDirty(){return this.selectedAirports.length!==this.lastApplied.length||!this.selectedAirports.every(e=>this.lastApplied.includes(e))}getFilteredAirports(e){return this.departureOptions.filter(t=>t.name.toLowerCase().includes(e.toLowerCase()))}selectAirports(e){te.requestOptions=Object.assign(Object.assign({},te.requestOptions),{departureAirports:e});const t=te.lastAppliedFacetsParam?function(e,...t){return t.reduce((e,t)=>e.replace(new RegExp(`\\((${t},.*?)\\)`,"g"),""),e)}(te.lastAppliedFacetsParam,Pe.Departure,Pe.Airlines):null;te.lastAppliedFacetsParam=t||null,bs(te.requestOptions.market,t)}removeAllApplied(){this.selectAirports([])}openNextSection(){nt.openSection(Re.DEP_DATE)}getDepartureAirportsChips(){return this.departureOptions.filter(e=>this.selectedAirports.includes(e.code)).sort((e,t)=>{const s=this.getAirportIndex(e,this.selectedAirports);return this.getAirportIndex(t,this.selectedAirports)-s}).map(e=>({id:e.code,name:e.name}))}getDepartureAirportsView(){const e=this.getAppliedAirportsWithGroups(this.departureOptions,this.selectedAirports),t=e.reduce((e,t)=>e.filter(e=>!t.isGroup||!t.codes.includes(e.code)),e).sort((e,t)=>this.getAirportIndex(e,this.selectedAirports)-this.getAirportIndex(t,this.selectedAirports)).map(e=>e.name);return at.updateSummary({airports:t}),t}getAppliedAirportsWithGroups(e,t){const s=[];return e.forEach(e=>{const i=e.isGroup?e.code.split(","):[];(t.includes(e.code)||e.isGroup&&i.every(e=>t.includes(e)))&&s.push(Object.assign(Object.assign({},e),{codes:i}))}),s}getAirportIndex(e,t){return e.isGroup?e.codes.reduce((e,s)=>e>t.indexOf(s)?t.indexOf(s):e,t.length-1):t.indexOf(e.code)}},Ss=Object(c.h)(class extends c.b{constructor(){super(),this.__registerHost(),this.dismiss=Object(c.d)(this,"dismiss",7),this.apply=Object(c.d)(this,"apply",7),this.cancel=Object(c.d)(this,"cancel",7),this.maxDepartures=0,this.label=void 0,this.compact=void 0,this.minimal=void 0,this.isInvalid=void 0,this.skipValidation=void 0,this.departureAirports=[],this.searchString="",this.airportCount=0,this.showAmountNotification=!1,this.isMaximal=!1,this.isQuickSearchLoading=void 0,this.isInitialLoadingDone=void 0,this.selectedAirports=[]}get departureAirportsChips(){return $s.departureAirportsChips}onOptionsUpdate(){this.departureAirports=$s.getFilteredAirports(this.searchString),this.maxDepartures=$s.maxDepartureAirports,this.airportCount=this.selectedAirports.length,this.isMaximal=this.airportCount>=this.maxDepartures}onInitialLoadingDone(e,t){e&&!t&&this.onOptionsUpdate()}componentWillLoad(){this.onOptionsUpdate(),ct(e=>this.isQuickSearchLoading=e),lt(e=>this.isInitialLoadingDone=e),this.dropdownActions=gt.getDropdownActions(this.compact)}connectedCallback(){this.compact&&$s.saveSelected(),this.selectedAirportsSubscription=$s.selectedAirports$.asObservable().subscribe(e=>{this.selectedAirports=e,this.onOptionsUpdate()})}disconnectedCallback(){this.selectedAirportsSubscription.unsubscribe()}componentDidRender(){this.onOverlayOpened()}onChange(e,t){let s=this.selectedAirports;if(e.selected){const i=this.extendAirportList(e.value,t.isGroup);if(!this.isValid(i))return this.isMaximal=this.selectedAirports.length>=this.maxDepartures,void(this.airportCount=s.length);s=i,this.resetSearchString()}else s=this.removeAirport(e.value,t.isGroup),this.showAmountNotification=!1,this.isMaximal=!1;this.airportCount=s.length,$s.selectAirports(s)}onDelete({detail:e}){const t=this.selectedAirports.filter(t=>!e.split(",").includes(t));this.showAmountNotification=!1,this.isMaximal=!1,$s.selectAirports(t)}onInputChanged(e){this.searchString=e.detail}isItemSelected(e,t){return t?e.split(",").every(e=>this.selectedAirports.includes(e)):this.selectedAirports.includes(e)}onApply(){this.apply.emit()}onCancel(){this.cancel.emit()}onDismissHandler(){this.showAmountNotification=!1}onOverlayOpened(){var e,t;null===(t=null===(e=this.chipsRef)||void 0===e?void 0:e.focusOnSearch)||void 0===t||t.call(e)}onCloseError(){this.dismiss.emit()}isMatchesFound(){var e;return!((null===(e=this.searchString)||void 0===e?void 0:e.length)&&!this.departureAirports.length)}handleClear(){$s.removeAllApplied(),this.showAmountNotification=!1,this.isMaximal=!1}isValid(e){const t=e.length>this.maxDepartures;return this.showAmountNotification=t,this.isMaximal=e.length>=this.maxDepartures,!t}resetSearchString(){this.searchString&&this.chipsRef.resetSearchString(!0)}extendAirportList(e,t){return t?[...new Set([...e.split(","),...this.selectedAirports])]:[e,...this.selectedAirports]}removeAirport(e,t){return this.selectedAirports.filter(s=>t?!e.split(",").includes(s):s!==e)}render(){return Object(c.g)(c.c,{key:"5af343b4371081e00b0faf1eb0bf42196213cbff"},Object(c.g)("sb-overlay-dropdown",{key:"ef25b12c049313908579f3f58f182d5b5c0513ee",slot:"dropdown",actions:this.dropdownActions,onApply:this.onApply.bind(this),onCancel:this.onCancel.bind(this),isLoading:this.isQuickSearchLoading&&!this.isInitialLoadingDone,withDesktopActions:this.compact,leftSide:this.compact||this.minimal,disabledConfirm:this.compact&&(this.isInvalid||this.isQuickSearchLoading)},Object(c.g)("div",{key:"794597d55c919ba0c35b2729f866b948637e6bd5",class:"header",slot:"header"},Object(c.g)("sb-chip-list",{key:"3b9bd045df4817548f18269a88d490c82d77f665",slot:"header",chipPlaceholder:"Kies luchthaven",filterPlaceholder:"Nog een toevoegen",showFilter:!this.isMaximal,label:this.label,list:this.departureAirportsChips,ref:e=>this.chipsRef=e,reverse:re.bestMatchGoingTo,onDeleted:this.onDelete.bind(this),onInputChanged:this.onInputChanged.bind(this),onClear:this.handleClear.bind(this)}),this.isMaximal&&!this.showAmountNotification&&Object(c.g)("sb-notification-text",{class:"notification-text",type:Te.error},Object(c.g)("sb-svg-icon",{class:"warning-icon",icon:"warning"}),"Maximaal aantal vertrek bereikt"),!this.isMatchesFound()&&Object(c.g)("sb-notification-text",{class:"notification-text",type:Te.error},Object(c.g)("sb-svg-icon",{class:"warning-icon",icon:"warning"}),"Geen overeenkomsten gevonden"),this.isInvalid&&this.compact&&Object(c.g)("sb-notification-text",{class:"notification-text",type:Te.error},Object(c.g)("sb-svg-icon",{class:"warning-icon",icon:"warning"}),De),Object(c.g)("sb-list-divider",{key:"ff02b8861c164956fb3541059c8d74c087f04639",class:"list-divider"})),Object(c.g)("div",{key:"36a2884c6c6f64b9df61268f25d676207500ec3a",slot:"title",class:"title"},this.showAmountNotification&&Object(c.g)("sb-max-departure-notification",{onDismiss:this.onDismissHandler.bind(this)}),Object(c.g)("div",{key:"fe5157ebc616aefac49be4d343173cd63bc25e9d",class:"departure-heading"},Object(c.g)("div",{key:"4818159d0618ed587a77c5857665e18548e9fc5c"},"Vertrek luchthavens"),Object(c.g)("div",{key:"4a5a58505df013a5fdb74ad5b8253a6aeccd763a",class:"counter"},this.isInitialLoadingDone&&`${this.airportCount}/${this.maxDepartures}`))),Object(c.g)("div",{key:"a86998fa6d7a2bc3b79adbdf74d5c1a61e96e684",slot:"content",class:"content"},!this.isMatchesFound()&&Object(c.g)("sb-notification-text",{type:Te.error},"Geen overeenkomsten gevonden"),this.departureAirports.map(e=>re.bestMatchGoingTo?Object(c.g)("sb-checkbox",{class:"checkbox"+(e.isGroup?" group":""),reverse:!0,value:e.code,checked:this.isItemSelected(e.code,e.isGroup),disabled:!this.skipValidation&&"0"===e.count,checkBeforeChange:t=>!t||this.isValid(this.extendAirportList(e.code,e.isGroup)),onChanged:t=>this.onChange(t.detail,e)},Object(c.g)("div",{class:"checkbox-label"},Object(c.g)("sb-svg-icon",{icon:"pinIcon",class:"icon"}),e.name)):Object(c.g)("sb-checkbox-item",{key:e.code,name:e.name,value:e.code,selected:this.isItemSelected(e.code,e.isGroup),disabled:!this.skipValidation&&"0"===e.count,class:e.isGroup?"group":"",onClicked:t=>this.onChange(t.detail,e)})))))}static get watchers(){return{searchString:["onOptionsUpdate"],isInitialLoadingDone:["onInitialLoadingDone"]}}static get style(){return'sb-checkbox-item.group.sc-sb-bar-departure-dropdown+sb-checkbox-item.sc-sb-bar-departure-dropdown:not(.group),sb-checkbox-item.group.sc-sb-bar-departure-dropdown+sb-checkbox.sc-sb-bar-departure-dropdown:not(.group),sb-checkbox.group.sc-sb-bar-departure-dropdown+sb-checkbox-item.sc-sb-bar-departure-dropdown:not(.group),sb-checkbox.group.sc-sb-bar-departure-dropdown+sb-checkbox.sc-sb-bar-departure-dropdown:not(.group){margin-top:10px;padding-top:25px;border-top:1px solid #d9d9d9}sb-checkbox.sc-sb-bar-departure-dropdown{display:block;margin-bottom:16px}.header.sc-sb-bar-departure-dropdown .notification-text.sc-sb-bar-departure-dropdown{margin:16px 16px 0}.header.sc-sb-bar-departure-dropdown .notification-text.sc-sb-bar-departure-dropdown .warning-icon.sc-sb-bar-departure-dropdown{width:12px;height:12px;margin-right:8px;fill:#970202}.header.sc-sb-bar-departure-dropdown .list-divider.sc-sb-bar-departure-dropdown{margin:16px}.title.sc-sb-bar-departure-dropdown{position:relative;width:100%;text-align:left}.content.sc-sb-bar-departure-dropdown{margin-bottom:32px}@media (min-width: 1200px){.content.sc-sb-bar-departure-dropdown{margin-bottom:0}}.counter.sc-sb-bar-departure-dropdown{font-size:16px;line-height:24px;font-weight:400;font-family:"Source Sans Pro", arial, sans-serif;letter-spacing:normal;margin:0;position:absolute;right:0;bottom:0}.departure-heading.sc-sb-bar-departure-dropdown{display:flex;justify-content:space-between;position:relative;margin-bottom:16px}.checkbox-label.sc-sb-bar-departure-dropdown{display:flex;align-items:center;grid-gap:16px}.checkbox-label.sc-sb-bar-departure-dropdown .icon.sc-sb-bar-departure-dropdown{width:16px;height:16px}'}},[2,"sb-bar-departure-dropdown",{label:[1],compact:[4],minimal:[4],isInvalid:[4,"is-invalid"],skipValidation:[4,"skip-validation"],departureAirports:[32],searchString:[32],airportCount:[32],showAmountNotification:[32],isMaximal:[32],isQuickSearchLoading:[32],isInitialLoadingDone:[32],selectedAirports:[32]},void 0,{searchString:["onOptionsUpdate"],isInitialLoadingDone:["onInitialLoadingDone"]}]);function Ds(){if("undefined"==typeof customElements)return;["sb-bar-departure-dropdown","sb-checkbox","sb-checkbox-item","sb-chip-list","sb-list-divider","sb-max-departure-notification","sb-notification-dialog","sb-notification-text","sb-overlay-dropdown","sb-spinner-circle","sb-spinner-underlay","sb-svg-icon"].forEach(e=>{switch(e){case"sb-bar-departure-dropdown":customElements.get(e)||customElements.define(e,Ss);break;case"sb-checkbox":customElements.get(e)||ms();break;case"sb-checkbox-item":customElements.get(e)||fs();break;case"sb-chip-list":customElements.get(e)||xs();break;case"sb-list-divider":customElements.get(e)||kt();break;case"sb-max-departure-notification":customElements.get(e)||Os();break;case"sb-notification-dialog":customElements.get(e)||ws();break;case"sb-notification-text":customElements.get(e)||$t();break;case"sb-overlay-dropdown":customElements.get(e)||Tt();break;case"sb-spinner-circle":customElements.get(e)||Dt();break;case"sb-spinner-underlay":customElements.get(e)||Ct();break;case"sb-svg-icon":customElements.get(e)||ue()}})}Ds();const Es=new class{constructor(){this.REVALIDATE_DELAY_TIMEOUT=1e3,this.revalidated=!1}revalidate(e={delayed:!1}){!e.delayed&&this.revalidated||(setTimeout(()=>{(e=>{const t=oe("nl");for(const[s]of Object.entries(e))Object.hasOwnProperty.call(t,s)&&(e[s]=t[s])})(re)},e.delayed?this.REVALIDATE_DELAY_TIMEOUT:0),e.delayed||(this.revalidated=!0))}};Es.revalidate({delayed:!0});const Cs=Object(c.h)(class extends c.b{constructor(){super(),this.__registerHost(),this.dismiss=Object(c.d)(this,"dismiss",7),this.cancel=Object(c.d)(this,"cancel",7),this.compactSearch=Object(c.d)(this,"compactSearch",7),this.label="Vertrek vanaf",this.applied=!1,this.isInvalid=void 0,this.compact=void 0,this.minimal=void 0,this.skipValidation=void 0,this.searchString="",this.airportCount=0,this.showAmountNotif=!1,this.isMaximal=!1,this.isDropDownActive=!1,this.departureAirportsView=$s.departureAirportsView}connectedCallback(){this.openOverlaySubscription=$s.onOpen$.subscribe(async()=>{var e;return await(null===(e=this.overlayEmitterRef)||void 0===e?void 0:e.open())}),this.departureAirportsViewSubscription=$s.departureAirportsView$.subscribe(e=>this.departureAirportsView=e)}disconnectedCallback(){this.openOverlaySubscription.unsubscribe(),this.departureAirportsViewSubscription.unsubscribe()}onApply(){this.applied=!0,gt.close(),this.compact?$s.isDirty()&&this.compactSearch.emit():$s.openNextSection()}onCancel(){this.compact&&(this.cancel.emit(),$s.restoreSelected()),gt.close()}onOverlayOpened(){Es.revalidate(),this.isDropDownActive=!0,this.applied=!1}onOverlayClosed(){!this.applied&&this.compact&&this.onCancel(),this.isDropDownActive=!1}onBeforeClose(){this.compact?this.onCancel():this.isInvalid||(this.onApply(),this.onOverlayClosed())}render(){return Object(c.g)(c.c,{key:"b5622e44032a4912c15ea9b3a8badd71cbea3d20"},Object(c.g)("sb-overlay-emitter",{key:"c7273d73678dbd59bd12ef05a0f797ae4ceed46f",onKeyDown:y,dropdownRenderFunc:()=>Object(c.g)("sb-bar-departure-dropdown",{label:this.label,isInvalid:this.isInvalid,compact:this.compact,minimal:this.minimal,skipValidation:this.skipValidation,onApply:this.onApply.bind(this),onCancel:this.onCancel.bind(this)}),hasValidation:this.compact,ref:e=>this.overlayEmitterRef=e,onOpened:this.onOverlayOpened.bind(this),onClosed:this.onOverlayClosed.bind(this),onBeforeClose:this.onBeforeClose.bind(this)},Object(c.g)("sb-status-input",{key:"8a7a4bc7ed6508d36c9cbd543ae8924679ae7651",slot:"input",isInvalid:this.isInvalid,isFloat:this.isDropDownActive,label:this.label,value:this.departureAirportsView})))}static get style(){return"@media (max-width: 767px){.sc-sb-bar-departure-h{flex-wrap:wrap}}"}},[2,"sb-bar-departure",{isInvalid:[4,"is-invalid"],compact:[4],minimal:[4],skipValidation:[4,"skip-validation"],searchString:[32],airportCount:[32],showAmountNotif:[32],isMaximal:[32],isDropDownActive:[32],departureAirportsView:[32]}]);function js(){if("undefined"==typeof customElements)return;["sb-bar-departure","sb-bar-departure-dropdown","sb-checkbox","sb-checkbox-item","sb-chip-list","sb-list-divider","sb-max-departure-notification","sb-notification-dialog","sb-notification-text","sb-overlay-dropdown","sb-overlay-emitter","sb-spinner-circle","sb-spinner-underlay","sb-status-input","sb-svg-icon"].forEach(e=>{switch(e){case"sb-bar-departure":customElements.get(e)||customElements.define(e,Cs);break;case"sb-bar-departure-dropdown":customElements.get(e)||Ds();break;case"sb-checkbox":customElements.get(e)||ms();break;case"sb-checkbox-item":customElements.get(e)||fs();break;case"sb-chip-list":customElements.get(e)||xs();break;case"sb-list-divider":customElements.get(e)||kt();break;case"sb-max-departure-notification":customElements.get(e)||Os();break;case"sb-notification-dialog":customElements.get(e)||ws();break;case"sb-notification-text":customElements.get(e)||$t();break;case"sb-overlay-dropdown":customElements.get(e)||Tt();break;case"sb-overlay-emitter":customElements.get(e)||cs();break;case"sb-spinner-circle":customElements.get(e)||Dt();break;case"sb-spinner-underlay":customElements.get(e)||Ct();break;case"sb-status-input":customElements.get(e)||ds();break;case"sb-svg-icon":customElements.get(e)||ue()}})}js();const As={[Ie.Country]:!1,[Ie.Region]:!1,[Ie.Resort]:!1,[Ie.Hotel]:!1};const Ts=new class{get destMaxAmountReached(){return this.destMaxAmountReached$.getValue()}set destMaxAmountReached(e){this.destMaxAmountReached$.next(e)}get destinationsOptions(){return this.destinationsOptions$.getValue()}get destinationsLinks(){return this.destinationsLinks$.getValue()}get appliedDestinationsIds(){return te.requestOptions.destinations}set appliedDestinationsIds(e){e.length&&(te.requestOptions.accommodation=null),te.requestOptions=Object.assign(Object.assign({},te.requestOptions),{destinations:[...e],accommodation:null,hotelId:null}),te.lastAppliedFacetsParam=null,bs(te.requestOptions.market)}get hasDestinationParam(){return!!_.getQueryParam("destination")}get showInitialFilter(){return"string"==typeof _.getQueryParam("destination")||this.hasQuery}get initialSearchQuery(){return this.showInitialFilter?te.requestOptions.destinationQuery:""}get appliedAccommodationId(){return te.requestOptions.accommodation}set appliedAccommodationId(e){e&&(te.requestOptions.destinations=[]),te.requestOptions=Object.assign(Object.assign({},te.requestOptions),{accommodation:e,destinations:[],hotelId:null}),te.lastAppliedFacetsParam=null,bs(te.requestOptions.market)}get selectedRegionsView(){return this.selectedDestinations.map(e=>e.name)}get selectedHotelView(){var e,t;return null!==(t=null===(e=this.selectedAccommodation)||void 0===e?void 0:e.name)&&void 0!==t?t:""}constructor(){var e;this.onOpen$=new w,this.destinations=[],this.destinations$=new We([]),this.destinationsOptions$=new We([]),this.destinationsLinks$=new We([]),this.destinationQuery=te.requestOptions.destinationQuery,this.selectedDestinations=[],this.selectedAccommodation=null,this.destinationsToShow$=new We([]),this.showAmountNotification$=new k,this.destMaxAmountReached$=new We(As),nt.onOpenSection$.subscribe(e=>{e===Re.DESTINATIONS&&this.onOpen$.next()}),e=e=>{this.destinations=e,this.destinations$.next(e),this.updateLists(this.appliedDestinationsIds),this.selectedDestinations=this.getSelectedDestinations(this.appliedDestinationsIds),this.selectedAccommodation=this.getSelectedAccommodation(this.appliedAccommodationId),this.updateDestinationsToShow(),this.setRestrictions(),this.checkRestrictions()},dt(t=>e(null==t?void 0:t.destinations),{emitInitial:!0}),(e=>{Ye(t=>e(null==t?void 0:t.destinations))})(e=>{e.length===this.selectedDestinations.length&&e.every(e=>this.selectedDestinations.map(({id:e})=>e).includes(e))||(this.selectedDestinations=this.getSelectedDestinations(e),this.updateLists(this.appliedDestinationsIds),this.updateDestinationsToShow(),this.checkRestrictions())}),tt(e=>{this.destinationQuery=e,this.hasQuery=!!e}),(e=>{Ye(t=>e(null==t?void 0:t.accommodation))})(e=>{var t;e!==(null===(t=this.selectedAccommodation)||void 0===t?void 0:t.id)&&(this.selectedAccommodation=this.getSelectedAccommodation(e),this.updateDestinationsToShow(),this.checkRestrictions())})}applyDestination(e){this.appliedDestinationsIds=[...this.appliedDestinationsIds,e]}removeApplied(e){this.appliedDestinationsIds.includes(e)&&(this.appliedDestinationsIds=this.appliedDestinationsIds.filter(t=>t!==e)),this.appliedAccommodationId===e&&(this.appliedAccommodationId=null),this.checkRestrictions()}removeAllApplied(){this.appliedDestinationsIds=[],this.appliedAccommodationId=null,this.checkRestrictions()}applyAccommodation(e){this.appliedAccommodationId=e}removeStoppedDestinations(){this.appliedDestinationsIds=this.selectedDestinations.filter(e=>!e.stopSale).map(e=>e.id)}isNoMatchesFound(){var e;return!(!(null===(e=this.destinationQuery)||void 0===e?void 0:e.length)||this.destinations.filter(({id:e})=>!this.appliedDestinationsIds.includes(e)).length)}checkRestrictions(){const e=As;Object.keys(e).forEach(t=>{var s,i;e[t]=((null===(s=this.selectedDestinations.filter(e=>e.type===+t))||void 0===s?void 0:s.length)||0)>=(null===(i=this.restrictions)||void 0===i?void 0:i[t])}),e[Ie.Hotel]=!!this.selectedAccommodation,this.destMaxAmountReached=e,this.showAmountNotification$.next(!!Object.entries(this.destMaxAmountReached).filter(([e,t])=>t&&+e!==Ie.Hotel).length)}updateDestinationsToShow(){this.destinationsToShow$.next(this.getDestinationsToShow()),this.updateSummary()}saveSelected(){this.lastApplied=this.appliedAccommodationId||this.appliedDestinationsIds}restoreSelected(){this.lastApplied&&(Array.isArray(this.lastApplied)?this.appliedDestinationsIds=this.lastApplied:this.appliedAccommodationId=this.lastApplied)}isDirty(){return this.lastApplied!==this.appliedAccommodationId&&this.lastApplied!==this.appliedDestinationsIds}updateSummary(){at.updateSummary({regions:this.selectedRegionsView,hotel:this.selectedHotelView})}filterDestinations(e){te.requestOptions=Object.assign(Object.assign({},te.requestOptions),{destinationQuery:e})}resetFilter(){te.requestOptions=Object.assign(Object.assign({},te.requestOptions),{destinationQuery:""})}getSelectedDestinations(e){return(this.destinations||[]).filter(t=>t.type!==Ie.Hotel&&e.includes(t.id))}getSelectedAccommodation(e){return this.destinations.find(t=>t.type===Ie.Hotel&&e===t.id)}updateLists(e){this.destinationsOptions$.next(this.destinations.filter(t=>t.type!==Ie.Hotel&&!e.includes(t.id))),this.destinationsLinks$.next(this.destinations.filter(e=>e.type===Ie.Hotel))}setRestrictions(){const{maximumCountries:e,maximumRegions:t,maximumResorts:s}=te.searchOptions;this.restrictions={[Ie.Country]:e,[Ie.Region]:t,[Ie.Resort]:s,[Ie.Hotel]:1}}getDestinationsToShow(){return[...this.selectedAccommodation?[this.selectedAccommodation]:this.selectedDestinations].sort((e,t)=>{if(this.appliedAccommodationId)return 0;return this.appliedDestinationsIds.findIndex(t=>e.id===t)-this.appliedDestinationsIds.findIndex(e=>t.id===e)})}openNextSection(e){nt.openSection(e===m.PACKAGES?Re.DEP_AIRPORTS:Re.DEP_DATE)}};function Is(e,t=!0){return e.map(e=>({id:e.id,name:t?e.name:Ls(e),highlighted:e.stopSale}))}function Rs(e){return e.type===Ie.Hotel?`${e.resort?e.resort:""}${e.region?e.resort?", "+e.region:e.region:""}${e.country?e.resort||e.region?", "+e.country:e.country:""}`:e.type===Ie.Resort?`${e.region?e.region:""}${e.country?e.region?", "+e.country:e.country:""}`:e.type===Ie.Region?""+(e.country?e.country:""):""}function Ls(e){if(e.type===Ie.Country)return e.name;if(e.type===Ie.Hotel)return`${e.name}${e.country?", "+e.country:""}`;const t=Rs(e);return`${e.name}${t?", "+t:""}`}const Ms=Object(c.h)(class extends c.b{constructor(){super(),this.__registerHost(),this.clicked=Object(c.d)(this,"clicked",7),this.value=void 0,this.name=void 0,this.location=void 0,this.selected=void 0,this.disabled=void 0}onChange({value:e,selected:t}){this.clicked.emit({value:""+e,selected:t})}render(){return Object(c.g)(c.c,{key:"9bee2a8ce2a6b1abfb95f954203bf36f50725bce"},Object(c.g)("sb-checkbox",{key:"159ff7738b92be0788a8e44932fa0513ea87b5e5",class:"checkbox",value:this.value,checked:this.selected,disabled:!this.selected&&this.disabled,onChanged:e=>this.onChange(e.detail)},Object(c.g)("div",{key:"f98b4ee17639dbf627903941fcb2b9b39b1d4933",class:"checkbox-label"},Object(c.g)("span",{key:"984b831cf37b892737a43244074e9b07ab0ac6df",class:"checkbox-label-name",innerHTML:this.name}),this.location&&Object(c.g)("span",{class:"checkbox-label-location",innerHTML:this.location}))))}static get style(){return'.checkbox.sc-sb-destination-checkbox-item{display:block;margin-bottom:16px}.checkbox-label.sc-sb-destination-checkbox-item{display:flex;flex-direction:column;width:calc(100% - 36px)}.checkbox-label-name.sc-sb-destination-checkbox-item{font-size:16px;line-height:24px;font-weight:400;font-family:"Source Sans Pro", arial, sans-serif;letter-spacing:normal;margin:0}.checkbox-label-location.sc-sb-destination-checkbox-item{font-size:14px;line-height:22px;font-weight:400;font-family:"Source Sans Pro", arial, sans-serif;letter-spacing:normal;margin:0;display:inline-block;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#434343}'}},[2,"sb-destination-checkbox-item",{value:[8],name:[1],location:[1],selected:[4],disabled:[4]}]);function Ns(){if("undefined"==typeof customElements)return;["sb-destination-checkbox-item","sb-checkbox"].forEach(e=>{switch(e){case"sb-destination-checkbox-item":customElements.get(e)||customElements.define(e,Ms);break;case"sb-checkbox":customElements.get(e)||ms()}})}Ns();const Ps=Object(c.h)(class extends c.b{constructor(){super(),this.__registerHost(),this.selected=Object(c.d)(this,"selected",7),this.value=void 0,this.name=void 0,this.location=void 0}render(){return Object(c.g)(c.c,{key:"6e97c6361055e8a1d0fa4903ac49d906f752e8b0",onClick:()=>this.selected.emit(this.value)},Object(c.g)("sb-svg-icon",{key:"ccccc465f9309f384d278e3e705574ba86549334",class:"icon",icon:"hotelBuilding"}),Object(c.g)("div",{key:"8ffb9a8a24cf1e36f93e5fcd6fe55943661c59a9",class:"text"},Object(c.g)("div",{key:"7e5aef86c4b4169ede4ebeb1513f5616afbdcde5",class:"title",innerHTML:this.name}),!!this.location&&Object(c.g)("span",{class:"location",innerHTML:this.location})))}static get style(){return'.sc-sb-destination-hotel-item-h{align-items:center;cursor:pointer;display:flex;width:100%;margin-bottom:10px}.icon.sc-sb-destination-hotel-item{cursor:pointer;margin-right:15px;height:20px;width:20px}.text.sc-sb-destination-hotel-item{display:flex;flex-direction:column;justify-content:center;width:calc(100% - 36px)}.title.sc-sb-destination-hotel-item{font-size:16px;line-height:24px;font-weight:400;font-family:"Source Sans Pro", arial, sans-serif;letter-spacing:normal;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.location.sc-sb-destination-hotel-item{font-size:14px;line-height:22px;font-weight:400;font-family:"Source Sans Pro", arial, sans-serif;letter-spacing:normal;margin:0;display:inline-block;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#434343}'}},[2,"sb-destination-hotel-item",{value:[2],name:[1],location:[1]}]);function Vs(){if("undefined"==typeof customElements)return;["sb-destination-hotel-item","sb-svg-icon"].forEach(e=>{switch(e){case"sb-destination-hotel-item":customElements.get(e)||customElements.define(e,Ps);break;case"sb-svg-icon":customElements.get(e)||ue()}})}Vs();const Fs=Object(c.h)(class extends c.b{constructor(){super(),this.__registerHost(),this.dismiss=Object(c.d)(this,"dismiss",7),this.removeChip=Object(c.d)(this,"removeChip",7),this.destination=void 0}onDismissHandler(){this.dismiss.emit()}onRemoveHandler(){this.removeChip.emit()}render(){return Object(c.g)(c.c,{key:"4804491726e7440a6404e2e966ccf05de0f7c8dc"},Object(c.g)("sb-notification-dialog",{key:"adc5319ee35edb1f5c06af4f7c37f54e2541a5da",level:Te.warning},Object(c.g)("div",{key:"308bd3da2900019c5fb75d293a13f382ef010cc6",slot:"message"},this.destination||"Deze bestemming"," ","is momenteel niet boekbaar, probeer het later nog eens aub"),Object(c.g)("div",{key:"028cee34cd9a0af150b51aa3628963d5079cca01",slot:"action-1",onClick:this.onDismissHandler.bind(this)},"Sluit"),Object(c.g)("div",{key:"06db8dbcac5c79cfc870fb4fc78bf6bef6ffb661",slot:"action-2",onClick:this.onRemoveHandler.bind(this)},"Verwijder")))}static get style(){return".sc-sb-stop-sale-notification-h{display:block;margin:8px 0 16px}"}},[2,"sb-stop-sale-notification",{destination:[1]}]);function Hs(){if("undefined"==typeof customElements)return;["sb-stop-sale-notification","sb-notification-dialog"].forEach(e=>{switch(e){case"sb-stop-sale-notification":customElements.get(e)||customElements.define(e,Fs);break;case"sb-notification-dialog":customElements.get(e)||ws()}})}Hs();const _s=Object(c.h)(class extends c.b{constructor(){super(),this.__registerHost(),this.dismiss=Object(c.d)(this,"dismiss",7),this.apply=Object(c.d)(this,"apply",7),this.cancel=Object(c.d)(this,"cancel",7),this.destinationsChips=[],this.label=void 0,this.isInvalid=void 0,this.compact=void 0,this.minimal=void 0,this.showInitialFilter=void 0,this.skipValidation=void 0,this.offerType=void 0,this.destinationsToShow=[],this.destinations=[],this.showStopSaleNotification=!1,this.showAmountNotification=!1,this.isInitialDestinations=!0,this.initialSearchQuery="",this.filterText="",this.destMaxAmountReached=Ts.destMaxAmountReached,this.maxHotelsReached=Ts.destMaxAmountReached[Ie.Hotel],this.isInitialLoadingDone=!1,this.withTitle=!1,this.isQuickSearchLoading=void 0}watchTitle(){this.withTitle=this.showStopSaleNotification}get stopSaleDestinations(){return this.destinationsChips.filter(({highlighted:e})=>e).map(({name:e})=>this.getLastDestLevel(e)).join(", ")}componentWillLoad(){ct(e=>this.isQuickSearchLoading=e),lt(e=>this.isInitialLoadingDone=e),this.dropdownActions=gt.getDropdownActions(this.compact)}connectedCallback(){this.showAmountNotificationSubscription=Ts.showAmountNotification$.subscribe(e=>this.showAmountNotification=e),this.destinationsToShowSubscription=Ts.destinationsToShow$.subscribe(e=>{this.destinationsToShow=e,this.destinationsChips=Is(this.destinationsToShow,!re.bestMatchGoingTo),this.showStopSaleNotification=this.showStopSaleNotification&&this.destinationsToShow.reduce((e,t)=>e||t.stopSale,!1)}),this.destinationsSubscription=Ts.destinations$.subscribe(e=>this.destinations=e),this.destMaxAmountReachedSubscription=Ts.destMaxAmountReached$.subscribe(e=>{this.destMaxAmountReached=e,this.maxHotelsReached=this.destMaxAmountReached[Ie.Hotel]}),this.isInitialDestinations=!Ts.destinationQuery,tt(e=>this.isInitialDestinations=!e),this.compact&&Ts.saveSelected()}componentDidRender(){this.chipsRef.focusOnSearch()}disconnectedCallback(){this.showAmountNotificationSubscription.unsubscribe(),this.destinationsToShowSubscription.unsubscribe(),this.destinationsSubscription.unsubscribe(),this.destMaxAmountReachedSubscription.unsubscribe()}handleChipListChanged(e){Ts.removeApplied(+e)}handleFilterChanged(e){this.filterDestinations(""+e.detail)}handleClear(){Ts.removeAllApplied()}handleCheckboxItemChange(e,t){e.selected?(Ts.applyDestination(t.id),this.afterDestinationItemSelected(t)):this.handleChipListChanged(t.id)}handleLinkClicked(e){Ts.applyAccommodation(e.id),this.afterDestinationItemSelected(e)}handleStopSalesDismiss(){this.showStopSaleNotification=!1}handleRemoveStoppedDestinations(){Ts.removeStoppedDestinations(),this.showStopSaleNotification=!1}onApply(){this.apply.emit()}onCancel(){this.cancel.emit()}handleCloseError(){this.dismiss.emit()}onAddBestMatch(){const e=this.destinations.find(e=>!this.isDisabled(e)&&this.destinationsToShow.every(t=>t.id!==e.id));e.type===Ie.Hotel?this.handleLinkClicked(e):this.handleCheckboxItemChange({value:e.id.toString(),selected:!0},e)}getLastDestLevel(e){return e.split(", ")[0]}afterDestinationItemSelected(e){this.chipsRef.resetSearchString(),this.filterDestinations(""),this.checkStopSale(e)}checkStopSale(e){this.showStopSaleNotification=this.showStopSaleNotification||e.stopSale}filterDestinations(e){this.filterText!==e&&(this.filterText=e,Ts.filterDestinations(e))}isDisabled(e){return!this.skipValidation&&"0"===e.count||this.showAmountNotification}render(){return Object(c.g)(c.c,{key:"b483e6346732a4cc6fad2a184d1283cd12392eee"},Object(c.g)("sb-overlay-dropdown",{key:"40ebe2f73ebd57e753c029535675f755bed19a58",slot:"dropdown",actions:this.dropdownActions,onApply:this.onApply.bind(this),onCancel:this.onCancel.bind(this),isLoading:this.isQuickSearchLoading&&!this.isInitialLoadingDone,withDesktopActions:this.compact,leftSide:this.compact||this.minimal,disabledConfirm:this.compact&&(this.isInvalid||this.isQuickSearchLoading),withTitle:this.withTitle},Object(c.g)("div",{key:"bd45a0367460720f8ca18bb3f537c43f0e0a97a9",class:"header",slot:"header"},Object(c.g)("sb-chip-list",{key:"5d5f83521292f897d8841310bbf72abc901d7859","chip-placeholder":"Typ bestemming of hotelnaam","filter-placeholder":"Nog één toevoegen",showFilter:!this.showAmountNotification,label:this.label,list:this.destinationsChips,initialFilter:Ts.initialSearchQuery,reverse:re.bestMatchGoingTo,onDeleted:e=>this.handleChipListChanged(e.detail),onInputChanged:this.handleFilterChanged.bind(this),onClear:this.handleClear.bind(this),onAddBestMatch:this.onAddBestMatch.bind(this),ref:e=>this.chipsRef=e}),this.showAmountNotification&&Object(c.g)("sb-notification-text",{class:"notification-text",type:Te.error},Object(c.g)("sb-svg-icon",{class:"warning-icon",icon:"warning"}),"Maximaal aantal bestemmingen bereikt"),Ts.isNoMatchesFound()&&Object(c.g)("sb-notification-text",{class:"notification-text",type:Te.error},Object(c.g)("sb-svg-icon",{class:"warning-icon",icon:"warning"}),"Geen overeenkomsten gevonden"),this.compact&&this.isInvalid&&Object(c.g)("sb-notification-text",{class:"notification-text",type:Te.error},Object(c.g)("sb-svg-icon",{class:"warning-icon",icon:"warning"}),Oe),Object(c.g)("sb-list-divider",{key:"73c1a549373f7a3c18c4b132f9cee367dd586b1c",class:"list-divider"})),Object(c.g)("div",{key:"be8d625b655b92c51226ce8e2e80fc335db54240",slot:"title",class:"title"},this.showStopSaleNotification&&Object(c.g)("sb-stop-sale-notification",{destination:this.stopSaleDestinations,onDismiss:this.handleStopSalesDismiss.bind(this),onRemoveChip:this.handleRemoveStoppedDestinations.bind(this)}),this.maxHotelsReached&&!this.isInitialDestinations&&Object(c.g)("div",{class:"counter"},"1/1")),Object(c.g)("div",{key:"b8bc46e3019005454af5e54a3c2254103f56e6e8",slot:"content",class:"content"},this.isInitialDestinations&&Object(c.g)("sb-recent-searches",{offerType:this.offerType,onSearch:this.onCancel.bind(this)}),Ts.isNoMatchesFound()?null:Object(c.g)("h4",{class:"title-bold"},"Populaire zoekopdrachten"),!!this.destinations.length&&this.destinations.map(e=>e.type===Ie.Hotel?Object(c.g)("sb-destination-hotel-item",{key:`${e.type}-${e.id}`,value:e.id,name:v(e.name,this.filterText),location:Rs(e),onSelected:()=>this.handleLinkClicked(e)}):Object(c.g)("sb-destination-checkbox-item",{key:`${e.type}-${e.id}`,value:e.id,name:v(e.name,this.filterText),location:v(Rs(e),this.filterText),selected:!!this.destinationsToShow.find(t=>e.id===t.id),disabled:this.isDisabled(e),onClicked:t=>this.handleCheckboxItemChange(t.detail,e)})))))}static get watchers(){return{showStopSaleNotification:["watchTitle"]}}static get style(){return'@media (max-width: 767px){.sc-sb-bar-destination-best-match-dropdown-h{flex-wrap:wrap}}.header.sc-sb-bar-destination-best-match-dropdown .notification-text.sc-sb-bar-destination-best-match-dropdown{margin:16px 16px 0}.header.sc-sb-bar-destination-best-match-dropdown .notification-text.sc-sb-bar-destination-best-match-dropdown .warning-icon.sc-sb-bar-destination-best-match-dropdown{width:12px;height:12px;margin-right:8px;fill:#970202}.header.sc-sb-bar-destination-best-match-dropdown .list-divider.sc-sb-bar-destination-best-match-dropdown{margin:16px}.notification-text.sc-sb-bar-destination-best-match-dropdown{font-size:16px;line-height:24px;font-weight:400;font-family:"Source Sans Pro", arial, sans-serif;letter-spacing:normal;margin:0;text-align:left;color:#970202;margin-bottom:0}.counter.sc-sb-bar-destination-best-match-dropdown{font-size:16px;line-height:24px;font-weight:400;font-family:"Source Sans Pro", arial, sans-serif;letter-spacing:normal;margin:0;text-align:end}.title.sc-sb-bar-destination-best-match-dropdown{position:relative;width:100%}.content.sc-sb-bar-destination-best-match-dropdown{margin-bottom:32px}@media (min-width: 1200px){.content.sc-sb-bar-destination-best-match-dropdown{margin-bottom:0}}.bar-error-destination.sc-sb-bar-destination-best-match-dropdown{display:none}@media (max-width: 767px){.bar-error-destination.sc-sb-bar-destination-best-match-dropdown{display:inline-block;min-width:100%;margin:16px 0 8px}}.title-bold.sc-sb-bar-destination-best-match-dropdown{font-size:16px;line-height:24px;font-weight:600;font-family:"Source Sans Pro", arial, sans-serif;letter-spacing:normal;margin:0;display:flex;margin:0 0 24px}.title-bold.sc-sb-bar-destination-best-match-dropdown:not(:first-of-type){margin-top:8px}.title-bold.sc-sb-bar-destination-best-match-dropdown .list-title-counter.sc-sb-bar-destination-best-match-dropdown{font-weight:400;margin-left:auto}'}},[2,"sb-bar-destination-best-match-dropdown",{label:[1],isInvalid:[4,"is-invalid"],compact:[4],minimal:[4],showInitialFilter:[4,"show-initial-filter"],skipValidation:[4,"skip-validation"],offerType:[2,"offer-type"],destinationsToShow:[32],destinations:[32],showStopSaleNotification:[32],showAmountNotification:[32],isInitialDestinations:[32],initialSearchQuery:[32],filterText:[32],destMaxAmountReached:[32],maxHotelsReached:[32],isInitialLoadingDone:[32],withTitle:[32],isQuickSearchLoading:[32]},void 0,{showStopSaleNotification:["watchTitle"]}]);function zs(){if("undefined"==typeof customElements)return;["sb-bar-destination-best-match-dropdown","sb-checkbox","sb-chip-list","sb-destination-checkbox-item","sb-destination-hotel-item","sb-list-divider","sb-notification-dialog","sb-notification-text","sb-overlay-dropdown","sb-recent-searches","sb-spinner-circle","sb-spinner-underlay","sb-stop-sale-notification","sb-svg-icon"].forEach(e=>{switch(e){case"sb-bar-destination-best-match-dropdown":customElements.get(e)||customElements.define(e,_s);break;case"sb-checkbox":customElements.get(e)||ms();break;case"sb-chip-list":customElements.get(e)||xs();break;case"sb-destination-checkbox-item":customElements.get(e)||Ns();break;case"sb-destination-hotel-item":customElements.get(e)||Vs();break;case"sb-list-divider":customElements.get(e)||kt();break;case"sb-notification-dialog":customElements.get(e)||ws();break;case"sb-notification-text":customElements.get(e)||$t();break;case"sb-overlay-dropdown":customElements.get(e)||Tt();break;case"sb-recent-searches":customElements.get(e)||qe();break;case"sb-spinner-circle":customElements.get(e)||Dt();break;case"sb-spinner-underlay":customElements.get(e)||Ct();break;case"sb-stop-sale-notification":customElements.get(e)||Hs();break;case"sb-svg-icon":customElements.get(e)||ue()}})}zs();const Bs=Object(c.h)(class extends c.b{constructor(){super(),this.__registerHost(),this.clickHandler=Object(c.d)(this,"linkClicked",7),this.value=void 0,this.name=void 0}render(){return Object(c.g)(c.c,{key:"a1ca9b18ad829e6927fe411627114e5638d8f7f8",onClick:()=>this.clickHandler.emit(this.value)},Object(c.g)("sb-svg-icon",{key:"be82c799848893b748a2e2aadf99c4bbb4fad0c9",class:"icon",icon:"hotelIcon"}),Object(c.g)("div",{key:"96ce2b7ce37306a4d4a8036896ab3321b232b07d",class:"title",innerHTML:this.name}))}static get style(){return'.sc-sb-place-search-link-h{align-items:center;cursor:pointer;display:flex;padding-right:20px;width:100%;margin-bottom:10px}.icon.sc-sb-place-search-link{cursor:pointer;margin-right:15px;height:20px;width:20px}.title.sc-sb-place-search-link{font-size:16px;line-height:24px;font-weight:400;font-family:"Source Sans Pro", arial, sans-serif;letter-spacing:normal;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}'}},[2,"sb-place-search-link",{value:[2],name:[1]}]);function qs(){if("undefined"==typeof customElements)return;["sb-place-search-link","sb-svg-icon"].forEach(e=>{switch(e){case"sb-place-search-link":customElements.get(e)||customElements.define(e,Bs);break;case"sb-svg-icon":customElements.get(e)||ue()}})}qs();const Gs=({title:e,destinations:t,filterText:s,disabled:i,skipValidation:n,showCounter:o,handleCheckboxItemChange:a})=>[e?Object(c.g)("h4",{class:"title-bold"},e,o?Object(c.g)("span",{class:"list-title-counter"},"1/1"):null):null,t.map(e=>Object(c.g)("sb-checkbox-item",{key:`${e.type}-${e.id}`,value:e.id,name:v(e.name,s),selected:!1,disabled:!n&&"0"===e.count||i,onClicked:t=>a(t.detail,e)}))],Ws=Object(c.h)(class extends c.b{constructor(){super(),this.__registerHost(),this.dismiss=Object(c.d)(this,"dismiss",7),this.apply=Object(c.d)(this,"apply",7),this.cancel=Object(c.d)(this,"cancel",7),this.destinationsChips=[],this.label=void 0,this.isInvalid=void 0,this.compact=void 0,this.minimal=void 0,this.showInitialFilter=void 0,this.skipValidation=void 0,this.offerType=void 0,this.destinationsToShow=[],this.destinationsOptions=[],this.quarantineFreeDestinations=[],this.otherDestinations=[],this.destinationsLinks=[],this.showStopSaleNotification=!1,this.showAmountNotification=!1,this.isInitialDestinations=!0,this.isInitialLoadingDone=!1,this.initialSearchQuery="",this.filterText="",this.destMaxAmountReached=Ts.destMaxAmountReached,this.maxHotelsReached=Ts.destMaxAmountReached[Ie.Hotel],this.withTitle=!1,this.isQuickSearchLoading=void 0}destinationsUpdated(){if(!this.isInitialDestinations)return this.otherDestinations=this.destinationsOptions,void(this.quarantineFreeDestinations=[]);this.quarantineFreeDestinations=this.destinationsOptions.filter(e=>e.covidStatus===Le.GREEN||e.covidStatus===Le.AMBER),this.otherDestinations=this.destinationsOptions.filter(e=>e.covidStatus!==Le.GREEN&&e.covidStatus!==Le.AMBER)}watchTitle(){this.withTitle=this.showStopSaleNotification}get stopSaleDestinations(){return this.destinationsChips.filter(({highlighted:e})=>e).map(({name:e})=>this.getLastDestLevel(e)).join(", ")}componentWillLoad(){ct(e=>this.isQuickSearchLoading=e),lt(e=>this.isInitialLoadingDone=e),this.dropdownActions=gt.getDropdownActions(this.compact),this.destinationsUpdated()}connectedCallback(){this.showAmountNotificationSubscription=Ts.showAmountNotification$.subscribe(e=>this.showAmountNotification=e),this.destinationsToShowSubscription=Ts.destinationsToShow$.subscribe(e=>{this.destinationsToShow=e,this.destinationsChips=Is(this.destinationsToShow),this.showStopSaleNotification=this.showStopSaleNotification&&this.destinationsToShow.reduce((e,t)=>e||t.stopSale,!1)}),this.destinationsOptionsSubscription=Ts.destinationsOptions$.subscribe(e=>this.destinationsOptions=e),this.destinationsLinksSubscription=Ts.destinationsLinks$.subscribe(e=>this.destinationsLinks=e),this.destMaxAmountReachedSubscription=Ts.destMaxAmountReached$.subscribe(e=>{this.destMaxAmountReached=e,this.maxHotelsReached=this.destMaxAmountReached[Ie.Hotel]}),this.isInitialDestinations=!Ts.destinationQuery,tt(e=>this.isInitialDestinations=!e),this.compact&&Ts.saveSelected()}componentDidRender(){this.onOverlayOpened()}disconnectedCallback(){this.showAmountNotificationSubscription.unsubscribe(),this.destinationsToShowSubscription.unsubscribe(),this.destinationsOptionsSubscription.unsubscribe(),this.destinationsLinksSubscription.unsubscribe(),this.destMaxAmountReachedSubscription.unsubscribe()}handleChipListChanged(e){Ts.removeApplied(e.detail)}handleFilterChanged(e){this.filterDestinations(""+e.detail)}handleClear(){Ts.removeAllApplied()}handleCheckboxItemChange(e,t){e.selected&&(Ts.applyDestination(t.id),this.afterDestinationItemSelected(t))}handleLinkClicked(e){Ts.applyAccommodation(e.id),this.afterDestinationItemSelected(e)}handleStopSalesDismiss(){this.showStopSaleNotification=!1}handleRemoveStoppedDestinations(){Ts.removeStoppedDestinations(),this.showStopSaleNotification=!1}onApply(){this.apply.emit()}onCancel(){this.cancel.emit()}onOverlayOpened(){this.chipsRef.focusOnSearch()}handleCloseError(){this.dismiss.emit()}getLastDestLevel(e){return e.split(", ")[0]}afterDestinationItemSelected(e){this.checkStopSale(e)}checkStopSale(e){this.showStopSaleNotification=this.showStopSaleNotification||e.stopSale}filterDestinations(e){this.filterText!==e&&(this.filterText=e,Ts.filterDestinations(e))}render(){return Object(c.g)(c.c,{key:"ad23241c575209369bedac5dbe123e3b564411a0"},Object(c.g)("sb-overlay-dropdown",{key:"d3825db724aa97bffccd8a2198479ed6e63ed16b",slot:"dropdown",actions:this.dropdownActions,onApply:this.onApply.bind(this),onCancel:this.onCancel.bind(this),isLoading:this.isQuickSearchLoading&&!this.isInitialLoadingDone,withDesktopActions:this.compact,leftSide:this.compact||this.minimal,disabledConfirm:this.compact&&(this.isInvalid||this.isQuickSearchLoading),withTitle:this.withTitle},Object(c.g)("div",{key:"213e1ce16b81282ce7c9c213267933c95667efbc",class:"header",slot:"header"},Object(c.g)("sb-chip-list",{key:"1ffc75e2b2dec93858eab33000e2a4e966c2b3ba","chip-placeholder":"Typ bestemming of hotelnaam","filter-placeholder":"Nog één toevoegen",showFilter:!this.showAmountNotification,label:this.label,list:this.destinationsChips,initialFilter:Ts.initialSearchQuery,onDeleted:this.handleChipListChanged.bind(this),onInputChanged:this.handleFilterChanged.bind(this),onClear:this.handleClear.bind(this),ref:e=>this.chipsRef=e}),this.showAmountNotification&&Object(c.g)("sb-notification-text",{class:"notification-text",type:Te.error},Object(c.g)("sb-svg-icon",{class:"warning-icon",icon:"warning"}),"Maximaal aantal bestemmingen bereikt"),Ts.isNoMatchesFound()&&Object(c.g)("sb-notification-text",{class:"notification-text",type:Te.error},Object(c.g)("sb-svg-icon",{class:"warning-icon",icon:"warning"}),"Geen overeenkomsten gevonden"),this.compact&&this.isInvalid&&Object(c.g)("sb-notification-text",{class:"notification-text",type:Te.error},Object(c.g)("sb-svg-icon",{class:"warning-icon",icon:"warning"}),Oe),Object(c.g)("sb-list-divider",{key:"a89dcdf6e0d230ba083bcf0fc5d7a46cc7f11d5b",class:"list-divider"})),Object(c.g)("div",{key:"e9ef2a101ac7a8c28a910d7c6f06da7b8ab7ff12",slot:"title",class:"title"},this.showStopSaleNotification&&Object(c.g)("sb-stop-sale-notification",{destination:this.stopSaleDestinations,onDismiss:this.handleStopSalesDismiss.bind(this),onRemoveChip:this.handleRemoveStoppedDestinations.bind(this)}),this.maxHotelsReached&&!this.isInitialDestinations&&Object(c.g)("div",{class:"counter"},"1/1")),Object(c.g)("div",{key:"c89e0527be19a6aa496124709e19815587412dd9",slot:"content",class:"content"},this.isInitialDestinations&&Object(c.g)("sb-recent-searches",{offerType:this.offerType,onSearch:this.onCancel.bind(this)}),!!this.quarantineFreeDestinations.length&&Object(c.g)(Gs,{title:this.isInitialDestinations?"Groene + Oranje bestemmingen":null,destinations:this.quarantineFreeDestinations,filterText:this.filterText,disabled:this.showAmountNotification,skipValidation:this.skipValidation,showCounter:this.maxHotelsReached&&this.isInitialDestinations,handleCheckboxItemChange:this.handleCheckboxItemChange.bind(this)}),!!this.otherDestinations.length&&Object(c.g)(Gs,{title:Ts.isNoMatchesFound()?null:"Populaire zoekopdrachten",destinations:this.otherDestinations,filterText:this.filterText,disabled:this.showAmountNotification,skipValidation:this.skipValidation,handleCheckboxItemChange:this.handleCheckboxItemChange.bind(this)}),!(!this.destinationsOptions.length||!this.destinationsLinks.length)&&Object(c.g)("sb-list-divider",null),this.destinationsLinks.map(e=>Object(c.g)("sb-place-search-link",{key:`${e.type}-${e.id}`,value:e.id,name:v(e.name,this.filterText),onLinkClicked:()=>this.handleLinkClicked(e)})))))}static get watchers(){return{destinationsOptions:["destinationsUpdated"],showStopSaleNotification:["watchTitle"]}}static get style(){return'@media (max-width: 767px){.sc-sb-bar-destination-dropdown-h{flex-wrap:wrap}}.header.sc-sb-bar-destination-dropdown .notification-text.sc-sb-bar-destination-dropdown{margin:16px 16px 0}.header.sc-sb-bar-destination-dropdown .notification-text.sc-sb-bar-destination-dropdown .warning-icon.sc-sb-bar-destination-dropdown{width:12px;height:12px;margin-right:8px;fill:#970202}.header.sc-sb-bar-destination-dropdown .list-divider.sc-sb-bar-destination-dropdown{margin:16px}.notification-text.sc-sb-bar-destination-dropdown{font-size:16px;line-height:24px;font-weight:400;font-family:"Source Sans Pro", arial, sans-serif;letter-spacing:normal;margin:0;text-align:left;color:#970202;margin-bottom:0}.counter.sc-sb-bar-destination-dropdown{font-size:16px;line-height:24px;font-weight:400;font-family:"Source Sans Pro", arial, sans-serif;letter-spacing:normal;margin:0;text-align:end}.title.sc-sb-bar-destination-dropdown{position:relative;width:100%}.content.sc-sb-bar-destination-dropdown{margin-bottom:32px}@media (min-width: 1200px){.content.sc-sb-bar-destination-dropdown{margin-bottom:0}}.bar-error-destination.sc-sb-bar-destination-dropdown{display:none}@media (max-width: 767px){.bar-error-destination.sc-sb-bar-destination-dropdown{display:inline-block;min-width:100%;margin:16px 0 8px}}.title-bold.sc-sb-bar-destination-dropdown{font-size:16px;line-height:24px;font-weight:600;font-family:"Source Sans Pro", arial, sans-serif;letter-spacing:normal;margin:0;display:flex;margin:0 0 24px}.title-bold.sc-sb-bar-destination-dropdown:not(:first-of-type){margin-top:8px}.title-bold.sc-sb-bar-destination-dropdown .list-title-counter.sc-sb-bar-destination-dropdown{font-weight:400;margin-left:auto}'}},[2,"sb-bar-destination-dropdown",{label:[1],isInvalid:[4,"is-invalid"],compact:[4],minimal:[4],showInitialFilter:[4,"show-initial-filter"],skipValidation:[4,"skip-validation"],offerType:[2,"offer-type"],destinationsToShow:[32],destinationsOptions:[32],quarantineFreeDestinations:[32],otherDestinations:[32],destinationsLinks:[32],showStopSaleNotification:[32],showAmountNotification:[32],isInitialDestinations:[32],isInitialLoadingDone:[32],initialSearchQuery:[32],filterText:[32],destMaxAmountReached:[32],maxHotelsReached:[32],withTitle:[32],isQuickSearchLoading:[32]},void 0,{destinationsOptions:["destinationsUpdated"],showStopSaleNotification:["watchTitle"]}]);function Qs(){if("undefined"==typeof customElements)return;["sb-bar-destination-dropdown","sb-checkbox-item","sb-chip-list","sb-list-divider","sb-notification-dialog","sb-notification-text","sb-overlay-dropdown","sb-place-search-link","sb-recent-searches","sb-spinner-circle","sb-spinner-underlay","sb-stop-sale-notification","sb-svg-icon"].forEach(e=>{switch(e){case"sb-bar-destination-dropdown":customElements.get(e)||customElements.define(e,Ws);break;case"sb-checkbox-item":customElements.get(e)||fs();break;case"sb-chip-list":customElements.get(e)||xs();break;case"sb-list-divider":customElements.get(e)||kt();break;case"sb-notification-dialog":customElements.get(e)||ws();break;case"sb-notification-text":customElements.get(e)||$t();break;case"sb-overlay-dropdown":customElements.get(e)||Tt();break;case"sb-place-search-link":customElements.get(e)||qs();break;case"sb-recent-searches":customElements.get(e)||qe();break;case"sb-spinner-circle":customElements.get(e)||Dt();break;case"sb-spinner-underlay":customElements.get(e)||Ct();break;case"sb-stop-sale-notification":customElements.get(e)||Hs();break;case"sb-svg-icon":customElements.get(e)||ue()}})}Qs();const Us=Object(c.h)(class extends c.b{constructor(){super(),this.__registerHost(),this.dismiss=Object(c.d)(this,"dismiss",7),this.compactSearch=Object(c.d)(this,"compactSearch",7),this.label="Ik wil naar",this.applied=!1,this.isInvalid=void 0,this.offerType=void 0,this.compact=void 0,this.minimal=void 0,this.skipValidation=void 0,this.showInitialFilter=!1,this.isDropDownActive=!1,this.selectedDestinationsView=void 0}componentWillLoad(){Ts.updateSummary()}connectedCallback(){this.openOverlaySubscription=Ts.onOpen$.subscribe(async()=>{var e;return await(null===(e=this.overlayEmitterRef)||void 0===e?void 0:e.open())}),this.destinationsToShowSubscription=Ts.destinationsToShow$.subscribe(e=>this.selectedDestinationsView=e.map(e=>re.bestMatchGoingTo?e.name:Ls(e)))}disconnectedCallback(){this.openOverlaySubscription.unsubscribe(),this.destinationsToShowSubscription.unsubscribe()}onCancel(){this.compact&&Ts.restoreSelected(),gt.close()}onApply(){this.applied=!0,gt.close(),this.compact?Ts.isDirty()&&this.compactSearch.emit():Ts.openNextSection(this.offerType)}onOverlayClosed(){!this.applied&&this.compact&&this.onCancel(),Ts.resetFilter(),this.isDropDownActive=!1}onOverlayOpened(){Es.revalidate(),this.isDropDownActive=!0,this.applied=!1,Ts.resetFilter()}onBeforeClose(){this.compact?this.onOverlayClosed():this.isInvalid||(this.onOverlayClosed(),this.onApply())}render(){return Object(c.g)(c.c,{key:"465becb43bb38b2840d3d5a8480ea9a104d617d0"},Object(c.g)("sb-overlay-emitter",{key:"aabd311e1d905263a7bd26e3264234070bcc638e",hasValidation:this.compact,onKeyDown:y,ref:e=>this.overlayEmitterRef=e,onClosed:this.onOverlayClosed.bind(this),onOpened:this.onOverlayOpened.bind(this),dropdownRenderFunc:()=>re.bestMatchGoingTo?Object(c.g)("sb-bar-destination-best-match-dropdown",{showInitialFilter:Ts.showInitialFilter,isInvalid:this.isInvalid,label:this.label,compact:this.compact,minimal:this.minimal,skipValidation:this.skipValidation,offerType:this.offerType,onCancel:this.onCancel.bind(this),onApply:this.onApply.bind(this)}):Object(c.g)("sb-bar-destination-dropdown",{showInitialFilter:Ts.showInitialFilter,isInvalid:this.isInvalid,skipValidation:this.skipValidation,label:this.label,compact:this.compact,minimal:this.minimal,offerType:this.offerType,onCancel:this.onCancel.bind(this),onApply:this.onApply.bind(this)}),onBeforeClose:this.onBeforeClose.bind(this)},Object(c.g)("sb-status-input",{key:"5c533e834be33d7cbf48289df85dad52385eda94",slot:"input",label:this.label,isInvalid:this.isInvalid,isFloat:this.isDropDownActive,value:this.selectedDestinationsView})))}static get style(){return'@media (max-width: 767px){.sc-sb-bar-destination-h{flex-wrap:wrap}}.notification-text.sc-sb-bar-destination{font-size:16px;line-height:24px;font-weight:400;font-family:"Source Sans Pro", arial, sans-serif;letter-spacing:normal;margin:0;text-align:left;color:#970202}.counter.sc-sb-bar-destination{font-size:16px;line-height:24px;font-weight:400;font-family:"Source Sans Pro", arial, sans-serif;letter-spacing:normal;margin:0;position:absolute;right:0;bottom:0}.title.sc-sb-bar-destination{position:relative;width:100%}'}},[2,"sb-bar-destination",{isInvalid:[4,"is-invalid"],offerType:[2,"offer-type"],compact:[4],minimal:[4],skipValidation:[4,"skip-validation"],showInitialFilter:[32],isDropDownActive:[32],selectedDestinationsView:[32]}]);function Ks(){if("undefined"==typeof customElements)return;["sb-bar-destination","sb-bar-destination-best-match-dropdown","sb-bar-destination-dropdown","sb-checkbox","sb-checkbox-item","sb-chip-list","sb-destination-checkbox-item","sb-destination-hotel-item","sb-list-divider","sb-notification-dialog","sb-notification-text","sb-overlay-dropdown","sb-overlay-emitter","sb-place-search-link","sb-recent-searches","sb-spinner-circle","sb-spinner-underlay","sb-status-input","sb-stop-sale-notification","sb-svg-icon"].forEach(e=>{switch(e){case"sb-bar-destination":customElements.get(e)||customElements.define(e,Us);break;case"sb-bar-destination-best-match-dropdown":customElements.get(e)||zs();break;case"sb-bar-destination-dropdown":customElements.get(e)||Qs();break;case"sb-checkbox":customElements.get(e)||ms();break;case"sb-checkbox-item":customElements.get(e)||fs();break;case"sb-chip-list":customElements.get(e)||xs();break;case"sb-destination-checkbox-item":customElements.get(e)||Ns();break;case"sb-destination-hotel-item":customElements.get(e)||Vs();break;case"sb-list-divider":customElements.get(e)||kt();break;case"sb-notification-dialog":customElements.get(e)||ws();break;case"sb-notification-text":customElements.get(e)||$t();break;case"sb-overlay-dropdown":customElements.get(e)||Tt();break;case"sb-overlay-emitter":customElements.get(e)||cs();break;case"sb-place-search-link":customElements.get(e)||qs();break;case"sb-recent-searches":customElements.get(e)||qe();break;case"sb-spinner-circle":customElements.get(e)||Dt();break;case"sb-spinner-underlay":customElements.get(e)||Ct();break;case"sb-status-input":customElements.get(e)||ds();break;case"sb-stop-sale-notification":customElements.get(e)||Hs();break;case"sb-svg-icon":customElements.get(e)||ue()}})}Ks();const Ys=Object(c.h)(class extends c.b{constructor(){super(),this.__registerHost(),this.changed=Object(c.d)(this,"changed",7),this.selectedDuration=void 0,this.durationOptions=void 0,this.skipValidation=void 0}isChecked(e){return parseInt(this.selectedDuration[0])===e}onChange(e){const t=e.target.checked,s=e.target.value;this.changed.emit({value:s,selected:t})}render(){return Object(c.g)(c.c,{key:"117ba52b4a320625584513ea843a6287b32045c8"},this.durationOptions.map(e=>Object(c.g)("label",{class:"filter-radio-label",onKeyDown:t=>y(t,()=>this.changed.emit({value:null==e?void 0:e.value,selected:!this.isChecked(null==e?void 0:e.value)})),tabindex:this.isChecked(null==e?void 0:e.value)||!(null==e?void 0:e.active)?-1:0,role:"button"},Object(c.g)("input",{type:"radio",class:"filter-radio",name:"duration",value:null==e?void 0:e.value,checked:this.isChecked(null==e?void 0:e.value),disabled:!this.skipValidation&&!(null==e?void 0:e.active),onChange:this.onChange.bind(this)}),Object(c.g)("span",{class:"filter-radio-text"},null==e?void 0:e.value," ",1===(null==e?void 0:e.value)?"nacht":"nachten"))))}static get style(){return'.sc-sb-duration-options-h{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center}.filter-radio.sc-sb-duration-options{position:absolute;opacity:0}.filter-radio-label.sc-sb-duration-options{border-radius:20px;white-space:nowrap;width:calc(33% - 10px);margin-bottom:16px}.filter-radio-label.sc-sb-duration-options:focus{outline:thin dotted;outline-color:#000}.filter-radio-text.sc-sb-duration-options{font-size:16px;line-height:24px;font-weight:400;font-family:"Source Sans Pro", arial, sans-serif;letter-spacing:normal;margin:0;display:block;text-align:center;padding:4px 16px;border:1px solid #9d9d9d;border-radius:inherit;color:#262626;cursor:pointer}.filter-radio.sc-sb-duration-options:checked+.filter-radio-text.sc-sb-duration-options{border-color:#59a498;background-color:#e3f2f0;color:#262626}.filter-radio[disabled].sc-sb-duration-options+.filter-radio-text.sc-sb-duration-options{border-color:#000;color:#000;background-color:transparent;opacity:0.2;cursor:default;pointer-events:none}'}},[2,"sb-duration-options",{selectedDuration:[16],durationOptions:[16],skipValidation:[4,"skip-validation"]}]);function Js(){if("undefined"==typeof customElements)return;["sb-duration-options"].forEach(e=>{switch(e){case"sb-duration-options":customElements.get(e)||customElements.define(e,Ys)}})}Js();const Xs={faqLink:{[a.uk]:"https://support.thomascook.com/en/support/home",[a.nl]:"https://support.thomascook.com/nl/support/home",[a.be]:"https://support.thomascook.com/nl-be/support/home"},contactUsLink:{[a.uk]:"https://www.thomascook.com/contact-us",[a.nl]:"https://www.thomascook.com/nl/contact-ons",[a.be]:"https://www.thomascook.com/nl/contact-ons"}};var Zs=function(e,t,s,i){var n,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,s):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,s,i);else for(var r=e.length-1;r>=0;r--)(n=e[r])&&(a=(o<3?n(a):o>3?n(t,s,a):n(t,s))||a);return o>3&&a&&Object.defineProperty(t,s,a),a};const ei=Object(c.h)(class extends c.b{constructor(){super(),this.__registerHost(),this.dismiss=Object(c.d)(this,"dismiss",7)}get contactUsLink(){return this.globalLinksConfig.contactUsLink}handleDismiss(e){this.dismiss.emit(e)}render(){return Object(c.g)(c.c,{key:"5e0fac15dbfa30a19d365ad0d0ab1f44e4c28701"},Object(c.g)("sb-notification-dialog",{key:"a8e25c0f40809210031c3a2909c08773fb31df40",level:Te.info},Object(c.g)("div",{key:"f75b3bca0ed179fc8d19a3f78beaeb4788b2508e",slot:"message",class:"mdi"},Object(c.g)("div",{key:"ebf5caa07a83909bad305422a53997152bd6778a",class:"mdi-title"},"We hebben meer reisduren beschikbaar. Wij zijn hier om u te helpen uw perfecte vakantie te vinden"),Object(c.g)("div",{key:"c0ff8932bd175f78bc1a2b4788dd4740e24131af",class:"mdi-chat"},"Chat met ons via onze"," ",Object(c.g)("a",{key:"33f72e56f5781aa324e0038e5a7bee7253442bfd",href:this.contactUsLink,target:"_blank",class:"mdi-link"},"contactpagina")," ","tussen 10:00 en 17:00 uur."),"nl"===a.uk&&Object(c.g)("div",{class:"mdi-call-center"},""," ","tussen 10:00 en 17:00 uur.")),Object(c.g)("div",{key:"bc341fd1686ca541b2f636b07b9f31c18a696519",slot:"action-1",onClick:()=>this.handleDismiss(!1)},"Sluit")))}static get style(){return".sc-sb-more-durations-info-h{display:block}.mdi-title.sc-sb-more-durations-info{margin-bottom:18px}.mdi-chat.sc-sb-more-durations-info{margin-bottom:18px}.mdi-link.sc-sb-more-durations-info{text-decoration:underline;color:#262626;cursor:pointer}"}},[2,"sb-more-durations-info"]);function ti(){if("undefined"==typeof customElements)return;["sb-more-durations-info","sb-notification-dialog"].forEach(e=>{switch(e){case"sb-more-durations-info":customElements.get(e)||customElements.define(e,ei);break;case"sb-notification-dialog":customElements.get(e)||ws()}})}function si(e){return`${e} ${1===e?"nacht":"nachten"}`}Zs([l(Xs)],ei.prototype,"globalLinksConfig",void 0),ti();const ii=new class{get selectedDurationView(){return this.selectedDurationView$.getValue()}get durations(){return te.searchOptions.durations}constructor(){this.onOpen$=new w,this.selectedDurationView$=new We(si(te.requestOptions.durations[0])),nt.onOpenSection$.subscribe(e=>{e===Re.DURATION&&this.onOpen$.next()}),et(e=>{this.selectedDurationView$.next(si(e[0])),at.updateSummary({duration:this.selectedDurationView})})}selectDuration(e){te.requestOptions=Object.assign(Object.assign({},te.requestOptions),{durations:e})}saveSelected(){this.lastApplied=te.requestOptions.durations}restoreSelected(){var e;(null===(e=this.lastApplied)||void 0===e?void 0:e.length)&&this.selectDuration(this.lastApplied)}isDirty(){var e;return(null===(e=this.lastApplied)||void 0===e?void 0:e.length)!==te.requestOptions.durations.length||!this.lastApplied.every(e=>te.requestOptions.durations.includes(e))}getSelectedDurations(){return te.requestOptions.destinations.map(e=>te.searchOptions.destinations.find(t=>t.id===e)).filter(Boolean).filter(e=>e.type===Ie.Country).map(e=>e.name)}openNextSection(){nt.openSection(Re.OCCUPATION)}openDateBarSection(){nt.openSection(Re.DEP_DATE)}},ni=Object(c.h)(class extends c.b{constructor(){super(),this.__registerHost(),this.cancel=Object(c.d)(this,"cancel",7),this.apply=Object(c.d)(this,"apply",7),this.label=void 0,this.compact=void 0,this.minimal=void 0,this.selectedDurationView=void 0,this.skipValidation=void 0,this.isShowOtherDurations=!1,this.isQuickSearchLoading=void 0,this.isInitialLoadingDone=!1}get durations(){return ii.durations}get hasDuration(){return this.skipValidation||!!this.durations.find(e=>e.active)}componentWillLoad(){ct(e=>this.isQuickSearchLoading=e),lt(e=>this.isInitialLoadingDone=e),this.dropdownActions=gt.getDropdownActions(this.compact)}connectedCallback(){this.hasDuration||(this.noAvailableDurationsMessage=this.getNoAvailableDurationsMessage()),this.compact&&ii.saveSelected()}onChange(e){const t=e.detail;t.selected&&ii.selectDuration([+t.value])}onApply(){this.isShowOtherDurations=!1,this.apply.emit()}onCancel(){this.cancel.emit()}altLinkClick(e){null==e||e.stopPropagation(),this.onApply(),ii.openDateBarSection()}showDurationInfo(){this.isShowOtherDurations=!0,setTimeout(function(){const e=this.element.querySelector("#duration-dropdown");e&&e.scrollToBottom()}.bind(this),200)}handleDismiss(e){this.isShowOtherDurations=e.detail}getNoAvailableDurationsMessage(){const e=ii.getSelectedDurations();return`Sorry! er zijn geen vakanties ${e.length?"naar "+e:" "} beschikbaar ${_t.currentDate?"op "+p.format(_t.currentDate,"dd LLL"):""}`}render(){return Object(c.g)(c.c,{key:"e2852fb00d1f99c3ee34304efe423e7220dbe2e6"},Object(c.g)("sb-overlay-dropdown",{key:"c11a2fa66e1c759ac86a94a5e359278a90bbcd97",slot:"dropdown",id:"duration-dropdown",actions:this.dropdownActions,onCancel:this.onCancel.bind(this),onApply:this.onApply.bind(this),withDesktopActions:this.compact,leftSide:this.compact||this.minimal,isLoading:this.isQuickSearchLoading&&!this.isInitialLoadingDone,disabledConfirm:this.compact&&this.isQuickSearchLoading},Object(c.g)("div",{key:"edf3bc623adfa2ffa3377dc5633bccffc58f27d4",class:"dropdown-header",slot:"header"},Object(c.g)("span",{key:"f2cc8d8f2a247b7f2c758c752f1be492b567afd3",class:"selected-value"},this.selectedDurationView),Object(c.g)("sb-list-divider",{key:"5097e810cf340dfacb04f30e6f8ce53e4923f5f2",class:"list-divider"})),Object(c.g)("div",{key:"22f0de6a8cfbb60a9fd3e2d3cc87b130b3ccc582",slot:"content",class:"duration-content"},!this.hasDuration&&Object(c.g)("div",{class:"duration-overlay"},Object(c.g)("div",{class:"duration-inner"},Object(c.g)("p",{class:"duration-p"},this.noAvailableDurationsMessage),Object(c.g)("a",{class:"duration-link",onClick:this.altLinkClick.bind(this)},"Bekijk andere beschikbare data"))),Object(c.g)("sb-duration-options",{key:"56c5d0b76110f24ef0239873bb7b25eee019668f",id:"durations-options",durationOptions:this.durations,selectedDuration:[this.selectedDurationView],onChanged:this.onChange.bind(this),skipValidation:this.skipValidation}),this.isShowOtherDurations?Object(c.g)("sb-more-durations-info",{id:"more-durations-info",onDismiss:e=>this.handleDismiss(e),class:"other-durations-info"}):Object(c.g)("a",{class:"other-durations-link"+(this.hasDuration?"":" other-durations-link-inactive"),onClick:this.showDurationInfo.bind(this),onKeyDown:e=>y(e,this.showDurationInfo.bind(this)),tabindex:"0",role:"button"},"Boek andere reisduren"))))}get element(){return this}static get style(){return'@media (min-width: 1200px){.dropdown-header.sc-sb-bar-duration-dropdown{display:none}}.title.sc-sb-bar-duration-dropdown{font-size:20px;line-height:28px;font-weight:600;font-family:"Source Sans Pro", arial, sans-serif;letter-spacing:normal;margin:0;color:#262626}.selected-value.sc-sb-bar-duration-dropdown{font-size:16px;line-height:24px;font-weight:600;font-family:"Source Sans Pro", arial, sans-serif;letter-spacing:normal;margin:0;margin:0 16px}@media (min-width: 1200px){.selected-value.sc-sb-bar-duration-dropdown{margin:0}}.list-divider.sc-sb-bar-duration-dropdown{margin:16px}@media (min-width: 1200px){.list-divider.sc-sb-bar-duration-dropdown{margin:16px 0}}.duration-content.sc-sb-bar-duration-dropdown{position:relative;margin-bottom:32px}@media (min-width: 1200px){.duration-content.sc-sb-bar-duration-dropdown{margin-bottom:0}}.duration-overlay.sc-sb-bar-duration-dropdown{display:flex;justify-content:center;align-items:center;position:absolute;background-color:rgba(0, 0, 0, 0.02);top:0;left:0;right:0;bottom:0}.duration-p.sc-sb-bar-duration-dropdown{font-size:16px;line-height:24px;font-weight:600;font-family:"Source Sans Pro", arial, sans-serif;letter-spacing:normal;margin:0;text-align:center;margin:0;padding:0 5px}.duration-inner.sc-sb-bar-duration-dropdown{display:flex;align-items:center;flex-direction:column}.duration-link.sc-sb-bar-duration-dropdown{font-size:16px;line-height:24px;font-weight:600;font-family:"Source Sans Pro", arial, sans-serif;letter-spacing:normal;margin:0;text-decoration:underline;cursor:pointer}.other-durations.sc-sb-bar-duration-dropdown{width:100%}.other-durations-link.sc-sb-bar-duration-dropdown{font-size:16px;line-height:16px;font-weight:600;font-family:"Source Sans Pro", arial, sans-serif;letter-spacing:0.8px;margin:0;text-transform:uppercase;display:block;cursor:pointer;margin:16px 0 12px;text-align:center;text-decoration:none;color:#d74113}.other-durations-link.sc-sb-bar-duration-dropdown:focus{outline:thin dotted;outline-color:#000}.other-durations-link.sc-sb-bar-duration-dropdown:hover{text-decoration:none;color:#f0a58e}@media (max-width: 767px){.other-durations-link.sc-sb-bar-duration-dropdown{margin:40px 0 0}}.other-durations-link-inactive.sc-sb-bar-duration-dropdown{opacity:0.5;pointer-events:none}.other-durations-info.sc-sb-bar-duration-dropdown{margin:24px 0}@media (max-width: 767px){.other-durations-info.sc-sb-bar-duration-dropdown{margin:24px 0 0}}'}},[2,"sb-bar-duration-dropdown",{label:[1],compact:[4],minimal:[4],selectedDurationView:[1,"selected-duration-view"],skipValidation:[4,"skip-validation"],isShowOtherDurations:[32],isQuickSearchLoading:[32],isInitialLoadingDone:[32]}]);function oi(){if("undefined"==typeof customElements)return;["sb-bar-duration-dropdown","sb-duration-options","sb-list-divider","sb-more-durations-info","sb-notification-dialog","sb-overlay-dropdown","sb-spinner-circle","sb-spinner-underlay"].forEach(e=>{switch(e){case"sb-bar-duration-dropdown":customElements.get(e)||customElements.define(e,ni);break;case"sb-duration-options":customElements.get(e)||Js();break;case"sb-list-divider":customElements.get(e)||kt();break;case"sb-more-durations-info":customElements.get(e)||ti();break;case"sb-notification-dialog":customElements.get(e)||ws();break;case"sb-overlay-dropdown":customElements.get(e)||Tt();break;case"sb-spinner-circle":customElements.get(e)||Dt();break;case"sb-spinner-underlay":customElements.get(e)||Ct()}})}oi();const ai=Object(c.h)(class extends c.b{constructor(){super(),this.__registerHost(),this.compactSearch=Object(c.d)(this,"compactSearch",7),this.label="Reisduur",this.compact=void 0,this.minimal=void 0,this.skipValidation=void 0,this.selectedDurationView=void 0}connectedCallback(){this.openOverlaySubscription=ii.onOpen$.subscribe(async()=>{var e;return await(null===(e=this.overlayEmitterRef)||void 0===e?void 0:e.open())}),this.selectedDurationViewSubscription=ii.selectedDurationView$.subscribe(e=>this.selectedDurationView=e)}disconnectedCallback(){this.openOverlaySubscription.unsubscribe(),this.selectedDurationViewSubscription.unsubscribe()}onApply(){gt.close(),this.compact?ii.isDirty()&&this.compactSearch.emit():ii.openNextSection()}onCancel(){this.compact&&ii.restoreSelected(),gt.close()}render(){return Object(c.g)(c.c,{key:"102c67654431363904f7d2050054d2243dacb4be"},Object(c.g)("sb-overlay-emitter",{key:"547ad8fa21d53088562cd1d6f5b39f7441c03fef",onKeyDown:y,ref:e=>this.overlayEmitterRef=e,onBeforeClose:this.onCancel.bind(this),hasValidation:!0,dropdownRenderFunc:()=>Object(c.g)("sb-bar-duration-dropdown",{label:this.label,compact:this.compact,minimal:this.minimal,selectedDurationView:this.selectedDurationView,skipValidation:this.skipValidation,onApply:this.onApply.bind(this),onCancel:this.onCancel.bind(this)})},Object(c.g)("sb-status-input",{key:"95e2050eed5499e4181c51807f360aa20e06e629",slot:"input",label:this.label,value:[this.selectedDurationView]})))}static get style(){return'@media (min-width: 1200px){.dropdown-header.sc-sb-bar-duration{display:none}}.duration-content.sc-sb-bar-duration{position:relative}.duration-overlay.sc-sb-bar-duration{display:flex;justify-content:center;align-items:center;position:absolute;background-color:rgba(0, 0, 0, 0.02);top:0;left:0;right:0;bottom:0}.duration-p.sc-sb-bar-duration{font-size:16px;line-height:24px;font-weight:600;font-family:"Source Sans Pro", arial, sans-serif;letter-spacing:normal;margin:0;text-align:center;margin:0;padding:0 5px}.duration-inner.sc-sb-bar-duration{display:flex;align-items:center;flex-direction:column}.duration-link.sc-sb-bar-duration{font-size:16px;line-height:24px;font-weight:600;font-family:"Source Sans Pro", arial, sans-serif;letter-spacing:normal;margin:0;text-decoration:underline;cursor:pointer}.other-durations.sc-sb-bar-duration{width:100%}.other-durations-link.sc-sb-bar-duration{font-size:16px;line-height:24px;font-weight:400;font-family:"Source Sans Pro", arial, sans-serif;letter-spacing:normal;margin:0;cursor:pointer;margin:40px 0;text-align:center;text-decoration:underline;color:#3d776b}.other-durations-link.sc-sb-bar-duration:hover{text-decoration:none;color:#499486}@media (max-width: 767px){.other-durations-link.sc-sb-bar-duration{margin:40px 0 0}}.other-durations-link-inactive.sc-sb-bar-duration{opacity:0.5;pointer-events:none}.other-durations-info.sc-sb-bar-duration{margin:24px 0}@media (max-width: 767px){.other-durations-info.sc-sb-bar-duration{margin:24px 0 0}}'}},[2,"sb-bar-duration",{compact:[4],minimal:[4],skipValidation:[4,"skip-validation"],selectedDurationView:[32]}]);function ri(){if("undefined"==typeof customElements)return;["sb-bar-duration","sb-bar-duration-dropdown","sb-duration-options","sb-list-divider","sb-more-durations-info","sb-notification-dialog","sb-overlay-dropdown","sb-overlay-emitter","sb-spinner-circle","sb-spinner-underlay","sb-status-input"].forEach(e=>{switch(e){case"sb-bar-duration":customElements.get(e)||customElements.define(e,ai);break;case"sb-bar-duration-dropdown":customElements.get(e)||oi();break;case"sb-duration-options":customElements.get(e)||Js();break;case"sb-list-divider":customElements.get(e)||kt();break;case"sb-more-durations-info":customElements.get(e)||ti();break;case"sb-notification-dialog":customElements.get(e)||ws();break;case"sb-overlay-dropdown":customElements.get(e)||Tt();break;case"sb-overlay-emitter":customElements.get(e)||cs();break;case"sb-spinner-circle":customElements.get(e)||Dt();break;case"sb-spinner-underlay":customElements.get(e)||Ct();break;case"sb-status-input":customElements.get(e)||ds()}})}ri();const ci=Object(c.h)(class extends c.b{constructor(){super(),this.__registerHost(),this.compactSearch=Object(c.d)(this,"compactSearch",7),this.search=Object(c.d)(this,"search",7),this.label="Kamers & gasten",this.compact=void 0,this.minimal=void 0,this.rooms=[],this.isDirty=void 0}get paxMixView(){return[Vt.paxMixView]}handleContentRefInit(e){this.scrollableContentRef=e.detail}connectedCallback(){this.roomsSubscription=Vt.rooms$.subscribe(e=>this.rooms=e),this.isDirtySubscription=Vt.isDirty$.subscribe(e=>this.isDirty=e),this.openOverlaySubscription=Vt.onOpen$.subscribe(async()=>{var e;return await(null===(e=this.overlayEmitterRef)||void 0===e?void 0:e.open())})}disconnectedCallback(){this.roomsSubscription.unsubscribe(),this.isDirtySubscription.unsubscribe(),this.openOverlaySubscription.unsubscribe()}onApply(){Vt.validate()&&(Vt.applyPax(),this.closeDropdown(),this.search.emit())}onCancel(){this.closeDropdown(),this.compact&&Vt.restoreSelected()}onClosed(){const e=Vt.wasChanged(),t=Vt.validate();e&&!this.compact&&t&&this.onDone()}onDone(){Vt.validate()&&(Vt.applyPax(),this.closeDropdown())}onActivatedSelectOffset(e){const t=this.getScrollTop(e.detail);t&&this.scrollableContentRef.scrollTo({top:t,behavior:"smooth"})}onCompactSearch(e){e.stopPropagation(),Vt.isDirty()&&this.compactSearch.emit()}onBeforeClosed(){this.compact?this.onCancel():this.onDone()}getScrollTop(e){let t;return this.scrollableContentRef.scrollTop+130>e?t=e-130:this.scrollableContentRef.scrollTop+this.scrollableContentRef.clientHeight-130this.overlayEmitterRef=e,hasValidation:!0,onClosed:this.onClosed.bind(this),onBeforeClose:this.onBeforeClosed.bind(this),dropdownRenderFunc:()=>Object(c.g)("sb-bar-pax-dropdown",{slot:"dropdown",compact:this.compact,minimal:this.minimal,onCompactSearch:this.onCompactSearch.bind(this),onApply:this.onApply.bind(this),onDone:this.onDone.bind(this),onCancel:this.onCancel.bind(this),config:this.compact&&{actions:bt}})},Object(c.g)("sb-status-input",{key:"176bd4a20552044426364c9c3f9ab437f34d6751",slot:"input",label:this.label,value:this.paxMixView})))}static get style(){return""}},[2,"sb-bar-pax",{compact:[4],minimal:[4],rooms:[32],isDirty:[32]},[[0,"contentRefInit","handleContentRefInit"]]]);function li(){if("undefined"==typeof customElements)return;["sb-bar-pax","sb-bar-pax-dropdown","sb-custom-select","sb-custom-select-option","sb-list-divider","sb-notification-text","sb-overlay-dropdown","sb-overlay-emitter","sb-pax-room","sb-pax-selection","sb-pax-stepper","sb-spinner-circle","sb-spinner-underlay","sb-status-input"].forEach(e=>{switch(e){case"sb-bar-pax":customElements.get(e)||customElements.define(e,ci);break;case"sb-bar-pax-dropdown":customElements.get(e)||Ht();break;case"sb-custom-select":customElements.get(e)||vt();break;case"sb-custom-select-option":customElements.get(e)||yt();break;case"sb-list-divider":customElements.get(e)||kt();break;case"sb-notification-text":customElements.get(e)||$t();break;case"sb-overlay-dropdown":customElements.get(e)||Tt();break;case"sb-overlay-emitter":customElements.get(e)||cs();break;case"sb-pax-room":customElements.get(e)||Rt();break;case"sb-pax-selection":customElements.get(e)||Pt();break;case"sb-pax-stepper":customElements.get(e)||Mt();break;case"sb-spinner-circle":customElements.get(e)||Dt();break;case"sb-spinner-underlay":customElements.get(e)||Ct();break;case"sb-status-input":customElements.get(e)||ds()}})}li();var di=function(e,t){var s={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(s[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(i=Object.getOwnPropertySymbols(e);n{let s;const{destination:i,accommodation:n,hotelId:o,airport:a,duration:r,occupation:c,departure:l,budget:d,preOffset:h,postOffset:p,destinationQuery:b,market:u,locale:m,holidayType:g,officialRating:f,tripadvisorRating:v,boardBasis:x}=e;if(l){const e=(new Date).setUTCHours(0,0,0,0);s=new Date(l).getTime(){const{destinations:n,accommodation:o,departureAirports:a,durations:r,pax:c,departure:l,offerType:d,preOffset:h,postOffset:p}=e,{destinations:b,departureAirports:u}=t,g=o?{accommodation:null==b?void 0:b.filter(e=>e.id===o).map(e=>{const t=i?`${e.name}, ${e.resort}`:e.name;return{id:e.id,name:t}})[0]}:{destinations:null==n?void 0:n.filter(Boolean).map(e=>{const t=b.find(t=>t.id===e),s=i?[t.country,t.region,t.resort].splice(Math.max(0,t.type-2),2).reverse().filter(Boolean).join(", "):null==t?void 0:t.name;return{id:e,name:s}})},f=u.filter(e=>e.isGroup).filter(e=>e.code.split(",").every(e=>a.includes(e))),v=a.filter(e=>!f.some(t=>t.code.split(",").includes(e))),x=Object.assign(Object.assign({url:s},g),{departureAirports:f.concat(v.map(e=>u.find(t=>t.code===e))).map(e=>({code:e.code,name:e.name,isGroup:e.isGroup})),durations:r,pax:c,departure:l,preOffset:h,postOffset:p});return((e,t)=>{var s,i;return((null===(s=e.destinations)||void 0===s?void 0:s.length)>0||!!e.accommodation.id)&&!!e.departure&&e.durations.length>0&&!!e.pax&&(t!==m.PACKAGES||!!(null===(i=e.departureAirports)||void 0===i?void 0:i.length))})(x,d)?x:null};class bi{constructor(){this.validationSubject$=new We(!0),this.messages=new Map}isValid(){return!this.messages.size}get lastMessage(){return this.messages.values().next().value}get isValid$(){return this.validationSubject$}checkValidation(){const e=this.isValid();this.validate(),e!==this.isValid()&&this.validationSubject$.next(this.isValid())}addValidator(e){this.validators=this.validators?[...this.validators,e]:[e]}}class ui extends bi{validate(){this.messages.clear(),this.validators.map(e=>e(this.value)).filter(Boolean).map(e=>Object.entries(e)).forEach(([[e,t]])=>this.messages.set(e,t))}constructor(e){super(),this.name=e}update(e){this.isPristine=!this.value,this.value=e}}class mi extends bi{constructor(e){super(),this.controls=e?[...e]:[]}get lastMessage(){const[e]=this.controls.map(e=>e.lastMessage).filter(Boolean);return e||""}isValid(){return!this.lastMessage}addControls(e){this.controls=e?[...this.controls,...e]:[...this.controls]}updateControl(e,t){const s=this.getControlByName(e);s&&(s.update(t),this.checkValidation())}getControlByName(e){return this.controls.find(t=>t.name===e)}validate(){this.controls.forEach(e=>e.checkValidation())}}const gi=Object(c.h)(class extends c.b{constructor(){super(),this.__registerHost(),this.search=Object(c.d)(this,"search",7),this.form=new mi,this._dates={start:p.getCurrentDay(1),end:p.getCurrentDay(660)},this.searchUrl="",this.offerType=m.PACKAGES,this.compact=void 0,this.minimal=void 0,this.lite=void 0,this.skipValidation=void 0,this.errorMsg="",this.isLoading=void 0,this.isDestinationDismissed=!1,this.isDepartureDismissed=!1,this.isDateDismissed=!1,this.isDateSelected=!1,this.isInvalid=!1,this.showError=!1}get shouldSetValidation(){return this.skipValidation||!!te.requestOptions.accommodation||re.skipValidation}get isPackagesSearch(){return this.offerType===m.PACKAGES}onOfferTypeChanged(e,t){if(e!==t){this.form=this.setupForm();const t=this.getValidDeparture(e);te.requestOptions=Object.assign(Object.assign({},te.requestOptions),{offerType:e,departure:t})}}render(){return Object(c.g)(c.c,{key:"02582b4f068ca8a1dee0bb60062f7c6ec04faa81",class:{"sb-minimal":this.minimal,"sb-compact":this.compact}},Object(c.g)("div",{key:"74a7adaa6a86e3dbb00dd5a96726e8f718b3b31c",class:"sb-wrapper"+(this.compact||this.minimal?" sb-wrapper--small":"")},Object(c.g)("sb-bar-destination",{key:"5cae8d0e0a714851e4f370b13e06e2be59bc3ee8",class:"sb-item sb-destination"+(this.minimal?" hidden":""),onCompactSearch:this.onCompactSearch.bind(this),offerType:this.offerType,compact:this.compact,minimal:this.minimal,onDismiss:()=>this.isDestinationDismissed=!0,isInvalid:this.compact?this.isInval("destination"):!this.isDestinationDismissed&&this.isInvalidControl("destination"),skipValidation:this.shouldSetValidation}),Object(c.g)("sb-bar-departure",{key:"2405a21b4481457ae51224980bcede3c2cc05bd4",class:"sb-item sb-departure"+(this.isPackagesSearch?"":" hidden"),compact:this.compact,minimal:this.minimal,onCancel:()=>this.isDepartureDismissed=!1,onDismiss:()=>this.isDepartureDismissed=!0,onCompactSearch:this.onCompactSearch.bind(this),isInvalid:this.compact?this.isInval("departure"):!this.isDepartureDismissed&&this.isInvalidControl("departure"),skipValidation:this.shouldSetValidation}),Object(c.g)("sb-bar-date",{key:"4065f4dd6e777d9e3edc48897f4034044267fe4d",class:"sb-item sb-date",onCompactSearch:this.onCompactSearch.bind(this),onShowError:this.checkError.bind(this),compact:this.compact,minimal:this.minimal,dateRange:this.shouldSetValidation&&this._dates,onDismiss:()=>this.isDateDismissed=!0,skipValidation:this.shouldSetValidation,isInvalid:this.compact?this.isInval("date"):!this.isDateDismissed&&this.isInvalidControl("date")}),Object(c.g)("sb-bar-duration",{key:"2f866a16437033b4c4a9ac45946655b07dc793cf",class:"sb-item sb-duration",onCompactSearch:this.onCompactSearch.bind(this),compact:this.compact,minimal:this.minimal,skipValidation:this.shouldSetValidation}),Object(c.g)("sb-bar-pax",{key:"710c4ade8a24b0df95cd5de9404b849e0ae8811f",class:"sb-item sb-pax",onCompactSearch:this.onCompactSearch.bind(this),onSearch:this.onSearchFromDropdown.bind(this),compact:this.compact,minimal:this.minimal}),this.minimal&&this.showError&&Object(c.g)("sb-notification-dialog",{class:"bar-error minimal",inline:!0},Object(c.g)("div",{slot:"message"},this.errorMsg),Object(c.g)("div",{slot:"action-1",onClick:this.handleCloseError.bind(this)},"Sluit")),!this.compact&&Object(c.g)("button",{class:"search-button",tabindex:"0",onClick:this.onSearch.bind(this),disabled:this.isLoading},this.isLoading?Object(c.g)("sb-spinner-circle",{circle:this.minimal?16:24,bullet:2}):this.minimal?[Object(c.g)("span",{class:"search-button-text--minimal-short"},"Zoek"),Object(c.g)("span",{class:"search-button-text--minimal-long"},"Controleer beschikbaarheid")]:Object(c.g)("span",{class:"search-button-text"},"Zoek"))),!this.minimal&&this.showError&&Object(c.g)("sb-notification-dialog",{class:"bar-error",inline:!0},Object(c.g)("div",{slot:"message"},this.errorMsg),Object(c.g)("div",{slot:"action-1",onClick:this.handleCloseError.bind(this)},"Sluit")))}isInvalidControl(e){return this.showError&&this.isInval(e)}isInval(e){const t=this.form.getControlByName(e);return this.isInvalid&&t&&!t.isValid()}checkError({detail:e}){this.showError=!1,this.errorMsg="",this.isDepartureDismissed=!1,this.isDestinationDismissed=!1,this.isDateDismissed=!1,this.errorMsg=e,this.showError=!!this.errorMsg}setupForm(){const e=new mi,t=[];return this.lite||t.push("date"),this.lite&&!this.isDateSelected||!this.isPackagesSearch||t.push("departure"),this.lite&&!this.isDateSelected||this.minimal||t.push("destination"),e.addControls(t.map(e=>new ui(e))),e.controls.forEach(e=>{return e.addValidator((t=`voordat u gaat zoeken a.u.b. ${e.name} voordat u gaat zoeken a.u.b.`,e=>e&&e.length?null:{required:t}));var t}),e}componentDidLoad(){setTimeout(()=>{this.form=this.setupForm(),this.updateFormInputs()})}componentWillLoad(){var e;this.onOfferTypeChanged(this.offerType,this.offerType),Xe(e=>{const t=!!e.departure,s=this.lite&&this.isDateSelected!==t;this.isDateSelected=t,s&&(this.form=this.setupForm())},{emitInitial:!0}),Ye(()=>{if(this.updateFormInputs(),this.form.isValid())return this.showError=!!(this.errorMsg="")}),ct(e=>{this.isLoading=e}),e=e=>{this.searchUrl!==e&&(this.searchUrl=e)},dt(t=>e(null==t?void 0:t.url))}onCompactSearch(){this.compact&&this.onSearch()}onSearch(){const e=Vt.validate();this.showError=!1,this.errorMsg="",this.isDepartureDismissed=!1,this.isDestinationDismissed=!1,this.isDateDismissed=!1,this.form.checkValidation(),this.showError=!this.form.isValid();const t=!e||this.showError;if(this.showError&&(this.errorMsg=this.getValidationMessage()),e||nt.openSection(Re.OCCUPATION),t)return;Vt.applyPax(),Vt.isDirty$.next(!1);const s=Ge(te.searchOptions.url,te.requestOptions,te.facetsOptions,te.lastAppliedFacetsParam);this.saveSearch(s),this.search.emit(s)}onSearchFromDropdown(e){null==e||e.stopPropagation(),this.onSearch()}handleCloseError(){this.showError=!1}saveSearch(e){const t=((e,t)=>{const{destinations:s,accommodation:i,departureAirports:n,durations:o,pax:a,departure:r,budget:c,preOffset:l,postOffset:d,destinationQuery:h,market:p,locale:b}=e,{destinations:u,departureAirports:m}=t;return{destination:null==s?void 0:s.filter(Boolean),destinationExtended:null==s?void 0:s.filter(Boolean).map(e=>{const t=u.find(t=>t.id===e);return{id:e,name:(null==t?void 0:t.name)||""}}),accommodation:i,accommodationExtended:null==u?void 0:u.filter(e=>e.id===i).map(e=>({id:e.id,name:e.name}))[0],airport:null==n?void 0:n.filter(Boolean),airportExtended:null==n?void 0:n.filter(Boolean).map(e=>{const t=m.find(t=>t.code===e);return{code:e,name:(null==t?void 0:t.name)||""}}),duration:o,occupation:a,departure:r,budget:c,preOffset:l,postOffset:d,destinationQuery:h,market:p,locale:b}})(te.requestOptions,te.searchOptions);if(_e.saveSearch(t),e&&(!this.compact||!te.requestOptions.accommodation)){const t=pi(te.requestOptions,te.searchOptions,e,re.bestMatchGoingTo);t&&_e.saveRecentSearch(t,this.offerType)}}getValidationMessage(){var e;const t=this.minimal||this.form.getControlByName("destination").isValid(),s=!this.isPackagesSearch||(null===(e=this.form.getControlByName("departure"))||void 0===e?void 0:e.isValid()),i=this.lite||this.form.getControlByName("date").isValid();let n="";return t||s||i?t||s?t||i?t?s||i?s?i||(n=Ee):n=Se:n=$e:n=ke:n=ye:n=we:n=xe,n}getValidDeparture(e){return te.global.isDeparturePristine&&te.requestOptions.departure?e===m.PACKAGES?z:B:te.requestOptions.departure}updateFormInputs(){const e=te.requestOptions.accommodation?[te.requestOptions.accommodation]:te.requestOptions.destinations,t=te.requestOptions.departure?[te.requestOptions.departure]:[];this.form.updateControl("destination",e.map(e=>e.toString())),this.form.updateControl("departure",te.requestOptions.departureAirports.map(e=>e.toString())),this.form.updateControl("date",t),this.isInvalid=!this.form.isValid()}static get watchers(){return{offerType:["onOfferTypeChanged"]}}static get style(){return'.sc-sb-packages-bar-h{display:flex;align-items:stretch;flex-direction:column;padding:16px;border:1px solid transparent;border-radius:8px;background:#fff}@media (min-width: 1200px){.sc-sb-packages-bar-h{border-radius:16px}}@media (min-width: 768px){.sb-minimal.sc-sb-packages-bar-h{border-radius:8px}}.sb-minimal.sc-sb-packages-bar-h .search-button.sc-sb-packages-bar{font-size:16px;line-height:16px;font-weight:600;font-family:"Source Sans Pro", arial, sans-serif;letter-spacing:0.8px;margin:0;text-transform:uppercase;width:100%;height:40px}@media (min-width: 768px){.sb-minimal.sc-sb-packages-bar-h .search-button-icon.sc-sb-packages-bar{display:none}}@media (min-width: 768px){.sb-minimal.sc-sb-packages-bar-h .search-button-text--minimal-short.sc-sb-packages-bar{display:none}}.sb-minimal.sc-sb-packages-bar-h .search-button-text--minimal-long.sc-sb-packages-bar{display:none}@media (min-width: 768px){.sb-minimal.sc-sb-packages-bar-h .search-button-text--minimal-long.sc-sb-packages-bar{display:block}}.sb-compact.sc-sb-packages-bar-h .sb-date.sc-sb-packages-bar{min-width:auto}.sb-wrapper.sc-sb-packages-bar{display:flex;justify-content:space-between;position:relative;flex-direction:row;flex-wrap:wrap;grid-gap:16px 8px}@media (min-width: 1200px){.sb-wrapper.sc-sb-packages-bar{flex-wrap:nowrap}}.sb-wrapper--small.sc-sb-packages-bar{flex-wrap:wrap}.sb-wrapper--small.sc-sb-packages-bar .sb-item.sc-sb-packages-bar{flex:auto;width:50%;margin:0}.sb-wrapper--small.sc-sb-packages-bar .sb-destination.sc-sb-packages-bar,.sb-wrapper--small.sc-sb-packages-bar .sb-departure.sc-sb-packages-bar{min-width:100%}.sb-wrapper--small.sc-sb-packages-bar .sb-date.sc-sb-packages-bar,.sb-wrapper--small.sc-sb-packages-bar .sb-duration.sc-sb-packages-bar{flex:1}.sb-wrapper.sc-sb-packages-bar .hidden.sc-sb-packages-bar{display:none}.sb-item.sc-sb-packages-bar{display:flex;width:100%;flex:1}@media (min-width: 1200px){.sb-item.sc-sb-packages-bar{flex:0;width:auto}}.sb-destination.sc-sb-packages-bar,.sb-departure.sc-sb-packages-bar{min-width:100%}@media (min-width: 1200px){.sb-destination.sc-sb-packages-bar,.sb-departure.sc-sb-packages-bar{min-width:0;flex:1}}.sb-date.sc-sb-packages-bar{min-width:174px}.sb-duration.sc-sb-packages-bar{min-width:110px}.sb-pax.sc-sb-packages-bar{min-width:100%}@media (min-width: 1200px){.sb-pax.sc-sb-packages-bar{min-width:174px}}.search-button.sc-sb-packages-bar{font-size:22px;line-height:30px;font-weight:600;font-family:"Source Sans Pro", arial, sans-serif;letter-spacing:1.2px;margin:0;text-transform:uppercase;font-style:normal;letter-spacing:1.2px;text-transform:uppercase;box-shadow:0 0 0 0 rgba(0, 0, 0, 0.2), 0 0 0 0 rgba(0, 0, 0, 0.14), 0 0 0 0 rgba(0, 0, 0, 0.12);user-select:none;cursor:pointer;outline:none;border:0;width:100%;font-size:18px;line-height:18px;font-weight:600;font-family:"Source Sans Pro", arial, sans-serif;letter-spacing:normal;margin:0;text-transform:uppercase;height:48px;border-radius:27px;width:100%;padding:0 16px;background-color:#d74113;color:#fff}.search-button.sc-sb-packages-bar:focus{box-shadow:0 0 0 4px #f6c8ba;outline-offset:4px}@media (min-width: 1200px){.search-button.sc-sb-packages-bar{width:100px;height:auto}}.bar-error.sc-sb-packages-bar{min-width:100%}.bar-error.sc-sb-packages-bar:not(.minimal){margin-top:16px}'}},[2,"sb-packages-bar",{offerType:[2,"offer-type"],compact:[4],minimal:[4],lite:[4],skipValidation:[4,"skip-validation"],errorMsg:[32],isLoading:[32],isDestinationDismissed:[32],isDepartureDismissed:[32],isDateDismissed:[32],isDateSelected:[32],isInvalid:[32],showError:[32]},void 0,{offerType:["onOfferTypeChanged"]}]);function fi(){if("undefined"==typeof customElements)return;["sb-packages-bar","sb-alt-duration-notif","sb-bar-date","sb-bar-date-dropdown","sb-bar-departure","sb-bar-departure-dropdown","sb-bar-destination","sb-bar-destination-best-match-dropdown","sb-bar-destination-dropdown","sb-bar-duration","sb-bar-duration-dropdown","sb-bar-pax","sb-bar-pax-dropdown","sb-checkbox","sb-checkbox-item","sb-chip-list","sb-custom-select","sb-custom-select-option","sb-date-flexibility","sb-date-picker","sb-date-picker-list","sb-destination-checkbox-item","sb-destination-hotel-item","sb-duration-options","sb-list-divider","sb-max-departure-notification","sb-month-picker","sb-more-durations-info","sb-notification-dialog","sb-notification-text","sb-overlay-dropdown","sb-overlay-emitter","sb-pax-room","sb-pax-selection","sb-pax-stepper","sb-place-search-link","sb-radio-button","sb-recent-searches","sb-spinner-circle","sb-spinner-underlay","sb-status-input","sb-stop-sale-notification","sb-svg-icon","sb-text-switch","sb-year-picker"].forEach(e=>{switch(e){case"sb-packages-bar":customElements.get(e)||customElements.define(e,gi);break;case"sb-alt-duration-notif":customElements.get(e)||qt();break;case"sb-bar-date":customElements.get(e)||ps();break;case"sb-bar-date-dropdown":customElements.get(e)||as();break;case"sb-bar-departure":customElements.get(e)||js();break;case"sb-bar-departure-dropdown":customElements.get(e)||Ds();break;case"sb-bar-destination":customElements.get(e)||Ks();break;case"sb-bar-destination-best-match-dropdown":customElements.get(e)||zs();break;case"sb-bar-destination-dropdown":customElements.get(e)||Qs();break;case"sb-bar-duration":customElements.get(e)||ri();break;case"sb-bar-duration-dropdown":customElements.get(e)||oi();break;case"sb-bar-pax":customElements.get(e)||li();break;case"sb-bar-pax-dropdown":customElements.get(e)||Ht();break;case"sb-checkbox":customElements.get(e)||ms();break;case"sb-checkbox-item":customElements.get(e)||fs();break;case"sb-chip-list":customElements.get(e)||xs();break;case"sb-custom-select":customElements.get(e)||vt();break;case"sb-custom-select-option":customElements.get(e)||yt();break;case"sb-date-flexibility":customElements.get(e)||Ut();break;case"sb-date-picker":customElements.get(e)||es();break;case"sb-date-picker-list":customElements.get(e)||Yt();break;case"sb-destination-checkbox-item":customElements.get(e)||Ns();break;case"sb-destination-hotel-item":customElements.get(e)||Vs();break;case"sb-duration-options":customElements.get(e)||Js();break;case"sb-list-divider":customElements.get(e)||kt();break;case"sb-max-departure-notification":customElements.get(e)||Os();break;case"sb-month-picker":customElements.get(e)||ss();break;case"sb-more-durations-info":customElements.get(e)||ti();break;case"sb-notification-dialog":customElements.get(e)||ws();break;case"sb-notification-text":customElements.get(e)||$t();break;case"sb-overlay-dropdown":customElements.get(e)||Tt();break;case"sb-overlay-emitter":customElements.get(e)||cs();break;case"sb-pax-room":customElements.get(e)||Rt();break;case"sb-pax-selection":customElements.get(e)||Pt();break;case"sb-pax-stepper":customElements.get(e)||Mt();break;case"sb-place-search-link":customElements.get(e)||qs();break;case"sb-radio-button":customElements.get(e)||Wt();break;case"sb-recent-searches":customElements.get(e)||qe();break;case"sb-spinner-circle":customElements.get(e)||Dt();break;case"sb-spinner-underlay":customElements.get(e)||Ct();break;case"sb-status-input":customElements.get(e)||ds();break;case"sb-stop-sale-notification":customElements.get(e)||Hs();break;case"sb-svg-icon":customElements.get(e)||ue();break;case"sb-text-switch":customElements.get(e)||ns();break;case"sb-year-picker":customElements.get(e)||Xt()}})}fi();const vi=new class{pushToAnalytics(e){O.pushToDataLayer(e)}};const xi=new class{constructor(){var e;e=e=>{e||this.search()},ee.onChange("isBarPristine",e),Ye(g(function(e){let t;return function(s){e(t,s),t=s}}((e,t)=>{ee.state.isBarPristine||e&&t&&Ke(e,t)||this.search()}),0))}search(){ee.state.global=Object.assign(Object.assign({},ee.state.global),{isQuickSearchLoading:!0});const e=Y(ee.state.requestOptions);ve.getQuickSearchLite(e).then(t=>{var s,i;t&&(ee.state.searchOptions=Object.assign(Object.assign(Object.assign({},ee.state.searchOptions),t),{destinations:null!==(i=null===(s=t.destinations)||void 0===s?void 0:s.filter(e=>!!e.name))&&void 0!==i?i:[]})),ee.state.global=Object.assign(Object.assign({},ee.state.global),{isQuickSearchLoading:!1,searchOptionsLoaded:!0}),ee.state.analytics=function(e,t){var s,i;const n=(null==e?void 0:e.accommodation)?[e.accommodation]:(null==e?void 0:e.destinations)||[],o=(null==t?void 0:t.destinations.filter(e=>n.includes(e.id)).map(e=>e.name).join("|"))||"Any",a=(null===(s=null==t?void 0:t.departureAirports)||void 0===s?void 0:s.filter(t=>{var s;return null===(s=e.departureAirports)||void 0===s?void 0:s.includes(t.code)}).map(e=>e.name).join("|"))||"Any",r=new Date(e.departure),c=isNaN(r.getTime())?"Any":r.toLocaleString("default",{month:"long"}),l=L(e.pax);return{id:Q.gtmAttributes,event:W.updatePageData,data:Object.assign({departureAirport:e.offerType===m.PACKAGES?a:"HOTEL ONLY",destination:o,departureMonth:c,departureDate:e.departure||"Any",duration:null===(i=e.durations[0])||void 0===i?void 0:i.toString()},{paxAdult:j(l),paxChild:A(l),paxInfant:C(l),paxTotal:T(l)})}}(e,ee.state.searchOptions)})}},yi=Object(c.h)(class extends c.b{reInitContext(){this.initSearch()}constructor(){super(),this.__registerHost(),this.adapter=xi,this.tabs=[{id:H.FLIGHT_HOTEL,name:"Vakanties"},{id:H.HOTEL,name:"Hotel only"}],this.context=void 0,this.minimal=void 0,this.activeTab=void 0,this.establishSession()}onSearch(e){const t=e.detail;t&&O.navigate(t)}render(){return Object(c.g)(c.c,{key:"0a77c8d364f4bfa1f2e3edab8ad8aaf9a4d0472b",id:"sb-connector",class:{"sb-minimal":this.minimal}},Object(c.g)("div",{key:"ded66044c83547b7dbcaec2bc25b2ffd49b1244d",class:{"tabs-wrapper":!0,"minimal-width":!re.searchBarTabs}},Object(c.g)("ul",{key:"01dc2f8133a29639393a6bc3cd04072df7511990",class:"tabs"},this.tabs.map(e=>Object(c.g)("li",{id:e.id,class:{tab:!0,active:this.activeTab===e.id}},Object(c.g)("button",{class:"tab-button",onClick:()=>this.openTab(e.id),tabindex:"0"},e.name),Object(c.g)("span",{class:"tab-underline"}))))),Object(c.g)("div",{key:"fc8f7bdd1f61b0268658ae20c63a94ee1a16cfe5",class:"tab-content"},Object(c.g)("sb-packages-bar",{key:"be5632bd913b898067a0df3383475be6729ef69c",offerType:this.offerType,minimal:this.minimal,skipValidation:!0,lite:!0,onSearch:this.onSearch.bind(this)})))}componentWillLoad(){this.checkAppContext(),this.initTabsFromParams(),this.context&&this.initSearch(),this.initAnalytics()}initSearch(){var e,t,s;const{market:i}=te.requestOptions,n=this.minimal?null:function(e){var t;const s=Fe("sb-recent-facets");return null!==(t=null==s?void 0:s[e])&&void 0!==t?t:null}(i);te.requestOptions=Object.assign(Object.assign({},te.requestOptions),{destinationQuery:""});const o=(null===(e=this.context)||void 0===e?void 0:e.accommodationExtended)?{id:this.context.accommodationExtended.id,name:this.context.accommodationExtended.name,count:"1",type:4}:null,a=(null===(t=this.context)||void 0===t?void 0:t.destinationExtended)?this.context.destinationExtended.map(e=>({id:e.id,name:e.name,count:"1",type:1})):[],r=(null===(s=this.context)||void 0===s?void 0:s.airportExtended)?this.context.airportExtended.map(e=>({code:e.code,name:e.name,isGroup:e.code.includes(","),count:"1"})):[];te.searchOptions=Object.assign(Object.assign({},te.searchOptions),{departureAirports:r,destinations:o?[o]:a});const{requestOptions:c=null,facetsOptions:l=null}=this.context?(e=>{const{destinationExtended:t,airportExtended:s,accommodationExtended:i}=e,n=di(e,["destinationExtended","airportExtended","accommodationExtended"]),o=Object.assign(Object.assign(Object.assign(Object.assign({},n),t?{destination:t.map(e=>e.id)}:{destination:[]}),s?{airport:s.map(e=>e.code)}:{airport:[]}),i?{accommodation:i.id}:{accommodation:null});return hi(o,!0)})(this.context):{};this.setContext(c,l,n)}initTabsFromParams(){const e=_.getQueryParam("sp-opened-tab");this.activeTab=e&&this.tabs.findIndex(t=>t.id===e)>-1?e:H.FLIGHT_HOTEL,this.offerType=this.getOfferType()}initAnalytics(){var e;e=e=>{vi.pushToAnalytics(e)},ee.onChange("analytics",e)}getOfferType(){return this.activeTab===H.FLIGHT_HOTEL?m.PACKAGES:m.HOTELS}openTab(e){this.activeTab=e,this.offerType=this.getOfferType(),O.scrollIntoViewPort("#"+e,{behavior:"smooth",block:"nearest",inline:"center"}),_.saveQueryParam("sp-opened-tab",e)}setContext(e,t,s){te.requestOptions=Object.assign(Object.assign({},te.requestOptions),e),te.facetsOptions=Object.assign(Object.assign({},te.facetsOptions),t),te.lastAppliedFacetsParam=s,te.global.isDeparturePristine=!(null==e?void 0:e.departure)}establishSession(){le.establishSession()}checkAppContext(){te.global.isVideoApp=navigator.userAgent.includes("TCUKvideoapp")||window.location.search.includes("channel=app")}get connectorRef(){return this}static get watchers(){return{context:["reInitContext"]}}static get style(){return'.locked.sc-sb-cms-lite-connector-h{position:relative;z-index:1200}.locked.sc-sb-cms-lite-connector-h>*.sc-sb-cms-lite-connector{position:relative;z-index:1205}.locked.sc-sb-cms-lite-connector-h::after{content:" ";position:fixed;top:0;left:0;width:100%;height:100%;z-index:1200}.sc-sb-cms-lite-connector-h{display:block}@media (min-width: 768px){.sb-minimal.sc-sb-cms-lite-connector-h .tabs-wrapper.sc-sb-cms-lite-connector{width:auto}}.sb-minimal.sc-sb-cms-lite-connector-h .tabs-wrapper.sc-sb-cms-lite-connector .tabs.sc-sb-cms-lite-connector{justify-content:center}@media (min-width: 768px){.sb-minimal.sc-sb-cms-lite-connector-h .tab-button.sc-sb-cms-lite-connector{font-size:16px;line-height:24px;font-weight:900;font-family:"Source Sans Pro", arial, sans-serif;letter-spacing:normal;margin:0}}.tabs-wrapper.sc-sb-cms-lite-connector{background:transparent;border-radius:11px 11px 0 0;overflow-y:hidden}@media (min-width: 768px){.tabs-wrapper.sc-sb-cms-lite-connector{width:calc(100% - 24px)}.tabs-wrapper.minimal-width.sc-sb-cms-lite-connector{width:300px}}.tabs-wrapper.minimal-width.sc-sb-cms-lite-connector{width:auto}.tabs-wrapper.sc-sb-cms-lite-connector .tabs.sc-sb-cms-lite-connector{display:flex;list-style:none;justify-content:center;margin:0;overflow:auto;padding:0 16px;grid-gap:32px}@media (min-width: 768px){.tabs-wrapper.sc-sb-cms-lite-connector .tabs.sc-sb-cms-lite-connector{justify-content:flex-start;grid-gap:16px}}.tab.sc-sb-cms-lite-connector{flex-shrink:0;font-weight:900;height:100%;position:relative}.tab.active.sc-sb-cms-lite-connector .tab-button.sc-sb-cms-lite-connector{color:#262626}.tab.active.sc-sb-cms-lite-connector .tab-underline.sc-sb-cms-lite-connector{display:block}.tab-button.sc-sb-cms-lite-connector{font-size:16px;line-height:24px;font-weight:900;font-family:"Source Sans Pro", arial, sans-serif;letter-spacing:normal;margin:0;display:flex;flex-flow:column;height:100%;letter-spacing:normal;line-height:20px;margin:0;outline:none;padding:12px 0;align-items:center;background:none;border:0;cursor:pointer;font-size:16px;line-height:24px;font-weight:900;font-family:"Source Sans Pro", arial, sans-serif;letter-spacing:normal;margin:0;color:#757575}.tab-button.sc-sb-cms-lite-connector:focus{outline:thin dotted;outline-color:#000}@media (min-width: 768px){.tab-button.sc-sb-cms-lite-connector{font-size:16px;line-height:24px;font-weight:900;font-family:"Source Sans Pro", arial, sans-serif;letter-spacing:normal;margin:0;display:flex;flex-flow:column;height:100%;letter-spacing:normal;line-height:20px;margin:0;outline:none;padding:12px 0;align-items:center;background:none;border:0;cursor:pointer}}.tab-underline.sc-sb-cms-lite-connector{position:absolute;display:none;background:#d74113;border-radius:3px;height:5px;bottom:0;width:100%;left:0}.tab-content.sc-sb-cms-lite-connector{background:#fff;border-radius:11px;display:block;position:relative;max-width:1208px}'}},[2,"sb-cms-lite-connector",{context:[16],minimal:[4],activeTab:[32]},void 0,{context:["reInitContext"]}]);function wi(){if("undefined"==typeof customElements)return;["sb-cms-lite-connector","sb-alt-duration-notif","sb-bar-date","sb-bar-date-dropdown","sb-bar-departure","sb-bar-departure-dropdown","sb-bar-destination","sb-bar-destination-best-match-dropdown","sb-bar-destination-dropdown","sb-bar-duration","sb-bar-duration-dropdown","sb-bar-pax","sb-bar-pax-dropdown","sb-checkbox","sb-checkbox-item","sb-chip-list","sb-custom-select","sb-custom-select-option","sb-date-flexibility","sb-date-picker","sb-date-picker-list","sb-destination-checkbox-item","sb-destination-hotel-item","sb-duration-options","sb-list-divider","sb-max-departure-notification","sb-month-picker","sb-more-durations-info","sb-notification-dialog","sb-notification-text","sb-overlay-dropdown","sb-overlay-emitter","sb-packages-bar","sb-pax-room","sb-pax-selection","sb-pax-stepper","sb-place-search-link","sb-radio-button","sb-recent-searches","sb-spinner-circle","sb-spinner-underlay","sb-status-input","sb-stop-sale-notification","sb-svg-icon","sb-text-switch","sb-year-picker"].forEach(e=>{switch(e){case"sb-cms-lite-connector":customElements.get(e)||customElements.define(e,yi);break;case"sb-alt-duration-notif":customElements.get(e)||qt();break;case"sb-bar-date":customElements.get(e)||ps();break;case"sb-bar-date-dropdown":customElements.get(e)||as();break;case"sb-bar-departure":customElements.get(e)||js();break;case"sb-bar-departure-dropdown":customElements.get(e)||Ds();break;case"sb-bar-destination":customElements.get(e)||Ks();break;case"sb-bar-destination-best-match-dropdown":customElements.get(e)||zs();break;case"sb-bar-destination-dropdown":customElements.get(e)||Qs();break;case"sb-bar-duration":customElements.get(e)||ri();break;case"sb-bar-duration-dropdown":customElements.get(e)||oi();break;case"sb-bar-pax":customElements.get(e)||li();break;case"sb-bar-pax-dropdown":customElements.get(e)||Ht();break;case"sb-checkbox":customElements.get(e)||ms();break;case"sb-checkbox-item":customElements.get(e)||fs();break;case"sb-chip-list":customElements.get(e)||xs();break;case"sb-custom-select":customElements.get(e)||vt();break;case"sb-custom-select-option":customElements.get(e)||yt();break;case"sb-date-flexibility":customElements.get(e)||Ut();break;case"sb-date-picker":customElements.get(e)||es();break;case"sb-date-picker-list":customElements.get(e)||Yt();break;case"sb-destination-checkbox-item":customElements.get(e)||Ns();break;case"sb-destination-hotel-item":customElements.get(e)||Vs();break;case"sb-duration-options":customElements.get(e)||Js();break;case"sb-list-divider":customElements.get(e)||kt();break;case"sb-max-departure-notification":customElements.get(e)||Os();break;case"sb-month-picker":customElements.get(e)||ss();break;case"sb-more-durations-info":customElements.get(e)||ti();break;case"sb-notification-dialog":customElements.get(e)||ws();break;case"sb-notification-text":customElements.get(e)||$t();break;case"sb-overlay-dropdown":customElements.get(e)||Tt();break;case"sb-overlay-emitter":customElements.get(e)||cs();break;case"sb-packages-bar":customElements.get(e)||fi();break;case"sb-pax-room":customElements.get(e)||Rt();break;case"sb-pax-selection":customElements.get(e)||Pt();break;case"sb-pax-stepper":customElements.get(e)||Mt();break;case"sb-place-search-link":customElements.get(e)||qs();break;case"sb-radio-button":customElements.get(e)||Wt();break;case"sb-recent-searches":customElements.get(e)||qe();break;case"sb-spinner-circle":customElements.get(e)||Dt();break;case"sb-spinner-underlay":customElements.get(e)||Ct();break;case"sb-status-input":customElements.get(e)||ds();break;case"sb-stop-sale-notification":customElements.get(e)||Hs();break;case"sb-svg-icon":customElements.get(e)||ue();break;case"sb-text-switch":customElements.get(e)||ns();break;case"sb-year-picker":customElements.get(e)||Xt()}})}wi()}});