@konnectio/core 4.0.37 → 4.0.38

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (66) hide show
  1. package/dist/{ActionField-8e5218c5.js → ActionField-cd683106.js} +2 -2
  2. package/dist/ActionField-cd683106.js.br +0 -0
  3. package/dist/{ActionField-6712c933.cjs → ActionField-dc98863c.cjs} +1 -1
  4. package/dist/{AvailabilitySkeleton-ec96db6b.cjs → AvailabilitySkeleton-2dd88f42.cjs} +1 -1
  5. package/dist/{AvailabilitySkeleton-67ce6e6d.js → AvailabilitySkeleton-64372a3d.js} +5 -5
  6. package/dist/AvailabilitySkeleton-64372a3d.js.br +0 -0
  7. package/dist/{DateField.vue_vue_type_style_index_0_lang-64a0c44b.js → DateField.vue_vue_type_style_index_0_lang-239ef816.js} +1 -1
  8. package/dist/DateField.vue_vue_type_style_index_0_lang-239ef816.js.br +0 -0
  9. package/dist/{DateField.vue_vue_type_style_index_0_lang-0c12cda5.cjs → DateField.vue_vue_type_style_index_0_lang-7267a5fa.cjs} +1 -1
  10. package/dist/{Field-616b5ab4.cjs → Field-825b33aa.cjs} +1 -1
  11. package/dist/{Field-0fa0f987.js → Field-94ac0265.js} +2 -2
  12. package/dist/Field-94ac0265.js.br +0 -0
  13. package/dist/{NumberField.vue_vue_type_script_setup_true_lang-1f92ec10.cjs → NumberField.vue_vue_type_script_setup_true_lang-4b483b4b.cjs} +1 -1
  14. package/dist/{NumberField.vue_vue_type_script_setup_true_lang-c9486f0a.js → NumberField.vue_vue_type_script_setup_true_lang-ab43cf10.js} +1 -1
  15. package/dist/NumberField.vue_vue_type_script_setup_true_lang-ab43cf10.js.br +0 -0
  16. package/dist/{SelectField.vue_vue_type_style_index_0_lang-6bfcccf8.js → SelectField.vue_vue_type_style_index_0_lang-9187c95a.js} +820 -819
  17. package/dist/SelectField.vue_vue_type_style_index_0_lang-9187c95a.js.br +0 -0
  18. package/dist/{SelectField.vue_vue_type_style_index_0_lang-2fab4a70.cjs → SelectField.vue_vue_type_style_index_0_lang-a4d7be42.cjs} +32 -32
  19. package/dist/{ThankYou-0bb9b8ba.cjs → ThankYou-2219aecc.cjs} +2 -2
  20. package/dist/{ThankYou-125b27fb.js → ThankYou-d505adc9.js} +7 -7
  21. package/dist/ThankYou-d505adc9.js.br +0 -0
  22. package/dist/{_-f6d1d88b.cjs → _-b9738f5d.cjs} +1 -1
  23. package/dist/{_-3a1d4d62.js → _-e90b6bab.js} +1 -1
  24. package/dist/availability.cjs +2 -2
  25. package/dist/availability.js +10 -10
  26. package/dist/availability.js.br +0 -0
  27. package/dist/components/listings/Base.vue.d.ts +1 -1
  28. package/dist/components/listings/Event.vue.d.ts +1 -1
  29. package/dist/entries/availability.d.ts +1 -1
  30. package/dist/{event-ad6054a0.cjs → event-8dde494e.cjs} +1 -1
  31. package/dist/{event-bf4c7637.js → event-9b5b92a7.js} +7 -7
  32. package/dist/event-9b5b92a7.js.br +0 -0
  33. package/dist/event.cjs +1 -1
  34. package/dist/event.js +9 -9
  35. package/dist/event.js.br +0 -0
  36. package/dist/gift-card-validation.cjs +1 -1
  37. package/dist/gift-card-validation.js +3 -3
  38. package/dist/gift-card-validation.js.br +0 -0
  39. package/dist/gift-card.cjs +1 -1
  40. package/dist/gift-card.js +227 -228
  41. package/dist/gift-card.js.br +0 -0
  42. package/dist/hotel.cjs +1 -1
  43. package/dist/hotel.js +11 -12
  44. package/dist/hotel.js.br +0 -0
  45. package/dist/{index-cc419f8f.js → index-524d9d24.js} +1 -1
  46. package/dist/index-524d9d24.js.br +0 -0
  47. package/dist/{index-f4b84887.cjs → index-85e3a13d.cjs} +1 -1
  48. package/dist/polyfill.cjs +1 -1
  49. package/dist/polyfill.js +1 -1
  50. package/dist/polyfill.js.br +0 -0
  51. package/dist/store/event.d.ts +3 -3
  52. package/dist/store/tracking.d.ts +8 -3
  53. package/dist/store/utilities.d.ts +4 -1
  54. package/dist/style.css +1 -1
  55. package/dist/style.css.br +0 -0
  56. package/dist/types/index.d.ts +1 -1
  57. package/package.json +1 -1
  58. package/dist/ActionField-8e5218c5.js.br +0 -0
  59. package/dist/AvailabilitySkeleton-67ce6e6d.js.br +0 -0
  60. package/dist/DateField.vue_vue_type_style_index_0_lang-64a0c44b.js.br +0 -0
  61. package/dist/Field-0fa0f987.js.br +0 -0
  62. package/dist/NumberField.vue_vue_type_script_setup_true_lang-c9486f0a.js.br +0 -0
  63. package/dist/SelectField.vue_vue_type_style_index_0_lang-6bfcccf8.js.br +0 -0
  64. package/dist/ThankYou-125b27fb.js.br +0 -0
  65. package/dist/event-bf4c7637.js.br +0 -0
  66. package/dist/index-cc419f8f.js.br +0 -0
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-2fab4a70.cjs"),z=require("./ThankYou-0bb9b8ba.cjs"),Re=require("./AvailabilitySkeleton-ec96db6b.cjs"),He=require("./NumberField.vue_vue_type_script_setup_true_lang-1f92ec10.cjs"),bt=require("./DateField.vue_vue_type_style_index_0_lang-0c12cda5.cjs"),q=require("./index-f4b84887.cjs"),O=require("./_-f6d1d88b.cjs"),te=require("./_commonjsHelpers-6763f629.cjs");require("./ActionField-6712c933.cjs");require("./Field-616b5ab4.cjs");const xt={key:0},ie=e.defineComponent({__name:"HotelReservationForm",props:{showGiftCard:{type:Boolean,default:!1},showTermsNotice:{type:Boolean,default:!1}},setup(o){const{t}=e.useI18n(),n=e.useSlots(),{hideArrivalDepartureInputs:i,disableArrivalUserSelection:s,disableDepartureUserSelection:l,arrivalDefault:_,departureDefault:u,currency:p}=e.storeToRefs(e.useUtilityStore()),{arrivalDate:c,departureDate:h}=e.storeToRefs(e.useAvailabilityStore()),{arrivalTime:y,departureTime:k,roomDisplay:a,templateID:v,totalPrice:g,areListingsLoading:f}=e.storeToRefs(e.useHotelStore()),{removeRoom:r}=e.useHotelStore();function d(m){return m.reduce((S,{totalPrice:F})=>S+F,0)}return(m,b)=>(e.openBlock(),e.createBlock(z.ReservationForm,{"total-price":e.unref(g),"show-gift-card":m.showGiftCard,"show-terms-notice":m.showTermsNotice,"is-sidebar-loading":e.unref(f),notice:e.unref(t)("hotel.reservationNotice")},e.createSlots({form:e.withCtx(()=>[e.renderSlot(m.$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(i)?e.unref(e.showDate)(e.unref(c)):`${e.unref(e.showDate)(e.unref(c))}, ${e.unref(s)?e.unref(_):e.unref(y)}`),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(i)?e.unref(e.showDate)(e.unref(h)):`${e.unref(e.showDate)(e.unref(h))}, ${e.unref(l)?e.unref(u):e.unref(k)}`),1)]),e.createBaseVNode("li",null,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(t)("booking.reservation.nights")),1),e.createBaseVNode("b",null,e.toDisplayString(e.unref(e.daysBetweenDates)(e.unref(c),e.unref(h)))+" "+e.toDisplayString(e.unref(e.lowercase)(e.unref(e.daysBetweenDates)(e.unref(c),e.unref(h))===1?e.unref(t)("booking.reservation.night"):e.unref(t)("booking.reservation.nights"))),1)])]),"price-summary":e.withCtx(()=>[isNaN(e.unref(v))&&e.unref(a).length>0?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(e.unref(a),({roomGroupID:S,title:F,variants:C})=>(e.openBlock(),e.createElementBlock("div",{key:S},[e.createBaseVNode("h6",null,[e.createBaseVNode("span",null,e.toDisplayString(F),1)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(C,(B,E)=>(e.openBlock(),e.createElementBlock("div",{key:E},[e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(B.rooms,(N,D)=>(e.openBlock(),e.createElementBlock("ul",{key:D},[e.createBaseVNode("li",null,[e.createBaseVNode("span",null,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(e.capitalized)(B.name)),1),e.createBaseVNode("span",null,[e.createTextVNode("( "),e.createVNode(e.Icon,{icon:"male",type:"fas",color:"font"}),e.createBaseVNode("span",null,e.toDisplayString(N.adultsCount),1),N.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(N.childrenCount),1)],64)):e.createCommentVNode("",!0),e.createTextVNode(") ")])]),e.createBaseVNode("b",null,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(e.showPrice)(N.totalPrice,e.unref(p))),1),e.createCommentVNode("",!0)])]),d(N.roomAddons)>0?(e.openBlock(),e.createElementBlock("li",xt,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(t)("booking.reservation.addons")),1),e.createBaseVNode("b",null,e.toDisplayString(e.unref(e.showPrice)(d(N.roomAddons),e.unref(p))),1)])):e.createCommentVNode("",!0)]))),128))]))),128))]))),128)):e.createCommentVNode("",!0)]),navigation:e.withCtx(()=>[e.renderSlot(m.$slots,"navigation")]),_:2},[e.unref(n).addons?{name:"addons",fn:e.withCtx(()=>[e.renderSlot(m.$slots,"addons")]),key:"0"}:void 0]),1032,["total-price","show-gift-card","show-terms-notice","is-sidebar-loading","notice"]))}}),St=o=>(e.pushScopeId("data-v-c84b41ba"),o=o(),e.popScopeId(),o),Bt={key:0},Vt={class:"konnectio-selected-room-config"},Et={class:"konnectio-selected-room-config-people"},Ft={key:0},Nt={class:"konnectio-selected-room-config-price"},Ct=St(()=>e.createBaseVNode("span",null,null,-1)),It=e.defineComponent({__name:"RoomConfigField",props:{modelValue:{},options:{},required:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},label:{}},emits:["update:modelValue"],setup(o,{emit:t}){const{t:n}=e.useI18n(),{currency:i}=e.storeToRefs(e.useUtilityStore()),s=t,l=o;function _(p){s("update:modelValue",p)}const u=e.computed({get:()=>l.modelValue,set:p=>_(p)});return(p,c)=>(e.openBlock(),e.createBlock(e._sfc_main,{modelValue:u.value,"onUpdate:modelValue":c[0]||(c[0]=h=>u.value=h),label:p.label,placeholder:"Select guest configuration",labelKey:"label",valueKey:"value","icon-placement":"label",options:p.options,readonly:p.readonly,required:p.required,searchable:!1},{option:e.withCtx(({data:h})=>[e.createBaseVNode("span",null,[e.createVNode(e.Icon,{icon:"male",type:"fas",color:"font"}),e.createBaseVNode("span",null,e.toDisplayString(`${h.adults}`),1),h.children>0?(e.openBlock(),e.createElementBlock("span",Bt,[e.createVNode(e.Icon,{icon:"child",type:"fas",color:"font"}),e.createBaseVNode("span",null,e.toDisplayString(`${h.children}`),1)])):e.createCommentVNode("",!0),e.createBaseVNode("span",null,e.toDisplayString(`(${e.unref(e.showPrice)(h.price,e.unref(i))})`),1)])]),"selected-option":e.withCtx(({data:h})=>[e.createBaseVNode("div",Vt,[e.createBaseVNode("div",Et,[e.createBaseVNode("div",null,[e.createCommentVNode("",!0),e.createBaseVNode("span",null,e.toDisplayString(`${h.adults} ${h.adults===1?e.unref(n)("general.adult"):e.unref(n)("general.adults")}`),1)]),h.children>0?(e.openBlock(),e.createElementBlock("div",Ft,[e.createCommentVNode("",!0),e.createBaseVNode("span",null,e.toDisplayString(`& ${h.children} ${h.children===1?e.unref(n)("general.child"):e.unref(n)("general.children")}`),1)])):e.createCommentVNode("",!0)]),e.createBaseVNode("div",Nt,[Ct,e.createTextVNode(" "+e.toDisplayString(`(${e.unref(e.showPrice)(h.price,e.unref(i))})`),1)])])]),_:1},8,["modelValue","label","options","readonly","required"]))}});const Tt=e._export_sfc(It,[["__scopeId","data-v-c84b41ba"]]),$t=["src"],Dt=e.defineComponent({__name:"Gallery",props:{gallery:{}},setup(o){const t=e.ref();e.ref();const n=e.ref();return e.onMounted(()=>{n.value=[new z.Sync({type:"index",synchronizedFlickingOptions:[{flicking:t.value,isSlidable:!0}]})]}),(i,s)=>(e.openBlock(),e.createElementBlock("div",null,[i.gallery.length>1?(e.openBlock(),e.createBlock(e.unref(z.Flicking),{ref_key:"slideshow",ref:t,key:i.gallery.length,options:{align:"prev",circular:!0,bounce:30},plugins:n.value},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.gallery,({medium:l,large:_},u)=>(e.openBlock(),e.createElementBlock("div",{key:u,class:"booking-availability-listing-featured-img"},[e.createBaseVNode("img",{src:_},null,8,$t)]))),128))]),_:1},8,["plugins"])):e.createCommentVNode("",!0)]))}}),wt={class:"fresh-booking-modal-gallery"},Pt={key:0,class:"fresh-booking-modal-facilities"},Lt={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"},Rt={class:"grid-sizer"},Ht=e.defineComponent({__name:"Info",props:{title:{},description:{},facilities:{},gallery:{}},setup(o){return(t,n)=>{const i=e.resolveDirective("masonry-tile"),s=e.resolveDirective("masonry");return e.openBlock(),e.createBlock(z._sfc_main,{title:t.title,description:t.description},e.createSlots({default:e.withCtx(()=>[t.facilities&&t.facilities.length!==0?(e.openBlock(),e.createElementBlock("div",Pt,[e.withDirectives((e.openBlock(),e.createElementBlock("ul",Lt,[e.withDirectives(e.createBaseVNode("div",Rt,null,512),[[i]]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.facilities,({name:l,subFacilities:_},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(l),1)]),e.createBaseVNode("ul",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(_,({name:p},c)=>(e.openBlock(),e.createElementBlock("li",{key:c},e.toDisplayString(p),1))),128))])])),[[i]])),128))])),[[s]])])):e.createCommentVNode("",!0)]),_:2},[t.gallery?{name:"above-description",fn:e.withCtx(()=>[e.createBaseVNode("div",wt,[e.createVNode(Dt,{gallery:t.gallery},null,8,["gallery"])])]),key:"0"}:void 0]),1032,["title","description"])}}});const Ot=e._export_sfc(Ht,[["__scopeId","data-v-9a91cedb"]]),zt={class:"konnectio-availability-listing-selection"},At={key:1},Mt={class:"fresh-booking-listing-config-body"},Wt={class:"fresh-booking-listing-units-body"};const Ut=e.defineComponent({__name:"Hotel",props:{room:{},layout:{}},setup(o){const{t}=e.useI18n(),n=o,i=e.ref([]);function s(B){i.value[B].config.push({id:NaN,units:0,addons:[]})}const l=e.computed(()=>n.room.rates.map(B=>({label:B.name,value:B.id}))),_=e.computed(()=>i.value.flatMap(B=>B.id));e.computed(()=>l.value.filter(B=>!_.value.includes(B.value)));const{hideAvailableRoomAmount:u,currency:p}=e.storeToRefs(e.useUtilityStore()),{roomSelect:c}=e.storeToRefs(e.useHotelStore()),{viewItem:h,addToCart:y,removeFromCart:k}=e.useTrackingStore(),a=(B,E)=>n.room.rates.find(N=>N.id===B)?.occupantRates.find(N=>N.index===E),v=e.computed(()=>n.room.rates.reduce((B,E)=>B<E.rackRate?B:E.rackRate,1/0)),g=e.computed(()=>n.room.rates.every(B=>B.isBreakfastIncluded===!0)),f=(B,E)=>a(B,E)?a(B,E)?.rooms:null,r=B=>n.room.rates.length>0?n.room.rates.find(E=>E.id===B)?.occupantRates.map(E=>({value:E.index,price:E.totalPrice,adults:E.adultsCount,children:E.childrenCount,hasBreakfast:E.hasBreakfast}))||[]:[],d=e.computed(()=>n.room.rates.length>1),{open:m,close:b}=e.Uo({component:Ot,attrs:{title:n.room.title,description:n.room.description,facilities:n.room.facilities,gallery:n.room.images,onConfirm(){b()}}});function S(){m(),h(n.room.title)}function F(){d.value?i.value.push({id:void 0,config:[{id:n.room.rates[0].occupantRateIndex||NaN,units:0,addons:[]}]}):i.value.push({id:n.room.rates[0].id,config:[{id:n.room.rates[0].occupantRateIndex||NaN,units:0,addons:[]}]})}e.onMounted(()=>{F()});const C=e.computed(()=>JSON.parse(JSON.stringify(i.value)));return e.watch(C,(B,E)=>{E.length>0&&B.forEach((N,D)=>{N.config.forEach((w,$)=>{const P=w.units,W=E[D].config[$].units;P!==W&&(P>W?(i.value[D].config[$].addons.push({}),y({id:n.room.id,name:n.room.title,value:n.room.rates[D].rackRate})):(i.value[D].config[$].addons.pop(),k({id:n.room.id,name:n.room.title,value:n.room.rates[D].rackRate})))})})},{deep:!0}),e.watch(i,()=>{c.value[n.room.id]=i.value},{deep:!0}),(B,E)=>(e.openBlock(),e.createBlock(z.Base,{"listing-id":B.room.id,gallery:B.room.images,name:B.room.title,description:B.room.description,layout:B.layout,facilities:B.room.facilities,"prices-from":v.value,"includes-breakfast":g.value,callback:S},{action:e.withCtx(()=>[e.createBaseVNode("div",zt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,(N,D)=>(e.openBlock(),e.createElementBlock("div",{key:N.id,class:"freshbooking-hotel-room"},[d.value?(e.openBlock(),e.createBlock(e._sfc_main,{key:0,modelValue:N.id,"onUpdate:modelValue":w=>N.id=w,label:e.unref(t)("hotel.roomVariant"),placeholder:e.unref(t)("hotel.chooseARoomVariant"),options:l.value,searchable:!1},null,8,["modelValue","onUpdate:modelValue","label","placeholder","options"])):e.createCommentVNode("",!0),N.id?(e.openBlock(),e.createElementBlock("div",At,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(B.room.rates,({id:w,maximumOccupants:$})=>(e.openBlock(),e.createElementBlock("div",{key:w},[N.id===w?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(N.config,(P,W)=>(e.openBlock(),e.createElementBlock("div",{key:W,class:"booking-availability-listing-action-selective"},[e.createBaseVNode("ul",Mt,[e.createVNode(Tt,{modelValue:P.id,"onUpdate:modelValue":U=>P.id=U,icon:"male","icon-type":"fas",label:e.unref(t)("general.guests"),description:`${e.unref(t)("general.maximumGuests")}: ${$}`,options:r(w),readonly:!(r(w).length>1)},null,8,["modelValue","onUpdate:modelValue","label","description","options","readonly"])]),e.createBaseVNode("ul",Wt,[e.createVNode(He._sfc_main,{modelValue:P.units,"onUpdate:modelValue":U=>P.units=U,description:e.unref(u)?void 0:`${e.unref(t)("booking.availability.availableUnits")}: ${f(N.id,P.id)}`,icon:"house","icon-type":"fas","icon-placement":"label",label:e.unref(t)("booking.availability.units"),minValue:0,"max-value":f(w,P.id)||1/0},null,8,["modelValue","onUpdate:modelValue","description","label","max-value"])]),e.createCommentVNode("",!0)]))),128)):e.createCommentVNode("",!0)]))),128))])):e.createCommentVNode("",!0)]))),128))])]),_:1},8,["listing-id","gallery","name","description","layout","facilities","prices-from","includes-breakfast"]))}});const qt=e._export_sfc(Ut,[["__scopeId","data-v-7fe13e0e"]]),Be=e.defineComponent({__name:"TimeField",props:{modelValue:{},label:{},id:{},name:{},placeholder:{},icon:{},iconColor:{},iconType:{},primaryColor:{},secondaryColor:{},weekendColor:{},highlightedColor:{},required:{type:Boolean},readonly:{type:Boolean},disabled:{type:Boolean},inline:{type:Boolean},range:{type:Boolean},enableTimePicker:{type:Boolean},inputStyle:{}},emits:["update:modelValue"],setup(o,{emit:t}){const n=t,i=o;function s(_){n("update:modelValue",_)}const l=e.ref(i.modelValue);return e.watch(l,_=>{s(_)}),(_,u)=>(e.openBlock(),e.createBlock(bt._sfc_main,{modelValue:l.value,"onUpdate:modelValue":u[0]||(u[0]=p=>l.value=p),type:"time",label:_.label,id:_.id,name:_.name,icon:_.icon,"icon-type":_.iconType,"icon-color":_.iconColor,"auto-apply":!0,required:_.required,readonly:_.readonly},null,8,["modelValue","label","id","name","icon","icon-type","icon-color","required","readonly"]))}});const Gt={style:{display:"flex","align-items":"baseline"}},jt=e.defineComponent({__name:"CountryField",props:{modelValue:{},options:{},required:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},label:{},placeholder:{}},emits:["update:modelValue"],setup(o,{emit:t}){const{t:n}=e.useI18n(),i=t,s=o;function l(u){i("update:modelValue",u)}const _=e.computed({get:()=>s.modelValue,set:u=>l(u)});return(u,p)=>(e.openBlock(),e.createBlock(e._sfc_main,{modelValue:_.value,"onUpdate:modelValue":p[0]||(p[0]=c=>_.value=c),label:u.label,placeholder:e.unref(n)("booking.reservation.countryPlaceholder"),labelKey:"name",valueKey:"id",options:u.options,required:u.required},{option:e.withCtx(({data:c})=>[e.createBaseVNode("i",{class:e.normalizeClass(["konnectio-flag-icon",c.iso])},null,2),e.createBaseVNode("span",null,e.toDisplayString(c.name),1)]),"selected-option":e.withCtx(({data:c})=>[e.createBaseVNode("div",Gt,[e.createBaseVNode("i",{class:e.normalizeClass(["konnectio-flag-icon",c.iso])},null,2),e.createBaseVNode("span",null,e.toDisplayString(c.name),1)])]),_:1},8,["modelValue","label","placeholder","options","required"]))}});const Yt=e._export_sfc(jt,[["__scopeId","data-v-1462612d"]]),Qt={class:"konnectio-radio-checkboxes"},Kt=e.defineComponent({__name:"CheckboxField",props:{modelValue:{},label:{},name:{},checkboxes:{}},emits:["update:modelValue"],setup(o,{emit:t}){const n=t,i=o;function s(_){n("update:modelValue",_)}const l=e.computed({get:()=>i.modelValue,set:_=>s(_)});return(_,u)=>(e.openBlock(),e.createBlock(e.InputField,{label:_.label,type:"multi-radio"},{default:e.withCtx(()=>[e.createBaseVNode("ul",Qt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(_.checkboxes,({label:p,value:c},h)=>(e.openBlock(),e.createElementBlock("li",{key:h},[e.createVNode(q.Checkbox,{modelValue:l.value,"onUpdate:modelValue":u[0]||(u[0]=y=>l.value=y),label:p,name:_.name,type:"radio",val:c},null,8,["modelValue","label","name","val"])]))),128))])]),_:1},8,["label"]))}});const Jt=e._export_sfc(Kt,[["__scopeId","data-v-d8d42a8a"]]),Xt=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(o,{emit:t}){const n=o,i=t,s=n.id||e.ranId(),l=e.ref(""),_=e.ref(2);function u(){i("update:modelValue",l.value)}e.watch(_,c=>{i("update:title",c)});const{t:p}=e.useI18n();return e.onMounted(()=>{n.modelValue&&(l.value=n.modelValue),n.title&&(_.value=n.title)}),(c,h)=>(e.openBlock(),e.createBlock(e.InputField,{label:c.label,id:e.unref(s),required:c.required,type:"fresh-booking-name-field",readonly:c.readonly,limit:c.limit},{default:e.withCtx(()=>[e.createBaseVNode("div",{class:e.normalizeClass(["fresh-booking-name-input",{"no-title":c.excludeTitle}])},[c.excludeTitle?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e._sfc_main,{key:0,modelValue:_.value,"onUpdate:modelValue":h[0]||(h[0]=y=>_.value=y),id:e.unref(e.ranId)(),icon:c.icon,"icon-color":c.iconColor,"icon-type":c.iconType,options:[{label:e.unref(p)("booking.reservation.noNameTitle"),value:1},{label:e.unref(p)("booking.reservation.nameTitleMr"),value:2},{label:e.unref(p)("booking.reservation.nameTitleMs"),value:3},{label:e.unref(p)("booking.reservation.nameTitleMrs"),value:4},{label:e.unref(p)("booking.reservation.nameTitleDr"),value:5}],readonly:c.readonly,"hide-button":"","input-style":c.inputStyle,searchable:!1},null,8,["modelValue","id","icon","icon-color","icon-type","options","readonly","input-style"])),e.createVNode(e.TextField,{modelValue:l.value,"onUpdate:modelValue":h[1]||(h[1]=y=>l.value=y),type:"text",name:"name",autocomplete:"name",id:e.unref(s),icon:c.excludeTitle?c.icon:void 0,"icon-color":c.iconColor,"icon-type":c.iconType,placeholder:c.placeholder,required:c.required,readonly:c.readonly,limit:c.limit,onInput:h[2]||(h[2]=y=>u()),"input-style":c.inputStyle},null,8,["modelValue","id","icon","icon-color","icon-type","placeholder","required","readonly","limit","input-style"])],2)]),_:1},8,["label","id","required","readonly","limit"]))}});const Zt=e._export_sfc(Xt,[["__scopeId","data-v-78b0b319"]]),en={class:"hotel-listing"},tn={class:"hotel-listing-content-gallery"},nn={class:"hotel-listing-content-thumbs"},on={class:"hotel-listing-content"},rn={class:"hotel-listing-content-header"},ln={class:"hotel-listing-content-title"},an={class:"hotel-listing-content-body"},sn={class:"hotel-listing-content-facilities"},un=e.defineComponent({__name:"Listing",setup(o){return(t,n)=>(e.openBlock(),e.createElementBlock("div",en,[e.createBaseVNode("div",tn,[e.createVNode(O.Element,{width:"280px",height:"153px"}),e.createBaseVNode("div",nn,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(3,i=>e.createVNode(O.Element,{key:i,width:"84px",height:"44px"})),64))])]),e.createBaseVNode("div",on,[e.createBaseVNode("div",rn,[e.createBaseVNode("div",ln,[e.createVNode(O.Element,{height:"30px",width:"60%"}),e.createVNode(O.Element,{height:"30px",width:"30px","border-radius":"100%"})]),e.createVNode(O.Element,{height:"15px",width:"25%"})]),e.createBaseVNode("div",an,[e.createVNode(O.Element,{height:"15px"}),e.createVNode(O.Element,{height:"15px"}),e.createVNode(O.Element,{height:"15px"}),e.createVNode(O.Element,{height:"15px"}),e.createVNode(O.Element,{height:"15px",width:"90%"})]),e.createBaseVNode("div",sn,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(5,i=>e.createVNode(O.Element,{key:i,height:"25px",width:"25px","border-radius":"6px"})),64))])])]))}});const G=e._export_sfc(un,[["__scopeId","data-v-5c132d7f"]]),dn={class:"hotel-skeleton"},cn={class:"hotel-skeleton-content"},_n={class:"hotel-skeleton-sidebar"},pn=e.defineComponent({__name:"HotelSkeleton",setup(o){return(t,n)=>(e.openBlock(),e.createElementBlock("div",dn,[e.createBaseVNode("div",cn,[e.createVNode(Re.AvailabilitySkeleton),e.createVNode(G),e.createVNode(G),e.createVNode(G)]),e.createBaseVNode("div",_n,[e.createVNode(z.Sidebar)])]))}});const fn=e._export_sfc(pn,[["__scopeId","data-v-4e50a5a1"]]),hn=o=>(e.pushScopeId("data-v-71498e56"),o=o(),e.popScopeId(),o),yn={id:"booking-availability-container"},mn={id:"booking-availability-controls"};const vn={key:1,"sticky-container":""},gn={key:0};const kn={key:1},bn={key:0};const xn={id:"booking-availability-listings"},Sn={key:1,id:"booking-availability-no-listings"},Bn={key:1,id:"booking-availability-no-listings"},Vn={key:2,id:"reservation-availability-next-dates"},En={class:"reservation-special-offers-grid"},Fn=["title"];const Nn={key:2,class:"konnectio-listing-loading"},Cn={class:"fresh-booking-panel"},In={key:0,id:"konnectio-hotel-addons"};const Tn={class:"fresh-booking-event-addons-price"},$n={key:1},Dn=hn(()=>e.createBaseVNode("br",null,null,-1));const wn=["onClick"],Pn={class:"fresh-booking-panel"},Ln={key:0},Rn={key:1},Hn={class:"fresh-booking-split-inputs"},On=["onClick"],zn=e.defineComponent({name:"HotelLayout",__name:"Hotel",props:{accessToken:{},headerLayout:{default:e.BookingHeaderLayout.Minimal},styling:{}},setup(o){const{t}=e.useI18n(),{templateID:n,title:i,countries:s,areListingsLoading:l,isAvailabilityDataAvailable:_,isPaymentLoading:u,isReservationFormFilled:p,selectedPackage:c,travelingFor:h,arrivalTime:y,departureTime:k,name:a,nameTitle:v,email:g,phone:f,firmName:r,postal:d,city:m,address:b,country:S,remark:F,allergies:C,newsMails:B,roomSelect:E,roomDisplay:N,hasValidRoomSelection:D,getSelectedPackageRoom:w,availabilityData:$,selectionHasNoAddons:P}=e.storeToRefs(e.useHotelStore()),{arrivalDate:W,departureDate:U}=e.storeToRefs(e.useAvailabilityStore()),{currency:ke,isRecaptchaEnabled:Uo,disableNewsletterSignup:je,arrivalEarliest:Ye,arrivalLatest:Qe,departureEarliest:Ke,departureLatest:Je,enableTracking:Xe,arrivalDefault:Ze,departureDefault:et,enablePackages:qo,hideArrivalDepartureInputs:tt,disableArrivalUserSelection:ne,disableNamePrefix:nt,disableDepartureUserSelection:oe,disableTravelingFor:ot,disableCompanyField:it,hasPaymentGateway:rt}=e.storeToRefs(e.useUtilityStore());e.useAlertStore();const{beginCheckout:lt}=e.useTrackingStore(),{initialize:at,createReservation:st,getSingleListing:Go}=e.useHotelStore(),ut=e.ref(!0),dt=e.computed(()=>{const T=$.value.roomGroups.slice();T.forEach(H=>{H.pricesFrom=H.rates.reduce((I,x)=>I<x.rackRate?I:x.rackRate,1/0)});function V(H,I){return ut.value===!0?H.pricesFrom>I.pricesFrom?-1:1:H.pricesFrom>I.pricesFrom?1:-1}return T.sort(V)}),ct=e.computed(()=>[[parseInt(Ye.value.split(":")[0]),parseInt(Qe.value.split(":")[0])]]),_t=e.computed(()=>[[parseInt(Ke.value.split(":")[0]),parseInt(Je.value.split(":")[0])]]);function jo(T){n.value=T}function pt(){n.value=NaN}function be(T){P.value?T(2):T()}function ft(T,V){U.value=new Date(V),W.value=new Date(T),location.reload()}async function ht(T){await st(T)}function yt(T){Xe&&lt(),P.value?T(2):T()}function mt(){y.value===""&&(y.value=Ze.value),k.value===""&&(k.value=et.value)}return e.onMounted(()=>{at(),mt()}),(T,V)=>(e.openBlock(),e.createBlock(e.Suspense,null,{default:e.withCtx(()=>[e.createVNode(e._sfc_main$1,{id:"fresh-booking-hotel-module","access-token":T.accessToken,type:"hotel",styling:T.styling},{default:e.withCtx(()=>[e.createVNode(z.MultiStepForm,{layout:T.headerLayout},{availability:e.withCtx(({next:H})=>[e.createVNode(ie,null,{form:e.withCtx(()=>[e.createBaseVNode("div",yn,[e.createBaseVNode("div",mn,[e.createVNode(Re.HotelAvailabilityForm,{booking:!0})]),e.createCommentVNode("",!0),e.unref(l)?(e.openBlock(),e.createElementBlock("div",Nn,[e.createVNode(G),e.createVNode(G),e.createVNode(G)])):(e.openBlock(),e.createElementBlock("div",vn,[e.unref($).roomGroups.length>0?(e.openBlock(),e.createElementBlock("div",gn,[(e.unref($).templates.length>0,e.createCommentVNode("",!0)),isNaN(e.unref(n))?(e.openBlock(),e.createElementBlock("div",kn,[e.unref($).roomGroups.length>0?(e.openBlock(),e.createElementBlock("div",bn,[(e.unref($).templates.length>0,e.createCommentVNode("",!0)),e.createBaseVNode("ul",xn,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(dt.value,(I,x)=>(e.openBlock(),e.createBlock(qt,{room:I,key:x},null,8,["room"]))),128))])])):(e.openBlock(),e.createElementBlock("div",Sn,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(t)("booking.availability.nothingAvailable")),1)]))])):e.createCommentVNode("",!0)])):e.unref($).nextAvailableDates.length===0?(e.openBlock(),e.createElementBlock("div",Bn,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(t)("booking.availability.nothingAvailable")),1)])):(e.openBlock(),e.createElementBlock("div",Vn,[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",En,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref($).nextAvailableDates,(I,x)=>(e.openBlock(),e.createElementBlock("li",{key:x},[e.createBaseVNode("h3",{title:`${e.unref(e.showDate)(I.fromDate)} - ${e.unref(e.showDate)(I.toDate)}`},[e.createBaseVNode("span",null,e.toDisplayString(`${e.unref(e.showDate)(I.fromDate)} - ${e.unref(e.showDate)(I.toDate)}`),1)],8,Fn),e.createBaseVNode("ul",null,[e.createCommentVNode("",!0),e.createBaseVNode("li",null,[e.createVNode(e.Icon,{icon:"money-bill",type:"fal",color:"header"}),e.createBaseVNode("span",null,e.toDisplayString(e.unref(t)("booking.availability.pricesFrom"))+": "+e.toDisplayString(e.unref(e.showPrice)(I.priceStartFrom,e.unref(ke))),1)])]),e.createVNode(e.Clickable,{label:e.unref(t)("booking.availability.selectDates"),"full-width":"",onClickEvent:j=>ft(I.fromDate,I.toDate)},null,8,["label","onClickEvent"])]))),128))])]))]))])]),navigation:e.withCtx(()=>[isNaN(e.unref(n))?(e.openBlock(),e.createBlock(e.Clickable,{key:0,label:e.unref(P)?e.unref(t)("booking.availability.nextButton"):e.unref(t)("general.chooseAddons"),disabled:!e.unref(D),"is-loading":!1,"full-width":"",onClickEvent:I=>yt(H)},null,8,["label","disabled","onClickEvent"])):(e.openBlock(),e.createBlock(e.Clickable,{key:1,label:e.unref(t)("booking.reservation.prevButton"),"full-width":"",onClickEvent:V[1]||(V[1]=I=>pt())},null,8,["label"]))]),_:2},1024)]),addons:e.withCtx(({next:H,prev:I})=>[e.createVNode(ie,null,{form:e.withCtx(()=>[e.createBaseVNode("form",Cn,[e.createBaseVNode("h2",null,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(t)("booking.reservation.addons")),1)]),e.createBaseVNode("div",null,[isNaN(e.unref(n))?(e.openBlock(),e.createElementBlock("div",In,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(N),x=>(e.openBlock(),e.createElementBlock("ul",{key:x.roomGroupID},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(x.variants,(j,Y)=>(e.openBlock(),e.createElementBlock("li",{key:j.ratePlanID},[e.createBaseVNode("h4",null,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(e.capitalized)(x.title)),1)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(j.rooms,(L,xe)=>(e.openBlock(),e.createElementBlock("table",{key:xe,class:"fresh-booking-table"},[e.createBaseVNode("thead",null,[e.createBaseVNode("tr",null,[e.createBaseVNode("th",null,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(e.capitalized)(j.name)),1)]),e.createCommentVNode("",!0),e.createBaseVNode("th",Tn,[e.createBaseVNode("b",null,[e.createVNode(e.Icon,{icon:"male",type:"fas",color:"font"}),e.createBaseVNode("span",null,e.toDisplayString(L.adultsCount),1),L.childrenCount>0?(e.openBlock(),e.createBlock(e.Icon,{key:0,icon:"child",type:"fas",color:"font"})):e.createCommentVNode("",!0),L.childrenCount>0?(e.openBlock(),e.createElementBlock("span",$n,e.toDisplayString(L.childrenCount),1)):e.createCommentVNode("",!0)])])])]),e.createBaseVNode("tbody",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(x.addons,({cardinality:Yo,quantityStrategy:Se,maximumNumber:vt,id:Q,name:gt,price:kt})=>(e.openBlock(),e.createElementBlock("tr",{key:Q},[e.createBaseVNode("td",null,[e.createBaseVNode("b",null,e.toDisplayString(e.unref(e.capitalized)(gt)),1),Dn,e.createBaseVNode("span",null,e.toDisplayString(e.unref(e.showPrice)(kt,e.unref(ke)))+" "+e.toDisplayString(e.unref(e.getPriceQuantityLabel)(Se)),1)]),e.createBaseVNode("td",null,[Se===12?(e.openBlock(),e.createBlock(He._sfc_main,{key:0,modelValue:e.unref(E)[x.roomGroupID][Y].config[L.configIdx].addons[L.roomIdx][Q],"onUpdate:modelValue":R=>e.unref(E)[x.roomGroupID][Y].config[L.configIdx].addons[L.roomIdx][Q]=R,small:!0,"min-value":0,"max-value":vt||1/0},null,8,["modelValue","onUpdate:modelValue","max-value"])):(e.openBlock(),e.createBlock(q.Checkbox,{key:1,modelValue:e.unref(E)[x.roomGroupID][Y].config[L.configIdx].addons[L.roomIdx][Q],"onUpdate:modelValue":R=>e.unref(E)[x.roomGroupID][Y].config[L.configIdx].addons[L.roomIdx][Q]=R,numeric:!0},null,8,["modelValue","onUpdate:modelValue"]))]),e.createCommentVNode("",!0)]))),128))])]))),128))]))),128))]))),128))])):e.createCommentVNode("",!0)])])]),navigation:e.withCtx(()=>[e.createVNode(e.Clickable,{label:e.unref(t)("general.startReservation"),"full-width":"",onClickEvent:H},null,8,["label","onClickEvent"]),e.createBaseVNode("button",{class:"konnectio-abort-reservation link",onClick:e.withModifiers(x=>be(I),["prevent"])},[e.createBaseVNode("span",null,e.toDisplayString(e.unref(t)("general.goAStepBack")),1)],8,wn)]),_:2},1024)]),reservation:e.withCtx(({next:H,prev:I})=>[e.createVNode(ie,{"show-terms-notice":!0,"show-gift-card":!0},{form:e.withCtx(()=>[e.createBaseVNode("form",Pn,[e.createBaseVNode("h2",null,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(t)("booking.reservation.detailsTitle")),1)]),!e.unref(tt)&&!(e.unref(ne)&&e.unref(oe))?(e.openBlock(),e.createElementBlock("ul",{key:0,class:e.normalizeClass({"fresh-booking-split-inputs":!e.unref(ne)&&!e.unref(oe)})},[e.unref(ne)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("li",Ln,[e.createVNode(Be,{modelValue:e.unref(y),"onUpdate:modelValue":V[2]||(V[2]=x=>e.isRef(y)?y.value=x:null),label:e.unref(t)("booking.reservation.arrivalTime"),icon:"hourglass-start","hour-range":ct.value,required:""},null,8,["modelValue","label","hour-range"])])),e.unref(oe)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("li",Rn,[e.createVNode(Be,{modelValue:e.unref(k),"onUpdate:modelValue":V[3]||(V[3]=x=>e.isRef(k)?k.value=x:null),label:e.unref(t)("booking.reservation.departureTime"),icon:"hourglass-end","hour-range":_t.value,required:""},null,8,["modelValue","label","hour-range"])]))],2)):e.createCommentVNode("",!0),e.createVNode(Zt,{modelValue:e.unref(a),"onUpdate:modelValue":V[4]||(V[4]=x=>e.isRef(a)?a.value=x:null),title:e.unref(v),"onUpdate:title":V[5]||(V[5]=x=>e.isRef(v)?v.value=x:null),"exclude-title":e.unref(nt),label:e.unref(t)("booking.reservation.name"),icon:"user-alt",placeholder:e.unref(t)("booking.reservation.namePlaceholder"),required:""},null,8,["modelValue","title","exclude-title","label","placeholder"]),e.createVNode(e.TextField,{modelValue:e.unref(g),"onUpdate:modelValue":V[6]||(V[6]=x=>e.isRef(g)?g.value=x:null),type:"email",name:"email",autocomplete:"email",label:e.unref(t)("booking.reservation.email"),icon:"at",placeholder:e.unref(t)("booking.reservation.emailPlaceholder"),required:""},null,8,["modelValue","label","placeholder"]),e.unref(je)?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(q.Checkbox,{key:1,modelValue:e.unref(B),"onUpdate:modelValue":V[7]||(V[7]=x=>e.isRef(B)?B.value=x:null),type:"checkbox",name:"newsletter",label:e.unref(t)("booking.reservation.newsletterSignUp")},null,8,["modelValue","label"])),e.unref(it)?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e.TextField,{key:2,modelValue:e.unref(r),"onUpdate:modelValue":V[8]||(V[8]=x=>e.isRef(r)?r.value=x:null),type:"text",name:"firm",autocomplete:"firm",label:`${e.unref(t)("booking.reservation.companyName")} (${e.unref(t)("booking.reservation.optional")})`,icon:"id-card",placeholder:e.unref(t)("booking.reservation.companyNamePlaceholder")},null,8,["modelValue","label","placeholder"])),e.createVNode(q.PhoneField,{modelValue:e.unref(f),"onUpdate:modelValue":V[9]||(V[9]=x=>e.isRef(f)?f.value=x:null),icon:"phone-office",label:e.unref(t)("booking.reservation.phone"),placeholder:e.unref(t)("booking.reservation.phonePlaceholder"),required:""},null,8,["modelValue","label","placeholder"]),e.createVNode(Yt,{modelValue:e.unref(S),"onUpdate:modelValue":V[10]||(V[10]=x=>e.isRef(S)?S.value=x:null),label:e.unref(t)("booking.reservation.country"),placeholder:e.unref(t)("booking.reservation.countryPlaceholder"),options:e.unref(s),required:""},null,8,["modelValue","label","placeholder","options"]),e.createVNode(e.TextField,{modelValue:e.unref(b),"onUpdate:modelValue":V[11]||(V[11]=x=>e.isRef(b)?b.value=x:null),type:"textarea",name:"address",autocomplete:"street-address",label:e.unref(t)("booking.reservation.streetAddress"),icon:"map-marked",placeholder:e.unref(t)("booking.reservation.streetAddressPlaceholder"),required:""},null,8,["modelValue","label","placeholder"]),e.createBaseVNode("ul",Hn,[e.createBaseVNode("li",null,[e.createVNode(e.TextField,{modelValue:e.unref(d),"onUpdate:modelValue":V[12]||(V[12]=x=>e.isRef(d)?d.value=x:null),type:"text",name:"postal",autocomplete:"postal-code",label:e.unref(t)("booking.reservation.postal"),icon:"mailbox",placeholder:e.unref(t)("booking.reservation.postalPlaceholder"),required:""},null,8,["modelValue","label","placeholder"])]),e.createBaseVNode("li",null,[e.createVNode(e.TextField,{modelValue:e.unref(m),"onUpdate:modelValue":V[13]||(V[13]=x=>e.isRef(m)?m.value=x:null),type:"text",name:"city",autocomplete:"address-level2",label:e.unref(t)("booking.reservation.city"),icon:"city",placeholder:e.unref(t)("booking.reservation.cityPlaceholder"),required:""},null,8,["modelValue","label","placeholder"])])]),e.createVNode(e.TextField,{modelValue:e.unref(F),"onUpdate:modelValue":V[14]||(V[14]=x=>e.isRef(F)?F.value=x:null),type:"textarea",label:`${e.unref(t)("booking.reservation.remark")} (${e.unref(t)("booking.reservation.optional")})`,icon:"info-circle",placeholder:e.unref(t)("booking.reservation.remarkPlaceholder")},null,8,["modelValue","label","placeholder"]),e.createVNode(e.TextField,{modelValue:e.unref(C),"onUpdate:modelValue":V[15]||(V[15]=x=>e.isRef(C)?C.value=x:null),type:"textarea",label:`${e.unref(t)("booking.reservation.allergies")} (${e.unref(t)("booking.reservation.optional")})`,icon:"allergies",placeholder:e.unref(t)("booking.reservation.allergiesPlaceholder")},null,8,["modelValue","label","placeholder"]),e.unref(ot)?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Jt,{key:3,modelValue:e.unref(h),"onUpdate:modelValue":V[16]||(V[16]=x=>e.isRef(h)?h.value=x:null),label:`${e.unref(t)("booking.reservation.purposeOfStay")} (${e.unref(t)("booking.reservation.optional")})`,name:"travelingFor",checkboxes:[{label:e.unref(t)("booking.reservation.business"),value:"Business"},{label:e.unref(t)("booking.reservation.pleasure"),value:"Pleasure"},{label:e.unref(t)("booking.reservation.bleasure"),value:"Bleasure"}]},null,8,["modelValue","label","checkboxes"]))])]),navigation:e.withCtx(()=>[e.createBaseVNode("div",null,[e.createVNode(e.Clickable,{label:e.unref(rt)?e.unref(t)("booking.reservation.nextButton"):e.unref(t)("general.confirmReservation"),disabled:!e.unref(p),"is-loading":e.unref(u),"full-width":"",onClickEvent:x=>ht(H)},null,8,["label","disabled","is-loading","onClickEvent"]),e.createBaseVNode("button",{class:"konnectio-abort-reservation link",onClick:e.withModifiers(x=>be(I),["prevent"])},[e.createBaseVNode("span",null,e.toDisplayString(e.unref(t)("general.goAStepBack")),1)],8,On)])]),_:2},1024)]),payment:e.withCtx(()=>[e.createVNode(q.CheckoutWindow)]),confirmation:e.withCtx(()=>[e.createVNode(z.ThankYou,{message:e.unref(t)("booking.confirmation.thankYou")},null,8,["message"])]),_:1},8,["layout"])]),_:1},8,["access-token","styling"])]),fallback:e.withCtx(()=>[e.createVNode(fn)]),_:1}))}});const An=e._export_sfc(zn,[["__scopeId","data-v-71498e56"]]);var Oe={exports:{}},re={exports:{}},le={exports:{}},Ve;function me(){return Ve||(Ve=1,function(o){(function(t,n){o.exports?o.exports=n():t.EvEmitter=n()})(typeof window<"u"?window:te.commonjsGlobal,function(){function t(){}var n=t.prototype;return n.on=function(i,s){if(!(!i||!s)){var l=this._events=this._events||{},_=l[i]=l[i]||[];return _.indexOf(s)==-1&&_.push(s),this}},n.once=function(i,s){if(!(!i||!s)){this.on(i,s);var l=this._onceEvents=this._onceEvents||{},_=l[i]=l[i]||{};return _[s]=!0,this}},n.off=function(i,s){var l=this._events&&this._events[i];if(!(!l||!l.length)){var _=l.indexOf(s);return _!=-1&&l.splice(_,1),this}},n.emitEvent=function(i,s){var l=this._events&&this._events[i];if(!(!l||!l.length)){l=l.slice(0),s=s||[];for(var _=this._onceEvents&&this._onceEvents[i],u=0;u<l.length;u++){var p=l[u],c=_&&_[p];c&&(this.off(i,p),delete _[p]),p.apply(this,s)}return this}},n.allOff=function(){delete this._events,delete this._onceEvents},t})}(le)),le.exports}var ae={exports:{}};/*!
1
+ "use strict";const e=require("./SelectField.vue_vue_type_style_index_0_lang-a4d7be42.cjs"),z=require("./ThankYou-2219aecc.cjs"),Re=require("./AvailabilitySkeleton-2dd88f42.cjs"),He=require("./NumberField.vue_vue_type_script_setup_true_lang-4b483b4b.cjs"),bt=require("./DateField.vue_vue_type_style_index_0_lang-7267a5fa.cjs"),q=require("./index-85e3a13d.cjs"),O=require("./_-b9738f5d.cjs"),te=require("./_commonjsHelpers-6763f629.cjs");require("./ActionField-dc98863c.cjs");require("./Field-825b33aa.cjs");const xt={key:0},ie=e.defineComponent({__name:"HotelReservationForm",props:{showGiftCard:{type:Boolean,default:!1},showTermsNotice:{type:Boolean,default:!1}},setup(o){const{t}=e.useI18n(),n=e.useSlots(),{hideArrivalDepartureInputs:i,disableArrivalUserSelection:s,disableDepartureUserSelection:l,arrivalDefault:_,departureDefault:u,currency:p}=e.storeToRefs(e.useUtilityStore()),{arrivalDate:c,departureDate:h}=e.storeToRefs(e.useAvailabilityStore()),{arrivalTime:y,departureTime:k,roomDisplay:a,templateID:v,totalPrice:g,areListingsLoading:f}=e.storeToRefs(e.useHotelStore()),{removeRoom:r}=e.useHotelStore();function d(m){return m.reduce((S,{totalPrice:F})=>S+F,0)}return(m,b)=>(e.openBlock(),e.createBlock(z.ReservationForm,{"total-price":e.unref(g),"show-gift-card":m.showGiftCard,"show-terms-notice":m.showTermsNotice,"is-sidebar-loading":e.unref(f),notice:e.unref(t)("hotel.reservationNotice")},e.createSlots({form:e.withCtx(()=>[e.renderSlot(m.$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(i)?e.unref(e.showDate)(e.unref(c)):`${e.unref(e.showDate)(e.unref(c))}, ${e.unref(s)?e.unref(_):e.unref(y)}`),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(i)?e.unref(e.showDate)(e.unref(h)):`${e.unref(e.showDate)(e.unref(h))}, ${e.unref(l)?e.unref(u):e.unref(k)}`),1)]),e.createBaseVNode("li",null,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(t)("booking.reservation.nights")),1),e.createBaseVNode("b",null,e.toDisplayString(e.unref(e.daysBetweenDates)(e.unref(c),e.unref(h)))+" "+e.toDisplayString(e.unref(e.lowercase)(e.unref(e.daysBetweenDates)(e.unref(c),e.unref(h))===1?e.unref(t)("booking.reservation.night"):e.unref(t)("booking.reservation.nights"))),1)])]),"price-summary":e.withCtx(()=>[isNaN(e.unref(v))&&e.unref(a).length>0?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(e.unref(a),({roomGroupID:S,title:F,variants:C})=>(e.openBlock(),e.createElementBlock("div",{key:S},[e.createBaseVNode("h6",null,[e.createBaseVNode("span",null,e.toDisplayString(F),1)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(C,(B,E)=>(e.openBlock(),e.createElementBlock("div",{key:E},[e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(B.rooms,(N,D)=>(e.openBlock(),e.createElementBlock("ul",{key:D},[e.createBaseVNode("li",null,[e.createBaseVNode("span",null,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(e.capitalized)(B.name)),1),e.createBaseVNode("span",null,[e.createTextVNode("( "),e.createVNode(e.Icon,{icon:"male",type:"fas",color:"font"}),e.createBaseVNode("span",null,e.toDisplayString(N.adultsCount),1),N.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(N.childrenCount),1)],64)):e.createCommentVNode("",!0),e.createTextVNode(") ")])]),e.createBaseVNode("b",null,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(e.showPrice)(N.totalPrice,e.unref(p))),1),e.createCommentVNode("",!0)])]),d(N.roomAddons)>0?(e.openBlock(),e.createElementBlock("li",xt,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(t)("booking.reservation.addons")),1),e.createBaseVNode("b",null,e.toDisplayString(e.unref(e.showPrice)(d(N.roomAddons),e.unref(p))),1)])):e.createCommentVNode("",!0)]))),128))]))),128))]))),128)):e.createCommentVNode("",!0)]),navigation:e.withCtx(()=>[e.renderSlot(m.$slots,"navigation")]),_:2},[e.unref(n).addons?{name:"addons",fn:e.withCtx(()=>[e.renderSlot(m.$slots,"addons")]),key:"0"}:void 0]),1032,["total-price","show-gift-card","show-terms-notice","is-sidebar-loading","notice"]))}}),St=o=>(e.pushScopeId("data-v-c84b41ba"),o=o(),e.popScopeId(),o),Bt={key:0},Vt={class:"konnectio-selected-room-config"},Et={class:"konnectio-selected-room-config-people"},Ft={key:0},Nt={class:"konnectio-selected-room-config-price"},Ct=St(()=>e.createBaseVNode("span",null,null,-1)),It=e.defineComponent({__name:"RoomConfigField",props:{modelValue:{},options:{},required:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},label:{}},emits:["update:modelValue"],setup(o,{emit:t}){const{t:n}=e.useI18n(),{currency:i}=e.storeToRefs(e.useUtilityStore()),s=t,l=o;function _(p){s("update:modelValue",p)}const u=e.computed({get:()=>l.modelValue,set:p=>_(p)});return(p,c)=>(e.openBlock(),e.createBlock(e._sfc_main,{modelValue:u.value,"onUpdate:modelValue":c[0]||(c[0]=h=>u.value=h),label:p.label,placeholder:"Select guest configuration",labelKey:"label",valueKey:"value","icon-placement":"label",options:p.options,readonly:p.readonly,required:p.required,searchable:!1},{option:e.withCtx(({data:h})=>[e.createBaseVNode("span",null,[e.createVNode(e.Icon,{icon:"male",type:"fas",color:"font"}),e.createBaseVNode("span",null,e.toDisplayString(`${h.adults}`),1),h.children>0?(e.openBlock(),e.createElementBlock("span",Bt,[e.createVNode(e.Icon,{icon:"child",type:"fas",color:"font"}),e.createBaseVNode("span",null,e.toDisplayString(`${h.children}`),1)])):e.createCommentVNode("",!0),e.createBaseVNode("span",null,e.toDisplayString(`(${e.unref(e.showPrice)(h.price,e.unref(i))})`),1)])]),"selected-option":e.withCtx(({data:h})=>[e.createBaseVNode("div",Vt,[e.createBaseVNode("div",Et,[e.createBaseVNode("div",null,[e.createCommentVNode("",!0),e.createBaseVNode("span",null,e.toDisplayString(`${h.adults} ${h.adults===1?e.unref(n)("general.adult"):e.unref(n)("general.adults")}`),1)]),h.children>0?(e.openBlock(),e.createElementBlock("div",Ft,[e.createCommentVNode("",!0),e.createBaseVNode("span",null,e.toDisplayString(`& ${h.children} ${h.children===1?e.unref(n)("general.child"):e.unref(n)("general.children")}`),1)])):e.createCommentVNode("",!0)]),e.createBaseVNode("div",Nt,[Ct,e.createTextVNode(" "+e.toDisplayString(`(${e.unref(e.showPrice)(h.price,e.unref(i))})`),1)])])]),_:1},8,["modelValue","label","options","readonly","required"]))}});const Tt=e._export_sfc(It,[["__scopeId","data-v-c84b41ba"]]),$t=["src"],Dt=e.defineComponent({__name:"Gallery",props:{gallery:{}},setup(o){const t=e.ref();e.ref();const n=e.ref();return e.onMounted(()=>{n.value=[new z.Sync({type:"index",synchronizedFlickingOptions:[{flicking:t.value,isSlidable:!0}]})]}),(i,s)=>(e.openBlock(),e.createElementBlock("div",null,[i.gallery.length>1?(e.openBlock(),e.createBlock(e.unref(z.Flicking),{ref_key:"slideshow",ref:t,key:i.gallery.length,options:{align:"prev",circular:!0,bounce:30},plugins:n.value},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.gallery,({medium:l,large:_},u)=>(e.openBlock(),e.createElementBlock("div",{key:u,class:"booking-availability-listing-featured-img"},[e.createBaseVNode("img",{src:_},null,8,$t)]))),128))]),_:1},8,["plugins"])):e.createCommentVNode("",!0)]))}}),wt={class:"fresh-booking-modal-gallery"},Pt={key:0,class:"fresh-booking-modal-facilities"},Lt={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"},Rt={class:"grid-sizer"},Ht=e.defineComponent({__name:"Info",props:{title:{},description:{},facilities:{},gallery:{}},setup(o){return(t,n)=>{const i=e.resolveDirective("masonry-tile"),s=e.resolveDirective("masonry");return e.openBlock(),e.createBlock(z._sfc_main,{title:t.title,description:t.description},e.createSlots({default:e.withCtx(()=>[t.facilities&&t.facilities.length!==0?(e.openBlock(),e.createElementBlock("div",Pt,[e.withDirectives((e.openBlock(),e.createElementBlock("ul",Lt,[e.withDirectives(e.createBaseVNode("div",Rt,null,512),[[i]]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.facilities,({name:l,subFacilities:_},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(l),1)]),e.createBaseVNode("ul",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(_,({name:p},c)=>(e.openBlock(),e.createElementBlock("li",{key:c},e.toDisplayString(p),1))),128))])])),[[i]])),128))])),[[s]])])):e.createCommentVNode("",!0)]),_:2},[t.gallery?{name:"above-description",fn:e.withCtx(()=>[e.createBaseVNode("div",wt,[e.createVNode(Dt,{gallery:t.gallery},null,8,["gallery"])])]),key:"0"}:void 0]),1032,["title","description"])}}});const Ot=e._export_sfc(Ht,[["__scopeId","data-v-9a91cedb"]]),zt={class:"konnectio-availability-listing-selection"},At={key:1},Mt={class:"fresh-booking-listing-config-body"},Wt={class:"fresh-booking-listing-units-body"};const Ut=e.defineComponent({__name:"Hotel",props:{room:{},layout:{}},setup(o){const{t}=e.useI18n(),n=o,i=e.ref([]);function s(B){i.value[B].config.push({id:NaN,units:0,addons:[]})}const l=e.computed(()=>n.room.rates.map(B=>({label:B.name,value:B.id}))),_=e.computed(()=>i.value.flatMap(B=>B.id));e.computed(()=>l.value.filter(B=>!_.value.includes(B.value)));const{hideAvailableRoomAmount:u,currency:p}=e.storeToRefs(e.useUtilityStore()),{roomSelect:c}=e.storeToRefs(e.useHotelStore()),{viewItem:h,addToCart:y,removeFromCart:k}=e.useTrackingStore(),a=(B,E)=>n.room.rates.find(N=>N.id===B)?.occupantRates.find(N=>N.index===E),v=e.computed(()=>n.room.rates.reduce((B,E)=>B<E.rackRate?B:E.rackRate,1/0)),g=e.computed(()=>n.room.rates.every(B=>B.isBreakfastIncluded===!0)),f=(B,E)=>a(B,E)?a(B,E)?.rooms:null,r=B=>n.room.rates.length>0?n.room.rates.find(E=>E.id===B)?.occupantRates.map(E=>({value:E.index,price:E.totalPrice,adults:E.adultsCount,children:E.childrenCount,hasBreakfast:E.hasBreakfast}))||[]:[],d=e.computed(()=>n.room.rates.length>1),{open:m,close:b}=e.Uo({component:Ot,attrs:{title:n.room.title,description:n.room.description,facilities:n.room.facilities,gallery:n.room.images,onConfirm(){b()}}});function S(){m(),h(n.room.title)}function F(){d.value?i.value.push({id:void 0,config:[{id:n.room.rates[0].occupantRateIndex||NaN,units:0,addons:[]}]}):i.value.push({id:n.room.rates[0].id,config:[{id:n.room.rates[0].occupantRateIndex||NaN,units:0,addons:[]}]})}e.onMounted(()=>{F()});const C=e.computed(()=>JSON.parse(JSON.stringify(i.value)));return e.watch(C,(B,E)=>{E.length>0&&B.forEach((N,D)=>{N.config.forEach((w,$)=>{const P=w.units,W=E[D].config[$].units;P!==W&&(P>W?(i.value[D].config[$].addons.push({}),y({id:n.room.id,name:n.room.title,value:n.room.rates[D].rackRate})):(i.value[D].config[$].addons.pop(),k({id:n.room.id,name:n.room.title,value:n.room.rates[D].rackRate})))})})},{deep:!0}),e.watch(i,()=>{c.value[n.room.id]=i.value},{deep:!0}),(B,E)=>(e.openBlock(),e.createBlock(z.Base,{"listing-id":B.room.id,gallery:B.room.images,name:B.room.title,description:B.room.description,layout:B.layout,facilities:B.room.facilities,"prices-from":v.value,"includes-breakfast":g.value,callback:S},{action:e.withCtx(()=>[e.createBaseVNode("div",zt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,(N,D)=>(e.openBlock(),e.createElementBlock("div",{key:N.id,class:"freshbooking-hotel-room"},[d.value?(e.openBlock(),e.createBlock(e._sfc_main,{key:0,modelValue:N.id,"onUpdate:modelValue":w=>N.id=w,label:e.unref(t)("hotel.roomVariant"),placeholder:e.unref(t)("hotel.chooseARoomVariant"),options:l.value,searchable:!1},null,8,["modelValue","onUpdate:modelValue","label","placeholder","options"])):e.createCommentVNode("",!0),N.id?(e.openBlock(),e.createElementBlock("div",At,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(B.room.rates,({id:w,maximumOccupants:$})=>(e.openBlock(),e.createElementBlock("div",{key:w},[N.id===w?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(N.config,(P,W)=>(e.openBlock(),e.createElementBlock("div",{key:W,class:"booking-availability-listing-action-selective"},[e.createBaseVNode("ul",Mt,[e.createVNode(Tt,{modelValue:P.id,"onUpdate:modelValue":U=>P.id=U,icon:"male","icon-type":"fas",label:e.unref(t)("general.guests"),description:`${e.unref(t)("general.maximumGuests")}: ${$}`,options:r(w),readonly:!(r(w).length>1)},null,8,["modelValue","onUpdate:modelValue","label","description","options","readonly"])]),e.createBaseVNode("ul",Wt,[e.createVNode(He._sfc_main,{modelValue:P.units,"onUpdate:modelValue":U=>P.units=U,description:e.unref(u)?void 0:`${e.unref(t)("booking.availability.availableUnits")}: ${f(N.id,P.id)}`,icon:"house","icon-type":"fas","icon-placement":"label",label:e.unref(t)("booking.availability.units"),minValue:0,"max-value":f(w,P.id)||1/0},null,8,["modelValue","onUpdate:modelValue","description","label","max-value"])]),e.createCommentVNode("",!0)]))),128)):e.createCommentVNode("",!0)]))),128))])):e.createCommentVNode("",!0)]))),128))])]),_:1},8,["listing-id","gallery","name","description","layout","facilities","prices-from","includes-breakfast"]))}});const qt=e._export_sfc(Ut,[["__scopeId","data-v-7fe13e0e"]]),Be=e.defineComponent({__name:"TimeField",props:{modelValue:{},label:{},id:{},name:{},placeholder:{},icon:{},iconColor:{},iconType:{},primaryColor:{},secondaryColor:{},weekendColor:{},highlightedColor:{},required:{type:Boolean},readonly:{type:Boolean},disabled:{type:Boolean},inline:{type:Boolean},range:{type:Boolean},enableTimePicker:{type:Boolean},inputStyle:{}},emits:["update:modelValue"],setup(o,{emit:t}){const n=t,i=o;function s(_){n("update:modelValue",_)}const l=e.ref(i.modelValue);return e.watch(l,_=>{s(_)}),(_,u)=>(e.openBlock(),e.createBlock(bt._sfc_main,{modelValue:l.value,"onUpdate:modelValue":u[0]||(u[0]=p=>l.value=p),type:"time",label:_.label,id:_.id,name:_.name,icon:_.icon,"icon-type":_.iconType,"icon-color":_.iconColor,"auto-apply":!0,required:_.required,readonly:_.readonly},null,8,["modelValue","label","id","name","icon","icon-type","icon-color","required","readonly"]))}});const Gt={style:{display:"flex","align-items":"baseline"}},jt=e.defineComponent({__name:"CountryField",props:{modelValue:{},options:{},required:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},label:{},placeholder:{}},emits:["update:modelValue"],setup(o,{emit:t}){const{t:n}=e.useI18n(),i=t,s=o;function l(u){i("update:modelValue",u)}const _=e.computed({get:()=>s.modelValue,set:u=>l(u)});return(u,p)=>(e.openBlock(),e.createBlock(e._sfc_main,{modelValue:_.value,"onUpdate:modelValue":p[0]||(p[0]=c=>_.value=c),label:u.label,placeholder:e.unref(n)("booking.reservation.countryPlaceholder"),labelKey:"name",valueKey:"id",options:u.options,required:u.required},{option:e.withCtx(({data:c})=>[e.createBaseVNode("i",{class:e.normalizeClass(["konnectio-flag-icon",c.iso])},null,2),e.createBaseVNode("span",null,e.toDisplayString(c.name),1)]),"selected-option":e.withCtx(({data:c})=>[e.createBaseVNode("div",Gt,[e.createBaseVNode("i",{class:e.normalizeClass(["konnectio-flag-icon",c.iso])},null,2),e.createBaseVNode("span",null,e.toDisplayString(c.name),1)])]),_:1},8,["modelValue","label","placeholder","options","required"]))}});const Yt=e._export_sfc(jt,[["__scopeId","data-v-1462612d"]]),Qt={class:"konnectio-radio-checkboxes"},Kt=e.defineComponent({__name:"CheckboxField",props:{modelValue:{},label:{},name:{},checkboxes:{}},emits:["update:modelValue"],setup(o,{emit:t}){const n=t,i=o;function s(_){n("update:modelValue",_)}const l=e.computed({get:()=>i.modelValue,set:_=>s(_)});return(_,u)=>(e.openBlock(),e.createBlock(e.InputField,{label:_.label,type:"multi-radio"},{default:e.withCtx(()=>[e.createBaseVNode("ul",Qt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(_.checkboxes,({label:p,value:c},h)=>(e.openBlock(),e.createElementBlock("li",{key:h},[e.createVNode(q.Checkbox,{modelValue:l.value,"onUpdate:modelValue":u[0]||(u[0]=y=>l.value=y),label:p,name:_.name,type:"radio",val:c},null,8,["modelValue","label","name","val"])]))),128))])]),_:1},8,["label"]))}});const Jt=e._export_sfc(Kt,[["__scopeId","data-v-d8d42a8a"]]),Xt=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(o,{emit:t}){const n=o,i=t,s=n.id||e.ranId(),l=e.ref(""),_=e.ref(2);function u(){i("update:modelValue",l.value)}e.watch(_,c=>{i("update:title",c)});const{t:p}=e.useI18n();return e.onMounted(()=>{n.modelValue&&(l.value=n.modelValue),n.title&&(_.value=n.title)}),(c,h)=>(e.openBlock(),e.createBlock(e.InputField,{label:c.label,id:e.unref(s),required:c.required,type:"fresh-booking-name-field",readonly:c.readonly,limit:c.limit},{default:e.withCtx(()=>[e.createBaseVNode("div",{class:e.normalizeClass(["fresh-booking-name-input",{"no-title":c.excludeTitle}])},[c.excludeTitle?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e._sfc_main,{key:0,modelValue:_.value,"onUpdate:modelValue":h[0]||(h[0]=y=>_.value=y),id:e.unref(e.ranId)(),icon:c.icon,"icon-color":c.iconColor,"icon-type":c.iconType,options:[{label:e.unref(p)("booking.reservation.noNameTitle"),value:1},{label:e.unref(p)("booking.reservation.nameTitleMr"),value:2},{label:e.unref(p)("booking.reservation.nameTitleMs"),value:3},{label:e.unref(p)("booking.reservation.nameTitleMrs"),value:4},{label:e.unref(p)("booking.reservation.nameTitleDr"),value:5}],readonly:c.readonly,"hide-button":"","input-style":c.inputStyle,searchable:!1},null,8,["modelValue","id","icon","icon-color","icon-type","options","readonly","input-style"])),e.createVNode(e.TextField,{modelValue:l.value,"onUpdate:modelValue":h[1]||(h[1]=y=>l.value=y),type:"text",name:"name",autocomplete:"name",id:e.unref(s),icon:c.excludeTitle?c.icon:void 0,"icon-color":c.iconColor,"icon-type":c.iconType,placeholder:c.placeholder,required:c.required,readonly:c.readonly,limit:c.limit,onInput:h[2]||(h[2]=y=>u()),"input-style":c.inputStyle},null,8,["modelValue","id","icon","icon-color","icon-type","placeholder","required","readonly","limit","input-style"])],2)]),_:1},8,["label","id","required","readonly","limit"]))}});const Zt=e._export_sfc(Xt,[["__scopeId","data-v-78b0b319"]]),en={class:"hotel-listing"},tn={class:"hotel-listing-content-gallery"},nn={class:"hotel-listing-content-thumbs"},on={class:"hotel-listing-content"},rn={class:"hotel-listing-content-header"},ln={class:"hotel-listing-content-title"},an={class:"hotel-listing-content-body"},sn={class:"hotel-listing-content-facilities"},un=e.defineComponent({__name:"Listing",setup(o){return(t,n)=>(e.openBlock(),e.createElementBlock("div",en,[e.createBaseVNode("div",tn,[e.createVNode(O.Element,{width:"280px",height:"153px"}),e.createBaseVNode("div",nn,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(3,i=>e.createVNode(O.Element,{key:i,width:"84px",height:"44px"})),64))])]),e.createBaseVNode("div",on,[e.createBaseVNode("div",rn,[e.createBaseVNode("div",ln,[e.createVNode(O.Element,{height:"30px",width:"60%"}),e.createVNode(O.Element,{height:"30px",width:"30px","border-radius":"100%"})]),e.createVNode(O.Element,{height:"15px",width:"25%"})]),e.createBaseVNode("div",an,[e.createVNode(O.Element,{height:"15px"}),e.createVNode(O.Element,{height:"15px"}),e.createVNode(O.Element,{height:"15px"}),e.createVNode(O.Element,{height:"15px"}),e.createVNode(O.Element,{height:"15px",width:"90%"})]),e.createBaseVNode("div",sn,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(5,i=>e.createVNode(O.Element,{key:i,height:"25px",width:"25px","border-radius":"6px"})),64))])])]))}});const G=e._export_sfc(un,[["__scopeId","data-v-5c132d7f"]]),dn={class:"hotel-skeleton"},cn={class:"hotel-skeleton-content"},_n={class:"hotel-skeleton-sidebar"},pn=e.defineComponent({__name:"HotelSkeleton",setup(o){return(t,n)=>(e.openBlock(),e.createElementBlock("div",dn,[e.createBaseVNode("div",cn,[e.createVNode(Re.AvailabilitySkeleton),e.createVNode(G),e.createVNode(G),e.createVNode(G)]),e.createBaseVNode("div",_n,[e.createVNode(z.Sidebar)])]))}});const fn=e._export_sfc(pn,[["__scopeId","data-v-4e50a5a1"]]),hn=o=>(e.pushScopeId("data-v-ba47f5b7"),o=o(),e.popScopeId(),o),yn={id:"booking-availability-container"},mn={id:"booking-availability-controls"};const vn={key:1,"sticky-container":""},gn={key:0};const kn={key:1},bn={key:0};const xn={id:"booking-availability-listings"},Sn={key:1,id:"booking-availability-no-listings"},Bn={key:1,id:"booking-availability-no-listings"},Vn={key:2,id:"reservation-availability-next-dates"},En={class:"reservation-special-offers-grid"},Fn=["title"];const Nn={key:2,class:"konnectio-listing-loading"},Cn={class:"fresh-booking-panel"},In={key:0,id:"konnectio-hotel-addons"};const Tn={class:"fresh-booking-event-addons-price"},$n={key:1},Dn=hn(()=>e.createBaseVNode("br",null,null,-1));const wn=["onClick"],Pn={class:"fresh-booking-panel"},Ln={key:0},Rn={key:1},Hn={class:"fresh-booking-split-inputs"},On=["onClick"],zn=e.defineComponent({name:"HotelLayout",__name:"Hotel",props:{accessToken:{},headerLayout:{default:e.BookingHeaderLayout.Minimal},styling:{}},setup(o){const{t}=e.useI18n(),{templateID:n,title:i,countries:s,areListingsLoading:l,isAvailabilityDataAvailable:_,isPaymentLoading:u,isReservationFormFilled:p,selectedPackage:c,travelingFor:h,arrivalTime:y,departureTime:k,name:a,nameTitle:v,email:g,phone:f,firmName:r,postal:d,city:m,address:b,country:S,remark:F,allergies:C,newsMails:B,roomSelect:E,roomDisplay:N,hasValidRoomSelection:D,getSelectedPackageRoom:w,availabilityData:$,selectionHasNoAddons:P}=e.storeToRefs(e.useHotelStore()),{arrivalDate:W,departureDate:U}=e.storeToRefs(e.useAvailabilityStore()),{currency:ke,isRecaptchaEnabled:Uo,disableNewsletterSignup:je,arrivalEarliest:Ye,arrivalLatest:Qe,departureEarliest:Ke,departureLatest:Je,enableTracking:Xe,arrivalDefault:Ze,departureDefault:et,enablePackages:qo,hideArrivalDepartureInputs:tt,disableArrivalUserSelection:ne,disableNamePrefix:nt,disableDepartureUserSelection:oe,disableTravelingFor:ot,disableCompanyField:it,hasPaymentGateway:rt}=e.storeToRefs(e.useUtilityStore());e.useAlertStore();const{beginCheckout:lt}=e.useTrackingStore(),{initialize:at,createReservation:st,getSingleListing:Go}=e.useHotelStore(),ut=e.ref(!0),dt=e.computed(()=>{const T=$.value.roomGroups.slice();T.forEach(H=>{H.pricesFrom=H.rates.reduce((I,x)=>I<x.rackRate?I:x.rackRate,1/0)});function V(H,I){return ut.value===!0?H.pricesFrom>I.pricesFrom?-1:1:H.pricesFrom>I.pricesFrom?1:-1}return T.sort(V)}),ct=e.computed(()=>[[parseInt(Ye.value.split(":")[0]),parseInt(Qe.value.split(":")[0])]]),_t=e.computed(()=>[[parseInt(Ke.value.split(":")[0]),parseInt(Je.value.split(":")[0])]]);function jo(T){n.value=T}function pt(){n.value=NaN}function be(T){P.value?T(2):T()}function ft(T,V){U.value=new Date(V),W.value=new Date(T),location.reload()}async function ht(T){await st(T)}function yt(T){Xe&&lt(),P.value?T(2):T()}function mt(){y.value===""&&(y.value=Ze.value),k.value===""&&(k.value=et.value)}return e.onMounted(()=>{at(),mt()}),(T,V)=>(e.openBlock(),e.createBlock(e.Suspense,null,{default:e.withCtx(()=>[e.createVNode(e._sfc_main$1,{id:"fresh-booking-hotel-module","access-token":T.accessToken,type:"hotel",styling:T.styling},{default:e.withCtx(()=>[e.createVNode(z.MultiStepForm,{layout:T.headerLayout},{availability:e.withCtx(({next:H})=>[e.createVNode(ie,null,{form:e.withCtx(()=>[e.createBaseVNode("div",yn,[e.createBaseVNode("div",mn,[e.createVNode(Re.HotelAvailabilityForm,{booking:!0})]),e.createCommentVNode("",!0),e.unref(l)?(e.openBlock(),e.createElementBlock("div",Nn,[e.createVNode(G),e.createVNode(G),e.createVNode(G)])):(e.openBlock(),e.createElementBlock("div",vn,[e.unref($).roomGroups.length>0?(e.openBlock(),e.createElementBlock("div",gn,[(e.unref($).templates.length>0,e.createCommentVNode("",!0)),isNaN(e.unref(n))?(e.openBlock(),e.createElementBlock("div",kn,[e.unref($).roomGroups.length>0?(e.openBlock(),e.createElementBlock("div",bn,[(e.unref($).templates.length>0,e.createCommentVNode("",!0)),e.createBaseVNode("ul",xn,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(dt.value,(I,x)=>(e.openBlock(),e.createBlock(qt,{room:I,key:x},null,8,["room"]))),128))])])):(e.openBlock(),e.createElementBlock("div",Sn,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(t)("booking.availability.nothingAvailable")),1)]))])):e.createCommentVNode("",!0)])):e.unref($).nextAvailableDates.length===0?(e.openBlock(),e.createElementBlock("div",Bn,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(t)("booking.availability.nothingAvailable")),1)])):(e.openBlock(),e.createElementBlock("div",Vn,[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",En,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref($).nextAvailableDates,(I,x)=>(e.openBlock(),e.createElementBlock("li",{key:x},[e.createBaseVNode("h3",{title:`${e.unref(e.showDate)(I.fromDate)} - ${e.unref(e.showDate)(I.toDate)}`},[e.createBaseVNode("span",null,e.toDisplayString(`${e.unref(e.showDate)(I.fromDate)} - ${e.unref(e.showDate)(I.toDate)}`),1)],8,Fn),e.createBaseVNode("ul",null,[e.createCommentVNode("",!0),e.createBaseVNode("li",null,[e.createVNode(e.Icon,{icon:"money-bill",type:"fal",color:"header"}),e.createBaseVNode("span",null,e.toDisplayString(e.unref(t)("booking.availability.pricesFrom"))+": "+e.toDisplayString(e.unref(e.showPrice)(I.priceStartFrom,e.unref(ke))),1)])]),e.createVNode(e.Clickable,{label:e.unref(t)("booking.availability.selectDates"),"full-width":"",onClickEvent:j=>ft(I.fromDate,I.toDate)},null,8,["label","onClickEvent"])]))),128))])]))]))])]),navigation:e.withCtx(()=>[isNaN(e.unref(n))?(e.openBlock(),e.createBlock(e.Clickable,{key:0,label:e.unref(P)?e.unref(t)("booking.availability.nextButton"):e.unref(t)("general.chooseAddons"),disabled:!e.unref(D),"is-loading":!1,"full-width":"",onClickEvent:I=>yt(H)},null,8,["label","disabled","onClickEvent"])):(e.openBlock(),e.createBlock(e.Clickable,{key:1,label:e.unref(t)("booking.reservation.prevButton"),"full-width":"",onClickEvent:V[1]||(V[1]=I=>pt())},null,8,["label"]))]),_:2},1024)]),addons:e.withCtx(({next:H,prev:I})=>[e.createVNode(ie,null,{form:e.withCtx(()=>[e.createBaseVNode("form",Cn,[e.createBaseVNode("h2",null,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(t)("booking.reservation.addons")),1)]),e.createBaseVNode("div",null,[isNaN(e.unref(n))?(e.openBlock(),e.createElementBlock("div",In,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(N),x=>(e.openBlock(),e.createElementBlock("ul",{key:x.roomGroupID},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(x.variants,(j,Y)=>(e.openBlock(),e.createElementBlock("li",{key:j.ratePlanID},[e.createBaseVNode("h4",null,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(e.capitalized)(x.title)),1)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(j.rooms,(L,xe)=>(e.openBlock(),e.createElementBlock("table",{key:xe,class:"fresh-booking-table"},[e.createBaseVNode("thead",null,[e.createBaseVNode("tr",null,[e.createBaseVNode("th",null,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(e.capitalized)(j.name)),1)]),e.createCommentVNode("",!0),e.createBaseVNode("th",Tn,[e.createBaseVNode("b",null,[e.createVNode(e.Icon,{icon:"male",type:"fas",color:"font"}),e.createBaseVNode("span",null,e.toDisplayString(L.adultsCount),1),L.childrenCount>0?(e.openBlock(),e.createBlock(e.Icon,{key:0,icon:"child",type:"fas",color:"font"})):e.createCommentVNode("",!0),L.childrenCount>0?(e.openBlock(),e.createElementBlock("span",$n,e.toDisplayString(L.childrenCount),1)):e.createCommentVNode("",!0)])])])]),e.createBaseVNode("tbody",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(x.addons,({quantityStrategy:Se,maximumNumber:vt,id:Q,name:gt,price:kt})=>(e.openBlock(),e.createElementBlock("tr",{key:Q},[e.createBaseVNode("td",null,[e.createBaseVNode("b",null,e.toDisplayString(e.unref(e.capitalized)(gt)),1),Dn,e.createBaseVNode("span",null,e.toDisplayString(e.unref(e.showPrice)(kt,e.unref(ke)))+" "+e.toDisplayString(e.unref(e.getPriceQuantityLabel)(Se)),1)]),e.createBaseVNode("td",null,[Se===12?(e.openBlock(),e.createBlock(He._sfc_main,{key:0,modelValue:e.unref(E)[x.roomGroupID][Y].config[L.configIdx].addons[L.roomIdx][Q],"onUpdate:modelValue":R=>e.unref(E)[x.roomGroupID][Y].config[L.configIdx].addons[L.roomIdx][Q]=R,small:!0,"min-value":0,"max-value":vt||1/0},null,8,["modelValue","onUpdate:modelValue","max-value"])):(e.openBlock(),e.createBlock(q.Checkbox,{key:1,modelValue:e.unref(E)[x.roomGroupID][Y].config[L.configIdx].addons[L.roomIdx][Q],"onUpdate:modelValue":R=>e.unref(E)[x.roomGroupID][Y].config[L.configIdx].addons[L.roomIdx][Q]=R,numeric:!0},null,8,["modelValue","onUpdate:modelValue"]))]),e.createCommentVNode("",!0)]))),128))])]))),128))]))),128))]))),128))])):e.createCommentVNode("",!0)])])]),navigation:e.withCtx(()=>[e.createVNode(e.Clickable,{label:e.unref(t)("general.startReservation"),"full-width":"",onClickEvent:H},null,8,["label","onClickEvent"]),e.createBaseVNode("button",{class:"konnectio-abort-reservation link",onClick:e.withModifiers(x=>be(I),["prevent"])},[e.createBaseVNode("span",null,e.toDisplayString(e.unref(t)("general.goAStepBack")),1)],8,wn)]),_:2},1024)]),reservation:e.withCtx(({next:H,prev:I})=>[e.createVNode(ie,{"show-terms-notice":!0,"show-gift-card":!0},{form:e.withCtx(()=>[e.createBaseVNode("form",Pn,[e.createBaseVNode("h2",null,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(t)("booking.reservation.detailsTitle")),1)]),!e.unref(tt)&&!(e.unref(ne)&&e.unref(oe))?(e.openBlock(),e.createElementBlock("ul",{key:0,class:e.normalizeClass({"fresh-booking-split-inputs":!e.unref(ne)&&!e.unref(oe)})},[e.unref(ne)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("li",Ln,[e.createVNode(Be,{modelValue:e.unref(y),"onUpdate:modelValue":V[2]||(V[2]=x=>e.isRef(y)?y.value=x:null),label:e.unref(t)("booking.reservation.arrivalTime"),icon:"hourglass-start","hour-range":ct.value,required:""},null,8,["modelValue","label","hour-range"])])),e.unref(oe)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("li",Rn,[e.createVNode(Be,{modelValue:e.unref(k),"onUpdate:modelValue":V[3]||(V[3]=x=>e.isRef(k)?k.value=x:null),label:e.unref(t)("booking.reservation.departureTime"),icon:"hourglass-end","hour-range":_t.value,required:""},null,8,["modelValue","label","hour-range"])]))],2)):e.createCommentVNode("",!0),e.createVNode(Zt,{modelValue:e.unref(a),"onUpdate:modelValue":V[4]||(V[4]=x=>e.isRef(a)?a.value=x:null),title:e.unref(v),"onUpdate:title":V[5]||(V[5]=x=>e.isRef(v)?v.value=x:null),"exclude-title":e.unref(nt),label:e.unref(t)("booking.reservation.name"),icon:"user-alt",placeholder:e.unref(t)("booking.reservation.namePlaceholder"),required:""},null,8,["modelValue","title","exclude-title","label","placeholder"]),e.createVNode(e.TextField,{modelValue:e.unref(g),"onUpdate:modelValue":V[6]||(V[6]=x=>e.isRef(g)?g.value=x:null),type:"email",name:"email",autocomplete:"email",label:e.unref(t)("booking.reservation.email"),icon:"at",placeholder:e.unref(t)("booking.reservation.emailPlaceholder"),required:""},null,8,["modelValue","label","placeholder"]),e.unref(je)?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(q.Checkbox,{key:1,modelValue:e.unref(B),"onUpdate:modelValue":V[7]||(V[7]=x=>e.isRef(B)?B.value=x:null),type:"checkbox",name:"newsletter",label:e.unref(t)("booking.reservation.newsletterSignUp")},null,8,["modelValue","label"])),e.unref(it)?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e.TextField,{key:2,modelValue:e.unref(r),"onUpdate:modelValue":V[8]||(V[8]=x=>e.isRef(r)?r.value=x:null),type:"text",name:"firm",autocomplete:"firm",label:`${e.unref(t)("booking.reservation.companyName")} (${e.unref(t)("booking.reservation.optional")})`,icon:"id-card",placeholder:e.unref(t)("booking.reservation.companyNamePlaceholder")},null,8,["modelValue","label","placeholder"])),e.createVNode(q.PhoneField,{modelValue:e.unref(f),"onUpdate:modelValue":V[9]||(V[9]=x=>e.isRef(f)?f.value=x:null),icon:"phone-office",label:e.unref(t)("booking.reservation.phone"),placeholder:e.unref(t)("booking.reservation.phonePlaceholder"),required:""},null,8,["modelValue","label","placeholder"]),e.createVNode(Yt,{modelValue:e.unref(S),"onUpdate:modelValue":V[10]||(V[10]=x=>e.isRef(S)?S.value=x:null),label:e.unref(t)("booking.reservation.country"),placeholder:e.unref(t)("booking.reservation.countryPlaceholder"),options:e.unref(s),required:""},null,8,["modelValue","label","placeholder","options"]),e.createVNode(e.TextField,{modelValue:e.unref(b),"onUpdate:modelValue":V[11]||(V[11]=x=>e.isRef(b)?b.value=x:null),type:"textarea",name:"address",autocomplete:"street-address",label:e.unref(t)("booking.reservation.streetAddress"),icon:"map-marked",placeholder:e.unref(t)("booking.reservation.streetAddressPlaceholder"),required:""},null,8,["modelValue","label","placeholder"]),e.createBaseVNode("ul",Hn,[e.createBaseVNode("li",null,[e.createVNode(e.TextField,{modelValue:e.unref(d),"onUpdate:modelValue":V[12]||(V[12]=x=>e.isRef(d)?d.value=x:null),type:"text",name:"postal",autocomplete:"postal-code",label:e.unref(t)("booking.reservation.postal"),icon:"mailbox",placeholder:e.unref(t)("booking.reservation.postalPlaceholder"),required:""},null,8,["modelValue","label","placeholder"])]),e.createBaseVNode("li",null,[e.createVNode(e.TextField,{modelValue:e.unref(m),"onUpdate:modelValue":V[13]||(V[13]=x=>e.isRef(m)?m.value=x:null),type:"text",name:"city",autocomplete:"address-level2",label:e.unref(t)("booking.reservation.city"),icon:"city",placeholder:e.unref(t)("booking.reservation.cityPlaceholder"),required:""},null,8,["modelValue","label","placeholder"])])]),e.createVNode(e.TextField,{modelValue:e.unref(F),"onUpdate:modelValue":V[14]||(V[14]=x=>e.isRef(F)?F.value=x:null),type:"textarea",label:`${e.unref(t)("booking.reservation.remark")} (${e.unref(t)("booking.reservation.optional")})`,icon:"info-circle",placeholder:e.unref(t)("booking.reservation.remarkPlaceholder")},null,8,["modelValue","label","placeholder"]),e.createVNode(e.TextField,{modelValue:e.unref(C),"onUpdate:modelValue":V[15]||(V[15]=x=>e.isRef(C)?C.value=x:null),type:"textarea",label:`${e.unref(t)("booking.reservation.allergies")} (${e.unref(t)("booking.reservation.optional")})`,icon:"allergies",placeholder:e.unref(t)("booking.reservation.allergiesPlaceholder")},null,8,["modelValue","label","placeholder"]),e.unref(ot)?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Jt,{key:3,modelValue:e.unref(h),"onUpdate:modelValue":V[16]||(V[16]=x=>e.isRef(h)?h.value=x:null),label:`${e.unref(t)("booking.reservation.purposeOfStay")} (${e.unref(t)("booking.reservation.optional")})`,name:"travelingFor",checkboxes:[{label:e.unref(t)("booking.reservation.business"),value:"Business"},{label:e.unref(t)("booking.reservation.pleasure"),value:"Pleasure"},{label:e.unref(t)("booking.reservation.bleasure"),value:"Bleasure"}]},null,8,["modelValue","label","checkboxes"]))])]),navigation:e.withCtx(()=>[e.createBaseVNode("div",null,[e.createVNode(e.Clickable,{label:e.unref(rt)?e.unref(t)("booking.reservation.nextButton"):e.unref(t)("general.confirmReservation"),disabled:!e.unref(p),"is-loading":e.unref(u),"full-width":"",onClickEvent:x=>ht(H)},null,8,["label","disabled","is-loading","onClickEvent"]),e.createBaseVNode("button",{class:"konnectio-abort-reservation link",onClick:e.withModifiers(x=>be(I),["prevent"])},[e.createBaseVNode("span",null,e.toDisplayString(e.unref(t)("general.goAStepBack")),1)],8,On)])]),_:2},1024)]),payment:e.withCtx(()=>[e.createVNode(q.CheckoutWindow)]),confirmation:e.withCtx(()=>[e.createVNode(z.ThankYou,{message:e.unref(t)("booking.confirmation.thankYou")},null,8,["message"])]),_:1},8,["layout"])]),_:1},8,["access-token","styling"])]),fallback:e.withCtx(()=>[e.createVNode(fn)]),_:1}))}});const An=e._export_sfc(zn,[["__scopeId","data-v-ba47f5b7"]]);var Oe={exports:{}},re={exports:{}},le={exports:{}},Ve;function me(){return Ve||(Ve=1,function(o){(function(t,n){o.exports?o.exports=n():t.EvEmitter=n()})(typeof window<"u"?window:te.commonjsGlobal,function(){function t(){}var n=t.prototype;return n.on=function(i,s){if(!(!i||!s)){var l=this._events=this._events||{},_=l[i]=l[i]||[];return _.indexOf(s)==-1&&_.push(s),this}},n.once=function(i,s){if(!(!i||!s)){this.on(i,s);var l=this._onceEvents=this._onceEvents||{},_=l[i]=l[i]||{};return _[s]=!0,this}},n.off=function(i,s){var l=this._events&&this._events[i];if(!(!l||!l.length)){var _=l.indexOf(s);return _!=-1&&l.splice(_,1),this}},n.emitEvent=function(i,s){var l=this._events&&this._events[i];if(!(!l||!l.length)){l=l.slice(0),s=s||[];for(var _=this._onceEvents&&this._onceEvents[i],u=0;u<l.length;u++){var p=l[u],c=_&&_[p];c&&(this.off(i,p),delete _[p]),p.apply(this,s)}return this}},n.allOff=function(){delete this._events,delete this._onceEvents},t})}(le)),le.exports}var ae={exports:{}};/*!
2
2
  * getSize v2.0.3
3
3
  * measure size of elements
4
4
  * MIT license
package/dist/hotel.js CHANGED
@@ -1,13 +1,13 @@
1
- import { k as K, D as ce, aE as uo, s as Z, c as Te, ab as yt, ac as ge, m as x, n as z, W as vt, q as u, w, aa as Pe, A as v, F as V, K as ie, Y as et, aF as co, v as I, a3 as N, a2 as R, x as B, aG as _e, a5 as Ue, p as T, H as re, J as de, f as Y, B as $e, P as _t, Q as bt, _ as ee, r as se, o as Se, ag as tt, ah as Be, aH as kt, aC as po, a1 as xe, y as Ie, I as xt, l as ot, T as ne, aA as ho, b as fo, N as mo, C as me, a6 as go, L as nt, G as F, M as yo, an as It, aI as vo, U as _o, a8 as bo, R as ko, V as xo, a9 as Io } from "./SelectField.vue_vue_type_style_index_0_lang-6bfcccf8.js";
2
- import { R as Eo, S as To, F as $o, _ as So, B as Co, a as Vo, M as Po, T as Bo, x as Do } from "./ThankYou-125b27fb.js";
3
- import { A as Lo, H as wo } from "./AvailabilitySkeleton-67ce6e6d.js";
4
- import { _ as Et } from "./NumberField.vue_vue_type_script_setup_true_lang-c9486f0a.js";
5
- import { _ as Ho } from "./DateField.vue_vue_type_style_index_0_lang-64a0c44b.js";
6
- import { C as Fe, P as Oo, a as Ao, S as zo } from "./index-cc419f8f.js";
7
- import { E as X } from "./_-3a1d4d62.js";
1
+ import { k as K, D as ce, aE as uo, s as Z, c as Te, ab as yt, ac as ge, m as x, n as z, W as vt, q as u, w, aa as Pe, A as v, F as V, K as ie, Y as et, aF as co, v as I, a3 as N, a2 as R, x as B, aG as _e, a5 as Ue, p as T, H as re, J as de, f as Y, B as $e, P as _t, Q as bt, _ as ee, r as se, o as Se, ag as tt, ah as Be, aH as kt, aC as po, a1 as xe, y as Ie, I as xt, l as ot, T as ne, aA as ho, b as fo, N as mo, C as me, a6 as go, L as nt, G as F, M as yo, an as It, aI as vo, U as _o, a8 as bo, R as ko, V as xo, a9 as Io } from "./SelectField.vue_vue_type_style_index_0_lang-9187c95a.js";
2
+ import { R as Eo, S as To, F as $o, _ as So, B as Co, a as Vo, M as Po, T as Bo, x as Do } from "./ThankYou-d505adc9.js";
3
+ import { A as Lo, H as wo } from "./AvailabilitySkeleton-64372a3d.js";
4
+ import { _ as Et } from "./NumberField.vue_vue_type_script_setup_true_lang-ab43cf10.js";
5
+ import { _ as Ho } from "./DateField.vue_vue_type_style_index_0_lang-239ef816.js";
6
+ import { C as Fe, P as Oo, a as Ao, S as zo } from "./index-524d9d24.js";
7
+ import { E as X } from "./_-e90b6bab.js";
8
8
  import { c as Tt, a as $t } from "./_commonjsHelpers-aeeeeb92.js";
9
- import "./ActionField-8e5218c5.js";
10
- import "./Field-0fa0f987.js";
9
+ import "./ActionField-cd683106.js";
10
+ import "./Field-94ac0265.js";
11
11
  const Ro = { key: 0 }, De = /* @__PURE__ */ K({
12
12
  __name: "HotelReservationForm",
13
13
  props: {
@@ -770,7 +770,7 @@ const ue = /* @__PURE__ */ ee($n, [["__scopeId", "data-v-5c132d7f"]]), Sn = { cl
770
770
  ]));
771
771
  }
