@konnectio/core 4.0.26 → 4.0.28

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 (87) hide show
  1. package/dist/{ActionField-e518ac9a.js → ActionField-20fd2fef.js} +7 -7
  2. package/dist/ActionField-20fd2fef.js.br +0 -0
  3. package/dist/{ActionField-341a2fae.cjs → ActionField-487e86aa.cjs} +1 -1
  4. package/dist/{AvailabilitySkeleton-52c00b2c.js → AvailabilitySkeleton-813806c7.js} +38 -38
  5. package/dist/AvailabilitySkeleton-813806c7.js.br +0 -0
  6. package/dist/{AvailabilitySkeleton-29c1edbb.cjs → AvailabilitySkeleton-ff721887.cjs} +1 -1
  7. package/dist/DateField.vue_vue_type_style_index_0_lang-3abac10d.js +8503 -0
  8. package/dist/DateField.vue_vue_type_style_index_0_lang-3abac10d.js.br +0 -0
  9. package/dist/DateField.vue_vue_type_style_index_0_lang-c80f334d.cjs +2 -0
  10. package/dist/{Field-a3929646.cjs → Field-6b050caf.cjs} +1 -1
  11. package/dist/{Field-a02a9614.js → Field-79fc7dfa.js} +2 -2
  12. package/dist/Field-79fc7dfa.js.br +0 -0
  13. package/dist/NumberField.vue_vue_type_script_setup_true_lang-13b2e6c5.js +67 -0
  14. package/dist/NumberField.vue_vue_type_script_setup_true_lang-13b2e6c5.js.br +0 -0
  15. package/dist/NumberField.vue_vue_type_script_setup_true_lang-1c0634a0.cjs +1 -0
  16. package/dist/SelectField.vue_vue_type_style_index_0_lang-aa9c0c1a.cjs +858 -0
  17. package/dist/{SelectField.vue_vue_type_style_index_0_lang-b6764902.js → SelectField.vue_vue_type_style_index_0_lang-d631c22b.js} +10338 -9806
  18. package/dist/SelectField.vue_vue_type_style_index_0_lang-d631c22b.js.br +0 -0
  19. package/dist/{ThankYou-0777df9a.cjs → ThankYou-3ada7b03.cjs} +6 -6
  20. package/dist/{ThankYou-35cb92aa.js → ThankYou-9dd940b6.js} +661 -666
  21. package/dist/ThankYou-9dd940b6.js.br +0 -0
  22. package/dist/_-b36ce0a6.cjs +1 -0
  23. package/dist/_-f9c3008a.js +20 -0
  24. package/dist/availability.cjs +1 -1
  25. package/dist/availability.js +7 -7
  26. package/dist/availability.js.br +0 -0
  27. package/dist/components/Clickable.vue.d.ts +1 -1
  28. package/dist/components/Spinner.vue.d.ts +4 -0
  29. package/dist/components/Spinner.vue.d.ts.map +1 -0
  30. package/dist/components/forms/HotelAvailabilityForm.vue.d.ts +1 -1
  31. package/dist/components/forms/ReservationForm.vue.d.ts +1 -1
  32. package/dist/components/inputs/CheckboxField.vue.d.ts +5 -0
  33. package/dist/components/inputs/CheckboxField.vue.d.ts.map +1 -0
  34. package/dist/components/inputs/grouped/RoomConfigField.vue.d.ts +1 -1
  35. package/dist/components/listings/Base.vue.d.ts +1 -1
  36. package/dist/components/listings/Hotel.vue.d.ts +1 -1
  37. package/dist/components/views/TermsOfService.vue.d.ts +1 -1
  38. package/dist/{event-9e559956.js → event-16449760.js} +11 -13
  39. package/dist/event-16449760.js.br +0 -0
  40. package/dist/event-69ba12c7.cjs +1 -0
  41. package/dist/event.cjs +1 -1
  42. package/dist/event.js +132 -132
  43. package/dist/event.js.br +0 -0
  44. package/dist/gift-card-validation.cjs +1 -1
  45. package/dist/gift-card-validation.js +29 -29
  46. package/dist/gift-card-validation.js.br +0 -0
  47. package/dist/gift-card.cjs +1 -1
  48. package/dist/gift-card.js +87 -87
  49. package/dist/gift-card.js.br +0 -0
  50. package/dist/hotel.cjs +5 -5
  51. package/dist/hotel.js +1614 -1638
  52. package/dist/hotel.js.br +0 -0
  53. package/dist/{index-af967975.cjs → index-bf17dd6e.cjs} +1 -1
  54. package/dist/{index-96ff0142.js → index-ddf58f34.js} +1 -1
  55. package/dist/index-ddf58f34.js.br +0 -0
  56. package/dist/layouts/Hotel.vue.d.ts +1 -6
  57. package/dist/polyfill.cjs +1 -1
  58. package/dist/polyfill.js +1 -1
  59. package/dist/polyfill.js.br +0 -0
  60. package/dist/store/applyGiftCard.d.ts +1 -1
  61. package/dist/store/event.d.ts +3 -3
  62. package/dist/store/giftCard.d.ts +1 -1
  63. package/dist/store/hotel.d.ts +4 -4
  64. package/dist/store/payment.d.ts +1 -1
  65. package/dist/store/tracking.d.ts +37 -0
  66. package/dist/store/utilities.d.ts +1 -1
  67. package/dist/style.css +1 -1
  68. package/dist/style.css.br +0 -0
  69. package/package.json +5 -5
  70. package/dist/ActionField-e518ac9a.js.br +0 -0
  71. package/dist/AvailabilitySkeleton-52c00b2c.js.br +0 -0
  72. package/dist/DateField.vue_vue_type_style_index_0_lang-7e9bf5a9.js +0 -8844
  73. package/dist/DateField.vue_vue_type_style_index_0_lang-7e9bf5a9.js.br +0 -0
  74. package/dist/DateField.vue_vue_type_style_index_0_lang-e3a9747e.cjs +0 -5
  75. package/dist/Field-a02a9614.js.br +0 -0
  76. package/dist/NumberField.vue_vue_type_script_setup_true_lang-0c2b2bf3.cjs +0 -1
  77. package/dist/NumberField.vue_vue_type_script_setup_true_lang-7249ebd2.js +0 -116
  78. package/dist/NumberField.vue_vue_type_script_setup_true_lang-7249ebd2.js.br +0 -0
  79. package/dist/SelectField.vue_vue_type_style_index_0_lang-b6764902.js.br +0 -0
  80. package/dist/SelectField.vue_vue_type_style_index_0_lang-cef08480.cjs +0 -855
  81. package/dist/ThankYou-35cb92aa.js.br +0 -0
  82. package/dist/_-6878c22f.js +0 -82
  83. package/dist/_-6878c22f.js.br +0 -0
  84. package/dist/_-e84d1f5c.cjs +0 -1
  85. package/dist/event-6a63c75b.cjs +0 -1
  86. package/dist/event-9e559956.js.br +0 -0
  87. package/dist/index-96ff0142.js.br +0 -0
