@konnectio/core 4.0.56-rc51 → 4.0.56-rc53

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 (54) hide show
  1. package/dist/{ActionField-CsHUzdDM.js → ActionField-BbnT98_d.js} +2 -2
  2. package/dist/ActionField-BbnT98_d.js.br +0 -0
  3. package/dist/{AvailabilitySkeleton-BpS3qH0r.js → AvailabilitySkeleton-eS7Uh_Km.js} +4 -4
  4. package/dist/AvailabilitySkeleton-eS7Uh_Km.js.br +0 -0
  5. package/dist/{AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-C_Eo6onw.js → AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-BuBqQSom.js} +2 -2
  6. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-BuBqQSom.js.br +0 -0
  7. package/dist/{CheckoutWindow-DQUTHQEL.js → CheckoutWindow-Dk-o8a2K.js} +2 -2
  8. package/dist/CheckoutWindow-Dk-o8a2K.js.br +0 -0
  9. package/dist/{ErrorMessage-CWHVx0Pk.js → ErrorMessage-BLQS8AY1.js} +2 -2
  10. package/dist/ErrorMessage-BLQS8AY1.js.br +0 -0
  11. package/dist/EventAvailabilityForm-heF8nd-H.js +452 -0
  12. package/dist/EventAvailabilityForm-heF8nd-H.js.br +0 -0
  13. package/dist/{Field-CIQ61QX5.js → Field-tinXCBfJ.js} +2 -2
  14. package/dist/Field-tinXCBfJ.js.br +0 -0
  15. package/dist/{Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-2iMaQIEk.js → Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-CIaEjs0f.js} +2796 -2788
  16. package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-CIaEjs0f.js.br +0 -0
  17. package/dist/{TermsOfService-BZzRUgUN.js → TermsOfService-C-Z0lzj2.js} +3 -3
  18. package/dist/TermsOfService-C-Z0lzj2.js.br +0 -0
  19. package/dist/{_-CRFAvFk8.js → _-CjnTPqFP.js} +2 -2
  20. package/dist/{_.vue_vue_type_style_index_0_lang-DF6d_VKc.js → _.vue_vue_type_style_index_0_lang-B2bWg8_F.js} +2 -2
  21. package/dist/_.vue_vue_type_style_index_0_lang-B2bWg8_F.js.br +0 -0
  22. package/dist/availability.js +5 -5
  23. package/dist/availability.js.br +0 -0
  24. package/dist/deep-link.js +2 -2
  25. package/dist/event.js +141 -137
  26. package/dist/event.js.br +0 -0
  27. package/dist/gift-card-validation.js +6 -6
  28. package/dist/gift-card-validation.js.br +0 -0
  29. package/dist/gift-card.js +7 -7
  30. package/dist/gift-card.js.br +0 -0
  31. package/dist/{giftCard-iMEwS4uA.js → giftCard-DZylNc7h.js} +9 -9
  32. package/dist/giftCard-DZylNc7h.js.br +0 -0
  33. package/dist/hotel.js +507 -487
  34. package/dist/hotel.js.br +0 -0
  35. package/dist/{masonry.plugin-BSptmqjG.js → masonry.plugin-7lHYsZoI.js} +4 -4
  36. package/dist/masonry.plugin-7lHYsZoI.js.br +0 -0
  37. package/dist/polyfill.js +773 -772
  38. package/dist/polyfill.js.br +0 -0
  39. package/dist/style.css +1 -1
  40. package/dist/style.css.br +0 -0
  41. package/package.json +1 -1
  42. package/dist/ActionField-CsHUzdDM.js.br +0 -0
  43. package/dist/AvailabilitySkeleton-BpS3qH0r.js.br +0 -0
  44. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-C_Eo6onw.js.br +0 -0
  45. package/dist/CheckoutWindow-DQUTHQEL.js.br +0 -0
  46. package/dist/ErrorMessage-CWHVx0Pk.js.br +0 -0
  47. package/dist/EventAvailabilityForm-Bk4wdYKU.js +0 -437
  48. package/dist/EventAvailabilityForm-Bk4wdYKU.js.br +0 -0
  49. package/dist/Field-CIQ61QX5.js.br +0 -0
  50. package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-2iMaQIEk.js.br +0 -0
  51. package/dist/TermsOfService-BZzRUgUN.js.br +0 -0
  52. package/dist/_.vue_vue_type_style_index_0_lang-DF6d_VKc.js.br +0 -0
  53. package/dist/giftCard-iMEwS4uA.js.br +0 -0
  54. package/dist/masonry.plugin-BSptmqjG.js.br +0 -0
package/dist/event.js CHANGED
@@ -1,54 +1,54 @@
1
- import { d as j, r as Re, c as le, o as a, b as T, w as p, v as ne, u as e, g as t, f, a as m, e as h, t as o, B as Fe, C as Ue, A as q, F as B, x as M, S as ze, D as ge, i as he, p as qe, j as Ge, k as He } from "./_commonjsHelpers-04Qj4xBt.js";
2
- import { h as ae, a as je, s as Q, H as Ye, l as oe, C as me, J as Ze, _ as se, j as Ve, z as pe, K as Je, b as De, B as ke, M as ve, A as R, O as ye, N as Ke, T as ce, n as Qe, o as We, p as Xe, F as xe, q as et } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-2iMaQIEk.js";
1
+ import { d as j, r as Re, c as le, o as a, b as T, w as p, v as ne, u as e, g as t, f, a as m, e as h, t as o, B as Fe, C as Ue, A as G, F as S, x as M, S as ze, D as ge, i as he, p as Ge, j as qe, k as He } from "./_commonjsHelpers-04Qj4xBt.js";
2
+ import { h as ae, a as je, s as Q, H as Ye, l as oe, C as me, J as Ze, _ as se, j as Ve, z as pe, K as Je, b as De, B as ke, M as ve, A as R, O as ye, N as Ke, T as ue, n as Qe, o as We, p as xe, F as Xe, q as et } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-CIaEjs0f.js";
3
3
  import { c as tt } from "./sentry-BSHzssDu.js";
