@konnectio/core 4.0.56-rc55 → 4.0.56-rc56

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 (71) hide show
  1. package/dist/{ActionField-BAL1bpnL.js → ActionField-D2cIxYLO.js} +12 -12
  2. package/dist/ActionField-D2cIxYLO.js.br +0 -0
  3. package/dist/{AvailabilitySkeleton-BX61UaDK.js → AvailabilitySkeleton-fSj-D3gr.js} +50 -49
  4. package/dist/AvailabilitySkeleton-fSj-D3gr.js.br +0 -0
  5. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-DmlVYsD2.js +8174 -0
  6. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-DmlVYsD2.js.br +0 -0
  7. package/dist/{CheckoutWindow-DufEgcza.js → CheckoutWindow-DDFex8_M.js} +242 -233
  8. package/dist/CheckoutWindow-DDFex8_M.js.br +0 -0
  9. package/dist/{ErrorMessage-CbGOS1Nq.js → ErrorMessage-BxEkmAcA.js} +4 -4
  10. package/dist/ErrorMessage-BxEkmAcA.js.br +0 -0
  11. package/dist/EventAvailabilityForm-Bh21jXV0.js +120 -0
  12. package/dist/EventAvailabilityForm-Bh21jXV0.js.br +0 -0
  13. package/dist/{Field-flvSuRTL.js → Field-C1-c1E69.js} +9 -9
  14. package/dist/Field-C1-c1E69.js.br +0 -0
  15. package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-1m-WZuNW.js +18603 -0
  16. package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-1m-WZuNW.js.br +0 -0
  17. package/dist/TermsOfService-Cf3uVbvE.js +36 -0
  18. package/dist/TermsOfService-Cf3uVbvE.js.br +0 -0
  19. package/dist/{_-Wr8LhfrM.js → _-DpyfRShv.js} +3 -3
  20. package/dist/_.vue_vue_type_style_index_0_lang-DoCplqzK.js +69 -0
  21. package/dist/_.vue_vue_type_style_index_0_lang-DoCplqzK.js.br +0 -0
  22. package/dist/_commonjsHelpers-7Ka-lrVJ.js +17 -0
  23. package/dist/_sentry-release-injection-file-BwRPXfCP.js +11186 -0
  24. package/dist/_sentry-release-injection-file-BwRPXfCP.js.br +0 -0
  25. package/dist/availability.js +24 -24
  26. package/dist/availability.js.br +0 -0
  27. package/dist/deep-link.js +56 -4
  28. package/dist/deep-link.js.br +0 -0
  29. package/dist/event.js +316 -300
  30. package/dist/event.js.br +0 -0
  31. package/dist/gift-card-validation.js +32 -33
  32. package/dist/gift-card-validation.js.br +0 -0
  33. package/dist/gift-card.js +87 -88
  34. package/dist/gift-card.js.br +0 -0
  35. package/dist/giftCard-D4D0qX4c.js +134 -0
  36. package/dist/giftCard-D4D0qX4c.js.br +0 -0
  37. package/dist/hotel.js +211 -211
  38. package/dist/hotel.js.br +0 -0
  39. package/dist/{masonry.plugin-BMRfOcVe.js → masonry.plugin-BJrxifpp.js} +3352 -3334
  40. package/dist/masonry.plugin-BJrxifpp.js.br +0 -0
  41. package/dist/mitt-CKlYOuwf.js +4290 -0
  42. package/dist/mitt-CKlYOuwf.js.br +0 -0
  43. package/dist/polyfill.js +4523 -4515
  44. package/dist/polyfill.js.br +0 -0
  45. package/dist/style.css +1 -1
  46. package/dist/style.css.br +0 -0
  47. package/dist/{tracing-wxeFiHIa.js → tracing-NLDFmjvp.js} +3 -3
  48. package/dist/tracing-NLDFmjvp.js.br +0 -0
  49. package/package.json +8 -8
  50. package/dist/ActionField-BAL1bpnL.js.br +0 -0
  51. package/dist/AvailabilitySkeleton-BX61UaDK.js.br +0 -0
  52. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-CBLGelHH.js +0 -7814
  53. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-CBLGelHH.js.br +0 -0
  54. package/dist/CheckoutWindow-DufEgcza.js.br +0 -0
  55. package/dist/ErrorMessage-CbGOS1Nq.js.br +0 -0
  56. package/dist/EventAvailabilityForm-CO2Vt9WR.js +0 -452
  57. package/dist/EventAvailabilityForm-CO2Vt9WR.js.br +0 -0
  58. package/dist/Field-flvSuRTL.js.br +0 -0
  59. package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-BtVEfiNz.js +0 -21414
  60. package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-BtVEfiNz.js.br +0 -0
  61. package/dist/TermsOfService-ZtJSXzfs.js +0 -35
  62. package/dist/TermsOfService-ZtJSXzfs.js.br +0 -0
  63. package/dist/_.vue_vue_type_style_index_0_lang-1ZRqGUnk.js +0 -68
  64. package/dist/_.vue_vue_type_style_index_0_lang-1ZRqGUnk.js.br +0 -0
  65. package/dist/_commonjsHelpers-04Qj4xBt.js +0 -9530
  66. package/dist/_commonjsHelpers-04Qj4xBt.js.br +0 -0
  67. package/dist/giftCard-DHP_enh5.js +0 -127
  68. package/dist/giftCard-DHP_enh5.js.br +0 -0
  69. package/dist/masonry.plugin-BMRfOcVe.js.br +0 -0
  70. package/dist/sentry-BSHzssDu.js +0 -18
  71. package/dist/tracing-wxeFiHIa.js.br +0 -0
package/dist/event.js CHANGED
@@ -1,62 +1,61 @@
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-BtVEfiNz.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-BMRfOcVe.js";
5
- import { u as H, E as ut } from "./EventAvailabilityForm-CO2Vt9WR.js";
6
- import { _ as dt } from "./_.vue_vue_type_style_index_0_lang-1ZRqGUnk.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-CBLGelHH.js";
8
- import { a as vt, P as ft, C as bt } from "./CheckoutWindow-DufEgcza.js";
9
- import "./deep-link.js";
1
+ import { d as Y, r as Ge, c as le, a, b as V, w as p, l as ne, u as e, e as t, f, g as m, i as h, t as o, m as qe, q as ze, s as q, F as L, v as R, S as He, x as he, h as ke, p as je, j as Ye, k as Ze } from "./_sentry-release-injection-file-BwRPXfCP.js";
2
+ import { u as ae, s as H, c as Qe, i as We, m as xe } from "./mitt-CKlYOuwf.js";
3
+ import { a as Te, l as Je, b as oe, c as me, B as Ke, _ as se, d as Pe, I as pe, s as Xe, e as Oe, f as ye, g as ve, h as U, u as et, O as _e, i as tt, T as ce, C as nt, j as ot, k as lt, m as at } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-1m-WZuNW.js";
4
+ import { B as st, R as it, L as Ae, S as rt, M as ut, C as ct, T as dt, V as mt, G as pt } from "./masonry.plugin-BJrxifpp.js";
5
+ import { t as z, e as vt, g as $e, m as we, a as De, b as Ve, c as ft, d as Ee, u as j } from "./AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-DmlVYsD2.js";
6
+ import { _ as bt } from "./_.vue_vue_type_style_index_0_lang-DoCplqzK.js";
7
+ import { C as gt, P as ht, a as kt } from "./CheckoutWindow-DDFex8_M.js";
8
+ import { E as yt } from "./EventAvailabilityForm-Bh21jXV0.js";
10
9
  (function() {
11
10
  try {
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");
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] = "b51bf012-9a3c-4e76-8733-8abf8f736cb9", c._sentryDebugIdIdentifier = "sentry-dbid-b51bf012-9a3c-4e76-8733-8abf8f736cb9");
14
13
  } catch {
15
14
  }