package/dist/event.js CHANGED
@@ -1,13 +1,13 @@
1
- import { h as ge, z as he, u as ze, s as Y, a as ke, r as Qe, c as We, k as t, l as b, W as Ye, w as g, x as l, m as r, D as h, A as n, n as e, X as Je, Y as ie, q as i, Z as re, t as u, $ as Xe, F as $, a0 as Ze, _ as fe, o as je, a1 as Ge, B as D, a2 as V, a3 as w, a4 as ue, O as de, T as me, a5 as ce, a6 as He, a7 as K, G as pe, J as Ke, L as xe, M as el, P as ll, a8 as nl, N as tl, Q as al, a9 as ol } from "./SelectField.vue_vue_type_style_index_0_lang-b6764902.js";
2
- import { B as sl, M as il, R as rl, T as ul, x as dl } from "./ThankYou-35cb92aa.js";
3
- import { u as J } from "./event-9e559956.js";
4
- import { A as ml } from "./ActionField-e518ac9a.js";
5
- import { P as cl, C as ve, a as pl, S as vl } from "./index-96ff0142.js";
6
- import { _ as bl } from "./DateField.vue_vue_type_style_index_0_lang-7e9bf5a9.js";
7
- import { _ as x } from "./NumberField.vue_vue_type_script_setup_true_lang-7249ebd2.js";
1
+ import { k as ge, D as ke, b as Qe, s as z, c as he, r as We, f as Ye, m as t, n as b, W as ze, w as g, A as l, p as r, H as k, F as n, q as e, X as He, Y as ie, v as i, Z as re, x as u, $ as Je, J as $, a0 as Ke, _ as fe, o as Xe, a1 as Ze, G as D, a2 as V, a3 as w, a4 as ue, O as de, T as me, a5 as ce, a6 as je, a7 as G, K as pe, M as Ge, P as xe, Q as el, U as ll, a8 as nl, R as tl, V as al, a9 as ol } from "./SelectField.vue_vue_type_style_index_0_lang-d631c22b.js";
2
+ import { B as sl, M as il, R as rl, T as ul, x as dl } from "./ThankYou-9dd940b6.js";
3
+ import { u as H } from "./event-16449760.js";
4
+ import { A as ml } from "./ActionField-20fd2fef.js";
5
+ import { P as cl, C as ve, a as pl, S as vl } from "./index-ddf58f34.js";
6
+ import { _ as bl } from "./DateField.vue_vue_type_style_index_0_lang-3abac10d.js";
7
+ import { _ as x } from "./NumberField.vue_vue_type_script_setup_true_lang-13b2e6c5.js";
8
8
  import "./_commonjsHelpers-aeeeeb92.js";
