@konnectio/core 4.0.12 → 4.0.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (76) hide show
  1. package/dist/{ActionField-23ce1b2a.cjs → ActionField-251eb289.cjs} +1 -1
  2. package/dist/{ActionField-311942d2.js → ActionField-ed13e600.js} +7 -7
  3. package/dist/ActionField-ed13e600.js.br +0 -0
  4. package/dist/AvailabilitySkeleton-beb10d07.js +189 -0
  5. package/dist/AvailabilitySkeleton-beb10d07.js.br +0 -0
  6. package/dist/AvailabilitySkeleton-cc8eafe0.cjs +1 -0
  7. package/dist/{DateField.vue_vue_type_style_index_0_lang-47e679d1.cjs → DateField.vue_vue_type_style_index_0_lang-8ddce55e.cjs} +5 -5
  8. package/dist/{DateField.vue_vue_type_style_index_0_lang-ec35955b.js → DateField.vue_vue_type_style_index_0_lang-d1a9ffca.js} +1805 -1801
  9. package/dist/DateField.vue_vue_type_style_index_0_lang-d1a9ffca.js.br +0 -0
  10. package/dist/{Field-ff599d13.js → Field-48a50c44.js} +2 -2
  11. package/dist/Field-48a50c44.js.br +0 -0
  12. package/dist/{Field-dcffacf2.cjs → Field-cbc16db4.cjs} +1 -1
  13. package/dist/{NumberField.vue_vue_type_script_setup_true_lang-50fc08f1.cjs → NumberField.vue_vue_type_script_setup_true_lang-7676783c.cjs} +1 -1
  14. package/dist/{NumberField.vue_vue_type_script_setup_true_lang-2eb1b46f.js → NumberField.vue_vue_type_script_setup_true_lang-7aa515cb.js} +2 -2
  15. package/dist/NumberField.vue_vue_type_script_setup_true_lang-7aa515cb.js.br +0 -0
  16. package/dist/SelectField.vue_vue_type_style_index_0_lang-43c8a651.cjs +802 -0
  17. package/dist/{SelectField.vue_vue_type_style_index_0_lang-e2f4edc3.js → SelectField.vue_vue_type_style_index_0_lang-96b84c98.js} +9985 -9670
  18. package/dist/SelectField.vue_vue_type_style_index_0_lang-96b84c98.js.br +0 -0
  19. package/dist/{TextField-6f7e37d9.cjs → TextField-379793fe.cjs} +27 -27
  20. package/dist/{TextField-cd93b966.js → TextField-7150eae7.js} +2363 -2437
  21. package/dist/TextField-7150eae7.js.br +0 -0
  22. package/dist/{ThankYou-3d74a6dc.cjs → ThankYou-bcce79d1.cjs} +1 -1
  23. package/dist/{ThankYou-c1878478.js → ThankYou-f3dd76f4.js} +6 -6
  24. package/dist/ThankYou-f3dd76f4.js.br +0 -0
  25. package/dist/{_-8772cf9a.js → _-cd5be070.js} +5 -5
  26. package/dist/_-cd5be070.js.br +0 -0
  27. package/dist/{_-0895679a.cjs → _-de6b4115.cjs} +1 -1
  28. package/dist/availability.cjs +2 -2
  29. package/dist/availability.d.ts +0 -2
  30. package/dist/availability.js +124 -123
  31. package/dist/availability.js.br +0 -0
  32. package/dist/components/forms/EventAvailabilityForm.vue.d.ts +1 -1
  33. package/dist/components/forms/HotelAvailabilityForm.vue.d.ts +1 -1
  34. package/dist/entries/availability.d.ts +1 -3
  35. package/dist/{event-8e90a6e3.cjs → event-2b792293.cjs} +1 -1
  36. package/dist/{event-60e076f2.js → event-43539c7b.js} +9 -9
  37. package/dist/event-43539c7b.js.br +0 -0
  38. package/dist/event.cjs +1 -1
  39. package/dist/event.js +65 -65
  40. package/dist/event.js.br +0 -0
  41. package/dist/gift-card-validation.cjs +1 -1
  42. package/dist/gift-card-validation.js +6 -6
  43. package/dist/gift-card-validation.js.br +0 -0
  44. package/dist/gift-card.cjs +1 -1
  45. package/dist/gift-card.js +51 -51
  46. package/dist/gift-card.js.br +0 -0
  47. package/dist/hotel.cjs +5 -5
  48. package/dist/hotel.js +957 -957
  49. package/dist/hotel.js.br +0 -0
  50. package/dist/{index-345407fb.cjs → index-751b236a.cjs} +1 -1
  51. package/dist/{index-b5d8f4fc.js → index-cadcbd9e.js} +2 -2
  52. package/dist/index-cadcbd9e.js.br +0 -0
  53. package/dist/polyfill.cjs +1 -1
  54. package/dist/polyfill.js +1 -1
  55. package/dist/polyfill.js.br +0 -0
  56. package/dist/store/event.d.ts +1 -1
  57. package/dist/store/hotel.d.ts +5 -2
  58. package/dist/store/utilities.d.ts +18 -2
  59. package/dist/style.css +1 -1
  60. package/dist/style.css.br +0 -0
  61. package/package.json +4 -5
  62. package/dist/ActionField-311942d2.js.br +0 -0
  63. package/dist/AvailabilitySkeleton-2dfbb28e.js +0 -382
  64. package/dist/AvailabilitySkeleton-2dfbb28e.js.br +0 -0
  65. package/dist/AvailabilitySkeleton-7d9e2680.cjs +0 -1
  66. package/dist/DateField.vue_vue_type_style_index_0_lang-ec35955b.js.br +0 -0
  67. package/dist/Field-ff599d13.js.br +0 -0
  68. package/dist/NumberField.vue_vue_type_script_setup_true_lang-2eb1b46f.js.br +0 -0
  69. package/dist/SelectField.vue_vue_type_style_index_0_lang-4755fb8a.cjs +0 -802
  70. package/dist/SelectField.vue_vue_type_style_index_0_lang-e2f4edc3.js.br +0 -0
  71. package/dist/TextField-cd93b966.js.br +0 -0
  72. package/dist/ThankYou-c1878478.js.br +0 -0
  73. package/dist/_-8772cf9a.js.br +0 -0
  74. package/dist/event-60e076f2.js.br +0 -0
  75. package/dist/index-b5d8f4fc.js.br +0 -0
  76. package/dist/store/recaptcha.d.ts +0 -1
@@ -1,6 +1,6 @@
1
- import { d as Ge, s as oe, u as Ve, a as Le, r as s, E as v, b as U, c as a, O as le, S as q, g as Ue, e as C, f as N, i as D } from "./SelectField.vue_vue_type_style_index_0_lang-e2f4edc3.js";
2
- import { u as qe } from "./_-8772cf9a.js";
3
- import { u as Ke } from "./NumberField.vue_vue_type_script_setup_true_lang-2eb1b46f.js";
1
+ import { d as Ge, s as oe, u as Ve, a as Le, r as s, E as v, b as U, c as a, O as le, S as q, g as Ue, e as C, f as N, i as D } from "./SelectField.vue_vue_type_style_index_0_lang-96b84c98.js";
2
+ import { u as qe } from "./_-cd5be070.js";
3
+ import { u as Ke } from "./NumberField.vue_vue_type_script_setup_true_lang-7aa515cb.js";
4
4
  const Qe = Ge("event", () => {
5
5
  const se = qe(), { voucher: re } = oe(Ke()), { display: h } = Ve(), { bearerToken: I } = oe(Le()), p = s({}), y = s({}), t = s(void 0), l = s(!0), i = s(v.InitialState), K = s(/* @__PURE__ */ new Date()), F = s(NaN), T = s(1), S = s(NaN), x = s(NaN), E = s(""), $ = U("freshBookingName", "", void 0, { serializer: q.string }), O = U("freshBookingPhone", "", void 0, { serializer: q.string }), R = U("freshBookingEmail", "", void 0, { serializer: q.string }), _ = s(""), P = s({}), g = s({}), B = s("");
6
6
  function o(e) {
@@ -83,7 +83,7 @@ const Qe = Ge("event", () => {
83
83
  },
84
84
  headers: {
85
85
  Authorization: I.value,
86
- "Fresh-Booking-Ver": "4.0.12"
86
+ "Fresh-Booking-Ver": "4.0.14"
87
87
  }
88
88
  })).data;
89
89
  p.value = e, Z();
@@ -104,7 +104,7 @@ const Qe = Ge("event", () => {
104
104
  },
105
105
  headers: {
106
106
  Authorization: I.value,
107
- "Fresh-Booking-Ver": "4.0.12"
107
+ "Fresh-Booking-Ver": "4.0.14"
108
108
  }
109
109
  })).data;
110
110
  y.value = e, l.value = !1;
@@ -127,7 +127,7 @@ const Qe = Ge("event", () => {
127
127
  },
128
128
  headers: {
129
129
  Authorization: I.value,
130
- "Fresh-Booking-Ver": "4.0.12"
130
+ "Fresh-Booking-Ver": "4.0.14"
131
131
  }
132
132
  })).data;
133
133
  n.templateCounts.length === 0 ? h({
@@ -154,7 +154,7 @@ const Qe = Ge("event", () => {
154
154
  },
155
155
  headers: {
156
156
  Authorization: I.value,
157
- "Fresh-Booking-Ver": "4.0.12"
157
+ "Fresh-Booking-Ver": "4.0.14"
158
158
  }
159
159
  })).data;
160
160
  t.value = n, l.value = !1, e();
@@ -175,7 +175,7 @@ const Qe = Ge("event", () => {
175
175
  },
176
176
  headers: {
177
177
  Authorization: I.value,
178
- "Fresh-Booking-Ver": "4.0.12"
178
+ "Fresh-Booking-Ver": "4.0.14"
179
179
  }
180
180
  })).data;
181
181
  console.log(e);
