@konnectio/core 4.0.52 → 4.0.53

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (64) hide show
  1. package/dist/{ActionField-4bd0b62c.js → ActionField-a8098e1b.js} +2 -2
  2. package/dist/ActionField-a8098e1b.js.br +0 -0
  3. package/dist/{ActionField-7bfa21a3.cjs → ActionField-c57dc826.cjs} +1 -1
  4. package/dist/{AvailabilitySkeleton-f4a3aa9d.js → AvailabilitySkeleton-00e9ed20.js} +5 -5
  5. package/dist/AvailabilitySkeleton-00e9ed20.js.br +0 -0
  6. package/dist/{AvailabilitySkeleton-7ee2b815.cjs → AvailabilitySkeleton-1689ccd0.cjs} +1 -1
  7. package/dist/{CheckoutWindow-88c61aa9.js → CheckoutWindow-ca95e6f3.js} +1 -1
  8. package/dist/CheckoutWindow-ca95e6f3.js.br +0 -0
  9. package/dist/{CheckoutWindow-1edd3e11.cjs → CheckoutWindow-f9cd7561.cjs} +1 -1
  10. package/dist/{Container-22fc9721.cjs → Container-0b6c4829.cjs} +1 -1
  11. package/dist/{Container-f2af0c1b.js → Container-b2931bf7.js} +1 -1
  12. package/dist/Container-b2931bf7.js.br +0 -0
  13. package/dist/{DateField.vue_vue_type_style_index_0_lang-6268733b.js → DateField.vue_vue_type_style_index_0_lang-20478ecc.js} +1 -1
  14. package/dist/DateField.vue_vue_type_style_index_0_lang-20478ecc.js.br +0 -0
  15. package/dist/{DateField.vue_vue_type_style_index_0_lang-68a02fd2.cjs → DateField.vue_vue_type_style_index_0_lang-47f53da2.cjs} +1 -1
  16. package/dist/{Field-3d735db5.cjs → Field-4d35e324.cjs} +1 -1
  17. package/dist/{Field-8d12a118.js → Field-b0f63dbd.js} +2 -2
  18. package/dist/Field-b0f63dbd.js.br +0 -0
  19. package/dist/{NumberField.vue_vue_type_script_setup_true_lang-72e40888.cjs → NumberField.vue_vue_type_script_setup_true_lang-1a214c17.cjs} +1 -1
  20. package/dist/{NumberField.vue_vue_type_script_setup_true_lang-8805ce66.js → NumberField.vue_vue_type_script_setup_true_lang-b2e01b68.js} +1 -1
  21. package/dist/NumberField.vue_vue_type_script_setup_true_lang-b2e01b68.js.br +0 -0
  22. package/dist/{SelectField.vue_vue_type_style_index_0_lang-66ac7611.js → SelectField.vue_vue_type_style_index_0_lang-6a191855.js} +8 -8
  23. package/dist/SelectField.vue_vue_type_style_index_0_lang-6a191855.js.br +0 -0
  24. package/dist/{SelectField.vue_vue_type_style_index_0_lang-581db34f.cjs → SelectField.vue_vue_type_style_index_0_lang-f4c7c28a.cjs} +2 -2
  25. package/dist/{ThankYou-c79518b0.cjs → ThankYou-5d34bf4e.cjs} +2 -2
  26. package/dist/{ThankYou-8df7fca1.js → ThankYou-acd605eb.js} +6 -6
  27. package/dist/ThankYou-acd605eb.js.br +0 -0
  28. package/dist/{_-f0eb6d3a.js → _-3d23ad37.js} +1 -1
  29. package/dist/{_-cfd918d7.cjs → _-8f85509a.cjs} +1 -1
  30. package/dist/availability.cjs +1 -1
  31. package/dist/availability.js +8 -8
  32. package/dist/availability.js.br +0 -0
  33. package/dist/components/forms/ReservationForm.vue.d.ts +1 -1
  34. package/dist/{event-181ae635.cjs → event-05a2242f.cjs} +1 -1
  35. package/dist/{event-4c7c6011.js → event-3389dfd0.js} +7 -7
  36. package/dist/event-3389dfd0.js.br +0 -0
  37. package/dist/event.cjs +1 -1
  38. package/dist/event.js +8 -8
  39. package/dist/event.js.br +0 -0
  40. package/dist/gift-card-validation.cjs +1 -1
  41. package/dist/gift-card-validation.js +4 -4
  42. package/dist/gift-card-validation.js.br +0 -0
  43. package/dist/gift-card.cjs +1 -1
  44. package/dist/gift-card.js +6 -6
  45. package/dist/gift-card.js.br +0 -0
  46. package/dist/hotel.cjs +1 -1
  47. package/dist/hotel.js +10 -10
  48. package/dist/hotel.js.br +0 -0
  49. package/dist/polyfill.cjs +2 -2
  50. package/dist/polyfill.js +1 -1
  51. package/dist/polyfill.js.br +0 -0
  52. package/dist/style.css +1 -1
  53. package/dist/style.css.br +0 -0
  54. package/package.json +1 -1
  55. package/dist/ActionField-4bd0b62c.js.br +0 -0
  56. package/dist/AvailabilitySkeleton-f4a3aa9d.js.br +0 -0
  57. package/dist/CheckoutWindow-88c61aa9.js.br +0 -0
  58. package/dist/Container-f2af0c1b.js.br +0 -0
  59. package/dist/DateField.vue_vue_type_style_index_0_lang-6268733b.js.br +0 -0
  60. package/dist/Field-8d12a118.js.br +0 -0
  61. package/dist/NumberField.vue_vue_type_script_setup_true_lang-8805ce66.js.br +0 -0
  62. package/dist/SelectField.vue_vue_type_style_index_0_lang-66ac7611.js.br +0 -0
  63. package/dist/ThankYou-8df7fca1.js.br +0 -0
  64. package/dist/event-4c7c6011.js.br +0 -0
