@konnectio/core 4.0.13 → 4.0.14
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.
- package/dist/{ActionField-74fc14cf.cjs → ActionField-251eb289.cjs} +1 -1
- package/dist/{ActionField-54349124.js → ActionField-ed13e600.js} +3 -3
- package/dist/ActionField-ed13e600.js.br +0 -0
- package/dist/{AvailabilitySkeleton-f7c1b363.js → AvailabilitySkeleton-beb10d07.js} +5 -5
- package/dist/AvailabilitySkeleton-beb10d07.js.br +0 -0
- package/dist/{AvailabilitySkeleton-34890eb5.cjs → AvailabilitySkeleton-cc8eafe0.cjs} +1 -1
- package/dist/{DateField.vue_vue_type_style_index_0_lang-41b83959.cjs → DateField.vue_vue_type_style_index_0_lang-8ddce55e.cjs} +2 -2
- package/dist/{DateField.vue_vue_type_style_index_0_lang-c5873e66.js → DateField.vue_vue_type_style_index_0_lang-d1a9ffca.js} +9 -9
- package/dist/DateField.vue_vue_type_style_index_0_lang-d1a9ffca.js.br +0 -0
- package/dist/{Field-0b82e3dc.js → Field-48a50c44.js} +2 -2
- package/dist/Field-48a50c44.js.br +0 -0
- package/dist/{Field-c8c55b91.cjs → Field-cbc16db4.cjs} +1 -1
- package/dist/NumberField.vue_vue_type_script_setup_true_lang-7676783c.cjs +1 -0
- package/dist/{NumberField.vue_vue_type_script_setup_true_lang-001ceb59.js → NumberField.vue_vue_type_script_setup_true_lang-7aa515cb.js} +8 -8
- package/dist/NumberField.vue_vue_type_script_setup_true_lang-7aa515cb.js.br +0 -0
- package/dist/{SelectField.vue_vue_type_style_index_0_lang-b92d158e.cjs → SelectField.vue_vue_type_style_index_0_lang-43c8a651.cjs} +1 -1
- package/dist/{SelectField.vue_vue_type_style_index_0_lang-ba987c3e.js → SelectField.vue_vue_type_style_index_0_lang-96b84c98.js} +6 -6
- package/dist/SelectField.vue_vue_type_style_index_0_lang-96b84c98.js.br +0 -0
- package/dist/{TextField-52bc45b8.cjs → TextField-379793fe.cjs} +1 -1
- package/dist/{TextField-cbed3348.js → TextField-7150eae7.js} +1 -1
- package/dist/TextField-7150eae7.js.br +0 -0
- package/dist/{ThankYou-d4fae82e.cjs → ThankYou-bcce79d1.cjs} +1 -1
- package/dist/{ThankYou-a6b0d51e.js → ThankYou-f3dd76f4.js} +6 -6
- package/dist/ThankYou-f3dd76f4.js.br +0 -0
- package/dist/{_-66cf2aa1.js → _-cd5be070.js} +1 -1
- package/dist/_-cd5be070.js.br +0 -0
- package/dist/{_-f5fc7dd6.cjs → _-de6b4115.cjs} +1 -1
- package/dist/availability.cjs +1 -1
- package/dist/availability.js +7 -7
- package/dist/availability.js.br +0 -0
- package/dist/event-2b792293.cjs +1 -0
- package/dist/{event-f820ba4b.js → event-43539c7b.js} +89 -89
- package/dist/event-43539c7b.js.br +0 -0
- package/dist/event.cjs +1 -1
- package/dist/event.js +9 -9
- package/dist/event.js.br +0 -0
- package/dist/gift-card-validation.cjs +1 -1
- package/dist/gift-card-validation.js +4 -4
- package/dist/gift-card-validation.js.br +0 -0
- package/dist/gift-card.cjs +1 -1
- package/dist/gift-card.js +56 -56
- package/dist/gift-card.js.br +0 -0
- package/dist/hotel.cjs +1 -1
- package/dist/hotel.js +10 -10
- package/dist/hotel.js.br +0 -0
- package/dist/{index-2018df9e.cjs → index-751b236a.cjs} +1 -1
- package/dist/{index-b69ec10e.js → index-cadcbd9e.js} +2 -2
- package/dist/index-cadcbd9e.js.br +0 -0
- package/dist/polyfill.cjs +1 -1
- package/dist/polyfill.js +1 -1
- package/dist/polyfill.js.br +0 -0
- package/package.json +1 -1
- package/dist/ActionField-54349124.js.br +0 -0
- package/dist/AvailabilitySkeleton-f7c1b363.js.br +0 -0
- package/dist/DateField.vue_vue_type_style_index_0_lang-c5873e66.js.br +0 -0
- package/dist/Field-0b82e3dc.js.br +0 -0
- package/dist/NumberField.vue_vue_type_script_setup_true_lang-001ceb59.js.br +0 -0
- package/dist/NumberField.vue_vue_type_script_setup_true_lang-8525b2cd.cjs +0 -1
- package/dist/SelectField.vue_vue_type_style_index_0_lang-ba987c3e.js.br +0 -0
- package/dist/TextField-cbed3348.js.br +0 -0
- package/dist/ThankYou-a6b0d51e.js.br +0 -0
- package/dist/_-66cf2aa1.js.br +0 -0
- package/dist/event-f2a6108f.cjs +0 -1
- package/dist/event-f820ba4b.js.br +0 -0
- package/dist/index-b69ec10e.js.br +0 -0
package/dist/gift-card.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("./SelectField.vue_vue_type_style_index_0_lang-b92d158e.cjs"),V=require("./index-2018df9e.cjs"),$=require("./_-f5fc7dd6.cjs"),z=require("./TextField-52bc45b8.cjs"),x=require("./Field-c8c55b91.cjs");require("./_commonjsHelpers-6763f629.cjs");const U=e.defineStore("giftCard",()=>{e.useAlertStore();const{pay:k}=$.usePaymentStore(),{bearerToken:a,metaData:o}=e.storeToRefs(e.useUtilityStore()),t=e.ref(e.GiftCardModuleState.InitialState),p=e.useStorage("freshBookingName","",void 0,{serializer:e.StorageSerializers.string}),g=e.useStorage("freshBookingEmail","",void 0,{serializer:e.StorageSerializers.string}),s=e.useStorage("freshBookingPhone","",void 0,{serializer:e.StorageSerializers.string}),f=e.ref(""),C=e.ref(1),w=e.ref(!0),v=e.ref(""),u=e.ref({base64:"",type:"",name:""}),y=e.ref(void 0),n=e.ref(0),i=e.ref(!1),d=e.ref(0),B=e.computed(()=>t.value===e.GiftCardModuleState.InitialState||t.value===e.GiftCardModuleState.WaitingForResponse),N=e.computed(()=>t.value===e.GiftCardModuleState.ReadyToPay),m=e.computed(()=>t.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:[]}},l=o.value.places;return l&&l.forEach(_=>{c[_.placeType].data.push(_)}),Object.fromEntries(Object.entries(c).filter(([,_])=>_.data.length>0))}),R=e.computed(()=>d.value!==0),b=e.computed(()=>{let c;if(R.value)c=h.value[d.value].data[0];else if(n.value!==0){const l=y.value,_=h.value[n.value].data;_.length===1?c=_[0]:l!==void 0&&_.forEach(P=>{String(P.id)===String(l)&&(c=P)})}return c}),E=e.computed(()=>!(!p.value||!g.value||!(s.value.length>=5)||!f.value||b.value===void 0)),q=e.computed(()=>!(t.value===e.GiftCardModuleState.InitialState&&i.value)),T=e.computed(()=>!!(t.value===e.GiftCardModuleState.WaitingForResponse&&i.value));async function S(){t.value=e.GiftCardModuleState.WaitingForResponse,i.value=!0,await e.axios.post("http://localhost:91/api/gift-card/create",{termsOfserviceURL:"https://freshbooking.dk",checkoutUrl:"https://freshbooking.dk",currencyID:o.value.currency.id,language:e.getUserLanguage(),amount:f.value,quantity:C.value,freeText:v.value,showPrice:w.value,contactName:p.value,contactEmail:g.value,contactPhone:s.value,imageBase64:e.b2a(u.value.base64),imageName:u.value.name,imageFormat:u.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.13"}}).then(c=>{t.value=e.GiftCardModuleState.ReadyToPay,i.value=!1,k({callback:()=>console.log("Callback!"),response:c.data})})}function r(c){c&&(d.value=c)}return{moduleState:t,name:p,email:g,phone:s,value:f,remark:v,showValue:w,quantity:C,media:u,placeId:y,placeType:n,showFormPage:B,showPaymentPage:N,showConfirmationPage:m,places:h,hasFilledForm:E,hasForcedPlaceType:R,isWaitingForResponse:T,isMetaDataAvailable:q,orderGiftCard:S,initialize:r}}),M={class:"media-selector"},D=["accept"],I={class:"media-selector-wrapper"},L={class:"media-selector-tools"},A={key:0},W={key:1},j={key:2},H=["src"],O=e.defineComponent({__name:"MediaSelector",props:{modelValue:{},validation:{default:"image/*"},iconColor:{default:"#000"},label:{},required:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(k,{emit:a}){const o=a,t=k,{t:p}=e.useI18n(),{display:g}=e.useAlertStore(),s=e.ref(),f=e.computed(()=>t.modelValue.base64!=="");function C(n){o("update:modelValue",n)}function w(){C({base64:"",name:"",type:""}),s.value&&(s.value.value="")}function v(){s.value&&s.value.click()}function u(n,i){const[d,B]=[n.name,n.type],N=new FileReader;N.onload=function(m){if(m.target){const h=m.target.result;i({base64:h,name:d,type:B})}else g({message:p("imageUploadError"),type:"error"})},N.readAsDataURL(n)}async function y(){let n;(n=s.value.files)instanceof FileList&&u(n[0],C)}return(n,i)=>(e.openBlock(),e.createBlock(e.InputField,{label:n.label,required:n.required,type:"media"},{default:e.withCtx(()=>[e.createBaseVNode("div",M,[e.createBaseVNode("input",{ref_key:"fileInput",ref:s,type:"file",class:"hidden",accept:n.validation,single:"",onChange:i[0]||(i[0]=d=>y())},null,40,D),e.createBaseVNode("div",I,[e.createBaseVNode("ul",L,[f.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("li",A,[e.createVNode(e.Clickable,{label:e.unref(p)("uploadFile"),type:"button",icon:"upload","icon-color":n.iconColor,onClickEvent:i[1]||(i[1]=d=>v())},null,8,["label","icon-color"])])),f.value?(e.openBlock(),e.createElementBlock("li",W,[e.createVNode(e.Clickable,{label:e.unref(p)("replaceFile"),type:"button",icon:"repeat-alt","icon-color":n.iconColor,onClickEvent:i[2]||(i[2]=d=>v())},null,8,["label","icon-color"])])):e.createCommentVNode("",!0),f.value?(e.openBlock(),e.createElementBlock("li",j,[e.createVNode(e.Clickable,{label:e.unref(p)("removeFile"),type:"button",icon:"trash-alt","icon-color":n.iconColor,onClickEvent:i[3]||(i[3]=d=>w())},null,8,["label","icon-color"])])):e.createCommentVNode("",!0)]),e.createBaseVNode("div",{class:e.normalizeClass(["media-selector-previewer",{opened:f.value}])},[n.modelValue?(e.openBlock(),e.createElementBlock("img",{key:0,src:n.modelValue.base64},null,8,H)):e.createCommentVNode("",!0)],2)])])]),_:1},8,["label","required"]))}});function G(k){const a=k;a.__i18n=a.__i18n||[],a.__i18n.push({locale:"",resource:{da:{uploadFile:o=>{const{normalize:t}=o;return t(["Upload billede"])},removeFile:o=>{const{normalize:t}=o;return t(["Fjern billede"])},replaceFile:o=>{const{normalize:t}=o;return t(["Ersat billede"])},imageUploadError:o=>{const{normalize:t}=o;return t(["Der skete en fejl under billede upload!"])}},en:{uploadFile:o=>{const{normalize:t}=o;return t(["Upload image"])},removeFile:o=>{const{normalize:t}=o;return t(["Remove image"])},replaceFile:o=>{const{normalize:t}=o;return t(["Replace image"])},imageUploadError:o=>{const{normalize:t}=o;return t(["An error occurred under image upload!"])}}}})}typeof G=="function"&&G(O);const K={class:"gift-card-skeleton"},Y={class:"gift-card-skeleton-form"},J=e.defineComponent({__name:"GiftCardSkeleton",setup(k){return(a,o)=>(e.openBlock(),e.createElementBlock("div",K,[e.createBaseVNode("div",Y,[e.createVNode(x.Field),e.createVNode(x.Field),e.createVNode(x.Field),e.createVNode(x.Field),e.createVNode(x.Field,{"is-text-area":""}),e.createVNode($.Element,{height:"44px"})])]))}});const Q=e._export_sfc(J,[["__scopeId","data-v-2600a731"]]),X={key:0,id:"fresh-booking-gift-card-wrapper"},Z={id:"fresh-booking-gift-card-title"},ee={id:"fresh-booking-gift-card-content"},te={id:"fresh-booking-gift-card-payment"},le=["innerHTML"],ae={key:0},oe={key:0,id:"fresh-booking-select-place-type"},ne={class:e.normalizeClass(["fresh-booking-label","required"])},re={id:"fresh-booking-select-place-type-input"},ie=["innerHTML"],de={key:0,id:"fresh-booking-gift-card-order"},se={class:"fresh-booking-panel"},ue={key:1,id:"fresh-booking-gift-card-remarks"},ce={key:2,id:"fresh-booking-gift-card-order-minimal","sticky-side":"bottom"},fe={id:"fresh-booking-gift-card-recaptcha"},pe=e.defineComponent({name:"GiftCardLayout",__name:"GiftCard",props:{accessToken:{},layout:{default:"minimal"},placeType:{},styling:{}},setup(k){const{t:a}=e.useI18n(),{name:o,email:t,phone:p,value:g,remark:s,showValue:f,quantity:C,media:w,placeId:v,placeType:u,showFormPage:y,showPaymentPage:n,showConfirmationPage:i,places:d,hasFilledForm:B,hasForcedPlaceType:N,isWaitingForResponse:m,isMetaDataAvailable:h}=e.storeToRefs(U()),{initialize:R,orderGiftCard:b}=U(),{isRecaptchaEnabled:E,currency:q}=e.storeToRefs(e.useUtilityStore());async function T(){await b()}return e.watch(u,()=>{v.value=void 0}),e.onMounted(()=>{R()}),(S,r)=>{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",X,[e.createBaseVNode("h4",Z,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(a)("giftCard.title")),1)]),e.createBaseVNode("div",ee,[e.withDirectives(e.createBaseVNode("div",te,[e.createVNode(V.CheckoutWindow)],512),[[e.vShow,e.unref(n)]]),e.withDirectives(e.createBaseVNode("div",null,[e.createBaseVNode("p",{id:"fresh-booking-gift-card-description",innerHTML:e.unref(a)("giftCard.description")},null,8,le),e.createBaseVNode("form",null,[e.createVNode(z.TextField,{modelValue:e.unref(o),"onUpdate:modelValue":r[0]||(r[0]=l=>e.isRef(o)?o.value=l: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(z.TextField,{modelValue:e.unref(t),"onUpdate:modelValue":r[1]||(r[1]=l=>e.isRef(t)?t.value=l: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(V.PhoneField,{modelValue:e.unref(p),"onUpdate:modelValue":r[2]||(r[2]=l=>e.isRef(p)?p.value=l:null),icon:"phone-office",label:e.unref(a)("giftCard.phone"),placeholder:e.unref(a)("giftCard.phonePlaceholder"),required:""},null,8,["modelValue","label","placeholder"]),e.unref(N)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",ae,[e.unref(d)?(e.openBlock(),e.createElementBlock("div",oe,[e.createBaseVNode("label",ne,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(a)("giftCard.selectType")),1)]),e.createBaseVNode("div",re,[e.createBaseVNode("ul",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(d),(l,_)=>(e.openBlock(),e.createElementBlock("li",{key:_},[e.createVNode(V.Checkbox,{modelValue:e.unref(u),"onUpdate:modelValue":r[3]||(r[3]=P=>e.isRef(u)?u.value=P:null),type:"radio",name:"placeType",val:_,label:l.label},null,8,["modelValue","val","label"])]))),128))]),e.unref(d)[e.unref(u)]&&e.unref(d)[e.unref(u)].data.length>1?(e.openBlock(),e.createBlock(e._sfc_main,{key:0,modelValue:e.unref(v),"onUpdate:modelValue":r[4]||(r[4]=l=>e.isRef(v)?v.value=l:null),placeholder:e.unref(a)("giftCard.selectPlacePlaceholder"),options:e.unref(d)[e.unref(u)].data,labelKey:"name",valueKey:"id",required:""},null,8,["modelValue","placeholder","options"])):e.createCommentVNode("",!0)])])):(e.openBlock(),e.createBlock(e.Loading,{key:1}))])),e.createVNode(z.TextField,{modelValue:e.unref(g),"onUpdate:modelValue":r[5]||(r[5]=l=>e.isRef(g)?g.value=l: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(V.Checkbox,{modelValue:e.unref(f),"onUpdate:modelValue":r[6]||(r[6]=l=>e.isRef(f)?f.value=l:null),type:"checkbox",name:"showValue",label:e.unref(a)("giftCard.showValue"),checked:e.unref(f)},null,8,["modelValue","label","checked"]),e.createCommentVNode("",!0),e.createCommentVNode("",!0)])],512),[[e.vShow,e.unref(y)]]),e.withDirectives(e.createBaseVNode("div",null,[e.createBaseVNode("div",{innerHTML:e.unref(a)("giftCard.thankYou")},null,8,ie)],512),[[e.vShow,e.unref(i)]])]),S.layout!=="minimal"&&e.unref(y)?(e.openBlock(),e.createElementBlock("div",de,[e.createBaseVNode("div",se,[e.createVNode(e.Clickable,{label:e.unref(a)("giftCard.orderGiftCard"),"full-width":!0,disabled:!e.unref(B),"is-loading":e.unref(m),"onUpdate:isLoading":r[9]||(r[9]=l=>e.isRef(m)?m.value=l:null),onClickEvent:T},null,8,["label","disabled","is-loading"])])])):e.createCommentVNode("",!0),e.unref(y)?(e.openBlock(),e.createElementBlock("div",ue,[e.createVNode(z.TextField,{modelValue:e.unref(s),"onUpdate:modelValue":r[10]||(r[10]=l=>e.isRef(s)?s.value=l: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(y)?e.withDirectives((e.openBlock(),e.createElementBlock("div",ce,[e.createVNode(e.Clickable,{label:e.unref(a)("giftCard.orderGiftCard"),"full-width":!0,disabled:!e.unref(B),"data-test":"orderGiftCard","is-loading":e.unref(m),"onUpdate:isLoading":r[11]||(r[11]=l=>e.isRef(m)?m.value=l:null),onClickEvent:T},null,8,["label","disabled","is-loading"]),e.withDirectives(e.createBaseVNode("div",fe,[e.createVNode(V._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(Q)]),_:1})}}});const me=e._export_sfc(pe,[["__scopeId","data-v-e4aa1e4c"]]),_e=e.createPinia(),ve=e.zo(),F=e.createApp({components:{GiftCard:me}});F.use(_e);F.use(e.instance);F.use(ve);F.use(V.StickyPlugin);F.use(V.install,{bootstrap:!1});F.mount("#konnectio-gift-card-app");
|
|
1
|
+
"use strict";const e=require("./SelectField.vue_vue_type_style_index_0_lang-43c8a651.cjs"),V=require("./index-751b236a.cjs"),$=require("./_-de6b4115.cjs"),z=require("./TextField-379793fe.cjs"),x=require("./Field-cbc16db4.cjs");require("./_commonjsHelpers-6763f629.cjs");const U=e.defineStore("giftCard",()=>{e.useAlertStore();const{pay:y}=$.usePaymentStore(),{bearerToken:l,metaData:o}=e.storeToRefs(e.useUtilityStore()),t=e.ref(e.GiftCardModuleState.InitialState),p=e.useStorage("freshBookingName","",void 0,{serializer:e.StorageSerializers.string}),g=e.useStorage("freshBookingEmail","",void 0,{serializer:e.StorageSerializers.string}),s=e.useStorage("freshBookingPhone","",void 0,{serializer:e.StorageSerializers.string}),f=e.ref(""),C=e.ref(1),w=e.ref(!0),v=e.ref(""),u=e.ref({base64:"",type:"",name:""}),k=e.ref(void 0),n=e.ref(0),i=e.ref(!1),d=e.ref(0),B=e.computed(()=>t.value===e.GiftCardModuleState.InitialState||t.value===e.GiftCardModuleState.WaitingForResponse),N=e.computed(()=>t.value===e.GiftCardModuleState.ReadyToPay),m=e.computed(()=>t.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:[]}},a=o.value.places;return a&&a.forEach(_=>{c[_.placeType].data.push(_)}),Object.fromEntries(Object.entries(c).filter(([,_])=>_.data.length>0))}),R=e.computed(()=>d.value!==0),b=e.computed(()=>{let c;if(R.value)c=h.value[d.value].data[0];else if(n.value!==0){const a=k.value,_=h.value[n.value].data;_.length===1?c=_[0]:a!==void 0&&_.forEach(P=>{String(P.id)===String(a)&&(c=P)})}return c}),E=e.computed(()=>!(!p.value||!g.value||!(s.value.length>=5)||!f.value||b.value===void 0)),q=e.computed(()=>!(t.value===e.GiftCardModuleState.InitialState&&i.value)),T=e.computed(()=>!!(t.value===e.GiftCardModuleState.WaitingForResponse&&i.value));async function S(){t.value=e.GiftCardModuleState.WaitingForResponse,i.value=!0,await e.axios.post("https://stage.hotel-service.konnectio.dk/api/gift-card/create",{termsOfserviceURL:"https://freshbooking.dk",checkoutUrl:"https://freshbooking.dk",currencyID:o.value.currency.id,language:e.getUserLanguage(),amount:f.value,quantity:C.value,freeText:v.value,showPrice:w.value,contactName:p.value,contactEmail:g.value,contactPhone:s.value,imageBase64:e.b2a(u.value.base64),imageName:u.value.name,imageFormat:u.value.type,placeType:b.value?b.value.placeType:void 0,placeID:b.value?b.value.id:void 0},{headers:{Authorization:l.value,Accept:"application/json","Fresh-Booking-Ver":"4.0.14"}}).then(c=>{t.value=e.GiftCardModuleState.ReadyToPay,i.value=!1,y({callback:()=>console.log("Callback!"),response:c.data})})}function r(c){c&&(d.value=c)}return{moduleState:t,name:p,email:g,phone:s,value:f,remark:v,showValue:w,quantity:C,media:u,placeId:k,placeType:n,showFormPage:B,showPaymentPage:N,showConfirmationPage:m,places:h,hasFilledForm:E,hasForcedPlaceType:R,isWaitingForResponse:T,isMetaDataAvailable:q,orderGiftCard:S,initialize:r}}),M={class:"media-selector"},D=["accept"],I={class:"media-selector-wrapper"},L={class:"media-selector-tools"},A={key:0},W={key:1},j={key:2},H=["src"],O=e.defineComponent({__name:"MediaSelector",props:{modelValue:{},validation:{default:"image/*"},iconColor:{default:"#000"},label:{},required:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(y,{emit:l}){const o=l,t=y,{t:p}=e.useI18n(),{display:g}=e.useAlertStore(),s=e.ref(),f=e.computed(()=>t.modelValue.base64!=="");function C(n){o("update:modelValue",n)}function w(){C({base64:"",name:"",type:""}),s.value&&(s.value.value="")}function v(){s.value&&s.value.click()}function u(n,i){const[d,B]=[n.name,n.type],N=new FileReader;N.onload=function(m){if(m.target){const h=m.target.result;i({base64:h,name:d,type:B})}else g({message:p("imageUploadError"),type:"error"})},N.readAsDataURL(n)}async function k(){let n;(n=s.value.files)instanceof FileList&&u(n[0],C)}return(n,i)=>(e.openBlock(),e.createBlock(e.InputField,{label:n.label,required:n.required,type:"media"},{default:e.withCtx(()=>[e.createBaseVNode("div",M,[e.createBaseVNode("input",{ref_key:"fileInput",ref:s,type:"file",class:"hidden",accept:n.validation,single:"",onChange:i[0]||(i[0]=d=>k())},null,40,D),e.createBaseVNode("div",I,[e.createBaseVNode("ul",L,[f.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("li",A,[e.createVNode(e.Clickable,{label:e.unref(p)("uploadFile"),type:"button",icon:"upload","icon-color":n.iconColor,onClickEvent:i[1]||(i[1]=d=>v())},null,8,["label","icon-color"])])),f.value?(e.openBlock(),e.createElementBlock("li",W,[e.createVNode(e.Clickable,{label:e.unref(p)("replaceFile"),type:"button",icon:"repeat-alt","icon-color":n.iconColor,onClickEvent:i[2]||(i[2]=d=>v())},null,8,["label","icon-color"])])):e.createCommentVNode("",!0),f.value?(e.openBlock(),e.createElementBlock("li",j,[e.createVNode(e.Clickable,{label:e.unref(p)("removeFile"),type:"button",icon:"trash-alt","icon-color":n.iconColor,onClickEvent:i[3]||(i[3]=d=>w())},null,8,["label","icon-color"])])):e.createCommentVNode("",!0)]),e.createBaseVNode("div",{class:e.normalizeClass(["media-selector-previewer",{opened:f.value}])},[n.modelValue?(e.openBlock(),e.createElementBlock("img",{key:0,src:n.modelValue.base64},null,8,H)):e.createCommentVNode("",!0)],2)])])]),_:1},8,["label","required"]))}});function G(y){const l=y;l.__i18n=l.__i18n||[],l.__i18n.push({locale:"",resource:{da:{uploadFile:o=>{const{normalize:t}=o;return t(["Upload billede"])},removeFile:o=>{const{normalize:t}=o;return t(["Fjern billede"])},replaceFile:o=>{const{normalize:t}=o;return t(["Ersat billede"])},imageUploadError:o=>{const{normalize:t}=o;return t(["Der skete en fejl under billede upload!"])}},en:{uploadFile:o=>{const{normalize:t}=o;return t(["Upload image"])},removeFile:o=>{const{normalize:t}=o;return t(["Remove image"])},replaceFile:o=>{const{normalize:t}=o;return t(["Replace image"])},imageUploadError:o=>{const{normalize:t}=o;return t(["An error occurred under image upload!"])}}}})}typeof G=="function"&&G(O);const K={class:"gift-card-skeleton"},Y={class:"gift-card-skeleton-form"},J=e.defineComponent({__name:"GiftCardSkeleton",setup(y){return(l,o)=>(e.openBlock(),e.createElementBlock("div",K,[e.createBaseVNode("div",Y,[e.createVNode(x.Field),e.createVNode(x.Field),e.createVNode(x.Field),e.createVNode(x.Field),e.createVNode(x.Field,{"is-text-area":""}),e.createVNode($.Element,{height:"44px"})])]))}});const Q=e._export_sfc(J,[["__scopeId","data-v-2600a731"]]),X={key:0,id:"fresh-booking-gift-card-wrapper"},Z={id:"fresh-booking-gift-card-title"},ee={id:"fresh-booking-gift-card-content"},te={id:"fresh-booking-gift-card-payment"},ae=["innerHTML"],le={key:0},oe={key:0,id:"fresh-booking-select-place-type"},ne={class:e.normalizeClass(["fresh-booking-label","required"])},re={id:"fresh-booking-select-place-type-input"},ie=["innerHTML"],de={key:0,id:"fresh-booking-gift-card-order"},se={class:"fresh-booking-panel"},ue={key:1,id:"fresh-booking-gift-card-remarks"},ce={key:2,id:"fresh-booking-gift-card-order-minimal","sticky-side":"bottom"},fe={id:"fresh-booking-gift-card-recaptcha"},pe=e.defineComponent({name:"GiftCardLayout",__name:"GiftCard",props:{accessToken:{},layout:{default:"minimal"},placeType:{},styling:{}},setup(y){const{t:l}=e.useI18n(),{name:o,email:t,phone:p,value:g,remark:s,showValue:f,quantity:C,media:w,placeId:v,placeType:u,showFormPage:k,showPaymentPage:n,showConfirmationPage:i,places:d,hasFilledForm:B,hasForcedPlaceType:N,isWaitingForResponse:m,isMetaDataAvailable:h}=e.storeToRefs(U()),{initialize:R,orderGiftCard:b}=U(),{isRecaptchaEnabled:E,currency:q}=e.storeToRefs(e.useUtilityStore());async function T(){await b()}return e.watch(u,()=>{v.value=void 0}),e.onMounted(()=>{R()}),(S,r)=>{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",X,[e.createBaseVNode("h4",Z,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(l)("giftCard.title")),1)]),e.createBaseVNode("div",ee,[e.withDirectives(e.createBaseVNode("div",te,[e.createVNode(V.CheckoutWindow)],512),[[e.vShow,e.unref(n)]]),e.withDirectives(e.createBaseVNode("div",null,[e.createBaseVNode("p",{id:"fresh-booking-gift-card-description",innerHTML:e.unref(l)("giftCard.description")},null,8,ae),e.createBaseVNode("form",null,[e.createVNode(z.TextField,{modelValue:e.unref(o),"onUpdate:modelValue":r[0]||(r[0]=a=>e.isRef(o)?o.value=a:null),type:"text",name:"name",autocomplete:"name",label:e.unref(l)("giftCard.name"),icon:"user-alt",placeholder:e.unref(l)("giftCard.namePlaceholder"),required:""},null,8,["modelValue","label","placeholder"]),e.createVNode(z.TextField,{modelValue:e.unref(t),"onUpdate:modelValue":r[1]||(r[1]=a=>e.isRef(t)?t.value=a:null),type:"email",name:"email",autocomplete:"email",label:e.unref(l)("giftCard.email"),icon:"at",placeholder:e.unref(l)("giftCard.emailPlaceholder"),required:""},null,8,["modelValue","label","placeholder"]),e.createVNode(V.PhoneField,{modelValue:e.unref(p),"onUpdate:modelValue":r[2]||(r[2]=a=>e.isRef(p)?p.value=a:null),icon:"phone-office",label:e.unref(l)("giftCard.phone"),placeholder:e.unref(l)("giftCard.phonePlaceholder"),required:""},null,8,["modelValue","label","placeholder"]),e.unref(N)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",le,[e.unref(d)?(e.openBlock(),e.createElementBlock("div",oe,[e.createBaseVNode("label",ne,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(l)("giftCard.selectType")),1)]),e.createBaseVNode("div",re,[e.createBaseVNode("ul",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(d),(a,_)=>(e.openBlock(),e.createElementBlock("li",{key:_},[e.createVNode(V.Checkbox,{modelValue:e.unref(u),"onUpdate:modelValue":r[3]||(r[3]=P=>e.isRef(u)?u.value=P:null),type:"radio",name:"placeType",val:_,label:a.label},null,8,["modelValue","val","label"])]))),128))]),e.unref(d)[e.unref(u)]&&e.unref(d)[e.unref(u)].data.length>1?(e.openBlock(),e.createBlock(e._sfc_main,{key:0,modelValue:e.unref(v),"onUpdate:modelValue":r[4]||(r[4]=a=>e.isRef(v)?v.value=a:null),placeholder:e.unref(l)("giftCard.selectPlacePlaceholder"),options:e.unref(d)[e.unref(u)].data,labelKey:"name",valueKey:"id",required:""},null,8,["modelValue","placeholder","options"])):e.createCommentVNode("",!0)])])):(e.openBlock(),e.createBlock(e.Loading,{key:1}))])),e.createVNode(z.TextField,{modelValue:e.unref(g),"onUpdate:modelValue":r[5]||(r[5]=a=>e.isRef(g)?g.value=a:null),type:"number",name:"value",label:e.unref(l)("giftCard.value"),icon:"money-bill",placeholder:e.unref(l)("giftCard.valuePlaceholder"),suffix:e.unref(q),required:""},null,8,["modelValue","label","placeholder","suffix"]),e.createVNode(V.Checkbox,{modelValue:e.unref(f),"onUpdate:modelValue":r[6]||(r[6]=a=>e.isRef(f)?f.value=a:null),type:"checkbox",name:"showValue",label:e.unref(l)("giftCard.showValue"),checked:e.unref(f)},null,8,["modelValue","label","checked"]),e.createCommentVNode("",!0),e.createCommentVNode("",!0)])],512),[[e.vShow,e.unref(k)]]),e.withDirectives(e.createBaseVNode("div",null,[e.createBaseVNode("div",{innerHTML:e.unref(l)("giftCard.thankYou")},null,8,ie)],512),[[e.vShow,e.unref(i)]])]),S.layout!=="minimal"&&e.unref(k)?(e.openBlock(),e.createElementBlock("div",de,[e.createBaseVNode("div",se,[e.createVNode(e.Clickable,{label:e.unref(l)("giftCard.orderGiftCard"),"full-width":!0,disabled:!e.unref(B),"is-loading":e.unref(m),"onUpdate:isLoading":r[9]||(r[9]=a=>e.isRef(m)?m.value=a:null),onClickEvent:T},null,8,["label","disabled","is-loading"])])])):e.createCommentVNode("",!0),e.unref(k)?(e.openBlock(),e.createElementBlock("div",ue,[e.createVNode(z.TextField,{modelValue:e.unref(s),"onUpdate:modelValue":r[10]||(r[10]=a=>e.isRef(s)?s.value=a:null),type:"textarea",name:"remark",label:e.unref(l)("giftCard.remark"),icon:"info-circle",placeholder:e.unref(l)("giftCard.remarkPlaceholder")},null,8,["modelValue","label","placeholder"])])):e.createCommentVNode("",!0),e.unref(k)?e.withDirectives((e.openBlock(),e.createElementBlock("div",ce,[e.createVNode(e.Clickable,{label:e.unref(l)("giftCard.orderGiftCard"),"full-width":!0,disabled:!e.unref(B),"data-test":"orderGiftCard","is-loading":e.unref(m),"onUpdate:isLoading":r[11]||(r[11]=a=>e.isRef(m)?m.value=a:null),onClickEvent:T},null,8,["label","disabled","is-loading"]),e.withDirectives(e.createBaseVNode("div",fe,[e.createVNode(V._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(Q)]),_:1})}}});const me=e._export_sfc(pe,[["__scopeId","data-v-e4aa1e4c"]]),_e=e.createPinia(),ve=e.zo(),F=e.createApp({components:{GiftCard:me}});F.use(_e);F.use(e.instance);F.use(ve);F.use(V.StickyPlugin);F.use(V.install,{bootstrap:!1});F.mount("#konnectio-gift-card-app");
|
package/dist/gift-card.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { d as ue, u as ne, s as Y, a as ie, r as b, aa as w, b as J, c as F, i as Z, S as Q, e as ce, f as pe, ab as me, h as X, z as
|
|
2
|
-
import { a as we, P as ze, C as le, _ as Te, S as $e, i as Ue } from "./index-
|
|
3
|
-
import { u as qe, E as Re } from "./_-
|
|
4
|
-
import { T as j } from "./TextField-
|
|
5
|
-
import { F as L } from "./Field-
|
|
1
|
+
import { d as ue, u as ne, s as Y, a as ie, r as b, aa as w, b as J, c as F, i as Z, S as Q, e as ce, f as pe, ab as me, h as X, z as se, k as d, l as M, w as H, x as r, q as g, m as s, n as e, C as x, t as k, v as re, I as fe, _ as de, a0 as ve, o as ge, ac as he, A as ee, ad as I, ae as W, B as V, a1 as ye, a2 as _e, y as be, a3 as ae, J as ke, K as Ce, P as Ve, a7 as Fe, N as Pe, Q as Se } from "./SelectField.vue_vue_type_style_index_0_lang-96b84c98.js";
|
|
2
|
+
import { a as we, P as ze, C as le, _ as Te, S as $e, i as Ue } from "./index-cadcbd9e.js";
|
|
3
|
+
import { u as qe, E as Re } from "./_-cd5be070.js";
|
|
4
|
+
import { T as j } from "./TextField-7150eae7.js";
|
|
5
|
+
import { F as L } from "./Field-48a50c44.js";
|
|
6
6
|
import "./_commonjsHelpers-c5d32002.js";
|
|
7
7
|
const te = ue("giftCard", () => {
|
|
8
8
|
ne();
|
|
@@ -39,7 +39,7 @@ const te = ue("giftCard", () => {
|
|
|
39
39
|
return f;
|
|
40
40
|
}), K = F(() => !(!h.value || !P.value || !(p.value.length >= 5) || !v.value || $.value === void 0)), O = F(() => !(a.value === w.InitialState && u.value)), A = F(() => !!(a.value === w.WaitingForResponse && u.value));
|
|
41
41
|
async function E() {
|
|
42
|
-
a.value = w.WaitingForResponse, u.value = !0, await ce.post("
|
|
42
|
+
a.value = w.WaitingForResponse, u.value = !0, await ce.post("https://stage.hotel-service.konnectio.dk/api/gift-card/create", {
|
|
43
43
|
termsOfserviceURL: "https://freshbooking.dk",
|
|
44
44
|
checkoutUrl: "https://freshbooking.dk",
|
|
45
45
|
currencyID: o.value.currency.id,
|
|
@@ -60,7 +60,7 @@ const te = ue("giftCard", () => {
|
|
|
60
60
|
headers: {
|
|
61
61
|
Authorization: t.value,
|
|
62
62
|
Accept: "application/json",
|
|
63
|
-
"Fresh-Booking-Ver": "4.0.
|
|
63
|
+
"Fresh-Booking-Ver": "4.0.14"
|
|
64
64
|
}
|
|
65
65
|
}).then((f) => {
|
|
66
66
|
a.value = w.ReadyToPay, u.value = !1, z({
|
|
@@ -106,7 +106,7 @@ const te = ue("giftCard", () => {
|
|
|
106
106
|
},
|
|
107
107
|
emits: ["update:modelValue"],
|
|
108
108
|
setup(z, { emit: t }) {
|
|
109
|
-
const o = t, a = z, { t: h } =
|
|
109
|
+
const o = t, a = z, { t: h } = se(), { display: P } = ne(), p = b(), v = F(() => a.modelValue.base64 !== "");
|
|
110
110
|
function U(n) {
|
|
111
111
|
o("update:modelValue", n);
|
|
112
112
|
}
|
|
@@ -143,8 +143,8 @@ const te = ue("giftCard", () => {
|
|
|
143
143
|
type: "media"
|
|
144
144
|
}, {
|
|
145
145
|
default: H(() => [
|
|
146
|
-
|
|
147
|
-
|
|
146
|
+
r("div", Ee, [
|
|
147
|
+
r("input", {
|
|
148
148
|
ref_key: "fileInput",
|
|
149
149
|
ref: p,
|
|
150
150
|
type: "file",
|
|
@@ -153,10 +153,10 @@ const te = ue("giftCard", () => {
|
|
|
153
153
|
single: "",
|
|
154
154
|
onChange: u[0] || (u[0] = (c) => S())
|
|
155
155
|
}, null, 40, Be),
|
|
156
|
-
|
|
157
|
-
|
|
156
|
+
r("div", Ge, [
|
|
157
|
+
r("ul", Ie, [
|
|
158
158
|
v.value ? k("", !0) : (d(), g("li", Le, [
|
|
159
|
-
|
|
159
|
+
s(x, {
|
|
160
160
|
label: e(h)("uploadFile"),
|
|
161
161
|
type: "button",
|
|
162
162
|
icon: "upload",
|
|
@@ -165,7 +165,7 @@ const te = ue("giftCard", () => {
|
|
|
165
165
|
}, null, 8, ["label", "icon-color"])
|
|
166
166
|
])),
|
|
167
167
|
v.value ? (d(), g("li", Me, [
|
|
168
|
-
|
|
168
|
+
s(x, {
|
|
169
169
|
label: e(h)("replaceFile"),
|
|
170
170
|
type: "button",
|
|
171
171
|
icon: "repeat-alt",
|
|
@@ -174,7 +174,7 @@ const te = ue("giftCard", () => {
|
|
|
174
174
|
}, null, 8, ["label", "icon-color"])
|
|
175
175
|
])) : k("", !0),
|
|
176
176
|
v.value ? (d(), g("li", xe, [
|
|
177
|
-
|
|
177
|
+
s(x, {
|
|
178
178
|
label: e(h)("removeFile"),
|
|
179
179
|
type: "button",
|
|
180
180
|
icon: "trash-alt",
|
|
@@ -183,8 +183,8 @@ const te = ue("giftCard", () => {
|
|
|
183
183
|
}, null, 8, ["label", "icon-color"])
|
|
184
184
|
])) : k("", !0)
|
|
185
185
|
]),
|
|
186
|
-
|
|
187
|
-
class:
|
|
186
|
+
r("div", {
|
|
187
|
+
class: re([
|
|
188
188
|
"media-selector-previewer",
|
|
189
189
|
{ opened: v.value }
|
|
190
190
|
])
|
|
@@ -250,13 +250,13 @@ const Ne = { class: "gift-card-skeleton" }, We = { class: "gift-card-skeleton-fo
|
|
|
250
250
|
__name: "GiftCardSkeleton",
|
|
251
251
|
setup(z) {
|
|
252
252
|
return (t, o) => (d(), g("div", Ne, [
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
253
|
+
r("div", We, [
|
|
254
|
+
s(L),
|
|
255
|
+
s(L),
|
|
256
|
+
s(L),
|
|
257
|
+
s(L),
|
|
258
|
+
s(L, { "is-text-area": "" }),
|
|
259
|
+
s(Re, { height: "44px" })
|
|
260
260
|
])
|
|
261
261
|
]));
|
|
262
262
|
}
|
|
@@ -268,7 +268,7 @@ const He = /* @__PURE__ */ de(je, [["__scopeId", "data-v-2600a731"]]), Ke = {
|
|
|
268
268
|
key: 0,
|
|
269
269
|
id: "fresh-booking-select-place-type"
|
|
270
270
|
}, ea = {
|
|
271
|
-
class: /* @__PURE__ */
|
|
271
|
+
class: /* @__PURE__ */ re(["fresh-booking-label", "required"])
|
|
272
272
|
}, aa = { id: "fresh-booking-select-place-type-input" }, la = ["innerHTML"], ta = {
|
|
273
273
|
key: 0,
|
|
274
274
|
id: "fresh-booking-gift-card-order"
|
|
@@ -279,7 +279,7 @@ const He = /* @__PURE__ */ de(je, [["__scopeId", "data-v-2600a731"]]), Ke = {
|
|
|
279
279
|
key: 2,
|
|
280
280
|
id: "fresh-booking-gift-card-order-minimal",
|
|
281
281
|
"sticky-side": "bottom"
|
|
282
|
-
},
|
|
282
|
+
}, sa = { id: "fresh-booking-gift-card-recaptcha" }, ra = /* @__PURE__ */ X({
|
|
283
283
|
name: "GiftCardLayout",
|
|
284
284
|
__name: "GiftCard",
|
|
285
285
|
props: {
|
|
@@ -289,7 +289,7 @@ const He = /* @__PURE__ */ de(je, [["__scopeId", "data-v-2600a731"]]), Ke = {
|
|
|
289
289
|
styling: {}
|
|
290
290
|
},
|
|
291
291
|
setup(z) {
|
|
292
|
-
const { t } =
|
|
292
|
+
const { t } = se(), {
|
|
293
293
|
name: o,
|
|
294
294
|
email: a,
|
|
295
295
|
phone: h,
|
|
@@ -320,7 +320,7 @@ const He = /* @__PURE__ */ de(je, [["__scopeId", "data-v-2600a731"]]), Ke = {
|
|
|
320
320
|
const f = he("sticky");
|
|
321
321
|
return d(), M(Ce, null, {
|
|
322
322
|
default: H(() => [
|
|
323
|
-
|
|
323
|
+
s(ke, {
|
|
324
324
|
id: "fresh-booking-gift-card-module",
|
|
325
325
|
type: "gift-card",
|
|
326
326
|
"access-token": E.accessToken,
|
|
@@ -330,22 +330,22 @@ const He = /* @__PURE__ */ de(je, [["__scopeId", "data-v-2600a731"]]), Ke = {
|
|
|
330
330
|
}, {
|
|
331
331
|
default: H(() => [
|
|
332
332
|
e(T) ? (d(), g("div", Ke, [
|
|
333
|
-
|
|
334
|
-
|
|
333
|
+
r("h4", Oe, [
|
|
334
|
+
r("span", null, ee(e(t)("giftCard.title")), 1)
|
|
335
335
|
]),
|
|
336
|
-
|
|
337
|
-
I(
|
|
338
|
-
|
|
336
|
+
r("div", Je, [
|
|
337
|
+
I(r("div", Qe, [
|
|
338
|
+
s(we)
|
|
339
339
|
], 512), [
|
|
340
340
|
[W, e(n)]
|
|
341
341
|
]),
|
|
342
|
-
I(
|
|
343
|
-
|
|
342
|
+
I(r("div", null, [
|
|
343
|
+
r("p", {
|
|
344
344
|
id: "fresh-booking-gift-card-description",
|
|
345
345
|
innerHTML: e(t)("giftCard.description")
|
|
346
346
|
}, null, 8, Ye),
|
|
347
|
-
|
|
348
|
-
|
|
347
|
+
r("form", null, [
|
|
348
|
+
s(j, {
|
|
349
349
|
modelValue: e(o),
|
|
350
350
|
"onUpdate:modelValue": i[0] || (i[0] = (l) => V(o) ? o.value = l : null),
|
|
351
351
|
type: "text",
|
|
@@ -356,7 +356,7 @@ const He = /* @__PURE__ */ de(je, [["__scopeId", "data-v-2600a731"]]), Ke = {
|
|
|
356
356
|
placeholder: e(t)("giftCard.namePlaceholder"),
|
|
357
357
|
required: ""
|
|
358
358
|
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
359
|
-
|
|
359
|
+
s(j, {
|
|
360
360
|
modelValue: e(a),
|
|
361
361
|
"onUpdate:modelValue": i[1] || (i[1] = (l) => V(a) ? a.value = l : null),
|
|
362
362
|
type: "email",
|
|
@@ -367,7 +367,7 @@ const He = /* @__PURE__ */ de(je, [["__scopeId", "data-v-2600a731"]]), Ke = {
|
|
|
367
367
|
placeholder: e(t)("giftCard.emailPlaceholder"),
|
|
368
368
|
required: ""
|
|
369
369
|
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
370
|
-
|
|
370
|
+
s(ze, {
|
|
371
371
|
modelValue: e(h),
|
|
372
372
|
"onUpdate:modelValue": i[2] || (i[2] = (l) => V(h) ? h.value = l : null),
|
|
373
373
|
icon: "phone-office",
|
|
@@ -377,13 +377,13 @@ const He = /* @__PURE__ */ de(je, [["__scopeId", "data-v-2600a731"]]), Ke = {
|
|
|
377
377
|
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
378
378
|
e(R) ? k("", !0) : (d(), g("div", Xe, [
|
|
379
379
|
e(c) ? (d(), g("div", Ze, [
|
|
380
|
-
|
|
381
|
-
|
|
380
|
+
r("label", ea, [
|
|
381
|
+
r("span", null, ee(e(t)("giftCard.selectType")), 1)
|
|
382
382
|
]),
|
|
383
|
-
|
|
384
|
-
|
|
383
|
+
r("div", aa, [
|
|
384
|
+
r("ul", null, [
|
|
385
385
|
(d(!0), g(ye, null, _e(e(c), (l, _) => (d(), g("li", { key: _ }, [
|
|
386
|
-
|
|
386
|
+
s(le, {
|
|
387
387
|
modelValue: e(m),
|
|
388
388
|
"onUpdate:modelValue": i[3] || (i[3] = (N) => V(m) ? m.value = N : null),
|
|
389
389
|
type: "radio",
|
|
@@ -406,7 +406,7 @@ const He = /* @__PURE__ */ de(je, [["__scopeId", "data-v-2600a731"]]), Ke = {
|
|
|
406
406
|
])
|
|
407
407
|
])) : (d(), M(ae, { key: 1 }))
|
|
408
408
|
])),
|
|
409
|
-
|
|
409
|
+
s(j, {
|
|
410
410
|
modelValue: e(P),
|
|
411
411
|
"onUpdate:modelValue": i[5] || (i[5] = (l) => V(P) ? P.value = l : null),
|
|
412
412
|
type: "number",
|
|
@@ -417,7 +417,7 @@ const He = /* @__PURE__ */ de(je, [["__scopeId", "data-v-2600a731"]]), Ke = {
|
|
|
417
417
|
suffix: e(O),
|
|
418
418
|
required: ""
|
|
419
419
|
}, null, 8, ["modelValue", "label", "placeholder", "suffix"]),
|
|
420
|
-
|
|
420
|
+
s(le, {
|
|
421
421
|
modelValue: e(v),
|
|
422
422
|
"onUpdate:modelValue": i[6] || (i[6] = (l) => V(v) ? v.value = l : null),
|
|
423
423
|
type: "checkbox",
|
|
@@ -431,8 +431,8 @@ const He = /* @__PURE__ */ de(je, [["__scopeId", "data-v-2600a731"]]), Ke = {
|
|
|
431
431
|
], 512), [
|
|
432
432
|
[W, e(S)]
|
|
433
433
|
]),
|
|
434
|
-
I(
|
|
435
|
-
|
|
434
|
+
I(r("div", null, [
|
|
435
|
+
r("div", {
|
|
436
436
|
innerHTML: e(t)("giftCard.thankYou")
|
|
437
437
|
}, null, 8, la)
|
|
438
438
|
], 512), [
|
|
@@ -440,8 +440,8 @@ const He = /* @__PURE__ */ de(je, [["__scopeId", "data-v-2600a731"]]), Ke = {
|
|
|
440
440
|
])
|
|
441
441
|
]),
|
|
442
442
|
E.layout !== "minimal" && e(S) ? (d(), g("div", ta, [
|
|
443
|
-
|
|
444
|
-
|
|
443
|
+
r("div", oa, [
|
|
444
|
+
s(x, {
|
|
445
445
|
label: e(t)("giftCard.orderGiftCard"),
|
|
446
446
|
"full-width": !0,
|
|
447
447
|
disabled: !e(q),
|
|
@@ -452,7 +452,7 @@ const He = /* @__PURE__ */ de(je, [["__scopeId", "data-v-2600a731"]]), Ke = {
|
|
|
452
452
|
])
|
|
453
453
|
])) : k("", !0),
|
|
454
454
|
e(S) ? (d(), g("div", na, [
|
|
455
|
-
|
|
455
|
+
s(j, {
|
|
456
456
|
modelValue: e(p),
|
|
457
457
|
"onUpdate:modelValue": i[10] || (i[10] = (l) => V(p) ? p.value = l : null),
|
|
458
458
|
type: "textarea",
|
|
@@ -463,7 +463,7 @@ const He = /* @__PURE__ */ de(je, [["__scopeId", "data-v-2600a731"]]), Ke = {
|
|
|
463
463
|
}, null, 8, ["modelValue", "label", "placeholder"])
|
|
464
464
|
])) : k("", !0),
|
|
465
465
|
e(S) ? I((d(), g("div", ia, [
|
|
466
|
-
|
|
466
|
+
s(x, {
|
|
467
467
|
label: e(t)("giftCard.orderGiftCard"),
|
|
468
468
|
"full-width": !0,
|
|
469
469
|
disabled: !e(q),
|
|
@@ -472,8 +472,8 @@ const He = /* @__PURE__ */ de(je, [["__scopeId", "data-v-2600a731"]]), Ke = {
|
|
|
472
472
|
"onUpdate:isLoading": i[11] || (i[11] = (l) => V(y) ? y.value = l : null),
|
|
473
473
|
onClickEvent: A
|
|
474
474
|
}, null, 8, ["label", "disabled", "is-loading"]),
|
|
475
|
-
I(
|
|
476
|
-
|
|
475
|
+
I(r("div", sa, [
|
|
476
|
+
s(Te)
|
|
477
477
|
], 512), [
|
|
478
478
|
[W, e(K)]
|
|
479
479
|
])
|
|
@@ -486,14 +486,14 @@ const He = /* @__PURE__ */ de(je, [["__scopeId", "data-v-2600a731"]]), Ke = {
|
|
|
486
486
|
}, 8, ["access-token", "data-layout", "styling"])
|
|
487
487
|
]),
|
|
488
488
|
fallback: H(() => [
|
|
489
|
-
|
|
489
|
+
s(He)
|
|
490
490
|
]),
|
|
491
491
|
_: 1
|
|
492
492
|
});
|
|
493
493
|
};
|
|
494
494
|
}
|
|
495
495
|
});
|
|
496
|
-
const da = /* @__PURE__ */ de(
|
|
496
|
+
const da = /* @__PURE__ */ de(ra, [["__scopeId", "data-v-e4aa1e4c"]]), ua = Ve(), ca = Fe(), B = Pe({ components: { GiftCard: da } });
|
|
497
497
|
B.use(ua);
|
|
498
498
|
B.use(Se);
|
|
499
499
|
B.use(ca);
|
package/dist/gift-card.js.br
CHANGED
|
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-b92d158e.cjs"),D=require("./index-2018df9e.cjs"),q=require("./ThankYou-d4fae82e.cjs"),U=require("./DateField.vue_vue_type_style_index_0_lang-41b83959.cjs"),Re=require("./AvailabilitySkeleton-34890eb5.cjs"),gt=require("./NumberField.vue_vue_type_script_setup_true_lang-8525b2cd.cjs"),W=require("./TextField-52bc45b8.cjs"),R=require("./_-f5fc7dd6.cjs"),ne=require("./_commonjsHelpers-6763f629.cjs");require("./ActionField-74fc14cf.cjs");require("./Field-c8c55b91.cjs");const yt=["onClick"],Be=e.defineComponent({__name:"HotelReservationForm",props:{showGiftCard:{type:Boolean,default:!1},showTermsNotice:{type:Boolean,default:!1}},setup(i){const{t}=e.useI18n(),o=e.useSlots(),{hideArrivalDepartureInputs:n,disableArrivalUserSelection:c,disableDepartureUserSelection:s,arrivalDefault:f,departureDefault:u,currency:p}=e.storeToRefs(e.useUtilityStore()),{arrivalDate:a,departureDate:g}=e.storeToRefs(U.useAvailabilityStore()),{arrivalTime:m,departureTime:_,roomDisplay:l,templateID:v,totalPrice:k,areListingsLoading:h}=e.storeToRefs(U.useHotelStore()),{removeRoom:r}=U.useHotelStore();function d(y){return y.reduce((B,{totalPrice:E})=>B+E,0)}return(y,b)=>(e.openBlock(),e.createBlock(q.ReservationForm,{"total-price":e.unref(k),"show-gift-card":y.showGiftCard,"show-terms-notice":y.showTermsNotice,"is-sidebar-loading":e.unref(h),notice:e.unref(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(n)?e.unref(e.showDate)(e.unref(a)):`${e.unref(e.showDate)(e.unref(a))}, ${e.unref(c)?e.unref(f):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(n)?e.unref(e.showDate)(e.unref(g)):`${e.unref(e.showDate)(e.unref(g))}, ${e.unref(s)?e.unref(u):e.unref(_)}`),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(a),e.unref(g)))+" "+e.toDisplayString(e.unref(e.lowercase)(e.unref(e.daysBetweenDates)(e.unref(a),e.unref(g))===1?e.unref(t)("booking.reservation.night"):e.unref(t)("booking.reservation.nights"))),1)])]),"price-summary":e.withCtx(()=>[isNaN(e.unref(v))&&e.unref(l).length>0?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(e.unref(l),({roomGroupID:B,title:E,variants:C})=>(e.openBlock(),e.createElementBlock("div",{key:B},[e.createBaseVNode("h6",null,[e.createBaseVNode("span",null,e.toDisplayString(E),1)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(C,(I,T)=>(e.openBlock(),e.createElementBlock("div",{key:T},[e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(I.rooms,(x,$)=>(e.openBlock(),e.createElementBlock("ul",{key:$},[e.createBaseVNode("li",null,[e.createBaseVNode("span",null,[e.createBaseVNode("span",null,e.toDisplayString(I.name),1),e.createBaseVNode("span",null,[e.createTextVNode("( "),e.createVNode(e.Icon,{icon:"male",type:"fas",color:"font"}),e.createBaseVNode("span",null,e.toDisplayString(x.adultsCount),1),e.createTextVNode(") "),x.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(x.childrenCount),1),e.createTextVNode(") ")],64)):e.createCommentVNode("",!0)])]),e.createBaseVNode("b",null,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(e.showPrice)(x.totalPrice,e.unref(p))),1),e.createBaseVNode("span",{class:"fresh-booking-footer-summery-remove",onClick:e.withModifiers(O=>e.unref(r)(B,T,$),["prevent"])},[e.createVNode(e.Icon,{icon:"times",type:"fas","icon-color":"#ff0000"})],8,yt)])]),e.createBaseVNode("li",null,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(t)("booking.reservation.addons")),1),e.createBaseVNode("b",null,e.toDisplayString(e.unref(e.showPrice)(d(x.roomAddons),e.unref(p))),1)])]))),128))]))),128))]))),128)):e.createCommentVNode("",!0)]),navigation:e.withCtx(()=>[e.renderSlot(y.$slots,"navigation")]),_:2},[e.unref(o).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"]))}}),vt=e.defineStore("tracking",()=>{const{enableTracking:i,googleApiKey:t}=e.storeToRefs(e.useUtilityStore());function o(){console.log("Tracking"),console.log(t),D.setOptions({config:{id:t.value,params:{send_page_view:!1}},enabled:i.value})}function n({id:p,name:a,value:g,label:m,category:_="general"}){return{items:[{id:p,name:a}],event_label:m,event_category:_,value:g}}function c(p,a){D.event(p,n(a))}function s(p,a,g){c("add_to_cart",{id:p,name:a,value:g,label:"Added to cart",category:"ecommerce"})}function f(p,a,g){c("remove_from_cart",{id:p,name:a,value:g,label:"Removed to cart",category:"ecommerce"})}function u(p){D.event("view_item",{items:[{name:p}]})}return{setup:o,viewItem:u,addToCart:s,removeFromCart:f}}),_t={style:{display:"flex","align-items":"baseline"}},kt={key:0},bt={style:{display:"flex","align-items":"baseline"}},Bt={key:0};const Vt=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{currency:o}=e.storeToRefs(e.useUtilityStore()),n=t,c=i;function s(u){n("update:modelValue",u)}const f=e.computed({get:()=>c.modelValue,set:u=>s(u)});return(u,p)=>(e.openBlock(),e.createBlock(e._sfc_main,{modelValue:f.value,"onUpdate:modelValue":p[0]||(p[0]=a=>f.value=a),label:u.label,placeholder:"Select guest configuration",labelKey:"label",valueKey:"value","icon-placement":"label",options:u.options,required:u.required},{option:e.withCtx(({data:a})=>[e.createBaseVNode("div",_t,[e.createBaseVNode("div",null,[e.createVNode(e.Icon,{icon:"male",type:"fas"}),e.createBaseVNode("span",null,e.toDisplayString(`${a.adults}`),1)]),a.children>0?(e.openBlock(),e.createElementBlock("div",kt,[e.createVNode(e.Icon,{icon:"child",type:"fas"}),e.createBaseVNode("span",null,e.toDisplayString(`${a.children}`),1)])):e.createCommentVNode("",!0),e.createBaseVNode("div",null,e.toDisplayString(`(${e.unref(e.showPrice)(a.price,e.unref(o))})`),1)])]),"selected-option":e.withCtx(({data:a})=>[e.createBaseVNode("div",bt,[e.createBaseVNode("div",null,[e.createVNode(e.Icon,{icon:"male",type:"fas"}),e.createBaseVNode("span",null,e.toDisplayString(`${a.adults}`),1)]),a.children>0?(e.openBlock(),e.createElementBlock("div",Bt,[e.createVNode(e.Icon,{icon:"child",type:"fas"}),e.createBaseVNode("span",null,e.toDisplayString(`${a.children}`),1)])):e.createCommentVNode("",!0),e.createCommentVNode("",!0)])]),_:1},8,["modelValue","label","options","required"]))}}),Et={key:0,class:"fresh-booking-modal-facilities"},Nt={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"},Ct={class:"grid-sizer"},Tt=e.defineComponent({__name:"Info",props:{title:{},description:{},facilities:{}},setup(i){return(t,o)=>{const n=e.resolveDirective("masonry-tile"),c=e.resolveDirective("masonry");return e.openBlock(),e.createBlock(q._sfc_main,{title:t.title,description:t.description},{default:e.withCtx(()=>[t.facilities&&t.facilities.length!==0?(e.openBlock(),e.createElementBlock("div",Et,[e.withDirectives((e.openBlock(),e.createElementBlock("ul",Nt,[e.withDirectives(e.createBaseVNode("div",Ct,null,512),[[n]]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.facilities,({name:s,subFacilities:f},u)=>e.withDirectives((e.openBlock(),e.createElementBlock("li",{key:u,class:"fresh-booking-modal-facility"},[e.createBaseVNode("h6",null,[e.createBaseVNode("span",null,e.toDisplayString(s),1)]),e.createBaseVNode("ul",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f,({name:p},a)=>(e.openBlock(),e.createElementBlock("li",{key:a},e.toDisplayString(p),1))),128))])])),[[n]])),128))])),[[c]])])):e.createCommentVNode("",!0)]),_:1},8,["title","description"])}}});const St=e._export_sfc(Tt,[["__scopeId","data-v-4e226a17"]]),xt={class:"fresh-booking-listing-config-body"},It={class:"fresh-booking-listing-units-body"};const Dt=e.defineComponent({__name:"Hotel",props:{room:{},layout:{}},setup(i){const{t}=e.useI18n(),o=i,n=e.ref([]);function c(b){n.value[b].config.push({id:NaN,units:0,addons:[]})}const s=e.computed(()=>o.room.rates.map(b=>({label:b.name,value:b.id}))),f=e.computed(()=>n.value.flatMap(b=>b.id));e.computed(()=>s.value.filter(b=>!f.value.includes(b.value))),e.storeToRefs(e.useUtilityStore());const{roomSelect:u}=e.storeToRefs(U.useHotelStore()),{viewItem:p}=vt(),a=(b,B)=>o.room.rates.find(E=>E.id===b)?.occupantRates.find(E=>E.index===B),g=e.computed(()=>o.room.rates.reduce((b,B)=>b<B.rackRate?b:B.rackRate,1/0)),m=e.computed(()=>o.room.rates.every(b=>b.isBreakfastIncluded===!0)),_=(b,B)=>a(b,B)?a(b,B)?.rooms:null,l=b=>o.room.rates.length>0?o.room.rates.find(B=>B.id===b)?.occupantRates.map(B=>({value:B.index,price:B.totalPrice,adults:B.adultsCount,children:B.childrenCount,hasBreakfast:B.hasBreakfast}))||[]:[],v=e.computed(()=>o.room.rates.length>1),{open:k,close:h}=e.Go({component:St,attrs:{title:o.room.title,description:o.room.description,facilities:o.room.facilities,onConfirm(){h()}}});function r(){k(),p(o.room.title)}function d(){v.value?n.value.push({id:void 0,config:[{id:o.room.rates[0].occupantRateIndex||NaN,units:0,addons:[]}]}):n.value.push({id:o.room.rates[0].id,config:[{id:o.room.rates[0].occupantRateIndex||NaN,units:0,addons:[]}]})}e.onMounted(()=>{d()});const y=e.computed(()=>JSON.parse(JSON.stringify(n.value)));return e.watch(y,(b,B)=>{B.length>0&&b.forEach((E,C)=>{E.config.forEach((I,T)=>{const x=I.units,$=B[C].config[T].units;x!==$&&(x>$?n.value[C].config[T].addons.push({}):n.value[C].config[T].addons.pop())})})},{deep:!0}),e.watch(n,()=>{u.value[o.room.id]=n.value},{deep:!0}),(b,B)=>(e.openBlock(),e.createBlock(q.Base,{"listing-id":b.room.id,gallery:b.room.images,name:b.room.title,description:b.room.description,layout:b.layout,facilities:b.room.facilities,"prices-from":g.value,"includes-breakfast":m.value,callback:r,style:{"--inputBackground":"transparent"}},{action:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.value,(E,C)=>(e.openBlock(),e.createElementBlock("div",{key:E.id,class:"freshbooking-hotel-room"},[v.value?(e.openBlock(),e.createBlock(e._sfc_main,{key:0,modelValue:E.id,"onUpdate:modelValue":I=>E.id=I,label:e.unref(t)("hotel.roomVariant"),placeholder:e.unref(t)("hotel.chooseARoomVariant"),options:s.value},null,8,["modelValue","onUpdate:modelValue","label","placeholder","options"])):e.createCommentVNode("",!0),e.createBaseVNode("div",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(b.room.rates,({id:I,maximumAdults:T})=>(e.openBlock(),e.createElementBlock("div",{key:I},[E.id===I?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(E.config,(x,$)=>(e.openBlock(),e.createElementBlock("div",{key:$,class:"booking-availability-listing-action-selective"},[e.createBaseVNode("ul",xt,[(e.openBlock(),e.createBlock(Vt,{key:0,modelValue:x.id,"onUpdate:modelValue":O=>x.id=O,description:`Maximum adults: ${T}`,icon:"male","icon-type":"fas",label:e.unref(t)("availability.adults"),options:l(I)},null,8,["modelValue","onUpdate:modelValue","description","label","options"]))]),e.createBaseVNode("ul",It,[e.createVNode(gt._sfc_main,{modelValue:x.units,"onUpdate:modelValue":O=>x.units=O,description:`Available units: ${_(E.id,x.id)}`,icon:"house","icon-type":"fas","icon-placement":"label",label:e.unref(t)("booking.availability.units"),minValue:0,"max-value":_(I,x.id)||1/0},null,8,["modelValue","onUpdate:modelValue","description","label","max-value"])]),e.createCommentVNode("",!0)]))),128)):e.createCommentVNode("",!0)]))),128))])]))),128))]),_:1},8,["listing-id","gallery","name","description","layout","facilities","prices-from","includes-breakfast"]))}});const $t=e._export_sfc(Dt,[["__scopeId","data-v-2d10462e"]]),Ve=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 o=t,n=i;function c(f){o("update:modelValue",f)}const s=e.ref(n.modelValue);return e.watch(s,f=>{c(f)}),(f,u)=>(e.openBlock(),e.createBlock(U._sfc_main,{modelValue:s.value,"onUpdate:modelValue":u[0]||(u[0]=p=>s.value=p),type:"time",label:f.label,id:f.id,name:f.name,icon:f.icon,"icon-type":f.iconType,"icon-color":f.iconColor,"auto-apply":!0,required:f.required,readonly:f.readonly},null,8,["modelValue","label","id","name","icon","icon-type","icon-color","required","readonly"]))}});const wt={style:{display:"flex","align-items":"baseline"}},Lt=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:o}=e.useI18n(),n=t,c=i;function s(u){n("update:modelValue",u)}const f=e.computed({get:()=>c.modelValue,set:u=>s(u)});return(u,p)=>(e.openBlock(),e.createBlock(e._sfc_main,{modelValue:f.value,"onUpdate:modelValue":p[0]||(p[0]=a=>f.value=a),label:u.label,placeholder:e.unref(o)("booking.reservation.countryPlaceholder"),labelKey:"name",valueKey:"id",options:u.options,required:u.required},{option:e.withCtx(({data:a})=>[e.createBaseVNode("i",{class:e.normalizeClass(["konnectio-flag-icon",a.iso])},null,2),e.createBaseVNode("span",null,e.toDisplayString(a.name),1)]),"selected-option":e.withCtx(({data:a})=>[e.createBaseVNode("div",wt,[e.createBaseVNode("i",{class:e.normalizeClass(["konnectio-flag-icon",a.iso])},null,2),e.createBaseVNode("span",null,e.toDisplayString(a.name),1)])]),_:1},8,["modelValue","label","placeholder","options","required"]))}});const Pt=e._export_sfc(Lt,[["__scopeId","data-v-1462612d"]]),Rt=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 o=i,n=t,c=o.id||e.ranId(),s=e.ref(""),f=e.ref(2);function u(){n("update:modelValue",s.value)}e.watch(f,a=>{n("update:title",a)});const{t:p}=e.useI18n();return e.onMounted(()=>{o.modelValue&&(s.value=o.modelValue),o.title&&(f.value=o.title)}),(a,g)=>(e.openBlock(),e.createBlock(e.InputField,{label:a.label,id:e.unref(c),required:a.required,type:"fresh-booking-name-field",readonly:a.readonly,limit:a.limit},{default:e.withCtx(()=>[e.createBaseVNode("div",{class:e.normalizeClass(["fresh-booking-name-input",{"no-title":a.excludeTitle}])},[a.excludeTitle?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e._sfc_main,{key:0,modelValue:f.value,"onUpdate:modelValue":g[0]||(g[0]=m=>f.value=m),id:e.unref(e.ranId)(),icon:a.icon,"icon-color":a.iconColor,"icon-type":a.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:a.readonly,"hide-button":"","input-style":a.inputStyle},null,8,["modelValue","id","icon","icon-color","icon-type","options","readonly","input-style"])),e.createVNode(W.TextField,{modelValue:s.value,"onUpdate:modelValue":g[1]||(g[1]=m=>s.value=m),type:"text",name:"name",autocomplete:"name",id:e.unref(c),icon:a.excludeTitle?a.icon:void 0,"icon-color":a.iconColor,"icon-type":a.iconType,placeholder:a.placeholder,required:a.required,readonly:a.readonly,limit:a.limit,onInput:g[2]||(g[2]=m=>u()),"input-style":a.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 Ht=e._export_sfc(Rt,[["__scopeId","data-v-5599e141"]]),Ot={class:"hotel-listing"},At={class:"hotel-listing-content-gallery"},Ft={class:"hotel-listing-content-thumbs"},Mt={class:"hotel-listing-content"},zt={class:"hotel-listing-content-header"},Wt={class:"hotel-listing-content-title"},Ut={class:"hotel-listing-content-body"},qt={class:"hotel-listing-content-facilities"},jt=e.defineComponent({__name:"Listing",setup(i){return(t,o)=>(e.openBlock(),e.createElementBlock("div",Ot,[e.createBaseVNode("div",At,[e.createVNode(R.Element,{width:"280px",height:"153px"}),e.createBaseVNode("div",Ft,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(3,n=>e.createVNode(R.Element,{key:n,width:"84px",height:"44px"})),64))])]),e.createBaseVNode("div",Mt,[e.createBaseVNode("div",zt,[e.createBaseVNode("div",Wt,[e.createVNode(R.Element,{height:"30px",width:"60%"}),e.createVNode(R.Element,{height:"30px",width:"30px","border-radius":"100%"})]),e.createVNode(R.Element,{height:"15px",width:"25%"})]),e.createBaseVNode("div",Ut,[e.createVNode(R.Element,{height:"15px"}),e.createVNode(R.Element,{height:"15px"}),e.createVNode(R.Element,{height:"15px"}),e.createVNode(R.Element,{height:"15px"}),e.createVNode(R.Element,{height:"15px",width:"90%"})]),e.createBaseVNode("div",qt,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(5,n=>e.createVNode(R.Element,{key:n,height:"25px",width:"25px","border-radius":"6px"})),64))])])]))}});const G=e._export_sfc(jt,[["__scopeId","data-v-5c132d7f"]]),Gt={class:"hotel-skeleton"},Yt={class:"hotel-skeleton-content"},Kt={class:"hotel-skeleton-sidebar"},Qt=e.defineComponent({__name:"HotelSkeleton",setup(i){return(t,o)=>(e.openBlock(),e.createElementBlock("div",Gt,[e.createBaseVNode("div",Yt,[e.createVNode(Re.AvailabilitySkeleton),e.createVNode(G),e.createVNode(G),e.createVNode(G)]),e.createBaseVNode("div",Kt,[e.createVNode(q.Sidebar)])]))}});const Jt=e._export_sfc(Qt,[["__scopeId","data-v-11247c5f"]]),Xt={id:"booking-availability-container"},Zt={id:"booking-availability-controls"},eo={key:0,"sticky-container":""},to={key:0},oo={key:0},no={key:0};const io={id:"booking-availability-listings"},ro={key:1,id:"booking-availability-no-listings"},so={key:1,id:"booking-availability-no-listings"},ao={key:2,id:"reservation-availability-next-dates"},lo={class:"reservation-special-offers-grid"},uo=["title"],co={key:1,class:"konnectio-listing-loading"},po={class:"fresh-booking-panel"},fo={key:0},ho={key:1},mo={class:"fresh-booking-split-inputs"},go={key:3},yo={class:"fresh-booking-label"},vo={class:"fresh-booking-checkbox-spacing"},_o={class:"booking-reservation-resume-recept-item"},ko={key:1},bo={class:"fresh-booking-checkbox-spacing"},Bo=["onClick"],Vo=e.defineComponent({name:"HotelLayout",__name:"Hotel",props:{accessToken:{},headerLayout:{default:e.BookingHeaderLayout.Minimal},hideListingGroupTitles:{},layout:{},packagesTitleMaxLines:{default:"2"},styling:{}},setup(i){const{t}=e.useI18n(),{templateID:o,title:n,countries:c,areListingsLoading:s,isAvailabilityDataAvailable:f,isPaymentLoading:u,isReservationFormFilled:p,selectedPackage:a,travelingFor:g,arrivalTime:m,departureTime:_,name:l,nameTitle:v,email:k,phone:h,firmName:r,postal:d,city:y,address:b,country:B,remark:E,allergies:C,newsMails:I,roomSelect:T,roomDisplay:x,hasValidRoomSelection:$,getSelectedPackageRoom:O,availabilityData:M}=e.storeToRefs(U.useHotelStore()),{arrivalDate:qe,departureDate:je}=e.storeToRefs(U.useAvailabilityStore()),{currency:j,isRecaptchaEnabled:Cn,disableNewsletterSignup:Ge,arrivalEarliest:Ye,arrivalLatest:Ke,departureEarliest:Qe,departureLatest:Je,enableTracking:Tn,arrivalDefault:Xe,departureDefault:Ze,enablePackages:Sn,hideArrivalDepartureInputs:et,disableArrivalUserSelection:ie,disableNamePrefix:tt,disableDepartureUserSelection:re,disableTravelingFor:ot,disableCompanyField:nt}=e.storeToRefs(e.useUtilityStore());e.useAlertStore();const{initialize:it,createReservation:rt,getSingleListing:xn}=U.useHotelStore(),st=e.computed(()=>[[parseInt(Ye.value.split(":")[0]),parseInt(Ke.value.split(":")[0])]]),at=e.computed(()=>[[parseInt(Qe.value.split(":")[0]),parseInt(Je.value.split(":")[0])]]);function lt(){o.value=NaN}function ut(L){L()}function ct(L,N){qe.value=new Date(L),je.value=new Date(N),location.reload()}async function dt(L){await rt(L)}function pt(L){L()}function ft(){m.value===""&&(m.value=Xe.value),_.value===""&&(_.value=Ze.value)}return e.onMounted(()=>{it(),ft()}),(L,N)=>{const ht=e.resolveDirective("snip");return e.openBlock(),e.createBlock(e.Suspense,null,{default:e.withCtx(()=>[e.createVNode(e._sfc_main$1,{id:"fresh-booking-hotel-module","access-token":L.accessToken,type:"hotel",styling:L.styling},{default:e.withCtx(()=>[e.createVNode(q.MultiStepForm,{title:e.unref(n),layout:L.headerLayout},{availability:e.withCtx(({next:se})=>[e.createVNode(Be,null,{form:e.withCtx(()=>[e.createBaseVNode("div",Xt,[e.createBaseVNode("div",Zt,[e.createVNode(Re.HotelAvailabilityForm,{booking:!0})]),e.unref(s)?(e.openBlock(),e.createElementBlock("div",co,[e.createVNode(G),e.createVNode(G),e.createVNode(G)])):(e.openBlock(),e.createElementBlock("div",eo,[e.unref(M).roomGroups.length>0?(e.openBlock(),e.createElementBlock("div",to,[isNaN(e.unref(o))?(e.openBlock(),e.createElementBlock("div",oo,[e.unref(M).roomGroups.length>0?(e.openBlock(),e.createElementBlock("div",no,[e.createCommentVNode("",!0),e.createBaseVNode("ul",io,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(M).roomGroups,(w,V)=>(e.openBlock(),e.createBlock($t,{room:w,layout:L.layout,key:V},null,8,["room","layout"]))),128))])])):(e.openBlock(),e.createElementBlock("div",ro,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(t)("booking.availability.nothingAvailable")),1)]))])):e.createCommentVNode("",!0)])):e.unref(M).nextAvailableDates.length===0?(e.openBlock(),e.createElementBlock("div",so,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(t)("booking.availability.nothingAvailable")),1)])):(e.openBlock(),e.createElementBlock("div",ao,[e.createBaseVNode("h2",null,[e.createVNode(e.Icon,{icon:"calendar-circle-exclamation",type:"fal",color:"header"}),e.createBaseVNode("span",null,e.toDisplayString(e.unref(t)("booking.availability.nextAvailableDates")),1)]),e.createBaseVNode("ul",lo,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(M).nextAvailableDates,(w,V)=>(e.openBlock(),e.createElementBlock("li",{key:V},[e.createBaseVNode("h3",{title:`${e.unref(e.showDate)(w.fromDate)} - ${e.unref(e.showDate)(w.toDate)}`},[e.withDirectives((e.openBlock(),e.createElementBlock("span",null,[e.createTextVNode(e.toDisplayString(`${e.unref(e.showDate)(w.fromDate)} - ${e.unref(e.showDate)(w.toDate)}`),1)])),[[ht,{lines:1}]])],8,uo),e.createBaseVNode("ul",null,[e.createBaseVNode("li",null,[e.createVNode(e.Icon,{icon:"house",type:"fal",color:"header"}),e.createBaseVNode("span",null,e.toDisplayString(e.unref(t)("booking.availability.units"))+": "+e.toDisplayString(w.roomCount),1)]),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)(w.priceStartFrom,e.unref(j))),1)])]),e.createVNode(e.Clickable,{label:e.unref(t)("booking.availability.selectDates"),"full-width":"",onClickEvent:J=>ct(w.fromDate,w.toDate)},null,8,["label","onClickEvent"])]))),128))])]))]))])]),navigation:e.withCtx(()=>[isNaN(e.unref(o))?(e.openBlock(),e.createBlock(e.Clickable,{key:0,label:e.unref(t)("booking.availability.nextButton"),disabled:!e.unref($),"is-loading":!1,"full-width":"",onClickEvent:w=>pt(se)},null,8,["label","disabled","onClickEvent"])):(e.openBlock(),e.createBlock(e.Clickable,{key:1,label:e.unref(t)("booking.reservation.prevButton"),"full-width":"",onClickEvent:N[0]||(N[0]=w=>lt())},null,8,["label"]))]),_:2},1024)]),reservation:e.withCtx(({next:se,prev:w})=>[e.createVNode(Be,{"show-terms-notice":!0,"show-gift-card":!0},e.createSlots({form:e.withCtx(()=>[e.createBaseVNode("form",po,[!e.unref(et)&&!(e.unref(ie)&&e.unref(re))?(e.openBlock(),e.createElementBlock("ul",{key:0,class:e.normalizeClass({"fresh-booking-split-inputs":!e.unref(ie)&&!e.unref(re)})},[e.unref(ie)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("li",fo,[e.createVNode(Ve,{modelValue:e.unref(m),"onUpdate:modelValue":N[1]||(N[1]=V=>e.isRef(m)?m.value=V:null),label:e.unref(t)("booking.reservation.arrivalTime"),icon:"hourglass-start","hour-range":st.value,required:""},null,8,["modelValue","label","hour-range"])])),e.unref(re)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("li",ho,[e.createVNode(Ve,{modelValue:e.unref(_),"onUpdate:modelValue":N[2]||(N[2]=V=>e.isRef(_)?_.value=V:null),label:e.unref(t)("booking.reservation.departureTime"),icon:"hourglass-end","hour-range":at.value,required:""},null,8,["modelValue","label","hour-range"])]))],2)):e.createCommentVNode("",!0),e.createVNode(Ht,{modelValue:e.unref(l),"onUpdate:modelValue":N[3]||(N[3]=V=>e.isRef(l)?l.value=V:null),title:e.unref(v),"onUpdate:title":N[4]||(N[4]=V=>e.isRef(v)?v.value=V:null),"exclude-title":e.unref(tt),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(W.TextField,{modelValue:e.unref(k),"onUpdate:modelValue":N[5]||(N[5]=V=>e.isRef(k)?k.value=V:null),type:"email",name:"email",autocomplete:"email",label:e.unref(t)("booking.reservation.email"),icon:"at",placeholder:e.unref(t)("booking.reservation.emailPlaceholder"),required:""},null,8,["modelValue","label","placeholder"]),e.unref(Ge)?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(D.Checkbox,{key:1,modelValue:e.unref(I),"onUpdate:modelValue":N[6]||(N[6]=V=>e.isRef(I)?I.value=V:null),type:"checkbox",name:"newsletter",label:e.unref(t)("booking.reservation.newsletterSignUp")},null,8,["modelValue","label"])),e.unref(nt)?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(W.TextField,{key:2,modelValue:e.unref(r),"onUpdate:modelValue":N[7]||(N[7]=V=>e.isRef(r)?r.value=V:null),type:"text",name:"firm",autocomplete:"firm",label:`${e.unref(t)("booking.reservation.companyName")} (${e.unref(t)("booking.reservation.optional")})`,icon:"id-card",placeholder:e.unref(t)("booking.reservation.companyNamePlaceholder")},null,8,["modelValue","label","placeholder"])),e.createVNode(D.PhoneField,{modelValue:e.unref(h),"onUpdate:modelValue":N[8]||(N[8]=V=>e.isRef(h)?h.value=V:null),icon:"phone-office",label:e.unref(t)("booking.reservation.phone"),placeholder:e.unref(t)("booking.reservation.phonePlaceholder"),required:""},null,8,["modelValue","label","placeholder"]),e.createVNode(Pt,{modelValue:e.unref(B),"onUpdate:modelValue":N[9]||(N[9]=V=>e.isRef(B)?B.value=V:null),label:e.unref(t)("booking.reservation.country"),placeholder:e.unref(t)("booking.reservation.countryPlaceholder"),options:e.unref(c),required:""},null,8,["modelValue","label","placeholder","options"]),e.createVNode(W.TextField,{modelValue:e.unref(b),"onUpdate:modelValue":N[10]||(N[10]=V=>e.isRef(b)?b.value=V:null),type:"textarea",name:"address",autocomplete:"street-address",label:e.unref(t)("booking.reservation.streetAddress"),icon:"map-marked",placeholder:e.unref(t)("booking.reservation.streetAddressPlaceholder"),required:""},null,8,["modelValue","label","placeholder"]),e.createBaseVNode("ul",mo,[e.createBaseVNode("li",null,[e.createVNode(W.TextField,{modelValue:e.unref(d),"onUpdate:modelValue":N[11]||(N[11]=V=>e.isRef(d)?d.value=V:null),type:"number",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(W.TextField,{modelValue:e.unref(y),"onUpdate:modelValue":N[12]||(N[12]=V=>e.isRef(y)?y.value=V:null),type:"text",name:"city",autocomplete:"address-level2",label:e.unref(t)("booking.reservation.city"),icon:"city",placeholder:e.unref(t)("booking.reservation.cityPlaceholder"),required:""},null,8,["modelValue","label","placeholder"])])]),e.createVNode(W.TextField,{modelValue:e.unref(E),"onUpdate:modelValue":N[13]||(N[13]=V=>e.isRef(E)?E.value=V:null),type:"textarea",label:`${e.unref(t)("booking.reservation.remark")} (${e.unref(t)("booking.reservation.optional")})`,icon:"info-circle",placeholder:e.unref(t)("booking.reservation.remarkPlaceholder")},null,8,["modelValue","label","placeholder"]),e.createVNode(W.TextField,{modelValue:e.unref(C),"onUpdate:modelValue":N[14]||(N[14]=V=>e.isRef(C)?C.value=V:null),type:"textarea",label:`${e.unref(t)("booking.reservation.allergies")} (${e.unref(t)("booking.reservation.optional")})`,icon:"allergies",placeholder:e.unref(t)("booking.reservation.allergiesPlaceholder")},null,8,["modelValue","label","placeholder"]),e.unref(ot)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",go,[e.createBaseVNode("label",yo,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(t)("booking.reservation.purposeOfStay"))+" ("+e.toDisplayString(e.unref(t)("booking.reservation.optional"))+")",1)]),e.createBaseVNode("ul",vo,[e.createBaseVNode("li",null,[e.createVNode(D.Checkbox,{modelValue:e.unref(g),"onUpdate:modelValue":N[15]||(N[15]=V=>e.isRef(g)?g.value=V:null),type:"radio",name:"travelingFor",label:e.unref(t)("booking.reservation.business"),val:"Business"},null,8,["modelValue","label"])]),e.createBaseVNode("li",null,[e.createVNode(D.Checkbox,{modelValue:e.unref(g),"onUpdate:modelValue":N[16]||(N[16]=V=>e.isRef(g)?g.value=V:null),type:"radio",name:"travelingFor",label:e.unref(t)("booking.reservation.pleasure"),val:"Pleasure"},null,8,["modelValue","label"])]),e.createBaseVNode("li",null,[e.createVNode(D.Checkbox,{modelValue:e.unref(g),"onUpdate:modelValue":N[17]||(N[17]=V=>e.isRef(g)?g.value=V:null),type:"radio",name:"travelingFor",label:e.unref(t)("booking.reservation.bleasure"),val:"Bleasure"},null,8,["modelValue","label"])])])]))])]),navigation:e.withCtx(()=>[e.createBaseVNode("div",null,[e.createVNode(e.Clickable,{label:e.unref(t)("general.confirmReservation"),disabled:!e.unref(p),"is-loading":e.unref(u),"full-width":"",onClickEvent:V=>dt(se)},null,8,["label","disabled","is-loading","onClickEvent"]),e.createBaseVNode("button",{class:"konnectio-abort-reservation",onClick:e.withModifiers(V=>ut(w),["prevent"])},[e.createBaseVNode("span",null,e.toDisplayString(e.unref(t)("general.abortReservation")),1)],8,Bo)])]),_:2},[isNaN(e.unref(o))?{name:"addons",fn:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(x),V=>(e.openBlock(),e.createElementBlock("li",{key:V.roomGroupID},[e.createBaseVNode("h6",null,[e.createBaseVNode("span",null,e.toDisplayString(V.title),1)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(V.variants,(J,H)=>(e.openBlock(),e.createElementBlock("div",{key:J.ratePlanID},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(J.rooms,(S,mt)=>(e.openBlock(),e.createElementBlock("div",{key:mt},[e.createBaseVNode("div",_o,[e.createBaseVNode("span",null,e.toDisplayString(`${J.name}`),1),e.createBaseVNode("b",null,[e.createVNode(e.Icon,{icon:"male",type:"fas",color:"font"}),e.createBaseVNode("span",null,e.toDisplayString(S.adultsCount),1),S.childrenCount>0?(e.openBlock(),e.createBlock(e.Icon,{key:0,icon:"child",type:"fas",color:"font"})):e.createCommentVNode("",!0),S.childrenCount>0?(e.openBlock(),e.createElementBlock("span",ko,e.toDisplayString(S.childrenCount),1)):e.createCommentVNode("",!0)])]),e.createBaseVNode("ul",bo,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(V.addons,({quantityStrategy:Y,id:P,name:K,price:Q})=>(e.openBlock(),e.createElementBlock("li",{key:P},[Y===e.unref(e.QuantityStrategy).PerAdultPerNight?(e.openBlock(),e.createBlock(D.Checkbox,{key:0,modelValue:e.unref(T)[V.roomGroupID][H].config[S.configIdx].addons[S.roomIdx][P],"onUpdate:modelValue":A=>e.unref(T)[V.roomGroupID][H].config[S.configIdx].addons[S.roomIdx][P]=A,label:K,price:`${e.unref(e.showPrice)(Q,e.unref(j))} ${e.unref(t)("general.perAdultPerNight")}`},null,8,["modelValue","onUpdate:modelValue","label","price"])):Y===e.unref(e.QuantityStrategy).PerChildPerNight?(e.openBlock(),e.createBlock(D.Checkbox,{key:1,modelValue:e.unref(T)[V.roomGroupID][H].config[S.configIdx].addons[S.roomIdx][P],"onUpdate:modelValue":A=>e.unref(T)[V.roomGroupID][H].config[S.configIdx].addons[S.roomIdx][P]=A,label:K,price:`${e.unref(e.showPrice)(Q,e.unref(j))} ${e.unref(t)("general.perChildPerNight")}`},null,8,["modelValue","onUpdate:modelValue","label","price"])):Y===e.unref(e.QuantityStrategy).PerNight?(e.openBlock(),e.createBlock(D.Checkbox,{key:2,modelValue:e.unref(T)[V.roomGroupID][H].config[S.configIdx].addons[S.roomIdx][P],"onUpdate:modelValue":A=>e.unref(T)[V.roomGroupID][H].config[S.configIdx].addons[S.roomIdx][P]=A,label:K,price:`${e.unref(e.showPrice)(Q,e.unref(j))} ${e.unref(t)("general.perNight")}`},null,8,["modelValue","onUpdate:modelValue","label","price"])):Y===e.unref(e.QuantityStrategy).PerUnit?(e.openBlock(),e.createBlock(D.Checkbox,{key:3,modelValue:e.unref(T)[V.roomGroupID][H].config[S.configIdx].addons[S.roomIdx][P],"onUpdate:modelValue":A=>e.unref(T)[V.roomGroupID][H].config[S.configIdx].addons[S.roomIdx][P]=A,label:K,price:`${e.unref(e.showPrice)(Q,e.unref(j))}`},null,8,["modelValue","onUpdate:modelValue","label","price"])):Y===e.unref(e.QuantityStrategy).OneTimePayment?(e.openBlock(),e.createBlock(D.Checkbox,{key:4,modelValue:e.unref(T)[V.roomGroupID][H].config[S.configIdx].addons[S.roomIdx][P],"onUpdate:modelValue":A=>e.unref(T)[V.roomGroupID][H].config[S.configIdx].addons[S.roomIdx][P]=A,label:K,price:`${e.unref(e.showPrice)(Q,e.unref(j))}`},null,8,["modelValue","onUpdate:modelValue","label","price"])):e.createCommentVNode("",!0)]))),128))])]))),128))]))),128))]))),128))]),key:"0"}:void 0]),1024)]),payment:e.withCtx(()=>[e.createVNode(D.CheckoutWindow)]),confirmation:e.withCtx(()=>[e.createVNode(q.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(Jt)]),_:1})}}});const Eo=e._export_sfc(Vo,[["__scopeId","data-v-7aeea0d0"]]);var He={exports:{}},ae={exports:{}},le={exports:{}},Ee;function _e(){return Ee||(Ee=1,function(i){(function(t,o){i.exports?i.exports=o():t.EvEmitter=o()})(typeof window<"u"?window:ne.commonjsGlobal,function(){function t(){}var o=t.prototype;return o.on=function(n,c){if(!(!n||!c)){var s=this._events=this._events||{},f=s[n]=s[n]||[];return f.indexOf(c)==-1&&f.push(c),this}},o.once=function(n,c){if(!(!n||!c)){this.on(n,c);var s=this._onceEvents=this._onceEvents||{},f=s[n]=s[n]||{};return f[c]=!0,this}},o.off=function(n,c){var s=this._events&&this._events[n];if(!(!s||!s.length)){var f=s.indexOf(c);return f!=-1&&s.splice(f,1),this}},o.emitEvent=function(n,c){var s=this._events&&this._events[n];if(!(!s||!s.length)){s=s.slice(0),c=c||[];for(var f=this._onceEvents&&this._onceEvents[n],u=0;u<s.length;u++){var p=s[u],a=f&&f[p];a&&(this.off(n,p),delete f[p]),p.apply(this,c)}return this}},o.allOff=function(){delete this._events,delete this._onceEvents},t})}(le)),le.exports}var ue={exports:{}};/*!
|
|
1
|
+
"use strict";const e=require("./SelectField.vue_vue_type_style_index_0_lang-43c8a651.cjs"),D=require("./index-751b236a.cjs"),q=require("./ThankYou-bcce79d1.cjs"),U=require("./DateField.vue_vue_type_style_index_0_lang-8ddce55e.cjs"),Re=require("./AvailabilitySkeleton-cc8eafe0.cjs"),gt=require("./NumberField.vue_vue_type_script_setup_true_lang-7676783c.cjs"),W=require("./TextField-379793fe.cjs"),R=require("./_-de6b4115.cjs"),ne=require("./_commonjsHelpers-6763f629.cjs");require("./ActionField-251eb289.cjs");require("./Field-cbc16db4.cjs");const yt=["onClick"],Be=e.defineComponent({__name:"HotelReservationForm",props:{showGiftCard:{type:Boolean,default:!1},showTermsNotice:{type:Boolean,default:!1}},setup(i){const{t}=e.useI18n(),o=e.useSlots(),{hideArrivalDepartureInputs:n,disableArrivalUserSelection:c,disableDepartureUserSelection:s,arrivalDefault:f,departureDefault:u,currency:p}=e.storeToRefs(e.useUtilityStore()),{arrivalDate:a,departureDate:g}=e.storeToRefs(U.useAvailabilityStore()),{arrivalTime:m,departureTime:_,roomDisplay:l,templateID:v,totalPrice:k,areListingsLoading:h}=e.storeToRefs(U.useHotelStore()),{removeRoom:r}=U.useHotelStore();function d(y){return y.reduce((B,{totalPrice:E})=>B+E,0)}return(y,b)=>(e.openBlock(),e.createBlock(q.ReservationForm,{"total-price":e.unref(k),"show-gift-card":y.showGiftCard,"show-terms-notice":y.showTermsNotice,"is-sidebar-loading":e.unref(h),notice:e.unref(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(n)?e.unref(e.showDate)(e.unref(a)):`${e.unref(e.showDate)(e.unref(a))}, ${e.unref(c)?e.unref(f):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(n)?e.unref(e.showDate)(e.unref(g)):`${e.unref(e.showDate)(e.unref(g))}, ${e.unref(s)?e.unref(u):e.unref(_)}`),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(a),e.unref(g)))+" "+e.toDisplayString(e.unref(e.lowercase)(e.unref(e.daysBetweenDates)(e.unref(a),e.unref(g))===1?e.unref(t)("booking.reservation.night"):e.unref(t)("booking.reservation.nights"))),1)])]),"price-summary":e.withCtx(()=>[isNaN(e.unref(v))&&e.unref(l).length>0?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(e.unref(l),({roomGroupID:B,title:E,variants:C})=>(e.openBlock(),e.createElementBlock("div",{key:B},[e.createBaseVNode("h6",null,[e.createBaseVNode("span",null,e.toDisplayString(E),1)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(C,(I,T)=>(e.openBlock(),e.createElementBlock("div",{key:T},[e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(I.rooms,(x,$)=>(e.openBlock(),e.createElementBlock("ul",{key:$},[e.createBaseVNode("li",null,[e.createBaseVNode("span",null,[e.createBaseVNode("span",null,e.toDisplayString(I.name),1),e.createBaseVNode("span",null,[e.createTextVNode("( "),e.createVNode(e.Icon,{icon:"male",type:"fas",color:"font"}),e.createBaseVNode("span",null,e.toDisplayString(x.adultsCount),1),e.createTextVNode(") "),x.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(x.childrenCount),1),e.createTextVNode(") ")],64)):e.createCommentVNode("",!0)])]),e.createBaseVNode("b",null,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(e.showPrice)(x.totalPrice,e.unref(p))),1),e.createBaseVNode("span",{class:"fresh-booking-footer-summery-remove",onClick:e.withModifiers(O=>e.unref(r)(B,T,$),["prevent"])},[e.createVNode(e.Icon,{icon:"times",type:"fas","icon-color":"#ff0000"})],8,yt)])]),e.createBaseVNode("li",null,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(t)("booking.reservation.addons")),1),e.createBaseVNode("b",null,e.toDisplayString(e.unref(e.showPrice)(d(x.roomAddons),e.unref(p))),1)])]))),128))]))),128))]))),128)):e.createCommentVNode("",!0)]),navigation:e.withCtx(()=>[e.renderSlot(y.$slots,"navigation")]),_:2},[e.unref(o).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"]))}}),vt=e.defineStore("tracking",()=>{const{enableTracking:i,googleApiKey:t}=e.storeToRefs(e.useUtilityStore());function o(){console.log("Tracking"),console.log(t),D.setOptions({config:{id:t.value,params:{send_page_view:!1}},enabled:i.value})}function n({id:p,name:a,value:g,label:m,category:_="general"}){return{items:[{id:p,name:a}],event_label:m,event_category:_,value:g}}function c(p,a){D.event(p,n(a))}function s(p,a,g){c("add_to_cart",{id:p,name:a,value:g,label:"Added to cart",category:"ecommerce"})}function f(p,a,g){c("remove_from_cart",{id:p,name:a,value:g,label:"Removed to cart",category:"ecommerce"})}function u(p){D.event("view_item",{items:[{name:p}]})}return{setup:o,viewItem:u,addToCart:s,removeFromCart:f}}),_t={style:{display:"flex","align-items":"baseline"}},kt={key:0},bt={style:{display:"flex","align-items":"baseline"}},Bt={key:0};const Vt=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{currency:o}=e.storeToRefs(e.useUtilityStore()),n=t,c=i;function s(u){n("update:modelValue",u)}const f=e.computed({get:()=>c.modelValue,set:u=>s(u)});return(u,p)=>(e.openBlock(),e.createBlock(e._sfc_main,{modelValue:f.value,"onUpdate:modelValue":p[0]||(p[0]=a=>f.value=a),label:u.label,placeholder:"Select guest configuration",labelKey:"label",valueKey:"value","icon-placement":"label",options:u.options,required:u.required},{option:e.withCtx(({data:a})=>[e.createBaseVNode("div",_t,[e.createBaseVNode("div",null,[e.createVNode(e.Icon,{icon:"male",type:"fas"}),e.createBaseVNode("span",null,e.toDisplayString(`${a.adults}`),1)]),a.children>0?(e.openBlock(),e.createElementBlock("div",kt,[e.createVNode(e.Icon,{icon:"child",type:"fas"}),e.createBaseVNode("span",null,e.toDisplayString(`${a.children}`),1)])):e.createCommentVNode("",!0),e.createBaseVNode("div",null,e.toDisplayString(`(${e.unref(e.showPrice)(a.price,e.unref(o))})`),1)])]),"selected-option":e.withCtx(({data:a})=>[e.createBaseVNode("div",bt,[e.createBaseVNode("div",null,[e.createVNode(e.Icon,{icon:"male",type:"fas"}),e.createBaseVNode("span",null,e.toDisplayString(`${a.adults}`),1)]),a.children>0?(e.openBlock(),e.createElementBlock("div",Bt,[e.createVNode(e.Icon,{icon:"child",type:"fas"}),e.createBaseVNode("span",null,e.toDisplayString(`${a.children}`),1)])):e.createCommentVNode("",!0),e.createCommentVNode("",!0)])]),_:1},8,["modelValue","label","options","required"]))}}),Et={key:0,class:"fresh-booking-modal-facilities"},Nt={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"},Ct={class:"grid-sizer"},Tt=e.defineComponent({__name:"Info",props:{title:{},description:{},facilities:{}},setup(i){return(t,o)=>{const n=e.resolveDirective("masonry-tile"),c=e.resolveDirective("masonry");return e.openBlock(),e.createBlock(q._sfc_main,{title:t.title,description:t.description},{default:e.withCtx(()=>[t.facilities&&t.facilities.length!==0?(e.openBlock(),e.createElementBlock("div",Et,[e.withDirectives((e.openBlock(),e.createElementBlock("ul",Nt,[e.withDirectives(e.createBaseVNode("div",Ct,null,512),[[n]]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.facilities,({name:s,subFacilities:f},u)=>e.withDirectives((e.openBlock(),e.createElementBlock("li",{key:u,class:"fresh-booking-modal-facility"},[e.createBaseVNode("h6",null,[e.createBaseVNode("span",null,e.toDisplayString(s),1)]),e.createBaseVNode("ul",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f,({name:p},a)=>(e.openBlock(),e.createElementBlock("li",{key:a},e.toDisplayString(p),1))),128))])])),[[n]])),128))])),[[c]])])):e.createCommentVNode("",!0)]),_:1},8,["title","description"])}}});const St=e._export_sfc(Tt,[["__scopeId","data-v-4e226a17"]]),xt={class:"fresh-booking-listing-config-body"},It={class:"fresh-booking-listing-units-body"};const Dt=e.defineComponent({__name:"Hotel",props:{room:{},layout:{}},setup(i){const{t}=e.useI18n(),o=i,n=e.ref([]);function c(b){n.value[b].config.push({id:NaN,units:0,addons:[]})}const s=e.computed(()=>o.room.rates.map(b=>({label:b.name,value:b.id}))),f=e.computed(()=>n.value.flatMap(b=>b.id));e.computed(()=>s.value.filter(b=>!f.value.includes(b.value))),e.storeToRefs(e.useUtilityStore());const{roomSelect:u}=e.storeToRefs(U.useHotelStore()),{viewItem:p}=vt(),a=(b,B)=>o.room.rates.find(E=>E.id===b)?.occupantRates.find(E=>E.index===B),g=e.computed(()=>o.room.rates.reduce((b,B)=>b<B.rackRate?b:B.rackRate,1/0)),m=e.computed(()=>o.room.rates.every(b=>b.isBreakfastIncluded===!0)),_=(b,B)=>a(b,B)?a(b,B)?.rooms:null,l=b=>o.room.rates.length>0?o.room.rates.find(B=>B.id===b)?.occupantRates.map(B=>({value:B.index,price:B.totalPrice,adults:B.adultsCount,children:B.childrenCount,hasBreakfast:B.hasBreakfast}))||[]:[],v=e.computed(()=>o.room.rates.length>1),{open:k,close:h}=e.Go({component:St,attrs:{title:o.room.title,description:o.room.description,facilities:o.room.facilities,onConfirm(){h()}}});function r(){k(),p(o.room.title)}function d(){v.value?n.value.push({id:void 0,config:[{id:o.room.rates[0].occupantRateIndex||NaN,units:0,addons:[]}]}):n.value.push({id:o.room.rates[0].id,config:[{id:o.room.rates[0].occupantRateIndex||NaN,units:0,addons:[]}]})}e.onMounted(()=>{d()});const y=e.computed(()=>JSON.parse(JSON.stringify(n.value)));return e.watch(y,(b,B)=>{B.length>0&&b.forEach((E,C)=>{E.config.forEach((I,T)=>{const x=I.units,$=B[C].config[T].units;x!==$&&(x>$?n.value[C].config[T].addons.push({}):n.value[C].config[T].addons.pop())})})},{deep:!0}),e.watch(n,()=>{u.value[o.room.id]=n.value},{deep:!0}),(b,B)=>(e.openBlock(),e.createBlock(q.Base,{"listing-id":b.room.id,gallery:b.room.images,name:b.room.title,description:b.room.description,layout:b.layout,facilities:b.room.facilities,"prices-from":g.value,"includes-breakfast":m.value,callback:r,style:{"--inputBackground":"transparent"}},{action:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.value,(E,C)=>(e.openBlock(),e.createElementBlock("div",{key:E.id,class:"freshbooking-hotel-room"},[v.value?(e.openBlock(),e.createBlock(e._sfc_main,{key:0,modelValue:E.id,"onUpdate:modelValue":I=>E.id=I,label:e.unref(t)("hotel.roomVariant"),placeholder:e.unref(t)("hotel.chooseARoomVariant"),options:s.value},null,8,["modelValue","onUpdate:modelValue","label","placeholder","options"])):e.createCommentVNode("",!0),e.createBaseVNode("div",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(b.room.rates,({id:I,maximumAdults:T})=>(e.openBlock(),e.createElementBlock("div",{key:I},[E.id===I?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(E.config,(x,$)=>(e.openBlock(),e.createElementBlock("div",{key:$,class:"booking-availability-listing-action-selective"},[e.createBaseVNode("ul",xt,[(e.openBlock(),e.createBlock(Vt,{key:0,modelValue:x.id,"onUpdate:modelValue":O=>x.id=O,description:`Maximum adults: ${T}`,icon:"male","icon-type":"fas",label:e.unref(t)("availability.adults"),options:l(I)},null,8,["modelValue","onUpdate:modelValue","description","label","options"]))]),e.createBaseVNode("ul",It,[e.createVNode(gt._sfc_main,{modelValue:x.units,"onUpdate:modelValue":O=>x.units=O,description:`Available units: ${_(E.id,x.id)}`,icon:"house","icon-type":"fas","icon-placement":"label",label:e.unref(t)("booking.availability.units"),minValue:0,"max-value":_(I,x.id)||1/0},null,8,["modelValue","onUpdate:modelValue","description","label","max-value"])]),e.createCommentVNode("",!0)]))),128)):e.createCommentVNode("",!0)]))),128))])]))),128))]),_:1},8,["listing-id","gallery","name","description","layout","facilities","prices-from","includes-breakfast"]))}});const $t=e._export_sfc(Dt,[["__scopeId","data-v-2d10462e"]]),Ve=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 o=t,n=i;function c(f){o("update:modelValue",f)}const s=e.ref(n.modelValue);return e.watch(s,f=>{c(f)}),(f,u)=>(e.openBlock(),e.createBlock(U._sfc_main,{modelValue:s.value,"onUpdate:modelValue":u[0]||(u[0]=p=>s.value=p),type:"time",label:f.label,id:f.id,name:f.name,icon:f.icon,"icon-type":f.iconType,"icon-color":f.iconColor,"auto-apply":!0,required:f.required,readonly:f.readonly},null,8,["modelValue","label","id","name","icon","icon-type","icon-color","required","readonly"]))}});const wt={style:{display:"flex","align-items":"baseline"}},Lt=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:o}=e.useI18n(),n=t,c=i;function s(u){n("update:modelValue",u)}const f=e.computed({get:()=>c.modelValue,set:u=>s(u)});return(u,p)=>(e.openBlock(),e.createBlock(e._sfc_main,{modelValue:f.value,"onUpdate:modelValue":p[0]||(p[0]=a=>f.value=a),label:u.label,placeholder:e.unref(o)("booking.reservation.countryPlaceholder"),labelKey:"name",valueKey:"id",options:u.options,required:u.required},{option:e.withCtx(({data:a})=>[e.createBaseVNode("i",{class:e.normalizeClass(["konnectio-flag-icon",a.iso])},null,2),e.createBaseVNode("span",null,e.toDisplayString(a.name),1)]),"selected-option":e.withCtx(({data:a})=>[e.createBaseVNode("div",wt,[e.createBaseVNode("i",{class:e.normalizeClass(["konnectio-flag-icon",a.iso])},null,2),e.createBaseVNode("span",null,e.toDisplayString(a.name),1)])]),_:1},8,["modelValue","label","placeholder","options","required"]))}});const Pt=e._export_sfc(Lt,[["__scopeId","data-v-1462612d"]]),Rt=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 o=i,n=t,c=o.id||e.ranId(),s=e.ref(""),f=e.ref(2);function u(){n("update:modelValue",s.value)}e.watch(f,a=>{n("update:title",a)});const{t:p}=e.useI18n();return e.onMounted(()=>{o.modelValue&&(s.value=o.modelValue),o.title&&(f.value=o.title)}),(a,g)=>(e.openBlock(),e.createBlock(e.InputField,{label:a.label,id:e.unref(c),required:a.required,type:"fresh-booking-name-field",readonly:a.readonly,limit:a.limit},{default:e.withCtx(()=>[e.createBaseVNode("div",{class:e.normalizeClass(["fresh-booking-name-input",{"no-title":a.excludeTitle}])},[a.excludeTitle?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e._sfc_main,{key:0,modelValue:f.value,"onUpdate:modelValue":g[0]||(g[0]=m=>f.value=m),id:e.unref(e.ranId)(),icon:a.icon,"icon-color":a.iconColor,"icon-type":a.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:a.readonly,"hide-button":"","input-style":a.inputStyle},null,8,["modelValue","id","icon","icon-color","icon-type","options","readonly","input-style"])),e.createVNode(W.TextField,{modelValue:s.value,"onUpdate:modelValue":g[1]||(g[1]=m=>s.value=m),type:"text",name:"name",autocomplete:"name",id:e.unref(c),icon:a.excludeTitle?a.icon:void 0,"icon-color":a.iconColor,"icon-type":a.iconType,placeholder:a.placeholder,required:a.required,readonly:a.readonly,limit:a.limit,onInput:g[2]||(g[2]=m=>u()),"input-style":a.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 Ht=e._export_sfc(Rt,[["__scopeId","data-v-5599e141"]]),Ot={class:"hotel-listing"},At={class:"hotel-listing-content-gallery"},Ft={class:"hotel-listing-content-thumbs"},Mt={class:"hotel-listing-content"},zt={class:"hotel-listing-content-header"},Wt={class:"hotel-listing-content-title"},Ut={class:"hotel-listing-content-body"},qt={class:"hotel-listing-content-facilities"},jt=e.defineComponent({__name:"Listing",setup(i){return(t,o)=>(e.openBlock(),e.createElementBlock("div",Ot,[e.createBaseVNode("div",At,[e.createVNode(R.Element,{width:"280px",height:"153px"}),e.createBaseVNode("div",Ft,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(3,n=>e.createVNode(R.Element,{key:n,width:"84px",height:"44px"})),64))])]),e.createBaseVNode("div",Mt,[e.createBaseVNode("div",zt,[e.createBaseVNode("div",Wt,[e.createVNode(R.Element,{height:"30px",width:"60%"}),e.createVNode(R.Element,{height:"30px",width:"30px","border-radius":"100%"})]),e.createVNode(R.Element,{height:"15px",width:"25%"})]),e.createBaseVNode("div",Ut,[e.createVNode(R.Element,{height:"15px"}),e.createVNode(R.Element,{height:"15px"}),e.createVNode(R.Element,{height:"15px"}),e.createVNode(R.Element,{height:"15px"}),e.createVNode(R.Element,{height:"15px",width:"90%"})]),e.createBaseVNode("div",qt,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(5,n=>e.createVNode(R.Element,{key:n,height:"25px",width:"25px","border-radius":"6px"})),64))])])]))}});const G=e._export_sfc(jt,[["__scopeId","data-v-5c132d7f"]]),Gt={class:"hotel-skeleton"},Yt={class:"hotel-skeleton-content"},Kt={class:"hotel-skeleton-sidebar"},Qt=e.defineComponent({__name:"HotelSkeleton",setup(i){return(t,o)=>(e.openBlock(),e.createElementBlock("div",Gt,[e.createBaseVNode("div",Yt,[e.createVNode(Re.AvailabilitySkeleton),e.createVNode(G),e.createVNode(G),e.createVNode(G)]),e.createBaseVNode("div",Kt,[e.createVNode(q.Sidebar)])]))}});const Jt=e._export_sfc(Qt,[["__scopeId","data-v-11247c5f"]]),Xt={id:"booking-availability-container"},Zt={id:"booking-availability-controls"},eo={key:0,"sticky-container":""},to={key:0},oo={key:0},no={key:0};const io={id:"booking-availability-listings"},ro={key:1,id:"booking-availability-no-listings"},so={key:1,id:"booking-availability-no-listings"},ao={key:2,id:"reservation-availability-next-dates"},lo={class:"reservation-special-offers-grid"},uo=["title"],co={key:1,class:"konnectio-listing-loading"},po={class:"fresh-booking-panel"},fo={key:0},ho={key:1},mo={class:"fresh-booking-split-inputs"},go={key:3},yo={class:"fresh-booking-label"},vo={class:"fresh-booking-checkbox-spacing"},_o={class:"booking-reservation-resume-recept-item"},ko={key:1},bo={class:"fresh-booking-checkbox-spacing"},Bo=["onClick"],Vo=e.defineComponent({name:"HotelLayout",__name:"Hotel",props:{accessToken:{},headerLayout:{default:e.BookingHeaderLayout.Minimal},hideListingGroupTitles:{},layout:{},packagesTitleMaxLines:{default:"2"},styling:{}},setup(i){const{t}=e.useI18n(),{templateID:o,title:n,countries:c,areListingsLoading:s,isAvailabilityDataAvailable:f,isPaymentLoading:u,isReservationFormFilled:p,selectedPackage:a,travelingFor:g,arrivalTime:m,departureTime:_,name:l,nameTitle:v,email:k,phone:h,firmName:r,postal:d,city:y,address:b,country:B,remark:E,allergies:C,newsMails:I,roomSelect:T,roomDisplay:x,hasValidRoomSelection:$,getSelectedPackageRoom:O,availabilityData:M}=e.storeToRefs(U.useHotelStore()),{arrivalDate:qe,departureDate:je}=e.storeToRefs(U.useAvailabilityStore()),{currency:j,isRecaptchaEnabled:Cn,disableNewsletterSignup:Ge,arrivalEarliest:Ye,arrivalLatest:Ke,departureEarliest:Qe,departureLatest:Je,enableTracking:Tn,arrivalDefault:Xe,departureDefault:Ze,enablePackages:Sn,hideArrivalDepartureInputs:et,disableArrivalUserSelection:ie,disableNamePrefix:tt,disableDepartureUserSelection:re,disableTravelingFor:ot,disableCompanyField:nt}=e.storeToRefs(e.useUtilityStore());e.useAlertStore();const{initialize:it,createReservation:rt,getSingleListing:xn}=U.useHotelStore(),st=e.computed(()=>[[parseInt(Ye.value.split(":")[0]),parseInt(Ke.value.split(":")[0])]]),at=e.computed(()=>[[parseInt(Qe.value.split(":")[0]),parseInt(Je.value.split(":")[0])]]);function lt(){o.value=NaN}function ut(L){L()}function ct(L,N){qe.value=new Date(L),je.value=new Date(N),location.reload()}async function dt(L){await rt(L)}function pt(L){L()}function ft(){m.value===""&&(m.value=Xe.value),_.value===""&&(_.value=Ze.value)}return e.onMounted(()=>{it(),ft()}),(L,N)=>{const ht=e.resolveDirective("snip");return e.openBlock(),e.createBlock(e.Suspense,null,{default:e.withCtx(()=>[e.createVNode(e._sfc_main$1,{id:"fresh-booking-hotel-module","access-token":L.accessToken,type:"hotel",styling:L.styling},{default:e.withCtx(()=>[e.createVNode(q.MultiStepForm,{title:e.unref(n),layout:L.headerLayout},{availability:e.withCtx(({next:se})=>[e.createVNode(Be,null,{form:e.withCtx(()=>[e.createBaseVNode("div",Xt,[e.createBaseVNode("div",Zt,[e.createVNode(Re.HotelAvailabilityForm,{booking:!0})]),e.unref(s)?(e.openBlock(),e.createElementBlock("div",co,[e.createVNode(G),e.createVNode(G),e.createVNode(G)])):(e.openBlock(),e.createElementBlock("div",eo,[e.unref(M).roomGroups.length>0?(e.openBlock(),e.createElementBlock("div",to,[isNaN(e.unref(o))?(e.openBlock(),e.createElementBlock("div",oo,[e.unref(M).roomGroups.length>0?(e.openBlock(),e.createElementBlock("div",no,[e.createCommentVNode("",!0),e.createBaseVNode("ul",io,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(M).roomGroups,(w,V)=>(e.openBlock(),e.createBlock($t,{room:w,layout:L.layout,key:V},null,8,["room","layout"]))),128))])])):(e.openBlock(),e.createElementBlock("div",ro,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(t)("booking.availability.nothingAvailable")),1)]))])):e.createCommentVNode("",!0)])):e.unref(M).nextAvailableDates.length===0?(e.openBlock(),e.createElementBlock("div",so,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(t)("booking.availability.nothingAvailable")),1)])):(e.openBlock(),e.createElementBlock("div",ao,[e.createBaseVNode("h2",null,[e.createVNode(e.Icon,{icon:"calendar-circle-exclamation",type:"fal",color:"header"}),e.createBaseVNode("span",null,e.toDisplayString(e.unref(t)("booking.availability.nextAvailableDates")),1)]),e.createBaseVNode("ul",lo,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(M).nextAvailableDates,(w,V)=>(e.openBlock(),e.createElementBlock("li",{key:V},[e.createBaseVNode("h3",{title:`${e.unref(e.showDate)(w.fromDate)} - ${e.unref(e.showDate)(w.toDate)}`},[e.withDirectives((e.openBlock(),e.createElementBlock("span",null,[e.createTextVNode(e.toDisplayString(`${e.unref(e.showDate)(w.fromDate)} - ${e.unref(e.showDate)(w.toDate)}`),1)])),[[ht,{lines:1}]])],8,uo),e.createBaseVNode("ul",null,[e.createBaseVNode("li",null,[e.createVNode(e.Icon,{icon:"house",type:"fal",color:"header"}),e.createBaseVNode("span",null,e.toDisplayString(e.unref(t)("booking.availability.units"))+": "+e.toDisplayString(w.roomCount),1)]),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)(w.priceStartFrom,e.unref(j))),1)])]),e.createVNode(e.Clickable,{label:e.unref(t)("booking.availability.selectDates"),"full-width":"",onClickEvent:J=>ct(w.fromDate,w.toDate)},null,8,["label","onClickEvent"])]))),128))])]))]))])]),navigation:e.withCtx(()=>[isNaN(e.unref(o))?(e.openBlock(),e.createBlock(e.Clickable,{key:0,label:e.unref(t)("booking.availability.nextButton"),disabled:!e.unref($),"is-loading":!1,"full-width":"",onClickEvent:w=>pt(se)},null,8,["label","disabled","onClickEvent"])):(e.openBlock(),e.createBlock(e.Clickable,{key:1,label:e.unref(t)("booking.reservation.prevButton"),"full-width":"",onClickEvent:N[0]||(N[0]=w=>lt())},null,8,["label"]))]),_:2},1024)]),reservation:e.withCtx(({next:se,prev:w})=>[e.createVNode(Be,{"show-terms-notice":!0,"show-gift-card":!0},e.createSlots({form:e.withCtx(()=>[e.createBaseVNode("form",po,[!e.unref(et)&&!(e.unref(ie)&&e.unref(re))?(e.openBlock(),e.createElementBlock("ul",{key:0,class:e.normalizeClass({"fresh-booking-split-inputs":!e.unref(ie)&&!e.unref(re)})},[e.unref(ie)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("li",fo,[e.createVNode(Ve,{modelValue:e.unref(m),"onUpdate:modelValue":N[1]||(N[1]=V=>e.isRef(m)?m.value=V:null),label:e.unref(t)("booking.reservation.arrivalTime"),icon:"hourglass-start","hour-range":st.value,required:""},null,8,["modelValue","label","hour-range"])])),e.unref(re)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("li",ho,[e.createVNode(Ve,{modelValue:e.unref(_),"onUpdate:modelValue":N[2]||(N[2]=V=>e.isRef(_)?_.value=V:null),label:e.unref(t)("booking.reservation.departureTime"),icon:"hourglass-end","hour-range":at.value,required:""},null,8,["modelValue","label","hour-range"])]))],2)):e.createCommentVNode("",!0),e.createVNode(Ht,{modelValue:e.unref(l),"onUpdate:modelValue":N[3]||(N[3]=V=>e.isRef(l)?l.value=V:null),title:e.unref(v),"onUpdate:title":N[4]||(N[4]=V=>e.isRef(v)?v.value=V:null),"exclude-title":e.unref(tt),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(W.TextField,{modelValue:e.unref(k),"onUpdate:modelValue":N[5]||(N[5]=V=>e.isRef(k)?k.value=V:null),type:"email",name:"email",autocomplete:"email",label:e.unref(t)("booking.reservation.email"),icon:"at",placeholder:e.unref(t)("booking.reservation.emailPlaceholder"),required:""},null,8,["modelValue","label","placeholder"]),e.unref(Ge)?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(D.Checkbox,{key:1,modelValue:e.unref(I),"onUpdate:modelValue":N[6]||(N[6]=V=>e.isRef(I)?I.value=V:null),type:"checkbox",name:"newsletter",label:e.unref(t)("booking.reservation.newsletterSignUp")},null,8,["modelValue","label"])),e.unref(nt)?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(W.TextField,{key:2,modelValue:e.unref(r),"onUpdate:modelValue":N[7]||(N[7]=V=>e.isRef(r)?r.value=V:null),type:"text",name:"firm",autocomplete:"firm",label:`${e.unref(t)("booking.reservation.companyName")} (${e.unref(t)("booking.reservation.optional")})`,icon:"id-card",placeholder:e.unref(t)("booking.reservation.companyNamePlaceholder")},null,8,["modelValue","label","placeholder"])),e.createVNode(D.PhoneField,{modelValue:e.unref(h),"onUpdate:modelValue":N[8]||(N[8]=V=>e.isRef(h)?h.value=V:null),icon:"phone-office",label:e.unref(t)("booking.reservation.phone"),placeholder:e.unref(t)("booking.reservation.phonePlaceholder"),required:""},null,8,["modelValue","label","placeholder"]),e.createVNode(Pt,{modelValue:e.unref(B),"onUpdate:modelValue":N[9]||(N[9]=V=>e.isRef(B)?B.value=V:null),label:e.unref(t)("booking.reservation.country"),placeholder:e.unref(t)("booking.reservation.countryPlaceholder"),options:e.unref(c),required:""},null,8,["modelValue","label","placeholder","options"]),e.createVNode(W.TextField,{modelValue:e.unref(b),"onUpdate:modelValue":N[10]||(N[10]=V=>e.isRef(b)?b.value=V:null),type:"textarea",name:"address",autocomplete:"street-address",label:e.unref(t)("booking.reservation.streetAddress"),icon:"map-marked",placeholder:e.unref(t)("booking.reservation.streetAddressPlaceholder"),required:""},null,8,["modelValue","label","placeholder"]),e.createBaseVNode("ul",mo,[e.createBaseVNode("li",null,[e.createVNode(W.TextField,{modelValue:e.unref(d),"onUpdate:modelValue":N[11]||(N[11]=V=>e.isRef(d)?d.value=V:null),type:"number",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(W.TextField,{modelValue:e.unref(y),"onUpdate:modelValue":N[12]||(N[12]=V=>e.isRef(y)?y.value=V:null),type:"text",name:"city",autocomplete:"address-level2",label:e.unref(t)("booking.reservation.city"),icon:"city",placeholder:e.unref(t)("booking.reservation.cityPlaceholder"),required:""},null,8,["modelValue","label","placeholder"])])]),e.createVNode(W.TextField,{modelValue:e.unref(E),"onUpdate:modelValue":N[13]||(N[13]=V=>e.isRef(E)?E.value=V:null),type:"textarea",label:`${e.unref(t)("booking.reservation.remark")} (${e.unref(t)("booking.reservation.optional")})`,icon:"info-circle",placeholder:e.unref(t)("booking.reservation.remarkPlaceholder")},null,8,["modelValue","label","placeholder"]),e.createVNode(W.TextField,{modelValue:e.unref(C),"onUpdate:modelValue":N[14]||(N[14]=V=>e.isRef(C)?C.value=V:null),type:"textarea",label:`${e.unref(t)("booking.reservation.allergies")} (${e.unref(t)("booking.reservation.optional")})`,icon:"allergies",placeholder:e.unref(t)("booking.reservation.allergiesPlaceholder")},null,8,["modelValue","label","placeholder"]),e.unref(ot)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",go,[e.createBaseVNode("label",yo,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(t)("booking.reservation.purposeOfStay"))+" ("+e.toDisplayString(e.unref(t)("booking.reservation.optional"))+")",1)]),e.createBaseVNode("ul",vo,[e.createBaseVNode("li",null,[e.createVNode(D.Checkbox,{modelValue:e.unref(g),"onUpdate:modelValue":N[15]||(N[15]=V=>e.isRef(g)?g.value=V:null),type:"radio",name:"travelingFor",label:e.unref(t)("booking.reservation.business"),val:"Business"},null,8,["modelValue","label"])]),e.createBaseVNode("li",null,[e.createVNode(D.Checkbox,{modelValue:e.unref(g),"onUpdate:modelValue":N[16]||(N[16]=V=>e.isRef(g)?g.value=V:null),type:"radio",name:"travelingFor",label:e.unref(t)("booking.reservation.pleasure"),val:"Pleasure"},null,8,["modelValue","label"])]),e.createBaseVNode("li",null,[e.createVNode(D.Checkbox,{modelValue:e.unref(g),"onUpdate:modelValue":N[17]||(N[17]=V=>e.isRef(g)?g.value=V:null),type:"radio",name:"travelingFor",label:e.unref(t)("booking.reservation.bleasure"),val:"Bleasure"},null,8,["modelValue","label"])])])]))])]),navigation:e.withCtx(()=>[e.createBaseVNode("div",null,[e.createVNode(e.Clickable,{label:e.unref(t)("general.confirmReservation"),disabled:!e.unref(p),"is-loading":e.unref(u),"full-width":"",onClickEvent:V=>dt(se)},null,8,["label","disabled","is-loading","onClickEvent"]),e.createBaseVNode("button",{class:"konnectio-abort-reservation",onClick:e.withModifiers(V=>ut(w),["prevent"])},[e.createBaseVNode("span",null,e.toDisplayString(e.unref(t)("general.abortReservation")),1)],8,Bo)])]),_:2},[isNaN(e.unref(o))?{name:"addons",fn:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(x),V=>(e.openBlock(),e.createElementBlock("li",{key:V.roomGroupID},[e.createBaseVNode("h6",null,[e.createBaseVNode("span",null,e.toDisplayString(V.title),1)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(V.variants,(J,H)=>(e.openBlock(),e.createElementBlock("div",{key:J.ratePlanID},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(J.rooms,(S,mt)=>(e.openBlock(),e.createElementBlock("div",{key:mt},[e.createBaseVNode("div",_o,[e.createBaseVNode("span",null,e.toDisplayString(`${J.name}`),1),e.createBaseVNode("b",null,[e.createVNode(e.Icon,{icon:"male",type:"fas",color:"font"}),e.createBaseVNode("span",null,e.toDisplayString(S.adultsCount),1),S.childrenCount>0?(e.openBlock(),e.createBlock(e.Icon,{key:0,icon:"child",type:"fas",color:"font"})):e.createCommentVNode("",!0),S.childrenCount>0?(e.openBlock(),e.createElementBlock("span",ko,e.toDisplayString(S.childrenCount),1)):e.createCommentVNode("",!0)])]),e.createBaseVNode("ul",bo,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(V.addons,({quantityStrategy:Y,id:P,name:K,price:Q})=>(e.openBlock(),e.createElementBlock("li",{key:P},[Y===e.unref(e.QuantityStrategy).PerAdultPerNight?(e.openBlock(),e.createBlock(D.Checkbox,{key:0,modelValue:e.unref(T)[V.roomGroupID][H].config[S.configIdx].addons[S.roomIdx][P],"onUpdate:modelValue":A=>e.unref(T)[V.roomGroupID][H].config[S.configIdx].addons[S.roomIdx][P]=A,label:K,price:`${e.unref(e.showPrice)(Q,e.unref(j))} ${e.unref(t)("general.perAdultPerNight")}`},null,8,["modelValue","onUpdate:modelValue","label","price"])):Y===e.unref(e.QuantityStrategy).PerChildPerNight?(e.openBlock(),e.createBlock(D.Checkbox,{key:1,modelValue:e.unref(T)[V.roomGroupID][H].config[S.configIdx].addons[S.roomIdx][P],"onUpdate:modelValue":A=>e.unref(T)[V.roomGroupID][H].config[S.configIdx].addons[S.roomIdx][P]=A,label:K,price:`${e.unref(e.showPrice)(Q,e.unref(j))} ${e.unref(t)("general.perChildPerNight")}`},null,8,["modelValue","onUpdate:modelValue","label","price"])):Y===e.unref(e.QuantityStrategy).PerNight?(e.openBlock(),e.createBlock(D.Checkbox,{key:2,modelValue:e.unref(T)[V.roomGroupID][H].config[S.configIdx].addons[S.roomIdx][P],"onUpdate:modelValue":A=>e.unref(T)[V.roomGroupID][H].config[S.configIdx].addons[S.roomIdx][P]=A,label:K,price:`${e.unref(e.showPrice)(Q,e.unref(j))} ${e.unref(t)("general.perNight")}`},null,8,["modelValue","onUpdate:modelValue","label","price"])):Y===e.unref(e.QuantityStrategy).PerUnit?(e.openBlock(),e.createBlock(D.Checkbox,{key:3,modelValue:e.unref(T)[V.roomGroupID][H].config[S.configIdx].addons[S.roomIdx][P],"onUpdate:modelValue":A=>e.unref(T)[V.roomGroupID][H].config[S.configIdx].addons[S.roomIdx][P]=A,label:K,price:`${e.unref(e.showPrice)(Q,e.unref(j))}`},null,8,["modelValue","onUpdate:modelValue","label","price"])):Y===e.unref(e.QuantityStrategy).OneTimePayment?(e.openBlock(),e.createBlock(D.Checkbox,{key:4,modelValue:e.unref(T)[V.roomGroupID][H].config[S.configIdx].addons[S.roomIdx][P],"onUpdate:modelValue":A=>e.unref(T)[V.roomGroupID][H].config[S.configIdx].addons[S.roomIdx][P]=A,label:K,price:`${e.unref(e.showPrice)(Q,e.unref(j))}`},null,8,["modelValue","onUpdate:modelValue","label","price"])):e.createCommentVNode("",!0)]))),128))])]))),128))]))),128))]))),128))]),key:"0"}:void 0]),1024)]),payment:e.withCtx(()=>[e.createVNode(D.CheckoutWindow)]),confirmation:e.withCtx(()=>[e.createVNode(q.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(Jt)]),_:1})}}});const Eo=e._export_sfc(Vo,[["__scopeId","data-v-7aeea0d0"]]);var He={exports:{}},ae={exports:{}},le={exports:{}},Ee;function _e(){return Ee||(Ee=1,function(i){(function(t,o){i.exports?i.exports=o():t.EvEmitter=o()})(typeof window<"u"?window:ne.commonjsGlobal,function(){function t(){}var o=t.prototype;return o.on=function(n,c){if(!(!n||!c)){var s=this._events=this._events||{},f=s[n]=s[n]||[];return f.indexOf(c)==-1&&f.push(c),this}},o.once=function(n,c){if(!(!n||!c)){this.on(n,c);var s=this._onceEvents=this._onceEvents||{},f=s[n]=s[n]||{};return f[c]=!0,this}},o.off=function(n,c){var s=this._events&&this._events[n];if(!(!s||!s.length)){var f=s.indexOf(c);return f!=-1&&s.splice(f,1),this}},o.emitEvent=function(n,c){var s=this._events&&this._events[n];if(!(!s||!s.length)){s=s.slice(0),c=c||[];for(var f=this._onceEvents&&this._onceEvents[n],u=0;u<s.length;u++){var p=s[u],a=f&&f[p];a&&(this.off(n,p),delete f[p]),p.apply(this,c)}return this}},o.allOff=function(){delete this._events,delete this._onceEvents},t})}(le)),le.exports}var ue={exports:{}};/*!
|
|
2
2
|
* getSize v2.0.3
|
|
3
3
|
* measure size of elements
|
|
4
4
|
* MIT license
|
package/dist/hotel.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { h as J, z as me, aE as Zt, s as Q, a as ge, k as T, l as A, V as ft, n as l, w as D, a8 as He, x as _, A as x, G as se, X as Je, aF as eo, q as S, a2 as W, a1 as R, t as M, a4 as ke, m as C, D as q, F as te, H as mt, d as to, c as Y, y as Pe, ac as Fe, ad as Ee, _ as ae, r as Ce, aD as oo, o as Ge, a0 as $e, v as Se, j as Xe, I as io, aB as no, u as ro, K as so, C as ye, aG as he, B, J as ao, ag as gt, aH as lo, P as uo, a7 as co, N as po, Q as ho } from "./SelectField.vue_vue_type_style_index_0_lang-
|
|
2
|
-
import { s as fo, e as Ze, C as ee, P as mo, a as go, S as vo, i as yo } from "./index-
|
|
3
|
-
import { R as _o, _ as bo, B as ko, S as Eo, M as To, T as Io, x as Co } from "./ThankYou-
|
|
4
|
-
import { u as vt, a as fe, _ as $o } from "./DateField.vue_vue_type_style_index_0_lang-
|
|
5
|
-
import { A as So, H as Vo } from "./AvailabilitySkeleton-
|
|
6
|
-
import { _ as Po } from "./NumberField.vue_vue_type_script_setup_true_lang-
|
|
7
|
-
import { T as re } from "./TextField-
|
|
8
|
-
import { E as G } from "./_-
|
|
1
|
+
import { h as J, z as me, aE as Zt, s as Q, a as ge, k as T, l as A, V as ft, n as l, w as D, a8 as He, x as _, A as x, G as se, X as Je, aF as eo, q as S, a2 as W, a1 as R, t as M, a4 as ke, m as C, D as q, F as te, H as mt, d as to, c as Y, y as Pe, ac as Fe, ad as Ee, _ as ae, r as Ce, aD as oo, o as Ge, a0 as $e, v as Se, j as Xe, I as io, aB as no, u as ro, K as so, C as ye, aG as he, B, J as ao, ag as gt, aH as lo, P as uo, a7 as co, N as po, Q as ho } from "./SelectField.vue_vue_type_style_index_0_lang-96b84c98.js";
|
|
2
|
+
import { s as fo, e as Ze, C as ee, P as mo, a as go, S as vo, i as yo } from "./index-cadcbd9e.js";
|
|
3
|
+
import { R as _o, _ as bo, B as ko, S as Eo, M as To, T as Io, x as Co } from "./ThankYou-f3dd76f4.js";
|
|
4
|
+
import { u as vt, a as fe, _ as $o } from "./DateField.vue_vue_type_style_index_0_lang-d1a9ffca.js";
|
|
5
|
+
import { A as So, H as Vo } from "./AvailabilitySkeleton-beb10d07.js";
|
|
6
|
+
import { _ as Po } from "./NumberField.vue_vue_type_script_setup_true_lang-7aa515cb.js";
|
|
7
|
+
import { T as re } from "./TextField-7150eae7.js";
|
|
8
|
+
import { E as G } from "./_-cd5be070.js";
|
|
9
9
|
import { c as yt, g as _t } from "./_commonjsHelpers-c5d32002.js";
|
|
10
|
-
import "./ActionField-
|
|
11
|
-
import "./Field-
|
|
10
|
+
import "./ActionField-ed13e600.js";
|
|
11
|
+
import "./Field-48a50c44.js";
|
|
12
12
|
const xo = ["onClick"], et = /* @__PURE__ */ J({
|
|
13
13
|
__name: "HotelReservationForm",
|
|
14
14
|
props: {
|
package/dist/hotel.js.br
CHANGED
|
Binary file
|