9
- import "./_-6878c22f.js";
10
- const gl = { class: "fresh-booking-event-listing-information" }, hl = { key: 0 }, kl = { key: 1 }, fl = /* @__PURE__ */ ge({
9
+ import "./_-f9c3008a.js";
10
+ const gl = { class: "fresh-booking-event-listing-information" }, kl = { key: 0 }, hl = { key: 1 }, fl = /* @__PURE__ */ ge({
11
11
  __name: "Event",
12
12
  props: {
13
13
  name: {},
@@ -29,23 +29,23 @@ const gl = { class: "fresh-booking-event-listing-information" }, hl = { key: 0 }
29
29
  trackingEnabled: { type: Boolean },
30
30
  callback: {}
31
31
  },
32
- setup(B) {
33
- const { t: a } = he(), v = B, { display: E } = ze(), { currency: I } = Y(ke()), {
34
- maxNumberOfPeople: C,
35
- numberOfPeople: X,
36
- eventId: U,
32
+ setup(L) {
33
+ const { t: a } = ke(), v = L, { display: E } = Qe(), { currency: I } = z(he()), {
34
+ maxNumberOfPeople: U,
35
+ numberOfPeople: J,
36
+ eventId: B,
37
37
  tableGroupId: R
38
- } = Y(J()), {
39
- getTemplateAvailability: N,
40
- getEventAvailability: S,
38
+ } = z(H()), {
39
+ getTemplateAvailability: S,
40
+ getEventAvailability: N,
41
41
  isEventListingLoading: O
42
- } = J(), P = Qe(0), z = We(() => O(v.listingId)), Z = () => {
43
- P.value > 0 ? (U.value = v.listingId, X.value = P.value, N(v.callback)) : E({
42
+ } = H(), P = We(0), Q = Ye(() => O(v.listingId)), K = () => {
43
+ P.value > 0 ? (B.value = v.listingId, J.value = P.value, S(v.callback)) : E({
44
44
  type: "error",
45
45
  message: a("alert.error.selectPeople")
46
46
  });
47
- }, k = () => {
48
- P.value > 0 ? (U.value = v.listingId, R.value = v.tableGroupId, X.value = P.value, S(v.callback)) : E({
47
+ }, h = () => {
48
+ P.value > 0 ? (B.value = v.listingId, R.value = v.tableGroupId, J.value = P.value, N(v.callback)) : E({
49
49
  type: "error",
50
50
  message: a("alert.error.selectPeople")
51
51
  });
@@ -55,8 +55,8 @@ const gl = { class: "fresh-booking-event-listing-information" }, hl = { key: 0 }
55
55
  gallery: s.gallery,
56
56
  name: s.name,
57
57
  description: s.description,
58
- layout: e(Ze).Event
59
- }, Ye({
58
+ layout: e(Ke).Event
59
+ }, ze({
60
60
  action: g(() => [
61
61
  r(ml, {
62
62
  modelValue: P.value,
@@ -66,10 +66,10 @@ const gl = { class: "fresh-booking-event-listing-information" }, hl = { key: 0 }
66
66
  buttonLabel: s.soldOut ? e(a)("event.soldOut") : e(a)("event.bookNowButton"),
67
67
  buttonDisabled: s.soldOut,
68
68
  "min-value": s.type === "event" ? 1 : s.minimumPersonCount,
69
- "max-value": s.type === "event" ? s.maxOnlineReservationLimit || 1 / 0 : e(C),
70
- "is-loading": z.value,
71
- "onUpdate:isLoading": f[1] || (f[1] = (F) => z.value = F),
72
- onAction: f[2] || (f[2] = (F) => s.type === "event" ? k() : Z())
69
+ "max-value": s.type === "event" ? s.maxOnlineReservationLimit || 1 / 0 : e(U),
70
+ "is-loading": Q.value,
71
+ "onUpdate:isLoading": f[1] || (f[1] = (F) => Q.value = F),
72
+ onAction: f[2] || (f[2] = (F) => s.type === "event" ? h() : K())
73
73
  }, null, 8, ["modelValue", "label", "buttonLabel", "buttonDisabled", "min-value", "max-value", "is-loading"])
74
74
  ]),
75
75
  _: 2
@@ -79,28 +79,28 @@ const gl = { class: "fresh-booking-event-listing-information" }, hl = { key: 0 }
79
79
  fn: g(() => [
80
80
  l("ul", gl, [
81
81
  l("li", null, [
82
- r(h, {
82
+ r(k, {
83
83
  icon: "calendar-range",
84
84
  color: "header"
85
85
  }),
86
- l("span", null, n(e(Je)(s.days)), 1)
86
+ l("span", null, n(e(He)(s.days)), 1)
87
87
  ]),
88
- e(ie)(s.fromDate, s.toDate) < 180 ? (t(), i("li", hl, [
89
- r(h, {
88
+ e(ie)(s.fromDate, s.toDate) < 180 ? (t(), i("li", kl, [
89
+ r(k, {
90
90
  icon: "calendar-days",
91
91
  color: "header"
92
92
  }),
93
93
  l("span", null, n(e(re)(s.fromDate, s.toDate)), 1)
94
94
  ])) : u("", !0),
95
95
  l("li", null, [
96
- r(h, {
96
+ r(k, {
97
97
  icon: "calendar-clock",
98
98
  color: "header"
99
99
  }),
100
- l("span", null, n(e(Xe)(s.timeFrom, s.timeTo)), 1)
100
+ l("span", null, n(e(Je)(s.timeFrom, s.timeTo)), 1)
101
101
  ]),
102
- s.maxOnlineReservationLimit ? (t(), i("li", kl, [
103
- r(h, {
102
+ s.maxOnlineReservationLimit ? (t(), i("li", hl, [
103
+ r(k, {
104
104
  icon: "user-alt",
105
105
  color: "header"
106
106
  }),
@@ -114,21 +114,21 @@ const gl = { class: "fresh-booking-event-listing-information" }, hl = { key: 0 }
114
114
  fn: g(() => [
115
115
  l("ul", { class: "fresh-booking-event-listing-information" }, [
116
116
  e(ie)(s.fromDate, s.toDate) < 180 ? (t(), i("li", { key: 0 }, [
117
- r(h, {
117
+ r(k, {
118
118
  icon: "calendar-days",
119
119
  color: "header"
120
120
  }),
121
121
  l("span", null, n(e(re)(s.fromDate, s.toDate, !0)), 1)
122
122
  ])) : u("", !0),
123
123
  l("li", null, [
124
- r(h, {
124
+ r(k, {
125
125
  icon: "user-alt",
126
126
  color: "header"
127
127
  }),
128
- l("span", null, n(`${s.minimumPersonCount} - ${e(C)} ${e(a)("general.people")}`), 1)
128
+ l("span", null, n(`${s.minimumPersonCount} - ${e(U)} ${e(a)("general.people")}`), 1)
129
129
  ]),
130
130
  l("li", null, [
131
- r(h, {
131
+ r(k, {
132
132
  icon: "money-bill",
133
133
  color: "header"
134
134
  }),
@@ -141,35 +141,35 @@ const gl = { class: "fresh-booking-event-listing-information" }, hl = { key: 0 }
141
141
  ]), 1032, ["listing-id", "gallery", "name", "description", "layout"]));
142
142
  }
143
143
  });
144
- 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 = {
144
+ const be = /* @__PURE__ */ fe(fl, [["__scopeId", "data-v-4a459a74"]]), A = (L) => (xe("data-v-b2eee97d"), L = L(), el(), L), yl = { class: "fresh-booking-panel" }, _l = {
145
145
  key: 0,
146
146
  id: "fresh-booking-event-overview"
147
147
  }, Vl = { class: "fresh-booking-event-listings" }, Pl = { class: "fresh-booking-event-listings" }, Tl = {
148
148
  key: 2,
149
149
  id: "fresh-booking-event-addons"
150
- }, $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" }, Il = /* @__PURE__ */ A(() => /* @__PURE__ */ l("br", null, null, -1)), zl = /* @__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 }, Gl = { key: 5 }, Hl = { key: 6 }, Kl = /* @__PURE__ */ ge({
150
+ }, $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" }, Cl = { class: "fresh-booking-event-addons-price" }, Ll = /* @__PURE__ */ A(() => /* @__PURE__ */ l("td", { colspan: "2" }, null, -1)), Ul = { class: "fresh-booking-event-addons-price" }, Bl = { key: 3 }, Fl = { class: "fresh-booking-label required" }, Al = { id: "fresh-booking-event-table" }, Rl = { key: 4 }, Sl = { class: "fresh-booking-label required" }, Nl = { 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" }, Il = /* @__PURE__ */ A(() => /* @__PURE__ */ l("br", null, null, -1)), Ql = /* @__PURE__ */ A(() => /* @__PURE__ */ l("br", null, null, -1)), Wl = { class: "fresh-booking-event-addons-input" }, Yl = { class: "fresh-booking-event-addons-price" }, zl = { key: 0 }, Hl = { key: 1 }, Jl = { key: 2 }, Kl = { key: 3 }, Xl = { key: 4 }, Zl = { key: 5 }, jl = { key: 6 }, Gl = /* @__PURE__ */ ge({
151
151
  name: "EventLayout",
152
152
  __name: "Event",
153
153
  props: {
154
154
  accessToken: {},
155
155
  styling: {}
156
156
  },
157
- setup(B) {
158
- const { t: a } = he(), {
157
+ setup(L) {
158
+ const { t: a } = ke(), {
159
159
  searchDate: v,
160
160
  addons: E,
161
161
  products: I,
162
- numberOfDays: C,
163
- discountCode: X,
164
- name: U,
162
+ numberOfDays: U,
163
+ discountCode: J,
164
+ name: B,
165
165
  phone: R,
166
- email: N,
167
- remark: S,
166
+ email: S,
167
+ remark: N,
168
168
  arrivalTime: O,
169
169
  title: P,
170
- subtitle: z,
171
- slideshow: Z,
172
- currency: k,
170
+ subtitle: Q,
171
+ slideshow: K,
172
+ currency: h,
173
173
  numberOfPeople: s,
174
174
  numberOfTotalDays: f,
175
175
  numberOfRooms: F,
@@ -181,34 +181,34 @@ const be = /* @__PURE__ */ fe(fl, [["__scopeId", "data-v-4a459a74"]]), A = (B) =
181
181
  getEvents: $e,
182
182
  getTemplates: Ee,
183
183
  getEventData: Oe,
184
- getTemplateData: Q,
184
+ getTemplateData: W,
185
185
  getEventTableData: De,
186
186
  length: ee,
187
187
  roomUpgrade: we,
188
- weekendFee: Le,
188
+ weekendFee: Ce,
189
189
  fromDate: le,
190
- hasProducts: Be,
190
+ hasProducts: Le,
191
191
  eventRateType: ne,
192
- isMetaDataAvailable: Ce,
193
- areListingsAvailable: Ue,
192
+ isMetaDataAvailable: Ue,
193
+ areListingsAvailable: Be,
194
194
  isReservationFormFilled: Fe,
195
195
  isAvailabilityDataAvailable: Ae,
196
196
  // getEventImages,
197
197
  isTemplateEvent: T,
198
198
  tableBasePrice: te
199
- } = Y(J()), {
199
+ } = z(H()), {
200
200
  initialize: Re,
201
201
  validateDiscountCode: nn,
202
- fetchListings: Ne,
203
- createBooking: Se,
202
+ fetchListings: Se,
203
+ createBooking: Ne,
204
204
  localAddonPrice: ae,
205
205
  totalAddonPrice: oe,
206
206
  reset: qe
207
- } = J(), {
207
+ } = H(), {
208
208
  hideEvents: Me,
209
209
  hideEventTemplates: Ie
210
- } = Y(ke());
211
- return je(() => Re()), Ge(v, () => Ne()), (se, d) => (t(), b(Ke, {
210
+ } = z(he());
211
+ return Xe(() => Re()), Ze(v, () => Se()), (se, d) => (t(), b(Ge, {
212
212
  id: "fresh-booking-event-module",
213
213
  class: "fresh-booking-app",
214
214
  type: "event",
@@ -216,13 +216,13 @@ const be = /* @__PURE__ */ fe(fl, [["__scopeId", "data-v-4a459a74"]]), A = (B) =
216
216
  styling: se.styling
217
217
  }, {
218
218
  default: g(() => [
219
- e(Ce) ? (t(), b(il, {
219
+ e(Ue) ? (t(), b(il, {
220
220
  key: 0,
221
- slideshow: e(Z),
221
+ slideshow: e(K),
222
222
  title: e(P),
223
- subtitle: e(z)
223
+ subtitle: e(Q)
224
224
  }, {
225
- availability: g(({ next: W }) => [
225
+ availability: g(({ next: Y }) => [
226
226
  l("div", yl, [
227
227
  r(bl, {
228
228
  modelValue: e(v),
@@ -231,10 +231,10 @@ const be = /* @__PURE__ */ fe(fl, [["__scopeId", "data-v-4a459a74"]]), A = (B) =
231
231
  "min-date": /* @__PURE__ */ new Date()
232
232
  }, null, 8, ["modelValue", "label", "min-date"])
233
233
  ]),
234
- e(Ue) ? (t(), i("div", _l, [
234
+ e(Be) ? (t(), i("div", _l, [
235
235
  e(Pe) && !e(Me) ? (t(), i(V, { key: 0 }, [
236
236
  l("h2", null, [
237
- r(h, {
237
+ r(k, {
238
238
  icon: "clock-seven",
239
239
  type: "fal",
240
240
  color: "header"
@@ -250,16 +250,16 @@ const be = /* @__PURE__ */ fe(fl, [["__scopeId", "data-v-4a459a74"]]), A = (B) =
250
250
  timeTo: m,
251
251
  fromDate: p,
252
252
  toDate: q,
253
- tableGroupID: j,
254
- description: G,
255
- soldOut: H,
253
+ tableGroupID: X,
254
+ description: Z,
255
+ soldOut: j,
256
256
  maxOnlineReservationLimit: M
257
257
  }) => (t(), b(be, {
258
258
  key: y,
259
259
  type: "event",
260
260
  "listing-id": y,
261
- "table-group-id": j,
262
- description: G,
261
+ "table-group-id": X,
262
+ description: Z,
263
263
  name: c,
264
264
  days: o,
265
265
  "from-date": p,
@@ -267,14 +267,14 @@ const be = /* @__PURE__ */ fe(fl, [["__scopeId", "data-v-4a459a74"]]), A = (B) =
267
267
  "max-online-reservation-limit": M,
268
268
  "time-from": _,
269
269
  "time-to": m,
270
- "sold-out": H,
271
- callback: W
270
+ "sold-out": j,
271
+ callback: Y
272
272
  }, 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))
273
273
  ])
274
274
  ], 64)) : u("", !0),
275
275
  e(Te) && !e(Ie) ? (t(), i(V, { key: 1 }, [
276
276
  l("h2", null, [
277
- r(h, {
277
+ r(k, {
278
278
  icon: "stars",
279
279
  type: "fal",
280
280
  color: "header"
@@ -300,38 +300,38 @@ const be = /* @__PURE__ */ fe(fl, [["__scopeId", "data-v-4a459a74"]]), A = (B) =
300
300
  "to-date": _,
301
301
  "minimum-person-count": m,
302
302
  fromPrice: p,
303
- callback: W
303
+ callback: Y
304
304
  }, null, 8, ["listing-id", "name", "description", "from-date", "to-date", "minimum-person-count", "fromPrice", "callback"]))), 128))
305
305
  ])
306
306
  ], 64)) : u("", !0)
307
307
  ])) : (t(), b(ue, { key: 1 }))
308
308
  ]),
309
- reservation: g(({ next: W, prev: y }) => [
309
+ reservation: g(({ next: Y, prev: y }) => [
310
310
  e(Ae) ? (t(), b(rl, {
311
311
  key: 0,
312
- remark: e(S),
313
- "onUpdate:remark": d[8] || (d[8] = (o) => D(S) ? S.value = o : null),
312
+ remark: e(N),
313
+ "onUpdate:remark": d[8] || (d[8] = (o) => D(N) ? N.value = o : null),
314
314
  "is-filled": e(Fe),
315
315
  "is-loading": e(Ve),
316
316
  "base-price": e(ye),
317
317
  "total-price": e(_e),
318
- "weekend-fee": e(Le),
318
+ "weekend-fee": e(Ce),
319
319
  "room-upgrade": e(we),
320
320
  onPrev: (o) => e(qe)(y),
321
- onNext: (o) => e(Se)(W)
321
+ onNext: (o) => e(Ne)(Y)
322
322
  }, {
323
323
  form: g(() => [
324
324
  e(ne) === e(de).FullDayEvent ? (t(), b(x, {
325
325
  key: 0,
326
- modelValue: e(C),
327
- "onUpdate:modelValue": d[1] || (d[1] = (o) => D(C) ? C.value = o : null),
326
+ modelValue: e(U),
327
+ "onUpdate:modelValue": d[1] || (d[1] = (o) => D(U) ? U.value = o : null),
328
328
  label: e(a)("event.numberOfDays"),
329
329
  "min-value": 1,
330
330
  required: ""
331
331
  }, null, 8, ["modelValue", "label"])) : u("", !0),
332
332
  r(me, {
333
- modelValue: e(U),
334
- "onUpdate:modelValue": d[2] || (d[2] = (o) => D(U) ? U.value = o : null),
333
+ modelValue: e(B),
334
+ "onUpdate:modelValue": d[2] || (d[2] = (o) => D(B) ? B.value = o : null),
335
335
  type: "text",
336
336
  label: e(a)("booking.reservation.name"),
337
337
  icon: "user-alt",
@@ -339,8 +339,8 @@ const be = /* @__PURE__ */ fe(fl, [["__scopeId", "data-v-4a459a74"]]), A = (B) =
339
339
  required: ""
340
340
  }, null, 8, ["modelValue", "label", "placeholder"]),
341
341
  r(me, {
342
- modelValue: e(N),
343
- "onUpdate:modelValue": d[3] || (d[3] = (o) => D(N) ? N.value = o : null),
342
+ modelValue: e(S),
343
+ "onUpdate:modelValue": d[3] || (d[3] = (o) => D(S) ? S.value = o : null),
344
344
  label: e(a)("booking.reservation.email"),
345
345
  type: "email",
346
346
  name: "email",
@@ -358,8 +358,8 @@ const be = /* @__PURE__ */ fe(fl, [["__scopeId", "data-v-4a459a74"]]), A = (B) =
358
358
  required: ""
359
359
  }, null, 8, ["modelValue", "label", "placeholder"]),
360
360
  u("", !0),
361
- e(Q) && e(Q).length > 0 ? (t(), i("ul", Tl, [
362
- (t(!0), i(V, null, w(e(Q), ({
361
+ e(W) && e(W).length > 0 ? (t(), i("ul", Tl, [
362
+ (t(!0), i(V, null, w(e(W), ({
363
363
  roomGroupID: o,
364
364
  addons: c,
365
365
  adultPerRoom: _
@@ -367,7 +367,7 @@ const be = /* @__PURE__ */ fe(fl, [["__scopeId", "data-v-4a459a74"]]), A = (B) =
367
367
  l("h5", null, [
368
368
  l("span", null, n(e(a)("booking.reservation.room")) + " #" + n(m + 1), 1),
369
369
  ce(" ("),
370
- r(h, {
370
+ r(k, {
371
371
  icon: "male",
372
372
  type: "fas",
373
373
  color: "header"
@@ -390,14 +390,14 @@ const be = /* @__PURE__ */ fe(fl, [["__scopeId", "data-v-4a459a74"]]), A = (B) =
390
390
  (t(!0), i(V, null, w(c, ({
391
391
  addonID: p,
392
392
  cardinality: q,
393
- name: j,
394
- price: G,
395
- quantityStrategy: H
393
+ name: X,
394
+ price: Z,
395
+ quantityStrategy: j
396
396
  }) => (t(), i("tr", { key: p }, [
397
397
  l("td", null, [
398
- l("b", null, n(j), 1),
398
+ l("b", null, n(X), 1),
399
399
  Dl,
400
- l("span", null, n(e($)(G, e(k))) + " " + n(e(He)(H)), 1)
400
+ l("span", null, n(e($)(Z, e(h))) + " " + n(e(je)(j)), 1)
401
401
  ]),
402
402
  l("td", wl, [
403
403
  q === 3 ? (t(), b(x, {
@@ -413,17 +413,17 @@ const be = /* @__PURE__ */ fe(fl, [["__scopeId", "data-v-4a459a74"]]), A = (B) =
413
413
  numeric: !0
414
414
  }, null, 8, ["modelValue", "onUpdate:modelValue"]))
415
415
  ]),
416
- l("td", Ll, [
417
- l("span", null, n(e($)(e(ae)(p, o, m), e(k))), 1)
416
+ l("td", Cl, [
417
+ l("span", null, n(e($)(e(ae)(p, o, m), e(h))), 1)
418
418
  ])
419
419
  ]))), 128))
420
420
  ]),
421
421
  l("tfoot", null, [
422
422
  l("tr", null, [
423
- Bl,
424
- l("td", Cl, [
423
+ Ll,
424
+ l("td", Ul, [
425
425
  l("u", null, [
426
- l("span", null, n(e($)(e(oe)(o, m), e(k))), 1)
426
+ l("span", null, n(e($)(e(oe)(o, m), e(h))), 1)
427
427
  ])
428
428
  ])
429
429
  ])
@@ -431,7 +431,7 @@ const be = /* @__PURE__ */ fe(fl, [["__scopeId", "data-v-4a459a74"]]), A = (B) =
431
431
  ])
432
432
  ]))), 128))
433
433
  ])) : u("", !0),
434
- e(ne) !== e(de).FullDayEvent && !e(T) ? (t(), i("div", Ul, [
434
+ e(ne) !== e(de).FullDayEvent && !e(T) ? (t(), i("div", Bl, [
435
435
  l("label", Fl, [
436
436
  l("span", null, n(e(a)("event.selectArrivalTime")), 1)
437
437
  ]),
@@ -443,16 +443,16 @@ const be = /* @__PURE__ */ fe(fl, [["__scopeId", "data-v-4a459a74"]]), A = (B) =
443
443
  type: "radio",
444
444
  name: "eventTimeTable",
445
445
  val: o.time,
446
- label: e(K)(o.time)
446
+ label: e(G)(o.time)
447
447
  }, null, 8, ["modelValue", "val", "label"])
448
448
  ]))), 128))
449
449
  ])
450
450
  ])) : u("", !0),
451
- e(Be) ? (t(), i("div", Rl, [
452
- l("label", Nl, [
451
+ e(Le) ? (t(), i("div", Rl, [
452
+ l("label", Sl, [
453
453
  l("span", null, n(e(a)("event.selectProducts")), 1)
454
454
  ]),
455
- l("table", Sl, [
455
+ l("table", Nl, [
456
456
  l("thead", null, [
457
457
  l("tr", null, [
458
458
  l("th", null, [
@@ -472,10 +472,10 @@ const be = /* @__PURE__ */ fe(fl, [["__scopeId", "data-v-4a459a74"]]), A = (B) =
472
472
  ]),
473
473
  Il,
474
474
  l("span", null, n(m), 1),
475
- zl,
476
- l("span", null, n(e($)(_, e(k))), 1)
475
+ Ql,
476
+ l("span", null, n(e($)(_, e(h))), 1)
477
477
  ]),
478
- l("td", Ql, [
478
+ l("td", Wl, [
479
479
  r(x, {
480
480
  modelValue: e(I)[o],
481
481
  "onUpdate:modelValue": (p) => e(I)[o] = p,
@@ -483,8 +483,8 @@ const be = /* @__PURE__ */ fe(fl, [["__scopeId", "data-v-4a459a74"]]), A = (B) =
483
483
  "min-value": 0
484
484
  }, null, 8, ["modelValue", "onUpdate:modelValue"])
485
485
  ]),
486
- l("td", Wl, [
487
- l("span", null, n(e($)(e(ae)(o), e(k))), 1)
486
+ l("td", Yl, [
487
+ l("span", null, n(e($)(e(ae)(o), e(h))), 1)
488
488
  ])
489
489
  ]))), 128))
490
490
  ])
@@ -496,39 +496,39 @@ const be = /* @__PURE__ */ fe(fl, [["__scopeId", "data-v-4a459a74"]]), A = (B) =
496
496
  l("span", null, n(e(a)("event.numberOfGuests")), 1),
497
497
  l("b", null, n(e(s)), 1)
498
498
  ]),
499
- e(T) ? (t(), i("li", Yl, [
499
+ e(T) ? (t(), i("li", zl, [
500
500
  l("span", null, n(e(a)("event.numberOfRooms")), 1),
501
501
  l("b", null, n(e(F)), 1)
502
502
  ])) : u("", !0),
503
- e(T) ? (t(), i("li", Jl, [
503
+ e(T) ? (t(), i("li", Hl, [
504
504
  l("span", null, n(e(a)("event.numberOfDays")), 1),
505
505
  l("b", null, n(e(f)), 1)
506
506
  ])) : u("", !0),
507
- e(T) ? (t(), i("li", Xl, [
507
+ e(T) ? (t(), i("li", Jl, [
508
508
  l("span", null, n(e(a)("booking.reservation.arrival")), 1),
509
509
  l("b", null, n(e(pe)(e(le))), 1)
510
510
  ])) : u("", !0),
511
- e(T) ? (t(), i("li", Zl, [
511
+ e(T) ? (t(), i("li", Kl, [
512
512
  l("span", null, n(e(a)("booking.reservation.departure")), 1),
513
513
  l("b", null, n(e(pe)(e(le), e(f))), 1)
514
514
  ])) : u("", !0),
515
- !e(T) && e(O) ? (t(), i("li", jl, [
515
+ !e(T) && e(O) ? (t(), i("li", Xl, [
516
516
  l("span", null, n(e(a)("event.startOfEvent")), 1),
517
- l("b", null, n(e(K)(e(O))), 1)
517
+ l("b", null, n(e(G)(e(O))), 1)
518
518
  ])) : u("", !0),
519
- !e(T) && e(ee) ? (t(), i("li", Gl, [
519
+ !e(T) && e(ee) ? (t(), i("li", Zl, [
520
520
  l("span", null, n(e(a)("event.lengthOfEvent")), 1),
521
- l("b", null, n(e(K)(e(ee))), 1)
521
+ l("b", null, n(e(G)(e(ee))), 1)
522
522
  ])) : u("", !0),
523
- !e(T) && e(te) > 0 ? (t(), i("li", Hl, [
523
+ !e(T) && e(te) > 0 ? (t(), i("li", jl, [
524
524
  l("span", null, n(e(a)("booking.availability.basePrice")), 1),
525
- l("b", null, n(e($)(e(te), e(k))), 1)
525
+ l("b", null, n(e($)(e(te), e(h))), 1)
526
526
  ])) : u("", !0)
527
527
  ]),
528
528
  expenses: g(() => [
529
- (t(!0), i(V, null, w(e(Q), ({ roomGroupID: o }, c) => (t(), i("li", { key: o }, [
529
+ (t(!0), i(V, null, w(e(W), ({ roomGroupID: o }, c) => (t(), i("li", { key: o }, [
530
530
  l("span", null, n(e(a)("booking.reservation.addons")) + " - " + n(e(a)("booking.reservation.room")) + " #" + n(c + 1), 1),
531
- l("b", null, n(e($)(e(oe)(o, c), e(k))), 1)
531
+ l("b", null, n(e($)(e(oe)(o, c), e(h))), 1)
532
532
  ]))), 128))
533
533
  ]),
534
534
  _: 2
@@ -549,14 +549,14 @@ const be = /* @__PURE__ */ fe(fl, [["__scopeId", "data-v-4a459a74"]]), A = (B) =
549
549
  }, 8, ["access-token", "styling"]));
550
550
  }
551
551
  });
552
- const xl = /* @__PURE__ */ fe(Kl, [["__scopeId", "data-v-b2eee97d"]]), en = ll(), ln = nl(), L = tl({ components: { Event: xl } });
553
- L.use(en);
554
- L.use(ln);
555
- L.use(vl);
556
- L.use(al);
557
- L.use(dl);
558
- L.use(ol, { bootstrap: !0 });
559
- L.mount("#konnectio-event-app");
552
+ const xl = /* @__PURE__ */ fe(Gl, [["__scopeId", "data-v-b2eee97d"]]), en = ll(), ln = nl(), C = tl({ components: { Event: xl } });
553
+ C.use(en);
554
+ C.use(ln);
555
+ C.use(vl);
556
+ C.use(al);
557
+ C.use(dl);
558
+ C.use(ol, { bootstrap: !0 });
559
+ C.mount("#konnectio-event-app");
560
560
  export {
561
- L as default
561
+ C as default
562
562
  };
package/dist/event.js.br CHANGED
Binary file
@@ -1 +1 @@
1
- "use strict";const e=require("./SelectField.vue_vue_type_style_index_0_lang-cef08480.cjs"),c=require("./NumberField.vue_vue_type_script_setup_true_lang-0c2b2bf3.cjs"),_=require("./ActionField-341a2fae.cjs");require("./_commonjsHelpers-6763f629.cjs");const y=o=>(e.pushScopeId("data-v-5d5827dc"),o=o(),e.popScopeId(),o),N=["innerHTML"],B={key:0,id:"fresh-booking-gift-card-validation-resume",class:"fresh-booking-panel"},m=y(()=>e.createBaseVNode("span",null,"Loading...",-1)),C=e.defineComponent({name:"GiftCardValidationLayout",__name:"GiftCardValidation",props:{accessToken:{},styling:{}},setup(o){const{t:a}=e.useI18n(),{voucher:l,isValid:u,amount:p,expirationDate:f,productName:V,isLoading:i}=e.storeToRefs(c.useApplyGiftCardStore()),{currency:g}=e.storeToRefs(e.useUtilityStore()),{apply:s}=c.useApplyGiftCardStore();return(d,t)=>(e.openBlock(),e.createBlock(e.Suspense,null,{default:e.withCtx(()=>[e.createVNode(e._sfc_main$1,{id:"fresh-booking-gift-card-validation-module","access-token":d.accessToken,type:"gift-card",styling:d.styling},{default:e.withCtx(()=>[e.createBaseVNode("form",{onSubmit:t[3]||(t[3]=e.withModifiers(n=>e.unref(s)(),["prevent"]))},[e.createBaseVNode("h4",null,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(a)("giftCardValidation.title")),1)]),e.createBaseVNode("p",{innerHTML:e.unref(a)("giftCardValidation.description")},null,8,N),e.createVNode(_.ActionField,{modelValue:e.unref(l),"onUpdate:modelValue":t[0]||(t[0]=n=>e.isRef(l)?l.value=n:null),icon:"gift-card",label:e.unref(a)("booking.reservation.giftCardCode"),buttonLabel:e.unref(a)("giftCardValidation.submitButton"),placeholder:"XXXXXXXX","is-loading":e.unref(i),"onUpdate:isLoading":t[1]||(t[1]=n=>e.isRef(i)?i.value=n:null),onAction:t[2]||(t[2]=n=>e.unref(s)())},null,8,["modelValue","label","buttonLabel","is-loading"]),!e.unref(i)&&e.unref(u)?(e.openBlock(),e.createElementBlock("table",B,[e.createBaseVNode("thead",null,[e.createBaseVNode("tr",null,[e.createBaseVNode("th",null,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(a)("giftCardValidation.giftCard")),1),e.createVNode(e.Icon,{icon:"gift-card",type:"fas",color:"header"})]),e.createBaseVNode("th",null,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(a)("giftCardValidation.balance")),1),e.createVNode(e.Icon,{icon:"money-bill",type:"fas",color:"header"})]),e.createBaseVNode("th",null,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(a)("giftCardValidation.expirationDate")),1),e.createVNode(e.Icon,{icon:"timer",type:"fas",color:"header"})])])]),e.createBaseVNode("tbody",null,[e.createBaseVNode("tr",null,[e.createBaseVNode("td",null,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(V)),1)]),e.createBaseVNode("td",null,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(e.showPrice)(e.unref(p),e.unref(g))),1)]),e.createBaseVNode("td",null,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(e.showDate)(e.unref(f))),1)])])])])):e.createCommentVNode("",!0)],32)]),_:1},8,["access-token","styling"])]),fallback:e.withCtx(()=>[m]),_:1}))}});const b=e._export_sfc(C,[["__scopeId","data-v-5d5827dc"]]),r=e.createApp({components:{GiftCardValidation:b}}),v=e.createPinia();r.use(v);r.use(e.instance);r.mount("#konnectio-gift-card-validation-app");module.exports=r;
1
+ "use strict";const e=require("./SelectField.vue_vue_type_style_index_0_lang-aa9c0c1a.cjs"),g=require("./ActionField-487e86aa.cjs");require("./_commonjsHelpers-6763f629.cjs");require("./NumberField.vue_vue_type_script_setup_true_lang-1c0634a0.cjs");const _=o=>(e.pushScopeId("data-v-5d5827dc"),o=o(),e.popScopeId(),o),y=["innerHTML"],N={key:0,id:"fresh-booking-gift-card-validation-resume",class:"fresh-booking-panel"},B=_(()=>e.createBaseVNode("span",null,"Loading...",-1)),m=e.defineComponent({name:"GiftCardValidationLayout",__name:"GiftCardValidation",props:{accessToken:{},styling:{}},setup(o){const{t:a}=e.useI18n(),{voucher:l,isValid:c,amount:u,expirationDate:p,productName:f,isLoading:i}=e.storeToRefs(e.useApplyGiftCardStore()),{currency:V}=e.storeToRefs(e.useUtilityStore()),{apply:s}=e.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,y),e.createVNode(g.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(c)?(e.openBlock(),e.createElementBlock("table",N,[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(f)),1)]),e.createBaseVNode("td",null,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(e.showPrice)(e.unref(u),e.unref(V))),1)]),e.createBaseVNode("td",null,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(e.showDate)(e.unref(p))),1)])])])])):e.createCommentVNode("",!0)],32)]),_:1},8,["access-token","styling"])]),fallback:e.withCtx(()=>[B]),_:1}))}});const C=e._export_sfc(m,[["__scopeId","data-v-5d5827dc"]]),r=e.createApp({components:{GiftCardValidation:C}}),b=e.createPinia();r.use(b);r.use(e.instance);r.mount("#konnectio-gift-card-validation-app");module.exports=r;