@@ -1 +1 @@
1
- "use strict";const e=require("./SelectField.vue_vue_type_style_index_0_lang-581db34f.cjs"),l=require("./_-cfd918d7.cjs"),o={key:0,class:"skeleton-field-label"},n={key:1},a=e.defineComponent({__name:"Field",props:{withIcon:{type:Boolean,default:!1},noLabel:{type:Boolean,default:!1},isTextArea:{type:Boolean,default:!1}},setup(i){return(t,c)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["skeleton-field",{"is-text-area":t.isTextArea}])},[t.noLabel?(e.openBlock(),e.createElementBlock("div",n)):(e.openBlock(),e.createElementBlock("div",o,[t.withIcon?(e.openBlock(),e.createBlock(l.Element,{key:0,height:"15px",width:"15px"})):e.createCommentVNode("",!0),e.createVNode(l.Element,{height:"15px",width:"30%"})])),e.createVNode(l.Element,{height:t.isTextArea?"82px":"44px",width:"100%","border-radius":"6px"},null,8,["height"])],2))}});const s=e._export_sfc(a,[["__scopeId","data-v-d3ba4545"]]);exports.Field=s;
1
+ "use strict";const e=require("./SelectField.vue_vue_type_style_index_0_lang-f4c7c28a.cjs"),l=require("./_-8f85509a.cjs"),o={key:0,class:"skeleton-field-label"},n={key:1},a=e.defineComponent({__name:"Field",props:{withIcon:{type:Boolean,default:!1},noLabel:{type:Boolean,default:!1},isTextArea:{type:Boolean,default:!1}},setup(i){return(t,c)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["skeleton-field",{"is-text-area":t.isTextArea}])},[t.noLabel?(e.openBlock(),e.createElementBlock("div",n)):(e.openBlock(),e.createElementBlock("div",o,[t.withIcon?(e.openBlock(),e.createBlock(l.Element,{key:0,height:"15px",width:"15px"})):e.createCommentVNode("",!0),e.createVNode(l.Element,{height:"15px",width:"30%"})])),e.createVNode(l.Element,{height:t.isTextArea?"82px":"44px",width:"100%","border-radius":"6px"},null,8,["height"])],2))}});const s=e._export_sfc(a,[["__scopeId","data-v-d3ba4545"]]);exports.Field=s;
@@ -1,5 +1,5 @@
1
- import { k as l, m as t, v as a, n as i, x as n, p as o, y as d, _ as r } from "./SelectField.vue_vue_type_style_index_0_lang-66ac7611.js";
2
- import { E as s } from "./_-f0eb6d3a.js";
1
+ import { k as l, m as t, v as a, n as i, x as n, p as o, y as d, _ as r } from "./SelectField.vue_vue_type_style_index_0_lang-6a191855.js";
2
+ import { E as s } from "./_-3d23ad37.js";
3
3
  const p = {
4
4
  key: 0,
5
5
  class: "skeleton-field-label"
Binary file
@@ -1 +1 @@
1
- "use strict";const l=require("./SelectField.vue_vue_type_style_index_0_lang-581db34f.cjs"),u=l.defineComponent({__name:"NumberField",props:{modelValue:{default:0},minValue:{default:0},maxValue:{default:1/0},inputtable:{type:Boolean,default:!0},label:{},placeholder:{},icon:{},iconColor:{},iconType:{default:"fal"},iconPlacement:{},step:{default:1},controls:{type:Boolean,default:!0},required:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},inline:{type:Boolean,default:!1},id:{},rounded:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},small:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(d,{emit:i}){const t=i,n=d,o=n.id||l.ranId();function a(e){t("update:modelValue",e)}return l.onMounted(()=>{n.modelValue||a(n.minValue)}),(e,r)=>(l.openBlock(),l.createBlock(l.InputField,{label:e.label,id:l.unref(o),icon:e.icon,"icon-color":e.iconColor,"icon-type":e.iconType,"icon-placement":e.iconPlacement,required:e.required,type:e.small?"fresh-booking-number-picker small":"fresh-booking-number-picker",readonly:e.readonly},{default:l.withCtx(()=>[l.createVNode(l.unref(l.script),{attrs:{id:l.unref(o)},modelValue:e.modelValue,min:e.minValue,max:e.maxValue,step:e.step,inline:e.inline,controls:e.controls,placeholder:e.placeholder,readonly:e.readonly,inputtable:e.inputtable,rounded:e.rounded,disabled:e.disabled,"onUpdate:modelValue":a},null,8,["attrs","modelValue","min","max","step","inline","controls","placeholder","readonly","inputtable","rounded","disabled"])]),_:1},8,["label","id","icon","icon-color","icon-type","icon-placement","required","type","readonly"]))}});exports._sfc_main=u;
1
+ "use strict";const l=require("./SelectField.vue_vue_type_style_index_0_lang-f4c7c28a.cjs"),u=l.defineComponent({__name:"NumberField",props:{modelValue:{default:0},minValue:{default:0},maxValue:{default:1/0},inputtable:{type:Boolean,default:!0},label:{},placeholder:{},icon:{},iconColor:{},iconType:{default:"fal"},iconPlacement:{},step:{default:1},controls:{type:Boolean,default:!0},required:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},inline:{type:Boolean,default:!1},id:{},rounded:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},small:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(d,{emit:i}){const t=i,n=d,o=n.id||l.ranId();function a(e){t("update:modelValue",e)}return l.onMounted(()=>{n.modelValue||a(n.minValue)}),(e,r)=>(l.openBlock(),l.createBlock(l.InputField,{label:e.label,id:l.unref(o),icon:e.icon,"icon-color":e.iconColor,"icon-type":e.iconType,"icon-placement":e.iconPlacement,required:e.required,type:e.small?"fresh-booking-number-picker small":"fresh-booking-number-picker",readonly:e.readonly},{default:l.withCtx(()=>[l.createVNode(l.unref(l.script),{attrs:{id:l.unref(o)},modelValue:e.modelValue,min:e.minValue,max:e.maxValue,step:e.step,inline:e.inline,controls:e.controls,placeholder:e.placeholder,readonly:e.readonly,inputtable:e.inputtable,rounded:e.rounded,disabled:e.disabled,"onUpdate:modelValue":a},null,8,["attrs","modelValue","min","max","step","inline","controls","placeholder","readonly","inputtable","rounded","disabled"])]),_:1},8,["label","id","icon","icon-color","icon-type","icon-placement","required","type","readonly"]))}});exports._sfc_main=u;
@@ -1,4 +1,4 @@
1
- import { k as r, l as u, o as p, m as s, n as m, w as f, p as c, q as a, t as y, I as b } from "./SelectField.vue_vue_type_style_index_0_lang-66ac7611.js";
1
+ import { k as r, l as u, o as p, m as s, n as m, w as f, p as c, q as a, t as y, I as b } from "./SelectField.vue_vue_type_style_index_0_lang-6a191855.js";
2
2
  const h = /* @__PURE__ */ r({
3
3
  __name: "NumberField",
4
4
  props: {
@@ -15394,7 +15394,7 @@ const sw = ga("applyGiftCard", () => {
15394
15394
  headers: {
15395
15395
  Authorization: t.value,
15396
15396
  Accept: "application/json",
15397
- "Fresh-Booking-Ver": "4.0.52"
15397
+ "Fresh-Booking-Ver": "4.0.53"
15398
15398
  }
15399
15399
  }).then((d) => {
15400
15400
  const {
@@ -15672,7 +15672,7 @@ const sw = ga("applyGiftCard", () => {
15672
15672
  headers: {
15673
15673
  Authorization: y.value,
15674
15674
  Accept: "application/json",
15675
- "Fresh-Booking-Ver": "4.0.52"
15675
+ "Fresh-Booking-Ver": "4.0.53"
15676
15676
  }
15677
15677
  })).data;
15678
15678
  p.value = we;
@@ -15700,7 +15700,7 @@ const sw = ga("applyGiftCard", () => {
15700
15700
  headers: {
15701
15701
  Authorization: y.value,
15702
15702
  Accept: "application/json",
15703
- "Konnectio-Ver": "4.0.52"
15703
+ "Konnectio-Ver": "4.0.53"
15704
15704
  }
15705
15705
  });
15706
15706
  Pe.status !== 200 ? i({
@@ -15788,7 +15788,7 @@ const sw = ga("applyGiftCard", () => {
15788
15788
  headers: {
15789
15789
  Authorization: y.value,
15790
15790
  Accept: "application/json",
15791
- "Konnectio-Ver": "4.0.52"
15791
+ "Konnectio-Ver": "4.0.53"
15792
15792
  }
15793
15793
  }).then((we) => {
15794
15794
  Bt.value = !1;
@@ -15816,7 +15816,7 @@ const sw = ga("applyGiftCard", () => {
15816
15816
  headers: {
15817
15817
  Authorization: y.value,
15818
15818
  Accept: "application/json",
15819
- "Konnectio-Ver": "4.0.52"
15819
+ "Konnectio-Ver": "4.0.53"
15820
15820
  }
15821
15821
  }).then((Pe) => {
15822
15822
  P.value = !1, S.value = !1, t.pay({
@@ -16237,7 +16237,7 @@ const io = ga("utilities", () => {
16237
16237
  headers: {
16238
16238
  Authorization: ie.value,
16239
16239
  Accept: "application/json",
16240
- "Fresh-Booking-Ver": "4.0.52"
16240
+ "Fresh-Booking-Ver": "4.0.53"
16241
16241
  }
16242
16242
  })).data;
16243
16243
  o.value = Q, Q.hotelId && (isNaN(a.value) ? a.value = Q.hotelId : a.value !== Q.hotelId && (r(), a.value = Q.hotelId), isNaN(n.value) && Q.hotelId && (n.value = Q.hotelId));
@@ -16254,7 +16254,7 @@ const io = ga("utilities", () => {
16254
16254
  headers: {
16255
16255
  Authorization: ie.value,
16256
16256
  Accept: "application/json",
16257
- "Fresh-Booking-Ver": "4.0.52"
16257
+ "Fresh-Booking-Ver": "4.0.53"
16258
16258
  }
16259
16259
  }).then((ee) => {
16260
16260
  const { settings: Q, translations: oe } = ee.data;
@@ -16269,7 +16269,7 @@ const io = ga("utilities", () => {
16269
16269
  params: { token: le },
16270
16270
  headers: {
16271
16271
  Authorization: ie.value,
16272
- "Konnectio-Core-Ver": "4.0.52"
16272
+ "Konnectio-Core-Ver": "4.0.53"
16273
16273
  }
16274
16274
  })).data.success === !0 ? Q() : t({
16275
16275
  message: je.t("Robot guy"),
@@ -34,10 +34,10 @@
34
34
  `,hT="️",pT="‍";let Il=null,Rl=null;function mT(e){e===void 0&&(e=[]);const t={};yn.groups=t;const n=new yn;Il==null&&(Il=U0(sT)),Rl==null&&(Rl=U0(lT)),me(n,"'",Uc),me(n,"{",Xa),me(n,"}",Ja),me(n,"[",Cc),me(n,"]",Lc),me(n,"(",Pc),me(n,")",Ic),me(n,"<",Rc),me(n,">",xc),me(n,"(",Mc),me(n,")",Dc),me(n,"「",Hc),me(n,"」",jc),me(n,"『",Fc),me(n,"』",Vc),me(n,"<",Bc),me(n,">",zc),me(n,"&",$c),me(n,"*",qc),me(n,"@",di),me(n,"`",Wc),me(n,"^",Gc),me(n,":",mi),me(n,",",dp),me(n,"$",Yc),me(n,".",sr),me(n,"=",Xc),me(n,"!",hp),me(n,"-",lr),me(n,"%",Jc),me(n,"|",Zc),me(n,"+",Qc),me(n,"#",eu),me(n,"?",tu),me(n,'"',pp),me(n,"/",cr),me(n,";",mp),me(n,"~",Za),me(n,"_",nu),me(n,"\\",Kc);const r=Sn(n,Zf,up,{[oh]:!0});Sn(r,Zf,r);const i=Sn(n,Mo,Lr,{[ah]:!0});Sn(i,Mo,i);const o=Sn(n,Xf,ch,{[sh]:!0});Sn(o,Mo),Sn(o,Xf,o);const a=Sn(n,z0,T4,{[V0]:!0});me(n,$0,fp,{[V0]:!0}),me(a,$0),Sn(a,z0,a);const s=Sn(n,Jf,w4,{[O4]:!0});Sn(s,Jf,s),me(s,hT,s);const l=me(s,pT);Sn(l,Jf,s);const u=[[Mo,i]],d=[[Mo,null],[Xf,o]];for(let c=0;c<Il.length;c++)ai(n,Il[c],uh,Lr,u);for(let c=0;c<Rl.length;c++)ai(n,Rl[c],fh,ch,d);oo(uh,{tld:!0,ascii:!0},t),oo(fh,{utld:!0,alpha:!0},t),ai(n,"file",nc,Lr,u),ai(n,"mailto",nc,Lr,u),ai(n,"http",jo,Lr,u),ai(n,"https",jo,Lr,u),ai(n,"ftp",jo,Lr,u),ai(n,"ftps",jo,Lr,u),oo(nc,{scheme:!0,ascii:!0},t),oo(jo,{slashscheme:!0,ascii:!0},t),e=e.sort((c,f)=>c[0]>f[0]?1:-1);for(let c=0;c<e.length;c++){const f=e[c][0],y=e[c][1]?{[cT]:!0}:{[uT]:!0};f.indexOf("-")>=0?y[lh]=!0:Mo.test(f)?Zf.test(f)?y[tc]=!0:y[ah]=!0:y[oh]=!0,B0(n,f,f,y)}return B0(n,"localhost",Ts,{ascii:!0}),n.jd=new yn(ru),{start:n,tokens:ca({groups:t},A4)}}function gT(e,t){const n=vT(t.replace(/[A-Z]/g,s=>s.toLowerCase())),r=n.length,i=[];let o=0,a=0;for(;a<r;){let s=e,l=null,u=0,d=null,c=-1,f=-1;for(;a<r&&(l=s.go(n[a]));)s=l,s.accepts()?(c=0,f=0,d=s):c>=0&&(c+=n[a].length,f++),u+=n[a].length,o+=n[a].length,a++;o-=c,a-=f,u-=c,i.push({t:d.t,v:t.slice(o-u,o),s:o-u,e:o})}return i}function vT(e){const t=[],n=e.length;let r=0;for(;r<n;){let i=e.charCodeAt(r),o,a=i<55296||i>56319||r+1===n||(o=e.charCodeAt(r+1))<56320||o>57343?e[r]:e.slice(r,r+2);t.push(a),r+=a.length}return t}function ai(e,t,n,r,i){let o;const a=t.length;for(let s=0;s<a-1;s++){const l=t[s];e.j[l]?o=e.j[l]:(o=new yn(r),o.jr=i.slice(),e.j[l]=o),e=o}return o=new yn(n),o.jr=i.slice(),e.j[t[a-1]]=o,o}function U0(e){const t=[],n=[];let r=0,i="0123456789";for(;r<e.length;){let o=0;for(;i.indexOf(e[r+o])>=0;)o++;if(o>0){t.push(n.join(""));for(let a=parseInt(e.substring(r,r+o),10);a>0;a--)n.pop();r+=o}else n.push(e[r]),r++}return t}const ws={defaultProtocol:"http",events:null,format:q0,formatHref:q0,nl2br:!1,tagName:"a",target:null,rel:null,validate:!0,truncate:1/0,className:null,attributes:null,ignoreTags:[],render:null};function gp(e,t){t===void 0&&(t=null);let n=ca({},ws);e&&(n=ca(n,e instanceof gp?e.o:e));const r=n.ignoreTags,i=[];for(let o=0;o<r.length;o++)i.push(r[o].toUpperCase());this.o=n,t&&(this.defaultRender=t),this.ignoreTags=i}gp.prototype={o:ws,ignoreTags:[],defaultRender(e){return e},check(e){return this.get("validate",e.toString(),e)},get(e,t,n){const r=t!=null;let i=this.o[e];return i&&(typeof i=="object"?(i=n.t in i?i[n.t]:ws[e],typeof i=="function"&&r&&(i=i(t,n))):typeof i=="function"&&r&&(i=i(t,n.t,n)),i)},getObj(e,t,n){let r=this.o[e];return typeof r=="function"&&t!=null&&(r=r(t,n.t,n)),r},render(e){const t=e.render(this);return(this.get("render",null,e)||this.defaultRender)(t,e.t,e)}};function q0(e){return e}function S4(e,t){this.t="token",this.v=e,this.tk=t}S4.prototype={isLink:!1,toString(){return this.v},toHref(e){return this.toString()},toFormattedString(e){const t=this.toString(),n=e.get("truncate",t,this),r=e.get("format",t,this);return n&&r.length>n?r.substring(0,n)+"…":r},toFormattedHref(e){return e.get("formatHref",this.toHref(e.get("defaultProtocol")),this)},startIndex(){return this.tk[0].s},endIndex(){return this.tk[this.tk.length-1].e},toObject(e){return e===void 0&&(e=ws.defaultProtocol),{type:this.t,value:this.toString(),isLink:this.isLink,href:this.toHref(e),start:this.startIndex(),end:this.endIndex()}},toFormattedObject(e){return{type:this.t,value:this.toFormattedString(e),isLink:this.isLink,href:this.toFormattedHref(e),start:this.startIndex(),end:this.endIndex()}},validate(e){return e.get("validate",this.toString(),this)},render(e){const t=this,n=this.toHref(e.get("defaultProtocol")),r=e.get("formatHref",n,this),i=e.get("tagName",n,t),o=this.toFormattedString(e),a={},s=e.get("className",n,t),l=e.get("target",n,t),u=e.get("rel",n,t),d=e.getObj("attributes",n,t),c=e.getObj("events",n,t);return a.href=r,s&&(a.class=s),l&&(a.target=l),u&&(a.rel=u),d&&ca(a,d),{tagName:i,attributes:a,content:o,eventListeners:c}}};function of(e,t){class n extends S4{constructor(i,o){super(i,o),this.t=e}}for(const r in t)n.prototype[r]=t[r];return n.t=e,n}const K0=of("email",{isLink:!0,toHref(){return"mailto:"+this.toString()}}),W0=of("text"),yT=of("nl"),xl=of("url",{isLink:!0,toHref(e){return e===void 0&&(e=ws.defaultProtocol),this.hasProtocol()?this.v:`${e}://${this.v}`},hasProtocol(){const e=this.tk;return e.length>=2&&e[0].t!==Ts&&e[1].t===mi}}),Nn=e=>new yn(e);function bT(e){let{groups:t}=e;const n=t.domain.concat([$c,qc,di,Kc,Wc,Gc,Yc,Xc,lr,up,Jc,Zc,Qc,eu,cr,ru,Za,nu]),r=[Uc,mi,dp,sr,hp,tu,pp,mp,Rc,xc,Xa,Ja,Lc,Cc,Pc,Ic,Mc,Dc,Hc,jc,Fc,Vc,Bc,zc],i=[$c,Uc,qc,Kc,Wc,Gc,Yc,Xc,lr,Xa,Ja,Jc,Zc,Qc,eu,tu,cr,ru,Za,nu],o=Nn(),a=me(o,Za);Le(a,i,a),Le(a,t.domain,a);const s=Nn(),l=Nn(),u=Nn();Le(o,t.domain,s),Le(o,t.scheme,l),Le(o,t.slashscheme,u),Le(s,i,a),Le(s,t.domain,s);const d=me(s,di);me(a,di,d),me(l,di,d),me(u,di,d);const c=me(a,sr);Le(c,i,a),Le(c,t.domain,a);const f=Nn();Le(d,t.domain,f),Le(f,t.domain,f);const p=me(f,sr);Le(p,t.domain,f);const y=Nn(K0);Le(p,t.tld,y),Le(p,t.utld,y),me(d,Ts,y);const v=me(f,lr);Le(v,t.domain,f),Le(y,t.domain,f),me(y,sr,p),me(y,lr,v);const _=me(y,mi);Le(_,t.numeric,K0);const m=me(s,lr),g=me(s,sr);Le(m,t.domain,s),Le(g,i,a),Le(g,t.domain,s);const b=Nn(xl);Le(g,t.tld,b),Le(g,t.utld,b),Le(b,t.domain,s),Le(b,i,a),me(b,sr,g),me(b,lr,m),me(b,di,d);const h=me(b,mi),E=Nn(xl);Le(h,t.numeric,E);const k=Nn(xl),T=Nn();Le(k,n,k),Le(k,r,T),Le(T,n,k),Le(T,r,T),me(b,cr,k),me(E,cr,k);const A=me(l,mi),C=me(u,mi),N=me(C,cr),O=me(N,cr);Le(l,t.domain,s),me(l,sr,g),me(l,lr,m),Le(u,t.domain,s),me(u,sr,g),me(u,lr,m),Le(A,t.domain,k),me(A,cr,k),Le(O,t.domain,k),Le(O,n,k),me(O,cr,k);const S=[[Xa,Ja],[Cc,Lc],[Pc,Ic],[Rc,xc],[Mc,Dc],[Hc,jc],[Fc,Vc],[Bc,zc]];for(let L=0;L<S.length;L++){const[R,D]=S[L],B=me(k,R);me(T,R,B),me(B,D,k);const q=Nn(xl);Le(B,n,q);const re=Nn();Le(B,r),Le(q,n,q),Le(q,r,re),Le(re,n,q),Le(re,r,re),me(q,D,k),me(re,D,k)}return me(o,Ts,b),me(o,fp,yT),{start:o,tokens:A4}}function _T(e,t,n){let r=n.length,i=0,o=[],a=[];for(;i<r;){let s=e,l=null,u=null,d=0,c=null,f=-1;for(;i<r&&!(l=s.go(n[i].t));)a.push(n[i++]);for(;i<r&&(u=l||s.go(n[i].t));)l=null,s=u,s.accepts()?(f=0,c=s):f>=0&&f++,i++,d++;if(f<0)i-=d,i<r&&(a.push(n[i]),i++);else{a.length>0&&(o.push(Qf(W0,t,a)),a=[]),i-=f,d-=f;const p=c.t,y=n.slice(i-d,i);o.push(Qf(p,t,y))}}return a.length>0&&o.push(Qf(W0,t,a)),o}function Qf(e,t,n){const r=n[0].s,i=n[n.length-1].e,o=t.slice(r,i);return new e(o,n)}const Qt={scanner:null,parser:null,tokenQueue:[],pluginQueue:[],customSchemes:[],initialized:!1};function ET(){Qt.scanner=mT(Qt.customSchemes);for(let e=0;e<Qt.tokenQueue.length;e++)Qt.tokenQueue[e][1]({scanner:Qt.scanner});Qt.parser=bT(Qt.scanner.tokens);for(let e=0;e<Qt.pluginQueue.length;e++)Qt.pluginQueue[e][1]({scanner:Qt.scanner,parser:Qt.parser});Qt.initialized=!0}function OT(e){return Qt.initialized||ET(),_T(Qt.parser.start,e,gT(Qt.scanner.start,e))}var TT={amp:"&",gt:">",lt:"<",nbsp:" ",quot:'"'},wT=/^#[xX]([A-Fa-f0-9]+)$/,AT=/^#([0-9]+)$/,ST=/^([A-Za-z0-9]+)$/,NT=function(){function e(t){this.named=t}return e.prototype.parse=function(t){if(t){var n=t.match(wT);if(n)return String.fromCharCode(parseInt(n[1],16));if(n=t.match(AT),n)return String.fromCharCode(parseInt(n[1],10));if(n=t.match(ST),n)return this.named[n[1]]||"&"+n[1]+";"}},e}(),kT=/[\t\n\f ]/,CT=/[A-Za-z]/,LT=/\r\n?/g;function Ut(e){return kT.test(e)}function G0(e){return CT.test(e)}function PT(e){return e.replace(LT,`
35
35
  `)}var IT=function(){function e(t,n,r){r===void 0&&(r="precompile"),this.delegate=t,this.entityParser=n,this.mode=r,this.state="beforeData",this.line=-1,this.column=-1,this.input="",this.index=-1,this.tagNameBuffer="",this.states={beforeData:function(){var i=this.peek();if(i==="<"&&!this.isIgnoredEndTag())this.transitionTo("tagOpen"),this.markTagStart(),this.consume();else{if(this.mode==="precompile"&&i===`
36
36
  `){var o=this.tagNameBuffer.toLowerCase();(o==="pre"||o==="textarea")&&this.consume()}this.transitionTo("data"),this.delegate.beginData()}},data:function(){var i=this.peek(),o=this.tagNameBuffer;i==="<"&&!this.isIgnoredEndTag()?(this.delegate.finishData(),this.transitionTo("tagOpen"),this.markTagStart(),this.consume()):i==="&"&&o!=="script"&&o!=="style"?(this.consume(),this.delegate.appendToData(this.consumeCharRef()||"&")):(this.consume(),this.delegate.appendToData(i))},tagOpen:function(){var i=this.consume();i==="!"?this.transitionTo("markupDeclarationOpen"):i==="/"?this.transitionTo("endTagOpen"):(i==="@"||i===":"||G0(i))&&(this.transitionTo("tagName"),this.tagNameBuffer="",this.delegate.beginStartTag(),this.appendToTagName(i))},markupDeclarationOpen:function(){var i=this.consume();if(i==="-"&&this.peek()==="-")this.consume(),this.transitionTo("commentStart"),this.delegate.beginComment();else{var o=i.toUpperCase()+this.input.substring(this.index,this.index+6).toUpperCase();o==="DOCTYPE"&&(this.consume(),this.consume(),this.consume(),this.consume(),this.consume(),this.consume(),this.transitionTo("doctype"),this.delegate.beginDoctype&&this.delegate.beginDoctype())}},doctype:function(){var i=this.consume();Ut(i)&&this.transitionTo("beforeDoctypeName")},beforeDoctypeName:function(){var i=this.consume();Ut(i)||(this.transitionTo("doctypeName"),this.delegate.appendToDoctypeName&&this.delegate.appendToDoctypeName(i.toLowerCase()))},doctypeName:function(){var i=this.consume();Ut(i)?this.transitionTo("afterDoctypeName"):i===">"?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypeName&&this.delegate.appendToDoctypeName(i.toLowerCase())},afterDoctypeName:function(){var i=this.consume();if(!Ut(i))if(i===">")this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData");else{var o=i.toUpperCase()+this.input.substring(this.index,this.index+5).toUpperCase(),a=o.toUpperCase()==="PUBLIC",s=o.toUpperCase()==="SYSTEM";(a||s)&&(this.consume(),this.consume(),this.consume(),this.consume(),this.consume(),this.consume()),a?this.transitionTo("afterDoctypePublicKeyword"):s&&this.transitionTo("afterDoctypeSystemKeyword")}},afterDoctypePublicKeyword:function(){var i=this.peek();Ut(i)?(this.transitionTo("beforeDoctypePublicIdentifier"),this.consume()):i==='"'?(this.transitionTo("doctypePublicIdentifierDoubleQuoted"),this.consume()):i==="'"?(this.transitionTo("doctypePublicIdentifierSingleQuoted"),this.consume()):i===">"&&(this.consume(),this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData"))},doctypePublicIdentifierDoubleQuoted:function(){var i=this.consume();i==='"'?this.transitionTo("afterDoctypePublicIdentifier"):i===">"?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypePublicIdentifier&&this.delegate.appendToDoctypePublicIdentifier(i)},doctypePublicIdentifierSingleQuoted:function(){var i=this.consume();i==="'"?this.transitionTo("afterDoctypePublicIdentifier"):i===">"?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypePublicIdentifier&&this.delegate.appendToDoctypePublicIdentifier(i)},afterDoctypePublicIdentifier:function(){var i=this.consume();Ut(i)?this.transitionTo("betweenDoctypePublicAndSystemIdentifiers"):i===">"?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):i==='"'?this.transitionTo("doctypeSystemIdentifierDoubleQuoted"):i==="'"&&this.transitionTo("doctypeSystemIdentifierSingleQuoted")},betweenDoctypePublicAndSystemIdentifiers:function(){var i=this.consume();Ut(i)||(i===">"?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):i==='"'?this.transitionTo("doctypeSystemIdentifierDoubleQuoted"):i==="'"&&this.transitionTo("doctypeSystemIdentifierSingleQuoted"))},doctypeSystemIdentifierDoubleQuoted:function(){var i=this.consume();i==='"'?this.transitionTo("afterDoctypeSystemIdentifier"):i===">"?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypeSystemIdentifier&&this.delegate.appendToDoctypeSystemIdentifier(i)},doctypeSystemIdentifierSingleQuoted:function(){var i=this.consume();i==="'"?this.transitionTo("afterDoctypeSystemIdentifier"):i===">"?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypeSystemIdentifier&&this.delegate.appendToDoctypeSystemIdentifier(i)},afterDoctypeSystemIdentifier:function(){var i=this.consume();Ut(i)||i===">"&&(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData"))},commentStart:function(){var i=this.consume();i==="-"?this.transitionTo("commentStartDash"):i===">"?(this.delegate.finishComment(),this.transitionTo("beforeData")):(this.delegate.appendToCommentData(i),this.transitionTo("comment"))},commentStartDash:function(){var i=this.consume();i==="-"?this.transitionTo("commentEnd"):i===">"?(this.delegate.finishComment(),this.transitionTo("beforeData")):(this.delegate.appendToCommentData("-"),this.transitionTo("comment"))},comment:function(){var i=this.consume();i==="-"?this.transitionTo("commentEndDash"):this.delegate.appendToCommentData(i)},commentEndDash:function(){var i=this.consume();i==="-"?this.transitionTo("commentEnd"):(this.delegate.appendToCommentData("-"+i),this.transitionTo("comment"))},commentEnd:function(){var i=this.consume();i===">"?(this.delegate.finishComment(),this.transitionTo("beforeData")):(this.delegate.appendToCommentData("--"+i),this.transitionTo("comment"))},tagName:function(){var i=this.consume();Ut(i)?this.transitionTo("beforeAttributeName"):i==="/"?this.transitionTo("selfClosingStartTag"):i===">"?(this.delegate.finishTag(),this.transitionTo("beforeData")):this.appendToTagName(i)},endTagName:function(){var i=this.consume();Ut(i)?(this.transitionTo("beforeAttributeName"),this.tagNameBuffer=""):i==="/"?(this.transitionTo("selfClosingStartTag"),this.tagNameBuffer=""):i===">"?(this.delegate.finishTag(),this.transitionTo("beforeData"),this.tagNameBuffer=""):this.appendToTagName(i)},beforeAttributeName:function(){var i=this.peek();if(Ut(i)){this.consume();return}else i==="/"?(this.transitionTo("selfClosingStartTag"),this.consume()):i===">"?(this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):i==="="?(this.delegate.reportSyntaxError("attribute name cannot start with equals sign"),this.transitionTo("attributeName"),this.delegate.beginAttribute(),this.consume(),this.delegate.appendToAttributeName(i)):(this.transitionTo("attributeName"),this.delegate.beginAttribute())},attributeName:function(){var i=this.peek();Ut(i)?(this.transitionTo("afterAttributeName"),this.consume()):i==="/"?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.transitionTo("selfClosingStartTag")):i==="="?(this.transitionTo("beforeAttributeValue"),this.consume()):i===">"?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):i==='"'||i==="'"||i==="<"?(this.delegate.reportSyntaxError(i+" is not a valid character within attribute names"),this.consume(),this.delegate.appendToAttributeName(i)):(this.consume(),this.delegate.appendToAttributeName(i))},afterAttributeName:function(){var i=this.peek();if(Ut(i)){this.consume();return}else i==="/"?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.transitionTo("selfClosingStartTag")):i==="="?(this.consume(),this.transitionTo("beforeAttributeValue")):i===">"?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.transitionTo("attributeName"),this.delegate.beginAttribute(),this.consume(),this.delegate.appendToAttributeName(i))},beforeAttributeValue:function(){var i=this.peek();Ut(i)?this.consume():i==='"'?(this.transitionTo("attributeValueDoubleQuoted"),this.delegate.beginAttributeValue(!0),this.consume()):i==="'"?(this.transitionTo("attributeValueSingleQuoted"),this.delegate.beginAttributeValue(!0),this.consume()):i===">"?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):(this.transitionTo("attributeValueUnquoted"),this.delegate.beginAttributeValue(!1),this.consume(),this.delegate.appendToAttributeValue(i))},attributeValueDoubleQuoted:function(){var i=this.consume();i==='"'?(this.delegate.finishAttributeValue(),this.transitionTo("afterAttributeValueQuoted")):i==="&"?this.delegate.appendToAttributeValue(this.consumeCharRef()||"&"):this.delegate.appendToAttributeValue(i)},attributeValueSingleQuoted:function(){var i=this.consume();i==="'"?(this.delegate.finishAttributeValue(),this.transitionTo("afterAttributeValueQuoted")):i==="&"?this.delegate.appendToAttributeValue(this.consumeCharRef()||"&"):this.delegate.appendToAttributeValue(i)},attributeValueUnquoted:function(){var i=this.peek();Ut(i)?(this.delegate.finishAttributeValue(),this.consume(),this.transitionTo("beforeAttributeName")):i==="/"?(this.delegate.finishAttributeValue(),this.consume(),this.transitionTo("selfClosingStartTag")):i==="&"?(this.consume(),this.delegate.appendToAttributeValue(this.consumeCharRef()||"&")):i===">"?(this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):(this.consume(),this.delegate.appendToAttributeValue(i))},afterAttributeValueQuoted:function(){var i=this.peek();Ut(i)?(this.consume(),this.transitionTo("beforeAttributeName")):i==="/"?(this.consume(),this.transitionTo("selfClosingStartTag")):i===">"?(this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):this.transitionTo("beforeAttributeName")},selfClosingStartTag:function(){var i=this.peek();i===">"?(this.consume(),this.delegate.markTagAsSelfClosing(),this.delegate.finishTag(),this.transitionTo("beforeData")):this.transitionTo("beforeAttributeName")},endTagOpen:function(){var i=this.consume();(i==="@"||i===":"||G0(i))&&(this.transitionTo("endTagName"),this.tagNameBuffer="",this.delegate.beginEndTag(),this.appendToTagName(i))}},this.reset()}return e.prototype.reset=function(){this.transitionTo("beforeData"),this.input="",this.tagNameBuffer="",this.index=0,this.line=1,this.column=0,this.delegate.reset()},e.prototype.transitionTo=function(t){this.state=t},e.prototype.tokenize=function(t){this.reset(),this.tokenizePart(t),this.tokenizeEOF()},e.prototype.tokenizePart=function(t){for(this.input+=PT(t);this.index<this.input.length;){var n=this.states[this.state];if(n!==void 0)n.call(this);else throw new Error("unhandled state "+this.state)}},e.prototype.tokenizeEOF=function(){this.flushData()},e.prototype.flushData=function(){this.state==="data"&&(this.delegate.finishData(),this.transitionTo("beforeData"))},e.prototype.peek=function(){return this.input.charAt(this.index)},e.prototype.consume=function(){var t=this.peek();return this.index++,t===`
37
- `?(this.line++,this.column=0):this.column++,t},e.prototype.consumeCharRef=function(){var t=this.input.indexOf(";",this.index);if(t!==-1){var n=this.input.slice(this.index,t),r=this.entityParser.parse(n);if(r){for(var i=n.length;i;)this.consume(),i--;return this.consume(),r}}},e.prototype.markTagStart=function(){this.delegate.tagOpen()},e.prototype.appendToTagName=function(t){this.tagNameBuffer+=t,this.delegate.appendToTagName(t)},e.prototype.isIgnoredEndTag=function(){var t=this.tagNameBuffer;return t==="title"&&this.input.substring(this.index,this.index+8)!=="</title>"||t==="style"&&this.input.substring(this.index,this.index+8)!=="</style>"||t==="script"&&this.input.substring(this.index,this.index+9)!=="<\/script>"},e}(),RT=function(){function e(t,n){n===void 0&&(n={}),this.options=n,this.token=null,this.startLine=1,this.startColumn=0,this.tokens=[],this.tokenizer=new IT(this,t,n.mode),this._currentAttribute=void 0}return e.prototype.tokenize=function(t){return this.tokens=[],this.tokenizer.tokenize(t),this.tokens},e.prototype.tokenizePart=function(t){return this.tokens=[],this.tokenizer.tokenizePart(t),this.tokens},e.prototype.tokenizeEOF=function(){return this.tokens=[],this.tokenizer.tokenizeEOF(),this.tokens[0]},e.prototype.reset=function(){this.token=null,this.startLine=1,this.startColumn=0},e.prototype.current=function(){var t=this.token;if(t===null)throw new Error("token was unexpectedly null");if(arguments.length===0)return t;for(var n=0;n<arguments.length;n++)if(t.type===arguments[n])return t;throw new Error("token type was unexpectedly "+t.type)},e.prototype.push=function(t){this.token=t,this.tokens.push(t)},e.prototype.currentAttribute=function(){return this._currentAttribute},e.prototype.addLocInfo=function(){this.options.loc&&(this.current().loc={start:{line:this.startLine,column:this.startColumn},end:{line:this.tokenizer.line,column:this.tokenizer.column}}),this.startLine=this.tokenizer.line,this.startColumn=this.tokenizer.column},e.prototype.beginDoctype=function(){this.push({type:"Doctype",name:""})},e.prototype.appendToDoctypeName=function(t){this.current("Doctype").name+=t},e.prototype.appendToDoctypePublicIdentifier=function(t){var n=this.current("Doctype");n.publicIdentifier===void 0?n.publicIdentifier=t:n.publicIdentifier+=t},e.prototype.appendToDoctypeSystemIdentifier=function(t){var n=this.current("Doctype");n.systemIdentifier===void 0?n.systemIdentifier=t:n.systemIdentifier+=t},e.prototype.endDoctype=function(){this.addLocInfo()},e.prototype.beginData=function(){this.push({type:"Chars",chars:""})},e.prototype.appendToData=function(t){this.current("Chars").chars+=t},e.prototype.finishData=function(){this.addLocInfo()},e.prototype.beginComment=function(){this.push({type:"Comment",chars:""})},e.prototype.appendToCommentData=function(t){this.current("Comment").chars+=t},e.prototype.finishComment=function(){this.addLocInfo()},e.prototype.tagOpen=function(){},e.prototype.beginStartTag=function(){this.push({type:"StartTag",tagName:"",attributes:[],selfClosing:!1})},e.prototype.beginEndTag=function(){this.push({type:"EndTag",tagName:""})},e.prototype.finishTag=function(){this.addLocInfo()},e.prototype.markTagAsSelfClosing=function(){this.current("StartTag").selfClosing=!0},e.prototype.appendToTagName=function(t){this.current("StartTag","EndTag").tagName+=t},e.prototype.beginAttribute=function(){this._currentAttribute=["","",!1]},e.prototype.appendToAttributeName=function(t){this.currentAttribute()[0]+=t},e.prototype.beginAttributeValue=function(t){this.currentAttribute()[2]=t},e.prototype.appendToAttributeValue=function(t){this.currentAttribute()[1]+=t},e.prototype.finishAttributeValue=function(){this.current("StartTag").attributes.push(this._currentAttribute)},e.prototype.reportSyntaxError=function(t){this.current().syntaxError=t},e}();function xT(e,t){var n=new RT(new NT(TT),t);return n.tokenize(e)}const N4="LinkifyResult",iu="StartTag",k4="EndTag",dh="Chars",MT="Comment",DT="Doctype";function HT(e,t){t===void 0&&(t={});const n=xT(e),r=[],i=[],o=new gp(t,VT);for(let a=0;a<n.length;a++){const s=n[a];if(s.type===iu){r.push(s);const l=s.tagName.toUpperCase();if(!(l==="A"||o.ignoreTags.indexOf(l)>=0))continue;let d=r.length;FT(l,n,++a,r),a+=r.length-d-1}else if(s.type!==dh)r.push(s);else{const l=jT(s.chars,o);r.push.apply(r,l)}}for(let a=0;a<r.length;a++){const s=r[a];switch(s.type){case N4:i.push(s.rendered);break;case iu:{let l="<"+s.tagName;s.attributes.length>0&&(l+=" "+zT(s.attributes).join(" ")),s.selfClosing&&(l+=" /"),l+=">",i.push(l);break}case k4:i.push(`</${s.tagName}>`);break;case dh:i.push(hh(s.chars));break;case MT:i.push(`<!--${hh(s.chars)}-->`);break;case DT:{let l=`<!DOCTYPE ${s.name}`;s.publicIdentifier&&(l+=` PUBLIC "${s.publicIdentifier}"`),s.systemIdentifier&&(l+=` "${s.systemIdentifier}"`),l+=">",i.push(l);break}}}return i.join("")}function jT(e,t){const n=OT(e),r=[];for(let i=0;i<n.length;i++){const o=n[i];o.t==="nl"&&t.get("nl2br")?r.push({type:iu,tagName:"br",attributes:[],selfClosing:!0}):!o.isLink||!t.check(o)?r.push({type:dh,chars:o.toString()}):r.push({type:N4,rendered:t.render(o)})}return r}function FT(e,t,n,r){let i=1;for(;n<t.length&&i>0;){let o=t[n];o.type===iu&&o.tagName.toUpperCase()===e?i++:o.type===k4&&o.tagName.toUpperCase()===e&&i--,r.push(o),n++}return r}function VT(e){let{tagName:t,attributes:n,content:r}=e;return`<${t} ${BT(n)}>${hh(r)}</${t}>`}function hh(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;")}function C4(e){return e.replace(/"/g,"&quot;")}function BT(e){const t=[];for(const n in e){const r=e[n]+"";t.push(`${n}="${C4(r)}"`)}return t.join(" ")}function zT(e){const t=[];for(let n=0;n<e.length;n++){const r=e[n][0],i=e[n][1]+"";t.push(`${r}="${C4(i)}"`)}return t}const L4="en",$T=document.documentElement.lang.slice(0,2)||L4,P4=y7({warnHtmlMessage:!1,fallbackRootWithEmptyString:!1,silentTranslationWarn:!0,allowComposition:!0,legacy:!1,globalInjection:!0,locale:$T,fallbackLocale:L4}),He=P4.global;function UT(e){for(const t in e)He.setLocaleMessage(t,e[t])}var ph=(e=>(e[e.Accept=0]="Accept",e[e.Error=1]="Error",e[e.Cancel=2]="Cancel",e[e.Close=3]="Close",e[e.Open=4]="Open",e[e.CheckResult=5]="CheckResult",e))(ph||{}),Ct=(e=>(e[e.Invalid=0]="Invalid",e[e.PerUnit=1]="PerUnit",e[e.PerPerson=2]="PerPerson",e[e.PerAdult=3]="PerAdult",e[e.PerChild=4]="PerChild",e[e.PerNight=5]="PerNight",e[e.PerPersonPerNight=6]="PerPersonPerNight",e[e.PerAdultPerNight=7]="PerAdultPerNight",e[e.PerChildPerNight=8]="PerChildPerNight",e[e.Consumption=9]="Consumption",e[e.EarlyCheckIn=10]="EarlyCheckIn",e[e.EarlyCheckOut=11]="EarlyCheckOut",e[e.OneTimePayment=12]="OneTimePayment",e))(Ct||{}),ua=(e=>(e[e.None=0]="None",e[e.AskForCreditCard=2]="AskForCreditCard",e[e.Stripe=18]="Stripe",e[e.DIBS=47]="DIBS",e[e.EasyPay=56]="EasyPay",e[e.ReePay=57]="ReePay",e))(ua||{}),I4=(e=>(e.Selective="selective",e.Wholesale="wholesale",e.Simplified="simplified",e.Template="template",e.Event="event",e))(I4||{}),R4=(e=>(e.Default="default",e.Minimal="minimal",e))(R4||{}),x4=(e=>(e[e.InitialState=0]="InitialState",e[e.WaitingForResponse=1]="WaitingForResponse",e[e.ReadyToPay=2]="ReadyToPay",e[e.PaymentSuccess=3]="PaymentSuccess",e))(x4||{}),M4=(e=>(e[e.None=0]="None",e[e.Hourly=1]="Hourly",e[e.FullDayEvent=2]="FullDayEvent",e[e.Weekly=3]="Weekly",e))(M4||{}),D4=(e=>(e[e.InitialState=0]="InitialState",e[e.AvailabilityState=1]="AvailabilityState",e[e.ReservationState=2]="ReservationState",e[e.PaymentState=3]="PaymentState",e))(D4||{});function qT(e){switch(e){case Ct.PerUnit:return He.t("general.perUnit");case Ct.PerPerson:return He.t("general.perPerson");case Ct.PerAdult:return He.t("general.perAdult");case Ct.PerChild:return He.t("general.perChild");case Ct.PerNight:return He.t("general.perNight");case Ct.PerPersonPerNight:return He.t("general.perPersonPerNight");case Ct.PerAdultPerNight:return He.t("general.perAdultPerNight");case Ct.PerChildPerNight:return He.t("general.perChildPerNight")}}function H4(e,t,n,r=0,i=0){switch(t){case Ct.PerUnit:return e;case Ct.PerPerson:return e*(r+i);case Ct.PerAdult:return e*r;case Ct.PerChild:return e*i;case Ct.PerNight:return e*n;case Ct.PerPersonPerNight:return e*(r+i)*n;case Ct.PerAdultPerNight:return e*r*n;case Ct.PerChildPerNight:return e*i*n;case Ct.OneTimePayment:return e;default:return e}}function Y0(e){return e===void 0?e:e.replace(/([!?.])([a-z])/g,function(t,n,r){return r.toUpperCase()})}function KT(e){return e!==void 0?HT(e,{defaultProtocol:"https",target:"_blank",rel:"noopener",nl2br:!0}):""}function X0(e){switch(e){case 2:return He.t("booking.reservation.nameTitleMr");case 3:return He.t("booking.reservation.nameTitleMs");case 4:return He.t("booking.reservation.nameTitleMrs");case 5:return He.t("booking.reservation.nameTitleDr");default:return""}}function WT(e){let t,n,r,i,o,a,s,l,u,d=0,c=0,f="";const p="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",y=[];if(!e)return e;do t=e.charCodeAt(d++),n=e.charCodeAt(d++),r=e.charCodeAt(d++),l=t<<16|n<<8|r,i=63&l>>18,o=63&l>>12,a=63&l>>6,s=63&l,y[c++]=p.charAt(i)+p.charAt(o)+p.charAt(a)+p.charAt(s);while(d<e.length);return f=y.join(""),u=e.length%3,(u?f.slice(0,u-3):f)+"===".slice(u||3)}function GT(e){return e.toLowerCase()}function YT(e){return new Date(e).toISOString()}function vp(e,t){const n=new Date(e),r=new Date(t),i=r.getTime()-n.getTime();return Math.round(i/(1e3*60*60*24))}function Ur(e=!1){return e?document.documentElement.lang||"en-US":document.documentElement.lang.slice(0,2)||"en"}function af(e=10){const t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",n=t.length;let r="";for(let i=0;i<e;i++)r+=t.charAt(Math.floor(Math.random()*n));return r}function rc(e,t=0){let n=new Date(e);n=new Date(n.setDate(n.getDate()+t));let r;switch(Ur()){case"da":case"se":r={0:"jan",1:"feb",2:"mar",3:"apr",4:"maj",5:"jun",6:"jul",7:"aug",8:"sep",9:"okt",10:"nov",11:"dec"};break;case"no":r={0:"jan",1:"feb",2:"mar",3:"apr",4:"mai",5:"jun",6:"jul",7:"aug",8:"sep",9:"okt",10:"nov",11:"des"};break;case"de":r={0:"jan",1:"feb",2:"mär",3:"apr",4:"mai",5:"jun",6:"jul",7:"aug",8:"sep",9:"okt",10:"nov",11:"dez"};break;case"fi":r={0:"tam",1:"hel",2:"maa",3:"huh",4:"tou",5:"kes",6:"hei",7:"elo",8:"syy",9:"lok",10:"mar",11:"jou"};break;case"fr":r={0:"jan",1:"feb",2:"mar",3:"apr",4:"mai",5:"jun",6:"jui",7:"aoû",8:"sep",9:"okt",10:"nov",11:"dec"};break;case"it":r={0:"gen",1:"feb",2:"mar",3:"apr",4:"mag",5:"giu",6:"lug",7:"ago",8:"set",9:"ott",10:"nov",11:"dic"};break;default:r={0:"Jan",1:"Feb",2:"Mar",3:"Apr",4:"May",5:"Jun",6:"Jul",7:"Aug",8:"Sep",9:"Oct",10:"Nov",11:"Dec"};break}return`${n.getDate()} ${r[n.getMonth()]} ${n.getFullYear()}`}function XT(e){const t=e.sort();for(let n=1;n<t.length;n++)if(t[n]!=t[n-1]+1)return!1;return!0}function JT(e){let t=e;const n=[6,7],r=e.split(",").map(Number);let i;switch(Ur()){case"da":i={1:"Man",2:"Tir",3:"Ons",4:"Tor",5:"Fre",6:"Lør",7:"Søn"};break;default:i={1:"Mon",2:"Tue",3:"Wed",4:"Thu",5:"Fri",6:"Sat",7:"Sun"};break}return r.length===7?t=He.t("general.everyday"):n.some(o=>r.includes(o))?t=He.t("general.weekends"):XT(r)&&r.length>1?t=`${i[r[0]]} - ${i[r[r.length-1]]}`:t="-",t}function ZT(e,t,n=!1){if(n){const r=e.split("-");e=`${r[1]}-${r[0]}-${r[2]}`;const i=t.split("-");t=`${i[1]}-${i[0]}-${i[2]}`}return e===t?`${rc(e)}}`:`${rc(e)} - ${rc(t)}`}function ic(e){let t=e;const n=e.split(":");return n[2]&&(t=`${n[0]}:${n[1]}`),t}function QT(e,t){return e===t?ic(e):`${ic(e)} - ${ic(t)}`}function ew(e,t){return new Intl.NumberFormat(Ur(!0),{style:"currency",currency:t}).format(e)}function tw(e){return e?e.charAt(0).toUpperCase()+e.slice(1):""}const J0=2,Z0=0,Q0=()=>new Date(new Date(new Date().setDate(new Date().getDate()+1)).setHours(12,0,0,0)),e2=()=>new Date(new Date(new Date().setDate(new Date().getDate()+2)).setHours(12,0,0,0)),t2=NaN,ou=Ri("availability",()=>{const e=kt("konnectio_expiry_date",new Date,void 0,{serializer:yt.date}),t=kt("konnectio_adults",J0,void 0,{serializer:yt.number}),n=kt("konnectio_children",Z0,void 0,{serializer:yt.number}),r=kt("konnectio_arrival_date",Q0(),void 0,{serializer:yt.date}),i=kt("konnectio_departure_date",e2(),void 0,{serializer:yt.date}),o=kt("konnectio_location",t2,void 0,{serializer:yt.number});function a(p){const y=new Date(p),v=""+y.getFullYear();let _=""+(y.getMonth()+1),m=""+y.getDate();return _.length<2&&(_="0"+_),m.length<2&&(m="0"+m),[v,_,m].join("-")}const s=de(()=>new Date(e.value)<new Date),l=de(()=>a(r.value)),u=de(()=>a(i.value)),d=de(()=>vp(r.value,i.value));function c(){const y=new Date(new Date().getTime()+432e5);e.value=y}function f(){t.value=J0,n.value=Z0,r.value=Q0(),i.value=e2(),o.value=t2,c()}return{fromDate:l,toDate:u,expiryDate:e,adults:t,children:n,arrivalDate:r,departureDate:i,location:o,isExpired:s,nights:d,setNewExpiryDate:c,reset:f}}),mh=e=>typeof e=="function",nw=Object.prototype.toString,rw=e=>nw.call(e),ed=e=>rw(e)==="[object Object]";function gh(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function n2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function vh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?n2(Object(n),!0).forEach(function(r){gh(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):n2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var iw=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return new Promise(function(r,i){if(!(typeof document>"u")){var o=document.head||document.getElementsByTagName("head")[0],a=document.createElement("script");if(a.async=!0,a.src=t,a.defer=n.defer,n.preconnectOrigin){var s=document.createElement("link");s.href=n.preconnectOrigin,s.rel="preconnect",o.appendChild(s)}o.appendChild(a),a.onload=r,a.onerror=i}})},ow=function e(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];if(!r.length)return t;var o=r.shift();if(!(!ed(t)||!ed(o))){for(var a in o)ed(o[a])?(t[a]||Object.assign(t,gh({},a,{})),e(t[a],o[a])):Object.assign(t,gh({},a,o[a]));return e.apply(void 0,[t].concat(r))}},Xs=function(){return!(typeof window>"u"||typeof document>"u")},r2=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;Xs()},aw=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return r2('Missing "appName" property inside the plugin options.',t.app_name==null),r2('Missing "name" property in the route.',t.screen_name==null),t};function sw(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",n=e.split("/"),r=t.split("/");return n[0]===""&&t[t.length-1]==="/"&&n.shift(),r.join("/")+n.join("/")}var lw=function(){return{bootstrap:!0,onReady:null,onError:null,onBeforeTrack:null,onAfterTrack:null,pageTrackerTemplate:null,customResourceURL:"https://www.googletagmanager.com/gtag/js",customPreconnectOrigin:"https://www.googletagmanager.com",deferScriptLoad:!1,pageTrackerExcludedRoutes:[],pageTrackerEnabled:!0,enabled:!0,disableScriptLoad:!1,pageTrackerScreenviewEnabled:!1,appName:null,pageTrackerUseFullPath:!1,pageTrackerPrependBase:!0,pageTrackerSkipSamePath:!0,globalDataLayerName:"dataLayer",globalObjectName:"gtag",defaultGroupName:"default",includes:null,config:{id:null,params:{send_page_view:!1}}}},j4={},F4=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=lw();j4=ow(n,t)},En=function(){return j4},go=function(){var e,t=En(),n=t.globalObjectName;!Xs()||typeof window[n]>"u"||(e=window)[n].apply(e,arguments)},yp=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=En(),i=r.config,o=r.includes;go.apply(void 0,["config",i.id].concat(t)),Array.isArray(o)&&o.forEach(function(a){go.apply(void 0,["config",a.id].concat(t))})},i2=function(t,n){Xs()&&(window["ga-disable-".concat(t)]=n)},V4=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,t=En(),n=t.config,r=t.includes;i2(n.id,e),Array.isArray(r)&&r.forEach(function(i){return i2(i.id,e)})},B4=function(){V4(!0)},cw=function(){V4(!1)},z4,uw=function(t){z4=t},bp=function(){return z4},$n=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=En(),r=n.includes,i=n.defaultGroupName;t.send_to==null&&Array.isArray(r)&&r.length&&(t.send_to=r.map(function(o){return o.id}).concat(i)),go("event",e,t)},$4=function(e){if(Xs()){var t;if(typeof e=="string")t={page_path:e};else if(e.path||e.fullPath){var n=En(),r=n.pageTrackerUseFullPath,i=n.pageTrackerPrependBase,o=bp(),a=o&&o.options.base,s=r?e.fullPath:e.path;t=vh(vh({},e.name&&{page_title:e.name}),{},{page_path:i?sw(s,a):s})}else t=e;t.page_location==null&&(t.page_location=window.location.href),t.send_page_view==null&&(t.send_page_view=!0),$n("page_view",t)}},U4=function(e){var t=En(),n=t.appName;if(e){var r;typeof e=="string"?r={screen_name:e}:r=e,r.app_name=r.app_name||n,$n("screen_view",r)}},fw=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];$n.apply(void 0,["exception"].concat(t))},dw=function(e){yp("linker",e)},hw=function(e){$n("timing_complete",e)},pw=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];go.apply(void 0,["set"].concat(t))},mw=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];$n.apply(void 0,["refund"].concat(t))},q4=function(e){$n("purchase",e)},gw=function(e){yp({custom_map:e})},vw=Object.freeze({__proto__:null,query:go,config:yp,optOut:B4,optIn:cw,pageview:$4,screenview:U4,exception:fw,linker:dw,time:hw,set:pw,refund:mw,purchase:q4,customMap:gw,event:$n}),yw=function(t){t.config.globalProperties.$gtag=vw},bw=function(){if(Xs()){var e=En(),t=e.enabled,n=e.globalObjectName,r=e.globalDataLayerName;return window[n]==null&&(window[r]=window[r]||[],window[n]=function(){window[r].push(arguments)}),window[n]("js",new Date),t||B4(),window[n]}},o2=function(t){return vh({send_page_view:!1},t)},K4=function(){var e=En(),t=e.config,n=e.includes;go("config",t.id,o2(t.params)),Array.isArray(n)&&n.forEach(function(r){go("config",r.id,o2(r.params))})},a2=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=En(),r=n.appName,i=n.pageTrackerTemplate,o=n.pageTrackerScreenviewEnabled,a=n.pageTrackerSkipSamePath;if(!(a&&e.path===t.path)){var s=e;if(mh(i)?s=i(e,t):o&&(s=aw({app_name:r,screen_name:e.name})),o){U4(s);return}$4(s)}},s2=function(t){var n=En(),r=n.pageTrackerExcludedRoutes;return r.includes(t.path)||r.includes(t.name)},_w=function(){var e=En(),t=e.onBeforeTrack,n=e.onAfterTrack,r=bp();r.isReady().then(function(){Dn().then(function(){var i=r.currentRoute;K4(),!s2(i.value)&&a2(i.value)}),r.afterEach(function(i,o){Dn().then(function(){s2(i)||(mh(t)&&t(i,o),a2(i,o),mh(n)&&n(i,o))})})})},W4=function(){var e=En(),t=e.onReady,n=e.onError,r=e.globalObjectName,i=e.globalDataLayerName,o=e.config,a=e.customResourceURL,s=e.customPreconnectOrigin,l=e.deferScriptLoad,u=e.pageTrackerEnabled,d=e.disableScriptLoad,c=!!(u&&bp());if(bw(),c?_w():K4(),!d)return iw("".concat(a,"?id=").concat(o.id,"&l=").concat(i),{preconnectOrigin:s,defer:l}).then(function(){t&&t(window[r])}).catch(function(f){return n&&n(f),f})},Ew=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0;yw(t),F4(n),uw(r),En().bootstrap&&W4()};const G4=Ri("applyGiftCard",()=>{const{display:e}=Ea(),{bearerToken:t}=Ei(vo()),n=Te(0),r=Te(""),i=Te(""),o=Te(""),a=Te(!1),s=Te(!1);async function l(){r.value!==""?(s.value=!0,await Mr.get("https://production.hotel-service.konnectio.dk/api/gift-card/validate",{params:{giftcardCode:r.value,lang:Ur()},headers:{Authorization:t.value,Accept:"application/json","Fresh-Booking-Ver":"4.0.52"}}).then(d=>{const{valid:c,amount:f,expirationDate:p,productName:y}=d.data;c?(n.value=f,i.value=p,o.value=y,a.value=!0,e({message:He.t("alert.success.giftCardApplied"),type:"success"})):(a.value=!1,e({message:He.t("alert.error.giftCardInvalid"),type:"warning"}))}),s.value=!1):e({message:He.t("alert.error.giftCardEmpty"),type:"error"})}function u(){n.value=0,r.value="",a.value=!1,e({message:He.t("alert.success.giftCardRemoved"),type:"success"})}return{amount:n,voucher:r,expirationDate:i,productName:o,isValid:a,isLoading:s,apply:l,reset:u}}),Y4=Ri("payment",()=>{const{display:e}=Ea(),{paymentGatewayId:t}=Ei(vo()),n=Te({}),r=de(()=>t.value!==ua.None),i=de(()=>n.value&&n.value.guest?n.value.guest.name:""),o=de(()=>n.value&&n.value.guest?n.value.guest.email:""),a=de(()=>n.value&&n.value.guest?n.value.guest.phone:""),s=de(()=>n.value.adults),l=de(()=>n.value.children),u=de(()=>n.value.totalPrice||0),d=de(()=>n.value.totalVAT||0),c=de(()=>n.value.offerDate),f=de(()=>u.value-d.value),p=de(()=>n.value.orderLinesSummary),y=de(()=>p.value?p.value.length>0:!1);async function v({callback:_,response:m}){if(!m.error)if(!m.offer)e({message:He.t("booking.other.errorMessage"),type:"warning"});else if(n.value=m.offer,m.easyPayment)if(_(),t.value===ua.ReePay){const g=new Reepay.EmbeddedCheckout(m.easyPayment.paymentID,{html_element:"fresh-booking-payment-checkout"});g.addEventHandler(ph.Accept,()=>{e({message:He.t("alert.success.payment"),type:"success"}),_()}),g.addEventHandler(ph.Error,()=>{e({message:He.t("alert.error.payment"),type:"warning"})})}else{const g={checkoutKey:m.easyPayment.checkoutSecretKey,paymentId:m.easyPayment.paymentID,containerId:"fresh-booking-payment-checkout",language:Ur()==="da"?"da-DK":"en-GB"},b=new Dibs.Checkout(g);b.on("payment-completed",()=>{console.log("Konnectio: Payment completed!"),e({message:He.t("alert.success.payment"),type:"success"}),q4({transaction_id:m.offer.uniqueID,affiliation:"Konnectio Reservation",value:m.offer.totalPrice,tax:m.offer.totalVAT,shipping:0,items:m.offer.rooms.map(h=>({item_id:h.id,item_name:`${h.roomGroupName} (${h.roomGroupRatePlanName})`,quantity:1,price:h.totalPrice,start_date:h.arriveDate,end_date:h.leaveDate}))}),_()}),b.on("pay-initialized",()=>{b.send("payment-order-finalized",!0)})}else _(2)}return{offerData:n,hasPaymentGateway:r,name:i,email:o,phone:a,adults:s,children:l,totalPrice:u,totalVAT:d,offerDate:c,subTotalPrice:f,orderSummary:p,hasOrderLines:y,pay:v}}),X4=Ri("hotel",()=>{const e=_p(),t=Y4(),{voucher:n,amount:r}=Ei(G4()),{display:i}=Ea(),{adults:o,children:a,arrivalDate:s,departureDate:l,fromDate:u,toDate:d,nights:c,location:f}=Ei(ou()),{metaData:p,bearerToken:y,arrivalDefault:v,departureDefault:_,disableArrivalUserSelection:m,disableDepartureUserSelection:g}=Ei(vo()),b=vo(),h=Te({}),E=de(()=>{const we=[];for(const Pe in h.value){const We=parseInt(Pe),Ge=O.value.roomGroups.find(er=>er.id===We),ut=Ge?.addons,Qn=Ge?.title||"",Tr={roomGroupID:We,title:Qn,addons:ut};h.value[We].forEach(er=>{const tr=er.id,nr=Ge?.rates.find(Vi=>Vi.id===tr),rt=[];if(nr){const{name:Vi,occupantRates:Ta}=nr,To={ratePlanID:tr,name:Vi},Bi=[];er.config.forEach((zi,St)=>{const wo=zi.units,Ao=zi.addons;if(wo>0)for(let wr=0;wr<wo;wr++){const $i=Ta.find(rr=>rr.index===zi.id);if(!$i)continue;const{adultsCount:So,childrenCount:Dt}=$i;let{totalPrice:No}=$i;Vt.value&&(No=Vt.value.offer.rooms.find(rr=>rr.ratePlanID===tr&&rr.roomGroupID===We).totalHotelPrice);const ko=[];if(ut){for(const rr in Ao[wr]){const Ui=parseInt(rr),qi=Ao[wr][Ui];if(qi>0){const{name:Jr,price:Ki,quantityStrategy:Zr}=ut.find(wn=>wn.id===Ui);ko.push({addonID:Ui,name:Jr,price:Ki,quantity:qi,totalPrice:H4(Ki,Zr,c.value,So,Dt)*qi})}}Bi.push({configIdx:St,roomIdx:wr,adultsCount:So,childrenCount:Dt,totalPrice:No,roomAddons:ko})}}}),Bi.length>0&&(To.rooms=Bi,rt.push(To))}rt.length>0&&(Tr.variants=rt)}),Tr.variants&&we.push(Tr)}return we});function k(){for(const we in h.value){const Pe=parseInt(we);h.value[Pe].forEach(We=>{We.config.forEach(Ge=>{Ge.units=0})})}}const T=de(()=>E.value.every(we=>we.addons?.length===0)),A=de(()=>E.value.length>0);function C(we,Pe,We){h.value[we][Pe].config[We].units=0}const N=de(()=>{let we=0;const Pe=0-r.value;if(x.value)we=Pe+Oe.value.extraPrice;else{const We=E.value.flatMap(({variants:Ge})=>Ge).flatMap(({rooms:Ge})=>Ge).reduce((Ge,{totalPrice:ut})=>Ge+ut,Pe);we=E.value.flatMap(({variants:Ge})=>Ge).flatMap(({rooms:Ge})=>Ge).flatMap(({roomAddons:Ge})=>Ge).reduce((Ge,{totalPrice:ut})=>Ge+ut,We)}return we}),O=Te({}),S=Te(!0),L=Te(0),R=Te(NaN),D=Te(NaN),B=Te(""),q=Te(""),re=Te(""),Y=Te(""),j=Te(""),I=kt("konnectio_name","",void 0,{serializer:yt.string}),F=kt("konnectio_nameTitle",2,void 0,{serializer:yt.number}),z=kt("konnectio_email","",void 0,{serializer:yt.string}),te=kt("konnectio_phone","",void 0,{serializer:yt.string}),J=kt("konnectio_company","",void 0,{serializer:yt.string}),H=kt("konnectio_postal","",void 0,{serializer:yt.string}),X=kt("konnectio_city","",void 0,{serializer:yt.string}),ie=kt("konnectio_country",57,void 0,{serializer:yt.number}),oe=kt("konnectio_address","",void 0,{serializer:yt.string}),ue=Te(""),he=Te(""),V=Te(!1),P=Te(!1),x=de(()=>!isNaN(R.value)),$=()=>b.metaData.hotels.findIndex(we=>we.id===f.value),Z=de(()=>b.metaData.hotels[$()]),se=de(()=>b.metaData.hotels&&b.metaData.hotels.length>1),U=de(()=>b.metaData.hotels?b.metaData.hotels.flatMap(we=>({value:we.id,label:we.name})):[]),G=de(()=>Z.value.termsOfService?Z.value.termsOfService:""),ee=de(()=>Z.value.country?Z.value.country.name:""),Q=de(()=>b.metaData.countries?b.metaData.countries:[]),ae=de(()=>Z.value.name?Z.value.name:""),le=de(()=>b.metaData&&Object.keys(b.metaData).length!==0),K=de(()=>Object.keys(O.value).length!==0),ne=de(()=>!(!I.value[1]||!z.value||!(te.value.length>=5)||!H.value||!X.value||!oe.value)),pe=de(()=>L.value===1&&S.value),ve=de(()=>L.value===3&&S.value),ge=de(()=>{if(O.value.templates)return O.value.templates.find(we=>we.id===R.value)});function xe(we){if(ge.value)return ge.value.templateRoomGroups.find(Pe=>Pe.roomGroupID===we)}const Oe=de(()=>{if(ge.value)return ge.value.templateRoomGroups.find(we=>we.id===D.value)});function Qe(we){return O.value.roomGroups.find(Pe=>Pe.id===we)}function Jn(we,Pe){return`[REMARKS]: ${ue.value} \r
37
+ `?(this.line++,this.column=0):this.column++,t},e.prototype.consumeCharRef=function(){var t=this.input.indexOf(";",this.index);if(t!==-1){var n=this.input.slice(this.index,t),r=this.entityParser.parse(n);if(r){for(var i=n.length;i;)this.consume(),i--;return this.consume(),r}}},e.prototype.markTagStart=function(){this.delegate.tagOpen()},e.prototype.appendToTagName=function(t){this.tagNameBuffer+=t,this.delegate.appendToTagName(t)},e.prototype.isIgnoredEndTag=function(){var t=this.tagNameBuffer;return t==="title"&&this.input.substring(this.index,this.index+8)!=="</title>"||t==="style"&&this.input.substring(this.index,this.index+8)!=="</style>"||t==="script"&&this.input.substring(this.index,this.index+9)!=="<\/script>"},e}(),RT=function(){function e(t,n){n===void 0&&(n={}),this.options=n,this.token=null,this.startLine=1,this.startColumn=0,this.tokens=[],this.tokenizer=new IT(this,t,n.mode),this._currentAttribute=void 0}return e.prototype.tokenize=function(t){return this.tokens=[],this.tokenizer.tokenize(t),this.tokens},e.prototype.tokenizePart=function(t){return this.tokens=[],this.tokenizer.tokenizePart(t),this.tokens},e.prototype.tokenizeEOF=function(){return this.tokens=[],this.tokenizer.tokenizeEOF(),this.tokens[0]},e.prototype.reset=function(){this.token=null,this.startLine=1,this.startColumn=0},e.prototype.current=function(){var t=this.token;if(t===null)throw new Error("token was unexpectedly null");if(arguments.length===0)return t;for(var n=0;n<arguments.length;n++)if(t.type===arguments[n])return t;throw new Error("token type was unexpectedly "+t.type)},e.prototype.push=function(t){this.token=t,this.tokens.push(t)},e.prototype.currentAttribute=function(){return this._currentAttribute},e.prototype.addLocInfo=function(){this.options.loc&&(this.current().loc={start:{line:this.startLine,column:this.startColumn},end:{line:this.tokenizer.line,column:this.tokenizer.column}}),this.startLine=this.tokenizer.line,this.startColumn=this.tokenizer.column},e.prototype.beginDoctype=function(){this.push({type:"Doctype",name:""})},e.prototype.appendToDoctypeName=function(t){this.current("Doctype").name+=t},e.prototype.appendToDoctypePublicIdentifier=function(t){var n=this.current("Doctype");n.publicIdentifier===void 0?n.publicIdentifier=t:n.publicIdentifier+=t},e.prototype.appendToDoctypeSystemIdentifier=function(t){var n=this.current("Doctype");n.systemIdentifier===void 0?n.systemIdentifier=t:n.systemIdentifier+=t},e.prototype.endDoctype=function(){this.addLocInfo()},e.prototype.beginData=function(){this.push({type:"Chars",chars:""})},e.prototype.appendToData=function(t){this.current("Chars").chars+=t},e.prototype.finishData=function(){this.addLocInfo()},e.prototype.beginComment=function(){this.push({type:"Comment",chars:""})},e.prototype.appendToCommentData=function(t){this.current("Comment").chars+=t},e.prototype.finishComment=function(){this.addLocInfo()},e.prototype.tagOpen=function(){},e.prototype.beginStartTag=function(){this.push({type:"StartTag",tagName:"",attributes:[],selfClosing:!1})},e.prototype.beginEndTag=function(){this.push({type:"EndTag",tagName:""})},e.prototype.finishTag=function(){this.addLocInfo()},e.prototype.markTagAsSelfClosing=function(){this.current("StartTag").selfClosing=!0},e.prototype.appendToTagName=function(t){this.current("StartTag","EndTag").tagName+=t},e.prototype.beginAttribute=function(){this._currentAttribute=["","",!1]},e.prototype.appendToAttributeName=function(t){this.currentAttribute()[0]+=t},e.prototype.beginAttributeValue=function(t){this.currentAttribute()[2]=t},e.prototype.appendToAttributeValue=function(t){this.currentAttribute()[1]+=t},e.prototype.finishAttributeValue=function(){this.current("StartTag").attributes.push(this._currentAttribute)},e.prototype.reportSyntaxError=function(t){this.current().syntaxError=t},e}();function xT(e,t){var n=new RT(new NT(TT),t);return n.tokenize(e)}const N4="LinkifyResult",iu="StartTag",k4="EndTag",dh="Chars",MT="Comment",DT="Doctype";function HT(e,t){t===void 0&&(t={});const n=xT(e),r=[],i=[],o=new gp(t,VT);for(let a=0;a<n.length;a++){const s=n[a];if(s.type===iu){r.push(s);const l=s.tagName.toUpperCase();if(!(l==="A"||o.ignoreTags.indexOf(l)>=0))continue;let d=r.length;FT(l,n,++a,r),a+=r.length-d-1}else if(s.type!==dh)r.push(s);else{const l=jT(s.chars,o);r.push.apply(r,l)}}for(let a=0;a<r.length;a++){const s=r[a];switch(s.type){case N4:i.push(s.rendered);break;case iu:{let l="<"+s.tagName;s.attributes.length>0&&(l+=" "+zT(s.attributes).join(" ")),s.selfClosing&&(l+=" /"),l+=">",i.push(l);break}case k4:i.push(`</${s.tagName}>`);break;case dh:i.push(hh(s.chars));break;case MT:i.push(`<!--${hh(s.chars)}-->`);break;case DT:{let l=`<!DOCTYPE ${s.name}`;s.publicIdentifier&&(l+=` PUBLIC "${s.publicIdentifier}"`),s.systemIdentifier&&(l+=` "${s.systemIdentifier}"`),l+=">",i.push(l);break}}}return i.join("")}function jT(e,t){const n=OT(e),r=[];for(let i=0;i<n.length;i++){const o=n[i];o.t==="nl"&&t.get("nl2br")?r.push({type:iu,tagName:"br",attributes:[],selfClosing:!0}):!o.isLink||!t.check(o)?r.push({type:dh,chars:o.toString()}):r.push({type:N4,rendered:t.render(o)})}return r}function FT(e,t,n,r){let i=1;for(;n<t.length&&i>0;){let o=t[n];o.type===iu&&o.tagName.toUpperCase()===e?i++:o.type===k4&&o.tagName.toUpperCase()===e&&i--,r.push(o),n++}return r}function VT(e){let{tagName:t,attributes:n,content:r}=e;return`<${t} ${BT(n)}>${hh(r)}</${t}>`}function hh(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;")}function C4(e){return e.replace(/"/g,"&quot;")}function BT(e){const t=[];for(const n in e){const r=e[n]+"";t.push(`${n}="${C4(r)}"`)}return t.join(" ")}function zT(e){const t=[];for(let n=0;n<e.length;n++){const r=e[n][0],i=e[n][1]+"";t.push(`${r}="${C4(i)}"`)}return t}const L4="en",$T=document.documentElement.lang.slice(0,2)||L4,P4=y7({warnHtmlMessage:!1,fallbackRootWithEmptyString:!1,silentTranslationWarn:!0,allowComposition:!0,legacy:!1,globalInjection:!0,locale:$T,fallbackLocale:L4}),He=P4.global;function UT(e){for(const t in e)He.setLocaleMessage(t,e[t])}var ph=(e=>(e[e.Accept=0]="Accept",e[e.Error=1]="Error",e[e.Cancel=2]="Cancel",e[e.Close=3]="Close",e[e.Open=4]="Open",e[e.CheckResult=5]="CheckResult",e))(ph||{}),Ct=(e=>(e[e.Invalid=0]="Invalid",e[e.PerUnit=1]="PerUnit",e[e.PerPerson=2]="PerPerson",e[e.PerAdult=3]="PerAdult",e[e.PerChild=4]="PerChild",e[e.PerNight=5]="PerNight",e[e.PerPersonPerNight=6]="PerPersonPerNight",e[e.PerAdultPerNight=7]="PerAdultPerNight",e[e.PerChildPerNight=8]="PerChildPerNight",e[e.Consumption=9]="Consumption",e[e.EarlyCheckIn=10]="EarlyCheckIn",e[e.EarlyCheckOut=11]="EarlyCheckOut",e[e.OneTimePayment=12]="OneTimePayment",e))(Ct||{}),ua=(e=>(e[e.None=0]="None",e[e.AskForCreditCard=2]="AskForCreditCard",e[e.Stripe=18]="Stripe",e[e.DIBS=47]="DIBS",e[e.EasyPay=56]="EasyPay",e[e.ReePay=57]="ReePay",e))(ua||{}),I4=(e=>(e.Selective="selective",e.Wholesale="wholesale",e.Simplified="simplified",e.Template="template",e.Event="event",e))(I4||{}),R4=(e=>(e.Default="default",e.Minimal="minimal",e))(R4||{}),x4=(e=>(e[e.InitialState=0]="InitialState",e[e.WaitingForResponse=1]="WaitingForResponse",e[e.ReadyToPay=2]="ReadyToPay",e[e.PaymentSuccess=3]="PaymentSuccess",e))(x4||{}),M4=(e=>(e[e.None=0]="None",e[e.Hourly=1]="Hourly",e[e.FullDayEvent=2]="FullDayEvent",e[e.Weekly=3]="Weekly",e))(M4||{}),D4=(e=>(e[e.InitialState=0]="InitialState",e[e.AvailabilityState=1]="AvailabilityState",e[e.ReservationState=2]="ReservationState",e[e.PaymentState=3]="PaymentState",e))(D4||{});function qT(e){switch(e){case Ct.PerUnit:return He.t("general.perUnit");case Ct.PerPerson:return He.t("general.perPerson");case Ct.PerAdult:return He.t("general.perAdult");case Ct.PerChild:return He.t("general.perChild");case Ct.PerNight:return He.t("general.perNight");case Ct.PerPersonPerNight:return He.t("general.perPersonPerNight");case Ct.PerAdultPerNight:return He.t("general.perAdultPerNight");case Ct.PerChildPerNight:return He.t("general.perChildPerNight")}}function H4(e,t,n,r=0,i=0){switch(t){case Ct.PerUnit:return e;case Ct.PerPerson:return e*(r+i);case Ct.PerAdult:return e*r;case Ct.PerChild:return e*i;case Ct.PerNight:return e*n;case Ct.PerPersonPerNight:return e*(r+i)*n;case Ct.PerAdultPerNight:return e*r*n;case Ct.PerChildPerNight:return e*i*n;case Ct.OneTimePayment:return e;default:return e}}function Y0(e){return e===void 0?e:e.replace(/([!?.])([a-z])/g,function(t,n,r){return r.toUpperCase()})}function KT(e){return e!==void 0?HT(e,{defaultProtocol:"https",target:"_blank",rel:"noopener",nl2br:!0}):""}function X0(e){switch(e){case 2:return He.t("booking.reservation.nameTitleMr");case 3:return He.t("booking.reservation.nameTitleMs");case 4:return He.t("booking.reservation.nameTitleMrs");case 5:return He.t("booking.reservation.nameTitleDr");default:return""}}function WT(e){let t,n,r,i,o,a,s,l,u,d=0,c=0,f="";const p="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",y=[];if(!e)return e;do t=e.charCodeAt(d++),n=e.charCodeAt(d++),r=e.charCodeAt(d++),l=t<<16|n<<8|r,i=63&l>>18,o=63&l>>12,a=63&l>>6,s=63&l,y[c++]=p.charAt(i)+p.charAt(o)+p.charAt(a)+p.charAt(s);while(d<e.length);return f=y.join(""),u=e.length%3,(u?f.slice(0,u-3):f)+"===".slice(u||3)}function GT(e){return e.toLowerCase()}function YT(e){return new Date(e).toISOString()}function vp(e,t){const n=new Date(e),r=new Date(t),i=r.getTime()-n.getTime();return Math.round(i/(1e3*60*60*24))}function Ur(e=!1){return e?document.documentElement.lang||"en-US":document.documentElement.lang.slice(0,2)||"en"}function af(e=10){const t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",n=t.length;let r="";for(let i=0;i<e;i++)r+=t.charAt(Math.floor(Math.random()*n));return r}function rc(e,t=0){let n=new Date(e);n=new Date(n.setDate(n.getDate()+t));let r;switch(Ur()){case"da":case"se":r={0:"jan",1:"feb",2:"mar",3:"apr",4:"maj",5:"jun",6:"jul",7:"aug",8:"sep",9:"okt",10:"nov",11:"dec"};break;case"no":r={0:"jan",1:"feb",2:"mar",3:"apr",4:"mai",5:"jun",6:"jul",7:"aug",8:"sep",9:"okt",10:"nov",11:"des"};break;case"de":r={0:"jan",1:"feb",2:"mär",3:"apr",4:"mai",5:"jun",6:"jul",7:"aug",8:"sep",9:"okt",10:"nov",11:"dez"};break;case"fi":r={0:"tam",1:"hel",2:"maa",3:"huh",4:"tou",5:"kes",6:"hei",7:"elo",8:"syy",9:"lok",10:"mar",11:"jou"};break;case"fr":r={0:"jan",1:"feb",2:"mar",3:"apr",4:"mai",5:"jun",6:"jui",7:"aoû",8:"sep",9:"okt",10:"nov",11:"dec"};break;case"it":r={0:"gen",1:"feb",2:"mar",3:"apr",4:"mag",5:"giu",6:"lug",7:"ago",8:"set",9:"ott",10:"nov",11:"dic"};break;default:r={0:"Jan",1:"Feb",2:"Mar",3:"Apr",4:"May",5:"Jun",6:"Jul",7:"Aug",8:"Sep",9:"Oct",10:"Nov",11:"Dec"};break}return`${n.getDate()} ${r[n.getMonth()]} ${n.getFullYear()}`}function XT(e){const t=e.sort();for(let n=1;n<t.length;n++)if(t[n]!=t[n-1]+1)return!1;return!0}function JT(e){let t=e;const n=[6,7],r=e.split(",").map(Number);let i;switch(Ur()){case"da":i={1:"Man",2:"Tir",3:"Ons",4:"Tor",5:"Fre",6:"Lør",7:"Søn"};break;default:i={1:"Mon",2:"Tue",3:"Wed",4:"Thu",5:"Fri",6:"Sat",7:"Sun"};break}return r.length===7?t=He.t("general.everyday"):n.some(o=>r.includes(o))?t=He.t("general.weekends"):XT(r)&&r.length>1?t=`${i[r[0]]} - ${i[r[r.length-1]]}`:t="-",t}function ZT(e,t,n=!1){if(n){const r=e.split("-");e=`${r[1]}-${r[0]}-${r[2]}`;const i=t.split("-");t=`${i[1]}-${i[0]}-${i[2]}`}return e===t?`${rc(e)}}`:`${rc(e)} - ${rc(t)}`}function ic(e){let t=e;const n=e.split(":");return n[2]&&(t=`${n[0]}:${n[1]}`),t}function QT(e,t){return e===t?ic(e):`${ic(e)} - ${ic(t)}`}function ew(e,t){return new Intl.NumberFormat(Ur(!0),{style:"currency",currency:t}).format(e)}function tw(e){return e?e.charAt(0).toUpperCase()+e.slice(1):""}const J0=2,Z0=0,Q0=()=>new Date(new Date(new Date().setDate(new Date().getDate()+1)).setHours(12,0,0,0)),e2=()=>new Date(new Date(new Date().setDate(new Date().getDate()+2)).setHours(12,0,0,0)),t2=NaN,ou=Ri("availability",()=>{const e=kt("konnectio_expiry_date",new Date,void 0,{serializer:yt.date}),t=kt("konnectio_adults",J0,void 0,{serializer:yt.number}),n=kt("konnectio_children",Z0,void 0,{serializer:yt.number}),r=kt("konnectio_arrival_date",Q0(),void 0,{serializer:yt.date}),i=kt("konnectio_departure_date",e2(),void 0,{serializer:yt.date}),o=kt("konnectio_location",t2,void 0,{serializer:yt.number});function a(p){const y=new Date(p),v=""+y.getFullYear();let _=""+(y.getMonth()+1),m=""+y.getDate();return _.length<2&&(_="0"+_),m.length<2&&(m="0"+m),[v,_,m].join("-")}const s=de(()=>new Date(e.value)<new Date),l=de(()=>a(r.value)),u=de(()=>a(i.value)),d=de(()=>vp(r.value,i.value));function c(){const y=new Date(new Date().getTime()+432e5);e.value=y}function f(){t.value=J0,n.value=Z0,r.value=Q0(),i.value=e2(),o.value=t2,c()}return{fromDate:l,toDate:u,expiryDate:e,adults:t,children:n,arrivalDate:r,departureDate:i,location:o,isExpired:s,nights:d,setNewExpiryDate:c,reset:f}}),mh=e=>typeof e=="function",nw=Object.prototype.toString,rw=e=>nw.call(e),ed=e=>rw(e)==="[object Object]";function gh(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function n2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function vh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?n2(Object(n),!0).forEach(function(r){gh(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):n2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var iw=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return new Promise(function(r,i){if(!(typeof document>"u")){var o=document.head||document.getElementsByTagName("head")[0],a=document.createElement("script");if(a.async=!0,a.src=t,a.defer=n.defer,n.preconnectOrigin){var s=document.createElement("link");s.href=n.preconnectOrigin,s.rel="preconnect",o.appendChild(s)}o.appendChild(a),a.onload=r,a.onerror=i}})},ow=function e(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];if(!r.length)return t;var o=r.shift();if(!(!ed(t)||!ed(o))){for(var a in o)ed(o[a])?(t[a]||Object.assign(t,gh({},a,{})),e(t[a],o[a])):Object.assign(t,gh({},a,o[a]));return e.apply(void 0,[t].concat(r))}},Xs=function(){return!(typeof window>"u"||typeof document>"u")},r2=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;Xs()},aw=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return r2('Missing "appName" property inside the plugin options.',t.app_name==null),r2('Missing "name" property in the route.',t.screen_name==null),t};function sw(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",n=e.split("/"),r=t.split("/");return n[0]===""&&t[t.length-1]==="/"&&n.shift(),r.join("/")+n.join("/")}var lw=function(){return{bootstrap:!0,onReady:null,onError:null,onBeforeTrack:null,onAfterTrack:null,pageTrackerTemplate:null,customResourceURL:"https://www.googletagmanager.com/gtag/js",customPreconnectOrigin:"https://www.googletagmanager.com",deferScriptLoad:!1,pageTrackerExcludedRoutes:[],pageTrackerEnabled:!0,enabled:!0,disableScriptLoad:!1,pageTrackerScreenviewEnabled:!1,appName:null,pageTrackerUseFullPath:!1,pageTrackerPrependBase:!0,pageTrackerSkipSamePath:!0,globalDataLayerName:"dataLayer",globalObjectName:"gtag",defaultGroupName:"default",includes:null,config:{id:null,params:{send_page_view:!1}}}},j4={},F4=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=lw();j4=ow(n,t)},En=function(){return j4},go=function(){var e,t=En(),n=t.globalObjectName;!Xs()||typeof window[n]>"u"||(e=window)[n].apply(e,arguments)},yp=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=En(),i=r.config,o=r.includes;go.apply(void 0,["config",i.id].concat(t)),Array.isArray(o)&&o.forEach(function(a){go.apply(void 0,["config",a.id].concat(t))})},i2=function(t,n){Xs()&&(window["ga-disable-".concat(t)]=n)},V4=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,t=En(),n=t.config,r=t.includes;i2(n.id,e),Array.isArray(r)&&r.forEach(function(i){return i2(i.id,e)})},B4=function(){V4(!0)},cw=function(){V4(!1)},z4,uw=function(t){z4=t},bp=function(){return z4},$n=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=En(),r=n.includes,i=n.defaultGroupName;t.send_to==null&&Array.isArray(r)&&r.length&&(t.send_to=r.map(function(o){return o.id}).concat(i)),go("event",e,t)},$4=function(e){if(Xs()){var t;if(typeof e=="string")t={page_path:e};else if(e.path||e.fullPath){var n=En(),r=n.pageTrackerUseFullPath,i=n.pageTrackerPrependBase,o=bp(),a=o&&o.options.base,s=r?e.fullPath:e.path;t=vh(vh({},e.name&&{page_title:e.name}),{},{page_path:i?sw(s,a):s})}else t=e;t.page_location==null&&(t.page_location=window.location.href),t.send_page_view==null&&(t.send_page_view=!0),$n("page_view",t)}},U4=function(e){var t=En(),n=t.appName;if(e){var r;typeof e=="string"?r={screen_name:e}:r=e,r.app_name=r.app_name||n,$n("screen_view",r)}},fw=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];$n.apply(void 0,["exception"].concat(t))},dw=function(e){yp("linker",e)},hw=function(e){$n("timing_complete",e)},pw=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];go.apply(void 0,["set"].concat(t))},mw=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];$n.apply(void 0,["refund"].concat(t))},q4=function(e){$n("purchase",e)},gw=function(e){yp({custom_map:e})},vw=Object.freeze({__proto__:null,query:go,config:yp,optOut:B4,optIn:cw,pageview:$4,screenview:U4,exception:fw,linker:dw,time:hw,set:pw,refund:mw,purchase:q4,customMap:gw,event:$n}),yw=function(t){t.config.globalProperties.$gtag=vw},bw=function(){if(Xs()){var e=En(),t=e.enabled,n=e.globalObjectName,r=e.globalDataLayerName;return window[n]==null&&(window[r]=window[r]||[],window[n]=function(){window[r].push(arguments)}),window[n]("js",new Date),t||B4(),window[n]}},o2=function(t){return vh({send_page_view:!1},t)},K4=function(){var e=En(),t=e.config,n=e.includes;go("config",t.id,o2(t.params)),Array.isArray(n)&&n.forEach(function(r){go("config",r.id,o2(r.params))})},a2=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=En(),r=n.appName,i=n.pageTrackerTemplate,o=n.pageTrackerScreenviewEnabled,a=n.pageTrackerSkipSamePath;if(!(a&&e.path===t.path)){var s=e;if(mh(i)?s=i(e,t):o&&(s=aw({app_name:r,screen_name:e.name})),o){U4(s);return}$4(s)}},s2=function(t){var n=En(),r=n.pageTrackerExcludedRoutes;return r.includes(t.path)||r.includes(t.name)},_w=function(){var e=En(),t=e.onBeforeTrack,n=e.onAfterTrack,r=bp();r.isReady().then(function(){Dn().then(function(){var i=r.currentRoute;K4(),!s2(i.value)&&a2(i.value)}),r.afterEach(function(i,o){Dn().then(function(){s2(i)||(mh(t)&&t(i,o),a2(i,o),mh(n)&&n(i,o))})})})},W4=function(){var e=En(),t=e.onReady,n=e.onError,r=e.globalObjectName,i=e.globalDataLayerName,o=e.config,a=e.customResourceURL,s=e.customPreconnectOrigin,l=e.deferScriptLoad,u=e.pageTrackerEnabled,d=e.disableScriptLoad,c=!!(u&&bp());if(bw(),c?_w():K4(),!d)return iw("".concat(a,"?id=").concat(o.id,"&l=").concat(i),{preconnectOrigin:s,defer:l}).then(function(){t&&t(window[r])}).catch(function(f){return n&&n(f),f})},Ew=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0;yw(t),F4(n),uw(r),En().bootstrap&&W4()};const G4=Ri("applyGiftCard",()=>{const{display:e}=Ea(),{bearerToken:t}=Ei(vo()),n=Te(0),r=Te(""),i=Te(""),o=Te(""),a=Te(!1),s=Te(!1);async function l(){r.value!==""?(s.value=!0,await Mr.get("https://production.hotel-service.konnectio.dk/api/gift-card/validate",{params:{giftcardCode:r.value,lang:Ur()},headers:{Authorization:t.value,Accept:"application/json","Fresh-Booking-Ver":"4.0.53"}}).then(d=>{const{valid:c,amount:f,expirationDate:p,productName:y}=d.data;c?(n.value=f,i.value=p,o.value=y,a.value=!0,e({message:He.t("alert.success.giftCardApplied"),type:"success"})):(a.value=!1,e({message:He.t("alert.error.giftCardInvalid"),type:"warning"}))}),s.value=!1):e({message:He.t("alert.error.giftCardEmpty"),type:"error"})}function u(){n.value=0,r.value="",a.value=!1,e({message:He.t("alert.success.giftCardRemoved"),type:"success"})}return{amount:n,voucher:r,expirationDate:i,productName:o,isValid:a,isLoading:s,apply:l,reset:u}}),Y4=Ri("payment",()=>{const{display:e}=Ea(),{paymentGatewayId:t}=Ei(vo()),n=Te({}),r=de(()=>t.value!==ua.None),i=de(()=>n.value&&n.value.guest?n.value.guest.name:""),o=de(()=>n.value&&n.value.guest?n.value.guest.email:""),a=de(()=>n.value&&n.value.guest?n.value.guest.phone:""),s=de(()=>n.value.adults),l=de(()=>n.value.children),u=de(()=>n.value.totalPrice||0),d=de(()=>n.value.totalVAT||0),c=de(()=>n.value.offerDate),f=de(()=>u.value-d.value),p=de(()=>n.value.orderLinesSummary),y=de(()=>p.value?p.value.length>0:!1);async function v({callback:_,response:m}){if(!m.error)if(!m.offer)e({message:He.t("booking.other.errorMessage"),type:"warning"});else if(n.value=m.offer,m.easyPayment)if(_(),t.value===ua.ReePay){const g=new Reepay.EmbeddedCheckout(m.easyPayment.paymentID,{html_element:"fresh-booking-payment-checkout"});g.addEventHandler(ph.Accept,()=>{e({message:He.t("alert.success.payment"),type:"success"}),_()}),g.addEventHandler(ph.Error,()=>{e({message:He.t("alert.error.payment"),type:"warning"})})}else{const g={checkoutKey:m.easyPayment.checkoutSecretKey,paymentId:m.easyPayment.paymentID,containerId:"fresh-booking-payment-checkout",language:Ur()==="da"?"da-DK":"en-GB"},b=new Dibs.Checkout(g);b.on("payment-completed",()=>{console.log("Konnectio: Payment completed!"),e({message:He.t("alert.success.payment"),type:"success"}),q4({transaction_id:m.offer.uniqueID,affiliation:"Konnectio Reservation",value:m.offer.totalPrice,tax:m.offer.totalVAT,shipping:0,items:m.offer.rooms.map(h=>({item_id:h.id,item_name:`${h.roomGroupName} (${h.roomGroupRatePlanName})`,quantity:1,price:h.totalPrice,start_date:h.arriveDate,end_date:h.leaveDate}))}),_()}),b.on("pay-initialized",()=>{b.send("payment-order-finalized",!0)})}else _(2)}return{offerData:n,hasPaymentGateway:r,name:i,email:o,phone:a,adults:s,children:l,totalPrice:u,totalVAT:d,offerDate:c,subTotalPrice:f,orderSummary:p,hasOrderLines:y,pay:v}}),X4=Ri("hotel",()=>{const e=_p(),t=Y4(),{voucher:n,amount:r}=Ei(G4()),{display:i}=Ea(),{adults:o,children:a,arrivalDate:s,departureDate:l,fromDate:u,toDate:d,nights:c,location:f}=Ei(ou()),{metaData:p,bearerToken:y,arrivalDefault:v,departureDefault:_,disableArrivalUserSelection:m,disableDepartureUserSelection:g}=Ei(vo()),b=vo(),h=Te({}),E=de(()=>{const we=[];for(const Pe in h.value){const We=parseInt(Pe),Ge=O.value.roomGroups.find(er=>er.id===We),ut=Ge?.addons,Qn=Ge?.title||"",Tr={roomGroupID:We,title:Qn,addons:ut};h.value[We].forEach(er=>{const tr=er.id,nr=Ge?.rates.find(Vi=>Vi.id===tr),rt=[];if(nr){const{name:Vi,occupantRates:Ta}=nr,To={ratePlanID:tr,name:Vi},Bi=[];er.config.forEach((zi,St)=>{const wo=zi.units,Ao=zi.addons;if(wo>0)for(let wr=0;wr<wo;wr++){const $i=Ta.find(rr=>rr.index===zi.id);if(!$i)continue;const{adultsCount:So,childrenCount:Dt}=$i;let{totalPrice:No}=$i;Vt.value&&(No=Vt.value.offer.rooms.find(rr=>rr.ratePlanID===tr&&rr.roomGroupID===We).totalHotelPrice);const ko=[];if(ut){for(const rr in Ao[wr]){const Ui=parseInt(rr),qi=Ao[wr][Ui];if(qi>0){const{name:Jr,price:Ki,quantityStrategy:Zr}=ut.find(wn=>wn.id===Ui);ko.push({addonID:Ui,name:Jr,price:Ki,quantity:qi,totalPrice:H4(Ki,Zr,c.value,So,Dt)*qi})}}Bi.push({configIdx:St,roomIdx:wr,adultsCount:So,childrenCount:Dt,totalPrice:No,roomAddons:ko})}}}),Bi.length>0&&(To.rooms=Bi,rt.push(To))}rt.length>0&&(Tr.variants=rt)}),Tr.variants&&we.push(Tr)}return we});function k(){for(const we in h.value){const Pe=parseInt(we);h.value[Pe].forEach(We=>{We.config.forEach(Ge=>{Ge.units=0})})}}const T=de(()=>E.value.every(we=>we.addons?.length===0)),A=de(()=>E.value.length>0);function C(we,Pe,We){h.value[we][Pe].config[We].units=0}const N=de(()=>{let we=0;const Pe=0-r.value;if(x.value)we=Pe+Oe.value.extraPrice;else{const We=E.value.flatMap(({variants:Ge})=>Ge).flatMap(({rooms:Ge})=>Ge).reduce((Ge,{totalPrice:ut})=>Ge+ut,Pe);we=E.value.flatMap(({variants:Ge})=>Ge).flatMap(({rooms:Ge})=>Ge).flatMap(({roomAddons:Ge})=>Ge).reduce((Ge,{totalPrice:ut})=>Ge+ut,We)}return we}),O=Te({}),S=Te(!0),L=Te(0),R=Te(NaN),D=Te(NaN),B=Te(""),q=Te(""),re=Te(""),Y=Te(""),j=Te(""),I=kt("konnectio_name","",void 0,{serializer:yt.string}),F=kt("konnectio_nameTitle",2,void 0,{serializer:yt.number}),z=kt("konnectio_email","",void 0,{serializer:yt.string}),te=kt("konnectio_phone","",void 0,{serializer:yt.string}),J=kt("konnectio_company","",void 0,{serializer:yt.string}),H=kt("konnectio_postal","",void 0,{serializer:yt.string}),X=kt("konnectio_city","",void 0,{serializer:yt.string}),ie=kt("konnectio_country",57,void 0,{serializer:yt.number}),oe=kt("konnectio_address","",void 0,{serializer:yt.string}),ue=Te(""),he=Te(""),V=Te(!1),P=Te(!1),x=de(()=>!isNaN(R.value)),$=()=>b.metaData.hotels.findIndex(we=>we.id===f.value),Z=de(()=>b.metaData.hotels[$()]),se=de(()=>b.metaData.hotels&&b.metaData.hotels.length>1),U=de(()=>b.metaData.hotels?b.metaData.hotels.flatMap(we=>({value:we.id,label:we.name})):[]),G=de(()=>Z.value.termsOfService?Z.value.termsOfService:""),ee=de(()=>Z.value.country?Z.value.country.name:""),Q=de(()=>b.metaData.countries?b.metaData.countries:[]),ae=de(()=>Z.value.name?Z.value.name:""),le=de(()=>b.metaData&&Object.keys(b.metaData).length!==0),K=de(()=>Object.keys(O.value).length!==0),ne=de(()=>!(!I.value[1]||!z.value||!(te.value.length>=5)||!H.value||!X.value||!oe.value)),pe=de(()=>L.value===1&&S.value),ve=de(()=>L.value===3&&S.value),ge=de(()=>{if(O.value.templates)return O.value.templates.find(we=>we.id===R.value)});function xe(we){if(ge.value)return ge.value.templateRoomGroups.find(Pe=>Pe.roomGroupID===we)}const Oe=de(()=>{if(ge.value)return ge.value.templateRoomGroups.find(we=>we.id===D.value)});function Qe(we){return O.value.roomGroups.find(Pe=>Pe.id===we)}function Jn(we,Pe){return`[REMARKS]: ${ue.value} \r
38
38
  [ALLERGIES]: ${he.value} \r
39
39
  [REQUESTED ARRIVAL]: ${we} \r
40
- [REQUESTED DEPARTURE]: ${Pe}`}function Tn(we,Pe,We,Ge){const Qn=(Pe?We:Ge?q.value:re.value).split(":");return YT(new Date(we).setUTCHours(parseInt(Qn[0]),parseInt(Qn[1]),0,0))}function Zn(we){return vp(s.value,l.value)*we}async function at(){try{const we=(await Mr.get("https://production.hotel-service.konnectio.dk/api/hotel/metadata",{params:{language:Ur()},headers:{Authorization:y.value,Accept:"application/json","Fresh-Booking-Ver":"4.0.52"}})).data;p.value=we}catch{i({message:He.t("alert.error.couldntFetchMetadata"),type:"warning"})}}async function At(){L.value=1,S.value=!0;let we=f.value;isNaN(we)&&(we=null);try{const Pe=await Mr.get("https://production.hotel-service.konnectio.dk/api/hotel/availability",{params:{fromDate:s.value,toDate:l.value,adultsCount:o.value,childrenCount:a.value,language:Ur(),hotelId:we},headers:{Authorization:y.value,Accept:"application/json","Konnectio-Ver":"4.0.52"}});Pe.status!==200?i({message:`${He.t("booking.other.errorMessage")} (HTTP: ${Pe.status})`,type:"warning"}):(O.value=Pe.data,e.viewItemList())}catch{i({message:He.t("alert.error.couldntFetchListings"),type:"warning"})}S.value=!1}function mn(we=!1){const Pe=[];isNaN(R.value)?E.value.forEach(({variants:ut,roomGroupID:Qn})=>{ut?.forEach(({rooms:Tr,ratePlanID:er})=>{Tr?.forEach(({adultsCount:tr,childrenCount:nr,roomAddons:rt})=>{Pe.push({roomGroupID:Qn,ratePlanID:er,adultsCount:tr,childrenCount:nr,guest:{name:I.value,phone:te.value,email:z.value},roomAddons:rt})})})}):Pe.push({templateID:R.value,roomGroupID:D.value,ratePlanID:null,adultsCount:o.value,childrenCount:a.value,roomAddons:[],guest:{title:X0(F.value),guestID:0,name:I.value,email:z.value,phone:te.value,newsmails:V.value}});let We=f.value;return isNaN(We)&&(We=null),{offerID:Vt.value?Vt.value.offer.id:null,fromDate:u.value,toDate:d.value,hotelId:We,guest:{travellingFor:B.value,title:X0(F.value),guestID:0,name:I.value,email:z.value,firmName:J.value,phone:te.value,country:ie.value,address1:oe.value,postal:String(H.value),city:X.value,newsmails:V.value},giftCardCode:n.value,discountCode:we?j.value:Y.value,selectedRooms:Pe,remark:Jn(Tn(s.value,m.value,v.value,!0),Tn(l.value,g.value,_.value,!1)),checkoutUrl:window.location.origin,privacyUrl:window.location.origin,termsOfserviceURL:window.location.origin}}const Vt=Te(),Bt=Te(!1);async function Xr(){Bt.value=!0,Mr.post("https://production.hotel-service.konnectio.dk/api/hotel/validate-discount-code",mn(),{headers:{Authorization:y.value,Accept:"application/json","Konnectio-Ver":"4.0.52"}}).then(we=>{Bt.value=!1;const Pe=we.data;Pe.discountApplyed===!0?(Vt.value=Pe,j.value=Y.value,Y.value="",i({message:`${He.t("alert.success.discountCodeApplied")}`,type:"success"})):i({message:`${He.t("alert.error.discountCodeInvalid")}`,type:"error"})}).catch(()=>{Bt.value=!1,i({message:`${He.t("alert.error.discountCodeValidation")}`,type:"warning"})})}const Hi=de(()=>Vt.value?.offer.properties);function Er(){Vt.value=void 0,Y.value="",j.value=""}async function ji(we){L.value=3,S.value=!0,await Mr.post("https://production.hotel-service.konnectio.dk/api/hotel/create-reservation",mn(!0),{headers:{Authorization:y.value,Accept:"application/json","Konnectio-Ver":"4.0.52"}}).then(Pe=>{P.value=!1,S.value=!1,t.pay({callback:we,response:Pe.data})}).catch(Pe=>{if(S.value=!1,L.value=2,Pe.response){const{status:We}=Pe.response;i(We===433?{message:He.t("alert.error.noRoomAvailable"),type:"error"}:{message:He.t("booking.other.errorMessage"),type:"warning"})}else i({message:He.t("booking.other.errorMessage"),type:"warning"})})}function Or(){R.value=NaN,D.value=NaN}function Fi(){At()}return{isValidatingDiscountCode:Bt,discountVouchers:Hi,discountCode:Y,appliedDiscountCode:j,resetDiscountVoucher:Er,clearRoomSelection:k,validateDiscountCode:Xr,isTemplateReservation:x,selectionHasNoAddons:T,hasHotelList:se,hotelList:U,areListingsLoading:pe,roomSelect:h,removeRoom:C,termsOfService:G,metaData:p,availabilityData:O,isLoading:S,moduleState:L,templateID:R,roomGroupID:D,travelingFor:B,arrivalTime:q,departureTime:re,name:I,nameTitle:F,email:z,phone:te,firmName:J,postal:H,city:X,country:ie,address:oe,remark:ue,allergies:he,newsMails:V,roomDisplay:E,isPaymentInitialized:P,nights:c,hotelCountry:ee,countries:Q,title:ae,isMetaDataAvailable:le,isAvailabilityDataAvailable:K,totalPrice:N,selectedPackage:ge,isPaymentLoading:ve,getSingleListing:Qe,getSpecifiedPackageRoom:xe,getBasePrice:Zn,getSelectedPackageRoom:Oe,isReservationFormFilled:ne,hasValidRoomSelection:A,fetchMetaData:at,fetchAvailabilityData:At,createReservation:ji,resetTemplate:Or,initialize:Fi,reservationPayload:mn,discountPayload:Vt}}),_p=Ri("tracking",()=>{const e=vo(),t=X4(),n=de(()=>{const f=[];return t.roomDisplay.forEach(({variants:p})=>{p?.forEach(({rooms:y,name:v})=>{y?.forEach(({totalPrice:_})=>{f.push({name:v,quantity:1,price:_})})})}),{items:f,value:t.totalPrice}}),r=de(()=>t.availabilityData.roomGroups.map(f=>({item_id:f.id,item_name:f.title})));function i(){F4({appName:"Konnectio Booking Engine",config:{id:e.googleApiKey,params:{send_page_view:!1}},enabled:e.enableTracking}),W4().then(()=>{})}function o(){$n("view_item_list",{item_list_id:"hotel_rooms",item_list_name:"Hotel rooms",event_label:"Fetched hotel room list",event_category:"ecommerce",items:r.value})}function a({id:f,name:p,value:y,label:v,category:_="general"}){return{items:[{item_id:f,item_name:p}],event_label:v,event_category:_,value:y,currency:e.currency}}function s(f,p){$n(f,a(p))}function l({id:f,name:p,value:y}){s("add_to_cart",{id:f,name:p,value:y,label:"Added to cart",category:"ecommerce"})}function u({id:f,name:p,value:y}){s("remove_from_cart",{id:f,name:p,value:y,label:"Removed to cart",category:"ecommerce"})}function d(f){$n("view_item",{items:[{name:f}]})}function c(){$n("begin_checkout",n.value)}return{hotelItems:r,hotelCart:n,setup:i,viewItem:d,addToCart:l,removeFromCart:u,beginCheckout:c,viewItemList:o}});var J4={},fa={},Js={},Ow=ot.commonjsGlobal&&ot.commonjsGlobal.__awaiter||function(e,t,n,r){function i(o){return o instanceof n?o:new n(function(a){a(o)})}return new(n||(n=Promise))(function(o,a){function s(d){try{u(r.next(d))}catch(c){a(c)}}function l(d){try{u(r.throw(d))}catch(c){a(c)}}function u(d){d.done?o(d.value):i(d.value).then(s,l)}u((r=r.apply(e,t||[])).next())})},Tw=ot.commonjsGlobal&&ot.commonjsGlobal.__generator||function(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(u){return function(d){return l([u,d])}}function l(u){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,i&&(o=u[0]&2?i.return:u[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,u[1])).done)return o;switch(i=0,o&&(u=[u[0]&2,o.value]),u[0]){case 0:case 1:o=u;break;case 4:return n.label++,{value:u[1],done:!1};case 5:n.label++,i=u[1],u=[0];continue;case 7:u=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]<o[3])){n.label=u[1];break}if(u[0]===6&&n.label<o[1]){n.label=o[1],o=u;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(u);break}o[2]&&n.ops.pop(),n.trys.pop();continue}u=t.call(e,n)}catch(d){u=[6,d],i=0}finally{r=o=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}};Object.defineProperty(Js,"__esModule",{value:!0});Js.ReCaptchaInstance=void 0;var ww=function(){function e(t,n,r){this.siteKey=t,this.recaptchaID=n,this.recaptcha=r,this.styleContainer=null}return e.prototype.execute=function(t){return Ow(this,void 0,void 0,function(){return Tw(this,function(n){return[2,this.recaptcha.enterprise?this.recaptcha.enterprise.execute(this.recaptchaID,{action:t}):this.recaptcha.execute(this.recaptchaID,{action:t})]})})},e.prototype.getSiteKey=function(){return this.siteKey},e.prototype.hideBadge=function(){this.styleContainer===null&&(this.styleContainer=document.createElement("style"),this.styleContainer.innerHTML=".grecaptcha-badge{visibility:hidden !important;}",document.head.appendChild(this.styleContainer))},e.prototype.showBadge=function(){this.styleContainer!==null&&(document.head.removeChild(this.styleContainer),this.styleContainer=null)},e}();Js.ReCaptchaInstance=ww;Object.defineProperty(fa,"__esModule",{value:!0});fa.getInstance=fa.load=void 0;var Aw=Js,hi;(function(e){e[e.NOT_LOADED=0]="NOT_LOADED",e[e.LOADING=1]="LOADING",e[e.LOADED=2]="LOADED"})(hi||(hi={}));var Z4=function(){function e(){}return e.load=function(t,n){if(n===void 0&&(n={}),typeof document>"u")return Promise.reject(new Error("This is a library for the browser!"));if(e.getLoadingState()===hi.LOADED)return e.instance.getSiteKey()===t?Promise.resolve(e.instance):Promise.reject(new Error("reCAPTCHA already loaded with different site key!"));if(e.getLoadingState()===hi.LOADING)return t!==e.instanceSiteKey?Promise.reject(new Error("reCAPTCHA already loaded with different site key!")):new Promise(function(i,o){e.successfulLoadingConsumers.push(function(a){return i(a)}),e.errorLoadingRunnable.push(function(a){return o(a)})});e.instanceSiteKey=t,e.setLoadingState(hi.LOADING);var r=new e;return new Promise(function(i,o){r.loadScript(t,n.useRecaptchaNet||!1,n.useEnterprise||!1,n.renderParameters?n.renderParameters:{},n.customUrl).then(function(){e.setLoadingState(hi.LOADED);var a=r.doExplicitRender(grecaptcha,t,n.explicitRenderParameters?n.explicitRenderParameters:{},n.useEnterprise||!1),s=new Aw.ReCaptchaInstance(t,a,grecaptcha);e.successfulLoadingConsumers.forEach(function(l){return l(s)}),e.successfulLoadingConsumers=[],n.autoHideBadge&&s.hideBadge(),e.instance=s,i(s)}).catch(function(a){e.errorLoadingRunnable.forEach(function(s){return s(a)}),e.errorLoadingRunnable=[],o(a)})})},e.getInstance=function(){return e.instance},e.setLoadingState=function(t){e.loadingState=t},e.getLoadingState=function(){return e.loadingState===null?hi.NOT_LOADED:e.loadingState},e.prototype.loadScript=function(t,n,r,i,o){var a=this;n===void 0&&(n=!1),r===void 0&&(r=!1),i===void 0&&(i={}),o===void 0&&(o="");var s=document.createElement("script");s.setAttribute("recaptcha-v3-script","");var l="https://www.google.com/recaptcha/api.js";n&&(r?l="https://recaptcha.net/recaptcha/enterprise.js":l="https://recaptcha.net/recaptcha/api.js"),r&&(l="https://www.google.com/recaptcha/enterprise.js"),o&&(l=o),i.render&&(i.render=void 0);var u=this.buildQueryString(i);return s.src=l+"?render=explicit"+u,new Promise(function(d,c){s.addEventListener("load",a.waitForScriptToLoad(function(){d(s)},r),!1),s.onerror=function(f){e.setLoadingState(hi.NOT_LOADED),c(f)},document.head.appendChild(s)})},e.prototype.buildQueryString=function(t){var n=Object.keys(t);return n.length<1?"":"&"+Object.keys(t).filter(function(r){return!!t[r]}).map(function(r){return r+"="+t[r]}).join("&")},e.prototype.waitForScriptToLoad=function(t,n){var r=this;return function(){window.grecaptcha===void 0?setTimeout(function(){r.waitForScriptToLoad(t,n)},e.SCRIPT_LOAD_DELAY):n?window.grecaptcha.enterprise.ready(function(){t()}):window.grecaptcha.ready(function(){t()})}},e.prototype.doExplicitRender=function(t,n,r,i){var o={sitekey:n,badge:r.badge,size:r.size,tabindex:r.tabindex};return r.container?i?t.enterprise.render(r.container,o):t.render(r.container,o):i?t.enterprise.render(o):t.render(o)},e.loadingState=null,e.instance=null,e.instanceSiteKey=null,e.successfulLoadingConsumers=[],e.errorLoadingRunnable=[],e.SCRIPT_LOAD_DELAY=25,e}();fa.load=Z4.load;fa.getInstance=Z4.getInstance;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ReCaptchaInstance=e.getInstance=e.load=void 0;var t=fa;Object.defineProperty(e,"load",{enumerable:!0,get:function(){return t.load}}),Object.defineProperty(e,"getInstance",{enumerable:!0,get:function(){return t.getInstance}});var n=Js;Object.defineProperty(e,"ReCaptchaInstance",{enumerable:!0,get:function(){return n.ReCaptchaInstance}})})(J4);const vo=Ri("utilities",()=>{const e=_p(),{display:t}=Ea(),{location:n}=Ei(ou()),{reset:r}=ou(),i=kt("konnectio_settings",{},void 0,{serializer:yt.object}),o=kt("konnectio_cLocation",NaN,void 0,{serializer:yt.number}),a=Te({}),s=de(()=>i.value.maximumNightsAvailable),l=de(()=>i.value.enableTracking),u=de(()=>i.value.googleApiKey),d=de(()=>i.value.recaptchaSiteKey),c=de(()=>i.value.recaptchaSecretKey),f=de(()=>i.value.maxAdultAmount),p=de(()=>i.value.maxChildAmount),y=de(()=>i.value.firstSelectableDateOffset),v=de(()=>i.value.lastSelectableDateOffset),_=de(()=>i.value.disableAdultSelection),m=de(()=>i.value.disableArrivalUserSelection),g=de(()=>i.value.disableChildSelection),b=de(()=>i.value.disableDepartureUserSelection),h=de(()=>i.value.bookingUri),E=de(()=>i.value.hideTitle),k=de(()=>i.value.headerHeight),T=de(()=>i.value.enableStickyHeader),A=de(()=>i.value.arrivalDefault),C=de(()=>i.value.arrivalEarliest),N=de(()=>i.value.arrivalLatest),O=de(()=>i.value.departureDefault),S=de(()=>i.value.departureEarliest),L=de(()=>i.value.departureLatest),R=de(()=>i.value.hideArrivalDepartureInputs),D=de(()=>i.value.disableNamePrefix),B=de(()=>i.value.disableGiftCardVoucher),q=de(()=>i.value.disableDiscountVoucher),re=de(()=>i.value.enablePackages),Y=de(()=>i.value.disablePricesFrom),j=de(()=>i.value.hideAvailableRoomAmount),I=de(()=>i.value.hideEvents),F=de(()=>i.value.hideEventTemplates),z=de(()=>i.value.disableNewsletterSignup),te=de(()=>i.value.disableTravelingFor),J=de(()=>i.value.disableTravelingForBleasure),H=de(()=>i.value.disableCompanyField),X=Te(""),ie=de(()=>`Bearer ${X.value}`),oe=de(()=>Object.keys(a.value).length>0),ue=de(()=>oe.value?a.value.hotels[0].currency.currencyCode:""),he=de(()=>oe.value?a.value.hotels[0].currency.id:NaN),V=de(()=>oe.value?a.value.hotels[0].name:""),P=de(()=>a.value.hotels[0].paymentGatewayId),x=de(()=>{let ee=!0;return(P.value===ua.None||P.value===ua.AskForCreditCard)&&(ee=!1),ee});function $(ee){X.value=ee}async function Z(ee="none"){try{if(ee!=="none"){const Q=(await Mr.get(`https://production.hotel-service.konnectio.dk/api/${ee}/metadata`,{params:{language:Ur()},headers:{Authorization:ie.value,Accept:"application/json","Fresh-Booking-Ver":"4.0.52"}})).data;a.value=Q,Q.hotelId&&(isNaN(o.value)?o.value=Q.hotelId:o.value!==Q.hotelId&&(r(),o.value=Q.hotelId),isNaN(n.value)&&Q.hotelId&&(n.value=Q.hotelId))}}catch{t({message:He.t("alert.error.couldntFetchMetadata"),type:"warning"})}}async function se(){await Mr.get("https://production.hotel-service.konnectio.dk/api/utility/get-settings-and-translations",{headers:{Authorization:ie.value,Accept:"application/json","Fresh-Booking-Ver":"4.0.52"}}).then(ee=>{const{settings:Q,translations:ae}=ee.data;i.value=Q,UT(ae),e.setup()})}const U=de(()=>!!d.value);async function G({type:ee="submit",callback:Q}){U.value?(console.log("LOADED!"),J4.load(d.value,{autoHideBadge:!0}).then(ae=>{ae.execute(ee).then(async le=>{console.log(le),(await Mr.get("https://production.hotel-service.konnectio.dk/api/utility/verify-recaptcha",{params:{token:le},headers:{Authorization:ie.value,"Konnectio-Core-Ver":"4.0.52"}})).data.success===!0?Q():t({message:He.t("Robot guy"),type:"warning"})})})):Q()}return{setAccessToken:$,fetchUtilities:se,fetchMetadata:Z,verifyRecaptcha:G,disableDiscountVoucher:q,disableTravelingForBleasure:J,enableStickyHeader:T,hasPaymentGateway:x,name:V,paymentGatewayId:P,metaData:a,currency:ue,currencyId:he,bearerToken:ie,maximumNightsAvailable:s,enableTracking:l,googleApiKey:u,recaptchaSiteKey:d,recaptchaSecretKey:c,maxAdultAmount:f,maxChildAmount:p,firstSelectableDateOffset:y,lastSelectableDateOffset:v,disableAdultSelection:_,disableArrivalUserSelection:m,disableChildSelection:g,disableDepartureUserSelection:b,bookingUri:h,hideTitle:E,headerHeight:k,arrivalDefault:A,arrivalEarliest:C,arrivalLatest:N,departureDefault:O,departureEarliest:S,departureLatest:L,hideArrivalDepartureInputs:R,disableNamePrefix:D,disableGiftCardVoucher:B,enablePackages:re,disablePricesFrom:Y,hideAvailableRoomAmount:j,hideEvents:I,hideEventTemplates:F,disableNewsletterSignup:z,disableTravelingFor:te,disableCompanyField:H,isRecaptchaEnabled:U}});function l2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ye(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?l2(Object(n),!0).forEach(function(r){Tt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function au(e){"@babel/helpers - typeof";return au=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},au(e)}function Sw(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c2(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Nw(e,t,n){return t&&c2(e.prototype,t),n&&c2(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Tt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ep(e,t){return Cw(e)||Pw(e,t)||Q4(e,t)||Rw()}function Zs(e){return kw(e)||Lw(e)||Q4(e)||Iw()}function kw(e){if(Array.isArray(e))return yh(e)}function Cw(e){if(Array.isArray(e))return e}function Lw(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Pw(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],i=!0,o=!1,a,s;try{for(n=n.call(e);!(i=(a=n.next()).done)&&(r.push(a.value),!(t&&r.length===t));i=!0);}catch(l){o=!0,s=l}finally{try{!i&&n.return!=null&&n.return()}finally{if(o)throw s}}return r}}function Q4(e,t){if(e){if(typeof e=="string")return yh(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return yh(e,t)}}function yh(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Iw(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
40
+ [REQUESTED DEPARTURE]: ${Pe}`}function Tn(we,Pe,We,Ge){const Qn=(Pe?We:Ge?q.value:re.value).split(":");return YT(new Date(we).setUTCHours(parseInt(Qn[0]),parseInt(Qn[1]),0,0))}function Zn(we){return vp(s.value,l.value)*we}async function at(){try{const we=(await Mr.get("https://production.hotel-service.konnectio.dk/api/hotel/metadata",{params:{language:Ur()},headers:{Authorization:y.value,Accept:"application/json","Fresh-Booking-Ver":"4.0.53"}})).data;p.value=we}catch{i({message:He.t("alert.error.couldntFetchMetadata"),type:"warning"})}}async function At(){L.value=1,S.value=!0;let we=f.value;isNaN(we)&&(we=null);try{const Pe=await Mr.get("https://production.hotel-service.konnectio.dk/api/hotel/availability",{params:{fromDate:s.value,toDate:l.value,adultsCount:o.value,childrenCount:a.value,language:Ur(),hotelId:we},headers:{Authorization:y.value,Accept:"application/json","Konnectio-Ver":"4.0.53"}});Pe.status!==200?i({message:`${He.t("booking.other.errorMessage")} (HTTP: ${Pe.status})`,type:"warning"}):(O.value=Pe.data,e.viewItemList())}catch{i({message:He.t("alert.error.couldntFetchListings"),type:"warning"})}S.value=!1}function mn(we=!1){const Pe=[];isNaN(R.value)?E.value.forEach(({variants:ut,roomGroupID:Qn})=>{ut?.forEach(({rooms:Tr,ratePlanID:er})=>{Tr?.forEach(({adultsCount:tr,childrenCount:nr,roomAddons:rt})=>{Pe.push({roomGroupID:Qn,ratePlanID:er,adultsCount:tr,childrenCount:nr,guest:{name:I.value,phone:te.value,email:z.value},roomAddons:rt})})})}):Pe.push({templateID:R.value,roomGroupID:D.value,ratePlanID:null,adultsCount:o.value,childrenCount:a.value,roomAddons:[],guest:{title:X0(F.value),guestID:0,name:I.value,email:z.value,phone:te.value,newsmails:V.value}});let We=f.value;return isNaN(We)&&(We=null),{offerID:Vt.value?Vt.value.offer.id:null,fromDate:u.value,toDate:d.value,hotelId:We,guest:{travellingFor:B.value,title:X0(F.value),guestID:0,name:I.value,email:z.value,firmName:J.value,phone:te.value,country:ie.value,address1:oe.value,postal:String(H.value),city:X.value,newsmails:V.value},giftCardCode:n.value,discountCode:we?j.value:Y.value,selectedRooms:Pe,remark:Jn(Tn(s.value,m.value,v.value,!0),Tn(l.value,g.value,_.value,!1)),checkoutUrl:window.location.origin,privacyUrl:window.location.origin,termsOfserviceURL:window.location.origin}}const Vt=Te(),Bt=Te(!1);async function Xr(){Bt.value=!0,Mr.post("https://production.hotel-service.konnectio.dk/api/hotel/validate-discount-code",mn(),{headers:{Authorization:y.value,Accept:"application/json","Konnectio-Ver":"4.0.53"}}).then(we=>{Bt.value=!1;const Pe=we.data;Pe.discountApplyed===!0?(Vt.value=Pe,j.value=Y.value,Y.value="",i({message:`${He.t("alert.success.discountCodeApplied")}`,type:"success"})):i({message:`${He.t("alert.error.discountCodeInvalid")}`,type:"error"})}).catch(()=>{Bt.value=!1,i({message:`${He.t("alert.error.discountCodeValidation")}`,type:"warning"})})}const Hi=de(()=>Vt.value?.offer.properties);function Er(){Vt.value=void 0,Y.value="",j.value=""}async function ji(we){L.value=3,S.value=!0,await Mr.post("https://production.hotel-service.konnectio.dk/api/hotel/create-reservation",mn(!0),{headers:{Authorization:y.value,Accept:"application/json","Konnectio-Ver":"4.0.53"}}).then(Pe=>{P.value=!1,S.value=!1,t.pay({callback:we,response:Pe.data})}).catch(Pe=>{if(S.value=!1,L.value=2,Pe.response){const{status:We}=Pe.response;i(We===433?{message:He.t("alert.error.noRoomAvailable"),type:"error"}:{message:He.t("booking.other.errorMessage"),type:"warning"})}else i({message:He.t("booking.other.errorMessage"),type:"warning"})})}function Or(){R.value=NaN,D.value=NaN}function Fi(){At()}return{isValidatingDiscountCode:Bt,discountVouchers:Hi,discountCode:Y,appliedDiscountCode:j,resetDiscountVoucher:Er,clearRoomSelection:k,validateDiscountCode:Xr,isTemplateReservation:x,selectionHasNoAddons:T,hasHotelList:se,hotelList:U,areListingsLoading:pe,roomSelect:h,removeRoom:C,termsOfService:G,metaData:p,availabilityData:O,isLoading:S,moduleState:L,templateID:R,roomGroupID:D,travelingFor:B,arrivalTime:q,departureTime:re,name:I,nameTitle:F,email:z,phone:te,firmName:J,postal:H,city:X,country:ie,address:oe,remark:ue,allergies:he,newsMails:V,roomDisplay:E,isPaymentInitialized:P,nights:c,hotelCountry:ee,countries:Q,title:ae,isMetaDataAvailable:le,isAvailabilityDataAvailable:K,totalPrice:N,selectedPackage:ge,isPaymentLoading:ve,getSingleListing:Qe,getSpecifiedPackageRoom:xe,getBasePrice:Zn,getSelectedPackageRoom:Oe,isReservationFormFilled:ne,hasValidRoomSelection:A,fetchMetaData:at,fetchAvailabilityData:At,createReservation:ji,resetTemplate:Or,initialize:Fi,reservationPayload:mn,discountPayload:Vt}}),_p=Ri("tracking",()=>{const e=vo(),t=X4(),n=de(()=>{const f=[];return t.roomDisplay.forEach(({variants:p})=>{p?.forEach(({rooms:y,name:v})=>{y?.forEach(({totalPrice:_})=>{f.push({name:v,quantity:1,price:_})})})}),{items:f,value:t.totalPrice}}),r=de(()=>t.availabilityData.roomGroups.map(f=>({item_id:f.id,item_name:f.title})));function i(){F4({appName:"Konnectio Booking Engine",config:{id:e.googleApiKey,params:{send_page_view:!1}},enabled:e.enableTracking}),W4().then(()=>{})}function o(){$n("view_item_list",{item_list_id:"hotel_rooms",item_list_name:"Hotel rooms",event_label:"Fetched hotel room list",event_category:"ecommerce",items:r.value})}function a({id:f,name:p,value:y,label:v,category:_="general"}){return{items:[{item_id:f,item_name:p}],event_label:v,event_category:_,value:y,currency:e.currency}}function s(f,p){$n(f,a(p))}function l({id:f,name:p,value:y}){s("add_to_cart",{id:f,name:p,value:y,label:"Added to cart",category:"ecommerce"})}function u({id:f,name:p,value:y}){s("remove_from_cart",{id:f,name:p,value:y,label:"Removed to cart",category:"ecommerce"})}function d(f){$n("view_item",{items:[{name:f}]})}function c(){$n("begin_checkout",n.value)}return{hotelItems:r,hotelCart:n,setup:i,viewItem:d,addToCart:l,removeFromCart:u,beginCheckout:c,viewItemList:o}});var J4={},fa={},Js={},Ow=ot.commonjsGlobal&&ot.commonjsGlobal.__awaiter||function(e,t,n,r){function i(o){return o instanceof n?o:new n(function(a){a(o)})}return new(n||(n=Promise))(function(o,a){function s(d){try{u(r.next(d))}catch(c){a(c)}}function l(d){try{u(r.throw(d))}catch(c){a(c)}}function u(d){d.done?o(d.value):i(d.value).then(s,l)}u((r=r.apply(e,t||[])).next())})},Tw=ot.commonjsGlobal&&ot.commonjsGlobal.__generator||function(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(u){return function(d){return l([u,d])}}function l(u){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,i&&(o=u[0]&2?i.return:u[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,u[1])).done)return o;switch(i=0,o&&(u=[u[0]&2,o.value]),u[0]){case 0:case 1:o=u;break;case 4:return n.label++,{value:u[1],done:!1};case 5:n.label++,i=u[1],u=[0];continue;case 7:u=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]<o[3])){n.label=u[1];break}if(u[0]===6&&n.label<o[1]){n.label=o[1],o=u;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(u);break}o[2]&&n.ops.pop(),n.trys.pop();continue}u=t.call(e,n)}catch(d){u=[6,d],i=0}finally{r=o=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}};Object.defineProperty(Js,"__esModule",{value:!0});Js.ReCaptchaInstance=void 0;var ww=function(){function e(t,n,r){this.siteKey=t,this.recaptchaID=n,this.recaptcha=r,this.styleContainer=null}return e.prototype.execute=function(t){return Ow(this,void 0,void 0,function(){return Tw(this,function(n){return[2,this.recaptcha.enterprise?this.recaptcha.enterprise.execute(this.recaptchaID,{action:t}):this.recaptcha.execute(this.recaptchaID,{action:t})]})})},e.prototype.getSiteKey=function(){return this.siteKey},e.prototype.hideBadge=function(){this.styleContainer===null&&(this.styleContainer=document.createElement("style"),this.styleContainer.innerHTML=".grecaptcha-badge{visibility:hidden !important;}",document.head.appendChild(this.styleContainer))},e.prototype.showBadge=function(){this.styleContainer!==null&&(document.head.removeChild(this.styleContainer),this.styleContainer=null)},e}();Js.ReCaptchaInstance=ww;Object.defineProperty(fa,"__esModule",{value:!0});fa.getInstance=fa.load=void 0;var Aw=Js,hi;(function(e){e[e.NOT_LOADED=0]="NOT_LOADED",e[e.LOADING=1]="LOADING",e[e.LOADED=2]="LOADED"})(hi||(hi={}));var Z4=function(){function e(){}return e.load=function(t,n){if(n===void 0&&(n={}),typeof document>"u")return Promise.reject(new Error("This is a library for the browser!"));if(e.getLoadingState()===hi.LOADED)return e.instance.getSiteKey()===t?Promise.resolve(e.instance):Promise.reject(new Error("reCAPTCHA already loaded with different site key!"));if(e.getLoadingState()===hi.LOADING)return t!==e.instanceSiteKey?Promise.reject(new Error("reCAPTCHA already loaded with different site key!")):new Promise(function(i,o){e.successfulLoadingConsumers.push(function(a){return i(a)}),e.errorLoadingRunnable.push(function(a){return o(a)})});e.instanceSiteKey=t,e.setLoadingState(hi.LOADING);var r=new e;return new Promise(function(i,o){r.loadScript(t,n.useRecaptchaNet||!1,n.useEnterprise||!1,n.renderParameters?n.renderParameters:{},n.customUrl).then(function(){e.setLoadingState(hi.LOADED);var a=r.doExplicitRender(grecaptcha,t,n.explicitRenderParameters?n.explicitRenderParameters:{},n.useEnterprise||!1),s=new Aw.ReCaptchaInstance(t,a,grecaptcha);e.successfulLoadingConsumers.forEach(function(l){return l(s)}),e.successfulLoadingConsumers=[],n.autoHideBadge&&s.hideBadge(),e.instance=s,i(s)}).catch(function(a){e.errorLoadingRunnable.forEach(function(s){return s(a)}),e.errorLoadingRunnable=[],o(a)})})},e.getInstance=function(){return e.instance},e.setLoadingState=function(t){e.loadingState=t},e.getLoadingState=function(){return e.loadingState===null?hi.NOT_LOADED:e.loadingState},e.prototype.loadScript=function(t,n,r,i,o){var a=this;n===void 0&&(n=!1),r===void 0&&(r=!1),i===void 0&&(i={}),o===void 0&&(o="");var s=document.createElement("script");s.setAttribute("recaptcha-v3-script","");var l="https://www.google.com/recaptcha/api.js";n&&(r?l="https://recaptcha.net/recaptcha/enterprise.js":l="https://recaptcha.net/recaptcha/api.js"),r&&(l="https://www.google.com/recaptcha/enterprise.js"),o&&(l=o),i.render&&(i.render=void 0);var u=this.buildQueryString(i);return s.src=l+"?render=explicit"+u,new Promise(function(d,c){s.addEventListener("load",a.waitForScriptToLoad(function(){d(s)},r),!1),s.onerror=function(f){e.setLoadingState(hi.NOT_LOADED),c(f)},document.head.appendChild(s)})},e.prototype.buildQueryString=function(t){var n=Object.keys(t);return n.length<1?"":"&"+Object.keys(t).filter(function(r){return!!t[r]}).map(function(r){return r+"="+t[r]}).join("&")},e.prototype.waitForScriptToLoad=function(t,n){var r=this;return function(){window.grecaptcha===void 0?setTimeout(function(){r.waitForScriptToLoad(t,n)},e.SCRIPT_LOAD_DELAY):n?window.grecaptcha.enterprise.ready(function(){t()}):window.grecaptcha.ready(function(){t()})}},e.prototype.doExplicitRender=function(t,n,r,i){var o={sitekey:n,badge:r.badge,size:r.size,tabindex:r.tabindex};return r.container?i?t.enterprise.render(r.container,o):t.render(r.container,o):i?t.enterprise.render(o):t.render(o)},e.loadingState=null,e.instance=null,e.instanceSiteKey=null,e.successfulLoadingConsumers=[],e.errorLoadingRunnable=[],e.SCRIPT_LOAD_DELAY=25,e}();fa.load=Z4.load;fa.getInstance=Z4.getInstance;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ReCaptchaInstance=e.getInstance=e.load=void 0;var t=fa;Object.defineProperty(e,"load",{enumerable:!0,get:function(){return t.load}}),Object.defineProperty(e,"getInstance",{enumerable:!0,get:function(){return t.getInstance}});var n=Js;Object.defineProperty(e,"ReCaptchaInstance",{enumerable:!0,get:function(){return n.ReCaptchaInstance}})})(J4);const vo=Ri("utilities",()=>{const e=_p(),{display:t}=Ea(),{location:n}=Ei(ou()),{reset:r}=ou(),i=kt("konnectio_settings",{},void 0,{serializer:yt.object}),o=kt("konnectio_cLocation",NaN,void 0,{serializer:yt.number}),a=Te({}),s=de(()=>i.value.maximumNightsAvailable),l=de(()=>i.value.enableTracking),u=de(()=>i.value.googleApiKey),d=de(()=>i.value.recaptchaSiteKey),c=de(()=>i.value.recaptchaSecretKey),f=de(()=>i.value.maxAdultAmount),p=de(()=>i.value.maxChildAmount),y=de(()=>i.value.firstSelectableDateOffset),v=de(()=>i.value.lastSelectableDateOffset),_=de(()=>i.value.disableAdultSelection),m=de(()=>i.value.disableArrivalUserSelection),g=de(()=>i.value.disableChildSelection),b=de(()=>i.value.disableDepartureUserSelection),h=de(()=>i.value.bookingUri),E=de(()=>i.value.hideTitle),k=de(()=>i.value.headerHeight),T=de(()=>i.value.enableStickyHeader),A=de(()=>i.value.arrivalDefault),C=de(()=>i.value.arrivalEarliest),N=de(()=>i.value.arrivalLatest),O=de(()=>i.value.departureDefault),S=de(()=>i.value.departureEarliest),L=de(()=>i.value.departureLatest),R=de(()=>i.value.hideArrivalDepartureInputs),D=de(()=>i.value.disableNamePrefix),B=de(()=>i.value.disableGiftCardVoucher),q=de(()=>i.value.disableDiscountVoucher),re=de(()=>i.value.enablePackages),Y=de(()=>i.value.disablePricesFrom),j=de(()=>i.value.hideAvailableRoomAmount),I=de(()=>i.value.hideEvents),F=de(()=>i.value.hideEventTemplates),z=de(()=>i.value.disableNewsletterSignup),te=de(()=>i.value.disableTravelingFor),J=de(()=>i.value.disableTravelingForBleasure),H=de(()=>i.value.disableCompanyField),X=Te(""),ie=de(()=>`Bearer ${X.value}`),oe=de(()=>Object.keys(a.value).length>0),ue=de(()=>oe.value?a.value.hotels[0].currency.currencyCode:""),he=de(()=>oe.value?a.value.hotels[0].currency.id:NaN),V=de(()=>oe.value?a.value.hotels[0].name:""),P=de(()=>a.value.hotels[0].paymentGatewayId),x=de(()=>{let ee=!0;return(P.value===ua.None||P.value===ua.AskForCreditCard)&&(ee=!1),ee});function $(ee){X.value=ee}async function Z(ee="none"){try{if(ee!=="none"){const Q=(await Mr.get(`https://production.hotel-service.konnectio.dk/api/${ee}/metadata`,{params:{language:Ur()},headers:{Authorization:ie.value,Accept:"application/json","Fresh-Booking-Ver":"4.0.53"}})).data;a.value=Q,Q.hotelId&&(isNaN(o.value)?o.value=Q.hotelId:o.value!==Q.hotelId&&(r(),o.value=Q.hotelId),isNaN(n.value)&&Q.hotelId&&(n.value=Q.hotelId))}}catch{t({message:He.t("alert.error.couldntFetchMetadata"),type:"warning"})}}async function se(){await Mr.get("https://production.hotel-service.konnectio.dk/api/utility/get-settings-and-translations",{headers:{Authorization:ie.value,Accept:"application/json","Fresh-Booking-Ver":"4.0.53"}}).then(ee=>{const{settings:Q,translations:ae}=ee.data;i.value=Q,UT(ae),e.setup()})}const U=de(()=>!!d.value);async function G({type:ee="submit",callback:Q}){U.value?(console.log("LOADED!"),J4.load(d.value,{autoHideBadge:!0}).then(ae=>{ae.execute(ee).then(async le=>{console.log(le),(await Mr.get("https://production.hotel-service.konnectio.dk/api/utility/verify-recaptcha",{params:{token:le},headers:{Authorization:ie.value,"Konnectio-Core-Ver":"4.0.53"}})).data.success===!0?Q():t({message:He.t("Robot guy"),type:"warning"})})})):Q()}return{setAccessToken:$,fetchUtilities:se,fetchMetadata:Z,verifyRecaptcha:G,disableDiscountVoucher:q,disableTravelingForBleasure:J,enableStickyHeader:T,hasPaymentGateway:x,name:V,paymentGatewayId:P,metaData:a,currency:ue,currencyId:he,bearerToken:ie,maximumNightsAvailable:s,enableTracking:l,googleApiKey:u,recaptchaSiteKey:d,recaptchaSecretKey:c,maxAdultAmount:f,maxChildAmount:p,firstSelectableDateOffset:y,lastSelectableDateOffset:v,disableAdultSelection:_,disableArrivalUserSelection:m,disableChildSelection:g,disableDepartureUserSelection:b,bookingUri:h,hideTitle:E,headerHeight:k,arrivalDefault:A,arrivalEarliest:C,arrivalLatest:N,departureDefault:O,departureEarliest:S,departureLatest:L,hideArrivalDepartureInputs:R,disableNamePrefix:D,disableGiftCardVoucher:B,enablePackages:re,disablePricesFrom:Y,hideAvailableRoomAmount:j,hideEvents:I,hideEventTemplates:F,disableNewsletterSignup:z,disableTravelingFor:te,disableCompanyField:H,isRecaptchaEnabled:U}});function l2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ye(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?l2(Object(n),!0).forEach(function(r){Tt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function au(e){"@babel/helpers - typeof";return au=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},au(e)}function Sw(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c2(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Nw(e,t,n){return t&&c2(e.prototype,t),n&&c2(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Tt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ep(e,t){return Cw(e)||Pw(e,t)||Q4(e,t)||Rw()}function Zs(e){return kw(e)||Lw(e)||Q4(e)||Iw()}function kw(e){if(Array.isArray(e))return yh(e)}function Cw(e){if(Array.isArray(e))return e}function Lw(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Pw(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],i=!0,o=!1,a,s;try{for(n=n.call(e);!(i=(a=n.next()).done)&&(r.push(a.value),!(t&&r.length===t));i=!0);}catch(l){o=!0,s=l}finally{try{!i&&n.return!=null&&n.return()}finally{if(o)throw s}}return r}}function Q4(e,t){if(e){if(typeof e=="string")return yh(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return yh(e,t)}}function yh(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Iw(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
41
41
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Rw(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
42
42
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var u2=function(){},Op={},eb={},tb=null,nb={mark:u2,measure:u2};try{typeof window<"u"&&(Op=window),typeof document<"u"&&(eb=document),typeof MutationObserver<"u"&&(tb=MutationObserver),typeof performance<"u"&&(nb=performance)}catch{}var xw=Op.navigator||{},f2=xw.userAgent,d2=f2===void 0?"":f2,ki=Op,Ze=eb,h2=tb,Ml=nb;ki.document;var Yr=!!Ze.documentElement&&!!Ze.head&&typeof Ze.addEventListener=="function"&&typeof Ze.createElement=="function",rb=~d2.indexOf("MSIE")||~d2.indexOf("Trident/"),Dl,Hl,jl,Fl,Vl,qr="___FONT_AWESOME___",bh=16,ib="fa",ob="svg-inline--fa",yo="data-fa-i2svg",_h="data-fa-pseudo-element",Mw="data-fa-pseudo-element-pending",Tp="data-prefix",wp="data-icon",p2="fontawesome-i2svg",Dw="async",Hw=["HTML","HEAD","STYLE","SCRIPT"],ab=function(){try{return!0}catch{return!1}}(),Je="classic",lt="sharp",Ap=[Je,lt];function Qs(e){return new Proxy(e,{get:function(n,r){return r in n?n[r]:n[Je]}})}var As=Qs((Dl={},Tt(Dl,Je,{fa:"solid",fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fad:"duotone","fa-duotone":"duotone",fab:"brands","fa-brands":"brands",fak:"kit",fakd:"kit","fa-kit":"kit","fa-kit-duotone":"kit"}),Tt(Dl,lt,{fa:"solid",fass:"solid","fa-solid":"solid",fasr:"regular","fa-regular":"regular",fasl:"light","fa-light":"light",fast:"thin","fa-thin":"thin"}),Dl)),Ss=Qs((Hl={},Tt(Hl,Je,{solid:"fas",regular:"far",light:"fal",thin:"fat",duotone:"fad",brands:"fab",kit:"fak"}),Tt(Hl,lt,{solid:"fass",regular:"fasr",light:"fasl",thin:"fast"}),Hl)),Ns=Qs((jl={},Tt(jl,Je,{fab:"fa-brands",fad:"fa-duotone",fak:"fa-kit",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"}),Tt(jl,lt,{fass:"fa-solid",fasr:"fa-regular",fasl:"fa-light",fast:"fa-thin"}),jl)),jw=Qs((Fl={},Tt(Fl,Je,{"fa-brands":"fab","fa-duotone":"fad","fa-kit":"fak","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"}),Tt(Fl,lt,{"fa-solid":"fass","fa-regular":"fasr","fa-light":"fasl","fa-thin":"fast"}),Fl)),Fw=/fa(s|r|l|t|d|b|k|ss|sr|sl|st)?[\-\ ]/,sb="fa-layers-text",Vw=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp|Kit)?.*/i,Bw=Qs((Vl={},Tt(Vl,Je,{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"}),Tt(Vl,lt,{900:"fass",400:"fasr",300:"fasl",100:"fast"}),Vl)),lb=[1,2,3,4,5,6,7,8,9,10],zw=lb.concat([11,12,13,14,15,16,17,18,19,20]),$w=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],ao={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},ks=new Set;Object.keys(Ss[Je]).map(ks.add.bind(ks));Object.keys(Ss[lt]).map(ks.add.bind(ks));var Uw=[].concat(Ap,Zs(ks),["2xs","xs","sm","lg","xl","2xl","beat","border","fade","beat-fade","bounce","flip-both","flip-horizontal","flip-vertical","flip","fw","inverse","layers-counter","layers-text","layers","li","pull-left","pull-right","pulse","rotate-180","rotate-270","rotate-90","rotate-by","shake","spin-pulse","spin-reverse","spin","stack-1x","stack-2x","stack","ul",ao.GROUP,ao.SWAP_OPACITY,ao.PRIMARY,ao.SECONDARY]).concat(lb.map(function(e){return"".concat(e,"x")})).concat(zw.map(function(e){return"w-".concat(e)})),Qa=ki.FontAwesomeConfig||{};function qw(e){var t=Ze.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}function Kw(e){return e===""?!0:e==="false"?!1:e==="true"?!0:e}if(Ze&&typeof Ze.querySelector=="function"){var Ww=[["data-family-prefix","familyPrefix"],["data-css-prefix","cssPrefix"],["data-family-default","familyDefault"],["data-style-default","styleDefault"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-auto-a11y","autoA11y"],["data-search-pseudo-elements","searchPseudoElements"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]];Ww.forEach(function(e){var t=Ep(e,2),n=t[0],r=t[1],i=Kw(qw(n));i!=null&&(Qa[r]=i)})}var cb={styleDefault:"solid",familyDefault:"classic",cssPrefix:ib,replacementClass:ob,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};Qa.familyPrefix&&(Qa.cssPrefix=Qa.familyPrefix);var da=ye(ye({},cb),Qa);da.autoReplaceSvg||(da.observeMutations=!1);var _e={};Object.keys(cb).forEach(function(e){Object.defineProperty(_e,e,{enumerable:!0,set:function(n){da[e]=n,es.forEach(function(r){return r(_e)})},get:function(){return da[e]}})});Object.defineProperty(_e,"familyPrefix",{enumerable:!0,set:function(t){da.cssPrefix=t,es.forEach(function(n){return n(_e)})},get:function(){return da.cssPrefix}});ki.FontAwesomeConfig=_e;var es=[];function Gw(e){return es.push(e),function(){es.splice(es.indexOf(e),1)}}var si=bh,pr={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function Yw(e){if(!(!e||!Yr)){var t=Ze.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;for(var n=Ze.head.childNodes,r=null,i=n.length-1;i>-1;i--){var o=n[i],a=(o.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(a)>-1&&(r=o)}return Ze.head.insertBefore(t,r),e}}var Xw="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function Cs(){for(var e=12,t="";e-- >0;)t+=Xw[Math.random()*62|0];return t}function Oa(e){for(var t=[],n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function Sp(e){return e.classList?Oa(e.classList):(e.getAttribute("class")||"").split(" ").filter(function(t){return t})}function ub(e){return"".concat(e).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function Jw(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,'="').concat(ub(e[n]),'" ')},"").trim()}function sf(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,": ").concat(e[n].trim(),";")},"")}function Np(e){return e.size!==pr.size||e.x!==pr.x||e.y!==pr.y||e.rotate!==pr.rotate||e.flipX||e.flipY}function Zw(e){var t=e.transform,n=e.containerWidth,r=e.iconWidth,i={transform:"translate(".concat(n/2," 256)")},o="translate(".concat(t.x*32,", ").concat(t.y*32,") "),a="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),s="rotate(".concat(t.rotate," 0 0)"),l={transform:"".concat(o," ").concat(a," ").concat(s)},u={transform:"translate(".concat(r/2*-1," -256)")};return{outer:i,inner:l,path:u}}function Qw(e){var t=e.transform,n=e.width,r=n===void 0?bh:n,i=e.height,o=i===void 0?bh:i,a=e.startCentered,s=a===void 0?!1:a,l="";return s&&rb?l+="translate(".concat(t.x/si-r/2,"em, ").concat(t.y/si-o/2,"em) "):s?l+="translate(calc(-50% + ".concat(t.x/si,"em), calc(-50% + ").concat(t.y/si,"em)) "):l+="translate(".concat(t.x/si,"em, ").concat(t.y/si,"em) "),l+="scale(".concat(t.size/si*(t.flipX?-1:1),", ").concat(t.size/si*(t.flipY?-1:1),") "),l+="rotate(".concat(t.rotate,"deg) "),l}var eA=`:root, :host {
43
43
  --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Solid";