@@ -246,7 +246,7 @@ const Qe = Ge("event", () => {
246
246
  o(t.value) ? f.templateGroup = r : (f.time = u, f.eventId = S.value, f.products = c, m = "https://stage.hotel-service.konnectio.dk/api/v3/event/event-book"), await C.post(m, f, {
247
247
  headers: {
248
248
  Authorization: I.value,
249
- "Fresh-Booking-Ver": "4.0.12"
249
+ "Fresh-Booking-Ver": "4.0.14"
250
250
  }
251
251
  }).then((d) => {
252
252
  l.value = !1, se.pay({
Binary file
package/dist/event.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";const e=require("./SelectField.vue_vue_type_style_index_0_lang-4755fb8a.cjs"),b=require("./index-345407fb.cjs"),w=require("./ThankYou-3d74a6dc.cjs"),x=require("./event-8e90a6e3.cjs"),ye=require("./ActionField-23ce1b2a.cjs"),H=require("./TextField-6f7e37d9.cjs"),Be=require("./DateField.vue_vue_type_style_index_0_lang-47e679d1.cjs"),A=require("./NumberField.vue_vue_type_script_setup_true_lang-50fc08f1.cjs");require("./_commonjsHelpers-6763f629.cjs");require("./_-0895679a.cjs");const _e={class:"fresh-booking-event-listing-information"},Ve={key:0},be={key:1},Ne=e.defineComponent({__name:"Event",props:{name:{},type:{},description:{},fromDate:{},toDate:{},listingId:{},tableGroupId:{},days:{},timeFrom:{},timeTo:{},maxOnlineReservationLimit:{},minimumPersonCount:{},fromPrice:{},gallery:{},soldOut:{type:Boolean,default:!1},layout:{},trackingEnabled:{type:Boolean},callback:{}},setup(y){const{t}=e.useI18n(),i=y,{display:k}=e.useAlertStore(),{currency:F}=e.storeToRefs(e.useUtilityStore()),{maxNumberOfPeople:B,numberOfPeople:L,eventId:_,tableGroupId:h}=e.storeToRefs(x.useEventStore()),{getTemplateAvailability:S,getEventAvailability:D,isEventListingLoading:g}=x.useEventStore(),m=e.ref(0),T=e.computed(()=>g(i.listingId)),O=()=>{m.value>0?(_.value=i.listingId,L.value=m.value,S(i.callback)):k({type:"error",message:t("alert.error.selectPeople")})},u=()=>{m.value>0?(_.value=i.listingId,h.value=i.tableGroupId,L.value=m.value,D(i.callback)):k({type:"error",message:t("alert.error.selectPeople")})};return(o,c)=>(e.openBlock(),e.createBlock(w.Base,{"listing-id":o.listingId,gallery:o.gallery,name:o.name,description:o.description,layout:e.unref(e.BookingLayout).Event},e.createSlots({action:e.withCtx(()=>[e.createVNode(ye.ActionField,{modelValue:m.value,"onUpdate:modelValue":c[0]||(c[0]=V=>m.value=V),type:"number",label:e.unref(t)("event.numberOfGuests"),buttonLabel:o.soldOut?e.unref(t)("event.soldOut"):e.unref(t)("event.bookNowButton"),buttonDisabled:o.soldOut,"min-value":o.type==="event"?1:o.minimumPersonCount,"max-value":o.type==="event"?o.maxOnlineReservationLimit||1/0:e.unref(B),"is-loading":T.value,"onUpdate:isLoading":c[1]||(c[1]=V=>T.value=V),onAction:c[2]||(c[2]=V=>o.type==="event"?u():O())},null,8,["modelValue","label","buttonLabel","buttonDisabled","min-value","max-value","is-loading"])]),_:2},[o.type==="event"?{name:"description",fn:e.withCtx(()=>[e.createBaseVNode("ul",_e,[e.createBaseVNode("li",null,[e.createVNode(e.Icon,{icon:"calendar-range",color:"header"}),e.createBaseVNode("span",null,e.toDisplayString(e.unref(e.showDay)(o.days)),1)]),e.unref(e.daysBetweenDates)(o.fromDate,o.toDate)<180?(e.openBlock(),e.createElementBlock("li",Ve,[e.createVNode(e.Icon,{icon:"calendar-days",color:"header"}),e.createBaseVNode("span",null,e.toDisplayString(e.unref(e.showDates)(o.fromDate,o.toDate)),1)])):e.createCommentVNode("",!0),e.createBaseVNode("li",null,[e.createVNode(e.Icon,{icon:"calendar-clock",color:"header"}),e.createBaseVNode("span",null,e.toDisplayString(e.unref(e.showTimes)(o.timeFrom,o.timeTo)),1)]),o.maxOnlineReservationLimit?(e.openBlock(),e.createElementBlock("li",be,[e.createVNode(e.Icon,{icon:"user-alt",color:"header"}),e.createBaseVNode("span",null,e.toDisplayString(`1 - ${o.maxOnlineReservationLimit} ${e.unref(t)("general.people")}`),1)])):e.createCommentVNode("",!0)])]),key:"0"}:{name:"description",fn:e.withCtx(()=>[e.createBaseVNode("ul",{class:"fresh-booking-event-listing-information"},[e.unref(e.daysBetweenDates)(o.fromDate,o.toDate)<180?(e.openBlock(),e.createElementBlock("li",{key:0},[e.createVNode(e.Icon,{icon:"calendar-days",color:"header"}),e.createBaseVNode("span",null,e.toDisplayString(e.unref(e.showDates)(o.fromDate,o.toDate,!0)),1)])):e.createCommentVNode("",!0),e.createBaseVNode("li",null,[e.createVNode(e.Icon,{icon:"user-alt",color:"header"}),e.createBaseVNode("span",null,e.toDisplayString(`${o.minimumPersonCount} - ${e.unref(B)} ${e.unref(t)("general.people")}`),1)]),e.createBaseVNode("li",null,[e.createVNode(e.Icon,{icon:"money-bill",color:"header"}),e.createBaseVNode("span",null,e.toDisplayString(`${e.unref(t)("general.pricesFrom")} ${e.unref(e.showPrice)(o.fromPrice,e.unref(F))}`),1)])])]),key:"1"}]),1032,["listing-id","gallery","name","description","layout"]))}});const J=e._export_sfc(Ne,[["__scopeId","data-v-4a459a74"]]),N=y=>(e.pushScopeId("data-v-b2eee97d"),y=y(),e.popScopeId(),y),he={class:"fresh-booking-panel"},Se={key:0,id:"fresh-booking-event-overview"},De={class:"fresh-booking-event-listings"},Ee={class:"fresh-booking-event-listings"},Ce={key:2,id:"fresh-booking-event-addons"},we={class:"fresh-booking-table"},Fe=N(()=>e.createBaseVNode("th",{class:"fresh-booking-event-addons-input"},null,-1)),Te={class:"fresh-booking-event-addons-price"},Pe=N(()=>e.createBaseVNode("br",null,null,-1)),$e={class:"fresh-booking-event-addons-input"},xe={class:"fresh-booking-event-addons-price"},Le=N(()=>e.createBaseVNode("td",{colspan:"2"},null,-1)),Oe={class:"fresh-booking-event-addons-price"},Re={key:3},Ue={class:"fresh-booking-label required"},qe={id:"fresh-booking-event-table"},Ae={key:4},Ie={class:"fresh-booking-label required"},Me={class:"fresh-booking-table"},ze=N(()=>e.createBaseVNode("th",{class:"fresh-booking-event-addons-input"},null,-1)),Ye={class:"fresh-booking-event-addons-price"},Qe=N(()=>e.createBaseVNode("br",null,null,-1)),We=N(()=>e.createBaseVNode("br",null,null,-1)),je={class:"fresh-booking-event-addons-input"},He={class:"fresh-booking-event-addons-price"},Je={key:0},Ke={key:1},Xe={key:2},Ze={key:3},Ge={key:4},et={key:5},tt={key:6},nt=e.defineComponent({name:"EventLayout",__name:"Event",props:{accessToken:{},styling:{}},setup(y){const{t}=e.useI18n(),{searchDate:i,addons:k,products:F,numberOfDays:B,discountCode:L,name:_,phone:h,email:S,remark:D,arrivalTime:g,title:m,subtitle:T,slideshow:O,currency:u,numberOfPeople:o,numberOfTotalDays:c,numberOfRooms:V,basePrice:K,totalPrice:X,isPaymentLoading:Z,hasEvents:G,hasTemplates:ee,getEvents:te,getTemplates:ne,getEventData:oe,getTemplateData:P,getEventTableData:le,length:I,roomUpgrade:ae,weekendFee:re,fromDate:M,hasProducts:se,eventRateType:z,isMetaDataAvailable:ie,areListingsAvailable:ue,isReservationFormFilled:ce,isAvailabilityDataAvailable:de,isTemplateEvent:f,tableBasePrice:Y}=e.storeToRefs(x.useEventStore()),{initialize:pe,validateDiscountCode:rt,fetchListings:me,createBooking:fe,localAddonPrice:Q,totalAddonPrice:W,reset:ve}=x.useEventStore(),{hideEvents:ke,hideEventTemplates:ge}=e.storeToRefs(e.useUtilityStore());return e.onMounted(()=>pe()),e.watch(i,()=>me()),(j,l)=>(e.openBlock(),e.createBlock(e._sfc_main,{id:"fresh-booking-event-module",class:"fresh-booking-app",type:"event","access-token":j.accessToken,styling:j.styling},{default:e.withCtx(()=>[e.unref(ie)?(e.openBlock(),e.createBlock(w.MultiStepForm,{key:0,slideshow:e.unref(O),title:e.unref(m),subtitle:e.unref(T)},{availability:e.withCtx(({next:$})=>[e.createBaseVNode("div",he,[e.createVNode(Be._sfc_main,{modelValue:e.unref(i),"onUpdate:modelValue":l[0]||(l[0]=d=>e.isRef(i)?i.value=d:null),label:e.unref(t)("event.selectDate"),"min-date":new Date},null,8,["modelValue","label","min-date"])]),e.unref(ue)?(e.openBlock(),e.createElementBlock("div",Se,[e.unref(G)&&!e.unref(ke)?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createBaseVNode("h2",null,[e.createVNode(e.Icon,{icon:"clock-seven",type:"fal",color:"header"}),e.createBaseVNode("span",null,e.toDisplayString(e.unref(t)("event.eventsTitle")),1)]),e.createBaseVNode("ul",De,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(te),({id:d,days:n,name:r,timeFrom:p,timeTo:a,fromDate:s,toDate:E,tableGroupID:R,description:U,soldOut:q,maxOnlineReservationLimit:C})=>(e.openBlock(),e.createBlock(J,{key:d,type:"event","listing-id":d,"table-group-id":R,description:U,name:r,days:n,"from-date":s,"to-date":E,"max-online-reservation-limit":C,"time-from":p,"time-to":a,"sold-out":q,callback:$},null,8,["listing-id","table-group-id","description","name","days","from-date","to-date","max-online-reservation-limit","time-from","time-to","sold-out","callback"]))),128))])],64)):e.createCommentVNode("",!0),e.unref(ee)&&!e.unref(ge)?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createBaseVNode("h2",null,[e.createVNode(e.Icon,{icon:"stars",type:"fal",color:"header"}),e.createBaseVNode("span",null,e.toDisplayString(e.unref(t)("event.stayTitle")),1)]),e.createBaseVNode("ul",Ee,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(ne),({id:d,name:n,fromDate:r,toDate:p,minimumPersonCount:a,fromPrice:s,description:E})=>(e.openBlock(),e.createBlock(J,{key:d,type:"template","listing-id":d,name:n,description:E,"from-date":r,"to-date":p,"minimum-person-count":a,fromPrice:s,callback:$},null,8,["listing-id","name","description","from-date","to-date","minimum-person-count","fromPrice","callback"]))),128))])],64)):e.createCommentVNode("",!0)])):(e.openBlock(),e.createBlock(e.Loading,{key:1}))]),reservation:e.withCtx(({next:$,prev:d})=>[e.unref(de)?(e.openBlock(),e.createBlock(w.ReservationForm,{key:0,remark:e.unref(D),"onUpdate:remark":l[8]||(l[8]=n=>e.isRef(D)?D.value=n:null),"is-filled":e.unref(ce),"is-loading":e.unref(Z),"base-price":e.unref(K),"total-price":e.unref(X),"weekend-fee":e.unref(re),"room-upgrade":e.unref(ae),onPrev:n=>e.unref(ve)(d),onNext:n=>e.unref(fe)($)},{form:e.withCtx(()=>[e.unref(z)===e.unref(e.OctopusEventRateType).FullDayEvent?(e.openBlock(),e.createBlock(A._sfc_main,{key:0,modelValue:e.unref(B),"onUpdate:modelValue":l[1]||(l[1]=n=>e.isRef(B)?B.value=n:null),label:e.unref(t)("event.numberOfDays"),"min-value":1,required:""},null,8,["modelValue","label"])):e.createCommentVNode("",!0),e.createVNode(H.TextField,{modelValue:e.unref(_),"onUpdate:modelValue":l[2]||(l[2]=n=>e.isRef(_)?_.value=n:null),type:"text",label:e.unref(t)("booking.reservation.name"),icon:"user-alt",placeholder:e.unref(t)("booking.reservation.namePlaceholder"),required:""},null,8,["modelValue","label","placeholder"]),e.createVNode(H.TextField,{modelValue:e.unref(S),"onUpdate:modelValue":l[3]||(l[3]=n=>e.isRef(S)?S.value=n:null),label:e.unref(t)("booking.reservation.email"),type:"email",name:"email",autocomplete:"email",icon:"at",placeholder:e.unref(t)("booking.reservation.emailPlaceholder"),required:""},null,8,["modelValue","label","placeholder"]),e.createVNode(b.PhoneField,{modelValue:e.unref(h),"onUpdate:modelValue":l[4]||(l[4]=n=>e.isRef(h)?h.value=n:null),label:e.unref(t)("booking.reservation.phone"),icon:"phone-office",placeholder:e.unref(t)("booking.reservation.phonePlaceholder"),required:""},null,8,["modelValue","label","placeholder"]),e.createCommentVNode("",!0),e.unref(P)&&e.unref(P).length>0?(e.openBlock(),e.createElementBlock("ul",Ce,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(P),({roomGroupID:n,addons:r,adultPerRoom:p},a)=>(e.openBlock(),e.createElementBlock("li",{key:n},[e.createBaseVNode("h5",null,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(t)("booking.reservation.room"))+" #"+e.toDisplayString(a+1),1),e.createTextVNode(" ("),e.createVNode(e.Icon,{icon:"male",type:"fas",color:"header"}),e.createTextVNode(" "+e.toDisplayString(p)+") ",1)]),e.createBaseVNode("table",we,[e.createBaseVNode("thead",null,[e.createBaseVNode("tr",null,[e.createBaseVNode("th",null,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(t)("booking.reservation.addons")),1)]),Fe,e.createBaseVNode("th",Te,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(t)("booking.availability.price")),1)])])]),e.createBaseVNode("tbody",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r,({addonID:s,cardinality:E,name:R,price:U,quantityStrategy:q})=>(e.openBlock(),e.createElementBlock("tr",{key:s},[e.createBaseVNode("td",null,[e.createBaseVNode("b",null,e.toDisplayString(R),1),Pe,e.createBaseVNode("span",null,e.toDisplayString(e.unref(e.showPrice)(U,e.unref(u)))+" "+e.toDisplayString(e.unref(e.getPriceQuantityLabel)(q)),1)]),e.createBaseVNode("td",$e,[E===3?(e.openBlock(),e.createBlock(A._sfc_main,{key:0,modelValue:e.unref(k)[`${n}.${s}.${a}`],"onUpdate:modelValue":C=>e.unref(k)[`${n}.${s}.${a}`]=C,small:!0,"min-value":0},null,8,["modelValue","onUpdate:modelValue"])):(e.openBlock(),e.createBlock(b.Checkbox,{key:1,modelValue:e.unref(k)[`${n}.${s}.${a}`],"onUpdate:modelValue":C=>e.unref(k)[`${n}.${s}.${a}`]=C,numeric:!0},null,8,["modelValue","onUpdate:modelValue"]))]),e.createBaseVNode("td",xe,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(e.showPrice)(e.unref(Q)(s,n,a),e.unref(u))),1)])]))),128))]),e.createBaseVNode("tfoot",null,[e.createBaseVNode("tr",null,[Le,e.createBaseVNode("td",Oe,[e.createBaseVNode("u",null,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(e.showPrice)(e.unref(W)(n,a),e.unref(u))),1)])])])])])]))),128))])):e.createCommentVNode("",!0),e.unref(z)!==e.unref(e.OctopusEventRateType).FullDayEvent&&!e.unref(f)?(e.openBlock(),e.createElementBlock("div",Re,[e.createBaseVNode("label",Ue,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(t)("event.selectArrivalTime")),1)]),e.createBaseVNode("ul",qe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(le),(n,r)=>(e.openBlock(),e.createElementBlock("li",{key:r},[e.createVNode(b.Checkbox,{modelValue:e.unref(g),"onUpdate:modelValue":l[7]||(l[7]=p=>e.isRef(g)?g.value=p:null),type:"radio",name:"eventTimeTable",val:n.time,label:e.unref(e.showTime)(n.time)},null,8,["modelValue","val","label"])]))),128))])])):e.createCommentVNode("",!0),e.unref(se)?(e.openBlock(),e.createElementBlock("div",Ae,[e.createBaseVNode("label",Ie,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(t)("event.selectProducts")),1)]),e.createBaseVNode("table",Me,[e.createBaseVNode("thead",null,[e.createBaseVNode("tr",null,[e.createBaseVNode("th",null,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(t)("booking.reservation.addons")),1)]),ze,e.createBaseVNode("th",Ye,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(t)("booking.availability.price")),1)])])]),e.createBaseVNode("tbody",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(oe).products,({productID:n,productName:r,price:p,description:a})=>(e.openBlock(),e.createElementBlock("tr",{key:n},[e.createBaseVNode("td",null,[e.createBaseVNode("b",null,[e.createBaseVNode("span",null,e.toDisplayString(r),1)]),Qe,e.createBaseVNode("span",null,e.toDisplayString(a),1),We,e.createBaseVNode("span",null,e.toDisplayString(e.unref(e.showPrice)(p,e.unref(u))),1)]),e.createBaseVNode("td",je,[e.createVNode(A._sfc_main,{modelValue:e.unref(F)[n],"onUpdate:modelValue":s=>e.unref(F)[n]=s,small:!0,"min-value":0},null,8,["modelValue","onUpdate:modelValue"])]),e.createBaseVNode("td",He,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(e.showPrice)(e.unref(Q)(n),e.unref(u))),1)])]))),128))])])])):e.createCommentVNode("",!0)]),resume:e.withCtx(()=>[e.createBaseVNode("li",null,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(t)("event.numberOfGuests")),1),e.createBaseVNode("b",null,e.toDisplayString(e.unref(o)),1)]),e.unref(f)?(e.openBlock(),e.createElementBlock("li",Je,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(t)("event.numberOfRooms")),1),e.createBaseVNode("b",null,e.toDisplayString(e.unref(V)),1)])):e.createCommentVNode("",!0),e.unref(f)?(e.openBlock(),e.createElementBlock("li",Ke,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(t)("event.numberOfDays")),1),e.createBaseVNode("b",null,e.toDisplayString(e.unref(c)),1)])):e.createCommentVNode("",!0),e.unref(f)?(e.openBlock(),e.createElementBlock("li",Xe,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(t)("booking.reservation.arrival")),1),e.createBaseVNode("b",null,e.toDisplayString(e.unref(e.showDate)(e.unref(M))),1)])):e.createCommentVNode("",!0),e.unref(f)?(e.openBlock(),e.createElementBlock("li",Ze,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(t)("booking.reservation.departure")),1),e.createBaseVNode("b",null,e.toDisplayString(e.unref(e.showDate)(e.unref(M),e.unref(c))),1)])):e.createCommentVNode("",!0),!e.unref(f)&&e.unref(g)?(e.openBlock(),e.createElementBlock("li",Ge,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(t)("event.startOfEvent")),1),e.createBaseVNode("b",null,e.toDisplayString(e.unref(e.showTime)(e.unref(g))),1)])):e.createCommentVNode("",!0),!e.unref(f)&&e.unref(I)?(e.openBlock(),e.createElementBlock("li",et,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(t)("event.lengthOfEvent")),1),e.createBaseVNode("b",null,e.toDisplayString(e.unref(e.showTime)(e.unref(I))),1)])):e.createCommentVNode("",!0),!e.unref(f)&&e.unref(Y)>0?(e.openBlock(),e.createElementBlock("li",tt,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(t)("booking.availability.basePrice")),1),e.createBaseVNode("b",null,e.toDisplayString(e.unref(e.showPrice)(e.unref(Y),e.unref(u))),1)])):e.createCommentVNode("",!0)]),expenses:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(P),({roomGroupID:n},r)=>(e.openBlock(),e.createElementBlock("li",{key:n},[e.createBaseVNode("span",null,e.toDisplayString(e.unref(t)("booking.reservation.addons"))+" - "+e.toDisplayString(e.unref(t)("booking.reservation.room"))+" #"+e.toDisplayString(r+1),1),e.createBaseVNode("b",null,e.toDisplayString(e.unref(e.showPrice)(e.unref(W)(n,r),e.unref(u))),1)]))),128))]),_:2},1032,["remark","is-filled","is-loading","base-price","total-price","weekend-fee","room-upgrade","onPrev","onNext"])):e.createCommentVNode("",!0)]),payment:e.withCtx(()=>[e.createVNode(b.CheckoutWindow)]),confirmation:e.withCtx(()=>[e.createVNode(w.ThankYou,{message:e.unref(t)("event.confirmationMessage")},null,8,["message"])]),_:1},8,["slideshow","title","subtitle"])):(e.openBlock(),e.createBlock(e.Loading,{key:1}))]),_:1},8,["access-token","styling"]))}});const ot=e._export_sfc(nt,[["__scopeId","data-v-b2eee97d"]]),lt=e.createPinia(),at=e.zo(),v=e.createApp({components:{Event:ot}});v.use(lt);v.use(at);v.use(b.StickyPlugin);v.use(e.instance);v.use(w.xt);v.use(b.install,{bootstrap:!1});v.mount("#konnectio-event-app");module.exports=v;
1
+ "use strict";const e=require("./SelectField.vue_vue_type_style_index_0_lang-43c8a651.cjs"),b=require("./index-751b236a.cjs"),w=require("./ThankYou-bcce79d1.cjs"),x=require("./event-2b792293.cjs"),ye=require("./ActionField-251eb289.cjs"),H=require("./TextField-379793fe.cjs"),Be=require("./DateField.vue_vue_type_style_index_0_lang-8ddce55e.cjs"),A=require("./NumberField.vue_vue_type_script_setup_true_lang-7676783c.cjs");require("./_commonjsHelpers-6763f629.cjs");require("./_-de6b4115.cjs");const _e={class:"fresh-booking-event-listing-information"},Ve={key:0},be={key:1},Ne=e.defineComponent({__name:"Event",props:{name:{},type:{},description:{},fromDate:{},toDate:{},listingId:{},tableGroupId:{},days:{},timeFrom:{},timeTo:{},maxOnlineReservationLimit:{},minimumPersonCount:{},fromPrice:{},gallery:{},soldOut:{type:Boolean,default:!1},layout:{},trackingEnabled:{type:Boolean},callback:{}},setup(y){const{t}=e.useI18n(),i=y,{display:k}=e.useAlertStore(),{currency:F}=e.storeToRefs(e.useUtilityStore()),{maxNumberOfPeople:B,numberOfPeople:L,eventId:_,tableGroupId:h}=e.storeToRefs(x.useEventStore()),{getTemplateAvailability:S,getEventAvailability:D,isEventListingLoading:g}=x.useEventStore(),m=e.ref(0),T=e.computed(()=>g(i.listingId)),O=()=>{m.value>0?(_.value=i.listingId,L.value=m.value,S(i.callback)):k({type:"error",message:t("alert.error.selectPeople")})},u=()=>{m.value>0?(_.value=i.listingId,h.value=i.tableGroupId,L.value=m.value,D(i.callback)):k({type:"error",message:t("alert.error.selectPeople")})};return(o,c)=>(e.openBlock(),e.createBlock(w.Base,{"listing-id":o.listingId,gallery:o.gallery,name:o.name,description:o.description,layout:e.unref(e.BookingLayout).Event},e.createSlots({action:e.withCtx(()=>[e.createVNode(ye.ActionField,{modelValue:m.value,"onUpdate:modelValue":c[0]||(c[0]=V=>m.value=V),type:"number",label:e.unref(t)("event.numberOfGuests"),buttonLabel:o.soldOut?e.unref(t)("event.soldOut"):e.unref(t)("event.bookNowButton"),buttonDisabled:o.soldOut,"min-value":o.type==="event"?1:o.minimumPersonCount,"max-value":o.type==="event"?o.maxOnlineReservationLimit||1/0:e.unref(B),"is-loading":T.value,"onUpdate:isLoading":c[1]||(c[1]=V=>T.value=V),onAction:c[2]||(c[2]=V=>o.type==="event"?u():O())},null,8,["modelValue","label","buttonLabel","buttonDisabled","min-value","max-value","is-loading"])]),_:2},[o.type==="event"?{name:"description",fn:e.withCtx(()=>[e.createBaseVNode("ul",_e,[e.createBaseVNode("li",null,[e.createVNode(e.Icon,{icon:"calendar-range",color:"header"}),e.createBaseVNode("span",null,e.toDisplayString(e.unref(e.showDay)(o.days)),1)]),e.unref(e.daysBetweenDates)(o.fromDate,o.toDate)<180?(e.openBlock(),e.createElementBlock("li",Ve,[e.createVNode(e.Icon,{icon:"calendar-days",color:"header"}),e.createBaseVNode("span",null,e.toDisplayString(e.unref(e.showDates)(o.fromDate,o.toDate)),1)])):e.createCommentVNode("",!0),e.createBaseVNode("li",null,[e.createVNode(e.Icon,{icon:"calendar-clock",color:"header"}),e.createBaseVNode("span",null,e.toDisplayString(e.unref(e.showTimes)(o.timeFrom,o.timeTo)),1)]),o.maxOnlineReservationLimit?(e.openBlock(),e.createElementBlock("li",be,[e.createVNode(e.Icon,{icon:"user-alt",color:"header"}),e.createBaseVNode("span",null,e.toDisplayString(`1 - ${o.maxOnlineReservationLimit} ${e.unref(t)("general.people")}`),1)])):e.createCommentVNode("",!0)])]),key:"0"}:{name:"description",fn:e.withCtx(()=>[e.createBaseVNode("ul",{class:"fresh-booking-event-listing-information"},[e.unref(e.daysBetweenDates)(o.fromDate,o.toDate)<180?(e.openBlock(),e.createElementBlock("li",{key:0},[e.createVNode(e.Icon,{icon:"calendar-days",color:"header"}),e.createBaseVNode("span",null,e.toDisplayString(e.unref(e.showDates)(o.fromDate,o.toDate,!0)),1)])):e.createCommentVNode("",!0),e.createBaseVNode("li",null,[e.createVNode(e.Icon,{icon:"user-alt",color:"header"}),e.createBaseVNode("span",null,e.toDisplayString(`${o.minimumPersonCount} - ${e.unref(B)} ${e.unref(t)("general.people")}`),1)]),e.createBaseVNode("li",null,[e.createVNode(e.Icon,{icon:"money-bill",color:"header"}),e.createBaseVNode("span",null,e.toDisplayString(`${e.unref(t)("general.pricesFrom")} ${e.unref(e.showPrice)(o.fromPrice,e.unref(F))}`),1)])])]),key:"1"}]),1032,["listing-id","gallery","name","description","layout"]))}});const J=e._export_sfc(Ne,[["__scopeId","data-v-4a459a74"]]),N=y=>(e.pushScopeId("data-v-b2eee97d"),y=y(),e.popScopeId(),y),he={class:"fresh-booking-panel"},Se={key:0,id:"fresh-booking-event-overview"},De={class:"fresh-booking-event-listings"},Ee={class:"fresh-booking-event-listings"},Ce={key:2,id:"fresh-booking-event-addons"},we={class:"fresh-booking-table"},Fe=N(()=>e.createBaseVNode("th",{class:"fresh-booking-event-addons-input"},null,-1)),Te={class:"fresh-booking-event-addons-price"},Pe=N(()=>e.createBaseVNode("br",null,null,-1)),$e={class:"fresh-booking-event-addons-input"},xe={class:"fresh-booking-event-addons-price"},Le=N(()=>e.createBaseVNode("td",{colspan:"2"},null,-1)),Oe={class:"fresh-booking-event-addons-price"},Re={key:3},Ue={class:"fresh-booking-label required"},qe={id:"fresh-booking-event-table"},Ae={key:4},Ie={class:"fresh-booking-label required"},Me={class:"fresh-booking-table"},ze=N(()=>e.createBaseVNode("th",{class:"fresh-booking-event-addons-input"},null,-1)),Ye={class:"fresh-booking-event-addons-price"},Qe=N(()=>e.createBaseVNode("br",null,null,-1)),We=N(()=>e.createBaseVNode("br",null,null,-1)),je={class:"fresh-booking-event-addons-input"},He={class:"fresh-booking-event-addons-price"},Je={key:0},Ke={key:1},Xe={key:2},Ze={key:3},Ge={key:4},et={key:5},tt={key:6},nt=e.defineComponent({name:"EventLayout",__name:"Event",props:{accessToken:{},styling:{}},setup(y){const{t}=e.useI18n(),{searchDate:i,addons:k,products:F,numberOfDays:B,discountCode:L,name:_,phone:h,email:S,remark:D,arrivalTime:g,title:m,subtitle:T,slideshow:O,currency:u,numberOfPeople:o,numberOfTotalDays:c,numberOfRooms:V,basePrice:K,totalPrice:X,isPaymentLoading:Z,hasEvents:G,hasTemplates:ee,getEvents:te,getTemplates:ne,getEventData:oe,getTemplateData:P,getEventTableData:le,length:I,roomUpgrade:ae,weekendFee:re,fromDate:M,hasProducts:se,eventRateType:z,isMetaDataAvailable:ie,areListingsAvailable:ue,isReservationFormFilled:ce,isAvailabilityDataAvailable:de,isTemplateEvent:f,tableBasePrice:Y}=e.storeToRefs(x.useEventStore()),{initialize:pe,validateDiscountCode:rt,fetchListings:me,createBooking:fe,localAddonPrice:Q,totalAddonPrice:W,reset:ve}=x.useEventStore(),{hideEvents:ke,hideEventTemplates:ge}=e.storeToRefs(e.useUtilityStore());return e.onMounted(()=>pe()),e.watch(i,()=>me()),(j,l)=>(e.openBlock(),e.createBlock(e._sfc_main$1,{id:"fresh-booking-event-module",class:"fresh-booking-app",type:"event","access-token":j.accessToken,styling:j.styling},{default:e.withCtx(()=>[e.unref(ie)?(e.openBlock(),e.createBlock(w.MultiStepForm,{key:0,slideshow:e.unref(O),title:e.unref(m),subtitle:e.unref(T)},{availability:e.withCtx(({next:$})=>[e.createBaseVNode("div",he,[e.createVNode(Be._sfc_main,{modelValue:e.unref(i),"onUpdate:modelValue":l[0]||(l[0]=d=>e.isRef(i)?i.value=d:null),label:e.unref(t)("event.selectDate"),"min-date":new Date},null,8,["modelValue","label","min-date"])]),e.unref(ue)?(e.openBlock(),e.createElementBlock("div",Se,[e.unref(G)&&!e.unref(ke)?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createBaseVNode("h2",null,[e.createVNode(e.Icon,{icon:"clock-seven",type:"fal",color:"header"}),e.createBaseVNode("span",null,e.toDisplayString(e.unref(t)("event.eventsTitle")),1)]),e.createBaseVNode("ul",De,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(te),({id:d,days:n,name:r,timeFrom:p,timeTo:a,fromDate:s,toDate:E,tableGroupID:R,description:U,soldOut:q,maxOnlineReservationLimit:C})=>(e.openBlock(),e.createBlock(J,{key:d,type:"event","listing-id":d,"table-group-id":R,description:U,name:r,days:n,"from-date":s,"to-date":E,"max-online-reservation-limit":C,"time-from":p,"time-to":a,"sold-out":q,callback:$},null,8,["listing-id","table-group-id","description","name","days","from-date","to-date","max-online-reservation-limit","time-from","time-to","sold-out","callback"]))),128))])],64)):e.createCommentVNode("",!0),e.unref(ee)&&!e.unref(ge)?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createBaseVNode("h2",null,[e.createVNode(e.Icon,{icon:"stars",type:"fal",color:"header"}),e.createBaseVNode("span",null,e.toDisplayString(e.unref(t)("event.stayTitle")),1)]),e.createBaseVNode("ul",Ee,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(ne),({id:d,name:n,fromDate:r,toDate:p,minimumPersonCount:a,fromPrice:s,description:E})=>(e.openBlock(),e.createBlock(J,{key:d,type:"template","listing-id":d,name:n,description:E,"from-date":r,"to-date":p,"minimum-person-count":a,fromPrice:s,callback:$},null,8,["listing-id","name","description","from-date","to-date","minimum-person-count","fromPrice","callback"]))),128))])],64)):e.createCommentVNode("",!0)])):(e.openBlock(),e.createBlock(e.Loading,{key:1}))]),reservation:e.withCtx(({next:$,prev:d})=>[e.unref(de)?(e.openBlock(),e.createBlock(w.ReservationForm,{key:0,remark:e.unref(D),"onUpdate:remark":l[8]||(l[8]=n=>e.isRef(D)?D.value=n:null),"is-filled":e.unref(ce),"is-loading":e.unref(Z),"base-price":e.unref(K),"total-price":e.unref(X),"weekend-fee":e.unref(re),"room-upgrade":e.unref(ae),onPrev:n=>e.unref(ve)(d),onNext:n=>e.unref(fe)($)},{form:e.withCtx(()=>[e.unref(z)===e.unref(e.OctopusEventRateType).FullDayEvent?(e.openBlock(),e.createBlock(A._sfc_main,{key:0,modelValue:e.unref(B),"onUpdate:modelValue":l[1]||(l[1]=n=>e.isRef(B)?B.value=n:null),label:e.unref(t)("event.numberOfDays"),"min-value":1,required:""},null,8,["modelValue","label"])):e.createCommentVNode("",!0),e.createVNode(H.TextField,{modelValue:e.unref(_),"onUpdate:modelValue":l[2]||(l[2]=n=>e.isRef(_)?_.value=n:null),type:"text",label:e.unref(t)("booking.reservation.name"),icon:"user-alt",placeholder:e.unref(t)("booking.reservation.namePlaceholder"),required:""},null,8,["modelValue","label","placeholder"]),e.createVNode(H.TextField,{modelValue:e.unref(S),"onUpdate:modelValue":l[3]||(l[3]=n=>e.isRef(S)?S.value=n:null),label:e.unref(t)("booking.reservation.email"),type:"email",name:"email",autocomplete:"email",icon:"at",placeholder:e.unref(t)("booking.reservation.emailPlaceholder"),required:""},null,8,["modelValue","label","placeholder"]),e.createVNode(b.PhoneField,{modelValue:e.unref(h),"onUpdate:modelValue":l[4]||(l[4]=n=>e.isRef(h)?h.value=n:null),label:e.unref(t)("booking.reservation.phone"),icon:"phone-office",placeholder:e.unref(t)("booking.reservation.phonePlaceholder"),required:""},null,8,["modelValue","label","placeholder"]),e.createCommentVNode("",!0),e.unref(P)&&e.unref(P).length>0?(e.openBlock(),e.createElementBlock("ul",Ce,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(P),({roomGroupID:n,addons:r,adultPerRoom:p},a)=>(e.openBlock(),e.createElementBlock("li",{key:n},[e.createBaseVNode("h5",null,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(t)("booking.reservation.room"))+" #"+e.toDisplayString(a+1),1),e.createTextVNode(" ("),e.createVNode(e.Icon,{icon:"male",type:"fas",color:"header"}),e.createTextVNode(" "+e.toDisplayString(p)+") ",1)]),e.createBaseVNode("table",we,[e.createBaseVNode("thead",null,[e.createBaseVNode("tr",null,[e.createBaseVNode("th",null,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(t)("booking.reservation.addons")),1)]),Fe,e.createBaseVNode("th",Te,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(t)("booking.availability.price")),1)])])]),e.createBaseVNode("tbody",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r,({addonID:s,cardinality:E,name:R,price:U,quantityStrategy:q})=>(e.openBlock(),e.createElementBlock("tr",{key:s},[e.createBaseVNode("td",null,[e.createBaseVNode("b",null,e.toDisplayString(R),1),Pe,e.createBaseVNode("span",null,e.toDisplayString(e.unref(e.showPrice)(U,e.unref(u)))+" "+e.toDisplayString(e.unref(e.getPriceQuantityLabel)(q)),1)]),e.createBaseVNode("td",$e,[E===3?(e.openBlock(),e.createBlock(A._sfc_main,{key:0,modelValue:e.unref(k)[`${n}.${s}.${a}`],"onUpdate:modelValue":C=>e.unref(k)[`${n}.${s}.${a}`]=C,small:!0,"min-value":0},null,8,["modelValue","onUpdate:modelValue"])):(e.openBlock(),e.createBlock(b.Checkbox,{key:1,modelValue:e.unref(k)[`${n}.${s}.${a}`],"onUpdate:modelValue":C=>e.unref(k)[`${n}.${s}.${a}`]=C,numeric:!0},null,8,["modelValue","onUpdate:modelValue"]))]),e.createBaseVNode("td",xe,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(e.showPrice)(e.unref(Q)(s,n,a),e.unref(u))),1)])]))),128))]),e.createBaseVNode("tfoot",null,[e.createBaseVNode("tr",null,[Le,e.createBaseVNode("td",Oe,[e.createBaseVNode("u",null,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(e.showPrice)(e.unref(W)(n,a),e.unref(u))),1)])])])])])]))),128))])):e.createCommentVNode("",!0),e.unref(z)!==e.unref(e.OctopusEventRateType).FullDayEvent&&!e.unref(f)?(e.openBlock(),e.createElementBlock("div",Re,[e.createBaseVNode("label",Ue,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(t)("event.selectArrivalTime")),1)]),e.createBaseVNode("ul",qe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(le),(n,r)=>(e.openBlock(),e.createElementBlock("li",{key:r},[e.createVNode(b.Checkbox,{modelValue:e.unref(g),"onUpdate:modelValue":l[7]||(l[7]=p=>e.isRef(g)?g.value=p:null),type:"radio",name:"eventTimeTable",val:n.time,label:e.unref(e.showTime)(n.time)},null,8,["modelValue","val","label"])]))),128))])])):e.createCommentVNode("",!0),e.unref(se)?(e.openBlock(),e.createElementBlock("div",Ae,[e.createBaseVNode("label",Ie,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(t)("event.selectProducts")),1)]),e.createBaseVNode("table",Me,[e.createBaseVNode("thead",null,[e.createBaseVNode("tr",null,[e.createBaseVNode("th",null,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(t)("booking.reservation.addons")),1)]),ze,e.createBaseVNode("th",Ye,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(t)("booking.availability.price")),1)])])]),e.createBaseVNode("tbody",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(oe).products,({productID:n,productName:r,price:p,description:a})=>(e.openBlock(),e.createElementBlock("tr",{key:n},[e.createBaseVNode("td",null,[e.createBaseVNode("b",null,[e.createBaseVNode("span",null,e.toDisplayString(r),1)]),Qe,e.createBaseVNode("span",null,e.toDisplayString(a),1),We,e.createBaseVNode("span",null,e.toDisplayString(e.unref(e.showPrice)(p,e.unref(u))),1)]),e.createBaseVNode("td",je,[e.createVNode(A._sfc_main,{modelValue:e.unref(F)[n],"onUpdate:modelValue":s=>e.unref(F)[n]=s,small:!0,"min-value":0},null,8,["modelValue","onUpdate:modelValue"])]),e.createBaseVNode("td",He,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(e.showPrice)(e.unref(Q)(n),e.unref(u))),1)])]))),128))])])])):e.createCommentVNode("",!0)]),resume:e.withCtx(()=>[e.createBaseVNode("li",null,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(t)("event.numberOfGuests")),1),e.createBaseVNode("b",null,e.toDisplayString(e.unref(o)),1)]),e.unref(f)?(e.openBlock(),e.createElementBlock("li",Je,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(t)("event.numberOfRooms")),1),e.createBaseVNode("b",null,e.toDisplayString(e.unref(V)),1)])):e.createCommentVNode("",!0),e.unref(f)?(e.openBlock(),e.createElementBlock("li",Ke,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(t)("event.numberOfDays")),1),e.createBaseVNode("b",null,e.toDisplayString(e.unref(c)),1)])):e.createCommentVNode("",!0),e.unref(f)?(e.openBlock(),e.createElementBlock("li",Xe,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(t)("booking.reservation.arrival")),1),e.createBaseVNode("b",null,e.toDisplayString(e.unref(e.showDate)(e.unref(M))),1)])):e.createCommentVNode("",!0),e.unref(f)?(e.openBlock(),e.createElementBlock("li",Ze,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(t)("booking.reservation.departure")),1),e.createBaseVNode("b",null,e.toDisplayString(e.unref(e.showDate)(e.unref(M),e.unref(c))),1)])):e.createCommentVNode("",!0),!e.unref(f)&&e.unref(g)?(e.openBlock(),e.createElementBlock("li",Ge,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(t)("event.startOfEvent")),1),e.createBaseVNode("b",null,e.toDisplayString(e.unref(e.showTime)(e.unref(g))),1)])):e.createCommentVNode("",!0),!e.unref(f)&&e.unref(I)?(e.openBlock(),e.createElementBlock("li",et,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(t)("event.lengthOfEvent")),1),e.createBaseVNode("b",null,e.toDisplayString(e.unref(e.showTime)(e.unref(I))),1)])):e.createCommentVNode("",!0),!e.unref(f)&&e.unref(Y)>0?(e.openBlock(),e.createElementBlock("li",tt,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(t)("booking.availability.basePrice")),1),e.createBaseVNode("b",null,e.toDisplayString(e.unref(e.showPrice)(e.unref(Y),e.unref(u))),1)])):e.createCommentVNode("",!0)]),expenses:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(P),({roomGroupID:n},r)=>(e.openBlock(),e.createElementBlock("li",{key:n},[e.createBaseVNode("span",null,e.toDisplayString(e.unref(t)("booking.reservation.addons"))+" - "+e.toDisplayString(e.unref(t)("booking.reservation.room"))+" #"+e.toDisplayString(r+1),1),e.createBaseVNode("b",null,e.toDisplayString(e.unref(e.showPrice)(e.unref(W)(n,r),e.unref(u))),1)]))),128))]),_:2},1032,["remark","is-filled","is-loading","base-price","total-price","weekend-fee","room-upgrade","onPrev","onNext"])):e.createCommentVNode("",!0)]),payment:e.withCtx(()=>[e.createVNode(b.CheckoutWindow)]),confirmation:e.withCtx(()=>[e.createVNode(w.ThankYou,{message:e.unref(t)("event.confirmationMessage")},null,8,["message"])]),_:1},8,["slideshow","title","subtitle"])):(e.openBlock(),e.createBlock(e.Loading,{key:1}))]),_:1},8,["access-token","styling"]))}});const ot=e._export_sfc(nt,[["__scopeId","data-v-b2eee97d"]]),lt=e.createPinia(),at=e.zo(),v=e.createApp({components:{Event:ot}});v.use(lt);v.use(at);v.use(b.StickyPlugin);v.use(e.instance);v.use(w.xt);v.use(b.install,{bootstrap:!1});v.mount("#konnectio-event-app");module.exports=v;
package/dist/event.js CHANGED
@@ -1,13 +1,13 @@
1
- import { h as ge, y as he, u as Ie, s as H, a as ke, r as We, c as Ye, k as t, l as b, U as He, w as g, x as l, m as r, B as h, z as n, n as e, V as Ke, W as ie, q as i, X as re, t as u, Y as Qe, D as $, Z as Xe, _ as fe, o as Ze, $ as je, A as D, a0 as V, a1 as w, a2 as ue, O as de, a3 as me, a4 as Je, a5 as x, F as ce, H as xe, K as Ge, L as el, N as ll, a6 as nl, M as tl, P as al } from "./SelectField.vue_vue_type_style_index_0_lang-e2f4edc3.js";
2
- import { P as ol, C as pe, a as sl, S as il, i as rl } from "./index-b5d8f4fc.js";
3
- import { B as ul, M as dl, R as ml, T as cl, x as pl } from "./ThankYou-c1878478.js";
4
- import { u as K } from "./event-60e076f2.js";
5
- import { A as vl } from "./ActionField-311942d2.js";
6
- import { T as ve } from "./TextField-cd93b966.js";
7
- import { _ as bl } from "./DateField.vue_vue_type_style_index_0_lang-ec35955b.js";
8
- import { _ as G } from "./NumberField.vue_vue_type_script_setup_true_lang-2eb1b46f.js";
1
+ import { h as ge, z as he, u as Ie, s as Y, a as ke, r as Qe, c as We, k as t, l as b, V as Ye, w as g, x as l, m as r, D as h, A as n, n as e, W as Je, X as ie, q as i, Y as re, t as u, Z as Xe, F as $, $ as Ze, _ as fe, o as je, a0 as He, B as D, a1 as V, a2 as w, a3 as ue, O as de, a4 as me, a5 as Ke, a6 as G, G as ce, J as Ge, L as xe, M as el, P as ll, a7 as nl, N as tl, Q as al } from "./SelectField.vue_vue_type_style_index_0_lang-96b84c98.js";
2
+ import { P as ol, C as pe, a as sl, S as il, i as rl } from "./index-cadcbd9e.js";
3
+ import { B as ul, M as dl, R as ml, T as cl, x as pl } from "./ThankYou-f3dd76f4.js";
4
+ import { u as J } from "./event-43539c7b.js";
5
+ import { A as vl } from "./ActionField-ed13e600.js";
6
+ import { T as ve } from "./TextField-7150eae7.js";
7
+ import { _ as bl } from "./DateField.vue_vue_type_style_index_0_lang-d1a9ffca.js";
8
+ import { _ as x } from "./NumberField.vue_vue_type_script_setup_true_lang-7aa515cb.js";
9
9
  import "./_commonjsHelpers-c5d32002.js";
