@konnectio/core 4.0.56-rc49 → 4.0.56-rc50

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 (57) hide show
  1. package/dist/{ActionField-B9sCmWFD.js → ActionField-BQQitCzR.js} +3 -3
  2. package/dist/ActionField-BQQitCzR.js.br +0 -0
  3. package/dist/{AvailabilitySkeleton-sGz2nSbb.js → AvailabilitySkeleton-TZiNrJ8t.js} +102 -96
  4. package/dist/AvailabilitySkeleton-TZiNrJ8t.js.br +0 -0
  5. package/dist/{AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-CPIlC8FY.js → AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-DrUxvwDd.js} +3 -3
  6. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-DrUxvwDd.js.br +0 -0
  7. package/dist/{CheckoutWindow-CrzoIK1a.js → CheckoutWindow-DBBmXrsX.js} +3 -3
  8. package/dist/CheckoutWindow-DBBmXrsX.js.br +0 -0
  9. package/dist/{ErrorMessage-SZPwCpu-.js → ErrorMessage-Dw-TLplp.js} +3 -3
  10. package/dist/ErrorMessage-Dw-TLplp.js.br +0 -0
  11. package/dist/EventAvailabilityForm-DimufYUP.js +437 -0
  12. package/dist/EventAvailabilityForm-DimufYUP.js.br +0 -0
  13. package/dist/{Field-CLXqVSAA.js → Field-B4x3qSfU.js} +3 -3
  14. package/dist/Field-B4x3qSfU.js.br +0 -0
  15. package/dist/{Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-CHFFlMbv.js → Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-CyGcXPO9.js} +2466 -2464
  16. package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-CyGcXPO9.js.br +0 -0
  17. package/dist/{TermsOfService-DBwm3BP2.js → TermsOfService-DLchxC08.js} +4 -4
  18. package/dist/TermsOfService-DLchxC08.js.br +0 -0
  19. package/dist/{_-BOjhcjBA.js → _-C7wxqlYk.js} +2 -2
  20. package/dist/{_.vue_vue_type_style_index_0_lang-BNx_Z1PF.js → _.vue_vue_type_style_index_0_lang-BGyUJK1I.js} +3 -3
  21. package/dist/_.vue_vue_type_style_index_0_lang-BGyUJK1I.js.br +0 -0
  22. package/dist/availability.js +8 -8
  23. package/dist/availability.js.br +0 -0
  24. package/dist/{navigation.js → deep-link.js} +3 -3
  25. package/dist/event.js +146 -146
  26. package/dist/event.js.br +0 -0
  27. package/dist/gift-card-validation.js +22 -22
  28. package/dist/gift-card-validation.js.br +0 -0
  29. package/dist/gift-card.js +10 -10
  30. package/dist/gift-card.js.br +0 -0
  31. package/dist/{giftCard-hEwcI_Rx.js → giftCard-9uCMmY6r.js} +25 -26
  32. package/dist/giftCard-9uCMmY6r.js.br +0 -0
  33. package/dist/hotel.js +561 -557
  34. package/dist/hotel.js.br +0 -0
  35. package/dist/{masonry.plugin-C474cwA-.js → masonry.plugin-C4-Uj22v.js} +10 -10
  36. package/dist/masonry.plugin-C4-Uj22v.js.br +0 -0
  37. package/dist/polyfill.js +99 -98
  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/dist/{tracing-pAUg9FFo.js → tracing-Dm-FNj-F.js} +198 -209
  42. package/dist/tracing-Dm-FNj-F.js.br +0 -0
  43. package/package.json +4 -4
  44. package/dist/ActionField-B9sCmWFD.js.br +0 -0
  45. package/dist/AvailabilitySkeleton-sGz2nSbb.js.br +0 -0
  46. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-CPIlC8FY.js.br +0 -0
  47. package/dist/CheckoutWindow-CrzoIK1a.js.br +0 -0
  48. package/dist/ErrorMessage-SZPwCpu-.js.br +0 -0
  49. package/dist/EventAvailabilityForm-DFuang-b.js +0 -431
  50. package/dist/EventAvailabilityForm-DFuang-b.js.br +0 -0
  51. package/dist/Field-CLXqVSAA.js.br +0 -0
  52. package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-CHFFlMbv.js.br +0 -0
  53. package/dist/TermsOfService-DBwm3BP2.js.br +0 -0
  54. package/dist/_.vue_vue_type_style_index_0_lang-BNx_Z1PF.js.br +0 -0
  55. package/dist/giftCard-hEwcI_Rx.js.br +0 -0
  56. package/dist/masonry.plugin-C474cwA-.js.br +0 -0
  57. package/dist/tracing-pAUg9FFo.js.br +0 -0
