@konnectio/core 4.0.21 → 4.0.22

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 (63) hide show
  1. package/dist/{ActionField-7685b1ca.js → ActionField-4c47ccce.js} +2 -2
  2. package/dist/ActionField-4c47ccce.js.br +0 -0
  3. package/dist/{ActionField-f278c92a.cjs → ActionField-83fef1c1.cjs} +1 -1
  4. package/dist/{AvailabilitySkeleton-b8004f01.cjs → AvailabilitySkeleton-0e77a3ad.cjs} +1 -1
  5. package/dist/{AvailabilitySkeleton-9f7adad1.js → AvailabilitySkeleton-6ba16e6b.js} +5 -5
  6. package/dist/AvailabilitySkeleton-6ba16e6b.js.br +0 -0
  7. package/dist/{DateField.vue_vue_type_style_index_0_lang-4d19c297.js → DateField.vue_vue_type_style_index_0_lang-6242a55d.js} +6 -6
  8. package/dist/DateField.vue_vue_type_style_index_0_lang-6242a55d.js.br +0 -0
  9. package/dist/{DateField.vue_vue_type_style_index_0_lang-66f33a43.cjs → DateField.vue_vue_type_style_index_0_lang-efec37d7.cjs} +2 -2
  10. package/dist/{Field-7bca22a3.cjs → Field-72b689c4.cjs} +1 -1
  11. package/dist/{Field-850f6158.js → Field-d3e306c7.js} +2 -2
  12. package/dist/Field-d3e306c7.js.br +0 -0
  13. package/dist/{NumberField.vue_vue_type_script_setup_true_lang-9af13100.cjs → NumberField.vue_vue_type_script_setup_true_lang-53cff536.cjs} +1 -1
  14. package/dist/{NumberField.vue_vue_type_script_setup_true_lang-615d58a2.js → NumberField.vue_vue_type_script_setup_true_lang-e9425fa5.js} +2 -2
  15. package/dist/NumberField.vue_vue_type_script_setup_true_lang-e9425fa5.js.br +0 -0
  16. package/dist/{SelectField.vue_vue_type_style_index_0_lang-de13480f.js → SelectField.vue_vue_type_style_index_0_lang-b53d9177.js} +3 -3
  17. package/dist/SelectField.vue_vue_type_style_index_0_lang-b53d9177.js.br +0 -0
  18. package/dist/{SelectField.vue_vue_type_style_index_0_lang-f2eadc00.cjs → SelectField.vue_vue_type_style_index_0_lang-ed0ef984.cjs} +1 -1
  19. package/dist/{ThankYou-328e6196.cjs → ThankYou-98807e93.cjs} +2 -2
  20. package/dist/{ThankYou-ce7a43f1.js → ThankYou-ebdebf4e.js} +105 -102
  21. package/dist/ThankYou-ebdebf4e.js.br +0 -0
  22. package/dist/{_-72d06a62.cjs → _-07462fdc.cjs} +1 -1
  23. package/dist/{_-55d616f9.js → _-f5b07fc1.js} +1 -1
  24. package/dist/_-f5b07fc1.js.br +0 -0
  25. package/dist/availability.cjs +2 -2
  26. package/dist/availability.js +10 -10
  27. package/dist/availability.js.br +0 -0
  28. package/dist/components/forms/ReservationForm.vue.d.ts +1 -1
  29. package/dist/components/listings/Base.vue.d.ts +1 -1
  30. package/dist/{event-d42b8289.js → event-136853fa.js} +9 -9
  31. package/dist/event-136853fa.js.br +0 -0
  32. package/dist/{event-67cf0ebb.cjs → event-5c513f23.cjs} +1 -1
  33. package/dist/event.cjs +1 -1
  34. package/dist/event.js +8 -8
  35. package/dist/event.js.br +0 -0
  36. package/dist/gift-card-validation.cjs +1 -1
  37. package/dist/gift-card-validation.js +3 -3
  38. package/dist/gift-card-validation.js.br +0 -0
  39. package/dist/gift-card.cjs +1 -1
  40. package/dist/gift-card.js +5 -5
  41. package/dist/gift-card.js.br +0 -0
  42. package/dist/hotel.cjs +2 -2
  43. package/dist/hotel.js +243 -243
  44. package/dist/hotel.js.br +0 -0
  45. package/dist/{index-85780e6d.cjs → index-c407bc6f.cjs} +1 -1
  46. package/dist/{index-a6e71920.js → index-eab5c85f.js} +1 -1
  47. package/dist/index-eab5c85f.js.br +0 -0
  48. package/dist/polyfill.cjs +1 -1
  49. package/dist/polyfill.js +1 -1
  50. package/dist/polyfill.js.br +0 -0
  51. package/dist/style.css +1 -1
  52. package/dist/style.css.br +0 -0
  53. package/package.json +1 -1
  54. package/dist/ActionField-7685b1ca.js.br +0 -0
  55. package/dist/AvailabilitySkeleton-9f7adad1.js.br +0 -0
  56. package/dist/DateField.vue_vue_type_style_index_0_lang-4d19c297.js.br +0 -0
  57. package/dist/Field-850f6158.js.br +0 -0
  58. package/dist/NumberField.vue_vue_type_script_setup_true_lang-615d58a2.js.br +0 -0
  59. package/dist/SelectField.vue_vue_type_style_index_0_lang-de13480f.js.br +0 -0
  60. package/dist/ThankYou-ce7a43f1.js.br +0 -0
  61. package/dist/_-55d616f9.js.br +0 -0
  62. package/dist/event-d42b8289.js.br +0 -0
  63. package/dist/index-a6e71920.js.br +0 -0
package/dist/event.js CHANGED
@@ -1,12 +1,12 @@
1
- import { h as ge, z as he, u as ze, s as Y, a as ke, r as Qe, c as We, k as t, l as b, W as Ye, w as g, x as l, m as r, D as h, A as n, n as e, X as Je, Y as ie, q as i, Z as re, t as u, $ as Xe, F as $, a0 as Ze, _ as fe, o as je, a1 as Ge, B as D, a2 as V, a3 as w, a4 as ue, O as de, T as me, a5 as ce, a6 as He, a7 as K, G as pe, J as Ke, L as xe, M as el, P as ll, a8 as nl, N as tl, Q as al } from "./SelectField.vue_vue_type_style_index_0_lang-de13480f.js";
2
- import { P as ol, C as ve, a as sl, S as il, i as rl } from "./index-a6e71920.js";
3
- import { B as ul, M as dl, R as ml, T as cl, x as pl } from "./ThankYou-ce7a43f1.js";
4
- import { u as J } from "./event-d42b8289.js";
5
- import { A as vl } from "./ActionField-7685b1ca.js";
6
- import { _ as bl } from "./DateField.vue_vue_type_style_index_0_lang-4d19c297.js";
7
- import { _ as x } from "./NumberField.vue_vue_type_script_setup_true_lang-615d58a2.js";
1
+ import { h as ge, z as he, u as ze, s as Y, a as ke, r as Qe, c as We, k as t, l as b, W as Ye, w as g, x as l, m as r, D as h, A as n, n as e, X as Je, Y as ie, q as i, Z as re, t as u, $ as Xe, F as $, a0 as Ze, _ as fe, o as je, a1 as Ge, B as D, a2 as V, a3 as w, a4 as ue, O as de, T as me, a5 as ce, a6 as He, a7 as K, G as pe, J as Ke, L as xe, M as el, P as ll, a8 as nl, N as tl, Q as al } from "./SelectField.vue_vue_type_style_index_0_lang-b53d9177.js";
2
+ import { P as ol, C as ve, a as sl, S as il, i as rl } from "./index-eab5c85f.js";
3
+ import { B as ul, M as dl, R as ml, T as cl, x as pl } from "./ThankYou-ebdebf4e.js";
4
+ import { u as J } from "./event-136853fa.js";
5
+ import { A as vl } from "./ActionField-4c47ccce.js";
6
+ import { _ as bl } from "./DateField.vue_vue_type_style_index_0_lang-6242a55d.js";
7
+ import { _ as x } from "./NumberField.vue_vue_type_script_setup_true_lang-e9425fa5.js";
8
8
  import "./_commonjsHelpers-aeeeeb92.js";
9
- import "./_-55d616f9.js";
9
+ import "./_-f5b07fc1.js";
10
10
  const gl = { class: "fresh-booking-event-listing-information" }, hl = { key: 0 }, kl = { key: 1 }, fl = /* @__PURE__ */ ge({
11
11
  __name: "Event",
12
12
  props: {
package/dist/event.js.br CHANGED
Binary file
@@ -1 +1 @@
1
- "use strict";const e=require("./SelectField.vue_vue_type_style_index_0_lang-f2eadc00.cjs"),c=require("./NumberField.vue_vue_type_script_setup_true_lang-9af13100.cjs"),_=require("./ActionField-f278c92a.cjs");require("./_commonjsHelpers-6763f629.cjs");const y=o=>(e.pushScopeId("data-v-5d5827dc"),o=o(),e.popScopeId(),o),N=["innerHTML"],B={key:0,id:"fresh-booking-gift-card-validation-resume",class:"fresh-booking-panel"},m=y(()=>e.createBaseVNode("span",null,"Loading...",-1)),C=e.defineComponent({name:"GiftCardValidationLayout",__name:"GiftCardValidation",props:{accessToken:{},styling:{}},setup(o){const{t:a}=e.useI18n(),{voucher:l,isValid:u,amount:p,expirationDate:f,productName:V,isLoading:i}=e.storeToRefs(c.useApplyGiftCardStore()),{currency:g}=e.storeToRefs(e.useUtilityStore()),{apply:s}=c.useApplyGiftCardStore();return(d,t)=>(e.openBlock(),e.createBlock(e.Suspense,null,{default:e.withCtx(()=>[e.createVNode(e._sfc_main$1,{id:"fresh-booking-gift-card-validation-module","access-token":d.accessToken,type:"gift-card",styling:d.styling},{default:e.withCtx(()=>[e.createBaseVNode("form",{onSubmit:t[3]||(t[3]=e.withModifiers(n=>e.unref(s)(),["prevent"]))},[e.createBaseVNode("h4",null,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(a)("giftCardValidation.title")),1)]),e.createBaseVNode("p",{innerHTML:e.unref(a)("giftCardValidation.description")},null,8,N),e.createVNode(_.ActionField,{modelValue:e.unref(l),"onUpdate:modelValue":t[0]||(t[0]=n=>e.isRef(l)?l.value=n:null),icon:"gift-card",label:e.unref(a)("booking.reservation.giftCardCode"),buttonLabel:e.unref(a)("giftCardValidation.submitButton"),placeholder:"XXXXXXXX","is-loading":e.unref(i),"onUpdate:isLoading":t[1]||(t[1]=n=>e.isRef(i)?i.value=n:null),onAction:t[2]||(t[2]=n=>e.unref(s)())},null,8,["modelValue","label","buttonLabel","is-loading"]),!e.unref(i)&&e.unref(u)?(e.openBlock(),e.createElementBlock("table",B,[e.createBaseVNode("thead",null,[e.createBaseVNode("tr",null,[e.createBaseVNode("th",null,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(a)("giftCardValidation.giftCard")),1),e.createVNode(e.Icon,{icon:"gift-card",type:"fas",color:"header"})]),e.createBaseVNode("th",null,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(a)("giftCardValidation.balance")),1),e.createVNode(e.Icon,{icon:"money-bill",type:"fas",color:"header"})]),e.createBaseVNode("th",null,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(a)("giftCardValidation.expirationDate")),1),e.createVNode(e.Icon,{icon:"timer",type:"fas",color:"header"})])])]),e.createBaseVNode("tbody",null,[e.createBaseVNode("tr",null,[e.createBaseVNode("td",null,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(V)),1)]),e.createBaseVNode("td",null,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(e.showPrice)(e.unref(p),e.unref(g))),1)]),e.createBaseVNode("td",null,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(e.showDate)(e.unref(f))),1)])])])])):e.createCommentVNode("",!0)],32)]),_:1},8,["access-token","styling"])]),fallback:e.withCtx(()=>[m]),_:1}))}});const b=e._export_sfc(C,[["__scopeId","data-v-5d5827dc"]]),r=e.createApp({components:{GiftCardValidation:b}}),v=e.createPinia();r.use(v);r.use(e.instance);r.mount("#konnectio-gift-card-validation-app");module.exports=r;
1
+ "use strict";const e=require("./SelectField.vue_vue_type_style_index_0_lang-ed0ef984.cjs"),c=require("./NumberField.vue_vue_type_script_setup_true_lang-53cff536.cjs"),_=require("./ActionField-83fef1c1.cjs");require("./_commonjsHelpers-6763f629.cjs");const y=o=>(e.pushScopeId("data-v-5d5827dc"),o=o(),e.popScopeId(),o),N=["innerHTML"],B={key:0,id:"fresh-booking-gift-card-validation-resume",class:"fresh-booking-panel"},m=y(()=>e.createBaseVNode("span",null,"Loading...",-1)),C=e.defineComponent({name:"GiftCardValidationLayout",__name:"GiftCardValidation",props:{accessToken:{},styling:{}},setup(o){const{t:a}=e.useI18n(),{voucher:l,isValid:u,amount:p,expirationDate:f,productName:V,isLoading:i}=e.storeToRefs(c.useApplyGiftCardStore()),{currency:g}=e.storeToRefs(e.useUtilityStore()),{apply:s}=c.useApplyGiftCardStore();return(d,t)=>(e.openBlock(),e.createBlock(e.Suspense,null,{default:e.withCtx(()=>[e.createVNode(e._sfc_main$1,{id:"fresh-booking-gift-card-validation-module","access-token":d.accessToken,type:"gift-card",styling:d.styling},{default:e.withCtx(()=>[e.createBaseVNode("form",{onSubmit:t[3]||(t[3]=e.withModifiers(n=>e.unref(s)(),["prevent"]))},[e.createBaseVNode("h4",null,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(a)("giftCardValidation.title")),1)]),e.createBaseVNode("p",{innerHTML:e.unref(a)("giftCardValidation.description")},null,8,N),e.createVNode(_.ActionField,{modelValue:e.unref(l),"onUpdate:modelValue":t[0]||(t[0]=n=>e.isRef(l)?l.value=n:null),icon:"gift-card",label:e.unref(a)("booking.reservation.giftCardCode"),buttonLabel:e.unref(a)("giftCardValidation.submitButton"),placeholder:"XXXXXXXX","is-loading":e.unref(i),"onUpdate:isLoading":t[1]||(t[1]=n=>e.isRef(i)?i.value=n:null),onAction:t[2]||(t[2]=n=>e.unref(s)())},null,8,["modelValue","label","buttonLabel","is-loading"]),!e.unref(i)&&e.unref(u)?(e.openBlock(),e.createElementBlock("table",B,[e.createBaseVNode("thead",null,[e.createBaseVNode("tr",null,[e.createBaseVNode("th",null,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(a)("giftCardValidation.giftCard")),1),e.createVNode(e.Icon,{icon:"gift-card",type:"fas",color:"header"})]),e.createBaseVNode("th",null,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(a)("giftCardValidation.balance")),1),e.createVNode(e.Icon,{icon:"money-bill",type:"fas",color:"header"})]),e.createBaseVNode("th",null,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(a)("giftCardValidation.expirationDate")),1),e.createVNode(e.Icon,{icon:"timer",type:"fas",color:"header"})])])]),e.createBaseVNode("tbody",null,[e.createBaseVNode("tr",null,[e.createBaseVNode("td",null,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(V)),1)]),e.createBaseVNode("td",null,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(e.showPrice)(e.unref(p),e.unref(g))),1)]),e.createBaseVNode("td",null,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(e.showDate)(e.unref(f))),1)])])])])):e.createCommentVNode("",!0)],32)]),_:1},8,["access-token","styling"])]),fallback:e.withCtx(()=>[m]),_:1}))}});const b=e._export_sfc(C,[["__scopeId","data-v-5d5827dc"]]),r=e.createApp({components:{GiftCardValidation:b}}),v=e.createPinia();r.use(v);r.use(e.instance);r.mount("#konnectio-gift-card-validation-app");module.exports=r;
@@ -1,6 +1,6 @@
1
- import { h as L, z as S, s as g, a as X, k as _, l as w, w as u, m as l, x as a, A as o, n as t, B as y, q as x, D as p, F as A, G as B, t as G, H as I, J as D, K as N, L as T, M, _ as H, N as P, P as U, Q as $ } from "./SelectField.vue_vue_type_style_index_0_lang-de13480f.js";
2
- import { u as b } from "./NumberField.vue_vue_type_script_setup_true_lang-615d58a2.js";
3
- import { A as F } from "./ActionField-7685b1ca.js";
1
+ import { h as L, z as S, s as g, a as X, k as _, l as w, w as u, m as l, x as a, A as o, n as t, B as y, q as x, D as p, F as A, G as B, t as G, H as I, J as D, K as N, L as T, M, _ as H, N as P, P as U, Q as $ } from "./SelectField.vue_vue_type_style_index_0_lang-b53d9177.js";
2
+ import { u as b } from "./NumberField.vue_vue_type_script_setup_true_lang-e9425fa5.js";
3
+ import { A as F } from "./ActionField-4c47ccce.js";
4
4
  import "./_commonjsHelpers-aeeeeb92.js";