4
- import { B as nt, R as ot, L as Pe, S as lt, M as at, C as st, T as it, V as rt, G as ut } from "./masonry.plugin-BSptmqjG.js";
5
- import { u as H, E as ct } from "./EventAvailabilityForm-Bk4wdYKU.js";
6
- import { _ as dt } from "./_.vue_vue_type_style_index_0_lang-DF6d_VKc.js";
7
- import { t as G, e as mt, g as _e, m as $e, a as we, b as Ee, c as pt, d as Te } from "./AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-C_Eo6onw.js";
8
- import { a as vt, P as ft, C as bt } from "./CheckoutWindow-DQUTHQEL.js";
4
+ import { B as nt, R as ot, L as Pe, S as lt, M as at, C as st, T as it, V as rt, G as ct } from "./masonry.plugin-7lHYsZoI.js";
5
+ import { u as H, E as ut } from "./EventAvailabilityForm-heF8nd-H.js";
6
+ import { _ as dt } from "./_.vue_vue_type_style_index_0_lang-B2bWg8_F.js";
7
+ import { t as q, e as mt, g as _e, m as $e, a as we, b as Ee, c as pt, d as Te } from "./AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-BuBqQSom.js";
8
+ import { a as vt, P as ft, C as bt } from "./CheckoutWindow-Dk-o8a2K.js";
9
9
  import "./deep-link.js";
10
10
  (function() {
11
11
  try {
12
- var c = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, n = new Error().stack;
13
- n && (c._sentryDebugIds = c._sentryDebugIds || {}, c._sentryDebugIds[n] = "5cc19a44-243a-48b3-a138-23463184d1fa", c._sentryDebugIdIdentifier = "sentry-dbid-5cc19a44-243a-48b3-a138-23463184d1fa");
12
+ var u = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, n = new Error().stack;
13
+ n && (u._sentryDebugIds = u._sentryDebugIds || {}, u._sentryDebugIds[n] = "fca83b9e-e9ff-4efa-863e-68cef7d1e295", u._sentryDebugIdIdentifier = "sentry-dbid-fca83b9e-e9ff-4efa-863e-68cef7d1e295");
14
14
  } catch {
15
15
  }
16
16
  })();