package/dist/event.js CHANGED
@@ -1,30 +1,30 @@
1
- import { d as Y, 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, q as qe, S as ze, D as ge, i as he, p as Ge, j as He, k as je } from "./tracing-pAUg9FFo.js";
2
- import { h as ae, a as Ye, s as H, J as Ze, l as oe, C as me, K as Je, _ as se, j as De, A as pe, M as Ke, b as Ve, D as ke, N as ve, B as R, m as Qe, O as ye, P as We, T as ce, n as Xe, o as xe, p as et, q as tt, H as nt, t as ot } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-CHFFlMbv.js";
3
- import { B as lt, R as at, L as Pe, S as st, M as it, C as rt, T as ut, V as ct, G as dt } from "./masonry.plugin-C474cwA-.js";
4
- import { u as j, E as mt } from "./EventAvailabilityForm-DFuang-b.js";
5
- import { _ as pt } from "./_.vue_vue_type_style_index_0_lang-BNx_Z1PF.js";
6
- import { t as G, e as vt, g as _e, m as $e, a as we, b as Ee, c as ft, d as Te } from "./AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-CPIlC8FY.js";
7
- import { a as bt, P as gt, C as ht } from "./CheckoutWindow-CrzoIK1a.js";
8
- import "./navigation.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 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";
8
+ import "./deep-link.js";
9
9
  (function() {
10
10
  try {
11
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] = "53cda170-f9ad-4a25-962e-90eadf66bc37", c._sentryDebugIdIdentifier = "sentry-dbid-53cda170-f9ad-4a25-962e-90eadf66bc37");
12
+ n && (c._sentryDebugIds = c._sentryDebugIds || {}, c._sentryDebugIds[n] = "ca15b457-ec0e-48e0-a27a-9da133de93e8", c._sentryDebugIdIdentifier = "sentry-dbid-ca15b457-ec0e-48e0-a27a-9da133de93e8");
13
13
  } catch {
14
14
  }
15
15
  })();