5
5
  const R = (s) => (T("data-v-5d5827dc"), s = s(), M(), s), q = ["innerHTML"], z = {
6
6
  key: 0,
Binary file
@@ -1 +1 @@
1
- "use strict";const e=require("./SelectField.vue_vue_type_style_index_0_lang-f2eadc00.cjs"),V=require("./index-85780e6d.cjs"),U=require("./_-72d06a62.cjs"),R=require("./Field-7bca22a3.cjs");require("./_commonjsHelpers-6763f629.cjs");const q=e.defineStore("giftCard",()=>{e.useAlertStore();const{pay:y}=U.usePaymentStore(),{bearerToken:l,metaData:o}=e.storeToRefs(e.useUtilityStore()),t=e.ref(e.GiftCardModuleState.InitialState),p=e.useStorage("konnectio_name","",void 0,{serializer:e.StorageSerializers.string}),g=e.useStorage("konnectio_email","",void 0,{serializer:e.StorageSerializers.string}),c=e.useStorage("konnectio_phone","",void 0,{serializer:e.StorageSerializers.string}),f=e.ref(""),C=e.ref(1),w=e.ref(!0),v=e.ref(""),s=e.ref({base64:"",type:"",name:""}),k=e.ref(void 0),n=e.ref(0),i=e.ref(!1),d=e.ref(0),B=e.computed(()=>t.value===e.GiftCardModuleState.InitialState||t.value===e.GiftCardModuleState.WaitingForResponse),S=e.computed(()=>t.value===e.GiftCardModuleState.ReadyToPay),m=e.computed(()=>t.value===e.GiftCardModuleState.PaymentSuccess),h=e.computed(()=>{const u={1:{label:e.i18n.t("giftCard.hotelType"),data:[]},2:{label:e.i18n.t("giftCard.restaurantType"),data:[]}},a=o.value.places;return a&&a.forEach(_=>{u[_.placeType].data.push(_)}),Object.fromEntries(Object.entries(u).filter(([,_])=>_.data.length>0))}),x=e.computed(()=>d.value!==0),b=e.computed(()=>{let u;if(x.value)u=h.value[d.value].data[0];else if(n.value!==0){const a=k.value,_=h.value[n.value].data;_.length===1?u=_[0]:a!==void 0&&_.forEach(P=>{String(P.id)===String(a)&&(u=P)})}return u}),z=e.computed(()=>!(!p.value||!g.value||!(c.value.length>=5)||!f.value||b.value===void 0)),E=e.computed(()=>!(t.value===e.GiftCardModuleState.InitialState&&i.value)),T=e.computed(()=>!!(t.value===e.GiftCardModuleState.WaitingForResponse&&i.value));async function N(){t.value=e.GiftCardModuleState.WaitingForResponse,i.value=!0,await e.axios.post("https://stage.hotel-service.konnectio.dk/api/gift-card/create",{termsOfserviceURL:"https://freshbooking.dk",checkoutUrl:"https://freshbooking.dk",currencyID:o.value.currency.id,language:e.getUserLanguage(),amount:f.value,quantity:C.value,freeText:v.value,showPrice:w.value,contactName:p.value,contactEmail:g.value,contactPhone:c.value,imageBase64:e.b2a(s.value.base64),imageName:s.value.name,imageFormat:s.value.type,placeType:b.value?b.value.placeType:void 0,placeID:b.value?b.value.id:void 0},{headers:{Authorization:l.value,Accept:"application/json","Fresh-Booking-Ver":"4.0.21"}}).then(u=>{t.value=e.GiftCardModuleState.ReadyToPay,i.value=!1,y({callback:()=>console.log("Callback!"),response:u.data})})}function r(u){u&&(d.value=u)}return{moduleState:t,name:p,email:g,phone:c,value:f,remark:v,showValue:w,quantity:C,media:s,placeId:k,placeType:n,showFormPage:B,showPaymentPage:S,showConfirmationPage:m,places:h,hasFilledForm:z,hasForcedPlaceType:x,isWaitingForResponse:T,isMetaDataAvailable:E,orderGiftCard:N,initialize:r}}),$={class:"media-selector"},M=["accept"],D={class:"media-selector-wrapper"},I={class:"media-selector-tools"},L={key:0},A={key:1},W={key:2},j=["src"],H=e.defineComponent({__name:"MediaSelector",props:{modelValue:{},validation:{default:"image/*"},iconColor:{default:"#000"},label:{},required:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(y,{emit:l}){const o=l,t=y,{t:p}=e.useI18n(),{display:g}=e.useAlertStore(),c=e.ref(),f=e.computed(()=>t.modelValue.base64!=="");function C(n){o("update:modelValue",n)}function w(){C({base64:"",name:"",type:""}),c.value&&(c.value.value="")}function v(){c.value&&c.value.click()}function s(n,i){const[d,B]=[n.name,n.type],S=new FileReader;S.onload=function(m){if(m.target){const h=m.target.result;i({base64:h,name:d,type:B})}else g({message:p("imageUploadError"),type:"error"})},S.readAsDataURL(n)}async function k(){let n;(n=c.value.files)instanceof FileList&&s(n[0],C)}return(n,i)=>(e.openBlock(),e.createBlock(e.InputField,{label:n.label,required:n.required,type:"media"},{default:e.withCtx(()=>[e.createBaseVNode("div",$,[e.createBaseVNode("input",{ref_key:"fileInput",ref:c,type:"file",class:"hidden",accept:n.validation,single:"",onChange:i[0]||(i[0]=d=>k())},null,40,M),e.createBaseVNode("div",D,[e.createBaseVNode("ul",I,[f.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("li",L,[e.createVNode(e.Clickable,{label:e.unref(p)("uploadFile"),type:"button",icon:"upload","icon-color":n.iconColor,onClickEvent:i[1]||(i[1]=d=>v())},null,8,["label","icon-color"])])),f.value?(e.openBlock(),e.createElementBlock("li",A,[e.createVNode(e.Clickable,{label:e.unref(p)("replaceFile"),type:"button",icon:"repeat-alt","icon-color":n.iconColor,onClickEvent:i[2]||(i[2]=d=>v())},null,8,["label","icon-color"])])):e.createCommentVNode("",!0),f.value?(e.openBlock(),e.createElementBlock("li",W,[e.createVNode(e.Clickable,{label:e.unref(p)("removeFile"),type:"button",icon:"trash-alt","icon-color":n.iconColor,onClickEvent:i[3]||(i[3]=d=>w())},null,8,["label","icon-color"])])):e.createCommentVNode("",!0)]),e.createBaseVNode("div",{class:e.normalizeClass(["media-selector-previewer",{opened:f.value}])},[n.modelValue?(e.openBlock(),e.createElementBlock("img",{key:0,src:n.modelValue.base64},null,8,j)):e.createCommentVNode("",!0)],2)])])]),_:1},8,["label","required"]))}});function G(y){const l=y;l.__i18n=l.__i18n||[],l.__i18n.push({locale:"",resource:{da:{uploadFile:o=>{const{normalize:t}=o;return t(["Upload billede"])},removeFile:o=>{const{normalize:t}=o;return t(["Fjern billede"])},replaceFile:o=>{const{normalize:t}=o;return t(["Ersat billede"])},imageUploadError:o=>{const{normalize:t}=o;return t(["Der skete en fejl under billede upload!"])}},en:{uploadFile:o=>{const{normalize:t}=o;return t(["Upload image"])},removeFile:o=>{const{normalize:t}=o;return t(["Remove image"])},replaceFile:o=>{const{normalize:t}=o;return t(["Replace image"])},imageUploadError:o=>{const{normalize:t}=o;return t(["An error occurred under image upload!"])}}}})}typeof G=="function"&&G(H);const O={class:"gift-card-skeleton"},K={class:"gift-card-skeleton-form"},Y=e.defineComponent({__name:"GiftCardSkeleton",setup(y){return(l,o)=>(e.openBlock(),e.createElementBlock("div",O,[e.createBaseVNode("div",K,[e.createVNode(R.Field),e.createVNode(R.Field),e.createVNode(R.Field),e.createVNode(R.Field),e.createVNode(R.Field,{"is-text-area":""}),e.createVNode(U.Element,{height:"44px"})])]))}});const J=e._export_sfc(Y,[["__scopeId","data-v-2600a731"]]),Q={key:0,id:"fresh-booking-gift-card-wrapper"},X={id:"fresh-booking-gift-card-title"},Z={id:"fresh-booking-gift-card-content"},ee={id:"fresh-booking-gift-card-payment"},te=["innerHTML"],ae={key:0},le={key:0,id:"fresh-booking-select-place-type"},oe={class:e.normalizeClass(["fresh-booking-label","required"])},ne={id:"fresh-booking-select-place-type-input"},re=["innerHTML"],ie={key:0,id:"fresh-booking-gift-card-order"},de={class:"fresh-booking-panel"},ce={key:1,id:"fresh-booking-gift-card-remarks"},se={key:2,id:"fresh-booking-gift-card-order-minimal","sticky-side":"bottom"},ue={id:"fresh-booking-gift-card-recaptcha"},fe=e.defineComponent({name:"GiftCardLayout",__name:"GiftCard",props:{accessToken:{},layout:{default:"minimal"},placeType:{},styling:{}},setup(y){const{t:l}=e.useI18n(),{name:o,email:t,phone:p,value:g,remark:c,showValue:f,quantity:C,media:w,placeId:v,placeType:s,showFormPage:k,showPaymentPage:n,showConfirmationPage:i,places:d,hasFilledForm:B,hasForcedPlaceType:S,isWaitingForResponse:m,isMetaDataAvailable:h}=e.storeToRefs(q()),{initialize:x,orderGiftCard:b}=q(),{isRecaptchaEnabled:z,currency:E}=e.storeToRefs(e.useUtilityStore());async function T(){await b()}return e.watch(s,()=>{v.value=void 0}),e.onMounted(()=>{x()}),(N,r)=>{const u=e.resolveDirective("sticky");return e.openBlock(),e.createBlock(e.Suspense,null,{default:e.withCtx(()=>[e.createVNode(e._sfc_main$1,{id:"fresh-booking-gift-card-module",type:"gift-card","access-token":N.accessToken,"data-layout":N.layout,styling:N.styling,"sticky-container":""},{default:e.withCtx(()=>[e.unref(h)?(e.openBlock(),e.createElementBlock("div",Q,[e.createBaseVNode("h4",X,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(l)("giftCard.title")),1)]),e.createBaseVNode("div",Z,[e.withDirectives(e.createBaseVNode("div",ee,[e.createVNode(V.CheckoutWindow)],512),[[e.vShow,e.unref(n)]]),e.withDirectives(e.createBaseVNode("div",null,[e.createBaseVNode("p",{id:"fresh-booking-gift-card-description",innerHTML:e.unref(l)("giftCard.description")},null,8,te),e.createBaseVNode("form",null,[e.createVNode(e.TextField,{modelValue:e.unref(o),"onUpdate:modelValue":r[0]||(r[0]=a=>e.isRef(o)?o.value=a:null),type:"text",name:"name",autocomplete:"name",label:e.unref(l)("giftCard.name"),icon:"user-alt",placeholder:e.unref(l)("giftCard.namePlaceholder"),required:""},null,8,["modelValue","label","placeholder"]),e.createVNode(e.TextField,{modelValue:e.unref(t),"onUpdate:modelValue":r[1]||(r[1]=a=>e.isRef(t)?t.value=a:null),type:"email",name:"email",autocomplete:"email",label:e.unref(l)("giftCard.email"),icon:"at",placeholder:e.unref(l)("giftCard.emailPlaceholder"),required:""},null,8,["modelValue","label","placeholder"]),e.createVNode(V.PhoneField,{modelValue:e.unref(p),"onUpdate:modelValue":r[2]||(r[2]=a=>e.isRef(p)?p.value=a:null),icon:"phone-office",label:e.unref(l)("giftCard.phone"),placeholder:e.unref(l)("giftCard.phonePlaceholder"),required:""},null,8,["modelValue","label","placeholder"]),e.unref(S)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",ae,[e.unref(d)?(e.openBlock(),e.createElementBlock("div",le,[e.createBaseVNode("label",oe,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(l)("giftCard.selectType")),1)]),e.createBaseVNode("div",ne,[e.createBaseVNode("ul",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(d),(a,_)=>(e.openBlock(),e.createElementBlock("li",{key:_},[e.createVNode(V.Checkbox,{modelValue:e.unref(s),"onUpdate:modelValue":r[3]||(r[3]=P=>e.isRef(s)?s.value=P:null),type:"radio",name:"placeType",val:_,label:a.label},null,8,["modelValue","val","label"])]))),128))]),e.unref(d)[e.unref(s)]&&e.unref(d)[e.unref(s)].data.length>1?(e.openBlock(),e.createBlock(e._sfc_main,{key:0,modelValue:e.unref(v),"onUpdate:modelValue":r[4]||(r[4]=a=>e.isRef(v)?v.value=a:null),placeholder:e.unref(l)("giftCard.selectPlacePlaceholder"),options:e.unref(d)[e.unref(s)].data,labelKey:"name",valueKey:"id",required:""},null,8,["modelValue","placeholder","options"])):e.createCommentVNode("",!0)])])):(e.openBlock(),e.createBlock(e.Loading,{key:1}))])),e.createVNode(e.TextField,{modelValue:e.unref(g),"onUpdate:modelValue":r[5]||(r[5]=a=>e.isRef(g)?g.value=a:null),type:"number",name:"value",label:e.unref(l)("giftCard.value"),icon:"money-bill",placeholder:e.unref(l)("giftCard.valuePlaceholder"),suffix:e.unref(E),required:""},null,8,["modelValue","label","placeholder","suffix"]),e.createVNode(V.Checkbox,{modelValue:e.unref(f),"onUpdate:modelValue":r[6]||(r[6]=a=>e.isRef(f)?f.value=a:null),type:"checkbox",name:"showValue",label:e.unref(l)("giftCard.showValue"),checked:e.unref(f)},null,8,["modelValue","label","checked"]),e.createCommentVNode("",!0),e.createCommentVNode("",!0)])],512),[[e.vShow,e.unref(k)]]),e.withDirectives(e.createBaseVNode("div",null,[e.createBaseVNode("div",{innerHTML:e.unref(l)("giftCard.thankYou")},null,8,re)],512),[[e.vShow,e.unref(i)]])]),N.layout!=="minimal"&&e.unref(k)?(e.openBlock(),e.createElementBlock("div",ie,[e.createBaseVNode("div",de,[e.createVNode(e.Clickable,{label:e.unref(l)("giftCard.orderGiftCard"),"full-width":!0,disabled:!e.unref(B),"is-loading":e.unref(m),"onUpdate:isLoading":r[9]||(r[9]=a=>e.isRef(m)?m.value=a:null),onClickEvent:T},null,8,["label","disabled","is-loading"])])])):e.createCommentVNode("",!0),e.unref(k)?(e.openBlock(),e.createElementBlock("div",ce,[e.createVNode(e.TextField,{modelValue:e.unref(c),"onUpdate:modelValue":r[10]||(r[10]=a=>e.isRef(c)?c.value=a:null),type:"textarea",name:"remark",label:e.unref(l)("giftCard.remark"),icon:"info-circle",placeholder:e.unref(l)("giftCard.remarkPlaceholder")},null,8,["modelValue","label","placeholder"])])):e.createCommentVNode("",!0),e.unref(k)?e.withDirectives((e.openBlock(),e.createElementBlock("div",se,[e.createVNode(e.Clickable,{label:e.unref(l)("giftCard.orderGiftCard"),"full-width":!0,disabled:!e.unref(B),"data-test":"orderGiftCard","is-loading":e.unref(m),"onUpdate:isLoading":r[11]||(r[11]=a=>e.isRef(m)?m.value=a:null),onClickEvent:T},null,8,["label","disabled","is-loading"]),e.withDirectives(e.createBaseVNode("div",ue,[e.createVNode(V._sfc_main)],512),[[e.vShow,e.unref(z)]])])),[[u]]):e.createCommentVNode("",!0)])):(e.openBlock(),e.createBlock(e.Loading,{key:1}))]),_:1},8,["access-token","data-layout","styling"])]),fallback:e.withCtx(()=>[e.createVNode(J)]),_:1})}}});const pe=e._export_sfc(fe,[["__scopeId","data-v-e4aa1e4c"]]),me=e.createPinia(),_e=e.Go(),F=e.createApp({components:{GiftCard:pe}});F.use(me);F.use(e.instance);F.use(_e);F.use(V.StickyPlugin);F.use(V.install,{bootstrap:!1});F.mount("#konnectio-gift-card-app");
1
+ "use strict";const e=require("./SelectField.vue_vue_type_style_index_0_lang-ed0ef984.cjs"),V=require("./index-c407bc6f.cjs"),U=require("./_-07462fdc.cjs"),R=require("./Field-72b689c4.cjs");require("./_commonjsHelpers-6763f629.cjs");const q=e.defineStore("giftCard",()=>{e.useAlertStore();const{pay:y}=U.usePaymentStore(),{bearerToken:l,metaData:o}=e.storeToRefs(e.useUtilityStore()),t=e.ref(e.GiftCardModuleState.InitialState),p=e.useStorage("konnectio_name","",void 0,{serializer:e.StorageSerializers.string}),g=e.useStorage("konnectio_email","",void 0,{serializer:e.StorageSerializers.string}),c=e.useStorage("konnectio_phone","",void 0,{serializer:e.StorageSerializers.string}),f=e.ref(""),C=e.ref(1),w=e.ref(!0),v=e.ref(""),s=e.ref({base64:"",type:"",name:""}),k=e.ref(void 0),n=e.ref(0),i=e.ref(!1),d=e.ref(0),B=e.computed(()=>t.value===e.GiftCardModuleState.InitialState||t.value===e.GiftCardModuleState.WaitingForResponse),S=e.computed(()=>t.value===e.GiftCardModuleState.ReadyToPay),m=e.computed(()=>t.value===e.GiftCardModuleState.PaymentSuccess),h=e.computed(()=>{const u={1:{label:e.i18n.t("giftCard.hotelType"),data:[]},2:{label:e.i18n.t("giftCard.restaurantType"),data:[]}},a=o.value.places;return a&&a.forEach(_=>{u[_.placeType].data.push(_)}),Object.fromEntries(Object.entries(u).filter(([,_])=>_.data.length>0))}),x=e.computed(()=>d.value!==0),b=e.computed(()=>{let u;if(x.value)u=h.value[d.value].data[0];else if(n.value!==0){const a=k.value,_=h.value[n.value].data;_.length===1?u=_[0]:a!==void 0&&_.forEach(P=>{String(P.id)===String(a)&&(u=P)})}return u}),z=e.computed(()=>!(!p.value||!g.value||!(c.value.length>=5)||!f.value||b.value===void 0)),E=e.computed(()=>!(t.value===e.GiftCardModuleState.InitialState&&i.value)),T=e.computed(()=>!!(t.value===e.GiftCardModuleState.WaitingForResponse&&i.value));async function N(){t.value=e.GiftCardModuleState.WaitingForResponse,i.value=!0,await e.axios.post("https://stage.hotel-service.konnectio.dk/api/gift-card/create",{termsOfserviceURL:"https://freshbooking.dk",checkoutUrl:"https://freshbooking.dk",currencyID:o.value.currency.id,language:e.getUserLanguage(),amount:f.value,quantity:C.value,freeText:v.value,showPrice:w.value,contactName:p.value,contactEmail:g.value,contactPhone:c.value,imageBase64:e.b2a(s.value.base64),imageName:s.value.name,imageFormat:s.value.type,placeType:b.value?b.value.placeType:void 0,placeID:b.value?b.value.id:void 0},{headers:{Authorization:l.value,Accept:"application/json","Fresh-Booking-Ver":"4.0.22"}}).then(u=>{t.value=e.GiftCardModuleState.ReadyToPay,i.value=!1,y({callback:()=>console.log("Callback!"),response:u.data})})}function r(u){u&&(d.value=u)}return{moduleState:t,name:p,email:g,phone:c,value:f,remark:v,showValue:w,quantity:C,media:s,placeId:k,placeType:n,showFormPage:B,showPaymentPage:S,showConfirmationPage:m,places:h,hasFilledForm:z,hasForcedPlaceType:x,isWaitingForResponse:T,isMetaDataAvailable:E,orderGiftCard:N,initialize:r}}),$={class:"media-selector"},M=["accept"],D={class:"media-selector-wrapper"},I={class:"media-selector-tools"},L={key:0},A={key:1},W={key:2},j=["src"],H=e.defineComponent({__name:"MediaSelector",props:{modelValue:{},validation:{default:"image/*"},iconColor:{default:"#000"},label:{},required:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(y,{emit:l}){const o=l,t=y,{t:p}=e.useI18n(),{display:g}=e.useAlertStore(),c=e.ref(),f=e.computed(()=>t.modelValue.base64!=="");function C(n){o("update:modelValue",n)}function w(){C({base64:"",name:"",type:""}),c.value&&(c.value.value="")}function v(){c.value&&c.value.click()}function s(n,i){const[d,B]=[n.name,n.type],S=new FileReader;S.onload=function(m){if(m.target){const h=m.target.result;i({base64:h,name:d,type:B})}else g({message:p("imageUploadError"),type:"error"})},S.readAsDataURL(n)}async function k(){let n;(n=c.value.files)instanceof FileList&&s(n[0],C)}return(n,i)=>(e.openBlock(),e.createBlock(e.InputField,{label:n.label,required:n.required,type:"media"},{default:e.withCtx(()=>[e.createBaseVNode("div",$,[e.createBaseVNode("input",{ref_key:"fileInput",ref:c,type:"file",class:"hidden",accept:n.validation,single:"",onChange:i[0]||(i[0]=d=>k())},null,40,M),e.createBaseVNode("div",D,[e.createBaseVNode("ul",I,[f.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("li",L,[e.createVNode(e.Clickable,{label:e.unref(p)("uploadFile"),type:"button",icon:"upload","icon-color":n.iconColor,onClickEvent:i[1]||(i[1]=d=>v())},null,8,["label","icon-color"])])),f.value?(e.openBlock(),e.createElementBlock("li",A,[e.createVNode(e.Clickable,{label:e.unref(p)("replaceFile"),type:"button",icon:"repeat-alt","icon-color":n.iconColor,onClickEvent:i[2]||(i[2]=d=>v())},null,8,["label","icon-color"])])):e.createCommentVNode("",!0),f.value?(e.openBlock(),e.createElementBlock("li",W,[e.createVNode(e.Clickable,{label:e.unref(p)("removeFile"),type:"button",icon:"trash-alt","icon-color":n.iconColor,onClickEvent:i[3]||(i[3]=d=>w())},null,8,["label","icon-color"])])):e.createCommentVNode("",!0)]),e.createBaseVNode("div",{class:e.normalizeClass(["media-selector-previewer",{opened:f.value}])},[n.modelValue?(e.openBlock(),e.createElementBlock("img",{key:0,src:n.modelValue.base64},null,8,j)):e.createCommentVNode("",!0)],2)])])]),_:1},8,["label","required"]))}});function G(y){const l=y;l.__i18n=l.__i18n||[],l.__i18n.push({locale:"",resource:{da:{uploadFile:o=>{const{normalize:t}=o;return t(["Upload billede"])},removeFile:o=>{const{normalize:t}=o;return t(["Fjern billede"])},replaceFile:o=>{const{normalize:t}=o;return t(["Ersat billede"])},imageUploadError:o=>{const{normalize:t}=o;return t(["Der skete en fejl under billede upload!"])}},en:{uploadFile:o=>{const{normalize:t}=o;return t(["Upload image"])},removeFile:o=>{const{normalize:t}=o;return t(["Remove image"])},replaceFile:o=>{const{normalize:t}=o;return t(["Replace image"])},imageUploadError:o=>{const{normalize:t}=o;return t(["An error occurred under image upload!"])}}}})}typeof G=="function"&&G(H);const O={class:"gift-card-skeleton"},K={class:"gift-card-skeleton-form"},Y=e.defineComponent({__name:"GiftCardSkeleton",setup(y){return(l,o)=>(e.openBlock(),e.createElementBlock("div",O,[e.createBaseVNode("div",K,[e.createVNode(R.Field),e.createVNode(R.Field),e.createVNode(R.Field),e.createVNode(R.Field),e.createVNode(R.Field,{"is-text-area":""}),e.createVNode(U.Element,{height:"44px"})])]))}});const J=e._export_sfc(Y,[["__scopeId","data-v-2600a731"]]),Q={key:0,id:"fresh-booking-gift-card-wrapper"},X={id:"fresh-booking-gift-card-title"},Z={id:"fresh-booking-gift-card-content"},ee={id:"fresh-booking-gift-card-payment"},te=["innerHTML"],ae={key:0},le={key:0,id:"fresh-booking-select-place-type"},oe={class:e.normalizeClass(["fresh-booking-label","required"])},ne={id:"fresh-booking-select-place-type-input"},re=["innerHTML"],ie={key:0,id:"fresh-booking-gift-card-order"},de={class:"fresh-booking-panel"},ce={key:1,id:"fresh-booking-gift-card-remarks"},se={key:2,id:"fresh-booking-gift-card-order-minimal","sticky-side":"bottom"},ue={id:"fresh-booking-gift-card-recaptcha"},fe=e.defineComponent({name:"GiftCardLayout",__name:"GiftCard",props:{accessToken:{},layout:{default:"minimal"},placeType:{},styling:{}},setup(y){const{t:l}=e.useI18n(),{name:o,email:t,phone:p,value:g,remark:c,showValue:f,quantity:C,media:w,placeId:v,placeType:s,showFormPage:k,showPaymentPage:n,showConfirmationPage:i,places:d,hasFilledForm:B,hasForcedPlaceType:S,isWaitingForResponse:m,isMetaDataAvailable:h}=e.storeToRefs(q()),{initialize:x,orderGiftCard:b}=q(),{isRecaptchaEnabled:z,currency:E}=e.storeToRefs(e.useUtilityStore());async function T(){await b()}return e.watch(s,()=>{v.value=void 0}),e.onMounted(()=>{x()}),(N,r)=>{const u=e.resolveDirective("sticky");return e.openBlock(),e.createBlock(e.Suspense,null,{default:e.withCtx(()=>[e.createVNode(e._sfc_main$1,{id:"fresh-booking-gift-card-module",type:"gift-card","access-token":N.accessToken,"data-layout":N.layout,styling:N.styling,"sticky-container":""},{default:e.withCtx(()=>[e.unref(h)?(e.openBlock(),e.createElementBlock("div",Q,[e.createBaseVNode("h4",X,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(l)("giftCard.title")),1)]),e.createBaseVNode("div",Z,[e.withDirectives(e.createBaseVNode("div",ee,[e.createVNode(V.CheckoutWindow)],512),[[e.vShow,e.unref(n)]]),e.withDirectives(e.createBaseVNode("div",null,[e.createBaseVNode("p",{id:"fresh-booking-gift-card-description",innerHTML:e.unref(l)("giftCard.description")},null,8,te),e.createBaseVNode("form",null,[e.createVNode(e.TextField,{modelValue:e.unref(o),"onUpdate:modelValue":r[0]||(r[0]=a=>e.isRef(o)?o.value=a:null),type:"text",name:"name",autocomplete:"name",label:e.unref(l)("giftCard.name"),icon:"user-alt",placeholder:e.unref(l)("giftCard.namePlaceholder"),required:""},null,8,["modelValue","label","placeholder"]),e.createVNode(e.TextField,{modelValue:e.unref(t),"onUpdate:modelValue":r[1]||(r[1]=a=>e.isRef(t)?t.value=a:null),type:"email",name:"email",autocomplete:"email",label:e.unref(l)("giftCard.email"),icon:"at",placeholder:e.unref(l)("giftCard.emailPlaceholder"),required:""},null,8,["modelValue","label","placeholder"]),e.createVNode(V.PhoneField,{modelValue:e.unref(p),"onUpdate:modelValue":r[2]||(r[2]=a=>e.isRef(p)?p.value=a:null),icon:"phone-office",label:e.unref(l)("giftCard.phone"),placeholder:e.unref(l)("giftCard.phonePlaceholder"),required:""},null,8,["modelValue","label","placeholder"]),e.unref(S)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",ae,[e.unref(d)?(e.openBlock(),e.createElementBlock("div",le,[e.createBaseVNode("label",oe,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(l)("giftCard.selectType")),1)]),e.createBaseVNode("div",ne,[e.createBaseVNode("ul",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(d),(a,_)=>(e.openBlock(),e.createElementBlock("li",{key:_},[e.createVNode(V.Checkbox,{modelValue:e.unref(s),"onUpdate:modelValue":r[3]||(r[3]=P=>e.isRef(s)?s.value=P:null),type:"radio",name:"placeType",val:_,label:a.label},null,8,["modelValue","val","label"])]))),128))]),e.unref(d)[e.unref(s)]&&e.unref(d)[e.unref(s)].data.length>1?(e.openBlock(),e.createBlock(e._sfc_main,{key:0,modelValue:e.unref(v),"onUpdate:modelValue":r[4]||(r[4]=a=>e.isRef(v)?v.value=a:null),placeholder:e.unref(l)("giftCard.selectPlacePlaceholder"),options:e.unref(d)[e.unref(s)].data,labelKey:"name",valueKey:"id",required:""},null,8,["modelValue","placeholder","options"])):e.createCommentVNode("",!0)])])):(e.openBlock(),e.createBlock(e.Loading,{key:1}))])),e.createVNode(e.TextField,{modelValue:e.unref(g),"onUpdate:modelValue":r[5]||(r[5]=a=>e.isRef(g)?g.value=a:null),type:"number",name:"value",label:e.unref(l)("giftCard.value"),icon:"money-bill",placeholder:e.unref(l)("giftCard.valuePlaceholder"),suffix:e.unref(E),required:""},null,8,["modelValue","label","placeholder","suffix"]),e.createVNode(V.Checkbox,{modelValue:e.unref(f),"onUpdate:modelValue":r[6]||(r[6]=a=>e.isRef(f)?f.value=a:null),type:"checkbox",name:"showValue",label:e.unref(l)("giftCard.showValue"),checked:e.unref(f)},null,8,["modelValue","label","checked"]),e.createCommentVNode("",!0),e.createCommentVNode("",!0)])],512),[[e.vShow,e.unref(k)]]),e.withDirectives(e.createBaseVNode("div",null,[e.createBaseVNode("div",{innerHTML:e.unref(l)("giftCard.thankYou")},null,8,re)],512),[[e.vShow,e.unref(i)]])]),N.layout!=="minimal"&&e.unref(k)?(e.openBlock(),e.createElementBlock("div",ie,[e.createBaseVNode("div",de,[e.createVNode(e.Clickable,{label:e.unref(l)("giftCard.orderGiftCard"),"full-width":!0,disabled:!e.unref(B),"is-loading":e.unref(m),"onUpdate:isLoading":r[9]||(r[9]=a=>e.isRef(m)?m.value=a:null),onClickEvent:T},null,8,["label","disabled","is-loading"])])])):e.createCommentVNode("",!0),e.unref(k)?(e.openBlock(),e.createElementBlock("div",ce,[e.createVNode(e.TextField,{modelValue:e.unref(c),"onUpdate:modelValue":r[10]||(r[10]=a=>e.isRef(c)?c.value=a:null),type:"textarea",name:"remark",label:e.unref(l)("giftCard.remark"),icon:"info-circle",placeholder:e.unref(l)("giftCard.remarkPlaceholder")},null,8,["modelValue","label","placeholder"])])):e.createCommentVNode("",!0),e.unref(k)?e.withDirectives((e.openBlock(),e.createElementBlock("div",se,[e.createVNode(e.Clickable,{label:e.unref(l)("giftCard.orderGiftCard"),"full-width":!0,disabled:!e.unref(B),"data-test":"orderGiftCard","is-loading":e.unref(m),"onUpdate:isLoading":r[11]||(r[11]=a=>e.isRef(m)?m.value=a:null),onClickEvent:T},null,8,["label","disabled","is-loading"]),e.withDirectives(e.createBaseVNode("div",ue,[e.createVNode(V._sfc_main)],512),[[e.vShow,e.unref(z)]])])),[[u]]):e.createCommentVNode("",!0)])):(e.openBlock(),e.createBlock(e.Loading,{key:1}))]),_:1},8,["access-token","data-layout","styling"])]),fallback:e.withCtx(()=>[e.createVNode(J)]),_:1})}}});const pe=e._export_sfc(fe,[["__scopeId","data-v-e4aa1e4c"]]),me=e.createPinia(),_e=e.Go(),F=e.createApp({components:{GiftCard:pe}});F.use(me);F.use(e.instance);F.use(_e);F.use(V.StickyPlugin);F.use(V.install,{bootstrap:!1});F.mount("#konnectio-gift-card-app");
package/dist/gift-card.js CHANGED
@@ -1,7 +1,7 @@
1
- import { d as ue, u as ne, s as Y, a as ie, r as b, ac as w, b as J, c as F, i as Z, S as Q, e as ce, f as pe, ad as me, h as X, z as se, k as d, l as M, w as H, x as r, q as g, m as s, n as e, C as x, t as k, v as re, I as fe, _ as de, a1 as ve, o as ge, ae as he, A as ee, af as B, ag as W, T as j, B as V, a2 as ye, a3 as _e, y as be, a4 as ae, J as ke, K as Ce, P as Ve, a8 as Fe, N as Pe, Q as Se } from "./SelectField.vue_vue_type_style_index_0_lang-de13480f.js";
2
- import { a as we, P as ze, C as le, _ as Te, S as $e, i as Ue } from "./index-a6e71920.js";
3
- import { u as qe, E as Re } from "./_-55d616f9.js";
4
- import { F as L } from "./Field-850f6158.js";
1
+ import { d as ue, u as ne, s as Y, a as ie, r as b, ac as w, b as J, c as F, i as Z, S as Q, e as ce, f as pe, ad as me, h as X, z as se, k as d, l as M, w as H, x as r, q as g, m as s, n as e, C as x, t as k, v as re, I as fe, _ as de, a1 as ve, o as ge, ae as he, A as ee, af as B, ag as W, T as j, B as V, a2 as ye, a3 as _e, y as be, a4 as ae, J as ke, K as Ce, P as Ve, a8 as Fe, N as Pe, Q as Se } from "./SelectField.vue_vue_type_style_index_0_lang-b53d9177.js";
2
+ import { a as we, P as ze, C as le, _ as Te, S as $e, i as Ue } from "./index-eab5c85f.js";
3
+ import { u as qe, E as Re } from "./_-f5b07fc1.js";
4
+ import { F as L } from "./Field-d3e306c7.js";
5
5
  import "./_commonjsHelpers-aeeeeb92.js";
6
6
  const te = ue("giftCard", () => {
7
7
  ne();
@@ -59,7 +59,7 @@ const te = ue("giftCard", () => {
59
59
  headers: {
60
60
  Authorization: t.value,
61
61
  Accept: "application/json",
62
- "Fresh-Booking-Ver": "4.0.21"
62
+ "Fresh-Booking-Ver": "4.0.22"
63
63
  }
64
64
  }).then((f) => {
65
65
  a.value = w.ReadyToPay, u.value = !1, z({
Binary file
package/dist/hotel.cjs CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";const e=require("./SelectField.vue_vue_type_style_index_0_lang-f2eadc00.cjs"),T=require("./index-85780e6d.cjs"),G=require("./ThankYou-328e6196.cjs"),Y=require("./DateField.vue_vue_type_style_index_0_lang-66f33a43.cjs"),Fe=require("./AvailabilitySkeleton-b8004f01.cjs"),gt=require("./NumberField.vue_vue_type_script_setup_true_lang-9af13100.cjs"),H=require("./_-72d06a62.cjs"),ne=require("./_commonjsHelpers-6763f629.cjs");require("./ActionField-f278c92a.cjs");require("./Field-7bca22a3.cjs");const se=e.defineComponent({__name:"HotelReservationForm",props:{showGiftCard:{type:Boolean,default:!1},showTermsNotice:{type:Boolean,default:!1}},setup(i){const{t:o}=e.useI18n(),t=e.useSlots(),{hideArrivalDepartureInputs:n,disableArrivalUserSelection:c,disableDepartureUserSelection:a,arrivalDefault:f,departureDefault:u,currency:p}=e.storeToRefs(e.useUtilityStore()),{arrivalDate:s,departureDate:g}=e.storeToRefs(e.useAvailabilityStore()),{arrivalTime:m,departureTime:_,roomDisplay:l,templateID:v,totalPrice:k,areListingsLoading:h}=e.storeToRefs(Y.useHotelStore()),{removeRoom:r}=Y.useHotelStore();function d(y){return y.reduce((B,{totalPrice:E})=>B+E,0)}return(y,b)=>(e.openBlock(),e.createBlock(G.ReservationForm,{"total-price":e.unref(k),"show-gift-card":y.showGiftCard,"show-terms-notice":y.showTermsNotice,"is-sidebar-loading":e.unref(h),notice:e.unref(o)("hotel.reservationNotice")},e.createSlots({form:e.withCtx(()=>[e.renderSlot(y.$slots,"form")]),"reservation-summary":e.withCtx(()=>[e.createBaseVNode("li",null,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(o)("booking.reservation.arrival")),1),e.createBaseVNode("b",null,e.toDisplayString(e.unref(n)?e.unref(e.showDate)(e.unref(s)):`${e.unref(e.showDate)(e.unref(s))}, ${e.unref(c)?e.unref(f):e.unref(m)}`),1)]),e.createBaseVNode("li",null,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(o)("booking.reservation.departure")),1),e.createBaseVNode("b",null,e.toDisplayString(e.unref(n)?e.unref(e.showDate)(e.unref(g)):`${e.unref(e.showDate)(e.unref(g))}, ${e.unref(a)?e.unref(u):e.unref(_)}`),1)]),e.createBaseVNode("li",null,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(o)("booking.reservation.nights")),1),e.createBaseVNode("b",null,e.toDisplayString(e.unref(e.daysBetweenDates)(e.unref(s),e.unref(g)))+" "+e.toDisplayString(e.unref(e.lowercase)(e.unref(e.daysBetweenDates)(e.unref(s),e.unref(g))===1?e.unref(o)("booking.reservation.night"):e.unref(o)("booking.reservation.nights"))),1)])]),"price-summary":e.withCtx(()=>[isNaN(e.unref(v))&&e.unref(l).length>0?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(e.unref(l),({roomGroupID:B,title:E,variants:I})=>(e.openBlock(),e.createElementBlock("div",{key:B},[e.createBaseVNode("h6",null,[e.createBaseVNode("span",null,e.toDisplayString(E),1)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(I,(x,P)=>(e.openBlock(),e.createElementBlock("div",{key:P},[e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(x.rooms,(C,R)=>(e.openBlock(),e.createElementBlock("ul",{key:R},[e.createBaseVNode("li",null,[e.createBaseVNode("span",null,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(e.capitalized)(x.name)),1),e.createBaseVNode("span",null,[e.createTextVNode("( "),e.createVNode(e.Icon,{icon:"male",type:"fas",color:"font"}),e.createBaseVNode("span",null,e.toDisplayString(C.adultsCount),1),e.createTextVNode(") "),C.childrenCount>0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(e.Icon,{icon:"child",type:"fas",color:"font"}),e.createBaseVNode("span",null,e.toDisplayString(C.childrenCount),1),e.createTextVNode(") ")],64)):e.createCommentVNode("",!0)])]),e.createBaseVNode("b",null,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(e.showPrice)(C.totalPrice,e.unref(p))),1),e.createCommentVNode("",!0)])]),e.createBaseVNode("li",null,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(o)("booking.reservation.addons")),1),e.createBaseVNode("b",null,e.toDisplayString(e.unref(e.showPrice)(d(C.roomAddons),e.unref(p))),1)])]))),128))]))),128))]))),128)):e.createCommentVNode("",!0)]),navigation:e.withCtx(()=>[e.renderSlot(y.$slots,"navigation")]),_:2},[e.unref(t).addons?{name:"addons",fn:e.withCtx(()=>[e.renderSlot(y.$slots,"addons")]),key:"0"}:void 0]),1032,["total-price","show-gift-card","show-terms-notice","is-sidebar-loading","notice"]))}}),yt=e.defineStore("tracking",()=>{const{enableTracking:i,googleApiKey:o}=e.storeToRefs(e.useUtilityStore());function t(){console.log("Tracking"),console.log(o),T.setOptions({config:{id:o.value,params:{send_page_view:!1}},enabled:i.value})}function n({id:p,name:s,value:g,label:m,category:_="general"}){return{items:[{id:p,name:s}],event_label:m,event_category:_,value:g}}function c(p,s){T.event(p,n(s))}function a(p,s,g){c("add_to_cart",{id:p,name:s,value:g,label:"Added to cart",category:"ecommerce"})}function f(p,s,g){c("remove_from_cart",{id:p,name:s,value:g,label:"Removed to cart",category:"ecommerce"})}function u(p){T.event("view_item",{items:[{name:p}]})}return{setup:t,viewItem:u,addToCart:a,removeFromCart:f}}),vt={key:0},_t={style:{display:"flex","align-items":"baseline"}},kt={key:0};const bt=e.defineComponent({__name:"RoomConfigField",props:{modelValue:{},options:{},required:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},label:{}},emits:["update:modelValue"],setup(i,{emit:o}){const{currency:t}=e.storeToRefs(e.useUtilityStore()),n=o,c=i;function a(u){n("update:modelValue",u)}const f=e.computed({get:()=>c.modelValue,set:u=>a(u)});return(u,p)=>(e.openBlock(),e.createBlock(e._sfc_main,{modelValue:f.value,"onUpdate:modelValue":p[0]||(p[0]=s=>f.value=s),label:u.label,placeholder:"Select guest configuration",labelKey:"label",valueKey:"value","icon-placement":"label",options:u.options,required:u.required},{option:e.withCtx(({data:s})=>[e.createBaseVNode("span",null,[e.createVNode(e.Icon,{icon:"male",type:"fas"}),e.createBaseVNode("span",null,e.toDisplayString(`${s.adults}`),1)]),s.children>0?(e.openBlock(),e.createElementBlock("span",vt,[e.createVNode(e.Icon,{icon:"child",type:"fas"}),e.createBaseVNode("span",null,e.toDisplayString(`${s.children}`),1)])):e.createCommentVNode("",!0),e.createBaseVNode("span",null,e.toDisplayString(`(${e.unref(e.showPrice)(s.price,e.unref(t))})`),1)]),"selected-option":e.withCtx(({data:s})=>[e.createBaseVNode("div",_t,[e.createBaseVNode("div",null,[e.createVNode(e.Icon,{icon:"male",type:"fas"}),e.createBaseVNode("span",null,e.toDisplayString(`${s.adults}`),1)]),s.children>0?(e.openBlock(),e.createElementBlock("div",kt,[e.createVNode(e.Icon,{icon:"child",type:"fas"}),e.createBaseVNode("span",null,e.toDisplayString(`${s.children}`),1)])):e.createCommentVNode("",!0),e.createCommentVNode("",!0)])]),_:1},8,["modelValue","label","options","required"]))}}),Bt={key:0,class:"fresh-booking-modal-facilities"},Vt={class:"fresh-booking-modal-facilities-masonry","transition-duration":"0s","destroy-delay":0,"percent-position":!0,"column-width":".grid-sizer","item-selector":".fresh-booking-modal-facility"},Et={class:"grid-sizer"},Nt=e.defineComponent({__name:"Info",props:{title:{},description:{},facilities:{}},setup(i){return(o,t)=>{const n=e.resolveDirective("masonry-tile"),c=e.resolveDirective("masonry");return e.openBlock(),e.createBlock(G._sfc_main,{title:o.title,description:o.description},{default:e.withCtx(()=>[o.facilities&&o.facilities.length!==0?(e.openBlock(),e.createElementBlock("div",Bt,[e.withDirectives((e.openBlock(),e.createElementBlock("ul",Vt,[e.withDirectives(e.createBaseVNode("div",Et,null,512),[[n]]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.facilities,({name:a,subFacilities:f},u)=>e.withDirectives((e.openBlock(),e.createElementBlock("li",{key:u,class:"fresh-booking-modal-facility"},[e.createBaseVNode("h6",null,[e.createBaseVNode("span",null,e.toDisplayString(a),1)]),e.createBaseVNode("ul",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f,({name:p},s)=>(e.openBlock(),e.createElementBlock("li",{key:s},e.toDisplayString(p),1))),128))])])),[[n]])),128))])),[[c]])])):e.createCommentVNode("",!0)]),_:1},8,["title","description"])}}});const Ct=e._export_sfc(Nt,[["__scopeId","data-v-4e226a17"]]),St={key:1},It={class:"fresh-booking-listing-config-body"},xt={class:"fresh-booking-listing-units-body"};const Tt=e.defineComponent({__name:"Hotel",props:{room:{},layout:{}},setup(i){const{t:o}=e.useI18n(),t=i,n=e.ref([]);function c(b){n.value[b].config.push({id:NaN,units:0,addons:[]})}const a=e.computed(()=>t.room.rates.map(b=>({label:b.name,value:b.id}))),f=e.computed(()=>n.value.flatMap(b=>b.id));e.computed(()=>a.value.filter(b=>!f.value.includes(b.value))),e.storeToRefs(e.useUtilityStore());const{roomSelect:u}=e.storeToRefs(Y.useHotelStore()),{viewItem:p}=yt(),s=(b,B)=>t.room.rates.find(E=>E.id===b)?.occupantRates.find(E=>E.index===B),g=e.computed(()=>t.room.rates.reduce((b,B)=>b<B.rackRate?b:B.rackRate,1/0)),m=e.computed(()=>t.room.rates.every(b=>b.isBreakfastIncluded===!0)),_=(b,B)=>s(b,B)?s(b,B)?.rooms:null,l=b=>t.room.rates.length>0?t.room.rates.find(B=>B.id===b)?.occupantRates.map(B=>({value:B.index,price:B.totalPrice,adults:B.adultsCount,children:B.childrenCount,hasBreakfast:B.hasBreakfast}))||[]:[],v=e.computed(()=>t.room.rates.length>1),{open:k,close:h}=e.Uo({component:Ct,attrs:{title:t.room.title,description:t.room.description,facilities:t.room.facilities,onConfirm(){h()}}});function r(){k(),p(t.room.title)}function d(){v.value?n.value.push({id:void 0,config:[{id:t.room.rates[0].occupantRateIndex||NaN,units:0,addons:[]}]}):n.value.push({id:t.room.rates[0].id,config:[{id:t.room.rates[0].occupantRateIndex||NaN,units:0,addons:[]}]})}e.onMounted(()=>{d()});const y=e.computed(()=>JSON.parse(JSON.stringify(n.value)));return e.watch(y,(b,B)=>{B.length>0&&b.forEach((E,I)=>{E.config.forEach((x,P)=>{const C=x.units,R=B[I].config[P].units;C!==R&&(C>R?n.value[I].config[P].addons.push({}):n.value[I].config[P].addons.pop())})})},{deep:!0}),e.watch(n,()=>{u.value[t.room.id]=n.value},{deep:!0}),(b,B)=>(e.openBlock(),e.createBlock(G.Base,{"listing-id":b.room.id,gallery:b.room.images,name:b.room.title,description:b.room.description,layout:b.layout,facilities:b.room.facilities,"prices-from":g.value,"includes-breakfast":m.value,callback:r},{action:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.value,(E,I)=>(e.openBlock(),e.createElementBlock("div",{key:E.id,class:"freshbooking-hotel-room"},[v.value?(e.openBlock(),e.createBlock(e._sfc_main,{key:0,modelValue:E.id,"onUpdate:modelValue":x=>E.id=x,label:e.unref(o)("hotel.roomVariant"),placeholder:e.unref(o)("hotel.chooseARoomVariant"),options:a.value,searchable:!1},null,8,["modelValue","onUpdate:modelValue","label","placeholder","options"])):e.createCommentVNode("",!0),E.id?(e.openBlock(),e.createElementBlock("div",St,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(b.room.rates,({id:x,maximumAdults:P})=>(e.openBlock(),e.createElementBlock("div",{key:x},[E.id===x?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(E.config,(C,R)=>(e.openBlock(),e.createElementBlock("div",{key:R,class:"booking-availability-listing-action-selective"},[e.createBaseVNode("ul",It,[(e.openBlock(),e.createBlock(bt,{key:0,modelValue:C.id,"onUpdate:modelValue":O=>C.id=O,description:`Maximum adults: ${P}`,icon:"male","icon-type":"fas",label:e.unref(o)("availability.adults"),options:l(x)},null,8,["modelValue","onUpdate:modelValue","description","label","options"]))]),e.createBaseVNode("ul",xt,[e.createVNode(gt._sfc_main,{modelValue:C.units,"onUpdate:modelValue":O=>C.units=O,description:`Available units: ${_(E.id,C.id)}`,icon:"house","icon-type":"fas","icon-placement":"label",label:e.unref(o)("booking.availability.units"),minValue:0,"max-value":_(x,C.id)||1/0},null,8,["modelValue","onUpdate:modelValue","description","label","max-value"])]),e.createCommentVNode("",!0)]))),128)):e.createCommentVNode("",!0)]))),128))])):e.createCommentVNode("",!0)]))),128))]),_:1},8,["listing-id","gallery","name","description","layout","facilities","prices-from","includes-breakfast"]))}});const Dt=e._export_sfc(Tt,[["__scopeId","data-v-f23e8af2"]]),Ee=e.defineComponent({__name:"TimeField",props:{modelValue:{},label:{},id:{},name:{},placeholder:{},icon:{},iconColor:{},iconType:{},primaryColor:{},secondaryColor:{},weekendColor:{},highlightedColor:{},required:{type:Boolean},readonly:{type:Boolean},disabled:{type:Boolean},inline:{type:Boolean},range:{type:Boolean},enableTimePicker:{type:Boolean},inputStyle:{}},emits:["update:modelValue"],setup(i,{emit:o}){const t=o,n=i;function c(f){t("update:modelValue",f)}const a=e.ref(n.modelValue);return e.watch(a,f=>{c(f)}),(f,u)=>(e.openBlock(),e.createBlock(Y._sfc_main,{modelValue:a.value,"onUpdate:modelValue":u[0]||(u[0]=p=>a.value=p),type:"time",label:f.label,id:f.id,name:f.name,icon:f.icon,"icon-type":f.iconType,"icon-color":f.iconColor,"auto-apply":!0,required:f.required,readonly:f.readonly},null,8,["modelValue","label","id","name","icon","icon-type","icon-color","required","readonly"]))}});const $t={style:{display:"flex","align-items":"baseline"}},wt=e.defineComponent({__name:"CountryField",props:{modelValue:{},options:{},required:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},label:{},placeholder:{}},emits:["update:modelValue"],setup(i,{emit:o}){const{t}=e.useI18n(),n=o,c=i;function a(u){n("update:modelValue",u)}const f=e.computed({get:()=>c.modelValue,set:u=>a(u)});return(u,p)=>(e.openBlock(),e.createBlock(e._sfc_main,{modelValue:f.value,"onUpdate:modelValue":p[0]||(p[0]=s=>f.value=s),label:u.label,placeholder:e.unref(t)("booking.reservation.countryPlaceholder"),labelKey:"name",valueKey:"id",options:u.options,required:u.required},{option:e.withCtx(({data:s})=>[e.createBaseVNode("i",{class:e.normalizeClass(["konnectio-flag-icon",s.iso])},null,2),e.createBaseVNode("span",null,e.toDisplayString(s.name),1)]),"selected-option":e.withCtx(({data:s})=>[e.createBaseVNode("div",$t,[e.createBaseVNode("i",{class:e.normalizeClass(["konnectio-flag-icon",s.iso])},null,2),e.createBaseVNode("span",null,e.toDisplayString(s.name),1)])]),_:1},8,["modelValue","label","placeholder","options","required"]))}});const Pt=e._export_sfc(wt,[["__scopeId","data-v-1462612d"]]),Lt=e.defineComponent({__name:"NameField",props:{modelValue:{},title:{},label:{},id:{},placeholder:{},icon:{},iconColor:{},iconType:{default:"fal"},required:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},type:{default:"text"},autocomplete:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},limit:{default:1/0},inputStyle:{},excludeTitle:{type:Boolean,default:!1}},emits:["update:modelValue","update:title"],setup(i,{emit:o}){const t=i,n=o,c=t.id||e.ranId(),a=e.ref(""),f=e.ref(2);function u(){n("update:modelValue",a.value)}e.watch(f,s=>{n("update:title",s)});const{t:p}=e.useI18n();return e.onMounted(()=>{t.modelValue&&(a.value=t.modelValue),t.title&&(f.value=t.title)}),(s,g)=>(e.openBlock(),e.createBlock(e.InputField,{label:s.label,id:e.unref(c),required:s.required,type:"fresh-booking-name-field",readonly:s.readonly,limit:s.limit},{default:e.withCtx(()=>[e.createBaseVNode("div",{class:e.normalizeClass(["fresh-booking-name-input",{"no-title":s.excludeTitle}])},[s.excludeTitle?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e._sfc_main,{key:0,modelValue:f.value,"onUpdate:modelValue":g[0]||(g[0]=m=>f.value=m),id:e.unref(e.ranId)(),icon:s.icon,"icon-color":s.iconColor,"icon-type":s.iconType,options:[{label:e.unref(p)("booking.reservation.noNameTitle"),value:1},{label:e.unref(p)("booking.reservation.nameTitleMr"),value:2},{label:e.unref(p)("booking.reservation.nameTitleMs"),value:3},{label:e.unref(p)("booking.reservation.nameTitleMrs"),value:4},{label:e.unref(p)("booking.reservation.nameTitleDr"),value:5}],readonly:s.readonly,"hide-button":"","input-style":s.inputStyle},null,8,["modelValue","id","icon","icon-color","icon-type","options","readonly","input-style"])),e.createVNode(e.TextField,{modelValue:a.value,"onUpdate:modelValue":g[1]||(g[1]=m=>a.value=m),type:"text",name:"name",autocomplete:"name",id:e.unref(c),icon:s.excludeTitle?s.icon:void 0,"icon-color":s.iconColor,"icon-type":s.iconType,placeholder:s.placeholder,required:s.required,readonly:s.readonly,limit:s.limit,onInput:g[2]||(g[2]=m=>u()),"input-style":s.inputStyle},null,8,["modelValue","id","icon","icon-color","icon-type","placeholder","required","readonly","limit","input-style"])],2)]),_:1},8,["label","id","required","readonly","limit"]))}});const Rt=e._export_sfc(Lt,[["__scopeId","data-v-f17661ec"]]),Ft={class:"hotel-listing"},Ht={class:"hotel-listing-content-gallery"},Ot={class:"hotel-listing-content-thumbs"},At={class:"hotel-listing-content"},zt={class:"hotel-listing-content-header"},Mt={class:"hotel-listing-content-title"},Wt={class:"hotel-listing-content-body"},Ut={class:"hotel-listing-content-facilities"},qt=e.defineComponent({__name:"Listing",setup(i){return(o,t)=>(e.openBlock(),e.createElementBlock("div",Ft,[e.createBaseVNode("div",Ht,[e.createVNode(H.Element,{width:"280px",height:"153px"}),e.createBaseVNode("div",Ot,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(3,n=>e.createVNode(H.Element,{key:n,width:"84px",height:"44px"})),64))])]),e.createBaseVNode("div",At,[e.createBaseVNode("div",zt,[e.createBaseVNode("div",Mt,[e.createVNode(H.Element,{height:"30px",width:"60%"}),e.createVNode(H.Element,{height:"30px",width:"30px","border-radius":"100%"})]),e.createVNode(H.Element,{height:"15px",width:"25%"})]),e.createBaseVNode("div",Wt,[e.createVNode(H.Element,{height:"15px"}),e.createVNode(H.Element,{height:"15px"}),e.createVNode(H.Element,{height:"15px"}),e.createVNode(H.Element,{height:"15px"}),e.createVNode(H.Element,{height:"15px",width:"90%"})]),e.createBaseVNode("div",Ut,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(5,n=>e.createVNode(H.Element,{key:n,height:"25px",width:"25px","border-radius":"6px"})),64))])])]))}});const j=e._export_sfc(qt,[["__scopeId","data-v-5c132d7f"]]),Gt={class:"hotel-skeleton"},jt={class:"hotel-skeleton-content"},Yt={class:"hotel-skeleton-sidebar"},Qt=e.defineComponent({__name:"HotelSkeleton",setup(i){return(o,t)=>(e.openBlock(),e.createElementBlock("div",Gt,[e.createBaseVNode("div",jt,[e.createVNode(Fe.AvailabilitySkeleton),e.createVNode(j),e.createVNode(j),e.createVNode(j)]),e.createBaseVNode("div",Yt,[e.createVNode(G.Sidebar)])]))}});const Kt=e._export_sfc(Qt,[["__scopeId","data-v-4e50a5a1"]]),Jt={id:"booking-availability-container"},Xt={id:"booking-availability-controls"},Zt={key:0,"sticky-container":""},eo={key:0},to={key:0},oo={key:0};const no={id:"booking-availability-listings"},io={key:1,id:"booking-availability-no-listings"},ro={key:1,id:"booking-availability-no-listings"},ao={key:2,id:"reservation-availability-next-dates"},so={class:"reservation-special-offers-grid"},lo=["title"];const uo={key:1,class:"konnectio-listing-loading"},co={class:"fresh-booking-panel"},po={key:1},fo={class:"fresh-booking-checkbox-spacing"},ho=["onClick"],mo={class:"fresh-booking-panel"},go={key:0},yo={key:1},vo={class:"fresh-booking-split-inputs"},_o={key:3},ko={class:"fresh-booking-label"},bo={class:"fresh-booking-checkbox-spacing"},Bo=["onClick"],Vo=e.defineComponent({name:"HotelLayout",__name:"Hotel",props:{accessToken:{},headerLayout:{default:e.BookingHeaderLayout.Minimal},layout:{},packagesTitleMaxLines:{default:"2"},styling:{}},setup(i){const o=i,{t}=e.useI18n(),{templateID:n,title:c,countries:a,areListingsLoading:f,isAvailabilityDataAvailable:u,isPaymentLoading:p,isReservationFormFilled:s,selectedPackage:g,travelingFor:m,arrivalTime:_,departureTime:l,name:v,nameTitle:k,email:h,phone:r,firmName:d,postal:y,city:b,address:B,country:E,remark:I,allergies:x,newsMails:P,roomSelect:C,roomDisplay:R,hasValidRoomSelection:O,getSelectedPackageRoom:ie,availabilityData:Q}=e.storeToRefs(Y.useHotelStore()),{arrivalDate:Ge,departureDate:je}=e.storeToRefs(e.useAvailabilityStore()),{currency:A,isRecaptchaEnabled:Cn,disableNewsletterSignup:Ye,arrivalEarliest:Qe,arrivalLatest:Ke,departureEarliest:Je,departureLatest:Xe,enableTracking:Sn,arrivalDefault:Ze,departureDefault:et,enablePackages:In,hideArrivalDepartureInputs:tt,disableArrivalUserSelection:re,disableNamePrefix:ot,disableDepartureUserSelection:ae,disableTravelingFor:nt,disableCompanyField:it}=e.storeToRefs(e.useUtilityStore());e.useAlertStore();const{initialize:rt,createReservation:at,getSingleListing:xn}=Y.useHotelStore(),st=e.computed(()=>({inputBorderWidth:"0px 0px 1px",inputBorderRadius:"6px",inputBackground:"#f8f8f8",inputFontColor:"#6b6b6b",...o.styling})),lt=e.computed(()=>[[parseInt(Qe.value.split(":")[0]),parseInt(Ke.value.split(":")[0])]]),ut=e.computed(()=>[[parseInt(Je.value.split(":")[0]),parseInt(Xe.value.split(":")[0])]]);function ct(){n.value=NaN}function Ve(F){F()}function dt(F,S){je.value=new Date(S),Ge.value=new Date(F),location.reload()}async function pt(F){await at(F)}function ft(F){F()}function ht(){_.value===""&&(_.value=Ze.value),l.value===""&&(l.value=et.value)}return e.onMounted(()=>{rt(),ht()}),(F,S)=>(e.openBlock(),e.createBlock(e.Suspense,null,{default:e.withCtx(()=>[e.createVNode(e._sfc_main$1,{id:"fresh-booking-hotel-module","access-token":F.accessToken,type:"hotel",styling:st.value},{default:e.withCtx(()=>[e.createVNode(G.MultiStepForm,{title:e.unref(c),layout:F.headerLayout},{availability:e.withCtx(({next:K})=>[e.createVNode(se,null,{form:e.withCtx(()=>[e.createBaseVNode("div",Jt,[e.createBaseVNode("div",Xt,[e.createVNode(Fe.HotelAvailabilityForm,{booking:!0})]),e.unref(f)?(e.openBlock(),e.createElementBlock("div",uo,[e.createVNode(j),e.createVNode(j),e.createVNode(j)])):(e.openBlock(),e.createElementBlock("div",Zt,[e.unref(Q).roomGroups.length>0?(e.openBlock(),e.createElementBlock("div",eo,[isNaN(e.unref(n))?(e.openBlock(),e.createElementBlock("div",to,[e.unref(Q).roomGroups.length>0?(e.openBlock(),e.createElementBlock("div",oo,[e.createCommentVNode("",!0),e.createBaseVNode("ul",no,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(Q).roomGroups,(L,V)=>(e.openBlock(),e.createBlock(Dt,{room:L,layout:F.layout,key:V},null,8,["room","layout"]))),128))])])):(e.openBlock(),e.createElementBlock("div",io,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(t)("booking.availability.nothingAvailable")),1)]))])):e.createCommentVNode("",!0)])):e.unref(Q).nextAvailableDates.length===0?(e.openBlock(),e.createElementBlock("div",ro,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(t)("booking.availability.nothingAvailable")),1)])):(e.openBlock(),e.createElementBlock("div",ao,[e.createBaseVNode("h2",null,[e.createVNode(e.Icon,{icon:"calendar-circle-exclamation",type:"fal",color:"header"}),e.createBaseVNode("span",null,e.toDisplayString(e.unref(t)("booking.availability.nextAvailableDates")),1)]),e.createBaseVNode("ul",so,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(Q).nextAvailableDates,(L,V)=>(e.openBlock(),e.createElementBlock("li",{key:V},[e.createBaseVNode("h3",{title:`${e.unref(e.showDate)(L.fromDate)} - ${e.unref(e.showDate)(L.toDate)}`},[e.createBaseVNode("span",null,e.toDisplayString(`${e.unref(e.showDate)(L.fromDate)} - ${e.unref(e.showDate)(L.toDate)}`),1)],8,lo),e.createBaseVNode("ul",null,[e.createCommentVNode("",!0),e.createBaseVNode("li",null,[e.createVNode(e.Icon,{icon:"money-bill",type:"fal",color:"header"}),e.createBaseVNode("span",null,e.toDisplayString(e.unref(t)("booking.availability.pricesFrom"))+": "+e.toDisplayString(e.unref(e.showPrice)(L.priceStartFrom,e.unref(A))),1)])]),e.createVNode(e.Clickable,{label:e.unref(t)("booking.availability.selectDates"),"full-width":"",onClickEvent:J=>dt(L.fromDate,L.toDate)},null,8,["label","onClickEvent"])]))),128))])]))]))])]),navigation:e.withCtx(()=>[isNaN(e.unref(n))?(e.openBlock(),e.createBlock(e.Clickable,{key:0,label:e.unref(t)("booking.availability.nextButton"),disabled:!e.unref(O),"is-loading":!1,"full-width":"",onClickEvent:L=>ft(K)},null,8,["label","disabled","onClickEvent"])):(e.openBlock(),e.createBlock(e.Clickable,{key:1,label:e.unref(t)("booking.reservation.prevButton"),"full-width":"",onClickEvent:S[0]||(S[0]=L=>ct())},null,8,["label"]))]),_:2},1024)]),addons:e.withCtx(({next:K,prev:L})=>[e.createVNode(se,null,{form:e.withCtx(()=>[e.createBaseVNode("div",co,[e.createBaseVNode("h2",null,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(t)("booking.reservation.addons")),1)]),e.createBaseVNode("div",null,[isNaN(e.unref(n))?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(e.unref(R),V=>(e.openBlock(),e.createElementBlock("ul",{key:V.roomGroupID},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(V.variants,(J,$)=>(e.openBlock(),e.createElementBlock("li",{key:J.ratePlanID},[e.createBaseVNode("h4",null,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(e.capitalized)(V.title)),1)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(J.rooms,(N,mt)=>(e.openBlock(),e.createElementBlock("table",{key:mt,class:"fresh-booking-table"},[e.createBaseVNode("thead",null,[e.createBaseVNode("tr",null,[e.createBaseVNode("th",null,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(e.capitalized)(J.name)),1)]),e.createBaseVNode("th",null,[e.createBaseVNode("b",null,[e.createVNode(e.Icon,{icon:"male",type:"fas",color:"font"}),e.createBaseVNode("span",null,e.toDisplayString(N.adultsCount),1),N.childrenCount>0?(e.openBlock(),e.createBlock(e.Icon,{key:0,icon:"child",type:"fas",color:"font"})):e.createCommentVNode("",!0),N.childrenCount>0?(e.openBlock(),e.createElementBlock("span",po,e.toDisplayString(N.childrenCount),1)):e.createCommentVNode("",!0)])])])]),e.createBaseVNode("tbody",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(V.addons,({quantityStrategy:z,id:D,name:M,price:W})=>(e.openBlock(),e.createElementBlock("tr",{key:D},[e.createBaseVNode("ul",fo,[e.createBaseVNode("li",null,[z===e.unref(e.QuantityStrategy).PerPerson?(e.openBlock(),e.createBlock(T.Checkbox,{key:0,modelValue:e.unref(C)[V.roomGroupID][$].config[N.configIdx].addons[N.roomIdx][D],"onUpdate:modelValue":w=>e.unref(C)[V.roomGroupID][$].config[N.configIdx].addons[N.roomIdx][D]=w,label:M,price:`${e.unref(e.showPrice)(W,e.unref(A))} ${e.unref(t)("general.perPerson")}`},null,8,["modelValue","onUpdate:modelValue","label","price"])):z===e.unref(e.QuantityStrategy).PerChild&&N.childrenCount>0?(e.openBlock(),e.createBlock(T.Checkbox,{key:1,modelValue:e.unref(C)[V.roomGroupID][$].config[N.configIdx].addons[N.roomIdx][D],"onUpdate:modelValue":w=>e.unref(C)[V.roomGroupID][$].config[N.configIdx].addons[N.roomIdx][D]=w,label:M,price:`${e.unref(e.showPrice)(W,e.unref(A))} ${e.unref(t)("general.perChild")}`},null,8,["modelValue","onUpdate:modelValue","label","price"])):z===e.unref(e.QuantityStrategy).PerAdult?(e.openBlock(),e.createBlock(T.Checkbox,{key:2,modelValue:e.unref(C)[V.roomGroupID][$].config[N.configIdx].addons[N.roomIdx][D],"onUpdate:modelValue":w=>e.unref(C)[V.roomGroupID][$].config[N.configIdx].addons[N.roomIdx][D]=w,label:M,price:`${e.unref(e.showPrice)(W,e.unref(A))} ${e.unref(t)("general.perAdult")}`},null,8,["modelValue","onUpdate:modelValue","label","price"])):z===e.unref(e.QuantityStrategy).PerPersonPerNight?(e.openBlock(),e.createBlock(T.Checkbox,{key:3,modelValue:e.unref(C)[V.roomGroupID][$].config[N.configIdx].addons[N.roomIdx][D],"onUpdate:modelValue":w=>e.unref(C)[V.roomGroupID][$].config[N.configIdx].addons[N.roomIdx][D]=w,label:M,price:`${e.unref(e.showPrice)(W,e.unref(A))} ${e.unref(t)("general.perPersonPerNight")}`},null,8,["modelValue","onUpdate:modelValue","label","price"])):z===e.unref(e.QuantityStrategy).PerAdultPerNight?(e.openBlock(),e.createBlock(T.Checkbox,{key:4,modelValue:e.unref(C)[V.roomGroupID][$].config[N.configIdx].addons[N.roomIdx][D],"onUpdate:modelValue":w=>e.unref(C)[V.roomGroupID][$].config[N.configIdx].addons[N.roomIdx][D]=w,label:M,price:`${e.unref(e.showPrice)(W,e.unref(A))} ${e.unref(t)("general.perAdultPerNight")}`},null,8,["modelValue","onUpdate:modelValue","label","price"])):z===e.unref(e.QuantityStrategy).PerChildPerNight?(e.openBlock(),e.createBlock(T.Checkbox,{key:5,modelValue:e.unref(C)[V.roomGroupID][$].config[N.configIdx].addons[N.roomIdx][D],"onUpdate:modelValue":w=>e.unref(C)[V.roomGroupID][$].config[N.configIdx].addons[N.roomIdx][D]=w,label:M,price:`${e.unref(e.showPrice)(W,e.unref(A))} ${e.unref(t)("general.perChildPerNight")}`},null,8,["modelValue","onUpdate:modelValue","label","price"])):z===e.unref(e.QuantityStrategy).PerNight?(e.openBlock(),e.createBlock(T.Checkbox,{key:6,modelValue:e.unref(C)[V.roomGroupID][$].config[N.configIdx].addons[N.roomIdx][D],"onUpdate:modelValue":w=>e.unref(C)[V.roomGroupID][$].config[N.configIdx].addons[N.roomIdx][D]=w,label:M,price:`${e.unref(e.showPrice)(W,e.unref(A))} ${e.unref(t)("general.perNight")}`},null,8,["modelValue","onUpdate:modelValue","label","price"])):z===e.unref(e.QuantityStrategy).PerUnit?(e.openBlock(),e.createBlock(T.Checkbox,{key:7,modelValue:e.unref(C)[V.roomGroupID][$].config[N.configIdx].addons[N.roomIdx][D],"onUpdate:modelValue":w=>e.unref(C)[V.roomGroupID][$].config[N.configIdx].addons[N.roomIdx][D]=w,label:M,price:`${e.unref(e.showPrice)(W,e.unref(A))}`},null,8,["modelValue","onUpdate:modelValue","label","price"])):z===e.unref(e.QuantityStrategy).OneTimePayment?(e.openBlock(),e.createBlock(T.Checkbox,{key:8,modelValue:e.unref(C)[V.roomGroupID][$].config[N.configIdx].addons[N.roomIdx][D],"onUpdate:modelValue":w=>e.unref(C)[V.roomGroupID][$].config[N.configIdx].addons[N.roomIdx][D]=w,label:M,price:`${e.unref(e.showPrice)(W,e.unref(A))}`},null,8,["modelValue","onUpdate:modelValue","label","price"])):e.createCommentVNode("",!0)])])]))),128))])]))),128))]))),128))]))),128)):e.createCommentVNode("",!0)])])]),navigation:e.withCtx(()=>[e.createVNode(e.Clickable,{label:e.unref(t)("general.startReservation"),"full-width":"",onClickEvent:K},null,8,["label","onClickEvent"]),e.createBaseVNode("button",{class:"konnectio-abort-reservation link",onClick:e.withModifiers(V=>Ve(L),["prevent"])},[e.createBaseVNode("span",null,e.toDisplayString(e.unref(t)("general.abortReservation")),1)],8,ho)]),_:2},1024)]),reservation:e.withCtx(({next:K,prev:L})=>[e.createVNode(se,{"show-terms-notice":!0,"show-gift-card":!0},{form:e.withCtx(()=>[e.createBaseVNode("form",mo,[e.createBaseVNode("h2",null,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(t)("booking.reservation.detailsTitle")),1)]),!e.unref(tt)&&!(e.unref(re)&&e.unref(ae))?(e.openBlock(),e.createElementBlock("ul",{key:0,class:e.normalizeClass({"fresh-booking-split-inputs":!e.unref(re)&&!e.unref(ae)})},[e.unref(re)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("li",go,[e.createVNode(Ee,{modelValue:e.unref(_),"onUpdate:modelValue":S[1]||(S[1]=V=>e.isRef(_)?_.value=V:null),label:e.unref(t)("booking.reservation.arrivalTime"),icon:"hourglass-start","hour-range":lt.value,required:""},null,8,["modelValue","label","hour-range"])])),e.unref(ae)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("li",yo,[e.createVNode(Ee,{modelValue:e.unref(l),"onUpdate:modelValue":S[2]||(S[2]=V=>e.isRef(l)?l.value=V:null),label:e.unref(t)("booking.reservation.departureTime"),icon:"hourglass-end","hour-range":ut.value,required:""},null,8,["modelValue","label","hour-range"])]))],2)):e.createCommentVNode("",!0),e.createVNode(Rt,{modelValue:e.unref(v),"onUpdate:modelValue":S[3]||(S[3]=V=>e.isRef(v)?v.value=V:null),title:e.unref(k),"onUpdate:title":S[4]||(S[4]=V=>e.isRef(k)?k.value=V:null),"exclude-title":e.unref(ot),label:e.unref(t)("booking.reservation.name"),icon:"user-alt",placeholder:e.unref(t)("booking.reservation.namePlaceholder"),required:""},null,8,["modelValue","title","exclude-title","label","placeholder"]),e.createVNode(e.TextField,{modelValue:e.unref(h),"onUpdate:modelValue":S[5]||(S[5]=V=>e.isRef(h)?h.value=V:null),type:"email",name:"email",autocomplete:"email",label:e.unref(t)("booking.reservation.email"),icon:"at",placeholder:e.unref(t)("booking.reservation.emailPlaceholder"),required:""},null,8,["modelValue","label","placeholder"]),e.unref(Ye)?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(T.Checkbox,{key:1,modelValue:e.unref(P),"onUpdate:modelValue":S[6]||(S[6]=V=>e.isRef(P)?P.value=V:null),type:"checkbox",name:"newsletter",label:e.unref(t)("booking.reservation.newsletterSignUp")},null,8,["modelValue","label"])),e.unref(it)?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e.TextField,{key:2,modelValue:e.unref(d),"onUpdate:modelValue":S[7]||(S[7]=V=>e.isRef(d)?d.value=V:null),type:"text",name:"firm",autocomplete:"firm",label:`${e.unref(t)("booking.reservation.companyName")} (${e.unref(t)("booking.reservation.optional")})`,icon:"id-card",placeholder:e.unref(t)("booking.reservation.companyNamePlaceholder")},null,8,["modelValue","label","placeholder"])),e.createVNode(T.PhoneField,{modelValue:e.unref(r),"onUpdate:modelValue":S[8]||(S[8]=V=>e.isRef(r)?r.value=V:null),icon:"phone-office",label:e.unref(t)("booking.reservation.phone"),placeholder:e.unref(t)("booking.reservation.phonePlaceholder"),required:""},null,8,["modelValue","label","placeholder"]),e.createVNode(Pt,{modelValue:e.unref(E),"onUpdate:modelValue":S[9]||(S[9]=V=>e.isRef(E)?E.value=V:null),label:e.unref(t)("booking.reservation.country"),placeholder:e.unref(t)("booking.reservation.countryPlaceholder"),options:e.unref(a),required:""},null,8,["modelValue","label","placeholder","options"]),e.createVNode(e.TextField,{modelValue:e.unref(B),"onUpdate:modelValue":S[10]||(S[10]=V=>e.isRef(B)?B.value=V:null),type:"textarea",name:"address",autocomplete:"street-address",label:e.unref(t)("booking.reservation.streetAddress"),icon:"map-marked",placeholder:e.unref(t)("booking.reservation.streetAddressPlaceholder"),required:""},null,8,["modelValue","label","placeholder"]),e.createBaseVNode("ul",vo,[e.createBaseVNode("li",null,[e.createVNode(e.TextField,{modelValue:e.unref(y),"onUpdate:modelValue":S[11]||(S[11]=V=>e.isRef(y)?y.value=V:null),type:"text",name:"postal",autocomplete:"postal-code",label:e.unref(t)("booking.reservation.postal"),icon:"mailbox",placeholder:e.unref(t)("booking.reservation.postalPlaceholder"),required:""},null,8,["modelValue","label","placeholder"])]),e.createBaseVNode("li",null,[e.createVNode(e.TextField,{modelValue:e.unref(b),"onUpdate:modelValue":S[12]||(S[12]=V=>e.isRef(b)?b.value=V:null),type:"text",name:"city",autocomplete:"address-level2",label:e.unref(t)("booking.reservation.city"),icon:"city",placeholder:e.unref(t)("booking.reservation.cityPlaceholder"),required:""},null,8,["modelValue","label","placeholder"])])]),e.createVNode(e.TextField,{modelValue:e.unref(I),"onUpdate:modelValue":S[13]||(S[13]=V=>e.isRef(I)?I.value=V:null),type:"textarea",label:`${e.unref(t)("booking.reservation.remark")} (${e.unref(t)("booking.reservation.optional")})`,icon:"info-circle",placeholder:e.unref(t)("booking.reservation.remarkPlaceholder")},null,8,["modelValue","label","placeholder"]),e.createVNode(e.TextField,{modelValue:e.unref(x),"onUpdate:modelValue":S[14]||(S[14]=V=>e.isRef(x)?x.value=V:null),type:"textarea",label:`${e.unref(t)("booking.reservation.allergies")} (${e.unref(t)("booking.reservation.optional")})`,icon:"allergies",placeholder:e.unref(t)("booking.reservation.allergiesPlaceholder")},null,8,["modelValue","label","placeholder"]),e.unref(nt)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",_o,[e.createBaseVNode("label",ko,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(t)("booking.reservation.purposeOfStay"))+" ("+e.toDisplayString(e.unref(t)("booking.reservation.optional"))+")",1)]),e.createBaseVNode("ul",bo,[e.createBaseVNode("li",null,[e.createVNode(T.Checkbox,{modelValue:e.unref(m),"onUpdate:modelValue":S[15]||(S[15]=V=>e.isRef(m)?m.value=V:null),type:"radio",name:"travelingFor",label:e.unref(t)("booking.reservation.business"),val:"Business"},null,8,["modelValue","label"])]),e.createBaseVNode("li",null,[e.createVNode(T.Checkbox,{modelValue:e.unref(m),"onUpdate:modelValue":S[16]||(S[16]=V=>e.isRef(m)?m.value=V:null),type:"radio",name:"travelingFor",label:e.unref(t)("booking.reservation.pleasure"),val:"Pleasure"},null,8,["modelValue","label"])]),e.createBaseVNode("li",null,[e.createVNode(T.Checkbox,{modelValue:e.unref(m),"onUpdate:modelValue":S[17]||(S[17]=V=>e.isRef(m)?m.value=V:null),type:"radio",name:"travelingFor",label:e.unref(t)("booking.reservation.bleasure"),val:"Bleasure"},null,8,["modelValue","label"])])])]))])]),navigation:e.withCtx(()=>[e.createBaseVNode("div",null,[e.createVNode(e.Clickable,{label:e.unref(t)("general.confirmReservation"),disabled:!e.unref(s),"is-loading":e.unref(p),"full-width":"",onClickEvent:V=>pt(K)},null,8,["label","disabled","is-loading","onClickEvent"]),e.createBaseVNode("button",{class:"konnectio-abort-reservation link",onClick:e.withModifiers(V=>Ve(L),["prevent"])},[e.createBaseVNode("span",null,e.toDisplayString(e.unref(t)("general.abortReservation")),1)],8,Bo)])]),_:2},1024)]),payment:e.withCtx(()=>[e.createVNode(T.CheckoutWindow)]),confirmation:e.withCtx(()=>[e.createVNode(G.ThankYou,{message:e.unref(t)("booking.confirmation.thankYou")},null,8,["message"])]),_:1},8,["title","layout"])]),_:1},8,["access-token","styling"])]),fallback:e.withCtx(()=>[e.createVNode(Kt)]),_:1}))}});const Eo=e._export_sfc(Vo,[["__scopeId","data-v-dc0431f8"]]);var He={exports:{}},le={exports:{}},ue={exports:{}},Ne;function ke(){return Ne||(Ne=1,function(i){(function(o,t){i.exports?i.exports=t():o.EvEmitter=t()})(typeof window<"u"?window:ne.commonjsGlobal,function(){function o(){}var t=o.prototype;return t.on=function(n,c){if(!(!n||!c)){var a=this._events=this._events||{},f=a[n]=a[n]||[];return f.indexOf(c)==-1&&f.push(c),this}},t.once=function(n,c){if(!(!n||!c)){this.on(n,c);var a=this._onceEvents=this._onceEvents||{},f=a[n]=a[n]||{};return f[c]=!0,this}},t.off=function(n,c){var a=this._events&&this._events[n];if(!(!a||!a.length)){var f=a.indexOf(c);return f!=-1&&a.splice(f,1),this}},t.emitEvent=function(n,c){var a=this._events&&this._events[n];if(!(!a||!a.length)){a=a.slice(0),c=c||[];for(var f=this._onceEvents&&this._onceEvents[n],u=0;u<a.length;u++){var p=a[u],s=f&&f[p];s&&(this.off(n,p),delete f[p]),p.apply(this,c)}return this}},t.allOff=function(){delete this._events,delete this._onceEvents},o})}(ue)),ue.exports}var ce={exports:{}};/*!
1
+ "use strict";const e=require("./SelectField.vue_vue_type_style_index_0_lang-ed0ef984.cjs"),T=require("./index-c407bc6f.cjs"),G=require("./ThankYou-98807e93.cjs"),Y=require("./DateField.vue_vue_type_style_index_0_lang-efec37d7.cjs"),Fe=require("./AvailabilitySkeleton-0e77a3ad.cjs"),gt=require("./NumberField.vue_vue_type_script_setup_true_lang-53cff536.cjs"),H=require("./_-07462fdc.cjs"),ne=require("./_commonjsHelpers-6763f629.cjs");require("./ActionField-83fef1c1.cjs");require("./Field-72b689c4.cjs");const se=e.defineComponent({__name:"HotelReservationForm",props:{showGiftCard:{type:Boolean,default:!1},showTermsNotice:{type:Boolean,default:!1}},setup(i){const{t:o}=e.useI18n(),t=e.useSlots(),{hideArrivalDepartureInputs:n,disableArrivalUserSelection:c,disableDepartureUserSelection:a,arrivalDefault:f,departureDefault:u,currency:p}=e.storeToRefs(e.useUtilityStore()),{arrivalDate:s,departureDate:g}=e.storeToRefs(e.useAvailabilityStore()),{arrivalTime:m,departureTime:_,roomDisplay:l,templateID:v,totalPrice:k,areListingsLoading:h}=e.storeToRefs(Y.useHotelStore()),{removeRoom:r}=Y.useHotelStore();function d(y){return y.reduce((B,{totalPrice:E})=>B+E,0)}return(y,b)=>(e.openBlock(),e.createBlock(G.ReservationForm,{"total-price":e.unref(k),"show-gift-card":y.showGiftCard,"show-terms-notice":y.showTermsNotice,"is-sidebar-loading":e.unref(h),notice:e.unref(o)("hotel.reservationNotice")},e.createSlots({form:e.withCtx(()=>[e.renderSlot(y.$slots,"form")]),"reservation-summary":e.withCtx(()=>[e.createBaseVNode("li",null,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(o)("booking.reservation.arrival")),1),e.createBaseVNode("b",null,e.toDisplayString(e.unref(n)?e.unref(e.showDate)(e.unref(s)):`${e.unref(e.showDate)(e.unref(s))}, ${e.unref(c)?e.unref(f):e.unref(m)}`),1)]),e.createBaseVNode("li",null,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(o)("booking.reservation.departure")),1),e.createBaseVNode("b",null,e.toDisplayString(e.unref(n)?e.unref(e.showDate)(e.unref(g)):`${e.unref(e.showDate)(e.unref(g))}, ${e.unref(a)?e.unref(u):e.unref(_)}`),1)]),e.createBaseVNode("li",null,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(o)("booking.reservation.nights")),1),e.createBaseVNode("b",null,e.toDisplayString(e.unref(e.daysBetweenDates)(e.unref(s),e.unref(g)))+" "+e.toDisplayString(e.unref(e.lowercase)(e.unref(e.daysBetweenDates)(e.unref(s),e.unref(g))===1?e.unref(o)("booking.reservation.night"):e.unref(o)("booking.reservation.nights"))),1)])]),"price-summary":e.withCtx(()=>[isNaN(e.unref(v))&&e.unref(l).length>0?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(e.unref(l),({roomGroupID:B,title:E,variants:I})=>(e.openBlock(),e.createElementBlock("div",{key:B},[e.createBaseVNode("h6",null,[e.createBaseVNode("span",null,e.toDisplayString(E),1)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(I,(x,P)=>(e.openBlock(),e.createElementBlock("div",{key:P},[e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(x.rooms,(C,R)=>(e.openBlock(),e.createElementBlock("ul",{key:R},[e.createBaseVNode("li",null,[e.createBaseVNode("span",null,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(e.capitalized)(x.name)),1),e.createBaseVNode("span",null,[e.createTextVNode("( "),e.createVNode(e.Icon,{icon:"male",type:"fas",color:"font"}),e.createBaseVNode("span",null,e.toDisplayString(C.adultsCount),1),e.createTextVNode(") "),C.childrenCount>0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(e.Icon,{icon:"child",type:"fas",color:"font"}),e.createBaseVNode("span",null,e.toDisplayString(C.childrenCount),1),e.createTextVNode(") ")],64)):e.createCommentVNode("",!0)])]),e.createBaseVNode("b",null,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(e.showPrice)(C.totalPrice,e.unref(p))),1),e.createCommentVNode("",!0)])]),e.createBaseVNode("li",null,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(o)("booking.reservation.addons")),1),e.createBaseVNode("b",null,e.toDisplayString(e.unref(e.showPrice)(d(C.roomAddons),e.unref(p))),1)])]))),128))]))),128))]))),128)):e.createCommentVNode("",!0)]),navigation:e.withCtx(()=>[e.renderSlot(y.$slots,"navigation")]),_:2},[e.unref(t).addons?{name:"addons",fn:e.withCtx(()=>[e.renderSlot(y.$slots,"addons")]),key:"0"}:void 0]),1032,["total-price","show-gift-card","show-terms-notice","is-sidebar-loading","notice"]))}}),yt=e.defineStore("tracking",()=>{const{enableTracking:i,googleApiKey:o}=e.storeToRefs(e.useUtilityStore());function t(){console.log("Tracking"),console.log(o),T.setOptions({config:{id:o.value,params:{send_page_view:!1}},enabled:i.value})}function n({id:p,name:s,value:g,label:m,category:_="general"}){return{items:[{id:p,name:s}],event_label:m,event_category:_,value:g}}function c(p,s){T.event(p,n(s))}function a(p,s,g){c("add_to_cart",{id:p,name:s,value:g,label:"Added to cart",category:"ecommerce"})}function f(p,s,g){c("remove_from_cart",{id:p,name:s,value:g,label:"Removed to cart",category:"ecommerce"})}function u(p){T.event("view_item",{items:[{name:p}]})}return{setup:t,viewItem:u,addToCart:a,removeFromCart:f}}),vt={key:0},_t={style:{display:"flex","align-items":"baseline"}},kt={key:0};const bt=e.defineComponent({__name:"RoomConfigField",props:{modelValue:{},options:{},required:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},label:{}},emits:["update:modelValue"],setup(i,{emit:o}){const{currency:t}=e.storeToRefs(e.useUtilityStore()),n=o,c=i;function a(u){n("update:modelValue",u)}const f=e.computed({get:()=>c.modelValue,set:u=>a(u)});return(u,p)=>(e.openBlock(),e.createBlock(e._sfc_main,{modelValue:f.value,"onUpdate:modelValue":p[0]||(p[0]=s=>f.value=s),label:u.label,placeholder:"Select guest configuration",labelKey:"label",valueKey:"value","icon-placement":"label",options:u.options,required:u.required},{option:e.withCtx(({data:s})=>[e.createBaseVNode("span",null,[e.createVNode(e.Icon,{icon:"male",type:"fas"}),e.createBaseVNode("span",null,e.toDisplayString(`${s.adults}`),1)]),s.children>0?(e.openBlock(),e.createElementBlock("span",vt,[e.createVNode(e.Icon,{icon:"child",type:"fas"}),e.createBaseVNode("span",null,e.toDisplayString(`${s.children}`),1)])):e.createCommentVNode("",!0),e.createBaseVNode("span",null,e.toDisplayString(`(${e.unref(e.showPrice)(s.price,e.unref(t))})`),1)]),"selected-option":e.withCtx(({data:s})=>[e.createBaseVNode("div",_t,[e.createBaseVNode("div",null,[e.createVNode(e.Icon,{icon:"male",type:"fas"}),e.createBaseVNode("span",null,e.toDisplayString(`${s.adults}`),1)]),s.children>0?(e.openBlock(),e.createElementBlock("div",kt,[e.createVNode(e.Icon,{icon:"child",type:"fas"}),e.createBaseVNode("span",null,e.toDisplayString(`${s.children}`),1)])):e.createCommentVNode("",!0),e.createCommentVNode("",!0)])]),_:1},8,["modelValue","label","options","required"]))}}),Bt={key:0,class:"fresh-booking-modal-facilities"},Vt={class:"fresh-booking-modal-facilities-masonry","transition-duration":"0s","destroy-delay":0,"percent-position":!0,"column-width":".grid-sizer","item-selector":".fresh-booking-modal-facility"},Et={class:"grid-sizer"},Nt=e.defineComponent({__name:"Info",props:{title:{},description:{},facilities:{}},setup(i){return(o,t)=>{const n=e.resolveDirective("masonry-tile"),c=e.resolveDirective("masonry");return e.openBlock(),e.createBlock(G._sfc_main,{title:o.title,description:o.description},{default:e.withCtx(()=>[o.facilities&&o.facilities.length!==0?(e.openBlock(),e.createElementBlock("div",Bt,[e.withDirectives((e.openBlock(),e.createElementBlock("ul",Vt,[e.withDirectives(e.createBaseVNode("div",Et,null,512),[[n]]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.facilities,({name:a,subFacilities:f},u)=>e.withDirectives((e.openBlock(),e.createElementBlock("li",{key:u,class:"fresh-booking-modal-facility"},[e.createBaseVNode("h6",null,[e.createBaseVNode("span",null,e.toDisplayString(a),1)]),e.createBaseVNode("ul",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f,({name:p},s)=>(e.openBlock(),e.createElementBlock("li",{key:s},e.toDisplayString(p),1))),128))])])),[[n]])),128))])),[[c]])])):e.createCommentVNode("",!0)]),_:1},8,["title","description"])}}});const Ct=e._export_sfc(Nt,[["__scopeId","data-v-4e226a17"]]),St={key:1},It={class:"fresh-booking-listing-config-body"},xt={class:"fresh-booking-listing-units-body"};const Tt=e.defineComponent({__name:"Hotel",props:{room:{},layout:{}},setup(i){const{t:o}=e.useI18n(),t=i,n=e.ref([]);function c(b){n.value[b].config.push({id:NaN,units:0,addons:[]})}const a=e.computed(()=>t.room.rates.map(b=>({label:b.name,value:b.id}))),f=e.computed(()=>n.value.flatMap(b=>b.id));e.computed(()=>a.value.filter(b=>!f.value.includes(b.value))),e.storeToRefs(e.useUtilityStore());const{roomSelect:u}=e.storeToRefs(Y.useHotelStore()),{viewItem:p}=yt(),s=(b,B)=>t.room.rates.find(E=>E.id===b)?.occupantRates.find(E=>E.index===B),g=e.computed(()=>t.room.rates.reduce((b,B)=>b<B.rackRate?b:B.rackRate,1/0)),m=e.computed(()=>t.room.rates.every(b=>b.isBreakfastIncluded===!0)),_=(b,B)=>s(b,B)?s(b,B)?.rooms:null,l=b=>t.room.rates.length>0?t.room.rates.find(B=>B.id===b)?.occupantRates.map(B=>({value:B.index,price:B.totalPrice,adults:B.adultsCount,children:B.childrenCount,hasBreakfast:B.hasBreakfast}))||[]:[],v=e.computed(()=>t.room.rates.length>1),{open:k,close:h}=e.Uo({component:Ct,attrs:{title:t.room.title,description:t.room.description,facilities:t.room.facilities,onConfirm(){h()}}});function r(){k(),p(t.room.title)}function d(){v.value?n.value.push({id:void 0,config:[{id:t.room.rates[0].occupantRateIndex||NaN,units:0,addons:[]}]}):n.value.push({id:t.room.rates[0].id,config:[{id:t.room.rates[0].occupantRateIndex||NaN,units:0,addons:[]}]})}e.onMounted(()=>{d()});const y=e.computed(()=>JSON.parse(JSON.stringify(n.value)));return e.watch(y,(b,B)=>{B.length>0&&b.forEach((E,I)=>{E.config.forEach((x,P)=>{const C=x.units,R=B[I].config[P].units;C!==R&&(C>R?n.value[I].config[P].addons.push({}):n.value[I].config[P].addons.pop())})})},{deep:!0}),e.watch(n,()=>{u.value[t.room.id]=n.value},{deep:!0}),(b,B)=>(e.openBlock(),e.createBlock(G.Base,{"listing-id":b.room.id,gallery:b.room.images,name:b.room.title,description:b.room.description,layout:b.layout,facilities:b.room.facilities,"prices-from":g.value,"includes-breakfast":m.value,callback:r},{action:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.value,(E,I)=>(e.openBlock(),e.createElementBlock("div",{key:E.id,class:"freshbooking-hotel-room"},[v.value?(e.openBlock(),e.createBlock(e._sfc_main,{key:0,modelValue:E.id,"onUpdate:modelValue":x=>E.id=x,label:e.unref(o)("hotel.roomVariant"),placeholder:e.unref(o)("hotel.chooseARoomVariant"),options:a.value,searchable:!1},null,8,["modelValue","onUpdate:modelValue","label","placeholder","options"])):e.createCommentVNode("",!0),E.id?(e.openBlock(),e.createElementBlock("div",St,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(b.room.rates,({id:x,maximumAdults:P})=>(e.openBlock(),e.createElementBlock("div",{key:x},[E.id===x?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(E.config,(C,R)=>(e.openBlock(),e.createElementBlock("div",{key:R,class:"booking-availability-listing-action-selective"},[e.createBaseVNode("ul",It,[(e.openBlock(),e.createBlock(bt,{key:0,modelValue:C.id,"onUpdate:modelValue":O=>C.id=O,description:`Maximum adults: ${P}`,icon:"male","icon-type":"fas",label:e.unref(o)("availability.adults"),options:l(x)},null,8,["modelValue","onUpdate:modelValue","description","label","options"]))]),e.createBaseVNode("ul",xt,[e.createVNode(gt._sfc_main,{modelValue:C.units,"onUpdate:modelValue":O=>C.units=O,description:`Available units: ${_(E.id,C.id)}`,icon:"house","icon-type":"fas","icon-placement":"label",label:e.unref(o)("booking.availability.units"),minValue:0,"max-value":_(x,C.id)||1/0},null,8,["modelValue","onUpdate:modelValue","description","label","max-value"])]),e.createCommentVNode("",!0)]))),128)):e.createCommentVNode("",!0)]))),128))])):e.createCommentVNode("",!0)]))),128))]),_:1},8,["listing-id","gallery","name","description","layout","facilities","prices-from","includes-breakfast"]))}});const Dt=e._export_sfc(Tt,[["__scopeId","data-v-f23e8af2"]]),Ee=e.defineComponent({__name:"TimeField",props:{modelValue:{},label:{},id:{},name:{},placeholder:{},icon:{},iconColor:{},iconType:{},primaryColor:{},secondaryColor:{},weekendColor:{},highlightedColor:{},required:{type:Boolean},readonly:{type:Boolean},disabled:{type:Boolean},inline:{type:Boolean},range:{type:Boolean},enableTimePicker:{type:Boolean},inputStyle:{}},emits:["update:modelValue"],setup(i,{emit:o}){const t=o,n=i;function c(f){t("update:modelValue",f)}const a=e.ref(n.modelValue);return e.watch(a,f=>{c(f)}),(f,u)=>(e.openBlock(),e.createBlock(Y._sfc_main,{modelValue:a.value,"onUpdate:modelValue":u[0]||(u[0]=p=>a.value=p),type:"time",label:f.label,id:f.id,name:f.name,icon:f.icon,"icon-type":f.iconType,"icon-color":f.iconColor,"auto-apply":!0,required:f.required,readonly:f.readonly},null,8,["modelValue","label","id","name","icon","icon-type","icon-color","required","readonly"]))}});const $t={style:{display:"flex","align-items":"baseline"}},wt=e.defineComponent({__name:"CountryField",props:{modelValue:{},options:{},required:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},label:{},placeholder:{}},emits:["update:modelValue"],setup(i,{emit:o}){const{t}=e.useI18n(),n=o,c=i;function a(u){n("update:modelValue",u)}const f=e.computed({get:()=>c.modelValue,set:u=>a(u)});return(u,p)=>(e.openBlock(),e.createBlock(e._sfc_main,{modelValue:f.value,"onUpdate:modelValue":p[0]||(p[0]=s=>f.value=s),label:u.label,placeholder:e.unref(t)("booking.reservation.countryPlaceholder"),labelKey:"name",valueKey:"id",options:u.options,required:u.required},{option:e.withCtx(({data:s})=>[e.createBaseVNode("i",{class:e.normalizeClass(["konnectio-flag-icon",s.iso])},null,2),e.createBaseVNode("span",null,e.toDisplayString(s.name),1)]),"selected-option":e.withCtx(({data:s})=>[e.createBaseVNode("div",$t,[e.createBaseVNode("i",{class:e.normalizeClass(["konnectio-flag-icon",s.iso])},null,2),e.createBaseVNode("span",null,e.toDisplayString(s.name),1)])]),_:1},8,["modelValue","label","placeholder","options","required"]))}});const Pt=e._export_sfc(wt,[["__scopeId","data-v-1462612d"]]),Lt=e.defineComponent({__name:"NameField",props:{modelValue:{},title:{},label:{},id:{},placeholder:{},icon:{},iconColor:{},iconType:{default:"fal"},required:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},type:{default:"text"},autocomplete:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},limit:{default:1/0},inputStyle:{},excludeTitle:{type:Boolean,default:!1}},emits:["update:modelValue","update:title"],setup(i,{emit:o}){const t=i,n=o,c=t.id||e.ranId(),a=e.ref(""),f=e.ref(2);function u(){n("update:modelValue",a.value)}e.watch(f,s=>{n("update:title",s)});const{t:p}=e.useI18n();return e.onMounted(()=>{t.modelValue&&(a.value=t.modelValue),t.title&&(f.value=t.title)}),(s,g)=>(e.openBlock(),e.createBlock(e.InputField,{label:s.label,id:e.unref(c),required:s.required,type:"fresh-booking-name-field",readonly:s.readonly,limit:s.limit},{default:e.withCtx(()=>[e.createBaseVNode("div",{class:e.normalizeClass(["fresh-booking-name-input",{"no-title":s.excludeTitle}])},[s.excludeTitle?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e._sfc_main,{key:0,modelValue:f.value,"onUpdate:modelValue":g[0]||(g[0]=m=>f.value=m),id:e.unref(e.ranId)(),icon:s.icon,"icon-color":s.iconColor,"icon-type":s.iconType,options:[{label:e.unref(p)("booking.reservation.noNameTitle"),value:1},{label:e.unref(p)("booking.reservation.nameTitleMr"),value:2},{label:e.unref(p)("booking.reservation.nameTitleMs"),value:3},{label:e.unref(p)("booking.reservation.nameTitleMrs"),value:4},{label:e.unref(p)("booking.reservation.nameTitleDr"),value:5}],readonly:s.readonly,"hide-button":"","input-style":s.inputStyle},null,8,["modelValue","id","icon","icon-color","icon-type","options","readonly","input-style"])),e.createVNode(e.TextField,{modelValue:a.value,"onUpdate:modelValue":g[1]||(g[1]=m=>a.value=m),type:"text",name:"name",autocomplete:"name",id:e.unref(c),icon:s.excludeTitle?s.icon:void 0,"icon-color":s.iconColor,"icon-type":s.iconType,placeholder:s.placeholder,required:s.required,readonly:s.readonly,limit:s.limit,onInput:g[2]||(g[2]=m=>u()),"input-style":s.inputStyle},null,8,["modelValue","id","icon","icon-color","icon-type","placeholder","required","readonly","limit","input-style"])],2)]),_:1},8,["label","id","required","readonly","limit"]))}});const Rt=e._export_sfc(Lt,[["__scopeId","data-v-f17661ec"]]),Ft={class:"hotel-listing"},Ht={class:"hotel-listing-content-gallery"},Ot={class:"hotel-listing-content-thumbs"},zt={class:"hotel-listing-content"},At={class:"hotel-listing-content-header"},Mt={class:"hotel-listing-content-title"},Wt={class:"hotel-listing-content-body"},Ut={class:"hotel-listing-content-facilities"},qt=e.defineComponent({__name:"Listing",setup(i){return(o,t)=>(e.openBlock(),e.createElementBlock("div",Ft,[e.createBaseVNode("div",Ht,[e.createVNode(H.Element,{width:"280px",height:"153px"}),e.createBaseVNode("div",Ot,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(3,n=>e.createVNode(H.Element,{key:n,width:"84px",height:"44px"})),64))])]),e.createBaseVNode("div",zt,[e.createBaseVNode("div",At,[e.createBaseVNode("div",Mt,[e.createVNode(H.Element,{height:"30px",width:"60%"}),e.createVNode(H.Element,{height:"30px",width:"30px","border-radius":"100%"})]),e.createVNode(H.Element,{height:"15px",width:"25%"})]),e.createBaseVNode("div",Wt,[e.createVNode(H.Element,{height:"15px"}),e.createVNode(H.Element,{height:"15px"}),e.createVNode(H.Element,{height:"15px"}),e.createVNode(H.Element,{height:"15px"}),e.createVNode(H.Element,{height:"15px",width:"90%"})]),e.createBaseVNode("div",Ut,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(5,n=>e.createVNode(H.Element,{key:n,height:"25px",width:"25px","border-radius":"6px"})),64))])])]))}});const j=e._export_sfc(qt,[["__scopeId","data-v-5c132d7f"]]),Gt={class:"hotel-skeleton"},jt={class:"hotel-skeleton-content"},Yt={class:"hotel-skeleton-sidebar"},Qt=e.defineComponent({__name:"HotelSkeleton",setup(i){return(o,t)=>(e.openBlock(),e.createElementBlock("div",Gt,[e.createBaseVNode("div",jt,[e.createVNode(Fe.AvailabilitySkeleton),e.createVNode(j),e.createVNode(j),e.createVNode(j)]),e.createBaseVNode("div",Yt,[e.createVNode(G.Sidebar)])]))}});const Kt=e._export_sfc(Qt,[["__scopeId","data-v-4e50a5a1"]]),Jt={id:"booking-availability-container"},Xt={id:"booking-availability-controls"},Zt={key:0,"sticky-container":""},eo={key:0},to={key:0},oo={key:0};const no={id:"booking-availability-listings"},io={key:1,id:"booking-availability-no-listings"},ro={key:1,id:"booking-availability-no-listings"},ao={key:2,id:"reservation-availability-next-dates"},so={class:"reservation-special-offers-grid"},lo=["title"];const uo={key:1,class:"konnectio-listing-loading"},co={class:"fresh-booking-panel"},po={key:1},fo={class:"fresh-booking-checkbox-spacing"},ho=["onClick"],mo={class:"fresh-booking-panel"},go={key:0},yo={key:1},vo={class:"fresh-booking-split-inputs"},_o={key:3},ko={class:"fresh-booking-label"},bo={class:"fresh-booking-checkbox-spacing"},Bo=["onClick"],Vo=e.defineComponent({name:"HotelLayout",__name:"Hotel",props:{accessToken:{},headerLayout:{default:e.BookingHeaderLayout.Minimal},layout:{},packagesTitleMaxLines:{default:"2"},styling:{}},setup(i){const o=i,{t}=e.useI18n(),{templateID:n,title:c,countries:a,areListingsLoading:f,isAvailabilityDataAvailable:u,isPaymentLoading:p,isReservationFormFilled:s,selectedPackage:g,travelingFor:m,arrivalTime:_,departureTime:l,name:v,nameTitle:k,email:h,phone:r,firmName:d,postal:y,city:b,address:B,country:E,remark:I,allergies:x,newsMails:P,roomSelect:C,roomDisplay:R,hasValidRoomSelection:O,getSelectedPackageRoom:ie,availabilityData:Q}=e.storeToRefs(Y.useHotelStore()),{arrivalDate:Ge,departureDate:je}=e.storeToRefs(e.useAvailabilityStore()),{currency:z,isRecaptchaEnabled:Cn,disableNewsletterSignup:Ye,arrivalEarliest:Qe,arrivalLatest:Ke,departureEarliest:Je,departureLatest:Xe,enableTracking:Sn,arrivalDefault:Ze,departureDefault:et,enablePackages:In,hideArrivalDepartureInputs:tt,disableArrivalUserSelection:re,disableNamePrefix:ot,disableDepartureUserSelection:ae,disableTravelingFor:nt,disableCompanyField:it}=e.storeToRefs(e.useUtilityStore());e.useAlertStore();const{initialize:rt,createReservation:at,getSingleListing:xn}=Y.useHotelStore(),st=e.computed(()=>({inputBorderWidth:"0px 0px 1px",inputBorderRadius:"6px",inputBackground:"#f8f8f8",...o.styling})),lt=e.computed(()=>[[parseInt(Qe.value.split(":")[0]),parseInt(Ke.value.split(":")[0])]]),ut=e.computed(()=>[[parseInt(Je.value.split(":")[0]),parseInt(Xe.value.split(":")[0])]]);function ct(){n.value=NaN}function Ve(F){F()}function dt(F,S){je.value=new Date(S),Ge.value=new Date(F),location.reload()}async function pt(F){await at(F)}function ft(F){F()}function ht(){_.value===""&&(_.value=Ze.value),l.value===""&&(l.value=et.value)}return e.onMounted(()=>{rt(),ht()}),(F,S)=>(e.openBlock(),e.createBlock(e.Suspense,null,{default:e.withCtx(()=>[e.createVNode(e._sfc_main$1,{id:"fresh-booking-hotel-module","access-token":F.accessToken,type:"hotel",styling:st.value},{default:e.withCtx(()=>[e.createVNode(G.MultiStepForm,{title:e.unref(c),layout:F.headerLayout},{availability:e.withCtx(({next:K})=>[e.createVNode(se,null,{form:e.withCtx(()=>[e.createBaseVNode("div",Jt,[e.createBaseVNode("div",Xt,[e.createVNode(Fe.HotelAvailabilityForm,{booking:!0})]),e.unref(f)?(e.openBlock(),e.createElementBlock("div",uo,[e.createVNode(j),e.createVNode(j),e.createVNode(j)])):(e.openBlock(),e.createElementBlock("div",Zt,[e.unref(Q).roomGroups.length>0?(e.openBlock(),e.createElementBlock("div",eo,[isNaN(e.unref(n))?(e.openBlock(),e.createElementBlock("div",to,[e.unref(Q).roomGroups.length>0?(e.openBlock(),e.createElementBlock("div",oo,[e.createCommentVNode("",!0),e.createBaseVNode("ul",no,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(Q).roomGroups,(L,V)=>(e.openBlock(),e.createBlock(Dt,{room:L,layout:F.layout,key:V},null,8,["room","layout"]))),128))])])):(e.openBlock(),e.createElementBlock("div",io,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(t)("booking.availability.nothingAvailable")),1)]))])):e.createCommentVNode("",!0)])):e.unref(Q).nextAvailableDates.length===0?(e.openBlock(),e.createElementBlock("div",ro,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(t)("booking.availability.nothingAvailable")),1)])):(e.openBlock(),e.createElementBlock("div",ao,[e.createBaseVNode("h2",null,[e.createVNode(e.Icon,{icon:"calendar-circle-exclamation",type:"fal",color:"header"}),e.createBaseVNode("span",null,e.toDisplayString(e.unref(t)("booking.availability.nextAvailableDates")),1)]),e.createBaseVNode("ul",so,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(Q).nextAvailableDates,(L,V)=>(e.openBlock(),e.createElementBlock("li",{key:V},[e.createBaseVNode("h3",{title:`${e.unref(e.showDate)(L.fromDate)} - ${e.unref(e.showDate)(L.toDate)}`},[e.createBaseVNode("span",null,e.toDisplayString(`${e.unref(e.showDate)(L.fromDate)} - ${e.unref(e.showDate)(L.toDate)}`),1)],8,lo),e.createBaseVNode("ul",null,[e.createCommentVNode("",!0),e.createBaseVNode("li",null,[e.createVNode(e.Icon,{icon:"money-bill",type:"fal",color:"header"}),e.createBaseVNode("span",null,e.toDisplayString(e.unref(t)("booking.availability.pricesFrom"))+": "+e.toDisplayString(e.unref(e.showPrice)(L.priceStartFrom,e.unref(z))),1)])]),e.createVNode(e.Clickable,{label:e.unref(t)("booking.availability.selectDates"),"full-width":"",onClickEvent:J=>dt(L.fromDate,L.toDate)},null,8,["label","onClickEvent"])]))),128))])]))]))])]),navigation:e.withCtx(()=>[isNaN(e.unref(n))?(e.openBlock(),e.createBlock(e.Clickable,{key:0,label:e.unref(t)("booking.availability.nextButton"),disabled:!e.unref(O),"is-loading":!1,"full-width":"",onClickEvent:L=>ft(K)},null,8,["label","disabled","onClickEvent"])):(e.openBlock(),e.createBlock(e.Clickable,{key:1,label:e.unref(t)("booking.reservation.prevButton"),"full-width":"",onClickEvent:S[0]||(S[0]=L=>ct())},null,8,["label"]))]),_:2},1024)]),addons:e.withCtx(({next:K,prev:L})=>[e.createVNode(se,null,{form:e.withCtx(()=>[e.createBaseVNode("div",co,[e.createBaseVNode("h2",null,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(t)("booking.reservation.addons")),1)]),e.createBaseVNode("div",null,[isNaN(e.unref(n))?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(e.unref(R),V=>(e.openBlock(),e.createElementBlock("ul",{key:V.roomGroupID},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(V.variants,(J,$)=>(e.openBlock(),e.createElementBlock("li",{key:J.ratePlanID},[e.createBaseVNode("h4",null,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(e.capitalized)(V.title)),1)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(J.rooms,(N,mt)=>(e.openBlock(),e.createElementBlock("table",{key:mt,class:"fresh-booking-table"},[e.createBaseVNode("thead",null,[e.createBaseVNode("tr",null,[e.createBaseVNode("th",null,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(e.capitalized)(J.name)),1)]),e.createBaseVNode("th",null,[e.createBaseVNode("b",null,[e.createVNode(e.Icon,{icon:"male",type:"fas",color:"font"}),e.createBaseVNode("span",null,e.toDisplayString(N.adultsCount),1),N.childrenCount>0?(e.openBlock(),e.createBlock(e.Icon,{key:0,icon:"child",type:"fas",color:"font"})):e.createCommentVNode("",!0),N.childrenCount>0?(e.openBlock(),e.createElementBlock("span",po,e.toDisplayString(N.childrenCount),1)):e.createCommentVNode("",!0)])])])]),e.createBaseVNode("tbody",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(V.addons,({quantityStrategy:A,id:D,name:M,price:W})=>(e.openBlock(),e.createElementBlock("tr",{key:D},[e.createBaseVNode("ul",fo,[e.createBaseVNode("li",null,[A===e.unref(e.QuantityStrategy).PerPerson?(e.openBlock(),e.createBlock(T.Checkbox,{key:0,modelValue:e.unref(C)[V.roomGroupID][$].config[N.configIdx].addons[N.roomIdx][D],"onUpdate:modelValue":w=>e.unref(C)[V.roomGroupID][$].config[N.configIdx].addons[N.roomIdx][D]=w,label:e.unref(e.capitalized)(M),price:`${e.unref(e.showPrice)(W,e.unref(z))} ${e.unref(t)("general.perPerson")}`},null,8,["modelValue","onUpdate:modelValue","label","price"])):A===e.unref(e.QuantityStrategy).PerChild&&N.childrenCount>0?(e.openBlock(),e.createBlock(T.Checkbox,{key:1,modelValue:e.unref(C)[V.roomGroupID][$].config[N.configIdx].addons[N.roomIdx][D],"onUpdate:modelValue":w=>e.unref(C)[V.roomGroupID][$].config[N.configIdx].addons[N.roomIdx][D]=w,label:e.unref(e.capitalized)(M),price:`${e.unref(e.showPrice)(W,e.unref(z))} ${e.unref(t)("general.perChild")}`},null,8,["modelValue","onUpdate:modelValue","label","price"])):A===e.unref(e.QuantityStrategy).PerAdult?(e.openBlock(),e.createBlock(T.Checkbox,{key:2,modelValue:e.unref(C)[V.roomGroupID][$].config[N.configIdx].addons[N.roomIdx][D],"onUpdate:modelValue":w=>e.unref(C)[V.roomGroupID][$].config[N.configIdx].addons[N.roomIdx][D]=w,label:e.unref(e.capitalized)(M),price:`${e.unref(e.showPrice)(W,e.unref(z))} ${e.unref(t)("general.perAdult")}`},null,8,["modelValue","onUpdate:modelValue","label","price"])):A===e.unref(e.QuantityStrategy).PerPersonPerNight?(e.openBlock(),e.createBlock(T.Checkbox,{key:3,modelValue:e.unref(C)[V.roomGroupID][$].config[N.configIdx].addons[N.roomIdx][D],"onUpdate:modelValue":w=>e.unref(C)[V.roomGroupID][$].config[N.configIdx].addons[N.roomIdx][D]=w,label:e.unref(e.capitalized)(M),price:`${e.unref(e.showPrice)(W,e.unref(z))} ${e.unref(t)("general.perPersonPerNight")}`},null,8,["modelValue","onUpdate:modelValue","label","price"])):A===e.unref(e.QuantityStrategy).PerAdultPerNight?(e.openBlock(),e.createBlock(T.Checkbox,{key:4,modelValue:e.unref(C)[V.roomGroupID][$].config[N.configIdx].addons[N.roomIdx][D],"onUpdate:modelValue":w=>e.unref(C)[V.roomGroupID][$].config[N.configIdx].addons[N.roomIdx][D]=w,label:e.unref(e.capitalized)(M),price:`${e.unref(e.showPrice)(W,e.unref(z))} ${e.unref(t)("general.perAdultPerNight")}`},null,8,["modelValue","onUpdate:modelValue","label","price"])):A===e.unref(e.QuantityStrategy).PerChildPerNight?(e.openBlock(),e.createBlock(T.Checkbox,{key:5,modelValue:e.unref(C)[V.roomGroupID][$].config[N.configIdx].addons[N.roomIdx][D],"onUpdate:modelValue":w=>e.unref(C)[V.roomGroupID][$].config[N.configIdx].addons[N.roomIdx][D]=w,label:e.unref(e.capitalized)(M),price:`${e.unref(e.showPrice)(W,e.unref(z))} ${e.unref(t)("general.perChildPerNight")}`},null,8,["modelValue","onUpdate:modelValue","label","price"])):A===e.unref(e.QuantityStrategy).PerNight?(e.openBlock(),e.createBlock(T.Checkbox,{key:6,modelValue:e.unref(C)[V.roomGroupID][$].config[N.configIdx].addons[N.roomIdx][D],"onUpdate:modelValue":w=>e.unref(C)[V.roomGroupID][$].config[N.configIdx].addons[N.roomIdx][D]=w,label:e.unref(e.capitalized)(M),price:`${e.unref(e.showPrice)(W,e.unref(z))} ${e.unref(t)("general.perNight")}`},null,8,["modelValue","onUpdate:modelValue","label","price"])):A===e.unref(e.QuantityStrategy).PerUnit?(e.openBlock(),e.createBlock(T.Checkbox,{key:7,modelValue:e.unref(C)[V.roomGroupID][$].config[N.configIdx].addons[N.roomIdx][D],"onUpdate:modelValue":w=>e.unref(C)[V.roomGroupID][$].config[N.configIdx].addons[N.roomIdx][D]=w,label:e.unref(e.capitalized)(M),price:`${e.unref(e.showPrice)(W,e.unref(z))}`},null,8,["modelValue","onUpdate:modelValue","label","price"])):A===e.unref(e.QuantityStrategy).OneTimePayment?(e.openBlock(),e.createBlock(T.Checkbox,{key:8,modelValue:e.unref(C)[V.roomGroupID][$].config[N.configIdx].addons[N.roomIdx][D],"onUpdate:modelValue":w=>e.unref(C)[V.roomGroupID][$].config[N.configIdx].addons[N.roomIdx][D]=w,label:e.unref(e.capitalized)(M),price:`${e.unref(e.showPrice)(W,e.unref(z))}`},null,8,["modelValue","onUpdate:modelValue","label","price"])):e.createCommentVNode("",!0)])])]))),128))])]))),128))]))),128))]))),128)):e.createCommentVNode("",!0)])])]),navigation:e.withCtx(()=>[e.createVNode(e.Clickable,{label:e.unref(t)("general.startReservation"),"full-width":"",onClickEvent:K},null,8,["label","onClickEvent"]),e.createBaseVNode("button",{class:"konnectio-abort-reservation link",onClick:e.withModifiers(V=>Ve(L),["prevent"])},[e.createBaseVNode("span",null,e.toDisplayString(e.unref(t)("general.abortReservation")),1)],8,ho)]),_:2},1024)]),reservation:e.withCtx(({next:K,prev:L})=>[e.createVNode(se,{"show-terms-notice":!0,"show-gift-card":!0},{form:e.withCtx(()=>[e.createBaseVNode("form",mo,[e.createBaseVNode("h2",null,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(t)("booking.reservation.detailsTitle")),1)]),!e.unref(tt)&&!(e.unref(re)&&e.unref(ae))?(e.openBlock(),e.createElementBlock("ul",{key:0,class:e.normalizeClass({"fresh-booking-split-inputs":!e.unref(re)&&!e.unref(ae)})},[e.unref(re)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("li",go,[e.createVNode(Ee,{modelValue:e.unref(_),"onUpdate:modelValue":S[1]||(S[1]=V=>e.isRef(_)?_.value=V:null),label:e.unref(t)("booking.reservation.arrivalTime"),icon:"hourglass-start","hour-range":lt.value,required:""},null,8,["modelValue","label","hour-range"])])),e.unref(ae)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("li",yo,[e.createVNode(Ee,{modelValue:e.unref(l),"onUpdate:modelValue":S[2]||(S[2]=V=>e.isRef(l)?l.value=V:null),label:e.unref(t)("booking.reservation.departureTime"),icon:"hourglass-end","hour-range":ut.value,required:""},null,8,["modelValue","label","hour-range"])]))],2)):e.createCommentVNode("",!0),e.createVNode(Rt,{modelValue:e.unref(v),"onUpdate:modelValue":S[3]||(S[3]=V=>e.isRef(v)?v.value=V:null),title:e.unref(k),"onUpdate:title":S[4]||(S[4]=V=>e.isRef(k)?k.value=V:null),"exclude-title":e.unref(ot),label:e.unref(t)("booking.reservation.name"),icon:"user-alt",placeholder:e.unref(t)("booking.reservation.namePlaceholder"),required:""},null,8,["modelValue","title","exclude-title","label","placeholder"]),e.createVNode(e.TextField,{modelValue:e.unref(h),"onUpdate:modelValue":S[5]||(S[5]=V=>e.isRef(h)?h.value=V:null),type:"email",name:"email",autocomplete:"email",label:e.unref(t)("booking.reservation.email"),icon:"at",placeholder:e.unref(t)("booking.reservation.emailPlaceholder"),required:""},null,8,["modelValue","label","placeholder"]),e.unref(Ye)?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(T.Checkbox,{key:1,modelValue:e.unref(P),"onUpdate:modelValue":S[6]||(S[6]=V=>e.isRef(P)?P.value=V:null),type:"checkbox",name:"newsletter",label:e.unref(t)("booking.reservation.newsletterSignUp")},null,8,["modelValue","label"])),e.unref(it)?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e.TextField,{key:2,modelValue:e.unref(d),"onUpdate:modelValue":S[7]||(S[7]=V=>e.isRef(d)?d.value=V:null),type:"text",name:"firm",autocomplete:"firm",label:`${e.unref(t)("booking.reservation.companyName")} (${e.unref(t)("booking.reservation.optional")})`,icon:"id-card",placeholder:e.unref(t)("booking.reservation.companyNamePlaceholder")},null,8,["modelValue","label","placeholder"])),e.createVNode(T.PhoneField,{modelValue:e.unref(r),"onUpdate:modelValue":S[8]||(S[8]=V=>e.isRef(r)?r.value=V:null),icon:"phone-office",label:e.unref(t)("booking.reservation.phone"),placeholder:e.unref(t)("booking.reservation.phonePlaceholder"),required:""},null,8,["modelValue","label","placeholder"]),e.createVNode(Pt,{modelValue:e.unref(E),"onUpdate:modelValue":S[9]||(S[9]=V=>e.isRef(E)?E.value=V:null),label:e.unref(t)("booking.reservation.country"),placeholder:e.unref(t)("booking.reservation.countryPlaceholder"),options:e.unref(a),required:""},null,8,["modelValue","label","placeholder","options"]),e.createVNode(e.TextField,{modelValue:e.unref(B),"onUpdate:modelValue":S[10]||(S[10]=V=>e.isRef(B)?B.value=V:null),type:"textarea",name:"address",autocomplete:"street-address",label:e.unref(t)("booking.reservation.streetAddress"),icon:"map-marked",placeholder:e.unref(t)("booking.reservation.streetAddressPlaceholder"),required:""},null,8,["modelValue","label","placeholder"]),e.createBaseVNode("ul",vo,[e.createBaseVNode("li",null,[e.createVNode(e.TextField,{modelValue:e.unref(y),"onUpdate:modelValue":S[11]||(S[11]=V=>e.isRef(y)?y.value=V:null),type:"text",name:"postal",autocomplete:"postal-code",label:e.unref(t)("booking.reservation.postal"),icon:"mailbox",placeholder:e.unref(t)("booking.reservation.postalPlaceholder"),required:""},null,8,["modelValue","label","placeholder"])]),e.createBaseVNode("li",null,[e.createVNode(e.TextField,{modelValue:e.unref(b),"onUpdate:modelValue":S[12]||(S[12]=V=>e.isRef(b)?b.value=V:null),type:"text",name:"city",autocomplete:"address-level2",label:e.unref(t)("booking.reservation.city"),icon:"city",placeholder:e.unref(t)("booking.reservation.cityPlaceholder"),required:""},null,8,["modelValue","label","placeholder"])])]),e.createVNode(e.TextField,{modelValue:e.unref(I),"onUpdate:modelValue":S[13]||(S[13]=V=>e.isRef(I)?I.value=V:null),type:"textarea",label:`${e.unref(t)("booking.reservation.remark")} (${e.unref(t)("booking.reservation.optional")})`,icon:"info-circle",placeholder:e.unref(t)("booking.reservation.remarkPlaceholder")},null,8,["modelValue","label","placeholder"]),e.createVNode(e.TextField,{modelValue:e.unref(x),"onUpdate:modelValue":S[14]||(S[14]=V=>e.isRef(x)?x.value=V:null),type:"textarea",label:`${e.unref(t)("booking.reservation.allergies")} (${e.unref(t)("booking.reservation.optional")})`,icon:"allergies",placeholder:e.unref(t)("booking.reservation.allergiesPlaceholder")},null,8,["modelValue","label","placeholder"]),e.unref(nt)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",_o,[e.createBaseVNode("label",ko,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(t)("booking.reservation.purposeOfStay"))+" ("+e.toDisplayString(e.unref(t)("booking.reservation.optional"))+")",1)]),e.createBaseVNode("ul",bo,[e.createBaseVNode("li",null,[e.createVNode(T.Checkbox,{modelValue:e.unref(m),"onUpdate:modelValue":S[15]||(S[15]=V=>e.isRef(m)?m.value=V:null),type:"radio",name:"travelingFor",label:e.unref(t)("booking.reservation.business"),val:"Business"},null,8,["modelValue","label"])]),e.createBaseVNode("li",null,[e.createVNode(T.Checkbox,{modelValue:e.unref(m),"onUpdate:modelValue":S[16]||(S[16]=V=>e.isRef(m)?m.value=V:null),type:"radio",name:"travelingFor",label:e.unref(t)("booking.reservation.pleasure"),val:"Pleasure"},null,8,["modelValue","label"])]),e.createBaseVNode("li",null,[e.createVNode(T.Checkbox,{modelValue:e.unref(m),"onUpdate:modelValue":S[17]||(S[17]=V=>e.isRef(m)?m.value=V:null),type:"radio",name:"travelingFor",label:e.unref(t)("booking.reservation.bleasure"),val:"Bleasure"},null,8,["modelValue","label"])])])]))])]),navigation:e.withCtx(()=>[e.createBaseVNode("div",null,[e.createVNode(e.Clickable,{label:e.unref(t)("general.confirmReservation"),disabled:!e.unref(s),"is-loading":e.unref(p),"full-width":"",onClickEvent:V=>pt(K)},null,8,["label","disabled","is-loading","onClickEvent"]),e.createBaseVNode("button",{class:"konnectio-abort-reservation link",onClick:e.withModifiers(V=>Ve(L),["prevent"])},[e.createBaseVNode("span",null,e.toDisplayString(e.unref(t)("general.abortReservation")),1)],8,Bo)])]),_:2},1024)]),payment:e.withCtx(()=>[e.createVNode(T.CheckoutWindow)]),confirmation:e.withCtx(()=>[e.createVNode(G.ThankYou,{message:e.unref(t)("booking.confirmation.thankYou")},null,8,["message"])]),_:1},8,["title","layout"])]),_:1},8,["access-token","styling"])]),fallback:e.withCtx(()=>[e.createVNode(Kt)]),_:1}))}});const Eo=e._export_sfc(Vo,[["__scopeId","data-v-b87ac2b1"]]);var He={exports:{}},le={exports:{}},ue={exports:{}},Ne;function ke(){return Ne||(Ne=1,function(i){(function(o,t){i.exports?i.exports=t():o.EvEmitter=t()})(typeof window<"u"?window:ne.commonjsGlobal,function(){function o(){}var t=o.prototype;return t.on=function(n,c){if(!(!n||!c)){var a=this._events=this._events||{},f=a[n]=a[n]||[];return f.indexOf(c)==-1&&f.push(c),this}},t.once=function(n,c){if(!(!n||!c)){this.on(n,c);var a=this._onceEvents=this._onceEvents||{},f=a[n]=a[n]||{};return f[c]=!0,this}},t.off=function(n,c){var a=this._events&&this._events[n];if(!(!a||!a.length)){var f=a.indexOf(c);return f!=-1&&a.splice(f,1),this}},t.emitEvent=function(n,c){var a=this._events&&this._events[n];if(!(!a||!a.length)){a=a.slice(0),c=c||[];for(var f=this._onceEvents&&this._onceEvents[n],u=0;u<a.length;u++){var p=a[u],s=f&&f[p];s&&(this.off(n,p),delete f[p]),p.apply(this,c)}return this}},t.allOff=function(){delete this._events,delete this._onceEvents},o})}(ue)),ue.exports}var ce={exports:{}};/*!
2
2
  * getSize v2.0.3