772
772
  });
773
- const Bn = /* @__PURE__ */ ee(Pn, [["__scopeId", "data-v-4e50a5a1"]]), Dn = (o) => (_t("data-v-71498e56"), o = o(), bt(), o), Ln = { id: "booking-availability-container" }, wn = { id: "booking-availability-controls" };
773
+ const Bn = /* @__PURE__ */ ee(Pn, [["__scopeId", "data-v-4e50a5a1"]]), Dn = (o) => (_t("data-v-ba47f5b7"), o = o(), bt(), o), Ln = { id: "booking-availability-container" }, wn = { id: "booking-availability-controls" };
774
774
  const Hn = {
775
775
  key: 1,
776
776
  "sticky-container": ""
@@ -1049,7 +1049,6 @@ const Jn = ["onClick"], Xn = { class: "fresh-booking-panel" }, Zn = { key: 0 },
1049
1049
  ]),
1050
1050
  v("tbody", null, [
1051
1051
  (x(!0), I(R, null, N($.addons, ({
1052
- cardinality: dr,
1053
1052
  quantityStrategy: Ze,
1054
1053
  maximumNumber: so,
1055
1054
  id: fe,
@@ -1313,7 +1312,7 @@ const Jn = ["onClick"], Xn = { class: "fresh-booking-panel" }, Zn = { key: 0 },
1313
1312
  }));
1314
1313
  }
1315
1314
  });
1316
- const ii = /* @__PURE__ */ ee(ni, [["__scopeId", "data-v-71498e56"]]);
1315
+ const ii = /* @__PURE__ */ ee(ni, [["__scopeId", "data-v-ba47f5b7"]]);
1317
1316
  var St = { exports: {} }, Le = { exports: {} }, we = { exports: {} }, rt;
1318
1317
  function je() {
1319
1318
  return rt || (rt = 1, function(o) {
package/dist/hotel.js.br CHANGED
Binary file
@@ -1,4 +1,4 @@
1
- import { k as defineComponent, l as ranId, r as ref, o as onMounted, m as openBlock, n as createBlock, w as withCtx, A as createBaseVNode, p as createVNode, q as unref, T as TextField, I as InputField, _ as _export_sfc, aj as mergeProps, y as normalizeClass, ak as normalizeStyle, al as withKeys, v as createElementBlock, F as toDisplayString, x as createCommentVNode, D as useI18n, a5 as createTextVNode, s as storeToRefs, c as useUtilityStore, am as PaymentGateway, P as pushScopeId, Q as popScopeId } from "./SelectField.vue_vue_type_style_index_0_lang-6bfcccf8.js";
1
+ import { k as defineComponent, l as ranId, r as ref, o as onMounted, m as openBlock, n as createBlock, w as withCtx, A as createBaseVNode, p as createVNode, q as unref, T as TextField, I as InputField, _ as _export_sfc, aj as mergeProps, y as normalizeClass, ak as normalizeStyle, al as withKeys, v as createElementBlock, F as toDisplayString, x as createCommentVNode, D as useI18n, a5 as createTextVNode, s as storeToRefs, c as useUtilityStore, am as PaymentGateway, P as pushScopeId, Q as popScopeId } from "./SelectField.vue_vue_type_style_index_0_lang-9187c95a.js";
2
2
  const _hoisted_1$3 = { class: "fresh-booking-phone-input" }, _sfc_main$3 = /* @__PURE__ */ defineComponent({
3
3
  __name: "PhoneField",
4
4
  props: {
Binary file
@@ -1 +1 @@
1
- "use strict";const SelectField_vue_vue_type_style_index_0_lang=require("./SelectField.vue_vue_type_style_index_0_lang-2fab4a70.cjs"),_hoisted_1$3={class:"fresh-booking-phone-input"},_sfc_main$3=SelectField_vue_vue_type_style_index_0_lang.defineComponent({__name:"PhoneField",props:{modelValue:{},label:{},id:{},placeholder:{},icon:{default:"phone-office"},iconColor:{},iconType:{default:"fal"},required:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},inputStyle:{}},emits:["update:modelValue"],setup(e,{emit:t}){const i=t,l=e,_=l.id||SelectField_vue_vue_type_style_index_0_lang.ranId(),n=SelectField_vue_vue_type_style_index_0_lang.ref("+45"),d=SelectField_vue_vue_type_style_index_0_lang.ref("");function r(){i("update:modelValue",`${n.value} ${d.value}`)}return SelectField_vue_vue_type_style_index_0_lang.onMounted(()=>{if(l.modelValue){const s=l.modelValue.split(" ");n.value=s[0],d.value=s[1]}}),(s,u)=>(SelectField_vue_vue_type_style_index_0_lang.openBlock(),SelectField_vue_vue_type_style_index_0_lang.createBlock(SelectField_vue_vue_type_style_index_0_lang.InputField,{label:s.label,id:SelectField_vue_vue_type_style_index_0_lang.unref(_),type:"phone",required:s.required,readonly:s.readonly},{default:SelectField_vue_vue_type_style_index_0_lang.withCtx(()=>[SelectField_vue_vue_type_style_index_0_lang.createBaseVNode("div",_hoisted_1$3,[SelectField_vue_vue_type_style_index_0_lang.createVNode(SelectField_vue_vue_type_style_index_0_lang.TextField,{modelValue:n.value,"onUpdate:modelValue":u[0]||(u[0]=p=>n.value=p),type:"text",id:SelectField_vue_vue_type_style_index_0_lang.unref(SelectField_vue_vue_type_style_index_0_lang.ranId)(),name:"phone-code",autocomplete:"tel-country-code",icon:s.icon,"icon-color":s.iconColor,"icon-type":s.iconType,placeholder:"+45",required:s.required,readonly:s.readonly,"input-style":s.inputStyle,onInput:u[1]||(u[1]=p=>r())},null,8,["modelValue","id","icon","icon-color","icon-type","required","readonly","input-style"]),SelectField_vue_vue_type_style_index_0_lang.createVNode(SelectField_vue_vue_type_style_index_0_lang.TextField,{modelValue:d.value,"onUpdate:modelValue":u[2]||(u[2]=p=>d.value=p),type:"number",name:"phone",autocomplete:"tel-national",id:SelectField_vue_vue_type_style_index_0_lang.unref(_),placeholder:s.placeholder,required:s.required,readonly:s.readonly,"input-style":s.inputStyle,onInput:u[3]||(u[3]=p=>r())},null,8,["modelValue","id","placeholder","required","readonly","input-style"])])]),_:1},8,["label","id","required","readonly"]))}}),PhoneField_vue_vue_type_style_index_0_scoped_5cd094ab_lang="",PhoneField=SelectField_vue_vue_type_style_index_0_lang._export_sfc(_sfc_main$3,[["__scopeId","data-v-5cd094ab"]]),_hoisted_1$2=["required","type","name","readonly","disabled","value","checked"],_hoisted_2$2=["data-test"],_hoisted_3={key:0},_sfc_main$2=SelectField_vue_vue_type_style_index_0_lang.defineComponent({__name:"Checkbox",props:{modelValue:{type:[String,Boolean,Number]},numeric:{type:Boolean,default:!1},checked:{type:Boolean,default:!1},label:{},price:{},name:{},readonly:{type:Boolean,default:!1},type:{default:"checkbox"},required:{type:Boolean,default:!1},inputStyle:{},val:{}},emits:["update:modelValue"],setup(e,{emit:t}){const i=e,l=t;function _(){i.readonly!==!0&&l("update:modelValue",i.type==="radio"?i.val:i.numeric?i.modelValue?0:1:!i.modelValue)}return(n,d)=>(SelectField_vue_vue_type_style_index_0_lang.openBlock(),SelectField_vue_vue_type_style_index_0_lang.createBlock(SelectField_vue_vue_type_style_index_0_lang.InputField,{required:n.required,type:n.type,readonly:n.readonly},{default:SelectField_vue_vue_type_style_index_0_lang.withCtx(()=>[SelectField_vue_vue_type_style_index_0_lang.createBaseVNode("label",{class:SelectField_vue_vue_type_style_index_0_lang.normalizeClass(["fresh-booking-click-box-container",{"is-readonly":n.readonly},{"has-label":n.label},n.type==="radio"?"radio":"checkbox"])},[SelectField_vue_vue_type_style_index_0_lang.createBaseVNode("input",SelectField_vue_vue_type_style_index_0_lang.mergeProps(n.$attrs,{required:!!n.required,type:n.type,name:n.name,class:"hidden",readonly:!!n.readonly,disabled:!!n.readonly,value:n.type==="radio"?n.val:n.modelValue,checked:n.type==="radio"?n.val===n.modelValue:!!n.modelValue,onChange:d[0]||(d[0]=r=>_())}),null,16,_hoisted_1$2),SelectField_vue_vue_type_style_index_0_lang.createBaseVNode("div",{class:SelectField_vue_vue_type_style_index_0_lang.normalizeClass(["fresh-booking-click-box",{checked:n.type==="radio"?n.val===n.modelValue:!!n.modelValue}]),tabindex:"0",style:SelectField_vue_vue_type_style_index_0_lang.normalizeStyle(n.inputStyle),"data-test":n.name,onKeyup:d[1]||(d[1]=SelectField_vue_vue_type_style_index_0_lang.withKeys(r=>_(),["enter"]))},null,46,_hoisted_2$2),n.label?(SelectField_vue_vue_type_style_index_0_lang.openBlock(),SelectField_vue_vue_type_style_index_0_lang.createElementBlock("div",{key:0,class:SelectField_vue_vue_type_style_index_0_lang.normalizeClass(["fresh-booking-click-box-label",{"with-price":n.price}])},[SelectField_vue_vue_type_style_index_0_lang.createBaseVNode("span",null,SelectField_vue_vue_type_style_index_0_lang.toDisplayString(n.label),1),n.price?(SelectField_vue_vue_type_style_index_0_lang.openBlock(),SelectField_vue_vue_type_style_index_0_lang.createElementBlock("span",_hoisted_3,SelectField_vue_vue_type_style_index_0_lang.toDisplayString(n.price),1)):SelectField_vue_vue_type_style_index_0_lang.createCommentVNode("",!0)],2)):SelectField_vue_vue_type_style_index_0_lang.createCommentVNode("",!0)],2)]),_:1},8,["required","type","readonly"]))}}),Checkbox_vue_vue_type_style_index_0_scoped_7ef656cb_lang="",Checkbox=SelectField_vue_vue_type_style_index_0_lang._export_sfc(_sfc_main$2,[["__scopeId","data-v-7ef656cb"]]),_hoisted_1$1={href:"https://policies.google.com/privacy"},_hoisted_2$1={href:"https://policies.google.com/terms"},_sfc_main$1=SelectField_vue_vue_type_style_index_0_lang.defineComponent({__name:"GoogleNotice",setup(e){const{t}=SelectField_vue_vue_type_style_index_0_lang.useI18n();return(i,l)=>(SelectField_vue_vue_type_style_index_0_lang.openBlock(),SelectField_vue_vue_type_style_index_0_lang.createElementBlock("span",null,[SelectField_vue_vue_type_style_index_0_lang.createTextVNode(SelectField_vue_vue_type_style_index_0_lang.toDisplayString(SelectField_vue_vue_type_style_index_0_lang.unref(t)("googleNotice"))+" ",1),SelectField_vue_vue_type_style_index_0_lang.createBaseVNode("a",_hoisted_1$1,SelectField_vue_vue_type_style_index_0_lang.toDisplayString(SelectField_vue_vue_type_style_index_0_lang.unref(t)("googlePrivacyPolicy")),1),SelectField_vue_vue_type_style_index_0_lang.createTextVNode(" "+SelectField_vue_vue_type_style_index_0_lang.toDisplayString(SelectField_vue_vue_type_style_index_0_lang.unref(t)("googleAnd"))+" ",1),SelectField_vue_vue_type_style_index_0_lang.createBaseVNode("a",_hoisted_2$1,SelectField_vue_vue_type_style_index_0_lang.toDisplayString(SelectField_vue_vue_type_style_index_0_lang.unref(t)("googleTOS")),1),SelectField_vue_vue_type_style_index_0_lang.createTextVNode(" "+SelectField_vue_vue_type_style_index_0_lang.toDisplayString(SelectField_vue_vue_type_style_index_0_lang.unref(t)("googleApply"))+". ",1)]))}});function block0(e){const t=e;t.__i18n=t.__i18n||[],t.__i18n.push({locale:"",resource:{da:{googleNotice:{t:0,b:{t:2,i:[{t:3}],s:"Denne side er beskyttet af reCAPTCHA og Google's"}},googlePrivacyPolicy:{t:0,b:{t:2,i:[{t:3}],s:"Privatlivspolitik"}},googleAnd:{t:0,b:{t:2,i:[{t:3}],s:"og"}},googleTOS:{t:0,b:{t:2,i:[{t:3}],s:"Servicevilkår"}},googleApply:{t:0,b:{t:2,i:[{t:3}],s:"er gældende"}}},en:{googleNotice:{t:0,b:{t:2,i:[{t:3}],s:"This site is protected by reCAPTCHA and the Google"}},googlePrivacyPolicy:{t:0,b:{t:2,i:[{t:3}],s:"Privacy Policy"}},googleAnd:{t:0,b:{t:2,i:[{t:3}],s:"and"}},googleTOS:{t:0,b:{t:2,i:[{t:3}],s:"Terms of Service"}},googleApply:{t:0,b:{t:2,i:[{t:3}],s:"apply"}}}}})}typeof block0=="function"&&block0(_sfc_main$1);const _withScopeId=e=>(SelectField_vue_vue_type_style_index_0_lang.pushScopeId("data-v-340cb9ce"),e=e(),SelectField_vue_vue_type_style_index_0_lang.popScopeId(),e),_hoisted_1=_withScopeId(()=>SelectField_vue_vue_type_style_index_0_lang.createBaseVNode("div",{id:"fresh-booking-payment-checkout"},null,-1)),_hoisted_2=[_hoisted_1],_sfc_main=SelectField_vue_vue_type_style_index_0_lang.defineComponent({__name:"CheckoutWindow",setup(e){const{paymentGatewayId:t}=SelectField_vue_vue_type_style_index_0_lang.storeToRefs(SelectField_vue_vue_type_style_index_0_lang.useUtilityStore());return SelectField_vue_vue_type_style_index_0_lang.onMounted(()=>{const i=document.createElement("script"),l=document.createElement("script");i.setAttribute("src","https://checkout.dibspayment.eu/v1/checkout.js?v=1"),l.setAttribute("src","https://checkout.reepay.com/checkout.js"),document.head.appendChild(i),document.head.appendChild(l)}),(i,l)=>(SelectField_vue_vue_type_style_index_0_lang.openBlock(),SelectField_vue_vue_type_style_index_0_lang.createElementBlock("div",null,[SelectField_vue_vue_type_style_index_0_lang.createBaseVNode("div",{id:"fresh-booking-payment-checkout-wrapper",class:SelectField_vue_vue_type_style_index_0_lang.normalizeClass({reePay:SelectField_vue_vue_type_style_index_0_lang.unref(t)===SelectField_vue_vue_type_style_index_0_lang.unref(SelectField_vue_vue_type_style_index_0_lang.PaymentGateway).ReePay})},_hoisted_2,2)]))}}),CheckoutWindow_vue_vue_type_style_index_0_scoped_340cb9ce_lang="",CheckoutWindow=SelectField_vue_vue_type_style_index_0_lang._export_sfc(_sfc_main,[["__scopeId","data-v-340cb9ce"]]);var a=Object.defineProperty,c=(e,t,i)=>t in e?a(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,o=(e,t,i)=>(c(e,typeof t!="symbol"?t+"":t,i),i);const namespace="@@vue3-sticky-directive",events=["resize","scroll","touchstart","touchmove","touchend","pageshow","load"],batchStyle=(e,t={},i={})=>{for(let l in t)e.style[l]=t[l];for(let l in i)i[l]&&!e.classList.contains(l)?e.classList.add(l):!i[l]&&e.classList.contains(l)&&e.classList.remove(l)};class Sticky{constructor(e,t){o(this,"el"),o(this,"vm"),o(this,"unSubscribers"),o(this,"isPending"),o(this,"state"),o(this,"lastState"),o(this,"options"),o(this,"placeholderEl"),o(this,"containerEl"),this.el=e,this.vm=t,this.unSubscribers=[],this.isPending=!1,this.state={isTopSticky:null,isBottomSticky:null,height:null,width:null,xOffset:null},this.lastState={top:null,bottom:null,sticked:!1};const i=this.getAttribute("sticky-offset")||{},l=this.getAttribute("sticky-side")||"top",_=this.getAttribute("sticky-z-index")||"10",n=this.getAttribute("on-stick")||null;this.options={topOffset:Number(i.top)||0,bottomOffset:Number(i.bottom)||0,shouldTopSticky:l==="top"||l==="both",shouldBottomSticky:l==="bottom"||l==="both",zIndex:_,onStick:n}}doBind(){if(this.unSubscribers.length>0)return;const{el:e,vm:t}=this;t.$nextTick(()=>{this.placeholderEl=document.createElement("div"),this.containerEl=this.getContainerEl(),e.parentElement.insertBefore(this.placeholderEl,e),events.forEach(i=>{const l=this.update.bind(this);this.unSubscribers.push(()=>window.removeEventListener(i,l)),this.unSubscribers.push(()=>this.containerEl.removeEventListener(i,l)),window.addEventListener(i,l,{passive:!0}),this.containerEl.addEventListener(i,l,{passive:!0})})})}doUnbind(){this.unSubscribers.forEach(e=>e()),this.unSubscribers=[],this.resetElement()}update(){this.isPending||(requestAnimationFrame(()=>{this.isPending=!1,this.recomputeState(),this.updateElements()}),this.isPending=!0)}isTopSticky(){if(!this.options.shouldTopSticky)return!1;const e=this.state.placeholderElRect.top,t=this.state.containerElRect.bottom,i=this.options.topOffset,l=this.options.bottomOffset;return e<=i&&t>=l}isBottomSticky(){if(!this.options.shouldBottomSticky)return!1;const e=window.innerHeight-this.state.placeholderElRect.top-this.state.height,t=window.innerHeight-this.state.containerElRect.top,i=this.options.topOffset,l=this.options.bottomOffset;return e<=l&&t>=i}recomputeState(){this.state=Object.assign({},this.state,{height:this.getHeight(),width:this.getWidth(),xOffset:this.getXOffset(),placeholderElRect:this.getPlaceholderElRect(),containerElRect:this.getContainerElRect()}),this.state.isTopSticky=this.isTopSticky(),this.state.isBottomSticky=this.isBottomSticky()}fireEvents(){typeof this.options.onStick=="function"&&(this.lastState.top!==this.state.isTopSticky||this.lastState.bottom!==this.state.isBottomSticky||this.lastState.sticked!==(this.state.isTopSticky||this.state.isBottomSticky))&&(this.lastState={top:this.state.isTopSticky,bottom:this.state.isBottomSticky,sticked:this.state.isBottomSticky||this.state.isTopSticky},this.options.onStick(this.lastState))}updateElements(){const e={paddingTop:0},t={position:"static",top:"auto",bottom:"auto",left:"auto",width:"auto",zIndex:this.options.zIndex},i={"vue-sticky-placeholder":!0},l={"vue-sticky-el":!0,"top-sticky":!1,"bottom-sticky":!1};if(this.state.isTopSticky){t.position="fixed",t.top=this.options.topOffset+"px",t.left=this.state.xOffset+"px",t.width=this.state.width+"px";const _=this.state.containerElRect.bottom-this.state.height-this.options.bottomOffset-this.options.topOffset;_<0&&(t.top=_+this.options.topOffset+"px"),e.paddingTop=this.state.height+"px",l["top-sticky"]=!0}else if(this.state.isBottomSticky){t.position="fixed",t.bottom=this.options.bottomOffset+"px",t.left=this.state.xOffset+"px",t.width=this.state.width+"px";const _=window.innerHeight-this.state.containerElRect.top-this.state.height-this.options.bottomOffset-this.options.topOffset;_<0&&(t.bottom=_+this.options.bottomOffset+"px"),e.paddingTop=this.state.height+"px",l["bottom-sticky"]=!0}else e.paddingTop=0;batchStyle(this.el,t,l),batchStyle(this.placeholderEl,e,i),this.fireEvents()}resetElement(){["position","top","bottom","left","width","zIndex"].forEach(t=>{this.el.style.removeProperty(t)}),this.el.classList.remove("bottom-sticky","top-sticky");const{parentElement:e}=this.placeholderEl;e&&e.removeChild(this.placeholderEl)}getContainerEl(){let e=this.el.parentElement;for(;e&&e.tagName!=="HTML"&&e.tagName!=="BODY"&&e.nodeType===1;){if(e.hasAttribute("sticky-container"))return e;e=e.parentElement}return this.el.parentElement}getXOffset(){return this.placeholderEl.getBoundingClientRect().left}getWidth(){return this.placeholderEl.getBoundingClientRect().width}getHeight(){return this.el.getBoundingClientRect().height}getPlaceholderElRect(){return this.placeholderEl.getBoundingClientRect()}getContainerElRect(){return this.containerEl.getBoundingClientRect()}getAttribute(name){const expr=this.el.getAttribute(name);let result;if(expr)if(this.vm[expr])result=this.vm[expr];else try{result=eval(`(${expr})`)}catch(e){result=expr}return result}}const Sticky$1={mounted(e,t){(typeof t.value>"u"||t.value)&&(e[namespace]=new Sticky(e,t.instance),e[namespace].doBind())},unmounted(e){e[namespace]&&(e[namespace].doUnbind(),e[namespace]=void 0)},updated(e,t){typeof t.value>"u"||t.value?(e[namespace]||(e[namespace]=new Sticky(e,t.instance)),e[namespace].doBind()):e[namespace]&&e[namespace].doUnbind()}},StickyPlugin={install(e){e.directive("Sticky",Sticky$1)}};exports.Checkbox=Checkbox;exports.CheckoutWindow=CheckoutWindow;exports.PhoneField=PhoneField;exports.StickyPlugin=StickyPlugin;exports._sfc_main=_sfc_main$1;
1
+ "use strict";const SelectField_vue_vue_type_style_index_0_lang=require("./SelectField.vue_vue_type_style_index_0_lang-a4d7be42.cjs"),_hoisted_1$3={class:"fresh-booking-phone-input"},_sfc_main$3=SelectField_vue_vue_type_style_index_0_lang.defineComponent({__name:"PhoneField",props:{modelValue:{},label:{},id:{},placeholder:{},icon:{default:"phone-office"},iconColor:{},iconType:{default:"fal"},required:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},inputStyle:{}},emits:["update:modelValue"],setup(e,{emit:t}){const i=t,l=e,_=l.id||SelectField_vue_vue_type_style_index_0_lang.ranId(),n=SelectField_vue_vue_type_style_index_0_lang.ref("+45"),d=SelectField_vue_vue_type_style_index_0_lang.ref("");function r(){i("update:modelValue",`${n.value} ${d.value}`)}return SelectField_vue_vue_type_style_index_0_lang.onMounted(()=>{if(l.modelValue){const s=l.modelValue.split(" ");n.value=s[0],d.value=s[1]}}),(s,u)=>(SelectField_vue_vue_type_style_index_0_lang.openBlock(),SelectField_vue_vue_type_style_index_0_lang.createBlock(SelectField_vue_vue_type_style_index_0_lang.InputField,{label:s.label,id:SelectField_vue_vue_type_style_index_0_lang.unref(_),type:"phone",required:s.required,readonly:s.readonly},{default:SelectField_vue_vue_type_style_index_0_lang.withCtx(()=>[SelectField_vue_vue_type_style_index_0_lang.createBaseVNode("div",_hoisted_1$3,[SelectField_vue_vue_type_style_index_0_lang.createVNode(SelectField_vue_vue_type_style_index_0_lang.TextField,{modelValue:n.value,"onUpdate:modelValue":u[0]||(u[0]=p=>n.value=p),type:"text",id:SelectField_vue_vue_type_style_index_0_lang.unref(SelectField_vue_vue_type_style_index_0_lang.ranId)(),name:"phone-code",autocomplete:"tel-country-code",icon:s.icon,"icon-color":s.iconColor,"icon-type":s.iconType,placeholder:"+45",required:s.required,readonly:s.readonly,"input-style":s.inputStyle,onInput:u[1]||(u[1]=p=>r())},null,8,["modelValue","id","icon","icon-color","icon-type","required","readonly","input-style"]),SelectField_vue_vue_type_style_index_0_lang.createVNode(SelectField_vue_vue_type_style_index_0_lang.TextField,{modelValue:d.value,"onUpdate:modelValue":u[2]||(u[2]=p=>d.value=p),type:"number",name:"phone",autocomplete:"tel-national",id:SelectField_vue_vue_type_style_index_0_lang.unref(_),placeholder:s.placeholder,required:s.required,readonly:s.readonly,"input-style":s.inputStyle,onInput:u[3]||(u[3]=p=>r())},null,8,["modelValue","id","placeholder","required","readonly","input-style"])])]),_:1},8,["label","id","required","readonly"]))}}),PhoneField_vue_vue_type_style_index_0_scoped_5cd094ab_lang="",PhoneField=SelectField_vue_vue_type_style_index_0_lang._export_sfc(_sfc_main$3,[["__scopeId","data-v-5cd094ab"]]),_hoisted_1$2=["required","type","name","readonly","disabled","value","checked"],_hoisted_2$2=["data-test"],_hoisted_3={key:0},_sfc_main$2=SelectField_vue_vue_type_style_index_0_lang.defineComponent({__name:"Checkbox",props:{modelValue:{type:[String,Boolean,Number]},numeric:{type:Boolean,default:!1},checked:{type:Boolean,default:!1},label:{},price:{},name:{},readonly:{type:Boolean,default:!1},type:{default:"checkbox"},required:{type:Boolean,default:!1},inputStyle:{},val:{}},emits:["update:modelValue"],setup(e,{emit:t}){const i=e,l=t;function _(){i.readonly!==!0&&l("update:modelValue",i.type==="radio"?i.val:i.numeric?i.modelValue?0:1:!i.modelValue)}return(n,d)=>(SelectField_vue_vue_type_style_index_0_lang.openBlock(),SelectField_vue_vue_type_style_index_0_lang.createBlock(SelectField_vue_vue_type_style_index_0_lang.InputField,{required:n.required,type:n.type,readonly:n.readonly},{default:SelectField_vue_vue_type_style_index_0_lang.withCtx(()=>[SelectField_vue_vue_type_style_index_0_lang.createBaseVNode("label",{class:SelectField_vue_vue_type_style_index_0_lang.normalizeClass(["fresh-booking-click-box-container",{"is-readonly":n.readonly},{"has-label":n.label},n.type==="radio"?"radio":"checkbox"])},[SelectField_vue_vue_type_style_index_0_lang.createBaseVNode("input",SelectField_vue_vue_type_style_index_0_lang.mergeProps(n.$attrs,{required:!!n.required,type:n.type,name:n.name,class:"hidden",readonly:!!n.readonly,disabled:!!n.readonly,value:n.type==="radio"?n.val:n.modelValue,checked:n.type==="radio"?n.val===n.modelValue:!!n.modelValue,onChange:d[0]||(d[0]=r=>_())}),null,16,_hoisted_1$2),SelectField_vue_vue_type_style_index_0_lang.createBaseVNode("div",{class:SelectField_vue_vue_type_style_index_0_lang.normalizeClass(["fresh-booking-click-box",{checked:n.type==="radio"?n.val===n.modelValue:!!n.modelValue}]),tabindex:"0",style:SelectField_vue_vue_type_style_index_0_lang.normalizeStyle(n.inputStyle),"data-test":n.name,onKeyup:d[1]||(d[1]=SelectField_vue_vue_type_style_index_0_lang.withKeys(r=>_(),["enter"]))},null,46,_hoisted_2$2),n.label?(SelectField_vue_vue_type_style_index_0_lang.openBlock(),SelectField_vue_vue_type_style_index_0_lang.createElementBlock("div",{key:0,class:SelectField_vue_vue_type_style_index_0_lang.normalizeClass(["fresh-booking-click-box-label",{"with-price":n.price}])},[SelectField_vue_vue_type_style_index_0_lang.createBaseVNode("span",null,SelectField_vue_vue_type_style_index_0_lang.toDisplayString(n.label),1),n.price?(SelectField_vue_vue_type_style_index_0_lang.openBlock(),SelectField_vue_vue_type_style_index_0_lang.createElementBlock("span",_hoisted_3,SelectField_vue_vue_type_style_index_0_lang.toDisplayString(n.price),1)):SelectField_vue_vue_type_style_index_0_lang.createCommentVNode("",!0)],2)):SelectField_vue_vue_type_style_index_0_lang.createCommentVNode("",!0)],2)]),_:1},8,["required","type","readonly"]))}}),Checkbox_vue_vue_type_style_index_0_scoped_7ef656cb_lang="",Checkbox=SelectField_vue_vue_type_style_index_0_lang._export_sfc(_sfc_main$2,[["__scopeId","data-v-7ef656cb"]]),_hoisted_1$1={href:"https://policies.google.com/privacy"},_hoisted_2$1={href:"https://policies.google.com/terms"},_sfc_main$1=SelectField_vue_vue_type_style_index_0_lang.defineComponent({__name:"GoogleNotice",setup(e){const{t}=SelectField_vue_vue_type_style_index_0_lang.useI18n();return(i,l)=>(SelectField_vue_vue_type_style_index_0_lang.openBlock(),SelectField_vue_vue_type_style_index_0_lang.createElementBlock("span",null,[SelectField_vue_vue_type_style_index_0_lang.createTextVNode(SelectField_vue_vue_type_style_index_0_lang.toDisplayString(SelectField_vue_vue_type_style_index_0_lang.unref(t)("googleNotice"))+" ",1),SelectField_vue_vue_type_style_index_0_lang.createBaseVNode("a",_hoisted_1$1,SelectField_vue_vue_type_style_index_0_lang.toDisplayString(SelectField_vue_vue_type_style_index_0_lang.unref(t)("googlePrivacyPolicy")),1),SelectField_vue_vue_type_style_index_0_lang.createTextVNode(" "+SelectField_vue_vue_type_style_index_0_lang.toDisplayString(SelectField_vue_vue_type_style_index_0_lang.unref(t)("googleAnd"))+" ",1),SelectField_vue_vue_type_style_index_0_lang.createBaseVNode("a",_hoisted_2$1,SelectField_vue_vue_type_style_index_0_lang.toDisplayString(SelectField_vue_vue_type_style_index_0_lang.unref(t)("googleTOS")),1),SelectField_vue_vue_type_style_index_0_lang.createTextVNode(" "+SelectField_vue_vue_type_style_index_0_lang.toDisplayString(SelectField_vue_vue_type_style_index_0_lang.unref(t)("googleApply"))+". ",1)]))}});function block0(e){const t=e;t.__i18n=t.__i18n||[],t.__i18n.push({locale:"",resource:{da:{googleNotice:{t:0,b:{t:2,i:[{t:3}],s:"Denne side er beskyttet af reCAPTCHA og Google's"}},googlePrivacyPolicy:{t:0,b:{t:2,i:[{t:3}],s:"Privatlivspolitik"}},googleAnd:{t:0,b:{t:2,i:[{t:3}],s:"og"}},googleTOS:{t:0,b:{t:2,i:[{t:3}],s:"Servicevilkår"}},googleApply:{t:0,b:{t:2,i:[{t:3}],s:"er gældende"}}},en:{googleNotice:{t:0,b:{t:2,i:[{t:3}],s:"This site is protected by reCAPTCHA and the Google"}},googlePrivacyPolicy:{t:0,b:{t:2,i:[{t:3}],s:"Privacy Policy"}},googleAnd:{t:0,b:{t:2,i:[{t:3}],s:"and"}},googleTOS:{t:0,b:{t:2,i:[{t:3}],s:"Terms of Service"}},googleApply:{t:0,b:{t:2,i:[{t:3}],s:"apply"}}}}})}typeof block0=="function"&&block0(_sfc_main$1);const _withScopeId=e=>(SelectField_vue_vue_type_style_index_0_lang.pushScopeId("data-v-340cb9ce"),e=e(),SelectField_vue_vue_type_style_index_0_lang.popScopeId(),e),_hoisted_1=_withScopeId(()=>SelectField_vue_vue_type_style_index_0_lang.createBaseVNode("div",{id:"fresh-booking-payment-checkout"},null,-1)),_hoisted_2=[_hoisted_1],_sfc_main=SelectField_vue_vue_type_style_index_0_lang.defineComponent({__name:"CheckoutWindow",setup(e){const{paymentGatewayId:t}=SelectField_vue_vue_type_style_index_0_lang.storeToRefs(SelectField_vue_vue_type_style_index_0_lang.useUtilityStore());return SelectField_vue_vue_type_style_index_0_lang.onMounted(()=>{const i=document.createElement("script"),l=document.createElement("script");i.setAttribute("src","https://checkout.dibspayment.eu/v1/checkout.js?v=1"),l.setAttribute("src","https://checkout.reepay.com/checkout.js"),document.head.appendChild(i),document.head.appendChild(l)}),(i,l)=>(SelectField_vue_vue_type_style_index_0_lang.openBlock(),SelectField_vue_vue_type_style_index_0_lang.createElementBlock("div",null,[SelectField_vue_vue_type_style_index_0_lang.createBaseVNode("div",{id:"fresh-booking-payment-checkout-wrapper",class:SelectField_vue_vue_type_style_index_0_lang.normalizeClass({reePay:SelectField_vue_vue_type_style_index_0_lang.unref(t)===SelectField_vue_vue_type_style_index_0_lang.unref(SelectField_vue_vue_type_style_index_0_lang.PaymentGateway).ReePay})},_hoisted_2,2)]))}}),CheckoutWindow_vue_vue_type_style_index_0_scoped_340cb9ce_lang="",CheckoutWindow=SelectField_vue_vue_type_style_index_0_lang._export_sfc(_sfc_main,[["__scopeId","data-v-340cb9ce"]]);var a=Object.defineProperty,c=(e,t,i)=>t in e?a(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,o=(e,t,i)=>(c(e,typeof t!="symbol"?t+"":t,i),i);const namespace="@@vue3-sticky-directive",events=["resize","scroll","touchstart","touchmove","touchend","pageshow","load"],batchStyle=(e,t={},i={})=>{for(let l in t)e.style[l]=t[l];for(let l in i)i[l]&&!e.classList.contains(l)?e.classList.add(l):!i[l]&&e.classList.contains(l)&&e.classList.remove(l)};class Sticky{constructor(e,t){o(this,"el"),o(this,"vm"),o(this,"unSubscribers"),o(this,"isPending"),o(this,"state"),o(this,"lastState"),o(this,"options"),o(this,"placeholderEl"),o(this,"containerEl"),this.el=e,this.vm=t,this.unSubscribers=[],this.isPending=!1,this.state={isTopSticky:null,isBottomSticky:null,height:null,width:null,xOffset:null},this.lastState={top:null,bottom:null,sticked:!1};const i=this.getAttribute("sticky-offset")||{},l=this.getAttribute("sticky-side")||"top",_=this.getAttribute("sticky-z-index")||"10",n=this.getAttribute("on-stick")||null;this.options={topOffset:Number(i.top)||0,bottomOffset:Number(i.bottom)||0,shouldTopSticky:l==="top"||l==="both",shouldBottomSticky:l==="bottom"||l==="both",zIndex:_,onStick:n}}doBind(){if(this.unSubscribers.length>0)return;const{el:e,vm:t}=this;t.$nextTick(()=>{this.placeholderEl=document.createElement("div"),this.containerEl=this.getContainerEl(),e.parentElement.insertBefore(this.placeholderEl,e),events.forEach(i=>{const l=this.update.bind(this);this.unSubscribers.push(()=>window.removeEventListener(i,l)),this.unSubscribers.push(()=>this.containerEl.removeEventListener(i,l)),window.addEventListener(i,l,{passive:!0}),this.containerEl.addEventListener(i,l,{passive:!0})})})}doUnbind(){this.unSubscribers.forEach(e=>e()),this.unSubscribers=[],this.resetElement()}update(){this.isPending||(requestAnimationFrame(()=>{this.isPending=!1,this.recomputeState(),this.updateElements()}),this.isPending=!0)}isTopSticky(){if(!this.options.shouldTopSticky)return!1;const e=this.state.placeholderElRect.top,t=this.state.containerElRect.bottom,i=this.options.topOffset,l=this.options.bottomOffset;return e<=i&&t>=l}isBottomSticky(){if(!this.options.shouldBottomSticky)return!1;const e=window.innerHeight-this.state.placeholderElRect.top-this.state.height,t=window.innerHeight-this.state.containerElRect.top,i=this.options.topOffset,l=this.options.bottomOffset;return e<=l&&t>=i}recomputeState(){this.state=Object.assign({},this.state,{height:this.getHeight(),width:this.getWidth(),xOffset:this.getXOffset(),placeholderElRect:this.getPlaceholderElRect(),containerElRect:this.getContainerElRect()}),this.state.isTopSticky=this.isTopSticky(),this.state.isBottomSticky=this.isBottomSticky()}fireEvents(){typeof this.options.onStick=="function"&&(this.lastState.top!==this.state.isTopSticky||this.lastState.bottom!==this.state.isBottomSticky||this.lastState.sticked!==(this.state.isTopSticky||this.state.isBottomSticky))&&(this.lastState={top:this.state.isTopSticky,bottom:this.state.isBottomSticky,sticked:this.state.isBottomSticky||this.state.isTopSticky},this.options.onStick(this.lastState))}updateElements(){const e={paddingTop:0},t={position:"static",top:"auto",bottom:"auto",left:"auto",width:"auto",zIndex:this.options.zIndex},i={"vue-sticky-placeholder":!0},l={"vue-sticky-el":!0,"top-sticky":!1,"bottom-sticky":!1};if(this.state.isTopSticky){t.position="fixed",t.top=this.options.topOffset+"px",t.left=this.state.xOffset+"px",t.width=this.state.width+"px";const _=this.state.containerElRect.bottom-this.state.height-this.options.bottomOffset-this.options.topOffset;_<0&&(t.top=_+this.options.topOffset+"px"),e.paddingTop=this.state.height+"px",l["top-sticky"]=!0}else if(this.state.isBottomSticky){t.position="fixed",t.bottom=this.options.bottomOffset+"px",t.left=this.state.xOffset+"px",t.width=this.state.width+"px";const _=window.innerHeight-this.state.containerElRect.top-this.state.height-this.options.bottomOffset-this.options.topOffset;_<0&&(t.bottom=_+this.options.bottomOffset+"px"),e.paddingTop=this.state.height+"px",l["bottom-sticky"]=!0}else e.paddingTop=0;batchStyle(this.el,t,l),batchStyle(this.placeholderEl,e,i),this.fireEvents()}resetElement(){["position","top","bottom","left","width","zIndex"].forEach(t=>{this.el.style.removeProperty(t)}),this.el.classList.remove("bottom-sticky","top-sticky");const{parentElement:e}=this.placeholderEl;e&&e.removeChild(this.placeholderEl)}getContainerEl(){let e=this.el.parentElement;for(;e&&e.tagName!=="HTML"&&e.tagName!=="BODY"&&e.nodeType===1;){if(e.hasAttribute("sticky-container"))return e;e=e.parentElement}return this.el.parentElement}getXOffset(){return this.placeholderEl.getBoundingClientRect().left}getWidth(){return this.placeholderEl.getBoundingClientRect().width}getHeight(){return this.el.getBoundingClientRect().height}getPlaceholderElRect(){return this.placeholderEl.getBoundingClientRect()}getContainerElRect(){return this.containerEl.getBoundingClientRect()}getAttribute(name){const expr=this.el.getAttribute(name);let result;if(expr)if(this.vm[expr])result=this.vm[expr];else try{result=eval(`(${expr})`)}catch(e){result=expr}return result}}const Sticky$1={mounted(e,t){(typeof t.value>"u"||t.value)&&(e[namespace]=new Sticky(e,t.instance),e[namespace].doBind())},unmounted(e){e[namespace]&&(e[namespace].doUnbind(),e[namespace]=void 0)},updated(e,t){typeof t.value>"u"||t.value?(e[namespace]||(e[namespace]=new Sticky(e,t.instance)),e[namespace].doBind()):e[namespace]&&e[namespace].doUnbind()}},StickyPlugin={install(e){e.directive("Sticky",Sticky$1)}};exports.Checkbox=Checkbox;exports.CheckoutWindow=CheckoutWindow;exports.PhoneField=PhoneField;exports.StickyPlugin=StickyPlugin;exports._sfc_main=_sfc_main$1;