16
- function kt(c, n) {
16
+ function gt(c, n) {
17
17
  const i = G(c), d = G(n), l = i.getTime() - d.getTime();
18
18
  return l < 0 ? -1 : l > 0 ? 1 : l;
19
19
  }
20
- function yt(c) {
20
+ function ht(c) {
21
21
  return (n) => {
22
22
  const d = (c ? Math[c] : Math.trunc)(n);
23
23
  return d === 0 ? 0 : d;
24
24
  };
25
25
  }
26
- function _t(c, n, i) {
27
- const d = ft(), l = i?.locale ?? d.locale ?? vt, _ = kt(c, n);
26
+ function kt(c, n, i) {
27
+ const d = pt(), l = i?.locale ?? d.locale ?? mt, _ = gt(c, n);
28
28
  if (isNaN(_))
29
29
  throw new RangeError("Invalid time value");
30
30
  const b = Object.assign({}, i, {
@@ -33,9 +33,9 @@ function _t(c, n, i) {
33
33
  });
34
34
  let $, u;
35
35
  _ > 0 ? ($ = G(n), u = G(c)) : ($ = G(c), u = G(n));
36
- const v = yt(i?.roundingMethod ?? "round"), k = u.getTime() - $.getTime(), y = k / Te, C = _e(u) - _e($), V = (k - C) / Te, P = i?.unit;
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
37
  let s;
38
- if (P ? s = P : y < 1 ? s = "second" : y < 60 ? s = "minute" : y < $e ? s = "hour" : V < we ? s = "day" : V < Ee ? s = "month" : s = "year", s === "second") {
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") {
39
39
  const g = v(k / 1e3);
40
40
  return l.formatDistance("xSeconds", g, b);
41
41
  } else if (s === "minute") {
@@ -45,17 +45,17 @@ function _t(c, n, i) {
45
45
  const g = v(y / 60);
46
46
  return l.formatDistance("xHours", g, b);
47
47
  } else if (s === "day") {
48
- const g = v(V / $e);
48
+ const g = v(D / $e);
49
49
  return l.formatDistance("xDays", g, b);
50
50
  } else if (s === "month") {
51
- const g = v(V / we);
51
+ const g = v(D / we);
52
52
  return g === 12 && P !== "month" ? l.formatDistance("xYears", 1, b) : l.formatDistance("xMonths", g, b);
53
53
  } else {
54
- const g = v(V / Ee);
54
+ const g = v(D / Ee);
55
55
  return l.formatDistance("xYears", g, b);
56
56
  }
57
57
  }
58
- const $t = { class: "konnectio-event-listing-action" }, wt = { class: "konnectio-event-listing-action-button" }, Et = /* @__PURE__ */ Y({
58
+ const yt = { class: "konnectio-event-listing-action" }, _t = { class: "konnectio-event-listing-action-button" }, $t = /* @__PURE__ */ j({
59
59
  __name: "_",
60
60
  props: {
61
61
  name: {},
@@ -78,16 +78,16 @@ const $t = { class: "konnectio-event-listing-action" }, wt = { class: "konnectio
78
78
  callback: {}
79
79
  },
80
80
  setup(c) {
81
- const { t: n } = ae(), i = c, { display: d } = Ye(), {
81
+ const { t: n } = ae(), i = c, { display: d } = je(), {
82
82
  maxNumberOfPeople: l,
83
83
  numberOfPeople: _,
84
84
  eventId: b,
85
85
  tableGroupId: $
86
- } = H(j()), {
86
+ } = Q(H()), {
87
87
  getTemplateAvailability: u,
88
88
  getEventAvailability: v,
89
89
  isEventListingLoading: k
90
- } = j(), y = Re(0), C = le(() => k(i.listingId)), V = () => {
90
+ } = H(), y = Re(0), C = le(() => k(i.listingId)), D = () => {
91
91
  y.value > 0 ? (b.value = i.listingId, _.value = y.value, u(i.callback)) : d({
92
92
  type: "error",
93
93
  message: n("alert.error.selectPeople")
@@ -98,7 +98,7 @@ const $t = { class: "konnectio-event-listing-action" }, wt = { class: "konnectio
98
98
  message: n("alert.error.selectPeople")
99
99
  });
100
100
  };
101
- return (s, g) => (a(), T(lt, {
101
+ return (s, g) => (a(), T(nt, {
102
102
  type: "event",
103
103
  "listing-id": s.listingId,
104
104
  gallery: s.gallery,
@@ -106,13 +106,13 @@ const $t = { class: "konnectio-event-listing-action" }, wt = { class: "konnectio
106
106
  description: s.description,
107
107
  "prices-from": s.fromPrice,
108
108
  "to-date": s.toDate,
109
- layout: e(Je).Event
109
+ layout: e(Ze).Event
110
110
  }, {
111
111
  description: p(() => [
112
112
  ne(s.$slots, "description", { maxNumberOfPeople: e(l) }, void 0, !0)
113
113
  ]),
114
114
  action: p(() => [
115
- t("div", $t, [
115
+ t("div", yt, [
116
116
  f(oe, {
117
117
  modelValue: y.value,
118
118
  "onUpdate:modelValue": g[0] || (g[0] = (O) => y.value = O),
@@ -120,16 +120,16 @@ const $t = { class: "konnectio-event-listing-action" }, wt = { class: "konnectio
120
120
  icon: "users",
121
121
  "icon-type": "fas",
122
122
  "icon-placement": "label",
123
- description: s.maxGuests <= 20 ? `${e(n)("general.availableFor")}: 1 - ${s.maxGuests} ${e(Ze)(e(n)("general.guests"))}` : void 0,
123
+ description: s.maxGuests <= 20 ? `${e(n)("general.availableFor")}: 1 - ${s.maxGuests} ${e(Ye)(e(n)("general.guests"))}` : void 0,
124
124
  "min-value": s.type === "event" ? 0 : s.minimumPersonCount,
125
125
  "max-value": s.type === "event" ? s.maxOnlineReservationLimit || 1 / 0 : e(l)
126
126
  }, null, 8, ["modelValue", "label", "description", "min-value", "max-value"]),
127
- t("div", wt, [
127
+ t("div", _t, [
128
128
  f(me, {
129
129
  label: s.soldOut ? e(n)("event.soldOut") : e(n)("event.bookNowButton"),
130
130
  disabled: s.soldOut,
131
131
  "is-loading": C.value,
132
- onClickEvent: g[1] || (g[1] = (O) => s.type === "event" ? P() : V())
132
+ onClickEvent: g[1] || (g[1] = (O) => s.type === "event" ? P() : D())
133
133
  }, null, 8, ["label", "disabled", "is-loading"])
134
134
  ])
135
135
  ])
@@ -137,8 +137,8 @@ const $t = { class: "konnectio-event-listing-action" }, wt = { class: "konnectio
137
137
  _: 3
138
138
  }, 8, ["listing-id", "gallery", "name", "description", "prices-from", "to-date", "layout"]));
139
139
  }
140
- }), Ae = /* @__PURE__ */ se(Et, [["__scopeId", "data-v-38f9c15b"]]), Tt = ["innerHTML"], Dt = { class: "konnectio-event-listing-information-new" };
141
- const Vt = { class: "konnectio-pill-button" }, Pt = { class: "konnectio-pill-button" }, At = /* @__PURE__ */ Y({
140
+ }), Ae = /* @__PURE__ */ se($t, [["__scopeId", "data-v-38f9c15b"]]), wt = ["innerHTML"], Et = { class: "konnectio-event-listing-information-new" };
141
+ const Tt = { class: "konnectio-pill-button" }, Vt = { class: "konnectio-pill-button" }, Dt = /* @__PURE__ */ j({
142
142
  __name: "Event",
143
143
  props: {
144
144
  name: {},
@@ -162,7 +162,7 @@ const Vt = { class: "konnectio-pill-button" }, Pt = { class: "konnectio-pill-but
162
162
  setup(c) {
163
163
  const n = c, { t: i } = ae(), d = le(() => {
164
164
  const l = n.length.split(":");
165
- return console.log(l), _t(
165
+ return console.log(l), kt(
166
166
  new Date(2e3, 0, 1, Number(l[0]), Number(l[1]), 0),
167
167
  new Date(2e3, 0, 1, 0, 0, 0)
168
168
  );
@@ -182,11 +182,11 @@ const Vt = { class: "konnectio-pill-button" }, Pt = { class: "konnectio-pill-but
182
182
  description: p(() => [
183
183
  l.description ? (a(), m("p", {
184
184
  key: 0,
185
- innerHTML: e(De)(l.description)
186
- }, null, 8, Tt)) : h("", !0),
187
- t("ul", Dt, [
185
+ innerHTML: e(Ve)(l.description)
186
+ }, null, 8, wt)) : h("", !0),
187
+ t("ul", Et, [
188
188
  h("", !0),
189
- t("li", Vt, [
189
+ t("li", Tt, [
190
190
  t("div", null, [
191
191
  f(pe, {
192
192
  icon: "calendar-clock",
@@ -196,7 +196,7 @@ const Vt = { class: "konnectio-pill-button" }, Pt = { class: "konnectio-pill-but
196
196
  ]),
197
197
  t("span", null, o(d.value), 1)
198
198
  ]),
199
- t("li", Pt, [
199
+ t("li", Vt, [
200
200
  t("div", null, [
201
201
  f(pe, {
202
202
  icon: "calendar-clock",
@@ -204,14 +204,14 @@ const Vt = { class: "konnectio-pill-button" }, Pt = { class: "konnectio-pill-but
204
204
  }),
205
205
  t("span", null, o(e(i)("event.startAndEndTime")), 1)
206
206
  ]),
207
- t("span", null, o(e(Ke)(l.timeFrom, l.timeTo)), 1)
207
+ t("span", null, o(e(Je)(l.timeFrom, l.timeTo)), 1)
208
208
  ])
209
209
  ])
210
210
  ]),
211
211
  _: 1
212
212
  }, 8, ["listing-id", "name", "description", "gallery", "prices-from", "table-group-id", "max-guests", "to-date", "callback"]));
213
213
  }
214
- }), Ct = /* @__PURE__ */ se(At, [["__scopeId", "data-v-148bf11e"]]), Ot = ["innerHTML"], Bt = /* @__PURE__ */ Y({
214
+ }), Pt = /* @__PURE__ */ se(Dt, [["__scopeId", "data-v-148bf11e"]]), At = ["innerHTML"], Ct = /* @__PURE__ */ j({
215
215
  __name: "Template",
216
216
  props: {
217
217
  name: {},
@@ -250,13 +250,13 @@ const Vt = { class: "konnectio-pill-button" }, Pt = { class: "konnectio-pill-but
250
250
  description: p(() => [
251
251
  d.description ? (a(), m("p", {
252
252
  key: 0,
253
- innerHTML: e(De)(d.description)
254
- }, null, 8, Ot)) : h("", !0)
253
+ innerHTML: e(Ve)(d.description)
254
+ }, null, 8, At)) : h("", !0)
255
255
  ]),
256
256
  _: 1
257
257
  }, 8, ["listing-id", "gallery", "name", "description", "prices-from", "to-date", "callback"]));
258
258
  }
259
- }), St = { key: 0 }, Lt = { key: 1 }, It = { key: 2 }, Nt = { key: 3 }, Mt = { key: 4 }, Rt = { key: 5 }, Ut = { key: 0 }, de = /* @__PURE__ */ Y({
259
+ }), Ot = { key: 0 }, Bt = { key: 1 }, St = { key: 2 }, Lt = { key: 3 }, It = { key: 4 }, Nt = { key: 5 }, Mt = { key: 0 }, de = /* @__PURE__ */ j({
260
260
  __name: "EventReservationForm",
261
261
  props: {
262
262
  showGiftCard: { type: Boolean, default: !1 },
@@ -274,20 +274,20 @@ const Vt = { class: "konnectio-pill-button" }, Pt = { class: "konnectio-pill-but
274
274
  fromDate: k,
275
275
  tableBasePrice: y,
276
276
  getTemplateData: C,
277
- basePrice: V,
277
+ basePrice: D,
278
278
  totalPrice: P,
279
279
  weekendFee: s,
280
280
  roomUpgrade: g,
281
281
  discountCode: O
282
- } = H(j()), { totalAddonPrice: W, validateDiscountCode: ie } = j(), { currency: X } = H(Ve());
283
- return (S, x) => (a(), T(at, {
282
+ } = Q(H()), { totalAddonPrice: W, validateDiscountCode: ie } = H(), { currency: X } = Q(De());
283
+ return (S, x) => (a(), T(ot, {
284
284
  "discount-code": e(O),
285
285
  "onUpdate:discountCode": x[0] || (x[0] = (F) => M(O) ? O.value = F : null),
286
286
  "validate-discount-code": e(ie),
287
287
  "show-gift-card": S.showGiftCard,
288
288
  "show-terms-notice": S.showTermsNotice,
289
289
  "is-sidebar-loading": !e(d),
290
- "base-price": e(V),
290
+ "base-price": e(D),
291
291
  "total-price": e(P),
292
292
  "weekend-fee": e(s),
293
293
  "room-upgrade": e(g),
@@ -297,11 +297,11 @@ const Vt = { class: "konnectio-pill-button" }, Pt = { class: "konnectio-pill-but
297
297
  ne(S.$slots, "form")
298
298
  ]),
299
299
  "reservation-summary": p(() => [
300
- e(u) ? (a(), m("li", St, [
300
+ e(u) ? (a(), m("li", Ot, [
301
301
  t("span", null, o(e(n)("booking.reservation.arrival")), 1),
302
302
  t("b", null, o(e(ke)(e(k))), 1)
303
303
  ])) : h("", !0),
304
- e(u) ? (a(), m("li", Lt, [
304
+ e(u) ? (a(), m("li", Bt, [
305
305
  t("span", null, o(e(n)("booking.reservation.departure")), 1),
306
306
  t("b", null, o(e(ke)(e(k), e($))), 1)
307
307
  ])) : h("", !0),
@@ -309,25 +309,25 @@ const Vt = { class: "konnectio-pill-button" }, Pt = { class: "konnectio-pill-but
309
309
  t("span", null, o(e(n)("event.numberOfGuests")), 1),
310
310
  t("b", null, o(e(_)), 1)
311
311
  ]),
312
- e(u) ? (a(), m("li", It, [
312
+ e(u) ? (a(), m("li", St, [
313
313
  t("span", null, o(e(n)("event.numberOfRooms")), 1),
314
314
  t("b", null, o(e(b)), 1)
315
315
  ])) : h("", !0),
316
- e(u) ? (a(), m("li", Nt, [
316
+ e(u) ? (a(), m("li", Lt, [
317
317
  t("span", null, o(e(n)("event.numberOfDays")), 1),
318
318
  t("b", null, o(e($)), 1)
319
319
  ])) : h("", !0),
320
- !e(u) && e(l) ? (a(), m("li", Mt, [
320
+ !e(u) && e(l) ? (a(), m("li", It, [
321
321
  t("span", null, o(e(n)("event.startOfEvent")), 1),
322
322
  t("b", null, o(e(ve)(e(l))), 1)
323
323
  ])) : h("", !0),
324
- !e(u) && e(v) ? (a(), m("li", Rt, [
324
+ !e(u) && e(v) ? (a(), m("li", Nt, [
325
325
  t("span", null, o(e(n)("event.lengthOfEvent")), 1),
326
326
  t("b", null, o(e(ve)(e(v))), 1)
327
327
  ])) : h("", !0)
328
328
  ]),
329
329
  "price-summary": p(() => [
330
- !e(u) && e(y) > 0 ? (a(), m("li", Ut, [
330
+ !e(u) && e(y) > 0 ? (a(), m("li", Mt, [
331
331
  t("span", null, o(e(n)("booking.availability.basePrice")), 1),
332
332
  t("b", null, o(e(R)(e(y), e(X))), 1)
333
333
  ])) : h("", !0),
@@ -350,29 +350,29 @@ const Vt = { class: "konnectio-pill-button" }, Pt = { class: "konnectio-pill-but
350
350
  } : void 0
351
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"]));
352
352
  }
353
- }), Ft = { class: "event-skeleton" }, qt = { class: "event-skeleton-content" }, zt = { class: "event-skeleton-sidebar" }, Gt = /* @__PURE__ */ Y({
353
+ }), Rt = { class: "event-skeleton" }, Ut = { class: "event-skeleton-content" }, Ft = { class: "event-skeleton-sidebar" }, qt = /* @__PURE__ */ j({
354
354
  __name: "EventSkeleton",
355
355
  setup(c) {
356
- return (n, i) => (a(), m("div", Ft, [
357
- t("div", qt, [
356
+ return (n, i) => (a(), m("div", Rt, [
357
+ t("div", Ut, [
358
358
  f(Pe)
359
359
  ]),
360
- t("div", zt, [
360
+ t("div", Ft, [
361
361
  h("", !0),
362
- f(st)
362
+ f(lt)
363
363
  ])
364
364
  ]));
365
365
  }
366
- }), Ht = /* @__PURE__ */ se(Gt, [["__scopeId", "data-v-3e15c4e3"]]), U = (c) => (Ge("data-v-1369b33a"), c = c(), He(), c), jt = {
366
+ }), zt = /* @__PURE__ */ se(qt, [["__scopeId", "data-v-3e15c4e3"]]), U = (c) => (ze("data-v-3e230178"), c = c(), Ge(), c), Gt = {
367
367
  key: 0,
368
368
  id: "konnectio-event-listings-wrapper"
369
369
  };
370
- const Yt = { class: "konnectio-event-listings" };
371
- const Zt = { class: "konnectio-event-listings" }, Jt = { class: "konnectio-panel" }, Kt = {
370
+ const Ht = { class: "konnectio-event-listings" };
371
+ const jt = { class: "konnectio-event-listings" }, Yt = { class: "konnectio-panel" }, Zt = {
372
372
  key: 1,
373
373
  id: "fresh-booking-event-addons"
374
- }, Qt = { class: "konnectio-table with-lines" }, Wt = /* @__PURE__ */ U(() => /* @__PURE__ */ t("th", { class: "konnectio-event-addons-input" }, null, -1)), Xt = { class: "konnectio-event-addons-price" }, xt = /* @__PURE__ */ U(() => /* @__PURE__ */ t("br", null, null, -1)), en = { class: "konnectio-event-addons-input" }, tn = { class: "konnectio-event-addons-price" }, nn = /* @__PURE__ */ U(() => /* @__PURE__ */ t("td", null, null, -1)), on = /* @__PURE__ */ U(() => /* @__PURE__ */ t("td", null, null, -1)), ln = { class: "konnectio-event-addons-price" }, an = { key: 2 };
375
- const sn = { key: 3 }, rn = { class: "konnectio-label required" }, un = { class: "konnectio-table with-lines" }, cn = /* @__PURE__ */ U(() => /* @__PURE__ */ t("th", { class: "konnectio-event-addons-input" }, null, -1)), dn = { class: "konnectio-event-addons-price" }, mn = /* @__PURE__ */ U(() => /* @__PURE__ */ t("br", null, null, -1)), pn = /* @__PURE__ */ U(() => /* @__PURE__ */ t("br", null, null, -1)), vn = { class: "konnectio-event-addons-input" }, fn = { class: "konnectio-event-addons-price" }, bn = ["onClick"], gn = { class: "konnectio-panel" }, hn = ["onClick"], kn = /* @__PURE__ */ Y({
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({
376
376
  name: "EventLayout",
377
377
  __name: "Event",
378
378
  props: {
@@ -393,7 +393,7 @@ const sn = { key: 3 }, rn = { class: "konnectio-label required" }, un = { class:
393
393
  hasEvents: k,
394
394
  hasTemplates: y,
395
395
  getEvents: C,
396
- getTemplates: V,
396
+ getTemplates: D,
397
397
  getEventData: P,
398
398
  getTemplateData: s,
399
399
  getEventTableData: g,
@@ -403,15 +403,16 @@ const sn = { key: 3 }, rn = { class: "konnectio-label required" }, un = { class:
403
403
  isAvailabilityDataAvailable: X,
404
404
  isTemplateEvent: S,
405
405
  hasListingData: x,
406
- isPaymentLoading: F
407
- } = H(j()), { searchDate: ee } = H(Qe()), {
406
+ isPaymentLoading: F,
407
+ isReservationFormFilled: ee
408
+ } = Q(H()), {
408
409
  initialize: Ce,
409
410
  fetchListings: Oe,
410
411
  createBooking: Be,
411
412
  localAddonPrice: fe,
412
413
  totalAddonPrice: Se,
413
414
  reset: be
414
- } = j(), { currency: Z } = H(Ve()), Le = le(() => {
415
+ } = H(), { currency: Y } = Q(De()), Le = le(() => {
415
416
  const L = [];
416
417
  return g.value && g.value.forEach((w) => {
417
418
  L.push({
@@ -421,57 +422,55 @@ const sn = { key: 3 }, rn = { class: "konnectio-label required" }, un = { class:
421
422
  }), L;
422
423
  });
423
424
  function Ie() {
424
- console.log("after meta"), Oe();
425
+ Oe();
425
426
  }
426
- return qe(ee, () => {
427
- console.log("search date");
428
- }), (L, w) => (a(), T(Xe, { styling: L.styling }, {
427
+ return (L, w) => (a(), T(Qe, { styling: L.styling }, {
429
428
  default: p(() => [
430
- (a(), T(ze, { onResolve: Ie }, {
429
+ (a(), T(qe, { onResolve: Ie }, {
431
430
  default: p(() => [
432
- f(pt, {
431
+ f(dt, {
433
432
  id: "konnectio-event-module",
434
433
  "access-token": L.accessToken,
435
434
  callback: e(Ce)
436
435
  }, {
437
436
  default: p(() => [
438
- f(it, null, {
437
+ f(at, null, {
439
438
  availability: p(({ next: q }) => [
440
439
  f(de, null, {
441
440
  sidebar: p(() => [
442
- f(mt, { redirection: !1 })
441
+ f(ct, { redirection: !1 })
443
442
  ]),
444
443
  form: p(() => [
445
- e(x) && e(ie) ? (a(), m("div", jt, [
444
+ e(x) && e(ie) ? (a(), m("div", Gt, [
446
445
  e(k) && L.onlyShow !== "templates" ? (a(), m(B, { key: 0 }, [
447
446
  h("", !0),
448
- t("ul", Yt, [
447
+ t("ul", Ht, [
449
448
  (a(!0), m(B, null, z(e(C), ({
450
449
  id: A,
451
450
  days: r,
452
451
  name: I,
453
452
  timeFrom: N,
454
453
  timeTo: E,
455
- fromDate: D,
456
- toDate: J,
457
- tableGroupId: K,
454
+ fromDate: V,
455
+ toDate: Z,
456
+ tableGroupId: J,
458
457
  description: re,
459
458
  soldOut: ue,
460
- length: Q,
459
+ length: K,
461
460
  images: Ne,
462
461
  maxOnlineReservationLimit: Me
463
- }) => (a(), T(Ct, {
462
+ }) => (a(), T(Pt, {
464
463
  key: A,
465
464
  type: "event",
466
465
  "listing-id": A,
467
- "table-group-id": K,
466
+ "table-group-id": J,
468
467
  description: re,
469
468
  name: I,
470
- length: Q,
469
+ length: K,
471
470
  gallery: Ne,
472
471
  days: r,
473
- "from-date": D,
474
- "to-date": J,
472
+ "from-date": V,
473
+ "to-date": Z,
475
474
  "max-online-reservation-limit": Me,
476
475
  "time-from": N,
477
476
  "time-to": E,
@@ -482,26 +481,26 @@ const sn = { key: 3 }, rn = { class: "konnectio-label required" }, un = { class:
482
481
  ], 64)) : h("", !0),
483
482
  e(y) && L.onlyShow !== "events" ? (a(), m(B, { key: 1 }, [
484
483
  h("", !0),
485
- t("ul", Zt, [
486
- (a(!0), m(B, null, z(e(V), ({
484
+ t("ul", jt, [
485
+ (a(!0), m(B, null, z(e(D), ({
487
486
  id: A,
488
487
  name: r,
489
488
  fromDate: I,
490
489
  toDate: N,
491
490
  minimumPersonCount: E,
492
- fromPrice: D,
493
- description: J,
494
- imageUrl: K
495
- }) => (a(), T(Bt, {
491
+ fromPrice: V,
492
+ description: Z,
493
+ imageUrl: J
494
+ }) => (a(), T(Ct, {
496
495
  key: A,
497
496
  "listing-id": A,
498
497
  name: r,
499
- image: K,
500
- description: J,
498
+ image: J,
499
+ description: Z,
501
500
  "from-date": I,
502
501
  "to-date": N,
503
502
  "minimum-person-count": E,
504
- fromPrice: D,
503
+ fromPrice: V,
505
504
  callback: q
506
505
  }, null, 8, ["listing-id", "name", "image", "description", "from-date", "to-date", "minimum-person-count", "fromPrice", "callback"]))), 128))
507
506
  ])
@@ -514,7 +513,7 @@ const sn = { key: 3 }, rn = { class: "konnectio-label required" }, un = { class:
514
513
  addons: p(({ next: q, prev: A }) => [
515
514
  e(X) ? (a(), T(de, { key: 0 }, {
516
515
  form: p(() => [
517
- t("form", Jt, [
516
+ t("form", Yt, [
518
517
  t("h2", null, [
519
518
  t("span", null, o(e(n)("booking.reservation.addons")), 1)
520
519
  ]),
@@ -526,7 +525,7 @@ const sn = { key: 3 }, rn = { class: "konnectio-label required" }, un = { class:
526
525
  "min-value": 1,
527
526
  required: ""
528
527
  }, null, 8, ["modelValue", "label"])) : h("", !0),
529
- e(s) && e(s).length > 0 ? (a(), m("ul", Kt, [
528
+ e(s) && e(s).length > 0 ? (a(), m("ul", Zt, [
530
529
  (a(!0), m(B, null, z(e(s), ({
531
530
  roomGroupId: r,
532
531
  addons: I,
@@ -542,57 +541,57 @@ const sn = { key: 3 }, rn = { class: "konnectio-label required" }, un = { class:
542
541
  }),
543
542
  ge(" " + o(N) + ") ", 1)
544
543
  ]),
545
- t("table", Qt, [
544
+ t("table", Jt, [
546
545
  t("thead", null, [
547
546
  t("tr", null, [
548
547
  t("th", null, [
549
548
  t("span", null, o(e(n)("booking.reservation.addons")), 1)
550
549
  ]),
551
- Wt,
552
- t("th", Xt, [
550
+ Kt,
551
+ t("th", Qt, [
553
552
  t("span", null, o(e(n)("booking.availability.price")), 1)
554
553
  ])
555
554
  ])
556
555
  ]),
557
556
  t("tbody", null, [
558
557
  (a(!0), m(B, null, z(I, ({
559
- id: D,
560
- cardinality: J,
561
- name: K,
558
+ id: V,
559
+ cardinality: Z,
560
+ name: J,
562
561
  price: re,
563
562
  quantityStrategy: ue
564
- }) => (a(), m("tr", { key: D }, [
563
+ }) => (a(), m("tr", { key: V }, [
565
564
  t("td", null, [
566
- t("b", null, o(K), 1),
567
- xt,
568
- t("span", null, o(e(R)(re, e(Z))) + " " + o(e(We)(ue)), 1)
565
+ t("b", null, o(J), 1),
566
+ Wt,
567
+ t("span", null, o(e(R)(re, e(Y))) + " " + o(e(Ke)(ue)), 1)
569
568
  ]),
570
- t("td", en, [
571
- J === 3 ? (a(), T(oe, {
569
+ t("td", Xt, [
570
+ Z === 3 ? (a(), T(oe, {
572
571
  key: 0,
573
- modelValue: e(i)[`${r}.${D}.${E}`],
574
- "onUpdate:modelValue": (Q) => e(i)[`${r}.${D}.${E}`] = Q,
572
+ modelValue: e(i)[`${r}.${V}.${E}`],
573
+ "onUpdate:modelValue": (K) => e(i)[`${r}.${V}.${E}`] = K,
575
574
  small: !0,
576
575
  "min-value": 0
577
- }, null, 8, ["modelValue", "onUpdate:modelValue"])) : (a(), T(bt, {
576
+ }, null, 8, ["modelValue", "onUpdate:modelValue"])) : (a(), T(vt, {
578
577
  key: 1,
579
- modelValue: e(i)[`${r}.${D}.${E}`],
580
- "onUpdate:modelValue": (Q) => e(i)[`${r}.${D}.${E}`] = Q,
578
+ modelValue: e(i)[`${r}.${V}.${E}`],
579
+ "onUpdate:modelValue": (K) => e(i)[`${r}.${V}.${E}`] = K,
581
580
  numeric: !0
582
581
  }, null, 8, ["modelValue", "onUpdate:modelValue"]))
583
582
  ]),
584
- t("td", tn, [
585
- t("span", null, o(e(R)(e(fe)(D, r, E), e(Z))), 1)
583
+ t("td", xt, [
584
+ t("span", null, o(e(R)(e(fe)(V, r, E), e(Y))), 1)
586
585
  ])
587
586
  ]))), 128))
588
587
  ]),
589
588
  t("tfoot", null, [
590
589
  t("tr", null, [
591
- nn,
592
- on,
593
- t("td", ln, [
590
+ en,
591
+ tn,
592
+ t("td", nn, [
594
593
  t("u", null, [
595
- t("span", null, o(e(R)(e(Se)(r, E), e(Z))), 1)
594
+ t("span", null, o(e(R)(e(Se)(r, E), e(Y))), 1)
596
595
  ])
597
596
  ])
598
597
  ])
@@ -600,9 +599,9 @@ const sn = { key: 3 }, rn = { class: "konnectio-label required" }, un = { class:
600
599
  ])
601
600
  ]))), 128))
602
601
  ])) : h("", !0),
603
- e(W) !== e(ye).FullDayEvent && !e(S) ? (a(), m("div", an, [
602
+ e(W) !== e(ye).FullDayEvent && !e(S) ? (a(), m("div", on, [
604
603
  h("", !0),
605
- f(rt, {
604
+ f(st, {
606
605
  modelValue: e(v),
607
606
  "onUpdate:modelValue": w[1] || (w[1] = (r) => M(v) ? v.value = r : null),
608
607
  label: e(n)("event.selectArrivalTime"),
@@ -611,18 +610,18 @@ const sn = { key: 3 }, rn = { class: "konnectio-label required" }, un = { class:
611
610
  required: ""
612
611
  }, null, 8, ["modelValue", "label", "checkboxes"])
613
612
  ])) : h("", !0),
614
- e(O) ? (a(), m("div", sn, [
615
- t("label", rn, [
613
+ e(O) ? (a(), m("div", ln, [
614
+ t("label", an, [
616
615
  t("span", null, o(e(n)("event.selectProducts")), 1)
617
616
  ]),
618
- t("table", un, [
617
+ t("table", sn, [
619
618
  t("thead", null, [
620
619
  t("tr", null, [
621
620
  t("th", null, [
622
621
  t("span", null, o(e(n)("booking.reservation.addons")), 1)
623
622
  ]),
624
- cn,
625
- t("th", dn, [
623
+ rn,
624
+ t("th", un, [
626
625
  t("span", null, o(e(n)("booking.availability.price")), 1)
627
626
  ])
628
627
  ])
@@ -633,21 +632,21 @@ const sn = { key: 3 }, rn = { class: "konnectio-label required" }, un = { class:
633
632
  t("b", null, [
634
633
  t("span", null, o(I), 1)
635
634
  ]),
636
- mn,
635
+ cn,
637
636
  t("span", null, o(E), 1),
638
- pn,
639
- t("span", null, o(e(R)(N, e(Z))), 1)
637
+ dn,
638
+ t("span", null, o(e(R)(N, e(Y))), 1)
640
639
  ]),
641
- t("td", vn, [
640
+ t("td", mn, [
642
641
  f(oe, {
643
642
  modelValue: e(d)[r],
644
- "onUpdate:modelValue": (D) => e(d)[r] = D,
643
+ "onUpdate:modelValue": (V) => e(d)[r] = V,
645
644
  small: !0,
646
645
  "min-value": 0
647
646
  }, null, 8, ["modelValue", "onUpdate:modelValue"])
648
647
  ]),
649
- t("td", fn, [
650
- t("span", null, o(e(R)(e(fe)(r), e(Z))), 1)
648
+ t("td", pn, [
649
+ t("span", null, o(e(R)(e(fe)(r), e(Y))), 1)
651
650
  ])
652
651
  ]))), 128))
653
652
  ])
@@ -666,7 +665,7 @@ const sn = { key: 3 }, rn = { class: "konnectio-label required" }, un = { class:
666
665
  onClick: he((r) => e(be)(A), ["prevent"])
667
666
  }, [
668
667
  t("span", null, o(e(n)("general.goAStepBack")), 1)
669
- ], 8, bn)
668
+ ], 8, vn)
670
669
  ]),
671
670
  _: 2
672
671
  }, 1024)) : h("", !0)
@@ -677,7 +676,7 @@ const sn = { key: 3 }, rn = { class: "konnectio-label required" }, un = { class:
677
676
  "show-gift-card": !0
678
677
  }, {
679
678
  form: p(() => [
680
- t("form", gn, [
679
+ t("form", fn, [
681
680
  t("h2", null, [
682
681
  t("span", null, o(e(n)("booking.reservation.detailsTitle")), 1)
683
682
  ]),
@@ -701,7 +700,7 @@ const sn = { key: 3 }, rn = { class: "konnectio-label required" }, un = { class:
701
700
  placeholder: e(n)("booking.reservation.emailPlaceholder"),
702
701
  required: ""
703
702
  }, null, 8, ["modelValue", "label", "placeholder"]),
704
- f(gt, {
703
+ f(ft, {
705
704
  modelValue: e(b),
706
705
  "onUpdate:modelValue": w[4] || (w[4] = (r) => M(b) ? b.value = r : null),
707
706
  label: e(n)("booking.reservation.phone"),
@@ -723,24 +722,25 @@ const sn = { key: 3 }, rn = { class: "konnectio-label required" }, un = { class:
723
722
  f(me, {
724
723
  label: e(n)("general.confirmReservation"),
725
724
  "is-loading": e(F),
725
+ disabled: !e(ee),
726
726
  "full-width": "",
727
727
  onClickEvent: (r) => e(Be)(q)
728
- }, null, 8, ["label", "is-loading", "onClickEvent"]),
728
+ }, null, 8, ["label", "is-loading", "disabled", "onClickEvent"]),
729
729
  t("button", {
730
730
  class: "konnectio-abort-reservation link",
731
731
  onClick: he((r) => e(be)(A), ["prevent"])
732
732
  }, [
733
733
  t("span", null, o(e(n)("general.goAStepBack")), 1)
734
- ], 8, hn)
734
+ ], 8, bn)
735
735
  ]),
736
736
  _: 2
737
737
  }, 1024)
738
738
  ]),
739
739
  payment: p(() => [
740
- f(ht)
740
+ f(bt)
741
741
  ]),
742
742
  confirmation: p(() => [
743
- f(ut, {
743
+ f(it, {
744
744
  message: e(n)("event.confirmationMessage")
745
745
  }, null, 8, ["message"])
746
746
  ]),
@@ -751,7 +751,7 @@ const sn = { key: 3 }, rn = { class: "konnectio-label required" }, un = { class:
751
751
  }, 8, ["access-token", "callback"])
752
752
  ]),
753
753
  fallback: p(() => [
754
- f(Ht)
754
+ f(zt)
755
755
  ]),
756
756
  _: 1
757
757
  }))
@@ -759,8 +759,8 @@ const sn = { key: 3 }, rn = { class: "konnectio-label required" }, un = { class:
759
759
  _: 1
760
760
  }, 8, ["styling"]));
761
761
  }
762
- }), te = /* @__PURE__ */ se(kn, [["__scopeId", "data-v-1369b33a"]]), yn = xe(), _n = ot();
763
- class $n extends HTMLElement {
762
+ }), te = /* @__PURE__ */ se(gn, [["__scopeId", "data-v-3e230178"]]), hn = We(), kn = tt();
763
+ class yn extends HTMLElement {
764
764
  vueApp;
765
765
  constructor() {
766
766
  super();
@@ -782,13 +782,13 @@ class $n extends HTMLElement {
782
782
  let v = this.attributes.getNamedItem(u)?.value;
783
783
  b.hasOwnProperty(u) && (v = b[u]), _[u] = v;
784
784
  }
785
- this.vueApp = je(te, _), et(this.vueApp), this.vueApp.provide("emitter", _n), this.vueApp.use(tt), this.vueApp.use(yn), this.vueApp.use(ct), this.vueApp.use(dt), this.vueApp.use(nt, { bootstrap: !0 });
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 });
786
786
  const $ = document.createElement("div");
787
787
  this.vueApp.mount($), this.appendChild($.children[0]);
788
788
  }
789
789
  }
790
- window.customElements.define("konnectio-event", $n);
790
+ window.customElements.define("konnectio-event", yn);
791
791
  export {
792
- $n as default
792
+ yn as default
793
793
  };
794
794
  //# sourceMappingURL=event.js.map