@konnectio/core 4.0.30 → 4.0.31

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 (59) hide show
  1. package/dist/{ActionField-6a7fe182.cjs → ActionField-4146b273.cjs} +1 -1
  2. package/dist/{ActionField-6b24ed58.js → ActionField-cad55dd0.js} +2 -2
  3. package/dist/ActionField-cad55dd0.js.br +0 -0
  4. package/dist/{AvailabilitySkeleton-7ec69b90.js → AvailabilitySkeleton-119a2dda.js} +5 -5
  5. package/dist/AvailabilitySkeleton-119a2dda.js.br +0 -0
  6. package/dist/{AvailabilitySkeleton-f2192dc6.cjs → AvailabilitySkeleton-e50c7f3b.cjs} +1 -1
  7. package/dist/{DateField.vue_vue_type_style_index_0_lang-96d1d3ea.cjs → DateField.vue_vue_type_style_index_0_lang-6e16a80f.cjs} +1 -1
  8. package/dist/{DateField.vue_vue_type_style_index_0_lang-3a3692d1.js → DateField.vue_vue_type_style_index_0_lang-a4445293.js} +1 -1
  9. package/dist/DateField.vue_vue_type_style_index_0_lang-a4445293.js.br +0 -0
  10. package/dist/{Field-c8804a60.cjs → Field-30b9bc8d.cjs} +1 -1
  11. package/dist/{Field-a129d337.js → Field-c6cc5881.js} +2 -2
  12. package/dist/Field-c6cc5881.js.br +0 -0
  13. package/dist/{NumberField.vue_vue_type_script_setup_true_lang-d175c5f1.cjs → NumberField.vue_vue_type_script_setup_true_lang-9678cc59.cjs} +1 -1
  14. package/dist/{NumberField.vue_vue_type_script_setup_true_lang-5ff1722d.js → NumberField.vue_vue_type_script_setup_true_lang-dbfb9925.js} +1 -1
  15. package/dist/NumberField.vue_vue_type_script_setup_true_lang-dbfb9925.js.br +0 -0
  16. package/dist/{SelectField.vue_vue_type_style_index_0_lang-abafed2f.js → SelectField.vue_vue_type_style_index_0_lang-c497c637.js} +7 -7
  17. package/dist/SelectField.vue_vue_type_style_index_0_lang-c497c637.js.br +0 -0
  18. package/dist/{SelectField.vue_vue_type_style_index_0_lang-88cf98c9.cjs → SelectField.vue_vue_type_style_index_0_lang-dec7ee54.cjs} +2 -2
  19. package/dist/{ThankYou-af2a1b13.cjs → ThankYou-07315679.cjs} +1 -1
  20. package/dist/{ThankYou-d644a014.js → ThankYou-2449c13f.js} +4 -4
  21. package/dist/ThankYou-2449c13f.js.br +0 -0
  22. package/dist/{_-c044a71c.js → _-c92afce5.js} +1 -1
  23. package/dist/{_-68bd35c5.cjs → _-d75fab60.cjs} +1 -1
  24. package/dist/availability.cjs +1 -1
  25. package/dist/availability.js +7 -7
  26. package/dist/availability.js.br +0 -0
  27. package/dist/{event-6f45c906.js → event-1457c6d2.js} +7 -7
  28. package/dist/event-1457c6d2.js.br +0 -0
  29. package/dist/{event-37706e7b.cjs → event-a3ccc3af.cjs} +1 -1
  30. package/dist/event.cjs +1 -1
  31. package/dist/event.js +8 -8
  32. package/dist/event.js.br +0 -0
  33. package/dist/gift-card-validation.cjs +1 -1
  34. package/dist/gift-card-validation.js +3 -3
  35. package/dist/gift-card-validation.js.br +0 -0
  36. package/dist/gift-card.cjs +1 -1
  37. package/dist/gift-card.js +5 -5
  38. package/dist/gift-card.js.br +0 -0
  39. package/dist/hotel.cjs +1 -1
  40. package/dist/hotel.js +11 -11
  41. package/dist/hotel.js.br +0 -0
  42. package/dist/{index-a5dc6e49.js → index-51291895.js} +1 -1
  43. package/dist/index-51291895.js.br +0 -0
  44. package/dist/{index-27d2c768.cjs → index-551fafbf.cjs} +1 -1
  45. package/dist/polyfill.cjs +1 -1
  46. package/dist/polyfill.js +1 -1
  47. package/dist/polyfill.js.br +0 -0
  48. package/dist/style.css +1 -1
  49. package/dist/style.css.br +0 -0
  50. package/package.json +1 -2
  51. package/dist/ActionField-6b24ed58.js.br +0 -0
  52. package/dist/AvailabilitySkeleton-7ec69b90.js.br +0 -0
  53. package/dist/DateField.vue_vue_type_style_index_0_lang-3a3692d1.js.br +0 -0
  54. package/dist/Field-a129d337.js.br +0 -0
  55. package/dist/NumberField.vue_vue_type_script_setup_true_lang-5ff1722d.js.br +0 -0
  56. package/dist/SelectField.vue_vue_type_style_index_0_lang-abafed2f.js.br +0 -0
  57. package/dist/ThankYou-d644a014.js.br +0 -0
  58. package/dist/event-6f45c906.js.br +0 -0
  59. package/dist/index-a5dc6e49.js.br +0 -0
@@ -1 +1 @@
1
- "use strict";const e=require("./SelectField.vue_vue_type_style_index_0_lang-88cf98c9.cjs"),N=require("./index-27d2c768.cjs"),$=require("./_-68bd35c5.cjs"),R=require("./Field-c8804a60.cjs");require("./_commonjsHelpers-6763f629.cjs");const G=e.defineStore("giftCard",()=>{e.useAlertStore();const{pay:y}=e.usePaymentStore(),{bearerToken:a,metaData:v}=e.storeToRefs(e.useUtilityStore()),i=e.ref(e.GiftCardModuleState.InitialState),f=e.useStorage("konnectio_name","",void 0,{serializer:e.StorageSerializers.string}),g=e.useStorage("konnectio_email","",void 0,{serializer:e.StorageSerializers.string}),d=e.useStorage("konnectio_phone","",void 0,{serializer:e.StorageSerializers.string}),u=e.ref(""),V=e.ref(1),w=e.ref(!0),_=e.ref(""),s=e.ref({base64:"",type:"",name:""}),k=e.ref(void 0),l=e.ref(0),n=e.ref(!1),r=e.ref(0),C=e.computed(()=>i.value===e.GiftCardModuleState.InitialState||i.value===e.GiftCardModuleState.WaitingForResponse),B=e.computed(()=>i.value===e.GiftCardModuleState.ReadyToPay),p=e.computed(()=>i.value===e.GiftCardModuleState.PaymentSuccess),h=e.computed(()=>{const c={1:{label:e.i18n.t("giftCard.hotelType"),data:[]},2:{label:e.i18n.t("giftCard.restaurantType"),data:[]}},t=v.value.places;return t&&t.forEach(m=>{c[m.placeType].data.push(m)}),Object.fromEntries(Object.entries(c).filter(([,m])=>m.data.length>0))}),x=e.computed(()=>r.value!==0),b=e.computed(()=>{let c;if(x.value)c=h.value[r.value].data[0];else if(l.value!==0){const t=k.value,m=h.value[l.value].data;m.length===1?c=m[0]:t!==void 0&&m.forEach(P=>{String(P.id)===String(t)&&(c=P)})}return c}),E=e.computed(()=>!(!f.value||!g.value||!(d.value.length>=5)||!u.value||b.value===void 0)),q=e.computed(()=>!(i.value===e.GiftCardModuleState.InitialState&&n.value)),T=e.computed(()=>!!(i.value===e.GiftCardModuleState.WaitingForResponse&&n.value));async function S(){i.value=e.GiftCardModuleState.WaitingForResponse,n.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:v.value.currency.id,language:e.getUserLanguage(),amount:u.value,quantity:V.value,freeText:_.value,showPrice:w.value,contactName:f.value,contactEmail:g.value,contactPhone:d.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:a.value,Accept:"application/json","Fresh-Booking-Ver":"4.0.30"}}).then(c=>{i.value=e.GiftCardModuleState.ReadyToPay,n.value=!1,y({callback:()=>console.log("Callback!"),response:c.data})})}function o(c){c&&(r.value=c)}return{moduleState:i,name:f,email:g,phone:d,value:u,remark:_,showValue:w,quantity:V,media:s,placeId:k,placeType:l,showFormPage:C,showPaymentPage:B,showConfirmationPage:p,places:h,hasFilledForm:E,hasForcedPlaceType:x,isWaitingForResponse:T,isMetaDataAvailable:q,orderGiftCard:S,initialize:o}}),M={class:"media-selector"},D=["accept"],I={class:"media-selector-wrapper"},L={class:"media-selector-tools"},z={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:a}){const v=a,i=y,{t:f}=e.useI18n(),{display:g}=e.useAlertStore(),d=e.ref(),u=e.computed(()=>i.modelValue.base64!=="");function V(l){v("update:modelValue",l)}function w(){V({base64:"",name:"",type:""}),d.value&&(d.value.value="")}function _(){d.value&&d.value.click()}function s(l,n){const[r,C]=[l.name,l.type],B=new FileReader;B.onload=function(p){if(p.target){const h=p.target.result;n({base64:h,name:r,type:C})}else g({message:f("imageUploadError"),type:"error"})},B.readAsDataURL(l)}async function k(){let l;(l=d.value.files)instanceof FileList&&s(l[0],V)}return(l,n)=>(e.openBlock(),e.createBlock(e.InputField,{label:l.label,required:l.required,type:"media"},{default:e.withCtx(()=>[e.createBaseVNode("div",M,[e.createBaseVNode("input",{ref_key:"fileInput",ref:d,type:"file",class:"hidden",accept:l.validation,single:"",onChange:n[0]||(n[0]=r=>k())},null,40,D),e.createBaseVNode("div",I,[e.createBaseVNode("ul",L,[u.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("li",z,[e.createVNode(e.Clickable,{label:e.unref(f)("uploadFile"),type:"button",icon:"upload","icon-color":l.iconColor,onClickEvent:n[1]||(n[1]=r=>_())},null,8,["label","icon-color"])])),u.value?(e.openBlock(),e.createElementBlock("li",A,[e.createVNode(e.Clickable,{label:e.unref(f)("replaceFile"),type:"button",icon:"repeat-alt","icon-color":l.iconColor,onClickEvent:n[2]||(n[2]=r=>_())},null,8,["label","icon-color"])])):e.createCommentVNode("",!0),u.value?(e.openBlock(),e.createElementBlock("li",W,[e.createVNode(e.Clickable,{label:e.unref(f)("removeFile"),type:"button",icon:"trash-alt","icon-color":l.iconColor,onClickEvent:n[3]||(n[3]=r=>w())},null,8,["label","icon-color"])])):e.createCommentVNode("",!0)]),e.createBaseVNode("div",{class:e.normalizeClass(["media-selector-previewer",{opened:u.value}])},[l.modelValue?(e.openBlock(),e.createElementBlock("img",{key:0,src:l.modelValue.base64},null,8,j)):e.createCommentVNode("",!0)],2)])])]),_:1},8,["label","required"]))}});function U(y){const a=y;a.__i18n=a.__i18n||[],a.__i18n.push({locale:"",resource:{da:{uploadFile:{t:0,b:{t:2,i:[{t:3}],s:"Upload billede"}},removeFile:{t:0,b:{t:2,i:[{t:3}],s:"Fjern billede"}},replaceFile:{t:0,b:{t:2,i:[{t:3}],s:"Ersat billede"}},imageUploadError:{t:0,b:{t:2,i:[{t:3}],s:"Der skete en fejl under billede upload!"}}},en:{uploadFile:{t:0,b:{t:2,i:[{t:3}],s:"Upload image"}},removeFile:{t:0,b:{t:2,i:[{t:3}],s:"Remove image"}},replaceFile:{t:0,b:{t:2,i:[{t:3}],s:"Replace image"}},imageUploadError:{t:0,b:{t:2,i:[{t:3}],s:"An error occurred under image upload!"}}}}})}typeof U=="function"&&U(H);const O={class:"gift-card-skeleton"},K={class:"gift-card-skeleton-form"},Y=e.defineComponent({__name:"GiftCardSkeleton",setup(y){return(a,v)=>(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($.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"},ie=["innerHTML"],re={key:0,id:"fresh-booking-gift-card-order"},de={class:"fresh-booking-panel"},se={key:1,id:"fresh-booking-gift-card-remarks"},ce={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:a}=e.useI18n(),{name:v,email:i,phone:f,value:g,remark:d,showValue:u,quantity:V,media:w,placeId:_,placeType:s,showFormPage:k,showPaymentPage:l,showConfirmationPage:n,places:r,hasFilledForm:C,hasForcedPlaceType:B,isWaitingForResponse:p,isMetaDataAvailable:h}=e.storeToRefs(G()),{initialize:x,orderGiftCard:b}=G(),{isRecaptchaEnabled:E,currency:q}=e.storeToRefs(e.useUtilityStore());async function T(){await b()}return e.watch(s,()=>{_.value=void 0}),e.onMounted(()=>{x()}),(S,o)=>{const c=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":S.accessToken,"data-layout":S.layout,styling:S.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(a)("giftCard.title")),1)]),e.createBaseVNode("div",Z,[e.withDirectives(e.createBaseVNode("div",ee,[e.createVNode(N.CheckoutWindow)],512),[[e.vShow,e.unref(l)]]),e.withDirectives(e.createBaseVNode("div",null,[e.createBaseVNode("p",{id:"fresh-booking-gift-card-description",innerHTML:e.unref(a)("giftCard.description")},null,8,te),e.createBaseVNode("form",null,[e.createVNode(e.TextField,{modelValue:e.unref(v),"onUpdate:modelValue":o[0]||(o[0]=t=>e.isRef(v)?v.value=t:null),type:"text",name:"name",autocomplete:"name",label:e.unref(a)("giftCard.name"),icon:"user-alt",placeholder:e.unref(a)("giftCard.namePlaceholder"),required:""},null,8,["modelValue","label","placeholder"]),e.createVNode(e.TextField,{modelValue:e.unref(i),"onUpdate:modelValue":o[1]||(o[1]=t=>e.isRef(i)?i.value=t:null),type:"email",name:"email",autocomplete:"email",label:e.unref(a)("giftCard.email"),icon:"at",placeholder:e.unref(a)("giftCard.emailPlaceholder"),required:""},null,8,["modelValue","label","placeholder"]),e.createVNode(N.PhoneField,{modelValue:e.unref(f),"onUpdate:modelValue":o[2]||(o[2]=t=>e.isRef(f)?f.value=t:null),icon:"phone-office",label:e.unref(a)("giftCard.phone"),placeholder:e.unref(a)("giftCard.phonePlaceholder"),required:""},null,8,["modelValue","label","placeholder"]),e.unref(B)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",ae,[e.unref(r)?(e.openBlock(),e.createElementBlock("div",le,[e.createBaseVNode("label",oe,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(a)("giftCard.selectType")),1)]),e.createBaseVNode("div",ne,[e.createBaseVNode("ul",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(r),(t,m)=>(e.openBlock(),e.createElementBlock("li",{key:m},[e.createVNode(N.Checkbox,{modelValue:e.unref(s),"onUpdate:modelValue":o[3]||(o[3]=P=>e.isRef(s)?s.value=P:null),type:"radio",name:"placeType",val:m,label:t.label},null,8,["modelValue","val","label"])]))),128))]),e.unref(r)[e.unref(s)]&&e.unref(r)[e.unref(s)].data.length>1?(e.openBlock(),e.createBlock(e._sfc_main,{key:0,modelValue:e.unref(_),"onUpdate:modelValue":o[4]||(o[4]=t=>e.isRef(_)?_.value=t:null),placeholder:e.unref(a)("giftCard.selectPlacePlaceholder"),options:e.unref(r)[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":o[5]||(o[5]=t=>e.isRef(g)?g.value=t:null),type:"number",name:"value",label:e.unref(a)("giftCard.value"),icon:"money-bill",placeholder:e.unref(a)("giftCard.valuePlaceholder"),suffix:e.unref(q),required:""},null,8,["modelValue","label","placeholder","suffix"]),e.createVNode(N.Checkbox,{modelValue:e.unref(u),"onUpdate:modelValue":o[6]||(o[6]=t=>e.isRef(u)?u.value=t:null),type:"checkbox",name:"showValue",label:e.unref(a)("giftCard.showValue"),checked:e.unref(u)},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(a)("giftCard.thankYou")},null,8,ie)],512),[[e.vShow,e.unref(n)]])]),S.layout!=="minimal"&&e.unref(k)?(e.openBlock(),e.createElementBlock("div",re,[e.createBaseVNode("div",de,[e.createVNode(e.Clickable,{label:e.unref(a)("giftCard.orderGiftCard"),"full-width":!0,disabled:!e.unref(C),"is-loading":e.unref(p),"onUpdate:isLoading":o[9]||(o[9]=t=>e.isRef(p)?p.value=t:null),onClickEvent:T},null,8,["label","disabled","is-loading"])])])):e.createCommentVNode("",!0),e.unref(k)?(e.openBlock(),e.createElementBlock("div",se,[e.createVNode(e.TextField,{modelValue:e.unref(d),"onUpdate:modelValue":o[10]||(o[10]=t=>e.isRef(d)?d.value=t:null),type:"textarea",name:"remark",label:e.unref(a)("giftCard.remark"),icon:"info-circle",placeholder:e.unref(a)("giftCard.remarkPlaceholder")},null,8,["modelValue","label","placeholder"])])):e.createCommentVNode("",!0),e.unref(k)?e.withDirectives((e.openBlock(),e.createElementBlock("div",ce,[e.createVNode(e.Clickable,{label:e.unref(a)("giftCard.orderGiftCard"),"full-width":!0,disabled:!e.unref(C),"data-test":"orderGiftCard","is-loading":e.unref(p),"onUpdate:isLoading":o[11]||(o[11]=t=>e.isRef(p)?p.value=t:null),onClickEvent:T},null,8,["label","disabled","is-loading"]),e.withDirectives(e.createBaseVNode("div",ue,[e.createVNode(N._sfc_main)],512),[[e.vShow,e.unref(E)]])])),[[c]]):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(N.StickyPlugin);F.use(e.install,{bootstrap:!0});F.mount("#konnectio-gift-card-app");
1
+ "use strict";const e=require("./SelectField.vue_vue_type_style_index_0_lang-dec7ee54.cjs"),N=require("./index-551fafbf.cjs"),$=require("./_-d75fab60.cjs"),R=require("./Field-30b9bc8d.cjs");require("./_commonjsHelpers-6763f629.cjs");const G=e.defineStore("giftCard",()=>{e.useAlertStore();const{pay:y}=e.usePaymentStore(),{bearerToken:a,metaData:v}=e.storeToRefs(e.useUtilityStore()),i=e.ref(e.GiftCardModuleState.InitialState),f=e.useStorage("konnectio_name","",void 0,{serializer:e.StorageSerializers.string}),g=e.useStorage("konnectio_email","",void 0,{serializer:e.StorageSerializers.string}),d=e.useStorage("konnectio_phone","",void 0,{serializer:e.StorageSerializers.string}),u=e.ref(""),V=e.ref(1),w=e.ref(!0),_=e.ref(""),s=e.ref({base64:"",type:"",name:""}),k=e.ref(void 0),l=e.ref(0),n=e.ref(!1),r=e.ref(0),C=e.computed(()=>i.value===e.GiftCardModuleState.InitialState||i.value===e.GiftCardModuleState.WaitingForResponse),B=e.computed(()=>i.value===e.GiftCardModuleState.ReadyToPay),p=e.computed(()=>i.value===e.GiftCardModuleState.PaymentSuccess),h=e.computed(()=>{const c={1:{label:e.i18n.t("giftCard.hotelType"),data:[]},2:{label:e.i18n.t("giftCard.restaurantType"),data:[]}},t=v.value.places;return t&&t.forEach(m=>{c[m.placeType].data.push(m)}),Object.fromEntries(Object.entries(c).filter(([,m])=>m.data.length>0))}),x=e.computed(()=>r.value!==0),b=e.computed(()=>{let c;if(x.value)c=h.value[r.value].data[0];else if(l.value!==0){const t=k.value,m=h.value[l.value].data;m.length===1?c=m[0]:t!==void 0&&m.forEach(P=>{String(P.id)===String(t)&&(c=P)})}return c}),E=e.computed(()=>!(!f.value||!g.value||!(d.value.length>=5)||!u.value||b.value===void 0)),q=e.computed(()=>!(i.value===e.GiftCardModuleState.InitialState&&n.value)),T=e.computed(()=>!!(i.value===e.GiftCardModuleState.WaitingForResponse&&n.value));async function S(){i.value=e.GiftCardModuleState.WaitingForResponse,n.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:v.value.currency.id,language:e.getUserLanguage(),amount:u.value,quantity:V.value,freeText:_.value,showPrice:w.value,contactName:f.value,contactEmail:g.value,contactPhone:d.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:a.value,Accept:"application/json","Fresh-Booking-Ver":"4.0.31"}}).then(c=>{i.value=e.GiftCardModuleState.ReadyToPay,n.value=!1,y({callback:()=>console.log("Callback!"),response:c.data})})}function o(c){c&&(r.value=c)}return{moduleState:i,name:f,email:g,phone:d,value:u,remark:_,showValue:w,quantity:V,media:s,placeId:k,placeType:l,showFormPage:C,showPaymentPage:B,showConfirmationPage:p,places:h,hasFilledForm:E,hasForcedPlaceType:x,isWaitingForResponse:T,isMetaDataAvailable:q,orderGiftCard:S,initialize:o}}),M={class:"media-selector"},D=["accept"],I={class:"media-selector-wrapper"},L={class:"media-selector-tools"},z={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:a}){const v=a,i=y,{t:f}=e.useI18n(),{display:g}=e.useAlertStore(),d=e.ref(),u=e.computed(()=>i.modelValue.base64!=="");function V(l){v("update:modelValue",l)}function w(){V({base64:"",name:"",type:""}),d.value&&(d.value.value="")}function _(){d.value&&d.value.click()}function s(l,n){const[r,C]=[l.name,l.type],B=new FileReader;B.onload=function(p){if(p.target){const h=p.target.result;n({base64:h,name:r,type:C})}else g({message:f("imageUploadError"),type:"error"})},B.readAsDataURL(l)}async function k(){let l;(l=d.value.files)instanceof FileList&&s(l[0],V)}return(l,n)=>(e.openBlock(),e.createBlock(e.InputField,{label:l.label,required:l.required,type:"media"},{default:e.withCtx(()=>[e.createBaseVNode("div",M,[e.createBaseVNode("input",{ref_key:"fileInput",ref:d,type:"file",class:"hidden",accept:l.validation,single:"",onChange:n[0]||(n[0]=r=>k())},null,40,D),e.createBaseVNode("div",I,[e.createBaseVNode("ul",L,[u.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("li",z,[e.createVNode(e.Clickable,{label:e.unref(f)("uploadFile"),type:"button",icon:"upload","icon-color":l.iconColor,onClickEvent:n[1]||(n[1]=r=>_())},null,8,["label","icon-color"])])),u.value?(e.openBlock(),e.createElementBlock("li",A,[e.createVNode(e.Clickable,{label:e.unref(f)("replaceFile"),type:"button",icon:"repeat-alt","icon-color":l.iconColor,onClickEvent:n[2]||(n[2]=r=>_())},null,8,["label","icon-color"])])):e.createCommentVNode("",!0),u.value?(e.openBlock(),e.createElementBlock("li",W,[e.createVNode(e.Clickable,{label:e.unref(f)("removeFile"),type:"button",icon:"trash-alt","icon-color":l.iconColor,onClickEvent:n[3]||(n[3]=r=>w())},null,8,["label","icon-color"])])):e.createCommentVNode("",!0)]),e.createBaseVNode("div",{class:e.normalizeClass(["media-selector-previewer",{opened:u.value}])},[l.modelValue?(e.openBlock(),e.createElementBlock("img",{key:0,src:l.modelValue.base64},null,8,j)):e.createCommentVNode("",!0)],2)])])]),_:1},8,["label","required"]))}});function U(y){const a=y;a.__i18n=a.__i18n||[],a.__i18n.push({locale:"",resource:{da:{uploadFile:{t:0,b:{t:2,i:[{t:3}],s:"Upload billede"}},removeFile:{t:0,b:{t:2,i:[{t:3}],s:"Fjern billede"}},replaceFile:{t:0,b:{t:2,i:[{t:3}],s:"Ersat billede"}},imageUploadError:{t:0,b:{t:2,i:[{t:3}],s:"Der skete en fejl under billede upload!"}}},en:{uploadFile:{t:0,b:{t:2,i:[{t:3}],s:"Upload image"}},removeFile:{t:0,b:{t:2,i:[{t:3}],s:"Remove image"}},replaceFile:{t:0,b:{t:2,i:[{t:3}],s:"Replace image"}},imageUploadError:{t:0,b:{t:2,i:[{t:3}],s:"An error occurred under image upload!"}}}}})}typeof U=="function"&&U(H);const O={class:"gift-card-skeleton"},K={class:"gift-card-skeleton-form"},Y=e.defineComponent({__name:"GiftCardSkeleton",setup(y){return(a,v)=>(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($.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"},ie=["innerHTML"],re={key:0,id:"fresh-booking-gift-card-order"},de={class:"fresh-booking-panel"},se={key:1,id:"fresh-booking-gift-card-remarks"},ce={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:a}=e.useI18n(),{name:v,email:i,phone:f,value:g,remark:d,showValue:u,quantity:V,media:w,placeId:_,placeType:s,showFormPage:k,showPaymentPage:l,showConfirmationPage:n,places:r,hasFilledForm:C,hasForcedPlaceType:B,isWaitingForResponse:p,isMetaDataAvailable:h}=e.storeToRefs(G()),{initialize:x,orderGiftCard:b}=G(),{isRecaptchaEnabled:E,currency:q}=e.storeToRefs(e.useUtilityStore());async function T(){await b()}return e.watch(s,()=>{_.value=void 0}),e.onMounted(()=>{x()}),(S,o)=>{const c=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":S.accessToken,"data-layout":S.layout,styling:S.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(a)("giftCard.title")),1)]),e.createBaseVNode("div",Z,[e.withDirectives(e.createBaseVNode("div",ee,[e.createVNode(N.CheckoutWindow)],512),[[e.vShow,e.unref(l)]]),e.withDirectives(e.createBaseVNode("div",null,[e.createBaseVNode("p",{id:"fresh-booking-gift-card-description",innerHTML:e.unref(a)("giftCard.description")},null,8,te),e.createBaseVNode("form",null,[e.createVNode(e.TextField,{modelValue:e.unref(v),"onUpdate:modelValue":o[0]||(o[0]=t=>e.isRef(v)?v.value=t:null),type:"text",name:"name",autocomplete:"name",label:e.unref(a)("giftCard.name"),icon:"user-alt",placeholder:e.unref(a)("giftCard.namePlaceholder"),required:""},null,8,["modelValue","label","placeholder"]),e.createVNode(e.TextField,{modelValue:e.unref(i),"onUpdate:modelValue":o[1]||(o[1]=t=>e.isRef(i)?i.value=t:null),type:"email",name:"email",autocomplete:"email",label:e.unref(a)("giftCard.email"),icon:"at",placeholder:e.unref(a)("giftCard.emailPlaceholder"),required:""},null,8,["modelValue","label","placeholder"]),e.createVNode(N.PhoneField,{modelValue:e.unref(f),"onUpdate:modelValue":o[2]||(o[2]=t=>e.isRef(f)?f.value=t:null),icon:"phone-office",label:e.unref(a)("giftCard.phone"),placeholder:e.unref(a)("giftCard.phonePlaceholder"),required:""},null,8,["modelValue","label","placeholder"]),e.unref(B)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",ae,[e.unref(r)?(e.openBlock(),e.createElementBlock("div",le,[e.createBaseVNode("label",oe,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(a)("giftCard.selectType")),1)]),e.createBaseVNode("div",ne,[e.createBaseVNode("ul",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(r),(t,m)=>(e.openBlock(),e.createElementBlock("li",{key:m},[e.createVNode(N.Checkbox,{modelValue:e.unref(s),"onUpdate:modelValue":o[3]||(o[3]=P=>e.isRef(s)?s.value=P:null),type:"radio",name:"placeType",val:m,label:t.label},null,8,["modelValue","val","label"])]))),128))]),e.unref(r)[e.unref(s)]&&e.unref(r)[e.unref(s)].data.length>1?(e.openBlock(),e.createBlock(e._sfc_main,{key:0,modelValue:e.unref(_),"onUpdate:modelValue":o[4]||(o[4]=t=>e.isRef(_)?_.value=t:null),placeholder:e.unref(a)("giftCard.selectPlacePlaceholder"),options:e.unref(r)[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":o[5]||(o[5]=t=>e.isRef(g)?g.value=t:null),type:"number",name:"value",label:e.unref(a)("giftCard.value"),icon:"money-bill",placeholder:e.unref(a)("giftCard.valuePlaceholder"),suffix:e.unref(q),required:""},null,8,["modelValue","label","placeholder","suffix"]),e.createVNode(N.Checkbox,{modelValue:e.unref(u),"onUpdate:modelValue":o[6]||(o[6]=t=>e.isRef(u)?u.value=t:null),type:"checkbox",name:"showValue",label:e.unref(a)("giftCard.showValue"),checked:e.unref(u)},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(a)("giftCard.thankYou")},null,8,ie)],512),[[e.vShow,e.unref(n)]])]),S.layout!=="minimal"&&e.unref(k)?(e.openBlock(),e.createElementBlock("div",re,[e.createBaseVNode("div",de,[e.createVNode(e.Clickable,{label:e.unref(a)("giftCard.orderGiftCard"),"full-width":!0,disabled:!e.unref(C),"is-loading":e.unref(p),"onUpdate:isLoading":o[9]||(o[9]=t=>e.isRef(p)?p.value=t:null),onClickEvent:T},null,8,["label","disabled","is-loading"])])])):e.createCommentVNode("",!0),e.unref(k)?(e.openBlock(),e.createElementBlock("div",se,[e.createVNode(e.TextField,{modelValue:e.unref(d),"onUpdate:modelValue":o[10]||(o[10]=t=>e.isRef(d)?d.value=t:null),type:"textarea",name:"remark",label:e.unref(a)("giftCard.remark"),icon:"info-circle",placeholder:e.unref(a)("giftCard.remarkPlaceholder")},null,8,["modelValue","label","placeholder"])])):e.createCommentVNode("",!0),e.unref(k)?e.withDirectives((e.openBlock(),e.createElementBlock("div",ce,[e.createVNode(e.Clickable,{label:e.unref(a)("giftCard.orderGiftCard"),"full-width":!0,disabled:!e.unref(C),"data-test":"orderGiftCard","is-loading":e.unref(p),"onUpdate:isLoading":o[11]||(o[11]=t=>e.isRef(p)?p.value=t:null),onClickEvent:T},null,8,["label","disabled","is-loading"]),e.withDirectives(e.createBaseVNode("div",ue,[e.createVNode(N._sfc_main)],512),[[e.vShow,e.unref(E)]])])),[[c]]):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(N.StickyPlugin);F.use(e.install,{bootstrap:!0});F.mount("#konnectio-gift-card-app");
package/dist/gift-card.js CHANGED
@@ -1,7 +1,7 @@
1
- import { d as ue, b as ie, u as ce, s as Q, c as ne, r as b, ae as w, e as Y, f as V, j as Z, S as J, h as pe, i as fe, af as me, k as X, D as se, m as s, n as D, w as H, A as n, v, p as i, q as e, C as x, x as _, y as re, I as ve, _ as de, a1 as ge, o as he, ag as ye, F as ee, ah as B, ai as W, T as j, G as C, a2 as be, a3 as _e, B as ke, a4 as ae, M as Ce, N as Ve, U as Fe, a8 as Pe, R as Se, V as we, a9 as Te } from "./SelectField.vue_vue_type_style_index_0_lang-abafed2f.js";
2
- import { a as $e, P as Ue, C as le, _ as Re, S as qe } from "./index-a5dc6e49.js";
3
- import { E as Ee } from "./_-c044a71c.js";
4
- import { F as L } from "./Field-a129d337.js";
1
+ import { d as ue, b as ie, u as ce, s as Q, c as ne, r as b, ae as w, e as Y, f as V, j as Z, S as J, h as pe, i as fe, af as me, k as X, D as se, m as s, n as D, w as H, A as n, v, p as i, q as e, C as x, x as _, y as re, I as ve, _ as de, a1 as ge, o as he, ag as ye, F as ee, ah as B, ai as W, T as j, G as C, a2 as be, a3 as _e, B as ke, a4 as ae, M as Ce, N as Ve, U as Fe, a8 as Pe, R as Se, V as we, a9 as Te } from "./SelectField.vue_vue_type_style_index_0_lang-c497c637.js";
2
+ import { a as $e, P as Ue, C as le, _ as Re, S as qe } from "./index-51291895.js";
3
+ import { E as Ee } from "./_-c92afce5.js";
4
+ import { F as L } from "./Field-c6cc5881.js";
5
5
  import "./_commonjsHelpers-aeeeeb92.js";
