@konnectio/core 4.0.56-rc36 → 4.0.56-rc37

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 (46) hide show
  1. package/dist/{ActionField-Ct6NhfWq.js → ActionField-BhYhC0aQ.js} +2 -2
  2. package/dist/ActionField-BhYhC0aQ.js.br +0 -0
  3. package/dist/{AvailabilitySkeleton-DOhrMVl4.js → AvailabilitySkeleton-CXRs2yLp.js} +4 -4
  4. package/dist/AvailabilitySkeleton-CXRs2yLp.js.br +0 -0
  5. package/dist/{AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-0yAgK-cr.js → AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-BZN97s2s.js} +2657 -2655
  6. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-BZN97s2s.js.br +0 -0
  7. package/dist/{CheckoutWindow-BVIOQbbL.js → CheckoutWindow-DPJ2GFqg.js} +2 -2
  8. package/dist/CheckoutWindow-DPJ2GFqg.js.br +0 -0
  9. package/dist/{ErrorMessage-DTSuSB8R.js → ErrorMessage-4DJnsYbI.js} +2 -2
  10. package/dist/ErrorMessage-4DJnsYbI.js.br +0 -0
  11. package/dist/{EventAvailabilityForm-DVcDsdr8.js → EventAvailabilityForm-rUB2CJ24.js} +26 -26
  12. package/dist/EventAvailabilityForm-rUB2CJ24.js.br +0 -0
  13. package/dist/{Field-IsLH1tNU.js → Field-Dr6RF4JV.js} +2 -2
  14. package/dist/Field-Dr6RF4JV.js.br +0 -0
  15. package/dist/{Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-BKo1p702.js → Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-C8tvgzaO.js} +18 -18
  16. package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-C8tvgzaO.js.br +0 -0
  17. package/dist/{TermsOfService-BORqI07-.js → TermsOfService-B94i1jM5.js} +3 -3
  18. package/dist/TermsOfService-B94i1jM5.js.br +0 -0
  19. package/dist/availability.js +4 -4
  20. package/dist/availability.js.br +0 -0
  21. package/dist/event.js +121 -121
  22. package/dist/event.js.br +0 -0
  23. package/dist/gift-card-validation.js +20 -20
  24. package/dist/gift-card-validation.js.br +0 -0
  25. package/dist/gift-card.js +70 -70
  26. package/dist/gift-card.js.br +0 -0
  27. package/dist/hotel.js +180 -180
  28. package/dist/hotel.js.br +0 -0
  29. package/dist/{masonry.plugin-gY-oSFpV.js → masonry.plugin-DPkIO3nk.js} +24 -24
  30. package/dist/masonry.plugin-DPkIO3nk.js.br +0 -0
  31. package/dist/navigation.js +4 -4
  32. package/dist/polyfill.js +111 -99
  33. package/dist/polyfill.js.br +0 -0
  34. package/dist/style.css +1 -1
  35. package/dist/style.css.br +0 -0
  36. package/package.json +11 -11
  37. package/dist/ActionField-Ct6NhfWq.js.br +0 -0
  38. package/dist/AvailabilitySkeleton-DOhrMVl4.js.br +0 -0
  39. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-0yAgK-cr.js.br +0 -0
  40. package/dist/CheckoutWindow-BVIOQbbL.js.br +0 -0
  41. package/dist/ErrorMessage-DTSuSB8R.js.br +0 -0
  42. package/dist/EventAvailabilityForm-DVcDsdr8.js.br +0 -0
  43. package/dist/Field-IsLH1tNU.js.br +0 -0
  44. package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-BKo1p702.js.br +0 -0
  45. package/dist/TermsOfService-BORqI07-.js.br +0 -0
  46. package/dist/masonry.plugin-gY-oSFpV.js.br +0 -0
package/dist/event.js CHANGED
@@ -1,29 +1,29 @@
1
- import { d as Y, r as Me, g as le, o as s, a as T, w as p, z as ne, u as e, f as t, e as f, c as m, b as h, t as o, A as Re, B as Ue, y as q, F as B, s as M, h as Fe, q as ze, S as qe, C as ge, i as he, p as Ge, j as He, k as je } from "./_commonjsHelpers-UWZO_9XV.js";
2
- import { u as se, n as Ye, s as H, b as oe, C as me, K as Ze, _ as ae, c as Ve, A as pe, M as Je, o as De, D as ke, N as ve, B as R, d as Ke, O as ye, P as Qe, T as de, e as We, f as Xe, g as xe, h as et, i as tt, J as nt, m as ot } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-BKo1p702.js";
3
- import { B as lt, R as st, L as Pe, S as at, M as it, C as rt, T as ut, V as dt, G as ct } from "./masonry.plugin-gY-oSFpV.js";
4
- import { u as j, E as mt } from "./EventAvailabilityForm-DVcDsdr8.js";
5
- import { t as G, e as pt, g as _e, m as $e, a as we, b as Ee, c as vt, d as Te } from "./AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-0yAgK-cr.js";
6
- import { a as ft, P as bt, C as gt } from "./CheckoutWindow-BVIOQbbL.js";
1
+ import { d as Y, r as Me, g as le, o as a, a as T, w as p, z as ne, u as e, f as t, e as f, c as m, b as h, t as o, A as Re, B as Ue, y as q, F as B, s as M, h as Fe, q as ze, S as qe, C as ge, i as he, p as Ge, j as He, k as je } from "./_commonjsHelpers-UWZO_9XV.js";
2
+ import { u as ae, n as Ye, s as H, b as oe, C as me, K as Ze, _ as se, c as Ve, A as pe, M as Je, o as De, D as ke, N as ve, B as R, d as Ke, O as ye, P as Qe, T as ce, e as We, f as Xe, g as xe, h as et, i as tt, J as nt, m as ot } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-C8tvgzaO.js";
3
+ import { B as lt, R as at, L as Pe, S as st, M as it, C as rt, T as ut, V as ct, G as dt } from "./masonry.plugin-DPkIO3nk.js";
4
+ import { u as j, E as mt } from "./EventAvailabilityForm-rUB2CJ24.js";
5
+ import { t as G, e as pt, g as _e, m as $e, a as we, b as Ee, c as vt, d as Te } from "./AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-BZN97s2s.js";
6
+ import { a as ft, P as bt, C as gt } from "./CheckoutWindow-DPJ2GFqg.js";
7
7
  import "./navigation.js";
