@konnectio/core 4.0.56-rc50 → 4.0.56-rc52

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