6
6
  const te = ue("giftCard", () => {
7
7
  ie();
@@ -59,7 +59,7 @@ const te = ue("giftCard", () => {
59
59
  headers: {
60
60
  Authorization: l.value,
61
61
  Accept: "application/json",
62
- "Fresh-Booking-Ver": "4.0.30"
62
+ "Fresh-Booking-Ver": "4.0.31"
63
63
  }
64
64
  }).then((f) => {
65
65
  d.value = w.ReadyToPay, r.value = !1, T({
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-88cf98c9.cjs"),z=require("./ThankYou-af2a1b13.cjs"),Re=require("./AvailabilitySkeleton-f2192dc6.cjs"),He=require("./NumberField.vue_vue_type_script_setup_true_lang-d175c5f1.cjs"),Bt=require("./DateField.vue_vue_type_style_index_0_lang-96d1d3ea.cjs"),U=require("./index-27d2c768.cjs"),O=require("./_-68bd35c5.cjs"),ee=require("./_commonjsHelpers-6763f629.cjs");require("./ActionField-6a7fe182.cjs");require("./Field-c8804a60.cjs");const Vt={key:0},oe=e.defineComponent({__name:"HotelReservationForm",props:{showGiftCard:{type:Boolean,default:!1},showTermsNotice:{type:Boolean,default:!1}},setup(i){const{t}=e.useI18n(),n=e.useSlots(),{hideArrivalDepartureInputs:o,disableArrivalUserSelection:u,disableDepartureUserSelection:l,arrivalDefault:_,departureDefault:s,currency:p}=e.storeToRefs(e.useUtilityStore()),{arrivalDate:c,departureDate:h}=e.storeToRefs(e.useAvailabilityStore()),{arrivalTime:m,departureTime:k,roomDisplay:a,templateID:v,totalPrice:g,areListingsLoading:f}=e.storeToRefs(e.useHotelStore()),{removeRoom:r}=e.useHotelStore();function d(y){return y.reduce((S,{totalPrice:N})=>S+N,0)}return(y,b)=>(e.openBlock(),e.createBlock(z.ReservationForm,{"total-price":e.unref(g),"show-gift-card":y.showGiftCard,"show-terms-notice":y.showTermsNotice,"is-sidebar-loading":e.unref(f),notice:e.unref(t)("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(t)("booking.reservation.arrival")),1),e.createBaseVNode("b",null,e.toDisplayString(e.unref(o)?e.unref(e.showDate)(e.unref(c)):`${e.unref(e.showDate)(e.unref(c))}, ${e.unref(u)?e.unref(_):e.unref(m)}`),1)]),e.createBaseVNode("li",null,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(t)("booking.reservation.departure")),1),e.createBaseVNode("b",null,e.toDisplayString(e.unref(o)?e.unref(e.showDate)(e.unref(h)):`${e.unref(e.showDate)(e.unref(h))}, ${e.unref(l)?e.unref(s):e.unref(k)}`),1)]),e.createBaseVNode("li",null,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(t)("booking.reservation.nights")),1),e.createBaseVNode("b",null,e.toDisplayString(e.unref(e.daysBetweenDates)(e.unref(c),e.unref(h)))+" "+e.toDisplayString(e.unref(e.lowercase)(e.unref(e.daysBetweenDates)(e.unref(c),e.unref(h))===1?e.unref(t)("booking.reservation.night"):e.unref(t)("booking.reservation.nights"))),1)])]),"price-summary":e.withCtx(()=>[isNaN(e.unref(v))&&e.unref(a).length>0?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(e.unref(a),({roomGroupID:S,title:N,variants:C})=>(e.openBlock(),e.createElementBlock("div",{key:S},[e.createBaseVNode("h6",null,[e.createBaseVNode("span",null,e.toDisplayString(N),1)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(C,(B,E)=>(e.openBlock(),e.createElementBlock("div",{key:E},[e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(B.rooms,(F,w)=>(e.openBlock(),e.createElementBlock("ul",{key:w},[e.createBaseVNode("li",null,[e.createBaseVNode("span",null,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(e.capitalized)(B.name)),1),e.createBaseVNode("span",null,[e.createTextVNode("( "),e.createVNode(e.Icon,{icon:"male",type:"fas",color:"font"}),e.createBaseVNode("span",null,e.toDisplayString(F.adultsCount),1),F.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(F.childrenCount),1)],64)):e.createCommentVNode("",!0),e.createTextVNode(") ")])]),e.createBaseVNode("b",null,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(e.showPrice)(F.totalPrice,e.unref(p))),1),e.createCommentVNode("",!0)])]),d(F.roomAddons)>0?(e.openBlock(),e.createElementBlock("li",Vt,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(t)("booking.reservation.addons")),1),e.createBaseVNode("b",null,e.toDisplayString(e.unref(e.showPrice)(d(F.roomAddons),e.unref(p))),1)])):e.createCommentVNode("",!0)]))),128))]))),128))]))),128)):e.createCommentVNode("",!0)]),navigation:e.withCtx(()=>[e.renderSlot(y.$slots,"navigation")]),_:2},[e.unref(n).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"]))}}),Et=i=>(e.pushScopeId("data-v-c84b41ba"),i=i(),e.popScopeId(),i),Nt={key:0},Ft={class:"konnectio-selected-room-config"},Ct={class:"konnectio-selected-room-config-people"},It={key:0},Tt={class:"konnectio-selected-room-config-price"},$t=Et(()=>e.createBaseVNode("span",null,null,-1)),Dt=e.defineComponent({__name:"RoomConfigField",props:{modelValue:{},options:{},required:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},label:{}},emits:["update:modelValue"],setup(i,{emit:t}){const{t:n}=e.useI18n(),{currency:o}=e.storeToRefs(e.useUtilityStore()),u=t,l=i;function _(p){u("update:modelValue",p)}const s=e.computed({get:()=>l.modelValue,set:p=>_(p)});return(p,c)=>(e.openBlock(),e.createBlock(e._sfc_main,{modelValue:s.value,"onUpdate:modelValue":c[0]||(c[0]=h=>s.value=h),label:p.label,placeholder:"Select guest configuration",labelKey:"label",valueKey:"value","icon-placement":"label",options:p.options,readonly:p.readonly,required:p.required,searchable:!1},{option:e.withCtx(({data:h})=>[e.createBaseVNode("span",null,[e.createVNode(e.Icon,{icon:"male",type:"fas",color:"font"}),e.createBaseVNode("span",null,e.toDisplayString(`${h.adults}`),1),h.children>0?(e.openBlock(),e.createElementBlock("span",Nt,[e.createVNode(e.Icon,{icon:"child",type:"fas",color:"font"}),e.createBaseVNode("span",null,e.toDisplayString(`${h.children}`),1)])):e.createCommentVNode("",!0),e.createBaseVNode("span",null,e.toDisplayString(`(${e.unref(e.showPrice)(h.price,e.unref(o))})`),1)])]),"selected-option":e.withCtx(({data:h})=>[e.createBaseVNode("div",Ft,[e.createBaseVNode("div",Ct,[e.createBaseVNode("div",null,[e.createCommentVNode("",!0),e.createBaseVNode("span",null,e.toDisplayString(`${h.adults} ${h.adults===1?e.unref(n)("general.adult"):e.unref(n)("general.adults")}`),1)]),h.children>0?(e.openBlock(),e.createElementBlock("div",It,[e.createCommentVNode("",!0),e.createBaseVNode("span",null,e.toDisplayString(`& ${h.children} ${h.children===1?e.unref(n)("general.child"):e.unref(n)("general.children")}`),1)])):e.createCommentVNode("",!0)]),e.createBaseVNode("div",Tt,[$t,e.createTextVNode(" "+e.toDisplayString(`(${e.unref(e.showPrice)(h.price,e.unref(o))})`),1)])])]),_:1},8,["modelValue","label","options","readonly","required"]))}});const Se=e._export_sfc(Dt,[["__scopeId","data-v-c84b41ba"]]),wt=["src"],Pt=e.defineComponent({__name:"Gallery",props:{gallery:{}},setup(i){const t=e.ref();e.ref();const n=e.ref();return e.onMounted(()=>{n.value=[new z.Sync({type:"index",synchronizedFlickingOptions:[{flicking:t.value,isSlidable:!0}]})]}),(o,u)=>(e.openBlock(),e.createElementBlock("div",null,[o.gallery.length>1?(e.openBlock(),e.createBlock(e.unref(z.Flicking),{ref_key:"slideshow",ref:t,key:o.gallery.length,options:{align:"prev",circular:!0,bounce:30},plugins:n.value},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.gallery,({medium:l,large:_},s)=>(e.openBlock(),e.createElementBlock("div",{key:s,class:"booking-availability-listing-featured-img"},[e.createBaseVNode("img",{src:_},null,8,wt)]))),128))]),_:1},8,["plugins"])):e.createCommentVNode("",!0)]))}}),Lt={key:0,class:"fresh-booking-modal-facilities"},Rt={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"},Ht={class:"grid-sizer"},Ot=e.defineComponent({__name:"Info",props:{title:{},description:{},facilities:{},gallery:{}},setup(i){return(t,n)=>{const o=e.resolveDirective("masonry-tile"),u=e.resolveDirective("masonry");return e.openBlock(),e.createBlock(z._sfc_main,{title:t.title,description:t.description},e.createSlots({default:e.withCtx(()=>[t.facilities&&t.facilities.length!==0?(e.openBlock(),e.createElementBlock("div",Lt,[e.withDirectives((e.openBlock(),e.createElementBlock("ul",Rt,[e.withDirectives(e.createBaseVNode("div",Ht,null,512),[[o]]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.facilities,({name:l,subFacilities:_},s)=>e.withDirectives((e.openBlock(),e.createElementBlock("li",{key:s,class:"fresh-booking-modal-facility"},[e.createBaseVNode("h6",null,[e.createBaseVNode("span",null,e.toDisplayString(l),1)]),e.createBaseVNode("ul",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(_,({name:p},c)=>(e.openBlock(),e.createElementBlock("li",{key:c},e.toDisplayString(p),1))),128))])])),[[o]])),128))])),[[u]])])):e.createCommentVNode("",!0)]),_:2},[t.gallery?{name:"above-description",fn:e.withCtx(()=>[e.createBaseVNode("div",null,[e.createVNode(Pt,{gallery:t.gallery},null,8,["gallery"])])]),key:"0"}:void 0]),1032,["title","description"])}}});const zt=e._export_sfc(Ot,[["__scopeId","data-v-f1ca1684"]]),At={class:"konnectio-availability-listing-selection"},Mt={key:1},Wt={class:"fresh-booking-listing-config-body"},Ut={class:"fresh-booking-listing-units-body"};const qt=e.defineComponent({__name:"Hotel",props:{room:{},layout:{}},setup(i){const{t}=e.useI18n(),n=i,o=e.ref([]);function u(B){o.value[B].config.push({id:NaN,units:0,addons:[]})}const l=e.computed(()=>n.room.rates.map(B=>({label:B.name,value:B.id}))),_=e.computed(()=>o.value.flatMap(B=>B.id));e.computed(()=>l.value.filter(B=>!_.value.includes(B.value)));const{hideAvailableRoomAmount:s,currency:p}=e.storeToRefs(e.useUtilityStore()),{roomSelect:c}=e.storeToRefs(e.useHotelStore()),{viewItem:h,addToCart:m,removeFromCart:k}=e.useTrackingStore(),a=(B,E)=>n.room.rates.find(F=>F.id===B)?.occupantRates.find(F=>F.index===E),v=e.computed(()=>n.room.rates.reduce((B,E)=>B<E.rackRate?B:E.rackRate,1/0)),g=e.computed(()=>n.room.rates.every(B=>B.isBreakfastIncluded===!0)),f=(B,E)=>a(B,E)?a(B,E)?.rooms:null,r=B=>n.room.rates.length>0?n.room.rates.find(E=>E.id===B)?.occupantRates.map(E=>({value:E.index,price:E.totalPrice,adults:E.adultsCount,children:E.childrenCount,hasBreakfast:E.hasBreakfast}))||[]:[],d=e.computed(()=>n.room.rates.length>1),{open:y,close:b}=e.Uo({component:zt,attrs:{title:n.room.title,description:n.room.description,facilities:n.room.facilities,gallery:n.room.images,onConfirm(){b()}}});function S(){y(),h(n.room.title)}function N(){d.value?o.value.push({id:void 0,config:[{id:n.room.rates[0].occupantRateIndex||NaN,units:0,addons:[]}]}):o.value.push({id:n.room.rates[0].id,config:[{id:n.room.rates[0].occupantRateIndex||NaN,units:0,addons:[]}]})}e.onMounted(()=>{N()});const C=e.computed(()=>JSON.parse(JSON.stringify(o.value)));return e.watch(C,(B,E)=>{E.length>0&&B.forEach((F,w)=>{F.config.forEach((D,I)=>{const M=D.units,R=E[w].config[I].units;M!==R&&(M>R?(o.value[w].config[I].addons.push({}),m({id:n.room.id,name:n.room.title,value:100})):(o.value[w].config[I].addons.pop(),k({id:n.room.id,name:n.room.title,value:100})))})})},{deep:!0}),e.watch(o,()=>{c.value[n.room.id]=o.value},{deep:!0}),(B,E)=>(e.openBlock(),e.createBlock(z.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":v.value,"includes-breakfast":g.value,callback:S},{action:e.withCtx(()=>[e.createBaseVNode("div",At,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.value,(F,w)=>(e.openBlock(),e.createElementBlock("div",{key:F.id,class:"freshbooking-hotel-room"},[d.value?(e.openBlock(),e.createBlock(e._sfc_main,{key:0,modelValue:F.id,"onUpdate:modelValue":D=>F.id=D,label:e.unref(t)("hotel.roomVariant"),placeholder:e.unref(t)("hotel.chooseARoomVariant"),options:l.value,searchable:!1},null,8,["modelValue","onUpdate:modelValue","label","placeholder","options"])):e.createCommentVNode("",!0),F.id?(e.openBlock(),e.createElementBlock("div",Mt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(B.room.rates,({id:D})=>(e.openBlock(),e.createElementBlock("div",{key:D},[F.id===D?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(F.config,(I,M)=>(e.openBlock(),e.createElementBlock("div",{key:M,class:"booking-availability-listing-action-selective"},[e.createBaseVNode("ul",Wt,[r(D).length>1?(e.openBlock(),e.createBlock(Se,{key:0,modelValue:I.id,"onUpdate:modelValue":R=>I.id=R,icon:"male","icon-type":"fas",label:e.unref(t)("general.guests"),options:r(D)},null,8,["modelValue","onUpdate:modelValue","label","options"])):(e.openBlock(),e.createBlock(Se,{key:1,modelValue:I.id,"onUpdate:modelValue":R=>I.id=R,icon:"male","icon-type":"fas",label:e.unref(t)("general.guests"),options:r(D),readonly:""},null,8,["modelValue","onUpdate:modelValue","label","options"]))]),e.createBaseVNode("ul",Ut,[e.createVNode(He._sfc_main,{modelValue:I.units,"onUpdate:modelValue":R=>I.units=R,description:e.unref(s)?void 0:`${e.unref(t)("booking.availability.availableUnits")}: ${f(F.id,I.id)}`,icon:"house","icon-type":"fas","icon-placement":"label",label:e.unref(t)("booking.availability.units"),minValue:0,"max-value":f(D,I.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 Gt=e._export_sfc(qt,[["__scopeId","data-v-65a22e18"]]),Be=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:t}){const n=t,o=i;function u(_){n("update:modelValue",_)}const l=e.ref(o.modelValue);return e.watch(l,_=>{u(_)}),(_,s)=>(e.openBlock(),e.createBlock(Bt._sfc_main,{modelValue:l.value,"onUpdate:modelValue":s[0]||(s[0]=p=>l.value=p),type:"time",label:_.label,id:_.id,name:_.name,icon:_.icon,"icon-type":_.iconType,"icon-color":_.iconColor,"auto-apply":!0,required:_.required,readonly:_.readonly},null,8,["modelValue","label","id","name","icon","icon-type","icon-color","required","readonly"]))}});const jt={style:{display:"flex","align-items":"baseline"}},Yt=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:t}){const{t:n}=e.useI18n(),o=t,u=i;function l(s){o("update:modelValue",s)}const _=e.computed({get:()=>u.modelValue,set:s=>l(s)});return(s,p)=>(e.openBlock(),e.createBlock(e._sfc_main,{modelValue:_.value,"onUpdate:modelValue":p[0]||(p[0]=c=>_.value=c),label:s.label,placeholder:e.unref(n)("booking.reservation.countryPlaceholder"),labelKey:"name",valueKey:"id",options:s.options,required:s.required},{option:e.withCtx(({data:c})=>[e.createBaseVNode("i",{class:e.normalizeClass(["konnectio-flag-icon",c.iso])},null,2),e.createBaseVNode("span",null,e.toDisplayString(c.name),1)]),"selected-option":e.withCtx(({data:c})=>[e.createBaseVNode("div",jt,[e.createBaseVNode("i",{class:e.normalizeClass(["konnectio-flag-icon",c.iso])},null,2),e.createBaseVNode("span",null,e.toDisplayString(c.name),1)])]),_:1},8,["modelValue","label","placeholder","options","required"]))}});const Qt=e._export_sfc(Yt,[["__scopeId","data-v-1462612d"]]),Kt={class:"konnectio-radio-checkboxes"},Jt=e.defineComponent({__name:"CheckboxField",props:{modelValue:{},label:{},name:{},checkboxes:{}},emits:["update:modelValue"],setup(i,{emit:t}){const n=t,o=i;function u(_){n("update:modelValue",_)}const l=e.computed({get:()=>o.modelValue,set:_=>u(_)});return(_,s)=>(e.openBlock(),e.createBlock(e.InputField,{label:_.label,type:"multi-radio"},{default:e.withCtx(()=>[e.createBaseVNode("ul",Kt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(_.checkboxes,({label:p,value:c},h)=>(e.openBlock(),e.createElementBlock("li",{key:h},[e.createVNode(U.Checkbox,{modelValue:l.value,"onUpdate:modelValue":s[0]||(s[0]=m=>l.value=m),label:p,name:_.name,type:"radio",val:c},null,8,["modelValue","label","name","val"])]))),128))])]),_:1},8,["label"]))}});const Xt=e._export_sfc(Jt,[["__scopeId","data-v-fc900ad2"]]),Zt=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:t}){const n=i,o=t,u=n.id||e.ranId(),l=e.ref(""),_=e.ref(2);function s(){o("update:modelValue",l.value)}e.watch(_,c=>{o("update:title",c)});const{t:p}=e.useI18n();return e.onMounted(()=>{n.modelValue&&(l.value=n.modelValue),n.title&&(_.value=n.title)}),(c,h)=>(e.openBlock(),e.createBlock(e.InputField,{label:c.label,id:e.unref(u),required:c.required,type:"fresh-booking-name-field",readonly:c.readonly,limit:c.limit},{default:e.withCtx(()=>[e.createBaseVNode("div",{class:e.normalizeClass(["fresh-booking-name-input",{"no-title":c.excludeTitle}])},[c.excludeTitle?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e._sfc_main,{key:0,modelValue:_.value,"onUpdate:modelValue":h[0]||(h[0]=m=>_.value=m),id:e.unref(e.ranId)(),icon:c.icon,"icon-color":c.iconColor,"icon-type":c.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:c.readonly,"hide-button":"","input-style":c.inputStyle,searchable:!1},null,8,["modelValue","id","icon","icon-color","icon-type","options","readonly","input-style"])),e.createVNode(e.TextField,{modelValue:l.value,"onUpdate:modelValue":h[1]||(h[1]=m=>l.value=m),type:"text",name:"name",autocomplete:"name",id:e.unref(u),icon:c.excludeTitle?c.icon:void 0,"icon-color":c.iconColor,"icon-type":c.iconType,placeholder:c.placeholder,required:c.required,readonly:c.readonly,limit:c.limit,onInput:h[2]||(h[2]=m=>s()),"input-style":c.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 en=e._export_sfc(Zt,[["__scopeId","data-v-78b0b319"]]),tn={class:"hotel-listing"},nn={class:"hotel-listing-content-gallery"},on={class:"hotel-listing-content-thumbs"},rn={class:"hotel-listing-content"},ln={class:"hotel-listing-content-header"},an={class:"hotel-listing-content-title"},sn={class:"hotel-listing-content-body"},un={class:"hotel-listing-content-facilities"},dn=e.defineComponent({__name:"Listing",setup(i){return(t,n)=>(e.openBlock(),e.createElementBlock("div",tn,[e.createBaseVNode("div",nn,[e.createVNode(O.Element,{width:"280px",height:"153px"}),e.createBaseVNode("div",on,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(3,o=>e.createVNode(O.Element,{key:o,width:"84px",height:"44px"})),64))])]),e.createBaseVNode("div",rn,[e.createBaseVNode("div",ln,[e.createBaseVNode("div",an,[e.createVNode(O.Element,{height:"30px",width:"60%"}),e.createVNode(O.Element,{height:"30px",width:"30px","border-radius":"100%"})]),e.createVNode(O.Element,{height:"15px",width:"25%"})]),e.createBaseVNode("div",sn,[e.createVNode(O.Element,{height:"15px"}),e.createVNode(O.Element,{height:"15px"}),e.createVNode(O.Element,{height:"15px"}),e.createVNode(O.Element,{height:"15px"}),e.createVNode(O.Element,{height:"15px",width:"90%"})]),e.createBaseVNode("div",un,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(5,o=>e.createVNode(O.Element,{key:o,height:"25px",width:"25px","border-radius":"6px"})),64))])])]))}});const q=e._export_sfc(dn,[["__scopeId","data-v-5c132d7f"]]),cn={class:"hotel-skeleton"},_n={class:"hotel-skeleton-content"},pn={class:"hotel-skeleton-sidebar"},fn=e.defineComponent({__name:"HotelSkeleton",setup(i){return(t,n)=>(e.openBlock(),e.createElementBlock("div",cn,[e.createBaseVNode("div",_n,[e.createVNode(Re.AvailabilitySkeleton),e.createVNode(q),e.createVNode(q),e.createVNode(q)]),e.createBaseVNode("div",pn,[e.createVNode(z.Sidebar)])]))}});const hn=e._export_sfc(fn,[["__scopeId","data-v-4e50a5a1"]]),me=i=>(e.pushScopeId("data-v-0e9317fc"),i=i(),e.popScopeId(),i),mn={id:"booking-availability-container"},yn={id:"booking-availability-controls"};const vn={key:1,"sticky-container":""},gn={key:0};const kn={key:1},bn={key:0},xn={key:0},Sn={id:"booking-availability-listings"},Bn={key:1,id:"booking-availability-no-listings"},Vn={key:1,id:"booking-availability-no-listings"},En={key:2,id:"reservation-availability-next-dates"},Nn={class:"reservation-special-offers-grid"},Fn=["title"];const Cn={key:2,class:"konnectio-listing-loading"},In={class:"fresh-booking-panel"},Tn={key:0,id:"konnectio-hotel-addons"},$n=me(()=>e.createBaseVNode("th",{class:"fresh-booking-event-addons-input"},null,-1)),Dn={class:"fresh-booking-event-addons-price"},wn={key:1},Pn=me(()=>e.createBaseVNode("br",null,null,-1)),Ln=me(()=>e.createBaseVNode("td",null,null,-1));const Rn=["onClick"],Hn={class:"fresh-booking-panel"},On={key:0},zn={key:1},An={class:"fresh-booking-split-inputs"},Mn=["onClick"],Wn=e.defineComponent({name:"HotelLayout",__name:"Hotel",props:{accessToken:{},headerLayout:{default:e.BookingHeaderLayout.Minimal},styling:{}},setup(i){const{t}=e.useI18n(),{templateID:n,title:o,countries:u,areListingsLoading:l,isAvailabilityDataAvailable:_,isPaymentLoading:s,isReservationFormFilled:p,selectedPackage:c,travelingFor:h,arrivalTime:m,departureTime:k,name:a,nameTitle:v,email:g,phone:f,firmName:r,postal:d,city:y,address:b,country:S,remark:N,allergies:C,newsMails:B,roomSelect:E,roomDisplay:F,hasValidRoomSelection:w,getSelectedPackageRoom:D,availabilityData:I,selectionHasNoAddons:M}=e.storeToRefs(e.useHotelStore()),{arrivalDate:R,departureDate:je}=e.storeToRefs(e.useAvailabilityStore()),{currency:ke,isRecaptchaEnabled:Go,disableNewsletterSignup:Ye,arrivalEarliest:Qe,arrivalLatest:Ke,departureEarliest:Je,departureLatest:Xe,enableTracking:Ze,arrivalDefault:et,departureDefault:tt,enablePackages:jo,hideArrivalDepartureInputs:nt,disableArrivalUserSelection:te,disableNamePrefix:ot,disableDepartureUserSelection:ne,disableTravelingFor:it,disableCompanyField:rt,hasPaymentGateway:lt}=e.storeToRefs(e.useUtilityStore());e.useAlertStore();const{beginCheckout:at}=e.useTrackingStore(),{initialize:st,createReservation:ut,getSingleListing:Yo}=e.useHotelStore(),dt=e.ref(!0),ct=e.computed(()=>{const $=I.value.roomGroups.slice();$.forEach(H=>{H.pricesFrom=H.rates.reduce((T,x)=>T<x.rackRate?T:x.rackRate,1/0)});function V(H,T){return dt.value===!0?H.pricesFrom>T.pricesFrom?-1:1:H.pricesFrom>T.pricesFrom?1:-1}return $.sort(V)}),_t=e.computed(()=>[[parseInt(Qe.value.split(":")[0]),parseInt(Ke.value.split(":")[0])]]),pt=e.computed(()=>[[parseInt(Je.value.split(":")[0]),parseInt(Xe.value.split(":")[0])]]);function Qo($){n.value=$}function ft(){n.value=NaN}function be($){M.value?$(2):$()}function ht($,V){je.value=new Date(V),R.value=new Date($),location.reload()}async function mt($){await ut($)}function yt($){Ze&&at(),M.value?$(2):$()}function vt(){m.value===""&&(m.value=et.value),k.value===""&&(k.value=tt.value)}return e.onMounted(()=>{st(),vt()}),($,V)=>(e.openBlock(),e.createBlock(e.Suspense,null,{default:e.withCtx(()=>[e.createVNode(e._sfc_main$1,{id:"fresh-booking-hotel-module","access-token":$.accessToken,type:"hotel",styling:$.styling},{default:e.withCtx(()=>[e.createVNode(z.MultiStepForm,{title:e.unref(o),layout:$.headerLayout},{availability:e.withCtx(({next:H})=>[e.createVNode(oe,null,{form:e.withCtx(()=>[e.createBaseVNode("div",mn,[e.createBaseVNode("div",yn,[e.createVNode(Re.HotelAvailabilityForm,{booking:!0})]),e.createCommentVNode("",!0),e.unref(l)?(e.openBlock(),e.createElementBlock("div",Cn,[e.createVNode(q),e.createVNode(q),e.createVNode(q)])):(e.openBlock(),e.createElementBlock("div",vn,[e.unref(I).roomGroups.length>0?(e.openBlock(),e.createElementBlock("div",gn,[(e.unref(I).templates.length>0,e.createCommentVNode("",!0)),isNaN(e.unref(n))?(e.openBlock(),e.createElementBlock("div",kn,[e.unref(I).roomGroups.length>0?(e.openBlock(),e.createElementBlock("div",bn,[e.unref(I).templates.length>0?(e.openBlock(),e.createElementBlock("h2",xn,[e.createVNode(e.Icon,{icon:"house",type:"fal",color:"header"}),e.createBaseVNode("span",null,e.toDisplayString(e.unref(t)("booking.availability.roomsTitle")),1)])):e.createCommentVNode("",!0),e.createBaseVNode("ul",Sn,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(ct.value,(T,x)=>(e.openBlock(),e.createBlock(Gt,{room:T,key:x},null,8,["room"]))),128))])])):(e.openBlock(),e.createElementBlock("div",Bn,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(t)("booking.availability.nothingAvailable")),1)]))])):e.createCommentVNode("",!0)])):e.unref(I).nextAvailableDates.length===0?(e.openBlock(),e.createElementBlock("div",Vn,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(t)("booking.availability.nothingAvailable")),1)])):(e.openBlock(),e.createElementBlock("div",En,[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",Nn,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(I).nextAvailableDates,(T,x)=>(e.openBlock(),e.createElementBlock("li",{key:x},[e.createBaseVNode("h3",{title:`${e.unref(e.showDate)(T.fromDate)} - ${e.unref(e.showDate)(T.toDate)}`},[e.createBaseVNode("span",null,e.toDisplayString(`${e.unref(e.showDate)(T.fromDate)} - ${e.unref(e.showDate)(T.toDate)}`),1)],8,Fn),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)(T.priceStartFrom,e.unref(ke))),1)])]),e.createVNode(e.Clickable,{label:e.unref(t)("booking.availability.selectDates"),"full-width":"",onClickEvent:G=>ht(T.fromDate,T.toDate)},null,8,["label","onClickEvent"])]))),128))])]))]))])]),navigation:e.withCtx(()=>[isNaN(e.unref(n))?(e.openBlock(),e.createBlock(e.Clickable,{key:0,label:e.unref(M)?e.unref(t)("booking.availability.nextButton"):e.unref(t)("general.chooseAddons"),disabled:!e.unref(w),"is-loading":!1,"full-width":"",onClickEvent:T=>yt(H)},null,8,["label","disabled","onClickEvent"])):(e.openBlock(),e.createBlock(e.Clickable,{key:1,label:e.unref(t)("booking.reservation.prevButton"),"full-width":"",onClickEvent:V[1]||(V[1]=T=>ft())},null,8,["label"]))]),_:2},1024)]),addons:e.withCtx(({next:H,prev:T})=>[e.createVNode(oe,null,{form:e.withCtx(()=>[e.createBaseVNode("form",In,[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(),e.createElementBlock("div",Tn,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(F),x=>(e.openBlock(),e.createElementBlock("ul",{key:x.roomGroupID},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(x.variants,(G,j)=>(e.openBlock(),e.createElementBlock("li",{key:G.ratePlanID},[e.createBaseVNode("h4",null,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(e.capitalized)(x.title)),1)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(G.rooms,(P,xe)=>(e.openBlock(),e.createElementBlock("table",{key:xe,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)(G.name)),1)]),$n,e.createBaseVNode("th",Dn,[e.createBaseVNode("b",null,[e.createVNode(e.Icon,{icon:"male",type:"fas",color:"font"}),e.createBaseVNode("span",null,e.toDisplayString(P.adultsCount),1),P.childrenCount>0?(e.openBlock(),e.createBlock(e.Icon,{key:0,icon:"child",type:"fas",color:"font"})):e.createCommentVNode("",!0),P.childrenCount>0?(e.openBlock(),e.createElementBlock("span",wn,e.toDisplayString(P.childrenCount),1)):e.createCommentVNode("",!0)])])])]),e.createBaseVNode("tbody",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(x.addons,({cardinality:gt,quantityStrategy:kt,maximumNumber:bt,id:Y,name:xt,price:St})=>(e.openBlock(),e.createElementBlock("tr",{key:Y},[e.createBaseVNode("td",null,[e.createBaseVNode("b",null,e.toDisplayString(e.unref(e.capitalized)(xt)),1),Pn,e.createBaseVNode("span",null,e.toDisplayString(e.unref(e.showPrice)(St,e.unref(ke)))+" "+e.toDisplayString(e.unref(e.getPriceQuantityLabel)(kt)),1)]),e.createBaseVNode("td",null,[gt===3?(e.openBlock(),e.createBlock(He._sfc_main,{key:0,modelValue:e.unref(E)[x.roomGroupID][j].config[P.configIdx].addons[P.roomIdx][Y],"onUpdate:modelValue":L=>e.unref(E)[x.roomGroupID][j].config[P.configIdx].addons[P.roomIdx][Y]=L,small:!0,"min-value":0,"max-value":bt||1/0},null,8,["modelValue","onUpdate:modelValue","max-value"])):(e.openBlock(),e.createBlock(U.Checkbox,{key:1,modelValue:e.unref(E)[x.roomGroupID][j].config[P.configIdx].addons[P.roomIdx][Y],"onUpdate:modelValue":L=>e.unref(E)[x.roomGroupID][j].config[P.configIdx].addons[P.roomIdx][Y]=L},null,8,["modelValue","onUpdate:modelValue"]))]),Ln,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:H},null,8,["label","onClickEvent"]),e.createBaseVNode("button",{class:"konnectio-abort-reservation link",onClick:e.withModifiers(x=>be(T),["prevent"])},[e.createBaseVNode("span",null,e.toDisplayString(e.unref(t)("general.goAStepBack")),1)],8,Rn)]),_:2},1024)]),reservation:e.withCtx(({next:H,prev:T})=>[e.createVNode(oe,{"show-terms-notice":!0,"show-gift-card":!0},{form:e.withCtx(()=>[e.createBaseVNode("form",Hn,[e.createBaseVNode("h2",null,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(t)("booking.reservation.detailsTitle")),1)]),!e.unref(nt)&&!(e.unref(te)&&e.unref(ne))?(e.openBlock(),e.createElementBlock("ul",{key:0,class:e.normalizeClass({"fresh-booking-split-inputs":!e.unref(te)&&!e.unref(ne)})},[e.unref(te)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("li",On,[e.createVNode(Be,{modelValue:e.unref(m),"onUpdate:modelValue":V[2]||(V[2]=x=>e.isRef(m)?m.value=x:null),label:e.unref(t)("booking.reservation.arrivalTime"),icon:"hourglass-start","hour-range":_t.value,required:""},null,8,["modelValue","label","hour-range"])])),e.unref(ne)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("li",zn,[e.createVNode(Be,{modelValue:e.unref(k),"onUpdate:modelValue":V[3]||(V[3]=x=>e.isRef(k)?k.value=x:null),label:e.unref(t)("booking.reservation.departureTime"),icon:"hourglass-end","hour-range":pt.value,required:""},null,8,["modelValue","label","hour-range"])]))],2)):e.createCommentVNode("",!0),e.createVNode(en,{modelValue:e.unref(a),"onUpdate:modelValue":V[4]||(V[4]=x=>e.isRef(a)?a.value=x:null),title:e.unref(v),"onUpdate:title":V[5]||(V[5]=x=>e.isRef(v)?v.value=x: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(g),"onUpdate:modelValue":V[6]||(V[6]=x=>e.isRef(g)?g.value=x: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(U.Checkbox,{key:1,modelValue:e.unref(B),"onUpdate:modelValue":V[7]||(V[7]=x=>e.isRef(B)?B.value=x:null),type:"checkbox",name:"newsletter",label:e.unref(t)("booking.reservation.newsletterSignUp")},null,8,["modelValue","label"])),e.unref(rt)?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e.TextField,{key:2,modelValue:e.unref(r),"onUpdate:modelValue":V[8]||(V[8]=x=>e.isRef(r)?r.value=x: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(U.PhoneField,{modelValue:e.unref(f),"onUpdate:modelValue":V[9]||(V[9]=x=>e.isRef(f)?f.value=x: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(Qt,{modelValue:e.unref(S),"onUpdate:modelValue":V[10]||(V[10]=x=>e.isRef(S)?S.value=x:null),label:e.unref(t)("booking.reservation.country"),placeholder:e.unref(t)("booking.reservation.countryPlaceholder"),options:e.unref(u),required:""},null,8,["modelValue","label","placeholder","options"]),e.createVNode(e.TextField,{modelValue:e.unref(b),"onUpdate:modelValue":V[11]||(V[11]=x=>e.isRef(b)?b.value=x: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",An,[e.createBaseVNode("li",null,[e.createVNode(e.TextField,{modelValue:e.unref(d),"onUpdate:modelValue":V[12]||(V[12]=x=>e.isRef(d)?d.value=x: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(y),"onUpdate:modelValue":V[13]||(V[13]=x=>e.isRef(y)?y.value=x: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(N),"onUpdate:modelValue":V[14]||(V[14]=x=>e.isRef(N)?N.value=x: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(C),"onUpdate:modelValue":V[15]||(V[15]=x=>e.isRef(C)?C.value=x: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(it)?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Xt,{key:3,modelValue:e.unref(h),"onUpdate:modelValue":V[16]||(V[16]=x=>e.isRef(h)?h.value=x:null),label:`${e.unref(t)("booking.reservation.purposeOfStay")} (${e.unref(t)("booking.reservation.optional")})`,name:"travelingFor",checkboxes:[{label:e.unref(t)("booking.reservation.business"),value:"Business"},{label:e.unref(t)("booking.reservation.pleasure"),value:"Pleasure"},{label:e.unref(t)("booking.reservation.bleasure"),value:"Bleasure"}]},null,8,["modelValue","label","checkboxes"]))])]),navigation:e.withCtx(()=>[e.createBaseVNode("div",null,[e.createVNode(e.Clickable,{label:e.unref(lt)?e.unref(t)("booking.reservation.nextButton"):e.unref(t)("general.confirmReservation"),disabled:!e.unref(p),"is-loading":e.unref(s),"full-width":"",onClickEvent:x=>mt(H)},null,8,["label","disabled","is-loading","onClickEvent"]),e.createBaseVNode("button",{class:"konnectio-abort-reservation link",onClick:e.withModifiers(x=>be(T),["prevent"])},[e.createBaseVNode("span",null,e.toDisplayString(e.unref(t)("general.goAStepBack")),1)],8,Mn)])]),_:2},1024)]),payment:e.withCtx(()=>[e.createVNode(U.CheckoutWindow)]),confirmation:e.withCtx(()=>[e.createVNode(z.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(hn)]),_:1}))}});const Un=e._export_sfc(Wn,[["__scopeId","data-v-0e9317fc"]]);var Oe={exports:{}},ie={exports:{}},re={exports:{}},Ve;function ye(){return Ve||(Ve=1,function(i){(function(t,n){i.exports?i.exports=n():t.EvEmitter=n()})(typeof window<"u"?window:ee.commonjsGlobal,function(){function t(){}var n=t.prototype;return n.on=function(o,u){if(!(!o||!u)){var l=this._events=this._events||{},_=l[o]=l[o]||[];return _.indexOf(u)==-1&&_.push(u),this}},n.once=function(o,u){if(!(!o||!u)){this.on(o,u);var l=this._onceEvents=this._onceEvents||{},_=l[o]=l[o]||{};return _[u]=!0,this}},n.off=function(o,u){var l=this._events&&this._events[o];if(!(!l||!l.length)){var _=l.indexOf(u);return _!=-1&&l.splice(_,1),this}},n.emitEvent=function(o,u){var l=this._events&&this._events[o];if(!(!l||!l.length)){l=l.slice(0),u=u||[];for(var _=this._onceEvents&&this._onceEvents[o],s=0;s<l.length;s++){var p=l[s],c=_&&_[p];c&&(this.off(o,p),delete _[p]),p.apply(this,u)}return this}},n.allOff=function(){delete this._events,delete this._onceEvents},t})}(re)),re.exports}var le={exports:{}};/*!
1
+ "use strict";const e=require("./SelectField.vue_vue_type_style_index_0_lang-dec7ee54.cjs"),z=require("./ThankYou-07315679.cjs"),Re=require("./AvailabilitySkeleton-e50c7f3b.cjs"),He=require("./NumberField.vue_vue_type_script_setup_true_lang-9678cc59.cjs"),Bt=require("./DateField.vue_vue_type_style_index_0_lang-6e16a80f.cjs"),U=require("./index-551fafbf.cjs"),O=require("./_-d75fab60.cjs"),ee=require("./_commonjsHelpers-6763f629.cjs");require("./ActionField-4146b273.cjs");require("./Field-30b9bc8d.cjs");const Vt={key:0},oe=e.defineComponent({__name:"HotelReservationForm",props:{showGiftCard:{type:Boolean,default:!1},showTermsNotice:{type:Boolean,default:!1}},setup(i){const{t}=e.useI18n(),n=e.useSlots(),{hideArrivalDepartureInputs:o,disableArrivalUserSelection:u,disableDepartureUserSelection:l,arrivalDefault:_,departureDefault:s,currency:p}=e.storeToRefs(e.useUtilityStore()),{arrivalDate:c,departureDate:h}=e.storeToRefs(e.useAvailabilityStore()),{arrivalTime:m,departureTime:k,roomDisplay:a,templateID:v,totalPrice:g,areListingsLoading:f}=e.storeToRefs(e.useHotelStore()),{removeRoom:r}=e.useHotelStore();function d(y){return y.reduce((S,{totalPrice:N})=>S+N,0)}return(y,b)=>(e.openBlock(),e.createBlock(z.ReservationForm,{"total-price":e.unref(g),"show-gift-card":y.showGiftCard,"show-terms-notice":y.showTermsNotice,"is-sidebar-loading":e.unref(f),notice:e.unref(t)("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(t)("booking.reservation.arrival")),1),e.createBaseVNode("b",null,e.toDisplayString(e.unref(o)?e.unref(e.showDate)(e.unref(c)):`${e.unref(e.showDate)(e.unref(c))}, ${e.unref(u)?e.unref(_):e.unref(m)}`),1)]),e.createBaseVNode("li",null,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(t)("booking.reservation.departure")),1),e.createBaseVNode("b",null,e.toDisplayString(e.unref(o)?e.unref(e.showDate)(e.unref(h)):`${e.unref(e.showDate)(e.unref(h))}, ${e.unref(l)?e.unref(s):e.unref(k)}`),1)]),e.createBaseVNode("li",null,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(t)("booking.reservation.nights")),1),e.createBaseVNode("b",null,e.toDisplayString(e.unref(e.daysBetweenDates)(e.unref(c),e.unref(h)))+" "+e.toDisplayString(e.unref(e.lowercase)(e.unref(e.daysBetweenDates)(e.unref(c),e.unref(h))===1?e.unref(t)("booking.reservation.night"):e.unref(t)("booking.reservation.nights"))),1)])]),"price-summary":e.withCtx(()=>[isNaN(e.unref(v))&&e.unref(a).length>0?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(e.unref(a),({roomGroupID:S,title:N,variants:C})=>(e.openBlock(),e.createElementBlock("div",{key:S},[e.createBaseVNode("h6",null,[e.createBaseVNode("span",null,e.toDisplayString(N),1)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(C,(B,E)=>(e.openBlock(),e.createElementBlock("div",{key:E},[e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(B.rooms,(F,w)=>(e.openBlock(),e.createElementBlock("ul",{key:w},[e.createBaseVNode("li",null,[e.createBaseVNode("span",null,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(e.capitalized)(B.name)),1),e.createBaseVNode("span",null,[e.createTextVNode("( "),e.createVNode(e.Icon,{icon:"male",type:"fas",color:"font"}),e.createBaseVNode("span",null,e.toDisplayString(F.adultsCount),1),F.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(F.childrenCount),1)],64)):e.createCommentVNode("",!0),e.createTextVNode(") ")])]),e.createBaseVNode("b",null,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(e.showPrice)(F.totalPrice,e.unref(p))),1),e.createCommentVNode("",!0)])]),d(F.roomAddons)>0?(e.openBlock(),e.createElementBlock("li",Vt,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(t)("booking.reservation.addons")),1),e.createBaseVNode("b",null,e.toDisplayString(e.unref(e.showPrice)(d(F.roomAddons),e.unref(p))),1)])):e.createCommentVNode("",!0)]))),128))]))),128))]))),128)):e.createCommentVNode("",!0)]),navigation:e.withCtx(()=>[e.renderSlot(y.$slots,"navigation")]),_:2},[e.unref(n).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"]))}}),Et=i=>(e.pushScopeId("data-v-c84b41ba"),i=i(),e.popScopeId(),i),Nt={key:0},Ft={class:"konnectio-selected-room-config"},Ct={class:"konnectio-selected-room-config-people"},It={key:0},Tt={class:"konnectio-selected-room-config-price"},$t=Et(()=>e.createBaseVNode("span",null,null,-1)),Dt=e.defineComponent({__name:"RoomConfigField",props:{modelValue:{},options:{},required:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},label:{}},emits:["update:modelValue"],setup(i,{emit:t}){const{t:n}=e.useI18n(),{currency:o}=e.storeToRefs(e.useUtilityStore()),u=t,l=i;function _(p){u("update:modelValue",p)}const s=e.computed({get:()=>l.modelValue,set:p=>_(p)});return(p,c)=>(e.openBlock(),e.createBlock(e._sfc_main,{modelValue:s.value,"onUpdate:modelValue":c[0]||(c[0]=h=>s.value=h),label:p.label,placeholder:"Select guest configuration",labelKey:"label",valueKey:"value","icon-placement":"label",options:p.options,readonly:p.readonly,required:p.required,searchable:!1},{option:e.withCtx(({data:h})=>[e.createBaseVNode("span",null,[e.createVNode(e.Icon,{icon:"male",type:"fas",color:"font"}),e.createBaseVNode("span",null,e.toDisplayString(`${h.adults}`),1),h.children>0?(e.openBlock(),e.createElementBlock("span",Nt,[e.createVNode(e.Icon,{icon:"child",type:"fas",color:"font"}),e.createBaseVNode("span",null,e.toDisplayString(`${h.children}`),1)])):e.createCommentVNode("",!0),e.createBaseVNode("span",null,e.toDisplayString(`(${e.unref(e.showPrice)(h.price,e.unref(o))})`),1)])]),"selected-option":e.withCtx(({data:h})=>[e.createBaseVNode("div",Ft,[e.createBaseVNode("div",Ct,[e.createBaseVNode("div",null,[e.createCommentVNode("",!0),e.createBaseVNode("span",null,e.toDisplayString(`${h.adults} ${h.adults===1?e.unref(n)("general.adult"):e.unref(n)("general.adults")}`),1)]),h.children>0?(e.openBlock(),e.createElementBlock("div",It,[e.createCommentVNode("",!0),e.createBaseVNode("span",null,e.toDisplayString(`& ${h.children} ${h.children===1?e.unref(n)("general.child"):e.unref(n)("general.children")}`),1)])):e.createCommentVNode("",!0)]),e.createBaseVNode("div",Tt,[$t,e.createTextVNode(" "+e.toDisplayString(`(${e.unref(e.showPrice)(h.price,e.unref(o))})`),1)])])]),_:1},8,["modelValue","label","options","readonly","required"]))}});const Se=e._export_sfc(Dt,[["__scopeId","data-v-c84b41ba"]]),wt=["src"],Pt=e.defineComponent({__name:"Gallery",props:{gallery:{}},setup(i){const t=e.ref();e.ref();const n=e.ref();return e.onMounted(()=>{n.value=[new z.Sync({type:"index",synchronizedFlickingOptions:[{flicking:t.value,isSlidable:!0}]})]}),(o,u)=>(e.openBlock(),e.createElementBlock("div",null,[o.gallery.length>1?(e.openBlock(),e.createBlock(e.unref(z.Flicking),{ref_key:"slideshow",ref:t,key:o.gallery.length,options:{align:"prev",circular:!0,bounce:30},plugins:n.value},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.gallery,({medium:l,large:_},s)=>(e.openBlock(),e.createElementBlock("div",{key:s,class:"booking-availability-listing-featured-img"},[e.createBaseVNode("img",{src:_},null,8,wt)]))),128))]),_:1},8,["plugins"])):e.createCommentVNode("",!0)]))}}),Lt={key:0,class:"fresh-booking-modal-facilities"},Rt={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"},Ht={class:"grid-sizer"},Ot=e.defineComponent({__name:"Info",props:{title:{},description:{},facilities:{},gallery:{}},setup(i){return(t,n)=>{const o=e.resolveDirective("masonry-tile"),u=e.resolveDirective("masonry");return e.openBlock(),e.createBlock(z._sfc_main,{title:t.title,description:t.description},e.createSlots({default:e.withCtx(()=>[t.facilities&&t.facilities.length!==0?(e.openBlock(),e.createElementBlock("div",Lt,[e.withDirectives((e.openBlock(),e.createElementBlock("ul",Rt,[e.withDirectives(e.createBaseVNode("div",Ht,null,512),[[o]]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.facilities,({name:l,subFacilities:_},s)=>e.withDirectives((e.openBlock(),e.createElementBlock("li",{key:s,class:"fresh-booking-modal-facility"},[e.createBaseVNode("h6",null,[e.createBaseVNode("span",null,e.toDisplayString(l),1)]),e.createBaseVNode("ul",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(_,({name:p},c)=>(e.openBlock(),e.createElementBlock("li",{key:c},e.toDisplayString(p),1))),128))])])),[[o]])),128))])),[[u]])])):e.createCommentVNode("",!0)]),_:2},[t.gallery?{name:"above-description",fn:e.withCtx(()=>[e.createBaseVNode("div",null,[e.createVNode(Pt,{gallery:t.gallery},null,8,["gallery"])])]),key:"0"}:void 0]),1032,["title","description"])}}});const zt=e._export_sfc(Ot,[["__scopeId","data-v-f1ca1684"]]),At={class:"konnectio-availability-listing-selection"},Mt={key:1},Wt={class:"fresh-booking-listing-config-body"},Ut={class:"fresh-booking-listing-units-body"};const qt=e.defineComponent({__name:"Hotel",props:{room:{},layout:{}},setup(i){const{t}=e.useI18n(),n=i,o=e.ref([]);function u(B){o.value[B].config.push({id:NaN,units:0,addons:[]})}const l=e.computed(()=>n.room.rates.map(B=>({label:B.name,value:B.id}))),_=e.computed(()=>o.value.flatMap(B=>B.id));e.computed(()=>l.value.filter(B=>!_.value.includes(B.value)));const{hideAvailableRoomAmount:s,currency:p}=e.storeToRefs(e.useUtilityStore()),{roomSelect:c}=e.storeToRefs(e.useHotelStore()),{viewItem:h,addToCart:m,removeFromCart:k}=e.useTrackingStore(),a=(B,E)=>n.room.rates.find(F=>F.id===B)?.occupantRates.find(F=>F.index===E),v=e.computed(()=>n.room.rates.reduce((B,E)=>B<E.rackRate?B:E.rackRate,1/0)),g=e.computed(()=>n.room.rates.every(B=>B.isBreakfastIncluded===!0)),f=(B,E)=>a(B,E)?a(B,E)?.rooms:null,r=B=>n.room.rates.length>0?n.room.rates.find(E=>E.id===B)?.occupantRates.map(E=>({value:E.index,price:E.totalPrice,adults:E.adultsCount,children:E.childrenCount,hasBreakfast:E.hasBreakfast}))||[]:[],d=e.computed(()=>n.room.rates.length>1),{open:y,close:b}=e.Uo({component:zt,attrs:{title:n.room.title,description:n.room.description,facilities:n.room.facilities,gallery:n.room.images,onConfirm(){b()}}});function S(){y(),h(n.room.title)}function N(){d.value?o.value.push({id:void 0,config:[{id:n.room.rates[0].occupantRateIndex||NaN,units:0,addons:[]}]}):o.value.push({id:n.room.rates[0].id,config:[{id:n.room.rates[0].occupantRateIndex||NaN,units:0,addons:[]}]})}e.onMounted(()=>{N()});const C=e.computed(()=>JSON.parse(JSON.stringify(o.value)));return e.watch(C,(B,E)=>{E.length>0&&B.forEach((F,w)=>{F.config.forEach((D,I)=>{const M=D.units,R=E[w].config[I].units;M!==R&&(M>R?(o.value[w].config[I].addons.push({}),m({id:n.room.id,name:n.room.title,value:100})):(o.value[w].config[I].addons.pop(),k({id:n.room.id,name:n.room.title,value:100})))})})},{deep:!0}),e.watch(o,()=>{c.value[n.room.id]=o.value},{deep:!0}),(B,E)=>(e.openBlock(),e.createBlock(z.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":v.value,"includes-breakfast":g.value,callback:S},{action:e.withCtx(()=>[e.createBaseVNode("div",At,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.value,(F,w)=>(e.openBlock(),e.createElementBlock("div",{key:F.id,class:"freshbooking-hotel-room"},[d.value?(e.openBlock(),e.createBlock(e._sfc_main,{key:0,modelValue:F.id,"onUpdate:modelValue":D=>F.id=D,label:e.unref(t)("hotel.roomVariant"),placeholder:e.unref(t)("hotel.chooseARoomVariant"),options:l.value,searchable:!1},null,8,["modelValue","onUpdate:modelValue","label","placeholder","options"])):e.createCommentVNode("",!0),F.id?(e.openBlock(),e.createElementBlock("div",Mt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(B.room.rates,({id:D})=>(e.openBlock(),e.createElementBlock("div",{key:D},[F.id===D?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(F.config,(I,M)=>(e.openBlock(),e.createElementBlock("div",{key:M,class:"booking-availability-listing-action-selective"},[e.createBaseVNode("ul",Wt,[r(D).length>1?(e.openBlock(),e.createBlock(Se,{key:0,modelValue:I.id,"onUpdate:modelValue":R=>I.id=R,icon:"male","icon-type":"fas",label:e.unref(t)("general.guests"),options:r(D)},null,8,["modelValue","onUpdate:modelValue","label","options"])):(e.openBlock(),e.createBlock(Se,{key:1,modelValue:I.id,"onUpdate:modelValue":R=>I.id=R,icon:"male","icon-type":"fas",label:e.unref(t)("general.guests"),options:r(D),readonly:""},null,8,["modelValue","onUpdate:modelValue","label","options"]))]),e.createBaseVNode("ul",Ut,[e.createVNode(He._sfc_main,{modelValue:I.units,"onUpdate:modelValue":R=>I.units=R,description:e.unref(s)?void 0:`${e.unref(t)("booking.availability.availableUnits")}: ${f(F.id,I.id)}`,icon:"house","icon-type":"fas","icon-placement":"label",label:e.unref(t)("booking.availability.units"),minValue:0,"max-value":f(D,I.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 Gt=e._export_sfc(qt,[["__scopeId","data-v-65a22e18"]]),Be=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:t}){const n=t,o=i;function u(_){n("update:modelValue",_)}const l=e.ref(o.modelValue);return e.watch(l,_=>{u(_)}),(_,s)=>(e.openBlock(),e.createBlock(Bt._sfc_main,{modelValue:l.value,"onUpdate:modelValue":s[0]||(s[0]=p=>l.value=p),type:"time",label:_.label,id:_.id,name:_.name,icon:_.icon,"icon-type":_.iconType,"icon-color":_.iconColor,"auto-apply":!0,required:_.required,readonly:_.readonly},null,8,["modelValue","label","id","name","icon","icon-type","icon-color","required","readonly"]))}});const jt={style:{display:"flex","align-items":"baseline"}},Yt=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:t}){const{t:n}=e.useI18n(),o=t,u=i;function l(s){o("update:modelValue",s)}const _=e.computed({get:()=>u.modelValue,set:s=>l(s)});return(s,p)=>(e.openBlock(),e.createBlock(e._sfc_main,{modelValue:_.value,"onUpdate:modelValue":p[0]||(p[0]=c=>_.value=c),label:s.label,placeholder:e.unref(n)("booking.reservation.countryPlaceholder"),labelKey:"name",valueKey:"id",options:s.options,required:s.required},{option:e.withCtx(({data:c})=>[e.createBaseVNode("i",{class:e.normalizeClass(["konnectio-flag-icon",c.iso])},null,2),e.createBaseVNode("span",null,e.toDisplayString(c.name),1)]),"selected-option":e.withCtx(({data:c})=>[e.createBaseVNode("div",jt,[e.createBaseVNode("i",{class:e.normalizeClass(["konnectio-flag-icon",c.iso])},null,2),e.createBaseVNode("span",null,e.toDisplayString(c.name),1)])]),_:1},8,["modelValue","label","placeholder","options","required"]))}});const Qt=e._export_sfc(Yt,[["__scopeId","data-v-1462612d"]]),Kt={class:"konnectio-radio-checkboxes"},Jt=e.defineComponent({__name:"CheckboxField",props:{modelValue:{},label:{},name:{},checkboxes:{}},emits:["update:modelValue"],setup(i,{emit:t}){const n=t,o=i;function u(_){n("update:modelValue",_)}const l=e.computed({get:()=>o.modelValue,set:_=>u(_)});return(_,s)=>(e.openBlock(),e.createBlock(e.InputField,{label:_.label,type:"multi-radio"},{default:e.withCtx(()=>[e.createBaseVNode("ul",Kt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(_.checkboxes,({label:p,value:c},h)=>(e.openBlock(),e.createElementBlock("li",{key:h},[e.createVNode(U.Checkbox,{modelValue:l.value,"onUpdate:modelValue":s[0]||(s[0]=m=>l.value=m),label:p,name:_.name,type:"radio",val:c},null,8,["modelValue","label","name","val"])]))),128))])]),_:1},8,["label"]))}});const Xt=e._export_sfc(Jt,[["__scopeId","data-v-fc900ad2"]]),Zt=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:t}){const n=i,o=t,u=n.id||e.ranId(),l=e.ref(""),_=e.ref(2);function s(){o("update:modelValue",l.value)}e.watch(_,c=>{o("update:title",c)});const{t:p}=e.useI18n();return e.onMounted(()=>{n.modelValue&&(l.value=n.modelValue),n.title&&(_.value=n.title)}),(c,h)=>(e.openBlock(),e.createBlock(e.InputField,{label:c.label,id:e.unref(u),required:c.required,type:"fresh-booking-name-field",readonly:c.readonly,limit:c.limit},{default:e.withCtx(()=>[e.createBaseVNode("div",{class:e.normalizeClass(["fresh-booking-name-input",{"no-title":c.excludeTitle}])},[c.excludeTitle?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e._sfc_main,{key:0,modelValue:_.value,"onUpdate:modelValue":h[0]||(h[0]=m=>_.value=m),id:e.unref(e.ranId)(),icon:c.icon,"icon-color":c.iconColor,"icon-type":c.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:c.readonly,"hide-button":"","input-style":c.inputStyle,searchable:!1},null,8,["modelValue","id","icon","icon-color","icon-type","options","readonly","input-style"])),e.createVNode(e.TextField,{modelValue:l.value,"onUpdate:modelValue":h[1]||(h[1]=m=>l.value=m),type:"text",name:"name",autocomplete:"name",id:e.unref(u),icon:c.excludeTitle?c.icon:void 0,"icon-color":c.iconColor,"icon-type":c.iconType,placeholder:c.placeholder,required:c.required,readonly:c.readonly,limit:c.limit,onInput:h[2]||(h[2]=m=>s()),"input-style":c.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 en=e._export_sfc(Zt,[["__scopeId","data-v-78b0b319"]]),tn={class:"hotel-listing"},nn={class:"hotel-listing-content-gallery"},on={class:"hotel-listing-content-thumbs"},rn={class:"hotel-listing-content"},ln={class:"hotel-listing-content-header"},an={class:"hotel-listing-content-title"},sn={class:"hotel-listing-content-body"},un={class:"hotel-listing-content-facilities"},dn=e.defineComponent({__name:"Listing",setup(i){return(t,n)=>(e.openBlock(),e.createElementBlock("div",tn,[e.createBaseVNode("div",nn,[e.createVNode(O.Element,{width:"280px",height:"153px"}),e.createBaseVNode("div",on,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(3,o=>e.createVNode(O.Element,{key:o,width:"84px",height:"44px"})),64))])]),e.createBaseVNode("div",rn,[e.createBaseVNode("div",ln,[e.createBaseVNode("div",an,[e.createVNode(O.Element,{height:"30px",width:"60%"}),e.createVNode(O.Element,{height:"30px",width:"30px","border-radius":"100%"})]),e.createVNode(O.Element,{height:"15px",width:"25%"})]),e.createBaseVNode("div",sn,[e.createVNode(O.Element,{height:"15px"}),e.createVNode(O.Element,{height:"15px"}),e.createVNode(O.Element,{height:"15px"}),e.createVNode(O.Element,{height:"15px"}),e.createVNode(O.Element,{height:"15px",width:"90%"})]),e.createBaseVNode("div",un,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(5,o=>e.createVNode(O.Element,{key:o,height:"25px",width:"25px","border-radius":"6px"})),64))])])]))}});const q=e._export_sfc(dn,[["__scopeId","data-v-5c132d7f"]]),cn={class:"hotel-skeleton"},_n={class:"hotel-skeleton-content"},pn={class:"hotel-skeleton-sidebar"},fn=e.defineComponent({__name:"HotelSkeleton",setup(i){return(t,n)=>(e.openBlock(),e.createElementBlock("div",cn,[e.createBaseVNode("div",_n,[e.createVNode(Re.AvailabilitySkeleton),e.createVNode(q),e.createVNode(q),e.createVNode(q)]),e.createBaseVNode("div",pn,[e.createVNode(z.Sidebar)])]))}});const hn=e._export_sfc(fn,[["__scopeId","data-v-4e50a5a1"]]),me=i=>(e.pushScopeId("data-v-feb89526"),i=i(),e.popScopeId(),i),mn={id:"booking-availability-container"},yn={id:"booking-availability-controls"};const vn={key:1,"sticky-container":""},gn={key:0};const kn={key:1},bn={key:0},xn={key:0},Sn={id:"booking-availability-listings"},Bn={key:1,id:"booking-availability-no-listings"},Vn={key:1,id:"booking-availability-no-listings"},En={key:2,id:"reservation-availability-next-dates"},Nn={class:"reservation-special-offers-grid"},Fn=["title"];const Cn={key:2,class:"konnectio-listing-loading"},In={class:"fresh-booking-panel"},Tn={key:0,id:"konnectio-hotel-addons"},$n=me(()=>e.createBaseVNode("th",{class:"fresh-booking-event-addons-input"},null,-1)),Dn={class:"fresh-booking-event-addons-price"},wn={key:1},Pn=me(()=>e.createBaseVNode("br",null,null,-1)),Ln=me(()=>e.createBaseVNode("td",null,null,-1));const Rn=["onClick"],Hn={class:"fresh-booking-panel"},On={key:0},zn={key:1},An={class:"fresh-booking-split-inputs"},Mn=["onClick"],Wn=e.defineComponent({name:"HotelLayout",__name:"Hotel",props:{accessToken:{},headerLayout:{default:e.BookingHeaderLayout.Minimal},styling:{}},setup(i){const{t}=e.useI18n(),{templateID:n,title:o,countries:u,areListingsLoading:l,isAvailabilityDataAvailable:_,isPaymentLoading:s,isReservationFormFilled:p,selectedPackage:c,travelingFor:h,arrivalTime:m,departureTime:k,name:a,nameTitle:v,email:g,phone:f,firmName:r,postal:d,city:y,address:b,country:S,remark:N,allergies:C,newsMails:B,roomSelect:E,roomDisplay:F,hasValidRoomSelection:w,getSelectedPackageRoom:D,availabilityData:I,selectionHasNoAddons:M}=e.storeToRefs(e.useHotelStore()),{arrivalDate:R,departureDate:je}=e.storeToRefs(e.useAvailabilityStore()),{currency:ke,isRecaptchaEnabled:Go,disableNewsletterSignup:Ye,arrivalEarliest:Qe,arrivalLatest:Ke,departureEarliest:Je,departureLatest:Xe,enableTracking:Ze,arrivalDefault:et,departureDefault:tt,enablePackages:jo,hideArrivalDepartureInputs:nt,disableArrivalUserSelection:te,disableNamePrefix:ot,disableDepartureUserSelection:ne,disableTravelingFor:it,disableCompanyField:rt,hasPaymentGateway:lt}=e.storeToRefs(e.useUtilityStore());e.useAlertStore();const{beginCheckout:at}=e.useTrackingStore(),{initialize:st,createReservation:ut,getSingleListing:Yo}=e.useHotelStore(),dt=e.ref(!0),ct=e.computed(()=>{const $=I.value.roomGroups.slice();$.forEach(H=>{H.pricesFrom=H.rates.reduce((T,x)=>T<x.rackRate?T:x.rackRate,1/0)});function V(H,T){return dt.value===!0?H.pricesFrom>T.pricesFrom?-1:1:H.pricesFrom>T.pricesFrom?1:-1}return $.sort(V)}),_t=e.computed(()=>[[parseInt(Qe.value.split(":")[0]),parseInt(Ke.value.split(":")[0])]]),pt=e.computed(()=>[[parseInt(Je.value.split(":")[0]),parseInt(Xe.value.split(":")[0])]]);function Qo($){n.value=$}function ft(){n.value=NaN}function be($){M.value?$(2):$()}function ht($,V){je.value=new Date(V),R.value=new Date($),location.reload()}async function mt($){await ut($)}function yt($){Ze&&at(),M.value?$(2):$()}function vt(){m.value===""&&(m.value=et.value),k.value===""&&(k.value=tt.value)}return e.onMounted(()=>{st(),vt()}),($,V)=>(e.openBlock(),e.createBlock(e.Suspense,null,{default:e.withCtx(()=>[e.createVNode(e._sfc_main$1,{id:"fresh-booking-hotel-module","access-token":$.accessToken,type:"hotel",styling:$.styling},{default:e.withCtx(()=>[e.createVNode(z.MultiStepForm,{title:e.unref(o),layout:$.headerLayout},{availability:e.withCtx(({next:H})=>[e.createVNode(oe,null,{form:e.withCtx(()=>[e.createBaseVNode("div",mn,[e.createBaseVNode("div",yn,[e.createVNode(Re.HotelAvailabilityForm,{booking:!0})]),e.createCommentVNode("",!0),e.unref(l)?(e.openBlock(),e.createElementBlock("div",Cn,[e.createVNode(q),e.createVNode(q),e.createVNode(q)])):(e.openBlock(),e.createElementBlock("div",vn,[e.unref(I).roomGroups.length>0?(e.openBlock(),e.createElementBlock("div",gn,[(e.unref(I).templates.length>0,e.createCommentVNode("",!0)),isNaN(e.unref(n))?(e.openBlock(),e.createElementBlock("div",kn,[e.unref(I).roomGroups.length>0?(e.openBlock(),e.createElementBlock("div",bn,[e.unref(I).templates.length>0?(e.openBlock(),e.createElementBlock("h2",xn,[e.createVNode(e.Icon,{icon:"house",type:"fal",color:"header"}),e.createBaseVNode("span",null,e.toDisplayString(e.unref(t)("booking.availability.roomsTitle")),1)])):e.createCommentVNode("",!0),e.createBaseVNode("ul",Sn,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(ct.value,(T,x)=>(e.openBlock(),e.createBlock(Gt,{room:T,key:x},null,8,["room"]))),128))])])):(e.openBlock(),e.createElementBlock("div",Bn,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(t)("booking.availability.nothingAvailable")),1)]))])):e.createCommentVNode("",!0)])):e.unref(I).nextAvailableDates.length===0?(e.openBlock(),e.createElementBlock("div",Vn,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(t)("booking.availability.nothingAvailable")),1)])):(e.openBlock(),e.createElementBlock("div",En,[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",Nn,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(I).nextAvailableDates,(T,x)=>(e.openBlock(),e.createElementBlock("li",{key:x},[e.createBaseVNode("h3",{title:`${e.unref(e.showDate)(T.fromDate)} - ${e.unref(e.showDate)(T.toDate)}`},[e.createBaseVNode("span",null,e.toDisplayString(`${e.unref(e.showDate)(T.fromDate)} - ${e.unref(e.showDate)(T.toDate)}`),1)],8,Fn),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)(T.priceStartFrom,e.unref(ke))),1)])]),e.createVNode(e.Clickable,{label:e.unref(t)("booking.availability.selectDates"),"full-width":"",onClickEvent:G=>ht(T.fromDate,T.toDate)},null,8,["label","onClickEvent"])]))),128))])]))]))])]),navigation:e.withCtx(()=>[isNaN(e.unref(n))?(e.openBlock(),e.createBlock(e.Clickable,{key:0,label:e.unref(M)?e.unref(t)("booking.availability.nextButton"):e.unref(t)("general.chooseAddons"),disabled:!e.unref(w),"is-loading":!1,"full-width":"",onClickEvent:T=>yt(H)},null,8,["label","disabled","onClickEvent"])):(e.openBlock(),e.createBlock(e.Clickable,{key:1,label:e.unref(t)("booking.reservation.prevButton"),"full-width":"",onClickEvent:V[1]||(V[1]=T=>ft())},null,8,["label"]))]),_:2},1024)]),addons:e.withCtx(({next:H,prev:T})=>[e.createVNode(oe,null,{form:e.withCtx(()=>[e.createBaseVNode("form",In,[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(),e.createElementBlock("div",Tn,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(F),x=>(e.openBlock(),e.createElementBlock("ul",{key:x.roomGroupID},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(x.variants,(G,j)=>(e.openBlock(),e.createElementBlock("li",{key:G.ratePlanID},[e.createBaseVNode("h4",null,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(e.capitalized)(x.title)),1)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(G.rooms,(P,xe)=>(e.openBlock(),e.createElementBlock("table",{key:xe,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)(G.name)),1)]),$n,e.createBaseVNode("th",Dn,[e.createBaseVNode("b",null,[e.createVNode(e.Icon,{icon:"male",type:"fas",color:"font"}),e.createBaseVNode("span",null,e.toDisplayString(P.adultsCount),1),P.childrenCount>0?(e.openBlock(),e.createBlock(e.Icon,{key:0,icon:"child",type:"fas",color:"font"})):e.createCommentVNode("",!0),P.childrenCount>0?(e.openBlock(),e.createElementBlock("span",wn,e.toDisplayString(P.childrenCount),1)):e.createCommentVNode("",!0)])])])]),e.createBaseVNode("tbody",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(x.addons,({cardinality:gt,quantityStrategy:kt,maximumNumber:bt,id:Y,name:xt,price:St})=>(e.openBlock(),e.createElementBlock("tr",{key:Y},[e.createBaseVNode("td",null,[e.createBaseVNode("b",null,e.toDisplayString(e.unref(e.capitalized)(xt)),1),Pn,e.createBaseVNode("span",null,e.toDisplayString(e.unref(e.showPrice)(St,e.unref(ke)))+" "+e.toDisplayString(e.unref(e.getPriceQuantityLabel)(kt)),1)]),e.createBaseVNode("td",null,[gt===3?(e.openBlock(),e.createBlock(He._sfc_main,{key:0,modelValue:e.unref(E)[x.roomGroupID][j].config[P.configIdx].addons[P.roomIdx][Y],"onUpdate:modelValue":L=>e.unref(E)[x.roomGroupID][j].config[P.configIdx].addons[P.roomIdx][Y]=L,small:!0,"min-value":0,"max-value":bt||1/0},null,8,["modelValue","onUpdate:modelValue","max-value"])):(e.openBlock(),e.createBlock(U.Checkbox,{key:1,modelValue:e.unref(E)[x.roomGroupID][j].config[P.configIdx].addons[P.roomIdx][Y],"onUpdate:modelValue":L=>e.unref(E)[x.roomGroupID][j].config[P.configIdx].addons[P.roomIdx][Y]=L},null,8,["modelValue","onUpdate:modelValue"]))]),Ln,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:H},null,8,["label","onClickEvent"]),e.createBaseVNode("button",{class:"konnectio-abort-reservation link",onClick:e.withModifiers(x=>be(T),["prevent"])},[e.createBaseVNode("span",null,e.toDisplayString(e.unref(t)("general.goAStepBack")),1)],8,Rn)]),_:2},1024)]),reservation:e.withCtx(({next:H,prev:T})=>[e.createVNode(oe,{"show-terms-notice":!0,"show-gift-card":!0},{form:e.withCtx(()=>[e.createBaseVNode("form",Hn,[e.createBaseVNode("h2",null,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(t)("booking.reservation.detailsTitle")),1)]),!e.unref(nt)&&!(e.unref(te)&&e.unref(ne))?(e.openBlock(),e.createElementBlock("ul",{key:0,class:e.normalizeClass({"fresh-booking-split-inputs":!e.unref(te)&&!e.unref(ne)})},[e.unref(te)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("li",On,[e.createVNode(Be,{modelValue:e.unref(m),"onUpdate:modelValue":V[2]||(V[2]=x=>e.isRef(m)?m.value=x:null),label:e.unref(t)("booking.reservation.arrivalTime"),icon:"hourglass-start","hour-range":_t.value,required:""},null,8,["modelValue","label","hour-range"])])),e.unref(ne)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("li",zn,[e.createVNode(Be,{modelValue:e.unref(k),"onUpdate:modelValue":V[3]||(V[3]=x=>e.isRef(k)?k.value=x:null),label:e.unref(t)("booking.reservation.departureTime"),icon:"hourglass-end","hour-range":pt.value,required:""},null,8,["modelValue","label","hour-range"])]))],2)):e.createCommentVNode("",!0),e.createVNode(en,{modelValue:e.unref(a),"onUpdate:modelValue":V[4]||(V[4]=x=>e.isRef(a)?a.value=x:null),title:e.unref(v),"onUpdate:title":V[5]||(V[5]=x=>e.isRef(v)?v.value=x: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(g),"onUpdate:modelValue":V[6]||(V[6]=x=>e.isRef(g)?g.value=x: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(U.Checkbox,{key:1,modelValue:e.unref(B),"onUpdate:modelValue":V[7]||(V[7]=x=>e.isRef(B)?B.value=x:null),type:"checkbox",name:"newsletter",label:e.unref(t)("booking.reservation.newsletterSignUp")},null,8,["modelValue","label"])),e.unref(rt)?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e.TextField,{key:2,modelValue:e.unref(r),"onUpdate:modelValue":V[8]||(V[8]=x=>e.isRef(r)?r.value=x: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(U.PhoneField,{modelValue:e.unref(f),"onUpdate:modelValue":V[9]||(V[9]=x=>e.isRef(f)?f.value=x: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(Qt,{modelValue:e.unref(S),"onUpdate:modelValue":V[10]||(V[10]=x=>e.isRef(S)?S.value=x:null),label:e.unref(t)("booking.reservation.country"),placeholder:e.unref(t)("booking.reservation.countryPlaceholder"),options:e.unref(u),required:""},null,8,["modelValue","label","placeholder","options"]),e.createVNode(e.TextField,{modelValue:e.unref(b),"onUpdate:modelValue":V[11]||(V[11]=x=>e.isRef(b)?b.value=x: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",An,[e.createBaseVNode("li",null,[e.createVNode(e.TextField,{modelValue:e.unref(d),"onUpdate:modelValue":V[12]||(V[12]=x=>e.isRef(d)?d.value=x: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(y),"onUpdate:modelValue":V[13]||(V[13]=x=>e.isRef(y)?y.value=x: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(N),"onUpdate:modelValue":V[14]||(V[14]=x=>e.isRef(N)?N.value=x: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(C),"onUpdate:modelValue":V[15]||(V[15]=x=>e.isRef(C)?C.value=x: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(it)?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Xt,{key:3,modelValue:e.unref(h),"onUpdate:modelValue":V[16]||(V[16]=x=>e.isRef(h)?h.value=x:null),label:`${e.unref(t)("booking.reservation.purposeOfStay")} (${e.unref(t)("booking.reservation.optional")})`,name:"travelingFor",checkboxes:[{label:e.unref(t)("booking.reservation.business"),value:"Business"},{label:e.unref(t)("booking.reservation.pleasure"),value:"Pleasure"},{label:e.unref(t)("booking.reservation.bleasure"),value:"Bleasure"}]},null,8,["modelValue","label","checkboxes"]))])]),navigation:e.withCtx(()=>[e.createBaseVNode("div",null,[e.createVNode(e.Clickable,{label:e.unref(lt)?e.unref(t)("booking.reservation.nextButton"):e.unref(t)("general.confirmReservation"),disabled:!e.unref(p),"is-loading":e.unref(s),"full-width":"",onClickEvent:x=>mt(H)},null,8,["label","disabled","is-loading","onClickEvent"]),e.createBaseVNode("button",{class:"konnectio-abort-reservation link",onClick:e.withModifiers(x=>be(T),["prevent"])},[e.createBaseVNode("span",null,e.toDisplayString(e.unref(t)("general.goAStepBack")),1)],8,Mn)])]),_:2},1024)]),payment:e.withCtx(()=>[e.createVNode(U.CheckoutWindow)]),confirmation:e.withCtx(()=>[e.createVNode(z.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(hn)]),_:1}))}});const Un=e._export_sfc(Wn,[["__scopeId","data-v-feb89526"]]);var Oe={exports:{}},ie={exports:{}},re={exports:{}},Ve;function ye(){return Ve||(Ve=1,function(i){(function(t,n){i.exports?i.exports=n():t.EvEmitter=n()})(typeof window<"u"?window:ee.commonjsGlobal,function(){function t(){}var n=t.prototype;return n.on=function(o,u){if(!(!o||!u)){var l=this._events=this._events||{},_=l[o]=l[o]||[];return _.indexOf(u)==-1&&_.push(u),this}},n.once=function(o,u){if(!(!o||!u)){this.on(o,u);var l=this._onceEvents=this._onceEvents||{},_=l[o]=l[o]||{};return _[u]=!0,this}},n.off=function(o,u){var l=this._events&&this._events[o];if(!(!l||!l.length)){var _=l.indexOf(u);return _!=-1&&l.splice(_,1),this}},n.emitEvent=function(o,u){var l=this._events&&this._events[o];if(!(!l||!l.length)){l=l.slice(0),u=u||[];for(var _=this._onceEvents&&this._onceEvents[o],s=0;s<l.length;s++){var p=l[s],c=_&&_[p];c&&(this.off(o,p),delete _[p]),p.apply(this,u)}return this}},n.allOff=function(){delete this._events,delete this._onceEvents},t})}(re)),re.exports}var le={exports:{}};/*!
2
2
  * getSize v2.0.3
3
3
  * measure size of elements
4
4
  * MIT license
package/dist/hotel.js CHANGED
@@ -1,13 +1,13 @@
1
- import { k as Q, D as de, aE as ho, s as ee, c as Ee, ab as yt, ac as me, m as x, n as M, W as vt, q as a, w, aa as Ve, A as v, F as V, K as se, Y as Ze, aF as fo, v as I, a3 as W, a2 as R, x as D, aG as ve, a5 as We, p as T, H as Z, J as ue, f as j, B as Te, P as _t, Q as bt, _ as te, r as ae, o as $e, ag as et, ah as Pe, aH as kt, aC as mo, a1 as ke, y as xe, I as xt, l as tt, T as re, aA as go, b as yo, N as vo, C as fe, a6 as _o, L as ot, G as F, M as bo, an as It, aI as ko, U as xo, a8 as Io, R as Eo, V as To, a9 as $o } from "./SelectField.vue_vue_type_style_index_0_lang-abafed2f.js";
2
- import { R as So, S as Co, F as Vo, _ as Po, B as Bo, a as Do, M as Lo, T as wo, x as Oo } from "./ThankYou-d644a014.js";
3
- import { A as Ho, H as Ao } from "./AvailabilitySkeleton-7ec69b90.js";
4
- import { _ as Et } from "./NumberField.vue_vue_type_script_setup_true_lang-5ff1722d.js";
5
- import { _ as zo } from "./DateField.vue_vue_type_style_index_0_lang-3a3692d1.js";
6
- import { C as Ue, P as Mo, a as Ro, S as No } from "./index-a5dc6e49.js";
7
- import { E as X } from "./_-c044a71c.js";
1
+ import { k as Q, D as de, aE as ho, s as ee, c as Ee, ab as yt, ac as me, m as x, n as M, W as vt, q as a, w, aa as Ve, A as v, F as V, K as se, Y as Ze, aF as fo, v as I, a3 as W, a2 as R, x as D, aG as ve, a5 as We, p as T, H as Z, J as ue, f as j, B as Te, P as _t, Q as bt, _ as te, r as ae, o as $e, ag as et, ah as Pe, aH as kt, aC as mo, a1 as ke, y as xe, I as xt, l as tt, T as re, aA as go, b as yo, N as vo, C as fe, a6 as _o, L as ot, G as F, M as bo, an as It, aI as ko, U as xo, a8 as Io, R as Eo, V as To, a9 as $o } from "./SelectField.vue_vue_type_style_index_0_lang-c497c637.js";
2
+ import { R as So, S as Co, F as Vo, _ as Po, B as Bo, a as Do, M as Lo, T as wo, x as Oo } from "./ThankYou-2449c13f.js";
3
+ import { A as Ho, H as Ao } from "./AvailabilitySkeleton-119a2dda.js";
4
+ import { _ as Et } from "./NumberField.vue_vue_type_script_setup_true_lang-dbfb9925.js";
5
+ import { _ as zo } from "./DateField.vue_vue_type_style_index_0_lang-a4445293.js";
6
+ import { C as Ue, P as Mo, a as Ro, S as No } from "./index-51291895.js";
7
+ import { E as X } from "./_-c92afce5.js";
8
8
  import { c as Tt, a as $t } from "./_commonjsHelpers-aeeeeb92.js";
9
- import "./ActionField-6b24ed58.js";
10
- import "./Field-a129d337.js";
9
+ import "./ActionField-cad55dd0.js";
10
+ import "./Field-c6cc5881.js";
11
11
  const Wo = { key: 0 }, Be = /* @__PURE__ */ Q({
12
12
  __name: "HotelReservationForm",
13
13
  props: {
@@ -777,7 +777,7 @@ const le = /* @__PURE__ */ te(Sn, [["__scopeId", "data-v-5c132d7f"]]), Cn = { cl
777
777
  ]));
778
778
  }
779
779
  });
780
- const Dn = /* @__PURE__ */ te(Bn, [["__scopeId", "data-v-4e50a5a1"]]), Ge = (n) => (_t("data-v-0e9317fc"), n = n(), bt(), n), Ln = { id: "booking-availability-container" }, wn = { id: "booking-availability-controls" };
780
+ const Dn = /* @__PURE__ */ te(Bn, [["__scopeId", "data-v-4e50a5a1"]]), Ge = (n) => (_t("data-v-feb89526"), n = n(), bt(), n), Ln = { id: "booking-availability-container" }, wn = { id: "booking-availability-controls" };
781
781
  const On = {
782
782
  key: 1,
783
783
  "sticky-container": ""
@@ -1328,7 +1328,7 @@ const ei = ["onClick"], ti = { class: "fresh-booking-panel" }, oi = { key: 0 },
1328
1328
  }));
1329
1329
  }
1330
1330
  });
1331
- const ai = /* @__PURE__ */ te(si, [["__scopeId", "data-v-0e9317fc"]]);
1331
+ const ai = /* @__PURE__ */ te(si, [["__scopeId", "data-v-feb89526"]]);
1332
1332
  var St = { exports: {} }, De = { exports: {} }, Le = { exports: {} }, rt;
1333
1333
  function je() {
1334
1334
  return rt || (rt = 1, function(n) {
package/dist/hotel.js.br CHANGED
Binary file
@@ -1,4 +1,4 @@
1
- import { k as defineComponent, l as ranId, r as ref, o as onMounted, m as openBlock, n as createBlock, w as withCtx, A as createBaseVNode, p as createVNode, q as unref, T as TextField, I as InputField, _ as _export_sfc, aj as mergeProps, y as normalizeClass, ak as normalizeStyle, al as withKeys, v as createElementBlock, F as toDisplayString, x as createCommentVNode, D as useI18n, a5 as createTextVNode, s as storeToRefs, c as useUtilityStore, am as PaymentGateway, P as pushScopeId, Q as popScopeId } from "./SelectField.vue_vue_type_style_index_0_lang-abafed2f.js";
1
+ import { k as defineComponent, l as ranId, r as ref, o as onMounted, m as openBlock, n as createBlock, w as withCtx, A as createBaseVNode, p as createVNode, q as unref, T as TextField, I as InputField, _ as _export_sfc, aj as mergeProps, y as normalizeClass, ak as normalizeStyle, al as withKeys, v as createElementBlock, F as toDisplayString, x as createCommentVNode, D as useI18n, a5 as createTextVNode, s as storeToRefs, c as useUtilityStore, am as PaymentGateway, P as pushScopeId, Q as popScopeId } from "./SelectField.vue_vue_type_style_index_0_lang-c497c637.js";
2
2
  const _hoisted_1$3 = { class: "fresh-booking-phone-input" }, _sfc_main$3 = /* @__PURE__ */ defineComponent({
3
3
  __name: "PhoneField",
4
4
  props: {
Binary file
@@ -1 +1 @@
1
- "use strict";const SelectField_vue_vue_type_style_index_0_lang=require("./SelectField.vue_vue_type_style_index_0_lang-88cf98c9.cjs"),_hoisted_1$3={class:"fresh-booking-phone-input"},_sfc_main$3=SelectField_vue_vue_type_style_index_0_lang.defineComponent({__name:"PhoneField",props:{modelValue:{},label:{},id:{},placeholder:{},icon:{default:"phone-office"},iconColor:{},iconType:{default:"fal"},required:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},inputStyle:{}},emits:["update:modelValue"],setup(e,{emit:t}){const i=t,l=e,_=l.id||SelectField_vue_vue_type_style_index_0_lang.ranId(),n=SelectField_vue_vue_type_style_index_0_lang.ref("+45"),d=SelectField_vue_vue_type_style_index_0_lang.ref("");function r(){i("update:modelValue",`${n.value} ${d.value}`)}return SelectField_vue_vue_type_style_index_0_lang.onMounted(()=>{if(l.modelValue){const s=l.modelValue.split(" ");n.value=s[0],d.value=s[1]}}),(s,u)=>(SelectField_vue_vue_type_style_index_0_lang.openBlock(),SelectField_vue_vue_type_style_index_0_lang.createBlock(SelectField_vue_vue_type_style_index_0_lang.InputField,{label:s.label,id:SelectField_vue_vue_type_style_index_0_lang.unref(_),type:"phone",required:s.required,readonly:s.readonly},{default:SelectField_vue_vue_type_style_index_0_lang.withCtx(()=>[SelectField_vue_vue_type_style_index_0_lang.createBaseVNode("div",_hoisted_1$3,[SelectField_vue_vue_type_style_index_0_lang.createVNode(SelectField_vue_vue_type_style_index_0_lang.TextField,{modelValue:n.value,"onUpdate:modelValue":u[0]||(u[0]=p=>n.value=p),type:"text",id:SelectField_vue_vue_type_style_index_0_lang.unref(SelectField_vue_vue_type_style_index_0_lang.ranId)(),name:"phone-code",autocomplete:"tel-country-code",icon:s.icon,"icon-color":s.iconColor,"icon-type":s.iconType,placeholder:"+45",required:s.required,readonly:s.readonly,"input-style":s.inputStyle,onInput:u[1]||(u[1]=p=>r())},null,8,["modelValue","id","icon","icon-color","icon-type","required","readonly","input-style"]),SelectField_vue_vue_type_style_index_0_lang.createVNode(SelectField_vue_vue_type_style_index_0_lang.TextField,{modelValue:d.value,"onUpdate:modelValue":u[2]||(u[2]=p=>d.value=p),type:"number",name:"phone",autocomplete:"tel-national",id:SelectField_vue_vue_type_style_index_0_lang.unref(_),placeholder:s.placeholder,required:s.required,readonly:s.readonly,"input-style":s.inputStyle,onInput:u[3]||(u[3]=p=>r())},null,8,["modelValue","id","placeholder","required","readonly","input-style"])])]),_:1},8,["label","id","required","readonly"]))}}),PhoneField_vue_vue_type_style_index_0_scoped_5cd094ab_lang="",PhoneField=SelectField_vue_vue_type_style_index_0_lang._export_sfc(_sfc_main$3,[["__scopeId","data-v-5cd094ab"]]),_hoisted_1$2=["required","type","name","readonly","disabled","value","checked"],_hoisted_2$2=["data-test"],_hoisted_3={key:0},_sfc_main$2=SelectField_vue_vue_type_style_index_0_lang.defineComponent({__name:"Checkbox",props:{modelValue:{type:[String,Boolean,Number]},numeric:{type:Boolean,default:!1},checked:{type:Boolean,default:!1},label:{},price:{},name:{},readonly:{type:Boolean,default:!1},type:{default:"checkbox"},required:{type:Boolean,default:!1},inputStyle:{},val:{}},emits:["update:modelValue"],setup(e,{emit:t}){const i=e,l=t;function _(){i.readonly!==!0&&l("update:modelValue",i.type==="radio"?i.val:i.numeric?i.modelValue?0:1:!i.modelValue)}return(n,d)=>(SelectField_vue_vue_type_style_index_0_lang.openBlock(),SelectField_vue_vue_type_style_index_0_lang.createBlock(SelectField_vue_vue_type_style_index_0_lang.InputField,{required:n.required,type:n.type,readonly:n.readonly},{default:SelectField_vue_vue_type_style_index_0_lang.withCtx(()=>[SelectField_vue_vue_type_style_index_0_lang.createBaseVNode("label",{class:SelectField_vue_vue_type_style_index_0_lang.normalizeClass(["fresh-booking-click-box-container",{"is-readonly":n.readonly},{"has-label":n.label},n.type==="radio"?"radio":"checkbox"])},[SelectField_vue_vue_type_style_index_0_lang.createBaseVNode("input",SelectField_vue_vue_type_style_index_0_lang.mergeProps(n.$attrs,{required:!!n.required,type:n.type,name:n.name,class:"hidden",readonly:!!n.readonly,disabled:!!n.readonly,value:n.type==="radio"?n.val:n.modelValue,checked:n.type==="radio"?n.val===n.modelValue:!!n.modelValue,onChange:d[0]||(d[0]=r=>_())}),null,16,_hoisted_1$2),SelectField_vue_vue_type_style_index_0_lang.createBaseVNode("div",{class:SelectField_vue_vue_type_style_index_0_lang.normalizeClass(["fresh-booking-click-box",{checked:n.type==="radio"?n.val===n.modelValue:!!n.modelValue}]),tabindex:"0",style:SelectField_vue_vue_type_style_index_0_lang.normalizeStyle(n.inputStyle),"data-test":n.name,onKeyup:d[1]||(d[1]=SelectField_vue_vue_type_style_index_0_lang.withKeys(r=>_(),["enter"]))},null,46,_hoisted_2$2),n.label?(SelectField_vue_vue_type_style_index_0_lang.openBlock(),SelectField_vue_vue_type_style_index_0_lang.createElementBlock("div",{key:0,class:SelectField_vue_vue_type_style_index_0_lang.normalizeClass(["fresh-booking-click-box-label",{"with-price":n.price}])},[SelectField_vue_vue_type_style_index_0_lang.createBaseVNode("span",null,SelectField_vue_vue_type_style_index_0_lang.toDisplayString(n.label),1),n.price?(SelectField_vue_vue_type_style_index_0_lang.openBlock(),SelectField_vue_vue_type_style_index_0_lang.createElementBlock("span",_hoisted_3,SelectField_vue_vue_type_style_index_0_lang.toDisplayString(n.price),1)):SelectField_vue_vue_type_style_index_0_lang.createCommentVNode("",!0)],2)):SelectField_vue_vue_type_style_index_0_lang.createCommentVNode("",!0)],2)]),_:1},8,["required","type","readonly"]))}}),Checkbox_vue_vue_type_style_index_0_scoped_7ef656cb_lang="",Checkbox=SelectField_vue_vue_type_style_index_0_lang._export_sfc(_sfc_main$2,[["__scopeId","data-v-7ef656cb"]]),_hoisted_1$1={href:"https://policies.google.com/privacy"},_hoisted_2$1={href:"https://policies.google.com/terms"},_sfc_main$1=SelectField_vue_vue_type_style_index_0_lang.defineComponent({__name:"GoogleNotice",setup(e){const{t}=SelectField_vue_vue_type_style_index_0_lang.useI18n();return(i,l)=>(SelectField_vue_vue_type_style_index_0_lang.openBlock(),SelectField_vue_vue_type_style_index_0_lang.createElementBlock("span",null,[SelectField_vue_vue_type_style_index_0_lang.createTextVNode(SelectField_vue_vue_type_style_index_0_lang.toDisplayString(SelectField_vue_vue_type_style_index_0_lang.unref(t)("googleNotice"))+" ",1),SelectField_vue_vue_type_style_index_0_lang.createBaseVNode("a",_hoisted_1$1,SelectField_vue_vue_type_style_index_0_lang.toDisplayString(SelectField_vue_vue_type_style_index_0_lang.unref(t)("googlePrivacyPolicy")),1),SelectField_vue_vue_type_style_index_0_lang.createTextVNode(" "+SelectField_vue_vue_type_style_index_0_lang.toDisplayString(SelectField_vue_vue_type_style_index_0_lang.unref(t)("googleAnd"))+" ",1),SelectField_vue_vue_type_style_index_0_lang.createBaseVNode("a",_hoisted_2$1,SelectField_vue_vue_type_style_index_0_lang.toDisplayString(SelectField_vue_vue_type_style_index_0_lang.unref(t)("googleTOS")),1),SelectField_vue_vue_type_style_index_0_lang.createTextVNode(" "+SelectField_vue_vue_type_style_index_0_lang.toDisplayString(SelectField_vue_vue_type_style_index_0_lang.unref(t)("googleApply"))+". ",1)]))}});function block0(e){const t=e;t.__i18n=t.__i18n||[],t.__i18n.push({locale:"",resource:{da:{googleNotice:{t:0,b:{t:2,i:[{t:3}],s:"Denne side er beskyttet af reCAPTCHA og Google's"}},googlePrivacyPolicy:{t:0,b:{t:2,i:[{t:3}],s:"Privatlivspolitik"}},googleAnd:{t:0,b:{t:2,i:[{t:3}],s:"og"}},googleTOS:{t:0,b:{t:2,i:[{t:3}],s:"Servicevilkår"}},googleApply:{t:0,b:{t:2,i:[{t:3}],s:"er gældende"}}},en:{googleNotice:{t:0,b:{t:2,i:[{t:3}],s:"This site is protected by reCAPTCHA and the Google"}},googlePrivacyPolicy:{t:0,b:{t:2,i:[{t:3}],s:"Privacy Policy"}},googleAnd:{t:0,b:{t:2,i:[{t:3}],s:"and"}},googleTOS:{t:0,b:{t:2,i:[{t:3}],s:"Terms of Service"}},googleApply:{t:0,b:{t:2,i:[{t:3}],s:"apply"}}}}})}typeof block0=="function"&&block0(_sfc_main$1);const _withScopeId=e=>(SelectField_vue_vue_type_style_index_0_lang.pushScopeId("data-v-340cb9ce"),e=e(),SelectField_vue_vue_type_style_index_0_lang.popScopeId(),e),_hoisted_1=_withScopeId(()=>SelectField_vue_vue_type_style_index_0_lang.createBaseVNode("div",{id:"fresh-booking-payment-checkout"},null,-1)),_hoisted_2=[_hoisted_1],_sfc_main=SelectField_vue_vue_type_style_index_0_lang.defineComponent({__name:"CheckoutWindow",setup(e){const{paymentGatewayId:t}=SelectField_vue_vue_type_style_index_0_lang.storeToRefs(SelectField_vue_vue_type_style_index_0_lang.useUtilityStore());return SelectField_vue_vue_type_style_index_0_lang.onMounted(()=>{const i=document.createElement("script"),l=document.createElement("script");i.setAttribute("src","https://checkout.dibspayment.eu/v1/checkout.js?v=1"),l.setAttribute("src","https://checkout.reepay.com/checkout.js"),document.head.appendChild(i),document.head.appendChild(l)}),(i,l)=>(SelectField_vue_vue_type_style_index_0_lang.openBlock(),SelectField_vue_vue_type_style_index_0_lang.createElementBlock("div",null,[SelectField_vue_vue_type_style_index_0_lang.createBaseVNode("div",{id:"fresh-booking-payment-checkout-wrapper",class:SelectField_vue_vue_type_style_index_0_lang.normalizeClass({reePay:SelectField_vue_vue_type_style_index_0_lang.unref(t)===SelectField_vue_vue_type_style_index_0_lang.unref(SelectField_vue_vue_type_style_index_0_lang.PaymentGateway).ReePay})},_hoisted_2,2)]))}}),CheckoutWindow_vue_vue_type_style_index_0_scoped_340cb9ce_lang="",CheckoutWindow=SelectField_vue_vue_type_style_index_0_lang._export_sfc(_sfc_main,[["__scopeId","data-v-340cb9ce"]]);var a=Object.defineProperty,c=(e,t,i)=>t in e?a(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,o=(e,t,i)=>(c(e,typeof t!="symbol"?t+"":t,i),i);const namespace="@@vue3-sticky-directive",events=["resize","scroll","touchstart","touchmove","touchend","pageshow","load"],batchStyle=(e,t={},i={})=>{for(let l in t)e.style[l]=t[l];for(let l in i)i[l]&&!e.classList.contains(l)?e.classList.add(l):!i[l]&&e.classList.contains(l)&&e.classList.remove(l)};class Sticky{constructor(e,t){o(this,"el"),o(this,"vm"),o(this,"unSubscribers"),o(this,"isPending"),o(this,"state"),o(this,"lastState"),o(this,"options"),o(this,"placeholderEl"),o(this,"containerEl"),this.el=e,this.vm=t,this.unSubscribers=[],this.isPending=!1,this.state={isTopSticky:null,isBottomSticky:null,height:null,width:null,xOffset:null},this.lastState={top:null,bottom:null,sticked:!1};const i=this.getAttribute("sticky-offset")||{},l=this.getAttribute("sticky-side")||"top",_=this.getAttribute("sticky-z-index")||"10",n=this.getAttribute("on-stick")||null;this.options={topOffset:Number(i.top)||0,bottomOffset:Number(i.bottom)||0,shouldTopSticky:l==="top"||l==="both",shouldBottomSticky:l==="bottom"||l==="both",zIndex:_,onStick:n}}doBind(){if(this.unSubscribers.length>0)return;const{el:e,vm:t}=this;t.$nextTick(()=>{this.placeholderEl=document.createElement("div"),this.containerEl=this.getContainerEl(),e.parentElement.insertBefore(this.placeholderEl,e),events.forEach(i=>{const l=this.update.bind(this);this.unSubscribers.push(()=>window.removeEventListener(i,l)),this.unSubscribers.push(()=>this.containerEl.removeEventListener(i,l)),window.addEventListener(i,l,{passive:!0}),this.containerEl.addEventListener(i,l,{passive:!0})})})}doUnbind(){this.unSubscribers.forEach(e=>e()),this.unSubscribers=[],this.resetElement()}update(){this.isPending||(requestAnimationFrame(()=>{this.isPending=!1,this.recomputeState(),this.updateElements()}),this.isPending=!0)}isTopSticky(){if(!this.options.shouldTopSticky)return!1;const e=this.state.placeholderElRect.top,t=this.state.containerElRect.bottom,i=this.options.topOffset,l=this.options.bottomOffset;return e<=i&&t>=l}isBottomSticky(){if(!this.options.shouldBottomSticky)return!1;const e=window.innerHeight-this.state.placeholderElRect.top-this.state.height,t=window.innerHeight-this.state.containerElRect.top,i=this.options.topOffset,l=this.options.bottomOffset;return e<=l&&t>=i}recomputeState(){this.state=Object.assign({},this.state,{height:this.getHeight(),width:this.getWidth(),xOffset:this.getXOffset(),placeholderElRect:this.getPlaceholderElRect(),containerElRect:this.getContainerElRect()}),this.state.isTopSticky=this.isTopSticky(),this.state.isBottomSticky=this.isBottomSticky()}fireEvents(){typeof this.options.onStick=="function"&&(this.lastState.top!==this.state.isTopSticky||this.lastState.bottom!==this.state.isBottomSticky||this.lastState.sticked!==(this.state.isTopSticky||this.state.isBottomSticky))&&(this.lastState={top:this.state.isTopSticky,bottom:this.state.isBottomSticky,sticked:this.state.isBottomSticky||this.state.isTopSticky},this.options.onStick(this.lastState))}updateElements(){const e={paddingTop:0},t={position:"static",top:"auto",bottom:"auto",left:"auto",width:"auto",zIndex:this.options.zIndex},i={"vue-sticky-placeholder":!0},l={"vue-sticky-el":!0,"top-sticky":!1,"bottom-sticky":!1};if(this.state.isTopSticky){t.position="fixed",t.top=this.options.topOffset+"px",t.left=this.state.xOffset+"px",t.width=this.state.width+"px";const _=this.state.containerElRect.bottom-this.state.height-this.options.bottomOffset-this.options.topOffset;_<0&&(t.top=_+this.options.topOffset+"px"),e.paddingTop=this.state.height+"px",l["top-sticky"]=!0}else if(this.state.isBottomSticky){t.position="fixed",t.bottom=this.options.bottomOffset+"px",t.left=this.state.xOffset+"px",t.width=this.state.width+"px";const _=window.innerHeight-this.state.containerElRect.top-this.state.height-this.options.bottomOffset-this.options.topOffset;_<0&&(t.bottom=_+this.options.bottomOffset+"px"),e.paddingTop=this.state.height+"px",l["bottom-sticky"]=!0}else e.paddingTop=0;batchStyle(this.el,t,l),batchStyle(this.placeholderEl,e,i),this.fireEvents()}resetElement(){["position","top","bottom","left","width","zIndex"].forEach(t=>{this.el.style.removeProperty(t)}),this.el.classList.remove("bottom-sticky","top-sticky");const{parentElement:e}=this.placeholderEl;e&&e.removeChild(this.placeholderEl)}getContainerEl(){let e=this.el.parentElement;for(;e&&e.tagName!=="HTML"&&e.tagName!=="BODY"&&e.nodeType===1;){if(e.hasAttribute("sticky-container"))return e;e=e.parentElement}return this.el.parentElement}getXOffset(){return this.placeholderEl.getBoundingClientRect().left}getWidth(){return this.placeholderEl.getBoundingClientRect().width}getHeight(){return this.el.getBoundingClientRect().height}getPlaceholderElRect(){return this.placeholderEl.getBoundingClientRect()}getContainerElRect(){return this.containerEl.getBoundingClientRect()}getAttribute(name){const expr=this.el.getAttribute(name);let result;if(expr)if(this.vm[expr])result=this.vm[expr];else try{result=eval(`(${expr})`)}catch(e){result=expr}return result}}const Sticky$1={mounted(e,t){(typeof t.value>"u"||t.value)&&(e[namespace]=new Sticky(e,t.instance),e[namespace].doBind())},unmounted(e){e[namespace]&&(e[namespace].doUnbind(),e[namespace]=void 0)},updated(e,t){typeof t.value>"u"||t.value?(e[namespace]||(e[namespace]=new Sticky(e,t.instance)),e[namespace].doBind()):e[namespace]&&e[namespace].doUnbind()}},StickyPlugin={install(e){e.directive("Sticky",Sticky$1)}};exports.Checkbox=Checkbox;exports.CheckoutWindow=CheckoutWindow;exports.PhoneField=PhoneField;exports.StickyPlugin=StickyPlugin;exports._sfc_main=_sfc_main$1;
1
+ "use strict";const SelectField_vue_vue_type_style_index_0_lang=require("./SelectField.vue_vue_type_style_index_0_lang-dec7ee54.cjs"),_hoisted_1$3={class:"fresh-booking-phone-input"},_sfc_main$3=SelectField_vue_vue_type_style_index_0_lang.defineComponent({__name:"PhoneField",props:{modelValue:{},label:{},id:{},placeholder:{},icon:{default:"phone-office"},iconColor:{},iconType:{default:"fal"},required:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},inputStyle:{}},emits:["update:modelValue"],setup(e,{emit:t}){const i=t,l=e,_=l.id||SelectField_vue_vue_type_style_index_0_lang.ranId(),n=SelectField_vue_vue_type_style_index_0_lang.ref("+45"),d=SelectField_vue_vue_type_style_index_0_lang.ref("");function r(){i("update:modelValue",`${n.value} ${d.value}`)}return SelectField_vue_vue_type_style_index_0_lang.onMounted(()=>{if(l.modelValue){const s=l.modelValue.split(" ");n.value=s[0],d.value=s[1]}}),(s,u)=>(SelectField_vue_vue_type_style_index_0_lang.openBlock(),SelectField_vue_vue_type_style_index_0_lang.createBlock(SelectField_vue_vue_type_style_index_0_lang.InputField,{label:s.label,id:SelectField_vue_vue_type_style_index_0_lang.unref(_),type:"phone",required:s.required,readonly:s.readonly},{default:SelectField_vue_vue_type_style_index_0_lang.withCtx(()=>[SelectField_vue_vue_type_style_index_0_lang.createBaseVNode("div",_hoisted_1$3,[SelectField_vue_vue_type_style_index_0_lang.createVNode(SelectField_vue_vue_type_style_index_0_lang.TextField,{modelValue:n.value,"onUpdate:modelValue":u[0]||(u[0]=p=>n.value=p),type:"text",id:SelectField_vue_vue_type_style_index_0_lang.unref(SelectField_vue_vue_type_style_index_0_lang.ranId)(),name:"phone-code",autocomplete:"tel-country-code",icon:s.icon,"icon-color":s.iconColor,"icon-type":s.iconType,placeholder:"+45",required:s.required,readonly:s.readonly,"input-style":s.inputStyle,onInput:u[1]||(u[1]=p=>r())},null,8,["modelValue","id","icon","icon-color","icon-type","required","readonly","input-style"]),SelectField_vue_vue_type_style_index_0_lang.createVNode(SelectField_vue_vue_type_style_index_0_lang.TextField,{modelValue:d.value,"onUpdate:modelValue":u[2]||(u[2]=p=>d.value=p),type:"number",name:"phone",autocomplete:"tel-national",id:SelectField_vue_vue_type_style_index_0_lang.unref(_),placeholder:s.placeholder,required:s.required,readonly:s.readonly,"input-style":s.inputStyle,onInput:u[3]||(u[3]=p=>r())},null,8,["modelValue","id","placeholder","required","readonly","input-style"])])]),_:1},8,["label","id","required","readonly"]))}}),PhoneField_vue_vue_type_style_index_0_scoped_5cd094ab_lang="",PhoneField=SelectField_vue_vue_type_style_index_0_lang._export_sfc(_sfc_main$3,[["__scopeId","data-v-5cd094ab"]]),_hoisted_1$2=["required","type","name","readonly","disabled","value","checked"],_hoisted_2$2=["data-test"],_hoisted_3={key:0},_sfc_main$2=SelectField_vue_vue_type_style_index_0_lang.defineComponent({__name:"Checkbox",props:{modelValue:{type:[String,Boolean,Number]},numeric:{type:Boolean,default:!1},checked:{type:Boolean,default:!1},label:{},price:{},name:{},readonly:{type:Boolean,default:!1},type:{default:"checkbox"},required:{type:Boolean,default:!1},inputStyle:{},val:{}},emits:["update:modelValue"],setup(e,{emit:t}){const i=e,l=t;function _(){i.readonly!==!0&&l("update:modelValue",i.type==="radio"?i.val:i.numeric?i.modelValue?0:1:!i.modelValue)}return(n,d)=>(SelectField_vue_vue_type_style_index_0_lang.openBlock(),SelectField_vue_vue_type_style_index_0_lang.createBlock(SelectField_vue_vue_type_style_index_0_lang.InputField,{required:n.required,type:n.type,readonly:n.readonly},{default:SelectField_vue_vue_type_style_index_0_lang.withCtx(()=>[SelectField_vue_vue_type_style_index_0_lang.createBaseVNode("label",{class:SelectField_vue_vue_type_style_index_0_lang.normalizeClass(["fresh-booking-click-box-container",{"is-readonly":n.readonly},{"has-label":n.label},n.type==="radio"?"radio":"checkbox"])},[SelectField_vue_vue_type_style_index_0_lang.createBaseVNode("input",SelectField_vue_vue_type_style_index_0_lang.mergeProps(n.$attrs,{required:!!n.required,type:n.type,name:n.name,class:"hidden",readonly:!!n.readonly,disabled:!!n.readonly,value:n.type==="radio"?n.val:n.modelValue,checked:n.type==="radio"?n.val===n.modelValue:!!n.modelValue,onChange:d[0]||(d[0]=r=>_())}),null,16,_hoisted_1$2),SelectField_vue_vue_type_style_index_0_lang.createBaseVNode("div",{class:SelectField_vue_vue_type_style_index_0_lang.normalizeClass(["fresh-booking-click-box",{checked:n.type==="radio"?n.val===n.modelValue:!!n.modelValue}]),tabindex:"0",style:SelectField_vue_vue_type_style_index_0_lang.normalizeStyle(n.inputStyle),"data-test":n.name,onKeyup:d[1]||(d[1]=SelectField_vue_vue_type_style_index_0_lang.withKeys(r=>_(),["enter"]))},null,46,_hoisted_2$2),n.label?(SelectField_vue_vue_type_style_index_0_lang.openBlock(),SelectField_vue_vue_type_style_index_0_lang.createElementBlock("div",{key:0,class:SelectField_vue_vue_type_style_index_0_lang.normalizeClass(["fresh-booking-click-box-label",{"with-price":n.price}])},[SelectField_vue_vue_type_style_index_0_lang.createBaseVNode("span",null,SelectField_vue_vue_type_style_index_0_lang.toDisplayString(n.label),1),n.price?(SelectField_vue_vue_type_style_index_0_lang.openBlock(),SelectField_vue_vue_type_style_index_0_lang.createElementBlock("span",_hoisted_3,SelectField_vue_vue_type_style_index_0_lang.toDisplayString(n.price),1)):SelectField_vue_vue_type_style_index_0_lang.createCommentVNode("",!0)],2)):SelectField_vue_vue_type_style_index_0_lang.createCommentVNode("",!0)],2)]),_:1},8,["required","type","readonly"]))}}),Checkbox_vue_vue_type_style_index_0_scoped_7ef656cb_lang="",Checkbox=SelectField_vue_vue_type_style_index_0_lang._export_sfc(_sfc_main$2,[["__scopeId","data-v-7ef656cb"]]),_hoisted_1$1={href:"https://policies.google.com/privacy"},_hoisted_2$1={href:"https://policies.google.com/terms"},_sfc_main$1=SelectField_vue_vue_type_style_index_0_lang.defineComponent({__name:"GoogleNotice",setup(e){const{t}=SelectField_vue_vue_type_style_index_0_lang.useI18n();return(i,l)=>(SelectField_vue_vue_type_style_index_0_lang.openBlock(),SelectField_vue_vue_type_style_index_0_lang.createElementBlock("span",null,[SelectField_vue_vue_type_style_index_0_lang.createTextVNode(SelectField_vue_vue_type_style_index_0_lang.toDisplayString(SelectField_vue_vue_type_style_index_0_lang.unref(t)("googleNotice"))+" ",1),SelectField_vue_vue_type_style_index_0_lang.createBaseVNode("a",_hoisted_1$1,SelectField_vue_vue_type_style_index_0_lang.toDisplayString(SelectField_vue_vue_type_style_index_0_lang.unref(t)("googlePrivacyPolicy")),1),SelectField_vue_vue_type_style_index_0_lang.createTextVNode(" "+SelectField_vue_vue_type_style_index_0_lang.toDisplayString(SelectField_vue_vue_type_style_index_0_lang.unref(t)("googleAnd"))+" ",1),SelectField_vue_vue_type_style_index_0_lang.createBaseVNode("a",_hoisted_2$1,SelectField_vue_vue_type_style_index_0_lang.toDisplayString(SelectField_vue_vue_type_style_index_0_lang.unref(t)("googleTOS")),1),SelectField_vue_vue_type_style_index_0_lang.createTextVNode(" "+SelectField_vue_vue_type_style_index_0_lang.toDisplayString(SelectField_vue_vue_type_style_index_0_lang.unref(t)("googleApply"))+". ",1)]))}});function block0(e){const t=e;t.__i18n=t.__i18n||[],t.__i18n.push({locale:"",resource:{da:{googleNotice:{t:0,b:{t:2,i:[{t:3}],s:"Denne side er beskyttet af reCAPTCHA og Google's"}},googlePrivacyPolicy:{t:0,b:{t:2,i:[{t:3}],s:"Privatlivspolitik"}},googleAnd:{t:0,b:{t:2,i:[{t:3}],s:"og"}},googleTOS:{t:0,b:{t:2,i:[{t:3}],s:"Servicevilkår"}},googleApply:{t:0,b:{t:2,i:[{t:3}],s:"er gældende"}}},en:{googleNotice:{t:0,b:{t:2,i:[{t:3}],s:"This site is protected by reCAPTCHA and the Google"}},googlePrivacyPolicy:{t:0,b:{t:2,i:[{t:3}],s:"Privacy Policy"}},googleAnd:{t:0,b:{t:2,i:[{t:3}],s:"and"}},googleTOS:{t:0,b:{t:2,i:[{t:3}],s:"Terms of Service"}},googleApply:{t:0,b:{t:2,i:[{t:3}],s:"apply"}}}}})}typeof block0=="function"&&block0(_sfc_main$1);const _withScopeId=e=>(SelectField_vue_vue_type_style_index_0_lang.pushScopeId("data-v-340cb9ce"),e=e(),SelectField_vue_vue_type_style_index_0_lang.popScopeId(),e),_hoisted_1=_withScopeId(()=>SelectField_vue_vue_type_style_index_0_lang.createBaseVNode("div",{id:"fresh-booking-payment-checkout"},null,-1)),_hoisted_2=[_hoisted_1],_sfc_main=SelectField_vue_vue_type_style_index_0_lang.defineComponent({__name:"CheckoutWindow",setup(e){const{paymentGatewayId:t}=SelectField_vue_vue_type_style_index_0_lang.storeToRefs(SelectField_vue_vue_type_style_index_0_lang.useUtilityStore());return SelectField_vue_vue_type_style_index_0_lang.onMounted(()=>{const i=document.createElement("script"),l=document.createElement("script");i.setAttribute("src","https://checkout.dibspayment.eu/v1/checkout.js?v=1"),l.setAttribute("src","https://checkout.reepay.com/checkout.js"),document.head.appendChild(i),document.head.appendChild(l)}),(i,l)=>(SelectField_vue_vue_type_style_index_0_lang.openBlock(),SelectField_vue_vue_type_style_index_0_lang.createElementBlock("div",null,[SelectField_vue_vue_type_style_index_0_lang.createBaseVNode("div",{id:"fresh-booking-payment-checkout-wrapper",class:SelectField_vue_vue_type_style_index_0_lang.normalizeClass({reePay:SelectField_vue_vue_type_style_index_0_lang.unref(t)===SelectField_vue_vue_type_style_index_0_lang.unref(SelectField_vue_vue_type_style_index_0_lang.PaymentGateway).ReePay})},_hoisted_2,2)]))}}),CheckoutWindow_vue_vue_type_style_index_0_scoped_340cb9ce_lang="",CheckoutWindow=SelectField_vue_vue_type_style_index_0_lang._export_sfc(_sfc_main,[["__scopeId","data-v-340cb9ce"]]);var a=Object.defineProperty,c=(e,t,i)=>t in e?a(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,o=(e,t,i)=>(c(e,typeof t!="symbol"?t+"":t,i),i);const namespace="@@vue3-sticky-directive",events=["resize","scroll","touchstart","touchmove","touchend","pageshow","load"],batchStyle=(e,t={},i={})=>{for(let l in t)e.style[l]=t[l];for(let l in i)i[l]&&!e.classList.contains(l)?e.classList.add(l):!i[l]&&e.classList.contains(l)&&e.classList.remove(l)};class Sticky{constructor(e,t){o(this,"el"),o(this,"vm"),o(this,"unSubscribers"),o(this,"isPending"),o(this,"state"),o(this,"lastState"),o(this,"options"),o(this,"placeholderEl"),o(this,"containerEl"),this.el=e,this.vm=t,this.unSubscribers=[],this.isPending=!1,this.state={isTopSticky:null,isBottomSticky:null,height:null,width:null,xOffset:null},this.lastState={top:null,bottom:null,sticked:!1};const i=this.getAttribute("sticky-offset")||{},l=this.getAttribute("sticky-side")||"top",_=this.getAttribute("sticky-z-index")||"10",n=this.getAttribute("on-stick")||null;this.options={topOffset:Number(i.top)||0,bottomOffset:Number(i.bottom)||0,shouldTopSticky:l==="top"||l==="both",shouldBottomSticky:l==="bottom"||l==="both",zIndex:_,onStick:n}}doBind(){if(this.unSubscribers.length>0)return;const{el:e,vm:t}=this;t.$nextTick(()=>{this.placeholderEl=document.createElement("div"),this.containerEl=this.getContainerEl(),e.parentElement.insertBefore(this.placeholderEl,e),events.forEach(i=>{const l=this.update.bind(this);this.unSubscribers.push(()=>window.removeEventListener(i,l)),this.unSubscribers.push(()=>this.containerEl.removeEventListener(i,l)),window.addEventListener(i,l,{passive:!0}),this.containerEl.addEventListener(i,l,{passive:!0})})})}doUnbind(){this.unSubscribers.forEach(e=>e()),this.unSubscribers=[],this.resetElement()}update(){this.isPending||(requestAnimationFrame(()=>{this.isPending=!1,this.recomputeState(),this.updateElements()}),this.isPending=!0)}isTopSticky(){if(!this.options.shouldTopSticky)return!1;const e=this.state.placeholderElRect.top,t=this.state.containerElRect.bottom,i=this.options.topOffset,l=this.options.bottomOffset;return e<=i&&t>=l}isBottomSticky(){if(!this.options.shouldBottomSticky)return!1;const e=window.innerHeight-this.state.placeholderElRect.top-this.state.height,t=window.innerHeight-this.state.containerElRect.top,i=this.options.topOffset,l=this.options.bottomOffset;return e<=l&&t>=i}recomputeState(){this.state=Object.assign({},this.state,{height:this.getHeight(),width:this.getWidth(),xOffset:this.getXOffset(),placeholderElRect:this.getPlaceholderElRect(),containerElRect:this.getContainerElRect()}),this.state.isTopSticky=this.isTopSticky(),this.state.isBottomSticky=this.isBottomSticky()}fireEvents(){typeof this.options.onStick=="function"&&(this.lastState.top!==this.state.isTopSticky||this.lastState.bottom!==this.state.isBottomSticky||this.lastState.sticked!==(this.state.isTopSticky||this.state.isBottomSticky))&&(this.lastState={top:this.state.isTopSticky,bottom:this.state.isBottomSticky,sticked:this.state.isBottomSticky||this.state.isTopSticky},this.options.onStick(this.lastState))}updateElements(){const e={paddingTop:0},t={position:"static",top:"auto",bottom:"auto",left:"auto",width:"auto",zIndex:this.options.zIndex},i={"vue-sticky-placeholder":!0},l={"vue-sticky-el":!0,"top-sticky":!1,"bottom-sticky":!1};if(this.state.isTopSticky){t.position="fixed",t.top=this.options.topOffset+"px",t.left=this.state.xOffset+"px",t.width=this.state.width+"px";const _=this.state.containerElRect.bottom-this.state.height-this.options.bottomOffset-this.options.topOffset;_<0&&(t.top=_+this.options.topOffset+"px"),e.paddingTop=this.state.height+"px",l["top-sticky"]=!0}else if(this.state.isBottomSticky){t.position="fixed",t.bottom=this.options.bottomOffset+"px",t.left=this.state.xOffset+"px",t.width=this.state.width+"px";const _=window.innerHeight-this.state.containerElRect.top-this.state.height-this.options.bottomOffset-this.options.topOffset;_<0&&(t.bottom=_+this.options.bottomOffset+"px"),e.paddingTop=this.state.height+"px",l["bottom-sticky"]=!0}else e.paddingTop=0;batchStyle(this.el,t,l),batchStyle(this.placeholderEl,e,i),this.fireEvents()}resetElement(){["position","top","bottom","left","width","zIndex"].forEach(t=>{this.el.style.removeProperty(t)}),this.el.classList.remove("bottom-sticky","top-sticky");const{parentElement:e}=this.placeholderEl;e&&e.removeChild(this.placeholderEl)}getContainerEl(){let e=this.el.parentElement;for(;e&&e.tagName!=="HTML"&&e.tagName!=="BODY"&&e.nodeType===1;){if(e.hasAttribute("sticky-container"))return e;e=e.parentElement}return this.el.parentElement}getXOffset(){return this.placeholderEl.getBoundingClientRect().left}getWidth(){return this.placeholderEl.getBoundingClientRect().width}getHeight(){return this.el.getBoundingClientRect().height}getPlaceholderElRect(){return this.placeholderEl.getBoundingClientRect()}getContainerElRect(){return this.containerEl.getBoundingClientRect()}getAttribute(name){const expr=this.el.getAttribute(name);let result;if(expr)if(this.vm[expr])result=this.vm[expr];else try{result=eval(`(${expr})`)}catch(e){result=expr}return result}}const Sticky$1={mounted(e,t){(typeof t.value>"u"||t.value)&&(e[namespace]=new Sticky(e,t.instance),e[namespace].doBind())},unmounted(e){e[namespace]&&(e[namespace].doUnbind(),e[namespace]=void 0)},updated(e,t){typeof t.value>"u"||t.value?(e[namespace]||(e[namespace]=new Sticky(e,t.instance)),e[namespace].doBind()):e[namespace]&&e[namespace].doUnbind()}},StickyPlugin={install(e){e.directive("Sticky",Sticky$1)}};exports.Checkbox=Checkbox;exports.CheckoutWindow=CheckoutWindow;exports.PhoneField=PhoneField;exports.StickyPlugin=StickyPlugin;exports._sfc_main=_sfc_main$1;