17
- function gt(c, n) {
18
- const i = G(c), d = G(n), l = i.getTime() - d.getTime();
17
+ function gt(u, n) {
18
+ const s = q(u), d = q(n), l = s.getTime() - d.getTime();
19
19
  return l < 0 ? -1 : l > 0 ? 1 : l;
20
20
  }
21
- function ht(c) {
21
+ function ht(u) {
22
22
  return (n) => {
23
- const d = (c ? Math[c] : Math.trunc)(n);
23
+ const d = (u ? Math[u] : Math.trunc)(n);
24
24
  return d === 0 ? 0 : d;
25
25
  };
26
26
  }
27
- function kt(c, n, i) {
28
- const d = pt(), l = i?.locale ?? d.locale ?? mt, _ = gt(c, n);
27
+ function kt(u, n, s) {
28
+ const d = pt(), l = s?.locale ?? d.locale ?? mt, _ = gt(u, n);
29
29
  if (isNaN(_))
30
30
  throw new RangeError("Invalid time value");
31
- const b = Object.assign({}, i, {
32
- addSuffix: i?.addSuffix,
31
+ const b = Object.assign({}, s, {
32
+ addSuffix: s?.addSuffix,
33
33
  comparison: _
34
34
  });
35
- let $, u;
36
- _ > 0 ? ($ = G(n), u = G(c)) : ($ = G(c), u = G(n));
37
- const v = ht(i?.roundingMethod ?? "round"), k = u.getTime() - $.getTime(), y = k / Te, C = _e(u) - _e($), D = (k - C) / Te, P = i?.unit;
38
- let s;
39
- 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") {
35
+ let $, c;
36
+ _ > 0 ? ($ = q(n), c = q(u)) : ($ = q(u), c = q(n));
37
+ const v = ht(s?.roundingMethod ?? "round"), k = c.getTime() - $.getTime(), y = k / Te, C = _e(c) - _e($), D = (k - C) / Te, P = s?.unit;
38
+ let i;
39
+ if (P ? i = P : y < 1 ? i = "second" : y < 60 ? i = "minute" : y < $e ? i = "hour" : D < we ? i = "day" : D < Ee ? i = "month" : i = "year", i === "second") {
40
40
  const g = v(k / 1e3);
41
41
  return l.formatDistance("xSeconds", g, b);
42
- } else if (s === "minute") {
42
+ } else if (i === "minute") {
43
43
  const g = v(y);
44
44
  return l.formatDistance("xMinutes", g, b);
45
- } else if (s === "hour") {
45
+ } else if (i === "hour") {
46
46
  const g = v(y / 60);
47
47
  return l.formatDistance("xHours", g, b);
48
- } else if (s === "day") {
48
+ } else if (i === "day") {
49
49
  const g = v(D / $e);
50
50
  return l.formatDistance("xDays", g, b);
51
- } else if (s === "month") {
51
+ } else if (i === "month") {
52
52
  const g = v(D / we);
53
53
  return g === 12 && P !== "month" ? l.formatDistance("xYears", 1, b) : l.formatDistance("xMonths", g, b);
54
54
  } else {
@@ -78,39 +78,39 @@ const yt = { class: "konnectio-event-listing-action" }, _t = { class: "konnectio
78
78
  trackingEnabled: { type: Boolean },
79
79
  callback: {}
80
80
  },
81
- setup(c) {
82
- const { t: n } = ae(), i = c, { display: d } = je(), {
81
+ setup(u) {
82
+ const { t: n } = ae(), s = u, { display: d } = je(), {
83
83
  maxNumberOfPeople: l,
84
84
  numberOfPeople: _,
85
85
  eventId: b,
86
86
  tableGroupId: $
87
87
  } = Q(H()), {
88
- getTemplateAvailability: u,
88
+ getTemplateAvailability: c,
89
89
  getEventAvailability: v,
90
90
  isEventListingLoading: k
91
- } = H(), y = Re(0), C = le(() => k(i.listingId)), D = () => {
92
- y.value > 0 ? (b.value = i.listingId, _.value = y.value, u(i.callback)) : d({
91
+ } = H(), y = Re(0), C = le(() => k(s.listingId)), D = () => {
92
+ y.value > 0 ? (b.value = s.listingId, _.value = y.value, c(s.callback)) : d({
93
93
  type: "error",
94
94
  message: n("alert.error.selectPeople")
95
95
  });
96
96
  }, P = () => {
97
- y.value > 0 ? (b.value = i.listingId, $.value = i.tableGroupId, _.value = y.value, v(i.callback)) : d({
97
+ y.value > 0 ? (b.value = s.listingId, $.value = s.tableGroupId, _.value = y.value, v(s.callback)) : d({
98
98
  type: "error",
99
99
  message: n("alert.error.selectPeople")
100
100
  });
101
101
  };
102
- return (s, g) => (a(), T(nt, {
102
+ return (i, g) => (a(), T(nt, {
103
103
  type: "event",
104
- "listing-id": s.listingId,
105
- gallery: s.gallery,
106
- name: s.name,
107
- description: s.description,
108
- "prices-from": s.fromPrice,
109
- "to-date": s.toDate,
104
+ "listing-id": i.listingId,
105
+ gallery: i.gallery,
106
+ name: i.name,
107
+ description: i.description,
108
+ "prices-from": i.fromPrice,
109
+ "to-date": i.toDate,
110
110
  layout: e(Ze).Event
111
111
  }, {
112
112
  description: p(() => [
113
- ne(s.$slots, "description", { maxNumberOfPeople: e(l) }, void 0, !0)
113
+ ne(i.$slots, "description", { maxNumberOfPeople: e(l) }, void 0, !0)
114
114
  ]),
115
115
  action: p(() => [
116
116
  t("div", yt, [
@@ -121,16 +121,16 @@ const yt = { class: "konnectio-event-listing-action" }, _t = { class: "konnectio
121
121
  icon: "users",
122
122
  "icon-type": "fas",
123
123
  "icon-placement": "label",
124
- description: s.maxGuests <= 20 ? `${e(n)("general.availableFor")}: 1 - ${s.maxGuests} ${e(Ye)(e(n)("general.guests"))}` : void 0,
125
- "min-value": s.type === "event" ? 0 : s.minimumPersonCount,
126
- "max-value": s.type === "event" ? s.maxOnlineReservationLimit || 1 / 0 : e(l)
127
- }, null, 8, ["modelValue", "label", "description", "min-value", "max-value"]),
124
+ description: i.maxGuests <= 20 ? `${e(n)("general.availableFor")}: 1 - ${i.maxGuests} ${e(Ye)(e(n)("general.guests"))}` : void 0,
125
+ "min-value": 0,
126
+ "max-value": i.maxOnlineReservationLimit || i.maxGuests || e(l) || 1 / 0
127
+ }, null, 8, ["modelValue", "label", "description", "max-value"]),
128
128
  t("div", _t, [
129
129
  f(me, {
130
- label: s.soldOut ? e(n)("event.soldOut") : e(n)("event.bookNowButton"),
131
- disabled: s.soldOut,
130
+ label: i.soldOut ? e(n)("event.soldOut") : e(n)("event.bookNowButton"),
131
+ disabled: i.soldOut,
132
132
  "is-loading": C.value,
133
- onClickEvent: g[1] || (g[1] = (O) => s.type === "event" ? P() : D())
133
+ onClickEvent: g[1] || (g[1] = (O) => i.type === "event" ? P() : D())
134
134
  }, null, 8, ["label", "disabled", "is-loading"])
135
135
  ])
136
136
  ])
@@ -138,7 +138,7 @@ const yt = { class: "konnectio-event-listing-action" }, _t = { class: "konnectio
138
138
  _: 3
139
139
  }, 8, ["listing-id", "gallery", "name", "description", "prices-from", "to-date", "layout"]));
140
140
  }
141
- }), Ae = /* @__PURE__ */ se($t, [["__scopeId", "data-v-38f9c15b"]]), wt = ["innerHTML"], Et = { class: "konnectio-event-listing-information-new" };
141
+ }), Ae = /* @__PURE__ */ se($t, [["__scopeId", "data-v-a29b3262"]]), wt = ["innerHTML"], Et = { class: "konnectio-event-listing-information-new" };
142
142
  const Tt = { class: "konnectio-pill-button" }, Vt = { class: "konnectio-pill-button" }, Dt = /* @__PURE__ */ j({
143
143
  __name: "Event",
144
144
  props: {
@@ -160,8 +160,8 @@ const Tt = { class: "konnectio-pill-button" }, Vt = { class: "konnectio-pill-but
160
160
  trackingEnabled: { type: Boolean },
161
161
  callback: {}
162
162
  },
163
- setup(c) {
164
- const n = c, { t: i } = ae(), d = le(() => {
163
+ setup(u) {
164
+ const n = u, { t: s } = ae(), d = le(() => {
165
165
  const l = n.length.split(":");
166
166
  return console.log(l), kt(
167
167
  new Date(2e3, 0, 1, Number(l[0]), Number(l[1]), 0),
@@ -193,7 +193,7 @@ const Tt = { class: "konnectio-pill-button" }, Vt = { class: "konnectio-pill-but
193
193
  icon: "calendar-clock",
194
194
  color: "header"
195
195
  }),
196
- t("span", null, o(e(i)("event.lengthOfEvent")), 1)
196
+ t("span", null, o(e(s)("event.lengthOfEvent")), 1)
197
197
  ]),
198
198
  t("span", null, o(d.value), 1)
199
199
  ]),
@@ -203,7 +203,7 @@ const Tt = { class: "konnectio-pill-button" }, Vt = { class: "konnectio-pill-but
203
203
  icon: "calendar-clock",
204
204
  color: "header"
205
205
  }),
206
- t("span", null, o(e(i)("event.startAndEndTime")), 1)
206
+ t("span", null, o(e(s)("event.startAndEndTime")), 1)
207
207
  ]),
208
208
  t("span", null, o(e(Je)(l.timeFrom, l.timeTo)), 1)
209
209
  ])
@@ -228,8 +228,8 @@ const Tt = { class: "konnectio-pill-button" }, Vt = { class: "konnectio-pill-but
228
228
  trackingEnabled: { type: Boolean },
229
229
  callback: {}
230
230
  },
231
- setup(c) {
232
- const n = c, i = le(() => {
231
+ setup(u) {
232
+ const n = u, s = le(() => {
233
233
  if (n.image)
234
234
  return [{
235
235
  large: n.image,
@@ -240,7 +240,7 @@ const Tt = { class: "konnectio-pill-button" }, Vt = { class: "konnectio-pill-but
240
240
  });
241
241
  return (d, l) => (a(), T(Ae, {
242
242
  "listing-id": d.listingId,
243
- gallery: i.value,
243
+ gallery: s.value,
244
244
  name: d.name,
245
245
  description: d.description,
246
246
  "prices-from": d.fromPrice,
@@ -263,46 +263,46 @@ const Tt = { class: "konnectio-pill-button" }, Vt = { class: "konnectio-pill-but
263
263
  showGiftCard: { type: Boolean, default: !1 },
264
264
  showTermsNotice: { type: Boolean, default: !1 }
265
265
  },
266
- setup(c) {
267
- const { t: n } = ae(), i = Fe(), {
266
+ setup(u) {
267
+ const { t: n } = ae(), s = Fe(), {
268
268
  areListingsAvailable: d,
269
269
  arrivalTime: l,
270
270
  numberOfPeople: _,
271
271
  numberOfRooms: b,
272
272
  numberOfTotalDays: $,
273
- isTemplateEvent: u,
273
+ isTemplateEvent: c,
274
274
  length: v,
275
275
  fromDate: k,
276
276
  tableBasePrice: y,
277
277
  getTemplateData: C,
278
278
  basePrice: D,
279
279
  totalPrice: P,
280
- weekendFee: s,
280
+ weekendFee: i,
281
281
  roomUpgrade: g,
282
282
  discountCode: O
283
- } = Q(H()), { totalAddonPrice: W, validateDiscountCode: ie } = H(), { currency: X } = Q(De());
284
- return (S, x) => (a(), T(ot, {
283
+ } = Q(H()), { totalAddonPrice: W, validateDiscountCode: ie } = H(), { currency: x } = Q(De());
284
+ return (L, X) => (a(), T(ot, {
285
285
  "discount-code": e(O),
286
- "onUpdate:discountCode": x[0] || (x[0] = (U) => M(O) ? O.value = U : null),
286
+ "onUpdate:discountCode": X[0] || (X[0] = (U) => M(O) ? O.value = U : null),
287
287
  "validate-discount-code": e(ie),
288
- "show-gift-card": S.showGiftCard,
289
- "show-terms-notice": S.showTermsNotice,
288
+ "show-gift-card": L.showGiftCard,
289
+ "show-terms-notice": L.showTermsNotice,
290
290
  "is-sidebar-loading": !e(d),
291
291
  "base-price": e(D),
292
292
  "total-price": e(P),
293
- "weekend-fee": e(s),
293
+ "weekend-fee": e(i),
294
294
  "room-upgrade": e(g),
295
295
  notice: e(n)("hotel.reservationNotice")
296
296
  }, Ue({
297
297
  form: p(() => [
298
- ne(S.$slots, "form")
298
+ ne(L.$slots, "form")
299
299
  ]),
300
300
  "reservation-summary": p(() => [
301
- e(u) ? (a(), m("li", Ot, [
301
+ e(c) ? (a(), m("li", Ot, [
302
302
  t("span", null, o(e(n)("booking.reservation.arrival")), 1),
303
303
  t("b", null, o(e(ke)(e(k))), 1)
304
304
  ])) : h("", !0),
305
- e(u) ? (a(), m("li", Bt, [
305
+ e(c) ? (a(), m("li", Bt, [
306
306
  t("span", null, o(e(n)("booking.reservation.departure")), 1),
307
307
  t("b", null, o(e(ke)(e(k), e($))), 1)
308
308
  ])) : h("", !0),
@@ -310,42 +310,42 @@ const Tt = { class: "konnectio-pill-button" }, Vt = { class: "konnectio-pill-but
310
310
  t("span", null, o(e(n)("event.numberOfGuests")), 1),
311
311
  t("b", null, o(e(_)), 1)
312
312
  ]),
313
- e(u) ? (a(), m("li", St, [
313
+ e(c) ? (a(), m("li", St, [
314
314
  t("span", null, o(e(n)("event.numberOfRooms")), 1),
315
315
  t("b", null, o(e(b)), 1)
316
316
  ])) : h("", !0),
317
- e(u) ? (a(), m("li", Lt, [
317
+ e(c) ? (a(), m("li", Lt, [
318
318
  t("span", null, o(e(n)("event.numberOfDays")), 1),
319
319
  t("b", null, o(e($)), 1)
320
320
  ])) : h("", !0),
321
- !e(u) && e(l) ? (a(), m("li", It, [
321
+ !e(c) && e(l) ? (a(), m("li", It, [
322
322
  t("span", null, o(e(n)("event.startOfEvent")), 1),
323
323
  t("b", null, o(e(ve)(e(l))), 1)
324
324
  ])) : h("", !0),
325
- !e(u) && e(v) ? (a(), m("li", Nt, [
325
+ !e(c) && e(v) ? (a(), m("li", Nt, [
326
326
  t("span", null, o(e(n)("event.lengthOfEvent")), 1),
327
327
  t("b", null, o(e(ve)(e(v))), 1)
328
328
  ])) : h("", !0)
329
329
  ]),
330
330
  "price-summary": p(() => [
331
- !e(u) && e(y) > 0 ? (a(), m("li", Mt, [
331
+ !e(c) && e(y) > 0 ? (a(), m("li", Mt, [
332
332
  t("span", null, o(e(n)("booking.availability.basePrice")), 1),
333
- t("b", null, o(e(R)(e(y), e(X))), 1)
333
+ t("b", null, o(e(R)(e(y), e(x))), 1)
334
334
  ])) : h("", !0),
335
- e(C) ? (a(!0), m(B, { key: 1 }, q(e(C), ({ roomGroupId: U }, ee) => (a(), m("li", { key: U }, [
335
+ e(C) ? (a(!0), m(S, { key: 1 }, G(e(C), ({ roomGroupId: U }, ee) => (a(), m("li", { key: U }, [
336
336
  t("span", null, o(e(n)("booking.reservation.addons")) + " - " + o(e(n)("booking.reservation.room")) + " #" + o(ee + 1), 1),
337
- t("b", null, o(e(R)(e(W)(U, ee), e(X))), 1)
337
+ t("b", null, o(e(R)(e(W)(U, ee), e(x))), 1)
338
338
  ]))), 128)) : h("", !0)
339
339
  ]),
340
340
  navigation: p(() => [
341
- ne(S.$slots, "navigation")
341
+ ne(L.$slots, "navigation")
342
342
  ]),
343
343
  _: 2
344
344
  }, [
345
- e(i).sidebar ? {
345
+ e(s).sidebar ? {
346
346
  name: "sidebar",
347
347
  fn: p(() => [
348
- ne(S.$slots, "sidebar")
348
+ ne(L.$slots, "sidebar")
349
349
  ]),
350
350
  key: "0"
351
351
  } : void 0
@@ -353,8 +353,8 @@ const Tt = { class: "konnectio-pill-button" }, Vt = { class: "konnectio-pill-but
353
353
  }
354
354
  }), Rt = { class: "event-skeleton" }, Ft = { class: "event-skeleton-content" }, Ut = { class: "event-skeleton-sidebar" }, zt = /* @__PURE__ */ j({
355
355
  __name: "EventSkeleton",
356
- setup(c) {
357
- return (n, i) => (a(), m("div", Rt, [
356
+ setup(u) {
357
+ return (n, s) => (a(), m("div", Rt, [
358
358
  t("div", Ft, [
359
359
  f(Pe)
360
360
  ]),
@@ -364,7 +364,7 @@ const Tt = { class: "konnectio-pill-button" }, Vt = { class: "konnectio-pill-but
364
364
  ])
365
365
  ]));
366
366
  }
367
- }), qt = /* @__PURE__ */ se(zt, [["__scopeId", "data-v-3e15c4e3"]]), F = (c) => (qe("data-v-3e230178"), c = c(), Ge(), c), Gt = {
367
+ }), Gt = /* @__PURE__ */ se(zt, [["__scopeId", "data-v-3e15c4e3"]]), F = (u) => (Ge("data-v-3b118dcb"), u = u(), qe(), u), qt = {
368
368
  key: 0,
369
369
  id: "konnectio-event-listings-wrapper"
370
370
  };
@@ -372,38 +372,39 @@ const Ht = { class: "konnectio-event-listings" };
372
372
  const jt = { class: "konnectio-event-listings" }, Yt = { class: "konnectio-panel" }, Zt = {
373
373
  key: 1,
374
374
  id: "fresh-booking-event-addons"
375
- }, Jt = { class: "konnectio-table with-lines" }, Kt = /* @__PURE__ */ F(() => /* @__PURE__ */ t("th", { class: "konnectio-event-addons-input" }, null, -1)), Qt = { class: "konnectio-event-addons-price" }, Wt = /* @__PURE__ */ F(() => /* @__PURE__ */ t("br", null, null, -1)), Xt = { class: "konnectio-event-addons-input" }, xt = { class: "konnectio-event-addons-price" }, en = /* @__PURE__ */ F(() => /* @__PURE__ */ t("td", null, null, -1)), tn = /* @__PURE__ */ F(() => /* @__PURE__ */ t("td", null, null, -1)), nn = { class: "konnectio-event-addons-price" }, on = { key: 2 };
376
- const ln = { key: 3 }, an = { class: "konnectio-label required" }, sn = { class: "konnectio-table with-lines" }, rn = /* @__PURE__ */ F(() => /* @__PURE__ */ t("th", { class: "konnectio-event-addons-input" }, null, -1)), un = { class: "konnectio-event-addons-price" }, cn = /* @__PURE__ */ F(() => /* @__PURE__ */ t("br", null, null, -1)), dn = /* @__PURE__ */ F(() => /* @__PURE__ */ t("br", null, null, -1)), mn = { class: "konnectio-event-addons-input" }, pn = { class: "konnectio-event-addons-price" }, vn = ["onClick"], fn = { class: "konnectio-panel" }, bn = ["onClick"], gn = /* @__PURE__ */ j({
375
+ }, Jt = { class: "konnectio-table with-lines" }, Kt = /* @__PURE__ */ F(() => /* @__PURE__ */ t("th", { class: "konnectio-event-addons-input" }, null, -1)), Qt = { class: "konnectio-event-addons-price" }, Wt = /* @__PURE__ */ F(() => /* @__PURE__ */ t("br", null, null, -1)), xt = { class: "konnectio-event-addons-input" }, Xt = { class: "konnectio-event-addons-price" }, en = /* @__PURE__ */ F(() => /* @__PURE__ */ t("td", null, null, -1)), tn = /* @__PURE__ */ F(() => /* @__PURE__ */ t("td", null, null, -1)), nn = { class: "konnectio-event-addons-price" }, on = { key: 2 };
376
+ const ln = { key: 3 }, an = { class: "konnectio-label required" }, sn = { class: "konnectio-table with-lines" }, rn = /* @__PURE__ */ F(() => /* @__PURE__ */ t("th", { class: "konnectio-event-addons-input" }, null, -1)), cn = { class: "konnectio-event-addons-price" }, un = /* @__PURE__ */ F(() => /* @__PURE__ */ t("br", null, null, -1)), dn = /* @__PURE__ */ F(() => /* @__PURE__ */ t("br", null, null, -1)), mn = { class: "konnectio-event-addons-input" }, pn = { class: "konnectio-event-addons-price" }, vn = ["onClick"], fn = { class: "konnectio-panel" }, bn = ["onClick"], gn = /* @__PURE__ */ j({
377
377
  name: "EventLayout",
378
378
  __name: "Event",
379
379
  props: {
380
380
  accessToken: {},
381
381
  onlyShow: { default: "everything" },
382
+ selectedLocation: {},
382
383
  styling: {}
383
384
  },
384
- setup(c) {
385
+ setup(u) {
385
386
  const { t: n } = ae(), {
386
- addons: i,
387
+ addons: s,
387
388
  products: d,
388
389
  numberOfDays: l,
389
390
  name: _,
390
391
  phone: b,
391
392
  email: $,
392
- remark: u,
393
+ remark: c,
393
394
  arrivalTime: v,
394
395
  hasEvents: k,
395
396
  hasTemplates: y,
396
397
  getEvents: C,
397
398
  getTemplates: D,
398
399
  getEventData: P,
399
- getTemplateData: s,
400
+ getTemplateData: i,
400
401
  getEventTableData: g,
401
402
  hasProducts: O,
402
403
  eventRateType: W,
403
404
  areListingsAvailable: ie,
404
- isAvailabilityDataAvailable: X,
405
- isTemplateEvent: S,
406
- hasListingData: x,
405
+ isAvailabilityDataAvailable: x,
406
+ isTemplateEvent: L,
407
+ hasListingData: X,
407
408
  isPaymentLoading: U,
408
409
  isReservationFormFilled: ee
409
410
  } = Q(H()), {
@@ -414,24 +415,24 @@ const ln = { key: 3 }, an = { class: "konnectio-label required" }, sn = { class:
414
415
  totalAddonPrice: Se,
415
416
  reset: be
416
417
  } = H(), { currency: Y } = Q(De()), Le = le(() => {
417
- const L = [];
418
+ const B = [];
418
419
  return g.value && g.value.forEach((w) => {
419
- L.push({
420
+ B.push({
420
421
  label: ve(w.time),
421
422
  value: w.time
422
423
  });
423
- }), L;
424
+ }), B;
424
425
  });
425
426
  function Ie() {
426
427
  Oe();
427
428
  }
428
- return (L, w) => (a(), T(Qe, { styling: L.styling }, {
429
+ return (B, w) => (a(), T(Qe, { styling: B.styling }, {
429
430
  default: p(() => [
430
431
  (a(), T(ze, { onResolve: Ie }, {
431
432
  default: p(() => [
432
433
  f(dt, {
433
434
  id: "konnectio-event-module",
434
- "access-token": L.accessToken,
435
+ "access-token": B.accessToken,
435
436
  callback: e(Ce)
436
437
  }, {
437
438
  default: p(() => [
@@ -439,14 +440,17 @@ const ln = { key: 3 }, an = { class: "konnectio-label required" }, sn = { class:
439
440
  availability: p(({ next: z }) => [
440
441
  f(de, null, {
441
442
  sidebar: p(() => [
442
- f(ct, { redirection: !1 })
443
+ f(ut, {
444
+ redirection: !1,
445
+ "selected-location": Number(B.selectedLocation)
446
+ }, null, 8, ["selected-location"])
443
447
  ]),
444
448
  form: p(() => [
445
- e(x) && e(ie) ? (a(), m("div", Gt, [
446
- e(k) && L.onlyShow !== "templates" ? (a(), m(B, { key: 0 }, [
449
+ e(X) && e(ie) ? (a(), m("div", qt, [
450
+ e(k) && B.onlyShow !== "templates" ? (a(), m(S, { key: 0 }, [
447
451
  h("", !0),
448
452
  t("ul", Ht, [
449
- (a(!0), m(B, null, q(e(C), ({
453
+ (a(!0), m(S, null, G(e(C), ({
450
454
  id: A,
451
455
  days: r,
452
456
  name: I,
@@ -456,7 +460,7 @@ const ln = { key: 3 }, an = { class: "konnectio-label required" }, sn = { class:
456
460
  toDate: Z,
457
461
  tableGroupId: J,
458
462
  description: re,
459
- soldOut: ue,
463
+ soldOut: ce,
460
464
  length: K,
461
465
  images: Ne,
462
466
  maxOnlineReservationLimit: Me
@@ -475,15 +479,15 @@ const ln = { key: 3 }, an = { class: "konnectio-label required" }, sn = { class:
475
479
  "max-online-reservation-limit": Me,
476
480
  "time-from": N,
477
481
  "time-to": E,
478
- "sold-out": ue,
482
+ "sold-out": ce,
479
483
  callback: z
480
484
  }, 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))
481
485
  ])
482
486
  ], 64)) : h("", !0),
483
- e(y) && L.onlyShow !== "events" ? (a(), m(B, { key: 1 }, [
487
+ e(y) && B.onlyShow !== "events" ? (a(), m(S, { key: 1 }, [
484
488
  h("", !0),
485
489
  t("ul", jt, [
486
- (a(!0), m(B, null, q(e(D), ({
490
+ (a(!0), m(S, null, G(e(D), ({
487
491
  id: A,
488
492
  name: r,
489
493
  fromDate: I,
@@ -512,7 +516,7 @@ const ln = { key: 3 }, an = { class: "konnectio-label required" }, sn = { class:
512
516
  }, 1024)
513
517
  ]),
514
518
  addons: p(({ next: z, prev: A }) => [
515
- e(X) ? (a(), T(de, { key: 0 }, {
519
+ e(x) ? (a(), T(de, { key: 0 }, {
516
520
  form: p(() => [
517
521
  t("form", Yt, [
518
522
  t("h2", null, [
@@ -526,8 +530,8 @@ const ln = { key: 3 }, an = { class: "konnectio-label required" }, sn = { class:
526
530
  "min-value": 1,
527
531
  required: ""
528
532
  }, null, 8, ["modelValue", "label"])) : h("", !0),
529
- e(s) && e(s).length > 0 ? (a(), m("ul", Zt, [
530
- (a(!0), m(B, null, q(e(s), ({
533
+ e(i) && e(i).length > 0 ? (a(), m("ul", Zt, [
534
+ (a(!0), m(S, null, G(e(i), ({
531
535
  roomGroupId: r,
532
536
  addons: I,
533
537
  adultPerRoom: N
@@ -555,33 +559,33 @@ const ln = { key: 3 }, an = { class: "konnectio-label required" }, sn = { class:
555
559
  ])
556
560
  ]),
557
561
  t("tbody", null, [
558
- (a(!0), m(B, null, q(I, ({
562
+ (a(!0), m(S, null, G(I, ({
559
563
  id: V,
560
564
  cardinality: Z,
561
565
  name: J,
562
566
  price: re,
563
- quantityStrategy: ue
567
+ quantityStrategy: ce
564
568
  }) => (a(), m("tr", { key: V }, [
565
569
  t("td", null, [
566
570
  t("b", null, o(J), 1),
567
571
  Wt,
568
- t("span", null, o(e(R)(re, e(Y))) + " " + o(e(Ke)(ue)), 1)
572
+ t("span", null, o(e(R)(re, e(Y))) + " " + o(e(Ke)(ce)), 1)
569
573
  ]),
570
- t("td", Xt, [
574
+ t("td", xt, [
571
575
  Z === 3 ? (a(), T(oe, {
572
576
  key: 0,
573
- modelValue: e(i)[`${r}.${V}.${E}`],
574
- "onUpdate:modelValue": (K) => e(i)[`${r}.${V}.${E}`] = K,
577
+ modelValue: e(s)[`${r}.${V}.${E}`],
578
+ "onUpdate:modelValue": (K) => e(s)[`${r}.${V}.${E}`] = K,
575
579
  small: !0,
576
580
  "min-value": 0
577
581
  }, null, 8, ["modelValue", "onUpdate:modelValue"])) : (a(), T(vt, {
578
582
  key: 1,
579
- modelValue: e(i)[`${r}.${V}.${E}`],
580
- "onUpdate:modelValue": (K) => e(i)[`${r}.${V}.${E}`] = K,
583
+ modelValue: e(s)[`${r}.${V}.${E}`],
584
+ "onUpdate:modelValue": (K) => e(s)[`${r}.${V}.${E}`] = K,
581
585
  numeric: !0
582
586
  }, null, 8, ["modelValue", "onUpdate:modelValue"]))
583
587
  ]),
584
- t("td", xt, [
588
+ t("td", Xt, [
585
589
  t("span", null, o(e(R)(e(fe)(V, r, E), e(Y))), 1)
586
590
  ])
587
591
  ]))), 128))
@@ -600,7 +604,7 @@ const ln = { key: 3 }, an = { class: "konnectio-label required" }, sn = { class:
600
604
  ])
601
605
  ]))), 128))
602
606
  ])) : h("", !0),
603
- e(W) !== e(ye).FullDayEvent && !e(S) ? (a(), m("div", on, [
607
+ e(W) !== e(ye).FullDayEvent && !e(L) ? (a(), m("div", on, [
604
608
  h("", !0),
605
609
  f(st, {
606
610
  modelValue: e(v),
@@ -622,18 +626,18 @@ const ln = { key: 3 }, an = { class: "konnectio-label required" }, sn = { class:
622
626
  t("span", null, o(e(n)("booking.reservation.addons")), 1)
623
627
  ]),
624
628
  rn,
625
- t("th", un, [
629
+ t("th", cn, [
626
630
  t("span", null, o(e(n)("booking.availability.price")), 1)
627
631
  ])
628
632
  ])
629
633
  ]),
630
634
  t("tbody", null, [
631
- (a(!0), m(B, null, q(e(P).products, ({ productID: r, productName: I, price: N, description: E }) => (a(), m("tr", { key: r }, [
635
+ (a(!0), m(S, null, G(e(P).products, ({ productID: r, productName: I, price: N, description: E }) => (a(), m("tr", { key: r }, [
632
636
  t("td", null, [
633
637
  t("b", null, [
634
638
  t("span", null, o(I), 1)
635
639
  ]),
636
- cn,
640
+ un,
637
641
  t("span", null, o(E), 1),
638
642
  dn,
639
643
  t("span", null, o(e(R)(N, e(Y))), 1)
@@ -681,7 +685,7 @@ const ln = { key: 3 }, an = { class: "konnectio-label required" }, sn = { class:
681
685
  t("h2", null, [
682
686
  t("span", null, o(e(n)("booking.reservation.detailsTitle")), 1)
683
687
  ]),
684
- f(ce, {
688
+ f(ue, {
685
689
  modelValue: e(_),
686
690
  "onUpdate:modelValue": w[2] || (w[2] = (r) => M(_) ? _.value = r : null),
687
691
  type: "text",
@@ -690,7 +694,7 @@ const ln = { key: 3 }, an = { class: "konnectio-label required" }, sn = { class:
690
694
  placeholder: e(n)("booking.reservation.namePlaceholder"),
691
695
  required: ""
692
696
  }, null, 8, ["modelValue", "label", "placeholder"]),
693
- f(ce, {
697
+ f(ue, {
694
698
  modelValue: e($),
695
699
  "onUpdate:modelValue": w[3] || (w[3] = (r) => M($) ? $.value = r : null),
696
700
  label: e(n)("booking.reservation.email"),
@@ -709,9 +713,9 @@ const ln = { key: 3 }, an = { class: "konnectio-label required" }, sn = { class:
709
713
  placeholder: e(n)("booking.reservation.phonePlaceholder"),
710
714
  required: ""
711
715
  }, null, 8, ["modelValue", "label", "placeholder"]),
712
- f(ce, {
713
- modelValue: e(u),
714
- "onUpdate:modelValue": w[5] || (w[5] = (r) => M(u) ? u.value = r : null),
716
+ f(ue, {
717
+ modelValue: e(c),
718
+ "onUpdate:modelValue": w[5] || (w[5] = (r) => M(c) ? c.value = r : null),
715
719
  type: "textarea",
716
720
  label: `${e(n)("booking.reservation.remark")} (${e(n)("booking.reservation.optional")})`,
717
721
  icon: "info-circle",
@@ -752,7 +756,7 @@ const ln = { key: 3 }, an = { class: "konnectio-label required" }, sn = { class:
752
756
  }, 8, ["access-token", "callback"])
753
757
  ]),
754
758
  fallback: p(() => [
755
- f(qt)
759
+ f(Gt)
756
760
  ]),
757
761
  _: 1
758
762
  }))
@@ -760,7 +764,7 @@ const ln = { key: 3 }, an = { class: "konnectio-label required" }, sn = { class:
760
764
  _: 1
761
765
  }, 8, ["styling"]));
762
766
  }
763
- }), te = /* @__PURE__ */ se(gn, [["__scopeId", "data-v-3e230178"]]), hn = We(), kn = et();
767
+ }), te = /* @__PURE__ */ se(gn, [["__scopeId", "data-v-3b118dcb"]]), hn = We(), kn = et();
764
768
  class yn extends HTMLElement {
765
769
  vueApp;
766
770
  constructor() {
@@ -771,19 +775,19 @@ class yn extends HTMLElement {
771
775
  }
772
776
  connectedCallback() {
773
777
  const n = typeof te == "function" ? te.options : te;
774
- let i = Array.isArray(n.props) ? n.props : Object.keys(n.props || {});
775
- 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()), _ = {};
776
- i = i.map(d);
778
+ let s = Array.isArray(n.props) ? n.props : Object.keys(n.props || {});
779
+ const d = (c) => c.replace(/[A-Z]+(?![a-z])|[A-Z]/g, (v, k) => (k ? "-" : "") + v.toLowerCase()), l = (c) => c.replace(/-./g, (v) => v[1].toUpperCase()), _ = {};
780
+ s = s.map(d);
777
781
  const b = {};
778
- for (const u of this.attributes) {
779
- const k = u.name.split(".");
780
- k.length > 1 && (b[k[0]] || (b[k[0]] = {}), b[k[0]][l(k[1])] = u.value);
782
+ for (const c of this.attributes) {
783
+ const k = c.name.split(".");
784
+ k.length > 1 && (b[k[0]] || (b[k[0]] = {}), b[k[0]][l(k[1])] = c.value);
781
785
  }
782
- for (const u of i) {
783
- let v = this.attributes.getNamedItem(u)?.value;
784
- b.hasOwnProperty(u) && (v = b[u]), _[u] = v;
786
+ for (const c of s) {
787
+ let v = this.attributes.getNamedItem(c)?.value;
788
+ b.hasOwnProperty(c) && (v = b[c]), _[c] = v;
785
789
  }
786
- this.vueApp = He(te, _), tt(this.vueApp), this.vueApp.provide("emitter", kn), this.vueApp.use(Xe), this.vueApp.use(hn), this.vueApp.use(rt), this.vueApp.use(ut), this.vueApp.use(xe, { bootstrap: !0 });
790
+ this.vueApp = He(te, _), tt(this.vueApp), this.vueApp.provide("emitter", kn), this.vueApp.use(xe), this.vueApp.use(hn), this.vueApp.use(rt), this.vueApp.use(ct), this.vueApp.use(Xe, { bootstrap: !0 });
787
791
  const $ = document.createElement("div");
788
792
  this.vueApp.mount($), this.appendChild($.children[0]);
789
793
  }