3
3
  * measure size of elements
4
4
  * MIT license
@@ -16,4 +16,4 @@
16
16
  * imagesLoaded v4.1.4
17
17
  * JavaScript is all like "You images are done yet or what?"
18
18
  * MIT License
19
- */(function(i){(function(o,t){i.exports?i.exports=t(o,ke()):o.imagesLoaded=t(o,o.EvEmitter)})(typeof window<"u"?window:ne.commonjsGlobal,function(t,n){var c=t.jQuery,a=t.console;function f(l,v){for(var k in v)l[k]=v[k];return l}var u=Array.prototype.slice;function p(l){if(Array.isArray(l))return l;var v=typeof l=="object"&&typeof l.length=="number";return v?u.call(l):[l]}function s(l,v,k){if(!(this instanceof s))return new s(l,v,k);var h=l;if(typeof l=="string"&&(h=document.querySelectorAll(l)),!h){a.error("Bad element for imagesLoaded "+(h||l));return}this.elements=p(h),this.options=f({},this.options),typeof v=="function"?k=v:f(this.options,v),k&&this.on("always",k),this.getImages(),c&&(this.jqDeferred=new c.Deferred),setTimeout(this.check.bind(this))}s.prototype=Object.create(n.prototype),s.prototype.options={},s.prototype.getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)},s.prototype.addElementImages=function(l){l.nodeName=="IMG"&&this.addImage(l),this.options.background===!0&&this.addElementBackgroundImages(l);var v=l.nodeType;if(!(!v||!g[v])){for(var k=l.querySelectorAll("img"),h=0;h<k.length;h++){var r=k[h];this.addImage(r)}if(typeof this.options.background=="string"){var d=l.querySelectorAll(this.options.background);for(h=0;h<d.length;h++){var y=d[h];this.addElementBackgroundImages(y)}}}};var g={1:!0,9:!0,11:!0};s.prototype.addElementBackgroundImages=function(l){var v=getComputedStyle(l);if(v)for(var k=/url\((['"])?(.*?)\1\)/gi,h=k.exec(v.backgroundImage);h!==null;){var r=h&&h[2];r&&this.addBackground(r,l),h=k.exec(v.backgroundImage)}},s.prototype.addImage=function(l){var v=new m(l);this.images.push(v)},s.prototype.addBackground=function(l,v){var k=new _(l,v);this.images.push(k)},s.prototype.check=function(){var l=this;if(this.progressedCount=0,this.hasAnyBroken=!1,!this.images.length){this.complete();return}function v(k,h,r){setTimeout(function(){l.progress(k,h,r)})}this.images.forEach(function(k){k.once("progress",v),k.check()})},s.prototype.progress=function(l,v,k){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!l.isLoaded,this.emitEvent("progress",[this,l,v]),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,l),this.progressedCount==this.images.length&&this.complete(),this.options.debug&&a&&a.log("progress: "+k,l,v)},s.prototype.complete=function(){var l=this.hasAnyBroken?"fail":"done";if(this.isComplete=!0,this.emitEvent(l,[this]),this.emitEvent("always",[this]),this.jqDeferred){var v=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[v](this)}};function m(l){this.img=l}m.prototype=Object.create(n.prototype),m.prototype.check=function(){var l=this.getIsImageComplete();if(l){this.confirm(this.img.naturalWidth!==0,"naturalWidth");return}this.proxyImage=new Image,this.proxyImage.addEventListener("load",this),this.proxyImage.addEventListener("error",this),this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.proxyImage.src=this.img.src},m.prototype.getIsImageComplete=function(){return this.img.complete&&this.img.naturalWidth},m.prototype.confirm=function(l,v){this.isLoaded=l,this.emitEvent("progress",[this,this.img,v])},m.prototype.handleEvent=function(l){var v="on"+l.type;this[v]&&this[v](l)},m.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},m.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},m.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this),this.proxyImage.removeEventListener("error",this),this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)};function _(l,v){this.url=l,this.element=v,this.img=new Image}return _.prototype=Object.create(m.prototype),_.prototype.check=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.img.src=this.url;var l=this.getIsImageComplete();l&&(this.confirm(this.img.naturalWidth!==0,"naturalWidth"),this.unbindEvents())},_.prototype.unbindEvents=function(){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},_.prototype.confirm=function(l,v){this.isLoaded=l,this.emitEvent("progress",[this,this.element,v])},s.makeJQueryPlugin=function(l){l=l||t.jQuery,l&&(c=l,c.fn.imagesLoaded=function(v,k){var h=new s(this,v,k);return h.jqDeferred.promise(c(this))})},s.makeJQueryPlugin(),s})})(Oe);var To=Oe.exports;const Do=ne.getDefaultExportFromCjs(To);function $o(i){return{all:i=i||new Map,on:function(o,t){var n=i.get(o);n?n.push(t):i.set(o,[t])},off:function(o,t){var n=i.get(o);n&&(t?n.splice(n.indexOf(t)>>>0,1):i.set(o,[]))},emit:function(o,t){var n=i.get(o);n&&n.slice().map(function(c){c(t)}),(n=i.get("*"))&&n.slice().map(function(c){c(o,t)})}}}const X={"column-width":"columnWidth","transition-duration":"transitionDuration","item-selector":"itemSelector","origin-left":"originLeft","origin-top":"originTop","fit-width":"fitWidth",stamp:"stamp",gutter:"gutter","percent-position":"percentPosition","horizontal-order":"horizontalOrder",stagger:"stagger","destroy-delay":"destroyDelay"},Z="vuemasonry.itemAdded",he="vuemasonry.itemRemoved",me="vuemasonry.imageLoaded",ge="vuemasonry.destroy",wo=function(i){return(i+"").toLowerCase()==="true"},Po=function(i){return isNaN(i)?i:parseInt(i)},Lo=function(i){const o={};return Array.prototype.slice.call(i).forEach(function(n){Object.keys(X).indexOf(n.name)>-1&&(n.name.indexOf("origin")>-1?o[X[n.name]]=wo(n.value):n.name==="column-width"||n.name==="gutter"?o[X[n.name]]=Po(n.value):o[X[n.name]]=n.value)}),o},Ae={};Ae.install=function(i,o){const t=$o(),n="VueMasonry",c=i;c.directive("masonry",{props:["transitionDuration"," itemSelector","destroyDelay"],mounted:function(a,f){if(!De)throw new Error("Masonry plugin is not defined. Please check it's connected and parsed correctly.");const u=Lo(a.attributes),p=new De(a,u),s=f.value||n,g=u.destroyDelay?parseInt(u.destroyDelay,10):void 0,m=function(){p.reloadItems(),p.layout()};e.nextTick(()=>{m()});const _=function(v){m()},l=function(v){t["off"](`${Z}__${s}`,_),t["off"](`${he}__${s}`,_),t["off"](`${me}__${s}`,_),t["off"](`${ge}__${s}`,l);const k=g&&!Number.isNaN(g)?g:0;setTimeout(function(){p.destroy()},k)};t["on"](`${Z}__${s}`,_),t["on"](`${he}__${s}`,_),t["on"](`${me}__${s}`,_),t["on"](`${ge}__${s}`,l)},unbind:function(a,f){const u=f.value||n;t["emit"](`${ge}__${u}`)}}),c.directive("masonryTile",{mounted:function(a,f){const u=f.value||n;t["emit"](`${Z}__${u}`,{element:a}),new Do(a,function(){t["emit"](`${me}__${u}`,{element:a})})},unbind:function(a,f){const u=f.value||n;t["emit"](`${he}__${u}`,{element:a})}});{const a=function(f){const u=f||n;t["emit"](`${Z}__${u}`)};i.config.globalProperties.$redrawVueMasonry=a,i.provide("redrawVueMasonry",a)}};function ve(i,o={},t){for(const n in i){const c=i[n],a=t?`${t}:${n}`:n;typeof c=="object"&&c!==null?ve(c,o,a):typeof c=="function"&&(o[a]=c)}return o}const Ro={run:i=>i()},Fo=()=>Ro,ze=typeof console.createTask<"u"?console.createTask:Fo;function Ho(i,o){const t=o.shift(),n=ze(t);return i.reduce((c,a)=>c.then(()=>n.run(()=>a(...o))),Promise.resolve())}function Oo(i,o){const t=o.shift(),n=ze(t);return Promise.all(i.map(c=>n.run(()=>c(...o))))}function ye(i,o){for(const t of[...i])t(o)}class Ao{constructor(){this._hooks={},this._before=void 0,this._after=void 0,this._deprecatedMessages=void 0,this._deprecatedHooks={},this.hook=this.hook.bind(this),this.callHook=this.callHook.bind(this),this.callHookWith=this.callHookWith.bind(this)}hook(o,t,n={}){if(!o||typeof t!="function")return()=>{};const c=o;let a;for(;this._deprecatedHooks[o];)a=this._deprecatedHooks[o],o=a.to;if(a&&!n.allowDeprecated){let f=a.message;f||(f=`${c} hook has been deprecated`+(a.to?`, please use ${a.to}`:"")),this._deprecatedMessages||(this._deprecatedMessages=new Set),this._deprecatedMessages.has(f)||(console.warn(f),this._deprecatedMessages.add(f))}if(!t.name)try{Object.defineProperty(t,"name",{get:()=>"_"+o.replace(/\W+/g,"_")+"_hook_cb",configurable:!0})}catch{}return this._hooks[o]=this._hooks[o]||[],this._hooks[o].push(t),()=>{t&&(this.removeHook(o,t),t=void 0)}}hookOnce(o,t){let n,c=(...a)=>(typeof n=="function"&&n(),n=void 0,c=void 0,t(...a));return n=this.hook(o,c),n}removeHook(o,t){if(this._hooks[o]){const n=this._hooks[o].indexOf(t);n!==-1&&this._hooks[o].splice(n,1),this._hooks[o].length===0&&delete this._hooks[o]}}deprecateHook(o,t){this._deprecatedHooks[o]=typeof t=="string"?{to:t}:t;const n=this._hooks[o]||[];delete this._hooks[o];for(const c of n)this.hook(o,c)}deprecateHooks(o){Object.assign(this._deprecatedHooks,o);for(const t in o)this.deprecateHook(t,o[t])}addHooks(o){const t=ve(o),n=Object.keys(t).map(c=>this.hook(c,t[c]));return()=>{for(const c of n.splice(0,n.length))c()}}removeHooks(o){const t=ve(o);for(const n in t)this.removeHook(n,t[n])}removeAllHooks(){for(const o in this._hooks)delete this._hooks[o]}callHook(o,...t){return t.unshift(o),this.callHookWith(Ho,o,...t)}callHookParallel(o,...t){return t.unshift(o),this.callHookWith(Oo,o,...t)}callHookWith(o,t,...n){const c=this._before||this._after?{name:t,args:n,context:{}}:void 0;this._before&&ye(this._before,c);const a=o(t in this._hooks?[...this._hooks[t]]:[],n);return a instanceof Promise?a.finally(()=>{this._after&&c&&ye(this._after,c)}):(this._after&&c&&ye(this._after,c),a)}beforeEach(o){return this._before=this._before||[],this._before.push(o),()=>{if(this._before!==void 0){const t=this._before.indexOf(o);t!==-1&&this._before.splice(t,1)}}}afterEach(o){return this._after=this._after||[],this._after.push(o),()=>{if(this._after!==void 0){const t=this._after.indexOf(o);t!==-1&&this._after.splice(t,1)}}}}function zo(){return new Ao}function Mo(i){return Array.isArray(i)?i:[i]}const Wo=["title","titleTemplate","script","style","noscript"],ee=["base","meta","link","style","script","noscript"],Uo=["title","titleTemplate","templateParams","base","htmlAttrs","bodyAttrs","meta","link","style","script","noscript"],qo=["base","title","titleTemplate","bodyAttrs","htmlAttrs","templateParams"],Me=["tagPosition","tagPriority","tagDuplicateStrategy","innerHTML","textContent","processTemplateParams"],Go=typeof window<"u";function Be(i){let o=9;for(let t=0;t<i.length;)o=Math.imul(o^i.charCodeAt(t++),9**9);return((o^o>>>9)+65536).toString(16).substring(1,8).toLowerCase()}function $e(i){return i._h||Be(i._d?i._d:`${i.tag}:${i.textContent||i.innerHTML||""}:${Object.entries(i.props).map(([o,t])=>`${o}:${String(t)}`).join(",")}`)}function We(i,o){const{props:t,tag:n}=i;if(qo.includes(n))return n;if(n==="link"&&t.rel==="canonical")return"canonical";if(t.charset)return"charset";const c=["id"];n==="meta"&&c.push("name","property","http-equiv");for(const a of c)if(typeof t[a]<"u"){const f=String(t[a]);return o&&!o(f)?!1:`${n}:${a}:${f}`}return!1}function we(i,o){return i==null?o||null:typeof i=="function"?i(o):i}async function jo(i,o,t){const n={tag:i,props:await Ue(typeof o=="object"&&typeof o!="function"&&!(o instanceof Promise)?{...o}:{[["script","noscript","style"].includes(i)?"innerHTML":"textContent"]:o},["templateParams","titleTemplate"].includes(i))};return Me.forEach(c=>{const a=typeof n.props[c]<"u"?n.props[c]:t[c];typeof a<"u"&&((!["innerHTML","textContent"].includes(c)||Wo.includes(n.tag))&&(n[c]=a),delete n.props[c])}),n.props.body&&(n.tagPosition="bodyClose",delete n.props.body),n.props.children&&(n.innerHTML=n.props.children,delete n.props.children),n.tag==="script"&&(typeof n.innerHTML=="object"&&(n.innerHTML=JSON.stringify(n.innerHTML),n.props.type=n.props.type||"application/json"),n.innerHTML&&["application/ld+json","application/json"].includes(n.props.type)&&(n.innerHTML=n.innerHTML.replace(/</g,"\\u003C"))),Array.isArray(n.props.content)?n.props.content.map(c=>({...n,props:{...n.props,content:c}})):n}function Yo(i){return typeof i=="object"&&!Array.isArray(i)&&(i=Object.keys(i).filter(o=>i[o])),(Array.isArray(i)?i.join(" "):i).split(" ").filter(o=>o.trim()).filter(Boolean).join(" ")}async function Ue(i,o){for(const t of Object.keys(i)){if(t==="class"){i[t]=Yo(i[t]);continue}if(i[t]instanceof Promise&&(i[t]=await i[t]),!o&&!Me.includes(t)){const n=String(i[t]),c=t.startsWith("data-");n==="true"||n===""?i[t]=c?"true":!0:i[t]||(c&&n==="false"?i[t]="false":delete i[t])}}return i}const Qo=10;async function Ko(i){const o=[];return Object.entries(i.resolvedInput).filter(([t,n])=>typeof n<"u"&&Uo.includes(t)).forEach(([t,n])=>{const c=Mo(n);o.push(...c.map(a=>jo(t,a,i)).flat())}),(await Promise.all(o)).flat().filter(Boolean).map((t,n)=>(t._e=i._i,i.mode&&(t._m=i.mode),t._p=(i._i<<Qo)+n,t))}const Pe={base:-10,title:10},Le={critical:-80,high:-10,low:20};function oe(i){let o=100;const t=i.tagPriority;return typeof t=="number"?t:(i.tag==="meta"?(i.props["http-equiv"]==="content-security-policy"&&(o=-30),i.props.charset&&(o=-20),i.props.name==="viewport"&&(o=-15)):i.tag==="link"&&i.props.rel==="preconnect"?o=20:i.tag in Pe&&(o=Pe[i.tag]),typeof t=="string"&&t in Le?o+Le[t]:o)}const Jo=[{prefix:"before:",offset:-1},{prefix:"after:",offset:1}],qe=["onload","onerror","onabort","onprogress","onloadstart"],q="%separator";function te(i,o,t){if(typeof i!="string"||!i.includes("%"))return i;function n(f){let u;return["s","pageTitle"].includes(f)?u=o.pageTitle:f.includes(".")?u=f.split(".").reduce((p,s)=>p&&p[s]||void 0,o):u=o[f],typeof u<"u"?(u||"").replace(/"/g,'\\"'):!1}let c=i;try{c=decodeURI(i)}catch{}return(c.match(/%(\w+\.+\w+)|%(\w+)/g)||[]).sort().reverse().forEach(f=>{const u=n(f.slice(1));typeof u=="string"&&(i=i.replace(new RegExp(`\\${f}(\\W|$)`,"g"),(p,s)=>`${u}${s}`).trim())}),i.includes(q)&&(i.endsWith(q)&&(i=i.slice(0,-q.length).trim()),i.startsWith(q)&&(i=i.slice(q.length).trim()),i=i.replace(new RegExp(`\\${q}\\s*\\${q}`,"g"),q),i=te(i,{separator:t},t)),i}async function Xo(i){const o={tag:i.tagName.toLowerCase(),props:await Ue(i.getAttributeNames().reduce((t,n)=>({...t,[n]:i.getAttribute(n)}),{})),innerHTML:i.innerHTML};return o._d=We(o),o}async function Zo(i,o={}){const t=o.document||i.resolvedOptions.document;if(!t)return;const n={shouldRender:i.dirty,tags:[]};if(await i.hooks.callHook("dom:beforeRender",n),!n.shouldRender)return;const c=(await i.resolveTags()).map(g=>({tag:g,id:ee.includes(g.tag)?$e(g):g.tag,shouldRender:!0}));let a=i._dom;if(!a){a={elMap:{htmlAttrs:t.documentElement,bodyAttrs:t.body}};for(const g of["body","head"]){const m=t?.[g]?.children;for(const _ of[...m].filter(l=>ee.includes(l.tagName.toLowerCase())))a.elMap[_.getAttribute("data-hid")||$e(await Xo(_))]=_}}a.pendingSideEffects={...a.sideEffects||{}},a.sideEffects={};function f(g,m,_){const l=`${g}:${m}`;a.sideEffects[l]=_,delete a.pendingSideEffects[l]}function u({id:g,$el:m,tag:_}){const l=_.tag.endsWith("Attrs");a.elMap[g]=m,l||(["textContent","innerHTML"].forEach(v=>{_[v]&&_[v]!==m[v]&&(m[v]=_[v])}),f(g,"el",()=>{a.elMap[g].remove(),delete a.elMap[g]})),Object.entries(_.props).forEach(([v,k])=>{const h=`attr:${v}`;if(v==="class")for(const r of(k||"").split(" ").filter(Boolean))l&&f(g,`${h}:${r}`,()=>m.classList.remove(r)),!m.classList.contains(r)&&m.classList.add(r);else m.getAttribute(v)!==k&&m.setAttribute(v,k===!0?"":String(k)),l&&f(g,h,()=>m.removeAttribute(v))})}const p=[],s={bodyClose:void 0,bodyOpen:void 0,head:void 0};for(const g of c){const{tag:m,shouldRender:_,id:l}=g;if(_){if(m.tag==="title"){t.title=m.textContent;continue}g.$el=g.$el||a.elMap[l],g.$el?u(g):ee.includes(m.tag)&&p.push(g)}}for(const g of p){const m=g.tag.tagPosition||"head";g.$el=t.createElement(g.tag.tag),u(g),s[m]=s[m]||t.createDocumentFragment(),s[m].appendChild(g.$el)}for(const g of c)await i.hooks.callHook("dom:renderTag",g,t,f);s.head&&t.head.appendChild(s.head),s.bodyOpen&&t.body.insertBefore(s.bodyOpen,t.body.firstChild),s.bodyClose&&t.body.appendChild(s.bodyClose),Object.values(a.pendingSideEffects).forEach(g=>g()),i._dom=a,i.dirty=!1,await i.hooks.callHook("dom:rendered",{renders:c})}async function en(i,o={}){const t=o.delayFn||(n=>setTimeout(n,10));return i._domUpdatePromise=i._domUpdatePromise||new Promise(n=>t(async()=>{await Zo(i,o),delete i._domUpdatePromise,n()}))}function tn(i){return o=>{const t=o.resolvedOptions.document?.head.querySelector('script[id="unhead:payload"]')?.innerHTML||!1;return t&&o.push(JSON.parse(t)),{mode:"client",hooks:{"entries:updated":function(n){en(n,i)}}}}}const on=["templateParams","htmlAttrs","bodyAttrs"],nn={hooks:{"tag:normalise":function({tag:i}){["hid","vmid","key"].forEach(n=>{i.props[n]&&(i.key=i.props[n],delete i.props[n])});const t=We(i)||(i.key?`${i.tag}:${i.key}`:!1);t&&(i._d=t)},"tags:resolve":function(i){const o={};i.tags.forEach(n=>{const c=(n.key?`${n.tag}:${n.key}`:n._d)||n._p,a=o[c];if(a){let u=n?.tagDuplicateStrategy;if(!u&&on.includes(n.tag)&&(u="merge"),u==="merge"){const p=a.props;["class","style"].forEach(s=>{n.props[s]&&p[s]&&(s==="style"&&!p[s].endsWith(";")&&(p[s]+=";"),n.props[s]=`${p[s]} ${n.props[s]}`)}),o[c].props={...p,...n.props};return}else if(n._e===a._e){a._duped=a._duped||[],n._d=`${a._d}:${a._duped.length+1}`,a._duped.push(n);return}else if(oe(n)>oe(a))return}const f=Object.keys(n.props).length+(n.innerHTML?1:0)+(n.textContent?1:0);if(ee.includes(n.tag)&&f===0){delete o[c];return}o[c]=n});const t=[];Object.values(o).forEach(n=>{const c=n._duped;delete n._duped,t.push(n),c&&t.push(...c)}),i.tags=t,i.tags=i.tags.filter(n=>!(n.tag==="meta"&&(n.props.name||n.props.property)&&!n.props.content))}}},rn={mode:"server",hooks:{"tags:resolve":function(i){const o={};i.tags.filter(t=>["titleTemplate","templateParams","title"].includes(t.tag)&&t._m==="server").forEach(t=>{o[t.tag]=t.tag.startsWith("title")?t.textContent:t.props}),Object.keys(o).length&&i.tags.push({tag:"script",innerHTML:JSON.stringify(o),props:{id:"unhead:payload",type:"application/json"}})}}},an=["script","link","bodyAttrs"];function sn(i){const o={},t={};return Object.entries(i.props).forEach(([n,c])=>{n.startsWith("on")&&typeof c=="function"?(qe.includes(n)&&(o[n]=`this.dataset.${n} = true`),t[n]=c):o[n]=c}),{props:o,eventHandlers:t}}const ln=i=>({hooks:{"tags:resolve":function(o){for(const t of o.tags)if(an.includes(t.tag)){const{props:n,eventHandlers:c}=sn(t);t.props=n,Object.keys(c).length&&((t.props.src||t.props.href)&&(t.key=t.key||Be(t.props.src||t.props.href)),t._eventHandlers=c)}},"dom:renderTag":function(o,t,n){if(!o.tag._eventHandlers)return;const c=o.tag.tag==="bodyAttrs"?t.defaultView:o.$el;Object.entries(o.tag._eventHandlers).forEach(([a,f])=>{const u=`${o.tag._d||o.tag._p}:${a}`,p=a.slice(2).toLowerCase(),s=`data-h-${p}`;if(n(o.id,u,()=>{}),o.$el.hasAttribute(s))return;o.$el.setAttribute(s,"");let g;const m=_=>{f(_),g?.disconnect()};a in o.$el.dataset?m(new Event(a.replace("on",""))):qe.includes(a)&&typeof MutationObserver<"u"?(g=new MutationObserver(_=>{_.some(v=>v.attributeName===`data-${a}`)&&(m(new Event(a.replace("on",""))),g?.disconnect())}),g.observe(o.$el,{attributes:!0})):c.addEventListener(p,m),n(o.id,u,()=>{g?.disconnect(),c.removeEventListener(p,m),o.$el.removeAttribute(s)})})}}}),un=["link","style","script","noscript"],cn={hooks:{"tag:normalise":({tag:i})=>{i.key&&un.includes(i.tag)&&(i.props["data-hid"]=i._h=Be(i.key))}}},dn={hooks:{"tags:resolve":i=>{const o=t=>i.tags.find(n=>n._d===t)?._p;for(const{prefix:t,offset:n}of Jo)for(const c of i.tags.filter(a=>typeof a.tagPriority=="string"&&a.tagPriority.startsWith(t))){const a=o(c.tagPriority.replace(t,""));typeof a<"u"&&(c._p=a+n)}i.tags.sort((t,n)=>t._p-n._p).sort((t,n)=>oe(t)-oe(n))}}},pn={meta:"content",link:"href",htmlAttrs:"lang"},fn=i=>({hooks:{"tags:resolve":o=>{const{tags:t}=o,n=t.find(u=>u.tag==="title")?.textContent,c=t.findIndex(u=>u.tag==="templateParams"),a=c!==-1?t[c].props:{},f=a.separator||"|";delete a.separator,a.pageTitle=te(a.pageTitle||n||"",a,f);for(const u of t.filter(p=>p.processTemplateParams!==!1)){const p=pn[u.tag];p&&typeof u.props[p]=="string"?u.props[p]=te(u.props[p],a,f):(u.processTemplateParams===!0||["titleTemplate","title"].includes(u.tag))&&["innerHTML","textContent"].forEach(s=>{typeof u[s]=="string"&&(u[s]=te(u[s],a,f))})}i._templateParams=a,i._separator=f,o.tags=t.filter(u=>u.tag!=="templateParams")}}}),hn={hooks:{"tags:resolve":i=>{const{tags:o}=i;let t=o.findIndex(c=>c.tag==="titleTemplate");const n=o.findIndex(c=>c.tag==="title");if(n!==-1&&t!==-1){const c=we(o[t].textContent,o[n].textContent);c!==null?o[n].textContent=c||o[n].textContent:delete o[n]}else if(t!==-1){const c=we(o[t].textContent);c!==null&&(o[t].textContent=c,o[t].tag="title",t=-1)}t!==-1&&delete o[t],i.tags=o.filter(Boolean)}}};function mn(i={}){const o=gn(i);return o.use(tn()),o}function Re(i,o){return!i||i==="server"&&o||i==="client"&&!o}function gn(i={}){const o=zo();o.addHooks(i.hooks||{}),i.document=i.document||(Go?document:void 0);const t=!i.document,n=()=>{u.dirty=!0,o.callHook("entries:updated",u)};let c=0,a=[];const f=[],u={plugins:f,dirty:!1,resolvedOptions:i,hooks:o,headEntries(){return a},use(p){const s=typeof p=="function"?p(u):p;(!s.key||!f.some(g=>g.key===s.key))&&(f.push(s),Re(s.mode,t)&&o.addHooks(s.hooks||{}))},push(p,s){delete s?.head;const g={_i:c++,input:p,...s};return Re(g.mode,t)&&(a.push(g),n()),{dispose(){a=a.filter(m=>m._i!==g._i),o.callHook("entries:updated",u),n()},patch(m){a=a.map(_=>(_._i===g._i&&(_.input=g.input=m),_)),n()}}},async resolveTags(){const p={tags:[],entries:[...a]};await o.callHook("entries:resolve",p);for(const s of p.entries){const g=s.resolvedInput||s.input;if(s.resolvedInput=await(s.transform?s.transform(g):g),s.resolvedInput)for(const m of await Ko(s)){const _={tag:m,entry:s,resolvedOptions:u.resolvedOptions};await o.callHook("tag:normalise",_),p.tags.push(_.tag)}}return await o.callHook("tags:beforeResolve",p),await o.callHook("tags:resolve",p),p.tags},ssr:t};return[nn,rn,ln,cn,dn,fn,hn,...i?.plugins||[]].forEach(p=>u.use(p)),u.hooks.callHook("init",u),u}const yn=e.version.startsWith("3");function vn(i){return typeof i=="function"?i():e.unref(i)}function _e(i,o=""){if(i instanceof Promise)return i;const t=vn(i);return!i||!t?t:Array.isArray(t)?t.map(n=>_e(n,o)):typeof t=="object"?Object.fromEntries(Object.entries(t).map(([n,c])=>n==="titleTemplate"||n.startsWith("on")?[n,e.unref(c)]:[n,_e(c,n)])):t}const _n={hooks:{"entries:resolve":function(i){for(const o of i.entries)o.resolvedInput=_e(o.input)}}},kn="usehead";function bn(i){return{install(t){yn&&(t.config.globalProperties.$unhead=i,t.config.globalProperties.$head=i,t.provide(kn,i))}}.install}function Bn(i={}){i.domDelayFn=i.domDelayFn||(t=>e.nextTick(()=>setTimeout(()=>t(),0)));const o=mn(i);return o.use(_n),o.install=bn(o),o}const Vn=e.createPinia(),En=Bn(),Nn=e.Go(),U=e.createApp({components:{Hotel:Eo}});U.use(En);U.use(Vn);U.use(Nn);U.use(Ae);U.use(T.StickyPlugin);U.use(e.instance);U.use(G.xt);U.use(T.install,{bootstrap:!1});U.mount("#konnectio-hotel-app");
19
+ */(function(i){(function(o,t){i.exports?i.exports=t(o,ke()):o.imagesLoaded=t(o,o.EvEmitter)})(typeof window<"u"?window:ne.commonjsGlobal,function(t,n){var c=t.jQuery,a=t.console;function f(l,v){for(var k in v)l[k]=v[k];return l}var u=Array.prototype.slice;function p(l){if(Array.isArray(l))return l;var v=typeof l=="object"&&typeof l.length=="number";return v?u.call(l):[l]}function s(l,v,k){if(!(this instanceof s))return new s(l,v,k);var h=l;if(typeof l=="string"&&(h=document.querySelectorAll(l)),!h){a.error("Bad element for imagesLoaded "+(h||l));return}this.elements=p(h),this.options=f({},this.options),typeof v=="function"?k=v:f(this.options,v),k&&this.on("always",k),this.getImages(),c&&(this.jqDeferred=new c.Deferred),setTimeout(this.check.bind(this))}s.prototype=Object.create(n.prototype),s.prototype.options={},s.prototype.getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)},s.prototype.addElementImages=function(l){l.nodeName=="IMG"&&this.addImage(l),this.options.background===!0&&this.addElementBackgroundImages(l);var v=l.nodeType;if(!(!v||!g[v])){for(var k=l.querySelectorAll("img"),h=0;h<k.length;h++){var r=k[h];this.addImage(r)}if(typeof this.options.background=="string"){var d=l.querySelectorAll(this.options.background);for(h=0;h<d.length;h++){var y=d[h];this.addElementBackgroundImages(y)}}}};var g={1:!0,9:!0,11:!0};s.prototype.addElementBackgroundImages=function(l){var v=getComputedStyle(l);if(v)for(var k=/url\((['"])?(.*?)\1\)/gi,h=k.exec(v.backgroundImage);h!==null;){var r=h&&h[2];r&&this.addBackground(r,l),h=k.exec(v.backgroundImage)}},s.prototype.addImage=function(l){var v=new m(l);this.images.push(v)},s.prototype.addBackground=function(l,v){var k=new _(l,v);this.images.push(k)},s.prototype.check=function(){var l=this;if(this.progressedCount=0,this.hasAnyBroken=!1,!this.images.length){this.complete();return}function v(k,h,r){setTimeout(function(){l.progress(k,h,r)})}this.images.forEach(function(k){k.once("progress",v),k.check()})},s.prototype.progress=function(l,v,k){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!l.isLoaded,this.emitEvent("progress",[this,l,v]),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,l),this.progressedCount==this.images.length&&this.complete(),this.options.debug&&a&&a.log("progress: "+k,l,v)},s.prototype.complete=function(){var l=this.hasAnyBroken?"fail":"done";if(this.isComplete=!0,this.emitEvent(l,[this]),this.emitEvent("always",[this]),this.jqDeferred){var v=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[v](this)}};function m(l){this.img=l}m.prototype=Object.create(n.prototype),m.prototype.check=function(){var l=this.getIsImageComplete();if(l){this.confirm(this.img.naturalWidth!==0,"naturalWidth");return}this.proxyImage=new Image,this.proxyImage.addEventListener("load",this),this.proxyImage.addEventListener("error",this),this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.proxyImage.src=this.img.src},m.prototype.getIsImageComplete=function(){return this.img.complete&&this.img.naturalWidth},m.prototype.confirm=function(l,v){this.isLoaded=l,this.emitEvent("progress",[this,this.img,v])},m.prototype.handleEvent=function(l){var v="on"+l.type;this[v]&&this[v](l)},m.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},m.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},m.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this),this.proxyImage.removeEventListener("error",this),this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)};function _(l,v){this.url=l,this.element=v,this.img=new Image}return _.prototype=Object.create(m.prototype),_.prototype.check=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.img.src=this.url;var l=this.getIsImageComplete();l&&(this.confirm(this.img.naturalWidth!==0,"naturalWidth"),this.unbindEvents())},_.prototype.unbindEvents=function(){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},_.prototype.confirm=function(l,v){this.isLoaded=l,this.emitEvent("progress",[this,this.element,v])},s.makeJQueryPlugin=function(l){l=l||t.jQuery,l&&(c=l,c.fn.imagesLoaded=function(v,k){var h=new s(this,v,k);return h.jqDeferred.promise(c(this))})},s.makeJQueryPlugin(),s})})(Oe);var To=Oe.exports;const Do=ne.getDefaultExportFromCjs(To);function $o(i){return{all:i=i||new Map,on:function(o,t){var n=i.get(o);n?n.push(t):i.set(o,[t])},off:function(o,t){var n=i.get(o);n&&(t?n.splice(n.indexOf(t)>>>0,1):i.set(o,[]))},emit:function(o,t){var n=i.get(o);n&&n.slice().map(function(c){c(t)}),(n=i.get("*"))&&n.slice().map(function(c){c(o,t)})}}}const X={"column-width":"columnWidth","transition-duration":"transitionDuration","item-selector":"itemSelector","origin-left":"originLeft","origin-top":"originTop","fit-width":"fitWidth",stamp:"stamp",gutter:"gutter","percent-position":"percentPosition","horizontal-order":"horizontalOrder",stagger:"stagger","destroy-delay":"destroyDelay"},Z="vuemasonry.itemAdded",he="vuemasonry.itemRemoved",me="vuemasonry.imageLoaded",ge="vuemasonry.destroy",wo=function(i){return(i+"").toLowerCase()==="true"},Po=function(i){return isNaN(i)?i:parseInt(i)},Lo=function(i){const o={};return Array.prototype.slice.call(i).forEach(function(n){Object.keys(X).indexOf(n.name)>-1&&(n.name.indexOf("origin")>-1?o[X[n.name]]=wo(n.value):n.name==="column-width"||n.name==="gutter"?o[X[n.name]]=Po(n.value):o[X[n.name]]=n.value)}),o},ze={};ze.install=function(i,o){const t=$o(),n="VueMasonry",c=i;c.directive("masonry",{props:["transitionDuration"," itemSelector","destroyDelay"],mounted:function(a,f){if(!De)throw new Error("Masonry plugin is not defined. Please check it's connected and parsed correctly.");const u=Lo(a.attributes),p=new De(a,u),s=f.value||n,g=u.destroyDelay?parseInt(u.destroyDelay,10):void 0,m=function(){p.reloadItems(),p.layout()};e.nextTick(()=>{m()});const _=function(v){m()},l=function(v){t["off"](`${Z}__${s}`,_),t["off"](`${he}__${s}`,_),t["off"](`${me}__${s}`,_),t["off"](`${ge}__${s}`,l);const k=g&&!Number.isNaN(g)?g:0;setTimeout(function(){p.destroy()},k)};t["on"](`${Z}__${s}`,_),t["on"](`${he}__${s}`,_),t["on"](`${me}__${s}`,_),t["on"](`${ge}__${s}`,l)},unbind:function(a,f){const u=f.value||n;t["emit"](`${ge}__${u}`)}}),c.directive("masonryTile",{mounted:function(a,f){const u=f.value||n;t["emit"](`${Z}__${u}`,{element:a}),new Do(a,function(){t["emit"](`${me}__${u}`,{element:a})})},unbind:function(a,f){const u=f.value||n;t["emit"](`${he}__${u}`,{element:a})}});{const a=function(f){const u=f||n;t["emit"](`${Z}__${u}`)};i.config.globalProperties.$redrawVueMasonry=a,i.provide("redrawVueMasonry",a)}};function ve(i,o={},t){for(const n in i){const c=i[n],a=t?`${t}:${n}`:n;typeof c=="object"&&c!==null?ve(c,o,a):typeof c=="function"&&(o[a]=c)}return o}const Ro={run:i=>i()},Fo=()=>Ro,Ae=typeof console.createTask<"u"?console.createTask:Fo;function Ho(i,o){const t=o.shift(),n=Ae(t);return i.reduce((c,a)=>c.then(()=>n.run(()=>a(...o))),Promise.resolve())}function Oo(i,o){const t=o.shift(),n=Ae(t);return Promise.all(i.map(c=>n.run(()=>c(...o))))}function ye(i,o){for(const t of[...i])t(o)}class zo{constructor(){this._hooks={},this._before=void 0,this._after=void 0,this._deprecatedMessages=void 0,this._deprecatedHooks={},this.hook=this.hook.bind(this),this.callHook=this.callHook.bind(this),this.callHookWith=this.callHookWith.bind(this)}hook(o,t,n={}){if(!o||typeof t!="function")return()=>{};const c=o;let a;for(;this._deprecatedHooks[o];)a=this._deprecatedHooks[o],o=a.to;if(a&&!n.allowDeprecated){let f=a.message;f||(f=`${c} hook has been deprecated`+(a.to?`, please use ${a.to}`:"")),this._deprecatedMessages||(this._deprecatedMessages=new Set),this._deprecatedMessages.has(f)||(console.warn(f),this._deprecatedMessages.add(f))}if(!t.name)try{Object.defineProperty(t,"name",{get:()=>"_"+o.replace(/\W+/g,"_")+"_hook_cb",configurable:!0})}catch{}return this._hooks[o]=this._hooks[o]||[],this._hooks[o].push(t),()=>{t&&(this.removeHook(o,t),t=void 0)}}hookOnce(o,t){let n,c=(...a)=>(typeof n=="function"&&n(),n=void 0,c=void 0,t(...a));return n=this.hook(o,c),n}removeHook(o,t){if(this._hooks[o]){const n=this._hooks[o].indexOf(t);n!==-1&&this._hooks[o].splice(n,1),this._hooks[o].length===0&&delete this._hooks[o]}}deprecateHook(o,t){this._deprecatedHooks[o]=typeof t=="string"?{to:t}:t;const n=this._hooks[o]||[];delete this._hooks[o];for(const c of n)this.hook(o,c)}deprecateHooks(o){Object.assign(this._deprecatedHooks,o);for(const t in o)this.deprecateHook(t,o[t])}addHooks(o){const t=ve(o),n=Object.keys(t).map(c=>this.hook(c,t[c]));return()=>{for(const c of n.splice(0,n.length))c()}}removeHooks(o){const t=ve(o);for(const n in t)this.removeHook(n,t[n])}removeAllHooks(){for(const o in this._hooks)delete this._hooks[o]}callHook(o,...t){return t.unshift(o),this.callHookWith(Ho,o,...t)}callHookParallel(o,...t){return t.unshift(o),this.callHookWith(Oo,o,...t)}callHookWith(o,t,...n){const c=this._before||this._after?{name:t,args:n,context:{}}:void 0;this._before&&ye(this._before,c);const a=o(t in this._hooks?[...this._hooks[t]]:[],n);return a instanceof Promise?a.finally(()=>{this._after&&c&&ye(this._after,c)}):(this._after&&c&&ye(this._after,c),a)}beforeEach(o){return this._before=this._before||[],this._before.push(o),()=>{if(this._before!==void 0){const t=this._before.indexOf(o);t!==-1&&this._before.splice(t,1)}}}afterEach(o){return this._after=this._after||[],this._after.push(o),()=>{if(this._after!==void 0){const t=this._after.indexOf(o);t!==-1&&this._after.splice(t,1)}}}}function Ao(){return new zo}function Mo(i){return Array.isArray(i)?i:[i]}const Wo=["title","titleTemplate","script","style","noscript"],ee=["base","meta","link","style","script","noscript"],Uo=["title","titleTemplate","templateParams","base","htmlAttrs","bodyAttrs","meta","link","style","script","noscript"],qo=["base","title","titleTemplate","bodyAttrs","htmlAttrs","templateParams"],Me=["tagPosition","tagPriority","tagDuplicateStrategy","innerHTML","textContent","processTemplateParams"],Go=typeof window<"u";function Be(i){let o=9;for(let t=0;t<i.length;)o=Math.imul(o^i.charCodeAt(t++),9**9);return((o^o>>>9)+65536).toString(16).substring(1,8).toLowerCase()}function $e(i){return i._h||Be(i._d?i._d:`${i.tag}:${i.textContent||i.innerHTML||""}:${Object.entries(i.props).map(([o,t])=>`${o}:${String(t)}`).join(",")}`)}function We(i,o){const{props:t,tag:n}=i;if(qo.includes(n))return n;if(n==="link"&&t.rel==="canonical")return"canonical";if(t.charset)return"charset";const c=["id"];n==="meta"&&c.push("name","property","http-equiv");for(const a of c)if(typeof t[a]<"u"){const f=String(t[a]);return o&&!o(f)?!1:`${n}:${a}:${f}`}return!1}function we(i,o){return i==null?o||null:typeof i=="function"?i(o):i}async function jo(i,o,t){const n={tag:i,props:await Ue(typeof o=="object"&&typeof o!="function"&&!(o instanceof Promise)?{...o}:{[["script","noscript","style"].includes(i)?"innerHTML":"textContent"]:o},["templateParams","titleTemplate"].includes(i))};return Me.forEach(c=>{const a=typeof n.props[c]<"u"?n.props[c]:t[c];typeof a<"u"&&((!["innerHTML","textContent"].includes(c)||Wo.includes(n.tag))&&(n[c]=a),delete n.props[c])}),n.props.body&&(n.tagPosition="bodyClose",delete n.props.body),n.props.children&&(n.innerHTML=n.props.children,delete n.props.children),n.tag==="script"&&(typeof n.innerHTML=="object"&&(n.innerHTML=JSON.stringify(n.innerHTML),n.props.type=n.props.type||"application/json"),n.innerHTML&&["application/ld+json","application/json"].includes(n.props.type)&&(n.innerHTML=n.innerHTML.replace(/</g,"\\u003C"))),Array.isArray(n.props.content)?n.props.content.map(c=>({...n,props:{...n.props,content:c}})):n}function Yo(i){return typeof i=="object"&&!Array.isArray(i)&&(i=Object.keys(i).filter(o=>i[o])),(Array.isArray(i)?i.join(" "):i).split(" ").filter(o=>o.trim()).filter(Boolean).join(" ")}async function Ue(i,o){for(const t of Object.keys(i)){if(t==="class"){i[t]=Yo(i[t]);continue}if(i[t]instanceof Promise&&(i[t]=await i[t]),!o&&!Me.includes(t)){const n=String(i[t]),c=t.startsWith("data-");n==="true"||n===""?i[t]=c?"true":!0:i[t]||(c&&n==="false"?i[t]="false":delete i[t])}}return i}const Qo=10;async function Ko(i){const o=[];return Object.entries(i.resolvedInput).filter(([t,n])=>typeof n<"u"&&Uo.includes(t)).forEach(([t,n])=>{const c=Mo(n);o.push(...c.map(a=>jo(t,a,i)).flat())}),(await Promise.all(o)).flat().filter(Boolean).map((t,n)=>(t._e=i._i,i.mode&&(t._m=i.mode),t._p=(i._i<<Qo)+n,t))}const Pe={base:-10,title:10},Le={critical:-80,high:-10,low:20};function oe(i){let o=100;const t=i.tagPriority;return typeof t=="number"?t:(i.tag==="meta"?(i.props["http-equiv"]==="content-security-policy"&&(o=-30),i.props.charset&&(o=-20),i.props.name==="viewport"&&(o=-15)):i.tag==="link"&&i.props.rel==="preconnect"?o=20:i.tag in Pe&&(o=Pe[i.tag]),typeof t=="string"&&t in Le?o+Le[t]:o)}const Jo=[{prefix:"before:",offset:-1},{prefix:"after:",offset:1}],qe=["onload","onerror","onabort","onprogress","onloadstart"],q="%separator";function te(i,o,t){if(typeof i!="string"||!i.includes("%"))return i;function n(f){let u;return["s","pageTitle"].includes(f)?u=o.pageTitle:f.includes(".")?u=f.split(".").reduce((p,s)=>p&&p[s]||void 0,o):u=o[f],typeof u<"u"?(u||"").replace(/"/g,'\\"'):!1}let c=i;try{c=decodeURI(i)}catch{}return(c.match(/%(\w+\.+\w+)|%(\w+)/g)||[]).sort().reverse().forEach(f=>{const u=n(f.slice(1));typeof u=="string"&&(i=i.replace(new RegExp(`\\${f}(\\W|$)`,"g"),(p,s)=>`${u}${s}`).trim())}),i.includes(q)&&(i.endsWith(q)&&(i=i.slice(0,-q.length).trim()),i.startsWith(q)&&(i=i.slice(q.length).trim()),i=i.replace(new RegExp(`\\${q}\\s*\\${q}`,"g"),q),i=te(i,{separator:t},t)),i}async function Xo(i){const o={tag:i.tagName.toLowerCase(),props:await Ue(i.getAttributeNames().reduce((t,n)=>({...t,[n]:i.getAttribute(n)}),{})),innerHTML:i.innerHTML};return o._d=We(o),o}async function Zo(i,o={}){const t=o.document||i.resolvedOptions.document;if(!t)return;const n={shouldRender:i.dirty,tags:[]};if(await i.hooks.callHook("dom:beforeRender",n),!n.shouldRender)return;const c=(await i.resolveTags()).map(g=>({tag:g,id:ee.includes(g.tag)?$e(g):g.tag,shouldRender:!0}));let a=i._dom;if(!a){a={elMap:{htmlAttrs:t.documentElement,bodyAttrs:t.body}};for(const g of["body","head"]){const m=t?.[g]?.children;for(const _ of[...m].filter(l=>ee.includes(l.tagName.toLowerCase())))a.elMap[_.getAttribute("data-hid")||$e(await Xo(_))]=_}}a.pendingSideEffects={...a.sideEffects||{}},a.sideEffects={};function f(g,m,_){const l=`${g}:${m}`;a.sideEffects[l]=_,delete a.pendingSideEffects[l]}function u({id:g,$el:m,tag:_}){const l=_.tag.endsWith("Attrs");a.elMap[g]=m,l||(["textContent","innerHTML"].forEach(v=>{_[v]&&_[v]!==m[v]&&(m[v]=_[v])}),f(g,"el",()=>{a.elMap[g].remove(),delete a.elMap[g]})),Object.entries(_.props).forEach(([v,k])=>{const h=`attr:${v}`;if(v==="class")for(const r of(k||"").split(" ").filter(Boolean))l&&f(g,`${h}:${r}`,()=>m.classList.remove(r)),!m.classList.contains(r)&&m.classList.add(r);else m.getAttribute(v)!==k&&m.setAttribute(v,k===!0?"":String(k)),l&&f(g,h,()=>m.removeAttribute(v))})}const p=[],s={bodyClose:void 0,bodyOpen:void 0,head:void 0};for(const g of c){const{tag:m,shouldRender:_,id:l}=g;if(_){if(m.tag==="title"){t.title=m.textContent;continue}g.$el=g.$el||a.elMap[l],g.$el?u(g):ee.includes(m.tag)&&p.push(g)}}for(const g of p){const m=g.tag.tagPosition||"head";g.$el=t.createElement(g.tag.tag),u(g),s[m]=s[m]||t.createDocumentFragment(),s[m].appendChild(g.$el)}for(const g of c)await i.hooks.callHook("dom:renderTag",g,t,f);s.head&&t.head.appendChild(s.head),s.bodyOpen&&t.body.insertBefore(s.bodyOpen,t.body.firstChild),s.bodyClose&&t.body.appendChild(s.bodyClose),Object.values(a.pendingSideEffects).forEach(g=>g()),i._dom=a,i.dirty=!1,await i.hooks.callHook("dom:rendered",{renders:c})}async function en(i,o={}){const t=o.delayFn||(n=>setTimeout(n,10));return i._domUpdatePromise=i._domUpdatePromise||new Promise(n=>t(async()=>{await Zo(i,o),delete i._domUpdatePromise,n()}))}function tn(i){return o=>{const t=o.resolvedOptions.document?.head.querySelector('script[id="unhead:payload"]')?.innerHTML||!1;return t&&o.push(JSON.parse(t)),{mode:"client",hooks:{"entries:updated":function(n){en(n,i)}}}}}const on=["templateParams","htmlAttrs","bodyAttrs"],nn={hooks:{"tag:normalise":function({tag:i}){["hid","vmid","key"].forEach(n=>{i.props[n]&&(i.key=i.props[n],delete i.props[n])});const t=We(i)||(i.key?`${i.tag}:${i.key}`:!1);t&&(i._d=t)},"tags:resolve":function(i){const o={};i.tags.forEach(n=>{const c=(n.key?`${n.tag}:${n.key}`:n._d)||n._p,a=o[c];if(a){let u=n?.tagDuplicateStrategy;if(!u&&on.includes(n.tag)&&(u="merge"),u==="merge"){const p=a.props;["class","style"].forEach(s=>{n.props[s]&&p[s]&&(s==="style"&&!p[s].endsWith(";")&&(p[s]+=";"),n.props[s]=`${p[s]} ${n.props[s]}`)}),o[c].props={...p,...n.props};return}else if(n._e===a._e){a._duped=a._duped||[],n._d=`${a._d}:${a._duped.length+1}`,a._duped.push(n);return}else if(oe(n)>oe(a))return}const f=Object.keys(n.props).length+(n.innerHTML?1:0)+(n.textContent?1:0);if(ee.includes(n.tag)&&f===0){delete o[c];return}o[c]=n});const t=[];Object.values(o).forEach(n=>{const c=n._duped;delete n._duped,t.push(n),c&&t.push(...c)}),i.tags=t,i.tags=i.tags.filter(n=>!(n.tag==="meta"&&(n.props.name||n.props.property)&&!n.props.content))}}},rn={mode:"server",hooks:{"tags:resolve":function(i){const o={};i.tags.filter(t=>["titleTemplate","templateParams","title"].includes(t.tag)&&t._m==="server").forEach(t=>{o[t.tag]=t.tag.startsWith("title")?t.textContent:t.props}),Object.keys(o).length&&i.tags.push({tag:"script",innerHTML:JSON.stringify(o),props:{id:"unhead:payload",type:"application/json"}})}}},an=["script","link","bodyAttrs"];function sn(i){const o={},t={};return Object.entries(i.props).forEach(([n,c])=>{n.startsWith("on")&&typeof c=="function"?(qe.includes(n)&&(o[n]=`this.dataset.${n} = true`),t[n]=c):o[n]=c}),{props:o,eventHandlers:t}}const ln=i=>({hooks:{"tags:resolve":function(o){for(const t of o.tags)if(an.includes(t.tag)){const{props:n,eventHandlers:c}=sn(t);t.props=n,Object.keys(c).length&&((t.props.src||t.props.href)&&(t.key=t.key||Be(t.props.src||t.props.href)),t._eventHandlers=c)}},"dom:renderTag":function(o,t,n){if(!o.tag._eventHandlers)return;const c=o.tag.tag==="bodyAttrs"?t.defaultView:o.$el;Object.entries(o.tag._eventHandlers).forEach(([a,f])=>{const u=`${o.tag._d||o.tag._p}:${a}`,p=a.slice(2).toLowerCase(),s=`data-h-${p}`;if(n(o.id,u,()=>{}),o.$el.hasAttribute(s))return;o.$el.setAttribute(s,"");let g;const m=_=>{f(_),g?.disconnect()};a in o.$el.dataset?m(new Event(a.replace("on",""))):qe.includes(a)&&typeof MutationObserver<"u"?(g=new MutationObserver(_=>{_.some(v=>v.attributeName===`data-${a}`)&&(m(new Event(a.replace("on",""))),g?.disconnect())}),g.observe(o.$el,{attributes:!0})):c.addEventListener(p,m),n(o.id,u,()=>{g?.disconnect(),c.removeEventListener(p,m),o.$el.removeAttribute(s)})})}}}),un=["link","style","script","noscript"],cn={hooks:{"tag:normalise":({tag:i})=>{i.key&&un.includes(i.tag)&&(i.props["data-hid"]=i._h=Be(i.key))}}},dn={hooks:{"tags:resolve":i=>{const o=t=>i.tags.find(n=>n._d===t)?._p;for(const{prefix:t,offset:n}of Jo)for(const c of i.tags.filter(a=>typeof a.tagPriority=="string"&&a.tagPriority.startsWith(t))){const a=o(c.tagPriority.replace(t,""));typeof a<"u"&&(c._p=a+n)}i.tags.sort((t,n)=>t._p-n._p).sort((t,n)=>oe(t)-oe(n))}}},pn={meta:"content",link:"href",htmlAttrs:"lang"},fn=i=>({hooks:{"tags:resolve":o=>{const{tags:t}=o,n=t.find(u=>u.tag==="title")?.textContent,c=t.findIndex(u=>u.tag==="templateParams"),a=c!==-1?t[c].props:{},f=a.separator||"|";delete a.separator,a.pageTitle=te(a.pageTitle||n||"",a,f);for(const u of t.filter(p=>p.processTemplateParams!==!1)){const p=pn[u.tag];p&&typeof u.props[p]=="string"?u.props[p]=te(u.props[p],a,f):(u.processTemplateParams===!0||["titleTemplate","title"].includes(u.tag))&&["innerHTML","textContent"].forEach(s=>{typeof u[s]=="string"&&(u[s]=te(u[s],a,f))})}i._templateParams=a,i._separator=f,o.tags=t.filter(u=>u.tag!=="templateParams")}}}),hn={hooks:{"tags:resolve":i=>{const{tags:o}=i;let t=o.findIndex(c=>c.tag==="titleTemplate");const n=o.findIndex(c=>c.tag==="title");if(n!==-1&&t!==-1){const c=we(o[t].textContent,o[n].textContent);c!==null?o[n].textContent=c||o[n].textContent:delete o[n]}else if(t!==-1){const c=we(o[t].textContent);c!==null&&(o[t].textContent=c,o[t].tag="title",t=-1)}t!==-1&&delete o[t],i.tags=o.filter(Boolean)}}};function mn(i={}){const o=gn(i);return o.use(tn()),o}function Re(i,o){return!i||i==="server"&&o||i==="client"&&!o}function gn(i={}){const o=Ao();o.addHooks(i.hooks||{}),i.document=i.document||(Go?document:void 0);const t=!i.document,n=()=>{u.dirty=!0,o.callHook("entries:updated",u)};let c=0,a=[];const f=[],u={plugins:f,dirty:!1,resolvedOptions:i,hooks:o,headEntries(){return a},use(p){const s=typeof p=="function"?p(u):p;(!s.key||!f.some(g=>g.key===s.key))&&(f.push(s),Re(s.mode,t)&&o.addHooks(s.hooks||{}))},push(p,s){delete s?.head;const g={_i:c++,input:p,...s};return Re(g.mode,t)&&(a.push(g),n()),{dispose(){a=a.filter(m=>m._i!==g._i),o.callHook("entries:updated",u),n()},patch(m){a=a.map(_=>(_._i===g._i&&(_.input=g.input=m),_)),n()}}},async resolveTags(){const p={tags:[],entries:[...a]};await o.callHook("entries:resolve",p);for(const s of p.entries){const g=s.resolvedInput||s.input;if(s.resolvedInput=await(s.transform?s.transform(g):g),s.resolvedInput)for(const m of await Ko(s)){const _={tag:m,entry:s,resolvedOptions:u.resolvedOptions};await o.callHook("tag:normalise",_),p.tags.push(_.tag)}}return await o.callHook("tags:beforeResolve",p),await o.callHook("tags:resolve",p),p.tags},ssr:t};return[nn,rn,ln,cn,dn,fn,hn,...i?.plugins||[]].forEach(p=>u.use(p)),u.hooks.callHook("init",u),u}const yn=e.version.startsWith("3");function vn(i){return typeof i=="function"?i():e.unref(i)}function _e(i,o=""){if(i instanceof Promise)return i;const t=vn(i);return!i||!t?t:Array.isArray(t)?t.map(n=>_e(n,o)):typeof t=="object"?Object.fromEntries(Object.entries(t).map(([n,c])=>n==="titleTemplate"||n.startsWith("on")?[n,e.unref(c)]:[n,_e(c,n)])):t}const _n={hooks:{"entries:resolve":function(i){for(const o of i.entries)o.resolvedInput=_e(o.input)}}},kn="usehead";function bn(i){return{install(t){yn&&(t.config.globalProperties.$unhead=i,t.config.globalProperties.$head=i,t.provide(kn,i))}}.install}function Bn(i={}){i.domDelayFn=i.domDelayFn||(t=>e.nextTick(()=>setTimeout(()=>t(),0)));const o=mn(i);return o.use(_n),o.install=bn(o),o}const Vn=e.createPinia(),En=Bn(),Nn=e.Go(),U=e.createApp({components:{Hotel:Eo}});U.use(En);U.use(Vn);U.use(Nn);U.use(ze);U.use(T.StickyPlugin);U.use(e.instance);U.use(G.xt);U.use(T.install,{bootstrap:!1});U.mount("#konnectio-hotel-app");