16
15
  })();
17
- function gt(u, n) {
18
- const s = q(u), d = q(n), l = s.getTime() - d.getTime();
16
+ function _t(c, n) {
17
+ const s = z(c), d = z(n), l = s.getTime() - d.getTime();
19
18
  return l < 0 ? -1 : l > 0 ? 1 : l;
20
19
  }
21
- function ht(u) {
20
+ function $t(c) {
22
21
  return (n) => {
23
- const d = (u ? Math[u] : Math.trunc)(n);
22
+ const d = (c ? Math[c] : Math.trunc)(n);
24
23
  return d === 0 ? 0 : d;
25
24
  };
26
25
  }
27
- function kt(u, n, s) {
28
- const d = pt(), l = s?.locale ?? d.locale ?? mt, _ = gt(u, n);
29
- if (isNaN(_))
26
+ function wt(c, n, s) {
27
+ const d = ft(), l = s?.locale ?? d.locale ?? vt, $ = _t(c, n);
28
+ if (isNaN($))
30
29
  throw new RangeError("Invalid time value");
31
30
  const b = Object.assign({}, s, {
32
31
  addSuffix: s?.addSuffix,
33
- comparison: _
32
+ comparison: $
34
33
  });
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;
34
+ let w, u;
35
+ $ > 0 ? (w = z(n), u = z(c)) : (w = z(c), u = z(n));
36
+ const v = $t(s?.roundingMethod ?? "round"), y = u.getTime() - w.getTime(), _ = y / Ee, S = $e(u) - $e(w), P = (y - S) / Ee, O = s?.unit;
38
37
  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
- const g = v(k / 1e3);
38
+ if (O ? i = O : _ < 1 ? i = "second" : _ < 60 ? i = "minute" : _ < we ? i = "hour" : P < De ? i = "day" : P < Ve ? i = "month" : i = "year", i === "second") {
39
+ const g = v(y / 1e3);
41
40
  return l.formatDistance("xSeconds", g, b);
42
41
  } else if (i === "minute") {
43
- const g = v(y);
42
+ const g = v(_);
44
43
  return l.formatDistance("xMinutes", g, b);
45
44
  } else if (i === "hour") {
46
- const g = v(y / 60);
45
+ const g = v(_ / 60);
47
46
  return l.formatDistance("xHours", g, b);
48
47
  } else if (i === "day") {
49
- const g = v(D / $e);
48
+ const g = v(P / we);
50
49
  return l.formatDistance("xDays", g, b);
51
50
  } else if (i === "month") {
52
- const g = v(D / we);
53
- return g === 12 && P !== "month" ? l.formatDistance("xYears", 1, b) : l.formatDistance("xMonths", g, b);
51
+ const g = v(P / De);
52
+ return g === 12 && O !== "month" ? l.formatDistance("xYears", 1, b) : l.formatDistance("xMonths", g, b);
54
53
  } else {
55
- const g = v(D / Ee);
54
+ const g = v(P / Ve);
56
55
  return l.formatDistance("xYears", g, b);
57
56
  }
58
57
  }
59
- const yt = { class: "konnectio-event-listing-action" }, _t = { class: "konnectio-event-listing-action-button" }, $t = /* @__PURE__ */ j({
58
+ const Dt = { class: "konnectio-event-listing-action" }, Vt = { class: "konnectio-event-listing-action-button" }, Et = /* @__PURE__ */ Y({
60
59
  __name: "_",
61
60
  props: {
62
61
  name: {},
@@ -78,28 +77,28 @@ const yt = { class: "konnectio-event-listing-action" }, _t = { class: "konnectio
78
77
  trackingEnabled: { type: Boolean },
79
78
  callback: {}
80
79
  },
81
- setup(u) {
82
- const { t: n } = ae(), s = u, { display: d } = je(), {
80
+ setup(c) {
81
+ const { t: n } = ae(), s = c, { display: d } = Te(), {
83
82
  maxNumberOfPeople: l,
84
- numberOfPeople: _,
83
+ numberOfPeople: $,
85
84
  eventId: b,
86
- tableGroupId: $
87
- } = Q(H()), {
88
- getTemplateAvailability: c,
85
+ tableGroupId: w
86
+ } = H(j()), {
87
+ getTemplateAvailability: u,
89
88
  getEventAvailability: v,
90
- isEventListingLoading: k
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({
89
+ isEventListingLoading: y
90
+ } = j(), _ = Ge(0), S = le(() => y(s.listingId)), P = () => {
91
+ _.value > 0 ? (b.value = s.listingId, $.value = _.value, u(s.callback)) : d({
93
92
  type: "error",
94
93
  message: n("alert.error.selectPeople")
95
94
  });
96
- }, P = () => {
97
- y.value > 0 ? (b.value = s.listingId, $.value = s.tableGroupId, _.value = y.value, v(s.callback)) : d({
95
+ }, O = () => {
96
+ _.value > 0 ? (b.value = s.listingId, w.value = s.tableGroupId, $.value = _.value, v(s.callback)) : d({
98
97
  type: "error",
99
98
  message: n("alert.error.selectPeople")
100
99
  });
101
100
  };
102
- return (i, g) => (a(), T(nt, {
101
+ return (i, g) => (a(), V(st, {
103
102
  type: "event",
104
103
  "listing-id": i.listingId,
105
104
  gallery: i.gallery,
@@ -107,30 +106,30 @@ const yt = { class: "konnectio-event-listing-action" }, _t = { class: "konnectio
107
106
  description: i.description,
108
107
  "prices-from": i.fromPrice,
109
108
  "to-date": i.toDate,
110
- layout: e(Ze).Event
109
+ layout: e(Ke).Event
111
110
  }, {
112
111
  description: p(() => [
113
112
  ne(i.$slots, "description", { maxNumberOfPeople: e(l) }, void 0, !0)
114
113
  ]),
115
114
  action: p(() => [
116
- t("div", yt, [
115
+ t("div", Dt, [
117
116
  f(oe, {
118
- modelValue: y.value,
119
- "onUpdate:modelValue": g[0] || (g[0] = (O) => y.value = O),
117
+ modelValue: _.value,
118
+ "onUpdate:modelValue": g[0] || (g[0] = (B) => _.value = B),
120
119
  label: e(n)("event.numberOfGuests"),
121
120
  icon: "users",
122
121
  "icon-type": "fas",
123
122
  "icon-placement": "label",
124
- description: i.maxGuests <= 20 ? `${e(n)("general.availableFor")}: 1 - ${i.maxGuests} ${e(Ye)(e(n)("general.guests"))}` : void 0,
123
+ description: i.maxGuests <= 20 ? `${e(n)("general.availableFor")}: 1 - ${i.maxGuests} ${e(Je)(e(n)("general.guests"))}` : void 0,
125
124
  "min-value": 0,
126
125
  "max-value": i.maxOnlineReservationLimit || i.maxGuests || e(l) || 1 / 0
127
126
  }, null, 8, ["modelValue", "label", "description", "max-value"]),
128
- t("div", _t, [
127
+ t("div", Vt, [
129
128
  f(me, {
130
129
  label: i.soldOut ? e(n)("event.soldOut") : e(n)("event.bookNowButton"),
131
130
  disabled: i.soldOut,
132
- "is-loading": C.value,
133
- onClickEvent: g[1] || (g[1] = (O) => i.type === "event" ? P() : D())
131
+ "is-loading": S.value,
132
+ onClickEvent: g[1] || (g[1] = (B) => i.type === "event" ? O() : P())
134
133
  }, null, 8, ["label", "disabled", "is-loading"])
135
134
  ])
136
135
  ])
@@ -138,8 +137,8 @@ const yt = { class: "konnectio-event-listing-action" }, _t = { class: "konnectio
138
137
  _: 3
139
138
  }, 8, ["listing-id", "gallery", "name", "description", "prices-from", "to-date", "layout"]));
140
139
  }
141
- }), Ae = /* @__PURE__ */ se($t, [["__scopeId", "data-v-a29b3262"]]), wt = ["innerHTML"], Et = { class: "konnectio-event-listing-information-new" };
142
- const Tt = { class: "konnectio-pill-button" }, Vt = { class: "konnectio-pill-button" }, Dt = /* @__PURE__ */ j({
140
+ }), Ce = /* @__PURE__ */ se(Et, [["__scopeId", "data-v-a29b3262"]]), Tt = ["innerHTML"], Pt = { class: "konnectio-event-listing-information-new" };
141
+ const Ot = { class: "konnectio-pill-button" }, At = { class: "konnectio-pill-button" }, Ct = /* @__PURE__ */ Y({
143
142
  __name: "Event",
144
143
  props: {
145
144
  name: {},
@@ -160,15 +159,15 @@ const Tt = { class: "konnectio-pill-button" }, Vt = { class: "konnectio-pill-but
160
159
  trackingEnabled: { type: Boolean },
161
160
  callback: {}
162
161
  },
163
- setup(u) {
164
- const n = u, { t: s } = ae(), d = le(() => {
162
+ setup(c) {
163
+ const n = c, { t: s } = ae(), d = le(() => {
165
164
  const l = n.length.split(":");
166
- return console.log(l), kt(
165
+ return console.log(l), wt(
167
166
  new Date(2e3, 0, 1, Number(l[0]), Number(l[1]), 0),
168
167
  new Date(2e3, 0, 1, 0, 0, 0)
169
168
  );
170
169
  });
171
- return (l, _) => (a(), T(Ae, {
170
+ return (l, $) => (a(), V(Ce, {
172
171
  "listing-id": l.listingId,
173
172
  name: l.name,
174
173
  description: l.description,
@@ -183,11 +182,11 @@ const Tt = { class: "konnectio-pill-button" }, Vt = { class: "konnectio-pill-but
183
182
  description: p(() => [
184
183
  l.description ? (a(), m("p", {
185
184
  key: 0,
186
- innerHTML: e(Ve)(l.description)
187
- }, null, 8, wt)) : h("", !0),
188
- t("ul", Et, [
185
+ innerHTML: e(Pe)(l.description)
186
+ }, null, 8, Tt)) : h("", !0),
187
+ t("ul", Pt, [
189
188
  h("", !0),
190
- t("li", Tt, [
189
+ t("li", Ot, [
191
190
  t("div", null, [
192
191
  f(pe, {
193
192
  icon: "calendar-clock",
@@ -197,7 +196,7 @@ const Tt = { class: "konnectio-pill-button" }, Vt = { class: "konnectio-pill-but
197
196
  ]),
198
197
  t("span", null, o(d.value), 1)
199
198
  ]),
200
- t("li", Vt, [
199
+ t("li", At, [
201
200
  t("div", null, [
202
201
  f(pe, {
203
202
  icon: "calendar-clock",
@@ -205,14 +204,14 @@ const Tt = { class: "konnectio-pill-button" }, Vt = { class: "konnectio-pill-but
205
204
  }),
206
205
  t("span", null, o(e(s)("event.startAndEndTime")), 1)
207
206
  ]),
208
- t("span", null, o(e(Je)(l.timeFrom, l.timeTo)), 1)
207
+ t("span", null, o(e(Xe)(l.timeFrom, l.timeTo)), 1)
209
208
  ])
210
209
  ])
211
210
  ]),
212
211
  _: 1
213
212
  }, 8, ["listing-id", "name", "description", "gallery", "prices-from", "table-group-id", "max-guests", "to-date", "callback"]));
214
213
  }
215
- }), Pt = /* @__PURE__ */ se(Dt, [["__scopeId", "data-v-148bf11e"]]), At = ["innerHTML"], Ct = /* @__PURE__ */ j({
214
+ }), St = /* @__PURE__ */ se(Ct, [["__scopeId", "data-v-148bf11e"]]), Bt = ["innerHTML"], Lt = /* @__PURE__ */ Y({
216
215
  __name: "Template",
217
216
  props: {
218
217
  name: {},
@@ -228,8 +227,8 @@ const Tt = { class: "konnectio-pill-button" }, Vt = { class: "konnectio-pill-but
228
227
  trackingEnabled: { type: Boolean },
229
228
  callback: {}
230
229
  },
231
- setup(u) {
232
- const n = u, s = le(() => {
230
+ setup(c) {
231
+ const n = c, s = le(() => {
233
232
  if (n.image)
234
233
  return [{
235
234
  large: n.image,
@@ -238,7 +237,7 @@ const Tt = { class: "konnectio-pill-button" }, Vt = { class: "konnectio-pill-but
238
237
  url: n.image
239
238
  }];
240
239
  });
241
- return (d, l) => (a(), T(Ae, {
240
+ return (d, l) => (a(), V(Ce, {
242
241
  "listing-id": d.listingId,
243
242
  gallery: s.value,
244
243
  name: d.name,
@@ -251,129 +250,129 @@ const Tt = { class: "konnectio-pill-button" }, Vt = { class: "konnectio-pill-but
251
250
  description: p(() => [
252
251
  d.description ? (a(), m("p", {
253
252
  key: 0,
254
- innerHTML: e(Ve)(d.description)
255
- }, null, 8, At)) : h("", !0)
253
+ innerHTML: e(Pe)(d.description)
254
+ }, null, 8, Bt)) : h("", !0)
256
255
  ]),
257
256
  _: 1
258
257
  }, 8, ["listing-id", "gallery", "name", "description", "prices-from", "to-date", "callback"]));
259
258
  }
260
- }), Ot = { key: 0 }, Bt = { key: 1 }, St = { key: 2 }, Lt = { key: 3 }, It = { key: 4 }, Nt = { key: 5 }, Mt = { key: 0 }, de = /* @__PURE__ */ j({
259
+ }), It = { key: 0 }, Nt = { key: 1 }, Mt = { key: 2 }, Rt = { key: 3 }, Ut = { key: 4 }, Ft = { key: 5 }, Gt = { key: 0 }, de = /* @__PURE__ */ Y({
261
260
  __name: "EventReservationForm",
262
261
  props: {
263
262
  showGiftCard: { type: Boolean, default: !1 },
264
263
  showTermsNotice: { type: Boolean, default: !1 }
265
264
  },
266
- setup(u) {
267
- const { t: n } = ae(), s = Fe(), {
265
+ setup(c) {
266
+ const { t: n } = ae(), s = qe(), {
268
267
  areListingsAvailable: d,
269
268
  arrivalTime: l,
270
- numberOfPeople: _,
269
+ numberOfPeople: $,
271
270
  numberOfRooms: b,
272
- numberOfTotalDays: $,
273
- isTemplateEvent: c,
271
+ numberOfTotalDays: w,
272
+ isTemplateEvent: u,
274
273
  length: v,
275
- fromDate: k,
276
- tableBasePrice: y,
277
- getTemplateData: C,
278
- basePrice: D,
279
- totalPrice: P,
274
+ fromDate: y,
275
+ tableBasePrice: _,
276
+ getTemplateData: S,
277
+ basePrice: P,
278
+ totalPrice: O,
280
279
  weekendFee: i,
281
280
  roomUpgrade: g,
282
- discountCode: O
283
- } = Q(H()), { totalAddonPrice: W, validateDiscountCode: ie } = H(), { currency: x } = Q(De());
284
- return (L, X) => (a(), T(ot, {
285
- "discount-code": e(O),
286
- "onUpdate:discountCode": X[0] || (X[0] = (U) => M(O) ? O.value = U : null),
281
+ discountCode: B
282
+ } = H(j()), { totalAddonPrice: J, validateDiscountCode: ie } = j(), { currency: K } = H(Oe());
283
+ return (I, X) => (a(), V(it, {
284
+ "discount-code": e(B),
285
+ "onUpdate:discountCode": X[0] || (X[0] = (G) => R(B) ? B.value = G : null),
287
286
  "validate-discount-code": e(ie),
288
- "show-gift-card": L.showGiftCard,
289
- "show-terms-notice": L.showTermsNotice,
287
+ "show-gift-card": I.showGiftCard,
288
+ "show-terms-notice": I.showTermsNotice,
290
289
  "is-sidebar-loading": !e(d),
291
- "base-price": e(D),
292
- "total-price": e(P),
290
+ "base-price": e(P),
291
+ "total-price": e(O),
293
292
  "weekend-fee": e(i),
294
293
  "room-upgrade": e(g),
295
294
  notice: e(n)("hotel.reservationNotice")
296
- }, Ue({
295
+ }, ze({
297
296
  form: p(() => [
298
- ne(L.$slots, "form")
297
+ ne(I.$slots, "form")
299
298
  ]),
300
299
  "reservation-summary": p(() => [
301
- e(c) ? (a(), m("li", Ot, [
300
+ e(u) ? (a(), m("li", It, [
302
301
  t("span", null, o(e(n)("booking.reservation.arrival")), 1),
303
- t("b", null, o(e(ke)(e(k))), 1)
302
+ t("b", null, o(e(ye)(e(y))), 1)
304
303
  ])) : h("", !0),
305
- e(c) ? (a(), m("li", Bt, [
304
+ e(u) ? (a(), m("li", Nt, [
306
305
  t("span", null, o(e(n)("booking.reservation.departure")), 1),
307
- t("b", null, o(e(ke)(e(k), e($))), 1)
306
+ t("b", null, o(e(ye)(e(y), e(w))), 1)
308
307
  ])) : h("", !0),
309
308
  t("li", null, [
310
309
  t("span", null, o(e(n)("event.numberOfGuests")), 1),
311
- t("b", null, o(e(_)), 1)
310
+ t("b", null, o(e($)), 1)
312
311
  ]),
313
- e(c) ? (a(), m("li", St, [
312
+ e(u) ? (a(), m("li", Mt, [
314
313
  t("span", null, o(e(n)("event.numberOfRooms")), 1),
315
314
  t("b", null, o(e(b)), 1)
316
315
  ])) : h("", !0),
317
- e(c) ? (a(), m("li", Lt, [
316
+ e(u) ? (a(), m("li", Rt, [
318
317
  t("span", null, o(e(n)("event.numberOfDays")), 1),
319
- t("b", null, o(e($)), 1)
318
+ t("b", null, o(e(w)), 1)
320
319
  ])) : h("", !0),
321
- !e(c) && e(l) ? (a(), m("li", It, [
320
+ !e(u) && e(l) ? (a(), m("li", Ut, [
322
321
  t("span", null, o(e(n)("event.startOfEvent")), 1),
323
322
  t("b", null, o(e(ve)(e(l))), 1)
324
323
  ])) : h("", !0),
325
- !e(c) && e(v) ? (a(), m("li", Nt, [
324
+ !e(u) && e(v) ? (a(), m("li", Ft, [
326
325
  t("span", null, o(e(n)("event.lengthOfEvent")), 1),
327
326
  t("b", null, o(e(ve)(e(v))), 1)
328
327
  ])) : h("", !0)
329
328
  ]),
330
329
  "price-summary": p(() => [
331
- !e(c) && e(y) > 0 ? (a(), m("li", Mt, [
330
+ !e(u) && e(_) > 0 ? (a(), m("li", Gt, [
332
331
  t("span", null, o(e(n)("booking.availability.basePrice")), 1),
333
- t("b", null, o(e(R)(e(y), e(x))), 1)
332
+ t("b", null, o(e(U)(e(_), e(K))), 1)
334
333
  ])) : h("", !0),
335
- e(C) ? (a(!0), m(S, { key: 1 }, G(e(C), ({ roomGroupId: U }, ee) => (a(), m("li", { key: U }, [
334
+ e(S) ? (a(!0), m(L, { key: 1 }, q(e(S), ({ roomGroupId: G }, ee) => (a(), m("li", { key: G }, [
336
335
  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)
336
+ t("b", null, o(e(U)(e(J)(G, ee), e(K))), 1)
338
337
  ]))), 128)) : h("", !0)
339
338
  ]),
340
339
  navigation: p(() => [
341
- ne(L.$slots, "navigation")
340
+ ne(I.$slots, "navigation")
342
341
  ]),
343
342
  _: 2
344
343
  }, [
345
344
  e(s).sidebar ? {
346
345
  name: "sidebar",
347
346
  fn: p(() => [
348
- ne(L.$slots, "sidebar")
347
+ ne(I.$slots, "sidebar")
349
348
  ]),
350
349
  key: "0"
351
350
  } : void 0
352
351
  ]), 1032, ["discount-code", "validate-discount-code", "show-gift-card", "show-terms-notice", "is-sidebar-loading", "base-price", "total-price", "weekend-fee", "room-upgrade", "notice"]));
353
352
  }
354
- }), Rt = { class: "event-skeleton" }, Ft = { class: "event-skeleton-content" }, Ut = { class: "event-skeleton-sidebar" }, zt = /* @__PURE__ */ j({
353
+ }), qt = { class: "event-skeleton" }, zt = { class: "event-skeleton-content" }, Ht = { class: "event-skeleton-sidebar" }, jt = /* @__PURE__ */ Y({
355
354
  __name: "EventSkeleton",
356
- setup(u) {
357
- return (n, s) => (a(), m("div", Rt, [
358
- t("div", Ft, [
359
- f(Pe)
355
+ setup(c) {
356
+ return (n, s) => (a(), m("div", qt, [
357
+ t("div", zt, [
358
+ f(Ae)
360
359
  ]),
361
- t("div", Ut, [
360
+ t("div", Ht, [
362
361
  h("", !0),
363
- f(lt)
362
+ f(rt)
364
363
  ])
365
364
  ]));
366
365
  }
367
- }), Gt = /* @__PURE__ */ se(zt, [["__scopeId", "data-v-3e15c4e3"]]), F = (u) => (Ge("data-v-3b118dcb"), u = u(), qe(), u), qt = {
366
+ }), Yt = /* @__PURE__ */ se(jt, [["__scopeId", "data-v-3e15c4e3"]]), F = (c) => (je("data-v-a7239480"), c = c(), Ye(), c), Zt = {
368
367
  key: 0,
369
368
  id: "konnectio-event-listings-wrapper"
370
369
  };
371
- const Ht = { class: "konnectio-event-listings" };
372
- const jt = { class: "konnectio-event-listings" }, Yt = { class: "konnectio-panel" }, Zt = {
370
+ const Qt = { class: "konnectio-event-listings" };
371
+ const Wt = { class: "konnectio-event-listings" }, xt = { class: "konnectio-panel" }, Jt = {
373
372
  key: 1,
374
373
  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)), 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({
374
+ }, Kt = { class: "konnectio-table with-lines" }, Xt = /* @__PURE__ */ F(() => /* @__PURE__ */ t("th", { class: "konnectio-event-addons-input" }, null, -1)), en = { class: "konnectio-event-addons-price" }, tn = /* @__PURE__ */ F(() => /* @__PURE__ */ t("br", null, null, -1)), nn = { class: "konnectio-event-addons-input" }, on = { class: "konnectio-event-addons-price" }, ln = /* @__PURE__ */ F(() => /* @__PURE__ */ t("td", null, null, -1)), an = /* @__PURE__ */ F(() => /* @__PURE__ */ t("td", null, null, -1)), sn = { class: "konnectio-event-addons-price" }, rn = { key: 2 };
375
+ const un = { key: 3 }, cn = { class: "konnectio-label required" }, dn = { class: "konnectio-table with-lines" }, mn = /* @__PURE__ */ F(() => /* @__PURE__ */ t("th", { class: "konnectio-event-addons-input" }, null, -1)), pn = { class: "konnectio-event-addons-price" }, vn = /* @__PURE__ */ F(() => /* @__PURE__ */ t("br", null, null, -1)), fn = /* @__PURE__ */ F(() => /* @__PURE__ */ t("br", null, null, -1)), bn = { class: "konnectio-event-addons-input" }, gn = { class: "konnectio-event-addons-price" }, hn = ["onClick"], kn = { class: "konnectio-panel" }, yn = ["onClick"], _n = /* @__PURE__ */ Y({
377
376
  name: "EventLayout",
378
377
  __name: "Event",
379
378
  props: {
@@ -382,221 +381,238 @@ const ln = { key: 3 }, an = { class: "konnectio-label required" }, sn = { class:
382
381
  selectedLocation: {},
383
382
  styling: {}
384
383
  },
385
- setup(u) {
384
+ setup(c) {
386
385
  const { t: n } = ae(), {
387
386
  addons: s,
388
387
  products: d,
389
388
  numberOfDays: l,
390
- name: _,
389
+ name: $,
391
390
  phone: b,
392
- email: $,
393
- remark: c,
391
+ email: w,
392
+ remark: u,
394
393
  arrivalTime: v,
395
- hasEvents: k,
396
- hasTemplates: y,
397
- getEvents: C,
398
- getTemplates: D,
399
- getEventData: P,
394
+ hasEvents: y,
395
+ hasTemplates: _,
396
+ getEvents: S,
397
+ getTemplates: P,
398
+ getEventData: O,
400
399
  getTemplateData: i,
401
400
  getEventTableData: g,
402
- hasProducts: O,
403
- eventRateType: W,
401
+ hasProducts: B,
402
+ eventRateType: J,
404
403
  areListingsAvailable: ie,
405
- isAvailabilityDataAvailable: x,
406
- isTemplateEvent: L,
404
+ isAvailabilityDataAvailable: K,
405
+ isTemplateEvent: I,
407
406
  hasListingData: X,
408
- isPaymentLoading: U,
407
+ isPaymentLoading: G,
409
408
  isReservationFormFilled: ee
410
- } = Q(H()), {
411
- initialize: Ce,
412
- fetchListings: Oe,
413
- createBooking: Be,
409
+ } = H(j()), { currency: Z } = H(Oe()), { eventDate: Se } = H(et()), {
410
+ initialize: Be,
411
+ fetchListings: Le,
412
+ createBooking: Ie,
414
413
  localAddonPrice: fe,
415
- totalAddonPrice: Se,
414
+ totalAddonPrice: Ne,
416
415
  reset: be
417
- } = H(), { currency: Y } = Q(De()), Le = le(() => {
418
- const B = [];
419
- return g.value && g.value.forEach((w) => {
420
- B.push({
421
- label: ve(w.time),
422
- value: w.time
416
+ } = j(), { display: ge } = Te(), Me = le(() => {
417
+ const E = [];
418
+ return g.value && g.value.forEach((k) => {
419
+ E.push({
420
+ label: ve(k.time),
421
+ value: k.time
423
422
  });
424
- }), B;
423
+ }), E;
425
424
  });
426
- function Ie() {
427
- Oe();
425
+ function Re() {
426
+ const E = ot("hash-params", {
427
+ removeNullishValues: !0
428
+ });
429
+ parseInt(E.eId);
430
+ const k = E.date;
431
+ if (k)
432
+ if (lt(k)) {
433
+ const A = new Date(k);
434
+ A >= /* @__PURE__ */ new Date() ? (Se.value = A, E.date = void 0) : ge({
435
+ message: n("alert.error.invalidDateRange"),
436
+ type: "error"
437
+ });
438
+ } else
439
+ ge({
440
+ message: n("alert.error.wrongDateFormat"),
441
+ type: "error"
442
+ });
443
+ Le();
428
444
  }
429
- return (B, w) => (a(), T(Qe, { styling: B.styling }, {
445
+ return (E, k) => (a(), V(nt, { styling: E.styling }, {
430
446
  default: p(() => [
431
- (a(), T(ze, { onResolve: Ie }, {
447
+ (a(), V(He, { onResolve: Re }, {
432
448
  default: p(() => [
433
- f(dt, {
449
+ f(bt, {
434
450
  id: "konnectio-event-module",
435
- "access-token": B.accessToken,
436
- callback: e(Ce)
451
+ "access-token": E.accessToken,
452
+ callback: e(Be)
437
453
  }, {
438
454
  default: p(() => [
439
- f(at, null, {
440
- availability: p(({ next: z }) => [
455
+ f(ut, null, {
456
+ availability: p(({ next: A }) => [
441
457
  f(de, null, {
442
458
  sidebar: p(() => [
443
- f(ut, {
459
+ f(yt, {
444
460
  redirection: !1,
445
- "selected-location": Number(B.selectedLocation)
461
+ "selected-location": Number(E.selectedLocation)
446
462
  }, null, 8, ["selected-location"])
447
463
  ]),
448
464
  form: p(() => [
449
- e(X) && e(ie) ? (a(), m("div", qt, [
450
- e(k) && B.onlyShow !== "templates" ? (a(), m(S, { key: 0 }, [
465
+ e(X) && e(ie) ? (a(), m("div", Zt, [
466
+ e(y) && E.onlyShow !== "templates" ? (a(), m(L, { key: 0 }, [
451
467
  h("", !0),
452
- t("ul", Ht, [
453
- (a(!0), m(S, null, G(e(C), ({
454
- id: A,
468
+ t("ul", Qt, [
469
+ (a(!0), m(L, null, q(e(S), ({
470
+ id: C,
455
471
  days: r,
456
- name: I,
457
- timeFrom: N,
458
- timeTo: E,
459
- fromDate: V,
460
- toDate: Z,
461
- tableGroupId: J,
472
+ name: N,
473
+ timeFrom: M,
474
+ timeTo: D,
475
+ fromDate: T,
476
+ toDate: Q,
477
+ tableGroupId: W,
462
478
  description: re,
463
- soldOut: ce,
464
- length: K,
465
- images: Ne,
466
- maxOnlineReservationLimit: Me
467
- }) => (a(), T(Pt, {
468
- key: A,
479
+ soldOut: ue,
480
+ length: x,
481
+ images: Ue,
482
+ maxOnlineReservationLimit: Fe
483
+ }) => (a(), V(St, {
484
+ key: C,
469
485
  type: "event",
470
- "listing-id": A,
471
- "table-group-id": J,
486
+ "listing-id": C,
487
+ "table-group-id": W,
472
488
  description: re,
473
- name: I,
474
- length: K,
475
- gallery: Ne,
489
+ name: N,
490
+ length: x,
491
+ gallery: Ue,
476
492
  days: r,
477
- "from-date": V,
478
- "to-date": Z,
479
- "max-online-reservation-limit": Me,
480
- "time-from": N,
481
- "time-to": E,
482
- "sold-out": ce,
483
- callback: z
493
+ "from-date": T,
494
+ "to-date": Q,
495
+ "max-online-reservation-limit": Fe,
496
+ "time-from": M,
497
+ "time-to": D,
498
+ "sold-out": ue,
499
+ callback: A
484
500
  }, 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))
485
501
  ])
486
502
  ], 64)) : h("", !0),
487
- e(y) && B.onlyShow !== "events" ? (a(), m(S, { key: 1 }, [
503
+ e(_) && E.onlyShow !== "events" ? (a(), m(L, { key: 1 }, [
488
504
  h("", !0),
489
- t("ul", jt, [
490
- (a(!0), m(S, null, G(e(D), ({
491
- id: A,
505
+ t("ul", Wt, [
506
+ (a(!0), m(L, null, q(e(P), ({
507
+ id: C,
492
508
  name: r,
493
- fromDate: I,
494
- toDate: N,
495
- minimumPersonCount: E,
496
- fromPrice: V,
497
- description: Z,
498
- imageUrl: J
499
- }) => (a(), T(Ct, {
500
- key: A,
501
- "listing-id": A,
509
+ fromDate: N,
510
+ toDate: M,
511
+ minimumPersonCount: D,
512
+ fromPrice: T,
513
+ description: Q,
514
+ imageUrl: W
515
+ }) => (a(), V(Lt, {
516
+ key: C,
517
+ "listing-id": C,
502
518
  name: r,
503
- image: J,
504
- description: Z,
505
- "from-date": I,
506
- "to-date": N,
507
- "minimum-person-count": E,
508
- fromPrice: V,
509
- callback: z
519
+ image: W,
520
+ description: Q,
521
+ "from-date": N,
522
+ "to-date": M,
523
+ "minimum-person-count": D,
524
+ fromPrice: T,
525
+ callback: A
510
526
  }, null, 8, ["listing-id", "name", "image", "description", "from-date", "to-date", "minimum-person-count", "fromPrice", "callback"]))), 128))
511
527
  ])
512
528
  ], 64)) : h("", !0)
513
- ])) : (a(), T(Pe, { key: 1 }))
529
+ ])) : (a(), V(Ae, { key: 1 }))
514
530
  ]),
515
531
  _: 2
516
532
  }, 1024)
517
533
  ]),
518
- addons: p(({ next: z, prev: A }) => [
519
- e(x) ? (a(), T(de, { key: 0 }, {
534
+ addons: p(({ next: A, prev: C }) => [
535
+ e(K) ? (a(), V(de, { key: 0 }, {
520
536
  form: p(() => [
521
- t("form", Yt, [
537
+ t("form", xt, [
522
538
  t("h2", null, [
523
539
  t("span", null, o(e(n)("booking.reservation.addons")), 1)
524
540
  ]),
525
- e(W) === e(ye).FullDayEvent ? (a(), T(oe, {
541
+ e(J) === e(_e).FullDayEvent ? (a(), V(oe, {
526
542
  key: 0,
527
543
  modelValue: e(l),
528
- "onUpdate:modelValue": w[0] || (w[0] = (r) => M(l) ? l.value = r : null),
544
+ "onUpdate:modelValue": k[0] || (k[0] = (r) => R(l) ? l.value = r : null),
529
545
  label: e(n)("event.numberOfDays"),
530
546
  "min-value": 1,
531
547
  required: ""
532
548
  }, null, 8, ["modelValue", "label"])) : h("", !0),
533
- e(i) && e(i).length > 0 ? (a(), m("ul", Zt, [
534
- (a(!0), m(S, null, G(e(i), ({
549
+ e(i) && e(i).length > 0 ? (a(), m("ul", Jt, [
550
+ (a(!0), m(L, null, q(e(i), ({
535
551
  roomGroupId: r,
536
- addons: I,
537
- adultPerRoom: N
538
- }, E) => (a(), m("li", { key: r }, [
552
+ addons: N,
553
+ adultPerRoom: M
554
+ }, D) => (a(), m("li", { key: r }, [
539
555
  t("h5", null, [
540
- t("span", null, o(e(n)("booking.reservation.room")) + " #" + o(E + 1), 1),
541
- ge(" ("),
556
+ t("span", null, o(e(n)("booking.reservation.room")) + " #" + o(D + 1), 1),
557
+ he(" ("),
542
558
  f(pe, {
543
559
  icon: "male",
544
560
  type: "fas",
545
561
  color: "header"
546
562
  }),
547
- ge(" " + o(N) + ") ", 1)
563
+ he(" " + o(M) + ") ", 1)
548
564
  ]),
549
- t("table", Jt, [
565
+ t("table", Kt, [
550
566
  t("thead", null, [
551
567
  t("tr", null, [
552
568
  t("th", null, [
553
569
  t("span", null, o(e(n)("booking.reservation.addons")), 1)
554
570
  ]),
555
- Kt,
556
- t("th", Qt, [
571
+ Xt,
572
+ t("th", en, [
557
573
  t("span", null, o(e(n)("booking.availability.price")), 1)
558
574
  ])
559
575
  ])
560
576
  ]),
561
577
  t("tbody", null, [
562
- (a(!0), m(S, null, G(I, ({
563
- id: V,
564
- cardinality: Z,
565
- name: J,
578
+ (a(!0), m(L, null, q(N, ({
579
+ id: T,
580
+ cardinality: Q,
581
+ name: W,
566
582
  price: re,
567
- quantityStrategy: ce
568
- }) => (a(), m("tr", { key: V }, [
583
+ quantityStrategy: ue
584
+ }) => (a(), m("tr", { key: T }, [
569
585
  t("td", null, [
570
- t("b", null, o(J), 1),
571
- Wt,
572
- t("span", null, o(e(R)(re, e(Y))) + " " + o(e(Ke)(ce)), 1)
586
+ t("b", null, o(W), 1),
587
+ tn,
588
+ t("span", null, o(e(U)(re, e(Z))) + " " + o(e(tt)(ue)), 1)
573
589
  ]),
574
- t("td", xt, [
575
- Z === 3 ? (a(), T(oe, {
590
+ t("td", nn, [
591
+ Q === 3 ? (a(), V(oe, {
576
592
  key: 0,
577
- modelValue: e(s)[`${r}.${V}.${E}`],
578
- "onUpdate:modelValue": (K) => e(s)[`${r}.${V}.${E}`] = K,
593
+ modelValue: e(s)[`${r}.${T}.${D}`],
594
+ "onUpdate:modelValue": (x) => e(s)[`${r}.${T}.${D}`] = x,
579
595
  small: !0,
580
596
  "min-value": 0
581
- }, null, 8, ["modelValue", "onUpdate:modelValue"])) : (a(), T(vt, {
597
+ }, null, 8, ["modelValue", "onUpdate:modelValue"])) : (a(), V(gt, {
582
598
  key: 1,
583
- modelValue: e(s)[`${r}.${V}.${E}`],
584
- "onUpdate:modelValue": (K) => e(s)[`${r}.${V}.${E}`] = K,
599
+ modelValue: e(s)[`${r}.${T}.${D}`],
600
+ "onUpdate:modelValue": (x) => e(s)[`${r}.${T}.${D}`] = x,
585
601
  numeric: !0
586
602
  }, null, 8, ["modelValue", "onUpdate:modelValue"]))
587
603
  ]),
588
- t("td", Xt, [
589
- t("span", null, o(e(R)(e(fe)(V, r, E), e(Y))), 1)
604
+ t("td", on, [
605
+ t("span", null, o(e(U)(e(fe)(T, r, D), e(Z))), 1)
590
606
  ])
591
607
  ]))), 128))
592
608
  ]),
593
609
  t("tfoot", null, [
594
610
  t("tr", null, [
595
- en,
596
- tn,
597
- t("td", nn, [
611
+ ln,
612
+ an,
613
+ t("td", sn, [
598
614
  t("u", null, [
599
- t("span", null, o(e(R)(e(Se)(r, E), e(Y))), 1)
615
+ t("span", null, o(e(U)(e(Ne)(r, D), e(Z))), 1)
600
616
  ])
601
617
  ])
602
618
  ])
@@ -604,54 +620,54 @@ const ln = { key: 3 }, an = { class: "konnectio-label required" }, sn = { class:
604
620
  ])
605
621
  ]))), 128))
606
622
  ])) : h("", !0),
607
- e(W) !== e(ye).FullDayEvent && !e(L) ? (a(), m("div", on, [
623
+ e(J) !== e(_e).FullDayEvent && !e(I) ? (a(), m("div", rn, [
608
624
  h("", !0),
609
- f(st, {
625
+ f(ct, {
610
626
  modelValue: e(v),
611
- "onUpdate:modelValue": w[1] || (w[1] = (r) => M(v) ? v.value = r : null),
627
+ "onUpdate:modelValue": k[1] || (k[1] = (r) => R(v) ? v.value = r : null),
612
628
  label: e(n)("event.selectArrivalTime"),
613
629
  name: "eventTimeTable",
614
- checkboxes: Le.value,
630
+ checkboxes: Me.value,
615
631
  required: ""
616
632
  }, null, 8, ["modelValue", "label", "checkboxes"])
617
633
  ])) : h("", !0),
618
- e(O) ? (a(), m("div", ln, [
619
- t("label", an, [
634
+ e(B) ? (a(), m("div", un, [
635
+ t("label", cn, [
620
636
  t("span", null, o(e(n)("event.selectProducts")), 1)
621
637
  ]),
622
- t("table", sn, [
638
+ t("table", dn, [
623
639
  t("thead", null, [
624
640
  t("tr", null, [
625
641
  t("th", null, [
626
642
  t("span", null, o(e(n)("booking.reservation.addons")), 1)
627
643
  ]),
628
- rn,
629
- t("th", cn, [
644
+ mn,
645
+ t("th", pn, [
630
646
  t("span", null, o(e(n)("booking.availability.price")), 1)
631
647
  ])
632
648
  ])
633
649
  ]),
634
650
  t("tbody", null, [
635
- (a(!0), m(S, null, G(e(P).products, ({ productID: r, productName: I, price: N, description: E }) => (a(), m("tr", { key: r }, [
651
+ (a(!0), m(L, null, q(e(O).products, ({ productID: r, productName: N, price: M, description: D }) => (a(), m("tr", { key: r }, [
636
652
  t("td", null, [
637
653
  t("b", null, [
638
- t("span", null, o(I), 1)
654
+ t("span", null, o(N), 1)
639
655
  ]),
640
- un,
641
- t("span", null, o(E), 1),
642
- dn,
643
- t("span", null, o(e(R)(N, e(Y))), 1)
656
+ vn,
657
+ t("span", null, o(D), 1),
658
+ fn,
659
+ t("span", null, o(e(U)(M, e(Z))), 1)
644
660
  ]),
645
- t("td", mn, [
661
+ t("td", bn, [
646
662
  f(oe, {
647
663
  modelValue: e(d)[r],
648
- "onUpdate:modelValue": (V) => e(d)[r] = V,
664
+ "onUpdate:modelValue": (T) => e(d)[r] = T,
649
665
  small: !0,
650
666
  "min-value": 0
651
667
  }, null, 8, ["modelValue", "onUpdate:modelValue"])
652
668
  ]),
653
- t("td", pn, [
654
- t("span", null, o(e(R)(e(fe)(r), e(Y))), 1)
669
+ t("td", gn, [
670
+ t("span", null, o(e(U)(e(fe)(r), e(Z))), 1)
655
671
  ])
656
672
  ]))), 128))
657
673
  ])
@@ -663,40 +679,40 @@ const ln = { key: 3 }, an = { class: "konnectio-label required" }, sn = { class:
663
679
  f(me, {
664
680
  label: e(n)("general.startReservation"),
665
681
  "full-width": "",
666
- onClickEvent: z
682
+ onClickEvent: A
667
683
  }, null, 8, ["label", "onClickEvent"]),
668
684
  t("button", {
669
685
  class: "konnectio-abort-reservation link",
670
- onClick: he((r) => e(be)(A), ["prevent"])
686
+ onClick: ke((r) => e(be)(C), ["prevent"])
671
687
  }, [
672
688
  t("span", null, o(e(n)("general.goAStepBack")), 1)
673
- ], 8, vn)
689
+ ], 8, hn)
674
690
  ]),
675
691
  _: 2
676
692
  }, 1024)) : h("", !0)
677
693
  ]),
678
- reservation: p(({ next: z, prev: A }) => [
694
+ reservation: p(({ next: A, prev: C }) => [
679
695
  f(de, {
680
696
  "show-terms-notice": !0,
681
697
  "show-gift-card": !0
682
698
  }, {
683
699
  form: p(() => [
684
- t("form", fn, [
700
+ t("form", kn, [
685
701
  t("h2", null, [
686
702
  t("span", null, o(e(n)("booking.reservation.detailsTitle")), 1)
687
703
  ]),
688
- f(ue, {
689
- modelValue: e(_),
690
- "onUpdate:modelValue": w[2] || (w[2] = (r) => M(_) ? _.value = r : null),
704
+ f(ce, {
705
+ modelValue: e($),
706
+ "onUpdate:modelValue": k[2] || (k[2] = (r) => R($) ? $.value = r : null),
691
707
  type: "text",
692
708
  label: e(n)("booking.reservation.name"),
693
709
  icon: "user-alt",
694
710
  placeholder: e(n)("booking.reservation.namePlaceholder"),
695
711
  required: ""
696
712
  }, null, 8, ["modelValue", "label", "placeholder"]),
697
- f(ue, {
698
- modelValue: e($),
699
- "onUpdate:modelValue": w[3] || (w[3] = (r) => M($) ? $.value = r : null),
713
+ f(ce, {
714
+ modelValue: e(w),
715
+ "onUpdate:modelValue": k[3] || (k[3] = (r) => R(w) ? w.value = r : null),
700
716
  label: e(n)("booking.reservation.email"),
701
717
  type: "email",
702
718
  name: "email",
@@ -705,17 +721,17 @@ const ln = { key: 3 }, an = { class: "konnectio-label required" }, sn = { class:
705
721
  placeholder: e(n)("booking.reservation.emailPlaceholder"),
706
722
  required: ""
707
723
  }, null, 8, ["modelValue", "label", "placeholder"]),
708
- f(ft, {
724
+ f(ht, {
709
725
  modelValue: e(b),
710
- "onUpdate:modelValue": w[4] || (w[4] = (r) => M(b) ? b.value = r : null),
726
+ "onUpdate:modelValue": k[4] || (k[4] = (r) => R(b) ? b.value = r : null),
711
727
  label: e(n)("booking.reservation.phone"),
712
728
  icon: "phone-office",
713
729
  placeholder: e(n)("booking.reservation.phonePlaceholder"),
714
730
  required: ""
715
731
  }, null, 8, ["modelValue", "label", "placeholder"]),
716
- f(ue, {
717
- modelValue: e(c),
718
- "onUpdate:modelValue": w[5] || (w[5] = (r) => M(c) ? c.value = r : null),
732
+ f(ce, {
733
+ modelValue: e(u),
734
+ "onUpdate:modelValue": k[5] || (k[5] = (r) => R(u) ? u.value = r : null),
719
735
  type: "textarea",
720
736
  label: `${e(n)("booking.reservation.remark")} (${e(n)("booking.reservation.optional")})`,
721
737
  icon: "info-circle",
@@ -726,26 +742,26 @@ const ln = { key: 3 }, an = { class: "konnectio-label required" }, sn = { class:
726
742
  navigation: p(() => [
727
743
  f(me, {
728
744
  label: e(n)("general.confirmReservation"),
729
- "is-loading": e(U),
745
+ "is-loading": e(G),
730
746
  disabled: !e(ee),
731
747
  "full-width": "",
732
- onClickEvent: (r) => e(Be)(z)
748
+ onClickEvent: (r) => e(Ie)(A)
733
749
  }, null, 8, ["label", "is-loading", "disabled", "onClickEvent"]),
734
750
  t("button", {
735
751
  class: "konnectio-abort-reservation link",
736
- onClick: he((r) => e(be)(A), ["prevent"])
752
+ onClick: ke((r) => e(be)(C), ["prevent"])
737
753
  }, [
738
754
  t("span", null, o(e(n)("general.goAStepBack")), 1)
739
- ], 8, bn)
755
+ ], 8, yn)
740
756
  ]),
741
757
  _: 2
742
758
  }, 1024)
743
759
  ]),
744
760
  payment: p(() => [
745
- f(bt)
761
+ f(kt)
746
762
  ]),
747
763
  confirmation: p(() => [
748
- f(it, {
764
+ f(dt, {
749
765
  message: e(n)("event.confirmationMessage")
750
766
  }, null, 8, ["message"])
751
767
  ]),
@@ -756,7 +772,7 @@ const ln = { key: 3 }, an = { class: "konnectio-label required" }, sn = { class:
756
772
  }, 8, ["access-token", "callback"])
757
773
  ]),
758
774
  fallback: p(() => [
759
- f(Gt)
775
+ f(Yt)
760
776
  ]),
761
777
  _: 1
762
778
  }))
@@ -764,8 +780,8 @@ const ln = { key: 3 }, an = { class: "konnectio-label required" }, sn = { class:
764
780
  _: 1
765
781
  }, 8, ["styling"]));
766
782
  }
767
- }), te = /* @__PURE__ */ se(gn, [["__scopeId", "data-v-3b118dcb"]]), hn = We(), kn = et();
768
- class yn extends HTMLElement {
783
+ }), te = /* @__PURE__ */ se(_n, [["__scopeId", "data-v-a7239480"]]), $n = Qe(), wn = xe();
784
+ class Dn extends HTMLElement {
769
785
  vueApp;
770
786
  constructor() {
771
787
  super();
@@ -776,24 +792,24 @@ class yn extends HTMLElement {
776
792
  connectedCallback() {
777
793
  const n = typeof te == "function" ? te.options : te;
778
794
  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()), _ = {};
795
+ const d = (u) => u.replace(/[A-Z]+(?![a-z])|[A-Z]/g, (v, y) => (y ? "-" : "") + v.toLowerCase()), l = (u) => u.replace(/-./g, (v) => v[1].toUpperCase()), $ = {};
780
796
  s = s.map(d);
781
797
  const b = {};
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);
798
+ for (const u of this.attributes) {
799
+ const y = u.name.split(".");
800
+ y.length > 1 && (b[y[0]] || (b[y[0]] = {}), b[y[0]][l(y[1])] = u.value);
785
801
  }
786
- for (const c of s) {
787
- let v = this.attributes.getNamedItem(c)?.value;
788
- b.hasOwnProperty(c) && (v = b[c]), _[c] = v;
802
+ for (const u of s) {
803
+ let v = this.attributes.getNamedItem(u)?.value;
804
+ b.hasOwnProperty(u) && (v = b[u]), $[u] = v;
789
805
  }
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 });
791
- const $ = document.createElement("div");
792
- this.vueApp.mount($), this.appendChild($.children[0]);
806
+ this.vueApp = Ze(te, $), this.vueApp.provide("emitter", wn), this.vueApp.use(We), this.vueApp.use($n), this.vueApp.use(mt), this.vueApp.use(pt), this.vueApp.use(at, { bootstrap: !0 });
807
+ const w = document.createElement("div");
808
+ this.vueApp.mount(w), this.appendChild(w.children[0]);
793
809
  }
794
810
  }
795
- window.customElements.define("konnectio-event", yn);
811
+ window.customElements.define("konnectio-event", Dn);
796
812
  export {
797
- yn as default
813
+ Dn as default
798
814
  };
799
815
  //# sourceMappingURL=event.js.map