8
8
  (function() {
9
9
  try {
10
- var d = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, n = new Error().stack;
11
- n && (d._sentryDebugIds = d._sentryDebugIds || {}, d._sentryDebugIds[n] = "4c110781-33e3-4b2f-9859-14f672b3e418", d._sentryDebugIdIdentifier = "sentry-dbid-4c110781-33e3-4b2f-9859-14f672b3e418");
10
+ var c = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, n = new Error().stack;
11
+ n && (c._sentryDebugIds = c._sentryDebugIds || {}, c._sentryDebugIds[n] = "094efb64-18c5-472e-ba82-daa9069b5653", c._sentryDebugIdIdentifier = "sentry-dbid-094efb64-18c5-472e-ba82-daa9069b5653");
12
12
  } catch {
13
13
  }
14
14
  })();
15
- function ht(d, n) {
16
- const i = G(d), c = G(n), l = i.getTime() - c.getTime();
15
+ function ht(c, n) {
16
+ const i = G(c), d = G(n), l = i.getTime() - d.getTime();
17
17
  return l < 0 ? -1 : l > 0 ? 1 : l;
18
18
  }
19
- function kt(d) {
19
+ function kt(c) {
20
20
  return (n) => {
21
- const c = (d ? Math[d] : Math.trunc)(n);
22
- return c === 0 ? 0 : c;
21
+ const d = (c ? Math[c] : Math.trunc)(n);
22
+ return d === 0 ? 0 : d;
23
23
  };
24
24
  }
25
- function yt(d, n, i) {
26
- const c = vt(), l = i?.locale ?? c.locale ?? pt, _ = ht(d, n);
25
+ function yt(c, n, i) {
26
+ const d = vt(), l = i?.locale ?? d.locale ?? pt, _ = ht(c, n);
27
27
  if (isNaN(_))
28
28
  throw new RangeError("Invalid time value");
29
29
  const b = Object.assign({}, i, {
@@ -31,22 +31,22 @@ function yt(d, n, i) {
31
31
  comparison: _
32
32
  });
33
33
  let $, u;
34
- _ > 0 ? ($ = G(n), u = G(d)) : ($ = G(d), u = G(n));
34
+ _ > 0 ? ($ = G(n), u = G(c)) : ($ = G(c), u = G(n));
35
35
  const v = kt(i?.roundingMethod ?? "round"), k = u.getTime() - $.getTime(), y = k / Te, C = _e(u) - _e($), D = (k - C) / Te, P = i?.unit;
36
- let a;
37
- if (P ? a = P : y < 1 ? a = "second" : y < 60 ? a = "minute" : y < $e ? a = "hour" : D < we ? a = "day" : D < Ee ? a = "month" : a = "year", a === "second") {
36
+ let s;
37
+ if (P ? s = P : y < 1 ? s = "second" : y < 60 ? s = "minute" : y < $e ? s = "hour" : D < we ? s = "day" : D < Ee ? s = "month" : s = "year", s === "second") {
38
38
  const g = v(k / 1e3);
39
39
  return l.formatDistance("xSeconds", g, b);
40
- } else if (a === "minute") {
40
+ } else if (s === "minute") {
41
41
  const g = v(y);
42
42
  return l.formatDistance("xMinutes", g, b);
43
- } else if (a === "hour") {
43
+ } else if (s === "hour") {
44
44
  const g = v(y / 60);
45
45
  return l.formatDistance("xHours", g, b);
46
- } else if (a === "day") {
46
+ } else if (s === "day") {
47
47
  const g = v(D / $e);
48
48
  return l.formatDistance("xDays", g, b);
49
- } else if (a === "month") {
49
+ } else if (s === "month") {
50
50
  const g = v(D / we);
51
51
  return g === 12 && P !== "month" ? l.formatDistance("xYears", 1, b) : l.formatDistance("xMonths", g, b);
52
52
  } else {
@@ -76,8 +76,8 @@ const _t = { class: "konnectio-event-listing-action" }, $t = { class: "konnectio
76
76
  trackingEnabled: { type: Boolean },
77
77
  callback: {}
78
78
  },
79
- setup(d) {
80
- const { t: n } = se(), i = d, { display: c } = Ye(), {
79
+ setup(c) {
80
+ const { t: n } = ae(), i = c, { display: d } = Ye(), {
81
81
  maxNumberOfPeople: l,
82
82
  numberOfPeople: _,
83
83
  eventId: b,
@@ -87,27 +87,27 @@ const _t = { class: "konnectio-event-listing-action" }, $t = { class: "konnectio
87
87
  getEventAvailability: v,
88
88
  isEventListingLoading: k
89
89
  } = j(), y = Me(0), C = le(() => k(i.listingId)), D = () => {
90
- y.value > 0 ? (b.value = i.listingId, _.value = y.value, u(i.callback)) : c({
90
+ y.value > 0 ? (b.value = i.listingId, _.value = y.value, u(i.callback)) : d({
91
91
  type: "error",
92
92
  message: n("alert.error.selectPeople")
93
93
  });
94
94
  }, P = () => {
95
- y.value > 0 ? (b.value = i.listingId, $.value = i.tableGroupId, _.value = y.value, v(i.callback)) : c({
95
+ y.value > 0 ? (b.value = i.listingId, $.value = i.tableGroupId, _.value = y.value, v(i.callback)) : d({
96
96
  type: "error",
97
97
  message: n("alert.error.selectPeople")
98
98
  });
99
99
  };
100
- return (a, g) => (s(), T(lt, {
101
- "listing-id": a.listingId,
102
- gallery: a.gallery,
103
- name: a.name,
104
- description: a.description,
105
- "prices-from": a.fromPrice,
106
- "to-date": a.toDate,
100
+ return (s, g) => (a(), T(lt, {
101
+ "listing-id": s.listingId,
102
+ gallery: s.gallery,
103
+ name: s.name,
104
+ description: s.description,
105
+ "prices-from": s.fromPrice,
106
+ "to-date": s.toDate,
107
107
  layout: e(Ze).Event
108
108
  }, {
109
109
  description: p(() => [
110
- ne(a.$slots, "description", { maxNumberOfPeople: e(l) }, void 0, !0)
110
+ ne(s.$slots, "description", { maxNumberOfPeople: e(l) }, void 0, !0)
111
111
  ]),
112
112
  action: p(() => [
113
113
  t("div", _t, [
@@ -118,16 +118,16 @@ const _t = { class: "konnectio-event-listing-action" }, $t = { class: "konnectio
118
118
  icon: "users",
119
119
  "icon-type": "fas",
120
120
  "icon-placement": "label",
121
- description: a.maxGuests <= 20 ? `Available for: 1-${a.maxGuests} guests` : void 0,
122
- "min-value": a.type === "event" ? 0 : a.minimumPersonCount,
123
- "max-value": a.type === "event" ? a.maxOnlineReservationLimit || 1 / 0 : e(l)
121
+ description: s.maxGuests <= 20 ? `Available for: 1-${s.maxGuests} guests` : void 0,
122
+ "min-value": s.type === "event" ? 0 : s.minimumPersonCount,
123
+ "max-value": s.type === "event" ? s.maxOnlineReservationLimit || 1 / 0 : e(l)
124
124
  }, null, 8, ["modelValue", "label", "description", "min-value", "max-value"]),
125
125
  t("div", $t, [
126
126
  f(me, {
127
- label: a.soldOut ? e(n)("event.soldOut") : e(n)("event.bookNowButton"),
128
- disabled: a.soldOut,
127
+ label: s.soldOut ? e(n)("event.soldOut") : e(n)("event.bookNowButton"),
128
+ disabled: s.soldOut,
129
129
  "is-loading": C.value,
130
- onClickEvent: g[1] || (g[1] = (O) => a.type === "event" ? P() : D())
130
+ onClickEvent: g[1] || (g[1] = (O) => s.type === "event" ? P() : D())
131
131
  }, null, 8, ["label", "disabled", "is-loading"])
132
132
  ])
133
133
  ])
@@ -135,7 +135,7 @@ const _t = { class: "konnectio-event-listing-action" }, $t = { class: "konnectio
135
135
  _: 3
136
136
  }, 8, ["listing-id", "gallery", "name", "description", "prices-from", "to-date", "layout"]));
137
137
  }
138
- }), Ae = /* @__PURE__ */ ae(wt, [["__scopeId", "data-v-8e796505"]]), Et = ["innerHTML"], Tt = { class: "konnectio-event-listing-information-new" };
138
+ }), Ae = /* @__PURE__ */ se(wt, [["__scopeId", "data-v-8e796505"]]), Et = ["innerHTML"], Tt = { class: "konnectio-event-listing-information-new" };
139
139
  const Vt = { class: "konnectio-pill-button" }, Dt = { class: "konnectio-pill-button" }, Pt = /* @__PURE__ */ Y({
140
140
  __name: "Event",
141
141
  props: {
@@ -157,15 +157,15 @@ const Vt = { class: "konnectio-pill-button" }, Dt = { class: "konnectio-pill-but
157
157
  trackingEnabled: { type: Boolean },
158
158
  callback: {}
159
159
  },
160
- setup(d) {
161
- const n = d, { t: i } = se(), c = le(() => {
160
+ setup(c) {
161
+ const n = c, { t: i } = ae(), d = le(() => {
162
162
  const l = n.length.split(":");
163
163
  return console.log(l), yt(
164
164
  new Date(2e3, 0, 1, Number(l[0]), Number(l[1]), 0),
165
165
  new Date(2e3, 0, 1, 0, 0, 0)
166
166
  );
167
167
  });
168
- return (l, _) => (s(), T(Ae, {
168
+ return (l, _) => (a(), T(Ae, {
169
169
  "listing-id": l.listingId,
170
170
  name: l.name,
171
171
  description: l.description,
@@ -178,7 +178,7 @@ const Vt = { class: "konnectio-pill-button" }, Dt = { class: "konnectio-pill-but
178
178
  callback: l.callback
179
179
  }, {
180
180
  description: p(() => [
181
- l.description ? (s(), m("p", {
181
+ l.description ? (a(), m("p", {
182
182
  key: 0,
183
183
  innerHTML: e(Ve)(l.description)
184
184
  }, null, 8, Et)) : h("", !0),
@@ -192,7 +192,7 @@ const Vt = { class: "konnectio-pill-button" }, Dt = { class: "konnectio-pill-but
192
192
  }),
193
193
  t("span", null, o(e(i)("event.lengthOfEvent")), 1)
194
194
  ]),
195
- t("span", null, o(c.value), 1)
195
+ t("span", null, o(d.value), 1)
196
196
  ]),
197
197
  t("li", Dt, [
198
198
  t("div", null, [
@@ -209,7 +209,7 @@ const Vt = { class: "konnectio-pill-button" }, Dt = { class: "konnectio-pill-but
209
209
  _: 1
210
210
  }, 8, ["listing-id", "name", "description", "gallery", "prices-from", "table-group-id", "max-guests", "to-date", "callback"]));
211
211
  }
212
- }), At = /* @__PURE__ */ ae(Pt, [["__scopeId", "data-v-148bf11e"]]), Ct = ["innerHTML"], Ot = /* @__PURE__ */ Y({
212
+ }), At = /* @__PURE__ */ se(Pt, [["__scopeId", "data-v-148bf11e"]]), Ct = ["innerHTML"], Ot = /* @__PURE__ */ Y({
213
213
  __name: "Template",
214
214
  props: {
215
215
  name: {},
@@ -225,8 +225,8 @@ const Vt = { class: "konnectio-pill-button" }, Dt = { class: "konnectio-pill-but
225
225
  trackingEnabled: { type: Boolean },
226
226
  callback: {}
227
227
  },
228
- setup(d) {
229
- const n = d, i = le(() => {
228
+ setup(c) {
229
+ const n = c, i = le(() => {
230
230
  if (n.image)
231
231
  return [{
232
232
  large: n.image,
@@ -235,34 +235,34 @@ const Vt = { class: "konnectio-pill-button" }, Dt = { class: "konnectio-pill-but
235
235
  url: n.image
236
236
  }];
237
237
  });
238
- return (c, l) => (s(), T(Ae, {
239
- "listing-id": c.listingId,
238
+ return (d, l) => (a(), T(Ae, {
239
+ "listing-id": d.listingId,
240
240
  gallery: i.value,
241
- name: c.name,
242
- description: c.description,
243
- "prices-from": c.fromPrice,
244
- "to-date": c.toDate,
241
+ name: d.name,
242
+ description: d.description,
243
+ "prices-from": d.fromPrice,
244
+ "to-date": d.toDate,
245
245
  type: "template",
246
- callback: c.callback
246
+ callback: d.callback
247
247
  }, {
248
248
  description: p(() => [
249
- c.description ? (s(), m("p", {
249
+ d.description ? (a(), m("p", {
250
250
  key: 0,
251
- innerHTML: e(Ve)(c.description)
251
+ innerHTML: e(Ve)(d.description)
252
252
  }, null, 8, Ct)) : h("", !0)
253
253
  ]),
254
254
  _: 1
255
255
  }, 8, ["listing-id", "gallery", "name", "description", "prices-from", "to-date", "callback"]));
256
256
  }
257
- }), Bt = { key: 0 }, St = { key: 1 }, Lt = { key: 2 }, It = { key: 3 }, Nt = { key: 4 }, Mt = { key: 5 }, Rt = { key: 0 }, ce = /* @__PURE__ */ Y({
257
+ }), Bt = { key: 0 }, St = { key: 1 }, Lt = { key: 2 }, It = { key: 3 }, Nt = { key: 4 }, Mt = { key: 5 }, Rt = { key: 0 }, de = /* @__PURE__ */ Y({
258
258
  __name: "EventReservationForm",
259
259
  props: {
260
260
  showGiftCard: { type: Boolean, default: !1 },
261
261
  showTermsNotice: { type: Boolean, default: !1 }
262
262
  },
263
- setup(d) {
264
- const { t: n } = se(), i = Re(), {
265
- areListingsAvailable: c,
263
+ setup(c) {
264
+ const { t: n } = ae(), i = Re(), {
265
+ areListingsAvailable: d,
266
266
  arrivalTime: l,
267
267
  numberOfPeople: _,
268
268
  numberOfRooms: b,
@@ -274,20 +274,20 @@ const Vt = { class: "konnectio-pill-button" }, Dt = { class: "konnectio-pill-but
274
274
  getTemplateData: C,
275
275
  basePrice: D,
276
276
  totalPrice: P,
277
- weekendFee: a,
277
+ weekendFee: s,
278
278
  roomUpgrade: g,
279
279
  discountCode: O
280
280
  } = H(j()), { totalAddonPrice: W, validateDiscountCode: ie } = j(), { currency: X } = H(De());
281
- return (S, x) => (s(), T(st, {
281
+ return (S, x) => (a(), T(at, {
282
282
  "discount-code": e(O),
283
283
  "onUpdate:discountCode": x[0] || (x[0] = (F) => M(O) ? O.value = F : null),
284
284
  "validate-discount-code": e(ie),
285
285
  "show-gift-card": S.showGiftCard,
286
286
  "show-terms-notice": S.showTermsNotice,
287
- "is-sidebar-loading": !e(c),
287
+ "is-sidebar-loading": !e(d),
288
288
  "base-price": e(D),
289
289
  "total-price": e(P),
290
- "weekend-fee": e(a),
290
+ "weekend-fee": e(s),
291
291
  "room-upgrade": e(g),
292
292
  notice: e(n)("hotel.reservationNotice")
293
293
  }, Ue({
@@ -295,11 +295,11 @@ const Vt = { class: "konnectio-pill-button" }, Dt = { class: "konnectio-pill-but
295
295
  ne(S.$slots, "form")
296
296
  ]),
297
297
  "reservation-summary": p(() => [
298
- e(u) ? (s(), m("li", Bt, [
298
+ e(u) ? (a(), m("li", Bt, [
299
299
  t("span", null, o(e(n)("booking.reservation.arrival")), 1),
300
300
  t("b", null, o(e(ke)(e(k))), 1)
301
301
  ])) : h("", !0),
302
- e(u) ? (s(), m("li", St, [
302
+ e(u) ? (a(), m("li", St, [
303
303
  t("span", null, o(e(n)("booking.reservation.departure")), 1),
304
304
  t("b", null, o(e(ke)(e(k), e($))), 1)
305
305
  ])) : h("", !0),
@@ -307,29 +307,29 @@ const Vt = { class: "konnectio-pill-button" }, Dt = { class: "konnectio-pill-but
307
307
  t("span", null, o(e(n)("event.numberOfGuests")), 1),
308
308
  t("b", null, o(e(_)), 1)
309
309
  ]),
310
- e(u) ? (s(), m("li", Lt, [
310
+ e(u) ? (a(), m("li", Lt, [
311
311
  t("span", null, o(e(n)("event.numberOfRooms")), 1),
312
312
  t("b", null, o(e(b)), 1)
313
313
  ])) : h("", !0),
314
- e(u) ? (s(), m("li", It, [
314
+ e(u) ? (a(), m("li", It, [
315
315
  t("span", null, o(e(n)("event.numberOfDays")), 1),
316
316
  t("b", null, o(e($)), 1)
317
317
  ])) : h("", !0),
318
- !e(u) && e(l) ? (s(), m("li", Nt, [
318
+ !e(u) && e(l) ? (a(), m("li", Nt, [
319
319
  t("span", null, o(e(n)("event.startOfEvent")), 1),
320
320
  t("b", null, o(e(ve)(e(l))), 1)
321
321
  ])) : h("", !0),
322
- !e(u) && e(v) ? (s(), m("li", Mt, [
322
+ !e(u) && e(v) ? (a(), m("li", Mt, [
323
323
  t("span", null, o(e(n)("event.lengthOfEvent")), 1),
324
324
  t("b", null, o(e(ve)(e(v))), 1)
325
325
  ])) : h("", !0)
326
326
  ]),
327
327
  "price-summary": p(() => [
328
- !e(u) && e(y) > 0 ? (s(), m("li", Rt, [
328
+ !e(u) && e(y) > 0 ? (a(), m("li", Rt, [
329
329
  t("span", null, o(e(n)("booking.availability.basePrice")), 1),
330
330
  t("b", null, o(e(R)(e(y), e(X))), 1)
331
331
  ])) : h("", !0),
332
- e(C) ? (s(!0), m(B, { key: 1 }, q(e(C), ({ roomGroupId: F }, ee) => (s(), m("li", { key: F }, [
332
+ e(C) ? (a(!0), m(B, { key: 1 }, q(e(C), ({ roomGroupId: F }, ee) => (a(), m("li", { key: F }, [
333
333
  t("span", null, o(e(n)("booking.reservation.addons")) + " - " + o(e(n)("booking.reservation.room")) + " #" + o(ee + 1), 1),
334
334
  t("b", null, o(e(R)(e(W)(F, ee), e(X))), 1)
335
335
  ]))), 128)) : h("", !0)
@@ -350,27 +350,27 @@ const Vt = { class: "konnectio-pill-button" }, Dt = { class: "konnectio-pill-but
350
350
  }
351
351
  }), Ut = { class: "event-skeleton" }, Ft = { class: "event-skeleton-content" }, zt = { class: "event-skeleton-sidebar" }, qt = /* @__PURE__ */ Y({
352
352
  __name: "EventSkeleton",
353
- setup(d) {
354
- return (n, i) => (s(), m("div", Ut, [
353
+ setup(c) {
354
+ return (n, i) => (a(), m("div", Ut, [
355
355
  t("div", Ft, [
356
356
  f(Pe)
357
357
  ]),
358
358
  t("div", zt, [
359
359
  h("", !0),
360
- f(at)
360
+ f(st)
361
361
  ])
362
362
  ]));
363
363
  }
364
- }), Gt = /* @__PURE__ */ ae(qt, [["__scopeId", "data-v-3e15c4e3"]]), U = (d) => (Ge("data-v-c057ed89"), d = d(), He(), d), Ht = {
364
+ }), Gt = /* @__PURE__ */ se(qt, [["__scopeId", "data-v-3e15c4e3"]]), U = (c) => (Ge("data-v-f6598228"), c = c(), He(), c), Ht = {
365
365
  key: 0,
366
366
  id: "fresh-booking-event-overview"
367
367
  };
368
368
  const jt = { class: "fresh-booking-event-listings" };
369
- const Yt = { class: "fresh-booking-event-listings" }, Zt = { class: "fresh-booking-panel" }, Jt = {
369
+ const Yt = { class: "fresh-booking-event-listings" }, Zt = { class: "konnectio-panel" }, Jt = {
370
370
  key: 1,
371
371
  id: "fresh-booking-event-addons"
372
- }, Kt = { class: "fresh-booking-table with-lines" }, Qt = /* @__PURE__ */ U(() => /* @__PURE__ */ t("th", { class: "fresh-booking-event-addons-input" }, null, -1)), Wt = { class: "fresh-booking-event-addons-price" }, Xt = /* @__PURE__ */ U(() => /* @__PURE__ */ t("br", null, null, -1)), xt = { class: "fresh-booking-event-addons-input" }, en = { class: "fresh-booking-event-addons-price" }, tn = /* @__PURE__ */ U(() => /* @__PURE__ */ t("td", null, null, -1)), nn = /* @__PURE__ */ U(() => /* @__PURE__ */ t("td", null, null, -1)), on = { class: "fresh-booking-event-addons-price" }, ln = { key: 2 };
373
- const sn = { key: 3 }, an = { class: "fresh-booking-label required" }, rn = { class: "fresh-booking-table with-lines" }, un = /* @__PURE__ */ U(() => /* @__PURE__ */ t("th", { class: "fresh-booking-event-addons-input" }, null, -1)), dn = { class: "fresh-booking-event-addons-price" }, cn = /* @__PURE__ */ U(() => /* @__PURE__ */ t("br", null, null, -1)), mn = /* @__PURE__ */ U(() => /* @__PURE__ */ t("br", null, null, -1)), pn = { class: "fresh-booking-event-addons-input" }, vn = { class: "fresh-booking-event-addons-price" }, fn = ["onClick"], bn = { class: "fresh-booking-panel" }, gn = ["onClick"], hn = /* @__PURE__ */ Y({
372
+ }, Kt = { class: "konnectio-table with-lines" }, Qt = /* @__PURE__ */ U(() => /* @__PURE__ */ t("th", { class: "fresh-booking-event-addons-input" }, null, -1)), Wt = { class: "fresh-booking-event-addons-price" }, Xt = /* @__PURE__ */ U(() => /* @__PURE__ */ t("br", null, null, -1)), xt = { class: "fresh-booking-event-addons-input" }, en = { class: "fresh-booking-event-addons-price" }, tn = /* @__PURE__ */ U(() => /* @__PURE__ */ t("td", null, null, -1)), nn = /* @__PURE__ */ U(() => /* @__PURE__ */ t("td", null, null, -1)), on = { class: "fresh-booking-event-addons-price" }, ln = { key: 2 };
373
+ const an = { key: 3 }, sn = { class: "konnectio-label required" }, rn = { class: "konnectio-table with-lines" }, un = /* @__PURE__ */ U(() => /* @__PURE__ */ t("th", { class: "fresh-booking-event-addons-input" }, null, -1)), cn = { class: "fresh-booking-event-addons-price" }, dn = /* @__PURE__ */ U(() => /* @__PURE__ */ t("br", null, null, -1)), mn = /* @__PURE__ */ U(() => /* @__PURE__ */ t("br", null, null, -1)), pn = { class: "fresh-booking-event-addons-input" }, vn = { class: "fresh-booking-event-addons-price" }, fn = ["onClick"], bn = { class: "konnectio-panel" }, gn = ["onClick"], hn = /* @__PURE__ */ Y({
374
374
  name: "EventLayout",
375
375
  __name: "Event",
376
376
  props: {
@@ -378,10 +378,10 @@ const sn = { key: 3 }, an = { class: "fresh-booking-label required" }, rn = { cl
378
378
  onlyShow: { default: "everything" },
379
379
  styling: {}
380
380
  },
381
- setup(d) {
382
- const { t: n } = se(), {
381
+ setup(c) {
382
+ const { t: n } = ae(), {
383
383
  addons: i,
384
- products: c,
384
+ products: d,
385
385
  numberOfDays: l,
386
386
  name: _,
387
387
  phone: b,
@@ -393,7 +393,7 @@ const sn = { key: 3 }, an = { class: "fresh-booking-label required" }, rn = { cl
393
393
  getEvents: C,
394
394
  getTemplates: D,
395
395
  getEventData: P,
396
- getTemplateData: a,
396
+ getTemplateData: s,
397
397
  getEventTableData: g,
398
398
  hasProducts: O,
399
399
  eventRateType: W,
@@ -418,9 +418,9 @@ const sn = { key: 3 }, an = { class: "fresh-booking-label required" }, rn = { cl
418
418
  });
419
419
  }), L;
420
420
  });
421
- return Fe(() => Ce()), ze(ee, () => Oe()), (L, w) => (s(), T(Xe, { styling: L.styling }, {
421
+ return Fe(() => Ce()), ze(ee, () => Oe()), (L, w) => (a(), T(Xe, { styling: L.styling }, {
422
422
  default: p(() => [
423
- (s(), T(qe, null, {
423
+ (a(), T(qe, null, {
424
424
  default: p(() => [
425
425
  f(We, {
426
426
  id: "konnectio-event-module",
@@ -430,16 +430,16 @@ const sn = { key: 3 }, an = { class: "fresh-booking-label required" }, rn = { cl
430
430
  default: p(() => [
431
431
  f(it, null, {
432
432
  availability: p(({ next: z }) => [
433
- f(ce, null, {
433
+ f(de, null, {
434
434
  sidebar: p(() => [
435
435
  f(mt, { redirection: !1 })
436
436
  ]),
437
437
  form: p(() => [
438
- e(x) && e(ie) ? (s(), m("div", Ht, [
439
- e(k) && L.onlyShow !== "templates" ? (s(), m(B, { key: 0 }, [
438
+ e(x) && e(ie) ? (a(), m("div", Ht, [
439
+ e(k) && L.onlyShow !== "templates" ? (a(), m(B, { key: 0 }, [
440
440
  h("", !0),
441
441
  t("ul", jt, [
442
- (s(!0), m(B, null, q(e(C), ({
442
+ (a(!0), m(B, null, q(e(C), ({
443
443
  id: A,
444
444
  days: r,
445
445
  name: I,
@@ -453,7 +453,7 @@ const sn = { key: 3 }, an = { class: "fresh-booking-label required" }, rn = { cl
453
453
  length: Q,
454
454
  images: Ie,
455
455
  maxOnlineReservationLimit: Ne
456
- }) => (s(), T(At, {
456
+ }) => (a(), T(At, {
457
457
  key: A,
458
458
  type: "event",
459
459
  "listing-id": A,
@@ -473,10 +473,10 @@ const sn = { key: 3 }, an = { class: "fresh-booking-label required" }, rn = { cl
473
473
  }, null, 8, ["listing-id", "table-group-id", "description", "name", "length", "gallery", "days", "from-date", "to-date", "max-online-reservation-limit", "time-from", "time-to", "sold-out", "callback"]))), 128))
474
474
  ])
475
475
  ], 64)) : h("", !0),
476
- e(y) && L.onlyShow !== "events" ? (s(), m(B, { key: 1 }, [
476
+ e(y) && L.onlyShow !== "events" ? (a(), m(B, { key: 1 }, [
477
477
  h("", !0),
478
478
  t("ul", Yt, [
479
- (s(!0), m(B, null, q(e(D), ({
479
+ (a(!0), m(B, null, q(e(D), ({
480
480
  id: A,
481
481
  name: r,
482
482
  fromDate: I,
@@ -485,7 +485,7 @@ const sn = { key: 3 }, an = { class: "fresh-booking-label required" }, rn = { cl
485
485
  fromPrice: V,
486
486
  description: J,
487
487
  imageUrl: K
488
- }) => (s(), T(Ot, {
488
+ }) => (a(), T(Ot, {
489
489
  key: A,
490
490
  "listing-id": A,
491
491
  name: r,
@@ -499,19 +499,19 @@ const sn = { key: 3 }, an = { class: "fresh-booking-label required" }, rn = { cl
499
499
  }, null, 8, ["listing-id", "name", "image", "description", "from-date", "to-date", "minimum-person-count", "fromPrice", "callback"]))), 128))
500
500
  ])
501
501
  ], 64)) : h("", !0)
502
- ])) : (s(), T(Pe, { key: 1 }))
502
+ ])) : (a(), T(Pe, { key: 1 }))
503
503
  ]),
504
504
  _: 2
505
505
  }, 1024)
506
506
  ]),
507
507
  addons: p(({ next: z, prev: A }) => [
508
- e(X) ? (s(), T(ce, { key: 0 }, {
508
+ e(X) ? (a(), T(de, { key: 0 }, {
509
509
  form: p(() => [
510
510
  t("form", Zt, [
511
511
  t("h2", null, [
512
512
  t("span", null, o(e(n)("booking.reservation.addons")), 1)
513
513
  ]),
514
- e(W) === e(ye).FullDayEvent ? (s(), T(oe, {
514
+ e(W) === e(ye).FullDayEvent ? (a(), T(oe, {
515
515
  key: 0,
516
516
  modelValue: e(l),
517
517
  "onUpdate:modelValue": w[0] || (w[0] = (r) => M(l) ? l.value = r : null),
@@ -519,12 +519,12 @@ const sn = { key: 3 }, an = { class: "fresh-booking-label required" }, rn = { cl
519
519
  "min-value": 1,
520
520
  required: ""
521
521
  }, null, 8, ["modelValue", "label"])) : h("", !0),
522
- e(a) && e(a).length > 0 ? (s(), m("ul", Jt, [
523
- (s(!0), m(B, null, q(e(a), ({
522
+ e(s) && e(s).length > 0 ? (a(), m("ul", Jt, [
523
+ (a(!0), m(B, null, q(e(s), ({
524
524
  roomGroupId: r,
525
525
  addons: I,
526
526
  adultPerRoom: N
527
- }, E) => (s(), m("li", { key: r }, [
527
+ }, E) => (a(), m("li", { key: r }, [
528
528
  t("h5", null, [
529
529
  t("span", null, o(e(n)("booking.reservation.room")) + " #" + o(E + 1), 1),
530
530
  ge(" ("),
@@ -548,26 +548,26 @@ const sn = { key: 3 }, an = { class: "fresh-booking-label required" }, rn = { cl
548
548
  ])
549
549
  ]),
550
550
  t("tbody", null, [
551
- (s(!0), m(B, null, q(I, ({
551
+ (a(!0), m(B, null, q(I, ({
552
552
  id: V,
553
553
  cardinality: J,
554
554
  name: K,
555
555
  price: re,
556
556
  quantityStrategy: ue
557
- }) => (s(), m("tr", { key: V }, [
557
+ }) => (a(), m("tr", { key: V }, [
558
558
  t("td", null, [
559
559
  t("b", null, o(K), 1),
560
560
  Xt,
561
561
  t("span", null, o(e(R)(re, e(Z))) + " " + o(e(Qe)(ue)), 1)
562
562
  ]),
563
563
  t("td", xt, [
564
- J === 3 ? (s(), T(oe, {
564
+ J === 3 ? (a(), T(oe, {
565
565
  key: 0,
566
566
  modelValue: e(i)[`${r}.${V}.${E}`],
567
567
  "onUpdate:modelValue": (Q) => e(i)[`${r}.${V}.${E}`] = Q,
568
568
  small: !0,
569
569
  "min-value": 0
570
- }, null, 8, ["modelValue", "onUpdate:modelValue"])) : (s(), T(ft, {
570
+ }, null, 8, ["modelValue", "onUpdate:modelValue"])) : (a(), T(ft, {
571
571
  key: 1,
572
572
  modelValue: e(i)[`${r}.${V}.${E}`],
573
573
  "onUpdate:modelValue": (Q) => e(i)[`${r}.${V}.${E}`] = Q,
@@ -593,7 +593,7 @@ const sn = { key: 3 }, an = { class: "fresh-booking-label required" }, rn = { cl
593
593
  ])
594
594
  ]))), 128))
595
595
  ])) : h("", !0),
596
- e(W) !== e(ye).FullDayEvent && !e(S) ? (s(), m("div", ln, [
596
+ e(W) !== e(ye).FullDayEvent && !e(S) ? (a(), m("div", ln, [
597
597
  h("", !0),
598
598
  f(rt, {
599
599
  modelValue: e(v),
@@ -604,8 +604,8 @@ const sn = { key: 3 }, an = { class: "fresh-booking-label required" }, rn = { cl
604
604
  required: ""
605
605
  }, null, 8, ["modelValue", "label", "checkboxes"])
606
606
  ])) : h("", !0),
607
- e(O) ? (s(), m("div", sn, [
608
- t("label", an, [
607
+ e(O) ? (a(), m("div", an, [
608
+ t("label", sn, [
609
609
  t("span", null, o(e(n)("event.selectProducts")), 1)
610
610
  ]),
611
611
  t("table", rn, [
@@ -615,26 +615,26 @@ const sn = { key: 3 }, an = { class: "fresh-booking-label required" }, rn = { cl
615
615
  t("span", null, o(e(n)("booking.reservation.addons")), 1)
616
616
  ]),
617
617
  un,
618
- t("th", dn, [
618
+ t("th", cn, [
619
619
  t("span", null, o(e(n)("booking.availability.price")), 1)
620
620
  ])
621
621
  ])
622
622
  ]),
623
623
  t("tbody", null, [
624
- (s(!0), m(B, null, q(e(P).products, ({ productID: r, productName: I, price: N, description: E }) => (s(), m("tr", { key: r }, [
624
+ (a(!0), m(B, null, q(e(P).products, ({ productID: r, productName: I, price: N, description: E }) => (a(), m("tr", { key: r }, [
625
625
  t("td", null, [
626
626
  t("b", null, [
627
627
  t("span", null, o(I), 1)
628
628
  ]),
629
- cn,
629
+ dn,
630
630
  t("span", null, o(E), 1),
631
631
  mn,
632
632
  t("span", null, o(e(R)(N, e(Z))), 1)
633
633
  ]),
634
634
  t("td", pn, [
635
635
  f(oe, {
636
- modelValue: e(c)[r],
637
- "onUpdate:modelValue": (V) => e(c)[r] = V,
636
+ modelValue: e(d)[r],
637
+ "onUpdate:modelValue": (V) => e(d)[r] = V,
638
638
  small: !0,
639
639
  "min-value": 0
640
640
  }, null, 8, ["modelValue", "onUpdate:modelValue"])
@@ -665,7 +665,7 @@ const sn = { key: 3 }, an = { class: "fresh-booking-label required" }, rn = { cl
665
665
  }, 1024)) : h("", !0)
666
666
  ]),
667
667
  reservation: p(({ next: z, prev: A }) => [
668
- f(ce, {
668
+ f(de, {
669
669
  "show-terms-notice": !0,
670
670
  "show-gift-card": !0
671
671
  }, {
@@ -674,7 +674,7 @@ const sn = { key: 3 }, an = { class: "fresh-booking-label required" }, rn = { cl
674
674
  t("h2", null, [
675
675
  t("span", null, o(e(n)("booking.reservation.detailsTitle")), 1)
676
676
  ]),
677
- f(de, {
677
+ f(ce, {
678
678
  modelValue: e(_),
679
679
  "onUpdate:modelValue": w[2] || (w[2] = (r) => M(_) ? _.value = r : null),
680
680
  type: "text",
@@ -683,7 +683,7 @@ const sn = { key: 3 }, an = { class: "fresh-booking-label required" }, rn = { cl
683
683
  placeholder: e(n)("booking.reservation.namePlaceholder"),
684
684
  required: ""
685
685
  }, null, 8, ["modelValue", "label", "placeholder"]),
686
- f(de, {
686
+ f(ce, {
687
687
  modelValue: e($),
688
688
  "onUpdate:modelValue": w[3] || (w[3] = (r) => M($) ? $.value = r : null),
689
689
  label: e(n)("booking.reservation.email"),
@@ -702,7 +702,7 @@ const sn = { key: 3 }, an = { class: "fresh-booking-label required" }, rn = { cl
702
702
  placeholder: e(n)("booking.reservation.phonePlaceholder"),
703
703
  required: ""
704
704
  }, null, 8, ["modelValue", "label", "placeholder"]),
705
- f(de, {
705
+ f(ce, {
706
706
  modelValue: e(u),
707
707
  "onUpdate:modelValue": w[5] || (w[5] = (r) => M(u) ? u.value = r : null),
708
708
  type: "textarea",
@@ -752,7 +752,7 @@ const sn = { key: 3 }, an = { class: "fresh-booking-label required" }, rn = { cl
752
752
  _: 1
753
753
  }, 8, ["styling"]));
754
754
  }
755
- }), te = /* @__PURE__ */ ae(hn, [["__scopeId", "data-v-c057ed89"]]), kn = xe(), yn = ot();
755
+ }), te = /* @__PURE__ */ se(hn, [["__scopeId", "data-v-f6598228"]]), kn = xe(), yn = ot();
756
756
  class _n extends HTMLElement {
757
757
  vueApp;
758
758
  constructor() {
@@ -764,8 +764,8 @@ class _n extends HTMLElement {
764
764
  connectedCallback() {
765
765
  const n = typeof te == "function" ? te.options : te;
766
766
  let i = Array.isArray(n.props) ? n.props : Object.keys(n.props || {});
767
- const c = (u) => u.replace(/[A-Z]+(?![a-z])|[A-Z]/g, (v, k) => (k ? "-" : "") + v.toLowerCase()), l = (u) => u.replace(/-./g, (v) => v[1].toUpperCase()), _ = {};
768
- i = i.map(c);
767
+ const d = (u) => u.replace(/[A-Z]+(?![a-z])|[A-Z]/g, (v, k) => (k ? "-" : "") + v.toLowerCase()), l = (u) => u.replace(/-./g, (v) => v[1].toUpperCase()), _ = {};
768
+ i = i.map(d);
769
769
  const b = {};
770
770
  for (const u of this.attributes) {
771
771
  const k = u.name.split(".");
@@ -775,7 +775,7 @@ class _n extends HTMLElement {
775
775
  let v = this.attributes.getNamedItem(u)?.value;
776
776
  b.hasOwnProperty(u) && (v = b[u]), _[u] = v;
777
777
  }
778
- this.vueApp = je(te, _), et(this.vueApp), this.vueApp.provide("emitter", yn), this.vueApp.use(tt), this.vueApp.use(kn), this.vueApp.use(dt), this.vueApp.use(ct), this.vueApp.use(nt, { bootstrap: !0 });
778
+ this.vueApp = je(te, _), et(this.vueApp), this.vueApp.provide("emitter", yn), this.vueApp.use(tt), this.vueApp.use(kn), this.vueApp.use(ct), this.vueApp.use(dt), this.vueApp.use(nt, { bootstrap: !0 });
779
779
  const $ = document.createElement("div");
780
780
  this.vueApp.mount($), this.appendChild($.children[0]);
781
781
  }
package/dist/event.js.br CHANGED
Binary file