10
- import "./_-8772cf9a.js";
10
+ import "./_-cd5be070.js";
11
11
  const gl = { class: "fresh-booking-event-listing-information" }, hl = { key: 0 }, kl = { key: 1 }, fl = /* @__PURE__ */ ge({
12
12
  __name: "Event",
13
13
  props: {
@@ -31,22 +31,22 @@ const gl = { class: "fresh-booking-event-listing-information" }, hl = { key: 0 }
31
31
  callback: {}
32
32
  },
33
33
  setup(B) {
34
- const { t: a } = he(), v = B, { display: E } = Ie(), { currency: z } = H(ke()), {
34
+ const { t: a } = he(), v = B, { display: E } = Ie(), { currency: z } = Y(ke()), {
35
35
  maxNumberOfPeople: C,
36
- numberOfPeople: Q,
36
+ numberOfPeople: X,
37
37
  eventId: U,
38
38
  tableGroupId: R
39
- } = H(K()), {
39
+ } = Y(J()), {
40
40
  getTemplateAvailability: N,
41
41
  getEventAvailability: S,
42
42
  isEventListingLoading: O
43
- } = K(), P = We(0), I = Ye(() => O(v.listingId)), X = () => {
44
- P.value > 0 ? (U.value = v.listingId, Q.value = P.value, N(v.callback)) : E({
43
+ } = J(), P = Qe(0), I = We(() => O(v.listingId)), Z = () => {
44
+ P.value > 0 ? (U.value = v.listingId, X.value = P.value, N(v.callback)) : E({
45
45
  type: "error",
46
46
  message: a("alert.error.selectPeople")
47
47
  });
48
48
  }, k = () => {
49
- P.value > 0 ? (U.value = v.listingId, R.value = v.tableGroupId, Q.value = P.value, S(v.callback)) : E({
49
+ P.value > 0 ? (U.value = v.listingId, R.value = v.tableGroupId, X.value = P.value, S(v.callback)) : E({
50
50
  type: "error",
51
51
  message: a("alert.error.selectPeople")
52
52
  });
@@ -56,8 +56,8 @@ const gl = { class: "fresh-booking-event-listing-information" }, hl = { key: 0 }
56
56
  gallery: s.gallery,
57
57
  name: s.name,
58
58
  description: s.description,
59
- layout: e(Xe).Event
60
- }, He({
59
+ layout: e(Ze).Event
60
+ }, Ye({
61
61
  action: g(() => [
62
62
  r(vl, {
63
63
  modelValue: P.value,
@@ -70,7 +70,7 @@ const gl = { class: "fresh-booking-event-listing-information" }, hl = { key: 0 }
70
70
  "max-value": s.type === "event" ? s.maxOnlineReservationLimit || 1 / 0 : e(C),
71
71
  "is-loading": I.value,
72
72
  "onUpdate:isLoading": f[1] || (f[1] = (F) => I.value = F),
73
- onAction: f[2] || (f[2] = (F) => s.type === "event" ? k() : X())
73
+ onAction: f[2] || (f[2] = (F) => s.type === "event" ? k() : Z())
74
74
  }, null, 8, ["modelValue", "label", "buttonLabel", "buttonDisabled", "min-value", "max-value", "is-loading"])
75
75
  ]),
76
76
  _: 2
@@ -84,7 +84,7 @@ const gl = { class: "fresh-booking-event-listing-information" }, hl = { key: 0 }
84
84
  icon: "calendar-range",
85
85
  color: "header"
86
86
  }),
87
- l("span", null, n(e(Ke)(s.days)), 1)
87
+ l("span", null, n(e(Je)(s.days)), 1)
88
88
  ]),
89
89
  e(ie)(s.fromDate, s.toDate) < 180 ? (t(), i("li", hl, [
90
90
  r(h, {
@@ -98,7 +98,7 @@ const gl = { class: "fresh-booking-event-listing-information" }, hl = { key: 0 }
98
98
  icon: "calendar-clock",
99
99
  color: "header"
100
100
  }),
101
- l("span", null, n(e(Qe)(s.timeFrom, s.timeTo)), 1)
101
+ l("span", null, n(e(Xe)(s.timeFrom, s.timeTo)), 1)
102
102
  ]),
103
103
  s.maxOnlineReservationLimit ? (t(), i("li", kl, [
104
104
  r(h, {
@@ -142,13 +142,13 @@ const gl = { class: "fresh-booking-event-listing-information" }, hl = { key: 0 }
142
142
  ]), 1032, ["listing-id", "gallery", "name", "description", "layout"]));
143
143
  }
144
144
  });
145
- const be = /* @__PURE__ */ fe(fl, [["__scopeId", "data-v-4a459a74"]]), A = (B) => (Ge("data-v-b2eee97d"), B = B(), el(), B), yl = { class: "fresh-booking-panel" }, _l = {
145
+ const be = /* @__PURE__ */ fe(fl, [["__scopeId", "data-v-4a459a74"]]), A = (B) => (xe("data-v-b2eee97d"), B = B(), el(), B), yl = { class: "fresh-booking-panel" }, _l = {
146
146
  key: 0,
147
147
  id: "fresh-booking-event-overview"
148
148
  }, Vl = { class: "fresh-booking-event-listings" }, Pl = { class: "fresh-booking-event-listings" }, Tl = {
149
149
  key: 2,
150
150
  id: "fresh-booking-event-addons"
151
- }, $l = { class: "fresh-booking-table" }, El = /* @__PURE__ */ A(() => /* @__PURE__ */ l("th", { class: "fresh-booking-event-addons-input" }, null, -1)), Ol = { class: "fresh-booking-event-addons-price" }, Dl = /* @__PURE__ */ A(() => /* @__PURE__ */ l("br", null, null, -1)), wl = { class: "fresh-booking-event-addons-input" }, Ll = { class: "fresh-booking-event-addons-price" }, Bl = /* @__PURE__ */ A(() => /* @__PURE__ */ l("td", { colspan: "2" }, null, -1)), Cl = { class: "fresh-booking-event-addons-price" }, Ul = { key: 3 }, Fl = { class: "fresh-booking-label required" }, Al = { id: "fresh-booking-event-table" }, Rl = { key: 4 }, Nl = { class: "fresh-booking-label required" }, Sl = { class: "fresh-booking-table" }, ql = /* @__PURE__ */ A(() => /* @__PURE__ */ l("th", { class: "fresh-booking-event-addons-input" }, null, -1)), Ml = { class: "fresh-booking-event-addons-price" }, zl = /* @__PURE__ */ A(() => /* @__PURE__ */ l("br", null, null, -1)), Il = /* @__PURE__ */ A(() => /* @__PURE__ */ l("br", null, null, -1)), Wl = { class: "fresh-booking-event-addons-input" }, Yl = { class: "fresh-booking-event-addons-price" }, Hl = { key: 0 }, Kl = { key: 1 }, Ql = { key: 2 }, Xl = { key: 3 }, Zl = { key: 4 }, jl = { key: 5 }, Jl = { key: 6 }, xl = /* @__PURE__ */ ge({
151
+ }, $l = { class: "fresh-booking-table" }, El = /* @__PURE__ */ A(() => /* @__PURE__ */ l("th", { class: "fresh-booking-event-addons-input" }, null, -1)), Ol = { class: "fresh-booking-event-addons-price" }, Dl = /* @__PURE__ */ A(() => /* @__PURE__ */ l("br", null, null, -1)), wl = { class: "fresh-booking-event-addons-input" }, Ll = { class: "fresh-booking-event-addons-price" }, Bl = /* @__PURE__ */ A(() => /* @__PURE__ */ l("td", { colspan: "2" }, null, -1)), Cl = { class: "fresh-booking-event-addons-price" }, Ul = { key: 3 }, Fl = { class: "fresh-booking-label required" }, Al = { id: "fresh-booking-event-table" }, Rl = { key: 4 }, Nl = { class: "fresh-booking-label required" }, Sl = { class: "fresh-booking-table" }, ql = /* @__PURE__ */ A(() => /* @__PURE__ */ l("th", { class: "fresh-booking-event-addons-input" }, null, -1)), Ml = { class: "fresh-booking-event-addons-price" }, zl = /* @__PURE__ */ A(() => /* @__PURE__ */ l("br", null, null, -1)), Il = /* @__PURE__ */ A(() => /* @__PURE__ */ l("br", null, null, -1)), Ql = { class: "fresh-booking-event-addons-input" }, Wl = { class: "fresh-booking-event-addons-price" }, Yl = { key: 0 }, Jl = { key: 1 }, Xl = { key: 2 }, Zl = { key: 3 }, jl = { key: 4 }, Hl = { key: 5 }, Kl = { key: 6 }, Gl = /* @__PURE__ */ ge({
152
152
  name: "EventLayout",
153
153
  __name: "Event",
154
154
  props: {
@@ -161,7 +161,7 @@ const be = /* @__PURE__ */ fe(fl, [["__scopeId", "data-v-4a459a74"]]), A = (B) =
161
161
  addons: E,
162
162
  products: z,
163
163
  numberOfDays: C,
164
- discountCode: Q,
164
+ discountCode: X,
165
165
  name: U,
166
166
  phone: R,
167
167
  email: N,
@@ -169,7 +169,7 @@ const be = /* @__PURE__ */ fe(fl, [["__scopeId", "data-v-4a459a74"]]), A = (B) =
169
169
  arrivalTime: O,
170
170
  title: P,
171
171
  subtitle: I,
172
- slideshow: X,
172
+ slideshow: Z,
173
173
  currency: k,
174
174
  numberOfPeople: s,
175
175
  numberOfTotalDays: f,
@@ -182,7 +182,7 @@ const be = /* @__PURE__ */ fe(fl, [["__scopeId", "data-v-4a459a74"]]), A = (B) =
182
182
  getEvents: $e,
183
183
  getTemplates: Ee,
184
184
  getEventData: Oe,
185
- getTemplateData: W,
185
+ getTemplateData: Q,
186
186
  getEventTableData: De,
187
187
  length: ee,
188
188
  roomUpgrade: we,
@@ -197,7 +197,7 @@ const be = /* @__PURE__ */ fe(fl, [["__scopeId", "data-v-4a459a74"]]), A = (B) =
197
197
  // getEventImages,
198
198
  isTemplateEvent: T,
199
199
  tableBasePrice: te
200
- } = H(K()), {
200
+ } = Y(J()), {
201
201
  initialize: Re,
202
202
  validateDiscountCode: nn,
203
203
  fetchListings: Ne,
@@ -205,11 +205,11 @@ const be = /* @__PURE__ */ fe(fl, [["__scopeId", "data-v-4a459a74"]]), A = (B) =
205
205
  localAddonPrice: ae,
206
206
  totalAddonPrice: oe,
207
207
  reset: qe
208
- } = K(), {
208
+ } = J(), {
209
209
  hideEvents: Me,
210
210
  hideEventTemplates: ze
211
- } = H(ke());
212
- return Ze(() => Re()), je(v, () => Ne()), (se, d) => (t(), b(xe, {
211
+ } = Y(ke());
212
+ return je(() => Re()), He(v, () => Ne()), (se, d) => (t(), b(Ge, {
213
213
  id: "fresh-booking-event-module",
214
214
  class: "fresh-booking-app",
215
215
  type: "event",
@@ -219,11 +219,11 @@ const be = /* @__PURE__ */ fe(fl, [["__scopeId", "data-v-4a459a74"]]), A = (B) =
219
219
  default: g(() => [
220
220
  e(Ce) ? (t(), b(dl, {
221
221
  key: 0,
222
- slideshow: e(X),
222
+ slideshow: e(Z),
223
223
  title: e(P),
224
224
  subtitle: e(I)
225
225
  }, {
226
- availability: g(({ next: Y }) => [
226
+ availability: g(({ next: W }) => [
227
227
  l("div", yl, [
228
228
  r(bl, {
229
229
  modelValue: e(v),
@@ -251,16 +251,16 @@ const be = /* @__PURE__ */ fe(fl, [["__scopeId", "data-v-4a459a74"]]), A = (B) =
251
251
  timeTo: m,
252
252
  fromDate: p,
253
253
  toDate: q,
254
- tableGroupID: Z,
255
- description: j,
256
- soldOut: J,
254
+ tableGroupID: j,
255
+ description: H,
256
+ soldOut: K,
257
257
  maxOnlineReservationLimit: M
258
258
  }) => (t(), b(be, {
259
259
  key: y,
260
260
  type: "event",
261
261
  "listing-id": y,
262
- "table-group-id": Z,
263
- description: j,
262
+ "table-group-id": j,
263
+ description: H,
264
264
  name: c,
265
265
  days: o,
266
266
  "from-date": p,
@@ -268,8 +268,8 @@ const be = /* @__PURE__ */ fe(fl, [["__scopeId", "data-v-4a459a74"]]), A = (B) =
268
268
  "max-online-reservation-limit": M,
269
269
  "time-from": _,
270
270
  "time-to": m,
271
- "sold-out": J,
272
- callback: Y
271
+ "sold-out": K,
272
+ callback: W
273
273
  }, null, 8, ["listing-id", "table-group-id", "description", "name", "days", "from-date", "to-date", "max-online-reservation-limit", "time-from", "time-to", "sold-out", "callback"]))), 128))
274
274
  ])
275
275
  ], 64)) : u("", !0),
@@ -301,13 +301,13 @@ const be = /* @__PURE__ */ fe(fl, [["__scopeId", "data-v-4a459a74"]]), A = (B) =
301
301
  "to-date": _,
302
302
  "minimum-person-count": m,
303
303
  fromPrice: p,
304
- callback: Y
304
+ callback: W
305
305
  }, null, 8, ["listing-id", "name", "description", "from-date", "to-date", "minimum-person-count", "fromPrice", "callback"]))), 128))
306
306
  ])
307
307
  ], 64)) : u("", !0)
308
308
  ])) : (t(), b(ue, { key: 1 }))
309
309
  ]),
310
- reservation: g(({ next: Y, prev: y }) => [
310
+ reservation: g(({ next: W, prev: y }) => [
311
311
  e(Ae) ? (t(), b(ml, {
312
312
  key: 0,
313
313
  remark: e(S),
@@ -319,10 +319,10 @@ const be = /* @__PURE__ */ fe(fl, [["__scopeId", "data-v-4a459a74"]]), A = (B) =
319
319
  "weekend-fee": e(Le),
320
320
  "room-upgrade": e(we),
321
321
  onPrev: (o) => e(qe)(y),
322
- onNext: (o) => e(Se)(Y)
322
+ onNext: (o) => e(Se)(W)
323
323
  }, {
324
324
  form: g(() => [
325
- e(ne) === e(de).FullDayEvent ? (t(), b(G, {
325
+ e(ne) === e(de).FullDayEvent ? (t(), b(x, {
326
326
  key: 0,
327
327
  modelValue: e(C),
328
328
  "onUpdate:modelValue": d[1] || (d[1] = (o) => D(C) ? C.value = o : null),
@@ -359,8 +359,8 @@ const be = /* @__PURE__ */ fe(fl, [["__scopeId", "data-v-4a459a74"]]), A = (B) =
359
359
  required: ""
360
360
  }, null, 8, ["modelValue", "label", "placeholder"]),
361
361
  u("", !0),
362
- e(W) && e(W).length > 0 ? (t(), i("ul", Tl, [
363
- (t(!0), i(V, null, w(e(W), ({
362
+ e(Q) && e(Q).length > 0 ? (t(), i("ul", Tl, [
363
+ (t(!0), i(V, null, w(e(Q), ({
364
364
  roomGroupID: o,
365
365
  addons: c,
366
366
  adultPerRoom: _
@@ -391,17 +391,17 @@ const be = /* @__PURE__ */ fe(fl, [["__scopeId", "data-v-4a459a74"]]), A = (B) =
391
391
  (t(!0), i(V, null, w(c, ({
392
392
  addonID: p,
393
393
  cardinality: q,
394
- name: Z,
395
- price: j,
396
- quantityStrategy: J
394
+ name: j,
395
+ price: H,
396
+ quantityStrategy: K
397
397
  }) => (t(), i("tr", { key: p }, [
398
398
  l("td", null, [
399
- l("b", null, n(Z), 1),
399
+ l("b", null, n(j), 1),
400
400
  Dl,
401
- l("span", null, n(e($)(j, e(k))) + " " + n(e(Je)(J)), 1)
401
+ l("span", null, n(e($)(H, e(k))) + " " + n(e(Ke)(K)), 1)
402
402
  ]),
403
403
  l("td", wl, [
404
- q === 3 ? (t(), b(G, {
404
+ q === 3 ? (t(), b(x, {
405
405
  key: 0,
406
406
  modelValue: e(E)[`${o}.${p}.${m}`],
407
407
  "onUpdate:modelValue": (M) => e(E)[`${o}.${p}.${m}`] = M,
@@ -444,7 +444,7 @@ const be = /* @__PURE__ */ fe(fl, [["__scopeId", "data-v-4a459a74"]]), A = (B) =
444
444
  type: "radio",
445
445
  name: "eventTimeTable",
446
446
  val: o.time,
447
- label: e(x)(o.time)
447
+ label: e(G)(o.time)
448
448
  }, null, 8, ["modelValue", "val", "label"])
449
449
  ]))), 128))
450
450
  ])
@@ -476,15 +476,15 @@ const be = /* @__PURE__ */ fe(fl, [["__scopeId", "data-v-4a459a74"]]), A = (B) =
476
476
  Il,
477
477
  l("span", null, n(e($)(_, e(k))), 1)
478
478
  ]),
479
- l("td", Wl, [
480
- r(G, {
479
+ l("td", Ql, [
480
+ r(x, {
481
481
  modelValue: e(z)[o],
482
482
  "onUpdate:modelValue": (p) => e(z)[o] = p,
483
483
  small: !0,
484
484
  "min-value": 0
485
485
  }, null, 8, ["modelValue", "onUpdate:modelValue"])
486
486
  ]),
487
- l("td", Yl, [
487
+ l("td", Wl, [
488
488
  l("span", null, n(e($)(e(ae)(o), e(k))), 1)
489
489
  ])
490
490
  ]))), 128))
@@ -497,37 +497,37 @@ const be = /* @__PURE__ */ fe(fl, [["__scopeId", "data-v-4a459a74"]]), A = (B) =
497
497
  l("span", null, n(e(a)("event.numberOfGuests")), 1),
498
498
  l("b", null, n(e(s)), 1)
499
499
  ]),
500
- e(T) ? (t(), i("li", Hl, [
500
+ e(T) ? (t(), i("li", Yl, [
501
501
  l("span", null, n(e(a)("event.numberOfRooms")), 1),
502
502
  l("b", null, n(e(F)), 1)
503
503
  ])) : u("", !0),
504
- e(T) ? (t(), i("li", Kl, [
504
+ e(T) ? (t(), i("li", Jl, [
505
505
  l("span", null, n(e(a)("event.numberOfDays")), 1),
506
506
  l("b", null, n(e(f)), 1)
507
507
  ])) : u("", !0),
508
- e(T) ? (t(), i("li", Ql, [
508
+ e(T) ? (t(), i("li", Xl, [
509
509
  l("span", null, n(e(a)("booking.reservation.arrival")), 1),
510
510
  l("b", null, n(e(ce)(e(le))), 1)
511
511
  ])) : u("", !0),
512
- e(T) ? (t(), i("li", Xl, [
512
+ e(T) ? (t(), i("li", Zl, [
513
513
  l("span", null, n(e(a)("booking.reservation.departure")), 1),
514
514
  l("b", null, n(e(ce)(e(le), e(f))), 1)
515
515
  ])) : u("", !0),
516
- !e(T) && e(O) ? (t(), i("li", Zl, [
516
+ !e(T) && e(O) ? (t(), i("li", jl, [
517
517
  l("span", null, n(e(a)("event.startOfEvent")), 1),
518
- l("b", null, n(e(x)(e(O))), 1)
518
+ l("b", null, n(e(G)(e(O))), 1)
519
519
  ])) : u("", !0),
520
- !e(T) && e(ee) ? (t(), i("li", jl, [
520
+ !e(T) && e(ee) ? (t(), i("li", Hl, [
521
521
  l("span", null, n(e(a)("event.lengthOfEvent")), 1),
522
- l("b", null, n(e(x)(e(ee))), 1)
522
+ l("b", null, n(e(G)(e(ee))), 1)
523
523
  ])) : u("", !0),
524
- !e(T) && e(te) > 0 ? (t(), i("li", Jl, [
524
+ !e(T) && e(te) > 0 ? (t(), i("li", Kl, [
525
525
  l("span", null, n(e(a)("booking.availability.basePrice")), 1),
526
526
  l("b", null, n(e($)(e(te), e(k))), 1)
527
527
  ])) : u("", !0)
528
528
  ]),
529
529
  expenses: g(() => [
530
- (t(!0), i(V, null, w(e(W), ({ roomGroupID: o }, c) => (t(), i("li", { key: o }, [
530
+ (t(!0), i(V, null, w(e(Q), ({ roomGroupID: o }, c) => (t(), i("li", { key: o }, [
531
531
  l("span", null, n(e(a)("booking.reservation.addons")) + " - " + n(e(a)("booking.reservation.room")) + " #" + n(c + 1), 1),
532
532
  l("b", null, n(e($)(e(oe)(o, c), e(k))), 1)
533
533
  ]))), 128))
@@ -550,7 +550,7 @@ const be = /* @__PURE__ */ fe(fl, [["__scopeId", "data-v-4a459a74"]]), A = (B) =
550
550
  }, 8, ["access-token", "styling"]));
551
551
  }
552
552
  });
553
- const Gl = /* @__PURE__ */ fe(xl, [["__scopeId", "data-v-b2eee97d"]]), en = ll(), ln = nl(), L = tl({ components: { Event: Gl } });
553
+ const xl = /* @__PURE__ */ fe(Gl, [["__scopeId", "data-v-b2eee97d"]]), en = ll(), ln = nl(), L = tl({ components: { Event: xl } });
554
554
  L.use(en);
555
555
  L.use(ln);
556
556
  L.use(il);
package/dist/event.js.br CHANGED
Binary file
@@ -1 +1 @@
1
- "use strict";const e=require("./SelectField.vue_vue_type_style_index_0_lang-4755fb8a.cjs"),c=require("./NumberField.vue_vue_type_script_setup_true_lang-50fc08f1.cjs"),_=require("./ActionField-23ce1b2a.cjs");require("./TextField-6f7e37d9.cjs");require("./_commonjsHelpers-6763f629.cjs");const y=o=>(e.pushScopeId("data-v-5d5827dc"),o=o(),e.popScopeId(),o),N=["innerHTML"],B={key:0,id:"fresh-booking-gift-card-validation-resume",class:"fresh-booking-panel"},m=y(()=>e.createBaseVNode("span",null,"Loading...",-1)),C=e.defineComponent({name:"GiftCardValidationLayout",__name:"GiftCardValidation",props:{accessToken:{},styling:{}},setup(o){const{t:a}=e.useI18n(),{voucher:l,isValid:u,amount:p,expirationDate:f,productName:V,isLoading:i}=e.storeToRefs(c.useApplyGiftCardStore()),{currency:g}=e.storeToRefs(e.useUtilityStore()),{apply:s}=c.useApplyGiftCardStore();return(d,t)=>(e.openBlock(),e.createBlock(e.Suspense,null,{default:e.withCtx(()=>[e.createVNode(e._sfc_main,{id:"fresh-booking-gift-card-validation-module","access-token":d.accessToken,type:"gift-card",styling:d.styling},{default:e.withCtx(()=>[e.createBaseVNode("form",{onSubmit:t[3]||(t[3]=e.withModifiers(n=>e.unref(s)(),["prevent"]))},[e.createBaseVNode("h4",null,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(a)("giftCardValidation.title")),1)]),e.createBaseVNode("p",{innerHTML:e.unref(a)("giftCardValidation.description")},null,8,N),e.createVNode(_.ActionField,{modelValue:e.unref(l),"onUpdate:modelValue":t[0]||(t[0]=n=>e.isRef(l)?l.value=n:null),icon:"gift-card",label:e.unref(a)("booking.reservation.giftCardCode"),buttonLabel:e.unref(a)("giftCardValidation.submitButton"),placeholder:"XXXXXXXX","is-loading":e.unref(i),"onUpdate:isLoading":t[1]||(t[1]=n=>e.isRef(i)?i.value=n:null),onAction:t[2]||(t[2]=n=>e.unref(s)())},null,8,["modelValue","label","buttonLabel","is-loading"]),!e.unref(i)&&e.unref(u)?(e.openBlock(),e.createElementBlock("table",B,[e.createBaseVNode("thead",null,[e.createBaseVNode("tr",null,[e.createBaseVNode("th",null,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(a)("giftCardValidation.giftCard")),1),e.createVNode(e.Icon,{icon:"gift-card",type:"fas",color:"header"})]),e.createBaseVNode("th",null,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(a)("giftCardValidation.balance")),1),e.createVNode(e.Icon,{icon:"money-bill",type:"fas",color:"header"})]),e.createBaseVNode("th",null,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(a)("giftCardValidation.expirationDate")),1),e.createVNode(e.Icon,{icon:"timer",type:"fas",color:"header"})])])]),e.createBaseVNode("tbody",null,[e.createBaseVNode("tr",null,[e.createBaseVNode("td",null,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(V)),1)]),e.createBaseVNode("td",null,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(e.showPrice)(e.unref(p),e.unref(g))),1)]),e.createBaseVNode("td",null,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(e.showDate)(e.unref(f))),1)])])])])):e.createCommentVNode("",!0)],32)]),_:1},8,["access-token","styling"])]),fallback:e.withCtx(()=>[m]),_:1}))}});const b=e._export_sfc(C,[["__scopeId","data-v-5d5827dc"]]),r=e.createApp({components:{GiftCardValidation:b}}),v=e.createPinia();r.use(v);r.use(e.instance);r.mount("#konnectio-gift-card-validation-app");module.exports=r;
1
+ "use strict";const e=require("./SelectField.vue_vue_type_style_index_0_lang-43c8a651.cjs"),c=require("./NumberField.vue_vue_type_script_setup_true_lang-7676783c.cjs"),_=require("./ActionField-251eb289.cjs");require("./_commonjsHelpers-6763f629.cjs");require("./TextField-379793fe.cjs");const y=o=>(e.pushScopeId("data-v-5d5827dc"),o=o(),e.popScopeId(),o),N=["innerHTML"],B={key:0,id:"fresh-booking-gift-card-validation-resume",class:"fresh-booking-panel"},m=y(()=>e.createBaseVNode("span",null,"Loading...",-1)),C=e.defineComponent({name:"GiftCardValidationLayout",__name:"GiftCardValidation",props:{accessToken:{},styling:{}},setup(o){const{t:a}=e.useI18n(),{voucher:l,isValid:u,amount:p,expirationDate:f,productName:V,isLoading:i}=e.storeToRefs(c.useApplyGiftCardStore()),{currency:g}=e.storeToRefs(e.useUtilityStore()),{apply:s}=c.useApplyGiftCardStore();return(d,t)=>(e.openBlock(),e.createBlock(e.Suspense,null,{default:e.withCtx(()=>[e.createVNode(e._sfc_main$1,{id:"fresh-booking-gift-card-validation-module","access-token":d.accessToken,type:"gift-card",styling:d.styling},{default:e.withCtx(()=>[e.createBaseVNode("form",{onSubmit:t[3]||(t[3]=e.withModifiers(n=>e.unref(s)(),["prevent"]))},[e.createBaseVNode("h4",null,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(a)("giftCardValidation.title")),1)]),e.createBaseVNode("p",{innerHTML:e.unref(a)("giftCardValidation.description")},null,8,N),e.createVNode(_.ActionField,{modelValue:e.unref(l),"onUpdate:modelValue":t[0]||(t[0]=n=>e.isRef(l)?l.value=n:null),icon:"gift-card",label:e.unref(a)("booking.reservation.giftCardCode"),buttonLabel:e.unref(a)("giftCardValidation.submitButton"),placeholder:"XXXXXXXX","is-loading":e.unref(i),"onUpdate:isLoading":t[1]||(t[1]=n=>e.isRef(i)?i.value=n:null),onAction:t[2]||(t[2]=n=>e.unref(s)())},null,8,["modelValue","label","buttonLabel","is-loading"]),!e.unref(i)&&e.unref(u)?(e.openBlock(),e.createElementBlock("table",B,[e.createBaseVNode("thead",null,[e.createBaseVNode("tr",null,[e.createBaseVNode("th",null,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(a)("giftCardValidation.giftCard")),1),e.createVNode(e.Icon,{icon:"gift-card",type:"fas",color:"header"})]),e.createBaseVNode("th",null,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(a)("giftCardValidation.balance")),1),e.createVNode(e.Icon,{icon:"money-bill",type:"fas",color:"header"})]),e.createBaseVNode("th",null,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(a)("giftCardValidation.expirationDate")),1),e.createVNode(e.Icon,{icon:"timer",type:"fas",color:"header"})])])]),e.createBaseVNode("tbody",null,[e.createBaseVNode("tr",null,[e.createBaseVNode("td",null,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(V)),1)]),e.createBaseVNode("td",null,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(e.showPrice)(e.unref(p),e.unref(g))),1)]),e.createBaseVNode("td",null,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(e.showDate)(e.unref(f))),1)])])])])):e.createCommentVNode("",!0)],32)]),_:1},8,["access-token","styling"])]),fallback:e.withCtx(()=>[m]),_:1}))}});const b=e._export_sfc(C,[["__scopeId","data-v-5d5827dc"]]),r=e.createApp({components:{GiftCardValidation:b}}),v=e.createPinia();r.use(v);r.use(e.instance);r.mount("#konnectio-gift-card-validation-app");module.exports=r;
@@ -1,8 +1,8 @@
1
- import { h as L, y as S, s as g, a as X, k as _, l as w, w as u, m as l, x as a, z as o, n as t, A as y, q as x, B as p, D as A, F as B, t as G, G as I, H as D, J as N, K as T, L as M, _ as H, M as P, N as U, P as $ } from "./SelectField.vue_vue_type_style_index_0_lang-e2f4edc3.js";
2
- import { u as b } from "./NumberField.vue_vue_type_script_setup_true_lang-2eb1b46f.js";
3
- import { A as F } from "./ActionField-311942d2.js";
4
- import "./TextField-cd93b966.js";
1
+ import { h as L, z as S, s as g, a as X, k as _, l as w, w as u, m as l, x as a, A as o, n as t, B as y, q as x, D as p, F as A, G as B, t as G, H as I, J as D, K as N, L as T, M, _ as H, N as P, P as U, Q as $ } from "./SelectField.vue_vue_type_style_index_0_lang-96b84c98.js";
2
+ import { u as b } from "./NumberField.vue_vue_type_script_setup_true_lang-7aa515cb.js";
3
+ import { A as F } from "./ActionField-ed13e600.js";
5
4
  import "./_commonjsHelpers-c5d32002.js";
5
+ import "./TextField-7150eae7.js";
6
6
  const R = (s) => (T("data-v-5d5827dc"), s = s(), M(), s), q = ["innerHTML"], z = {
7
7
  key: 0,
8
8
  id: "fresh-booking-gift-card-validation-resume",
@@ -107,8 +107,8 @@ const R = (s) => (T("data-v-5d5827dc"), s = s(), M(), s), q = ["innerHTML"], z =
107
107
  }));
108
108
  }
109
109
  });
110
- const K = /* @__PURE__ */ H(J, [["__scopeId", "data-v-5d5827dc"]]), c = P({ components: { GiftCardValidation: K } }), j = U();
111
- c.use(j);
110
+ const K = /* @__PURE__ */ H(J, [["__scopeId", "data-v-5d5827dc"]]), c = P({ components: { GiftCardValidation: K } }), Q = U();
111
+ c.use(Q);
112
112
  c.use($);
113
113
  c.mount("#konnectio-gift-card-validation-app");
114
114
  export {
Binary file