@konnectio/core 4.0.56-rc45 → 4.0.56-rc46

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-DgGRyzyW.js → ActionField-l77AHDt_.js} +10 -10
  2. package/dist/ActionField-l77AHDt_.js.br +0 -0
  3. package/dist/{AvailabilitySkeleton-D_svZV0K.js → AvailabilitySkeleton-6QuYlrqw.js} +61 -61
  4. package/dist/AvailabilitySkeleton-6QuYlrqw.js.br +0 -0
  5. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-CV70h5Ny.js +7814 -0
  6. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-CV70h5Ny.js.br +0 -0
  7. package/dist/{CheckoutWindow-B85nPXcN.js → CheckoutWindow-CNF_LAo6.js} +14 -14
  8. package/dist/CheckoutWindow-CNF_LAo6.js.br +0 -0
  9. package/dist/{ErrorMessage-hoBbvZJL.js → ErrorMessage-B0Hm-dJ0.js} +4 -4
  10. package/dist/ErrorMessage-B0Hm-dJ0.js.br +0 -0
  11. package/dist/{EventAvailabilityForm-CqiuFIoF.js → EventAvailabilityForm-BfhYKChb.js} +77 -78
  12. package/dist/EventAvailabilityForm-BfhYKChb.js.br +0 -0
  13. package/dist/{Field-Crk3SejD.js → Field-BJ8nOhMT.js} +8 -8
  14. package/dist/Field-BJ8nOhMT.js.br +0 -0
  15. package/dist/{Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-CbcnRtEB.js → Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-eIGiZxmD.js} +3187 -3187
  16. package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-eIGiZxmD.js.br +0 -0
  17. package/dist/{TermsOfService-CIIPZAIU.js → TermsOfService-f7DfHbk2.js} +10 -10
  18. package/dist/TermsOfService-f7DfHbk2.js.br +0 -0
  19. package/dist/_-CaC826yR.js +12 -0
  20. package/dist/_.vue_vue_type_style_index_0_lang-BLztxup-.js +68 -0
  21. package/dist/_.vue_vue_type_style_index_0_lang-BLztxup-.js.br +0 -0
  22. package/dist/_commonjsHelpers-ytV6SVHa.js +9541 -0
  23. package/dist/_commonjsHelpers-ytV6SVHa.js.br +0 -0
  24. package/dist/availability.js +56 -55
  25. package/dist/availability.js.br +0 -0
  26. package/dist/event.js +126 -124
  27. package/dist/event.js.br +0 -0
  28. package/dist/gift-card-validation.js +19 -18
  29. package/dist/gift-card-validation.js.br +0 -0
  30. package/dist/gift-card.js +138 -138
  31. package/dist/gift-card.js.br +0 -0
  32. package/dist/{giftCard-CeKChSm1.js → giftCard-DhbT2_l0.js} +6 -6
  33. package/dist/giftCard-DhbT2_l0.js.br +0 -0
  34. package/dist/hotel.js +385 -384
  35. package/dist/hotel.js.br +0 -0
  36. package/dist/{masonry.plugin-CKLroL2Q.js → masonry.plugin-CVpZ_aQu.js} +3386 -3355
  37. package/dist/masonry.plugin-CVpZ_aQu.js.br +0 -0
  38. package/dist/navigation.js +3 -3
  39. package/dist/polyfill.js +3995 -3992
  40. package/dist/polyfill.js.br +0 -0
  41. package/dist/sentry-D1A53_C5.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 +6 -6
  47. package/dist/ActionField-DgGRyzyW.js.br +0 -0
  48. package/dist/AvailabilitySkeleton-D_svZV0K.js.br +0 -0
  49. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-CvjkJdcx.js +0 -7746
  50. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-CvjkJdcx.js.br +0 -0
  51. package/dist/CheckoutWindow-B85nPXcN.js.br +0 -0
  52. package/dist/ErrorMessage-hoBbvZJL.js.br +0 -0
  53. package/dist/EventAvailabilityForm-CqiuFIoF.js.br +0 -0
  54. package/dist/Field-Crk3SejD.js.br +0 -0
  55. package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-CbcnRtEB.js.br +0 -0
  56. package/dist/TermsOfService-CIIPZAIU.js.br +0 -0
  57. package/dist/_-DuaWvsgR.js +0 -12
  58. package/dist/_.vue_vue_type_style_index_0_lang-MG6OWZHv.js +0 -71
  59. package/dist/_.vue_vue_type_style_index_0_lang-MG6OWZHv.js.br +0 -0
  60. package/dist/_commonjsHelpers-CbB_C6Ai.js +0 -11816
  61. package/dist/_commonjsHelpers-CbB_C6Ai.js.br +0 -0
  62. package/dist/giftCard-CeKChSm1.js.br +0 -0
  63. package/dist/masonry.plugin-CKLroL2Q.js.br +0 -0
package/dist/event.js CHANGED
@@ -1,30 +1,30 @@
1
- import { d as Y, r as Me, 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 Re, C as Ue, A as z, F as B, x as M, h as Fe, q as qe, S as ze, D as ge, i as he, p as Ge, j as He, k as je } from "./_commonjsHelpers-CbB_C6Ai.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-CbcnRtEB.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-CKLroL2Q.js";
4
- import { u as j, E as mt } from "./EventAvailabilityForm-CqiuFIoF.js";
5
- import { _ as pt } from "./_.vue_vue_type_style_index_0_lang-MG6OWZHv.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-CvjkJdcx.js";
7
- import { a as bt, P as gt, C as ht } from "./CheckoutWindow-B85nPXcN.js";
1
+ import { d as Y, r as Me, 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 Re, C as Ue, A as z, F as B, x as M, q as Fe, S as qe, D as ge, i as he, p as ze, j as Ge, k as He } from "./_commonjsHelpers-ytV6SVHa.js";
2
+ import { h as ae, a as je, s as H, 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, m as Ke, O as ye, N as Qe, T as ce, n as We, o as Xe, p as xe, F as et, q as tt } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-eIGiZxmD.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-CVpZ_aQu.js";
4
+ import { u as j, E as ct } from "./EventAvailabilityForm-BfhYKChb.js";
5
+ import { _ as dt } from "./_.vue_vue_type_style_index_0_lang-BLztxup-.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-CV70h5Ny.js";
7
+ import { a as vt, P as ft, C as bt } from "./CheckoutWindow-CNF_LAo6.js";
8
8
  import "./navigation.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] = "b1500b51-770e-461f-accf-400b6d9f4148", c._sentryDebugIdIdentifier = "sentry-dbid-b1500b51-770e-461f-accf-400b6d9f4148");
12
+ n && (c._sentryDebugIds = c._sentryDebugIds || {}, c._sentryDebugIds[n] = "f9b6b90d-795b-4469-83b3-a1139df36daf", c._sentryDebugIdIdentifier = "sentry-dbid-f9b6b90d-795b-4469-83b3-a1139df36daf");
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__ */ Y({
59
59
  __name: "_",
60
60
  props: {
61
61
  name: {},
@@ -78,7 +78,7 @@ 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,
@@ -87,7 +87,7 @@ const $t = { class: "konnectio-event-listing-action" }, wt = { class: "konnectio
87
87
  getTemplateAvailability: u,
88
88
  getEventAvailability: v,
89
89
  isEventListingLoading: k
90
- } = j(), y = Me(0), C = le(() => k(i.listingId)), V = () => {
90
+ } = j(), y = Me(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,20 +98,21 @@ 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
+ type: "event",
102
103
  "listing-id": s.listingId,
103
104
  gallery: s.gallery,
104
105
  name: s.name,
105
106
  description: s.description,
106
107
  "prices-from": s.fromPrice,
107
108
  "to-date": s.toDate,
108
- layout: e(Je).Event
109
+ layout: e(Ze).Event
109
110
  }, {
110
111
  description: p(() => [
111
112
  ne(s.$slots, "description", { maxNumberOfPeople: e(l) }, void 0, !0)
112
113
  ]),
113
114
  action: p(() => [
114
- t("div", $t, [
115
+ t("div", yt, [
115
116
  f(oe, {
116
117
  modelValue: y.value,
117
118
  "onUpdate:modelValue": g[0] || (g[0] = (O) => y.value = O),
@@ -119,16 +120,16 @@ const $t = { class: "konnectio-event-listing-action" }, wt = { class: "konnectio
119
120
  icon: "users",
120
121
  "icon-type": "fas",
121
122
  "icon-placement": "label",
122
- 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,
123
124
  "min-value": s.type === "event" ? 0 : s.minimumPersonCount,
124
125
  "max-value": s.type === "event" ? s.maxOnlineReservationLimit || 1 / 0 : e(l)
125
126
  }, null, 8, ["modelValue", "label", "description", "min-value", "max-value"]),
126
- t("div", wt, [
127
+ t("div", _t, [
127
128
  f(me, {
128
129
  label: s.soldOut ? e(n)("event.soldOut") : e(n)("event.bookNowButton"),
129
130
  disabled: s.soldOut,
130
131
  "is-loading": C.value,
131
- onClickEvent: g[1] || (g[1] = (O) => s.type === "event" ? P() : V())
132
+ onClickEvent: g[1] || (g[1] = (O) => s.type === "event" ? P() : D())
132
133
  }, null, 8, ["label", "disabled", "is-loading"])
133
134
  ])
134
135
  ])
@@ -136,8 +137,8 @@ const $t = { class: "konnectio-event-listing-action" }, wt = { class: "konnectio
136
137
  _: 3
137
138
  }, 8, ["listing-id", "gallery", "name", "description", "prices-from", "to-date", "layout"]));
138
139
  }
139
- }), Ae = /* @__PURE__ */ se(Et, [["__scopeId", "data-v-65571246"]]), Tt = ["innerHTML"], Dt = { class: "konnectio-event-listing-information-new" };
140
- 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__ */ Y({
141
142
  __name: "Event",
142
143
  props: {
143
144
  name: {},
@@ -161,7 +162,7 @@ const Vt = { class: "konnectio-pill-button" }, Pt = { class: "konnectio-pill-but
161
162
  setup(c) {
162
163
  const n = c, { t: i } = ae(), d = le(() => {
163
164
  const l = n.length.split(":");
164
- return console.log(l), _t(
165
+ return console.log(l), kt(
165
166
  new Date(2e3, 0, 1, Number(l[0]), Number(l[1]), 0),
166
167
  new Date(2e3, 0, 1, 0, 0, 0)
167
168
  );
@@ -181,11 +182,11 @@ const Vt = { class: "konnectio-pill-button" }, Pt = { class: "konnectio-pill-but
181
182
  description: p(() => [
182
183
  l.description ? (a(), m("p", {
183
184
  key: 0,
184
- innerHTML: e(De)(l.description)
185
- }, null, 8, Tt)) : h("", !0),
186
- t("ul", Dt, [
185
+ innerHTML: e(Ve)(l.description)
186
+ }, null, 8, wt)) : h("", !0),
187
+ t("ul", Et, [
187
188
  h("", !0),
188
- t("li", Vt, [
189
+ t("li", Tt, [
189
190
  t("div", null, [
190
191
  f(pe, {
191
192
  icon: "calendar-clock",
@@ -195,7 +196,7 @@ const Vt = { class: "konnectio-pill-button" }, Pt = { class: "konnectio-pill-but
195
196
  ]),
196
197
  t("span", null, o(d.value), 1)
197
198
  ]),
198
- t("li", Pt, [
199
+ t("li", Vt, [
199
200
  t("div", null, [
200
201
  f(pe, {
201
202
  icon: "calendar-clock",
@@ -203,14 +204,14 @@ const Vt = { class: "konnectio-pill-button" }, Pt = { class: "konnectio-pill-but
203
204
  }),
204
205
  t("span", null, o(e(i)("event.startAndEndTime")), 1)
205
206
  ]),
206
- t("span", null, o(e(Ke)(l.timeFrom, l.timeTo)), 1)
207
+ t("span", null, o(e(Je)(l.timeFrom, l.timeTo)), 1)
207
208
  ])
208
209
  ])
209
210
  ]),
210
211
  _: 1
211
212
  }, 8, ["listing-id", "name", "description", "gallery", "prices-from", "table-group-id", "max-guests", "to-date", "callback"]));
212
213
  }
213
- }), 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__ */ Y({
214
215
  __name: "Template",
215
216
  props: {
216
217
  name: {},
@@ -249,13 +250,13 @@ const Vt = { class: "konnectio-pill-button" }, Pt = { class: "konnectio-pill-but
249
250
  description: p(() => [
250
251
  d.description ? (a(), m("p", {
251
252
  key: 0,
252
- innerHTML: e(De)(d.description)
253
- }, null, 8, Ot)) : h("", !0)
253
+ innerHTML: e(Ve)(d.description)
254
+ }, null, 8, At)) : h("", !0)
254
255
  ]),
255
256
  _: 1
256
257
  }, 8, ["listing-id", "gallery", "name", "description", "prices-from", "to-date", "callback"]));
257
258
  }
258
- }), 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__ */ Y({
259
260
  __name: "EventReservationForm",
260
261
  props: {
261
262
  showGiftCard: { type: Boolean, default: !1 },
@@ -273,20 +274,20 @@ const Vt = { class: "konnectio-pill-button" }, Pt = { class: "konnectio-pill-but
273
274
  fromDate: k,
274
275
  tableBasePrice: y,
275
276
  getTemplateData: C,
276
- basePrice: V,
277
+ basePrice: D,
277
278
  totalPrice: P,
278
279
  weekendFee: s,
279
280
  roomUpgrade: g,
280
281
  discountCode: O
281
- } = H(j()), { totalAddonPrice: W, validateDiscountCode: ie } = j(), { currency: X } = H(Ve());
282
- return (S, x) => (a(), T(at, {
282
+ } = H(j()), { totalAddonPrice: W, validateDiscountCode: ie } = j(), { currency: X } = H(De());
283
+ return (S, x) => (a(), T(ot, {
283
284
  "discount-code": e(O),
284
285
  "onUpdate:discountCode": x[0] || (x[0] = (F) => M(O) ? O.value = F : null),
285
286
  "validate-discount-code": e(ie),
286
287
  "show-gift-card": S.showGiftCard,
287
288
  "show-terms-notice": S.showTermsNotice,
288
289
  "is-sidebar-loading": !e(d),
289
- "base-price": e(V),
290
+ "base-price": e(D),
290
291
  "total-price": e(P),
291
292
  "weekend-fee": e(s),
292
293
  "room-upgrade": e(g),
@@ -296,11 +297,11 @@ const Vt = { class: "konnectio-pill-button" }, Pt = { class: "konnectio-pill-but
296
297
  ne(S.$slots, "form")
297
298
  ]),
298
299
  "reservation-summary": p(() => [
299
- e(u) ? (a(), m("li", St, [
300
+ e(u) ? (a(), m("li", Ot, [
300
301
  t("span", null, o(e(n)("booking.reservation.arrival")), 1),
301
302
  t("b", null, o(e(ke)(e(k))), 1)
302
303
  ])) : h("", !0),
303
- e(u) ? (a(), m("li", Lt, [
304
+ e(u) ? (a(), m("li", Bt, [
304
305
  t("span", null, o(e(n)("booking.reservation.departure")), 1),
305
306
  t("b", null, o(e(ke)(e(k), e($))), 1)
306
307
  ])) : h("", !0),
@@ -308,25 +309,25 @@ const Vt = { class: "konnectio-pill-button" }, Pt = { class: "konnectio-pill-but
308
309
  t("span", null, o(e(n)("event.numberOfGuests")), 1),
309
310
  t("b", null, o(e(_)), 1)
310
311
  ]),
311
- e(u) ? (a(), m("li", It, [
312
+ e(u) ? (a(), m("li", St, [
312
313
  t("span", null, o(e(n)("event.numberOfRooms")), 1),
313
314
  t("b", null, o(e(b)), 1)
314
315
  ])) : h("", !0),
315
- e(u) ? (a(), m("li", Nt, [
316
+ e(u) ? (a(), m("li", Lt, [
316
317
  t("span", null, o(e(n)("event.numberOfDays")), 1),
317
318
  t("b", null, o(e($)), 1)
318
319
  ])) : h("", !0),
319
- !e(u) && e(l) ? (a(), m("li", Mt, [
320
+ !e(u) && e(l) ? (a(), m("li", It, [
320
321
  t("span", null, o(e(n)("event.startOfEvent")), 1),
321
322
  t("b", null, o(e(ve)(e(l))), 1)
322
323
  ])) : h("", !0),
323
- !e(u) && e(v) ? (a(), m("li", Rt, [
324
+ !e(u) && e(v) ? (a(), m("li", Nt, [
324
325
  t("span", null, o(e(n)("event.lengthOfEvent")), 1),
325
326
  t("b", null, o(e(ve)(e(v))), 1)
326
327
  ])) : h("", !0)
327
328
  ]),
328
329
  "price-summary": p(() => [
329
- !e(u) && e(y) > 0 ? (a(), m("li", Ut, [
330
+ !e(u) && e(y) > 0 ? (a(), m("li", Mt, [
330
331
  t("span", null, o(e(n)("booking.availability.basePrice")), 1),
331
332
  t("b", null, o(e(R)(e(y), e(X))), 1)
332
333
  ])) : h("", !0),
@@ -349,29 +350,29 @@ const Vt = { class: "konnectio-pill-button" }, Pt = { class: "konnectio-pill-but
349
350
  } : void 0
350
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"]));
351
352
  }
352
- }), 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__ */ Y({
353
354
  __name: "EventSkeleton",
354
355
  setup(c) {
355
- return (n, i) => (a(), m("div", Ft, [
356
- t("div", qt, [
356
+ return (n, i) => (a(), m("div", Rt, [
357
+ t("div", Ut, [
357
358
  f(Pe)
358
359
  ]),
359
- t("div", zt, [
360
+ t("div", Ft, [
360
361
  h("", !0),
361
- f(st)
362
+ f(lt)
362
363
  ])
363
364
  ]));
364
365
  }
365
- }), Ht = /* @__PURE__ */ se(Gt, [["__scopeId", "data-v-3e15c4e3"]]), U = (c) => (Ge("data-v-af6f09ee"), c = c(), He(), c), jt = {
366
+ }), zt = /* @__PURE__ */ se(qt, [["__scopeId", "data-v-3e15c4e3"]]), U = (c) => (ze("data-v-df616d0e"), c = c(), Ge(), c), Gt = {
366
367
  key: 0,
367
368
  id: "fresh-booking-event-overview"
368
369
  };
369
- const Yt = { class: "fresh-booking-event-listings" };
370
- const Zt = { class: "fresh-booking-event-listings" }, Jt = { class: "konnectio-panel" }, Kt = {
370
+ const Ht = { class: "fresh-booking-event-listings" };
371
+ const jt = { class: "fresh-booking-event-listings" }, Yt = { class: "konnectio-panel" }, Zt = {
371
372
  key: 1,
372
373
  id: "fresh-booking-event-addons"
373
- }, 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 };
374
- 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__ */ Y({
375
376
  name: "EventLayout",
376
377
  __name: "Event",
377
378
  props: {
@@ -392,7 +393,7 @@ const sn = { key: 3 }, rn = { class: "konnectio-label required" }, un = { class:
392
393
  hasEvents: k,
393
394
  hasTemplates: y,
394
395
  getEvents: C,
395
- getTemplates: V,
396
+ getTemplates: D,
396
397
  getEventData: P,
397
398
  getTemplateData: s,
398
399
  getEventTableData: g,
@@ -403,14 +404,14 @@ const sn = { key: 3 }, rn = { class: "konnectio-label required" }, un = { class:
403
404
  isTemplateEvent: S,
404
405
  hasListingData: x,
405
406
  isPaymentLoading: F
406
- } = H(j()), { searchDate: ee } = H(Qe()), {
407
+ } = H(j()), { searchDate: ee } = H(Ke()), {
407
408
  initialize: Ce,
408
409
  fetchListings: Oe,
409
410
  createBooking: Be,
410
411
  localAddonPrice: fe,
411
412
  totalAddonPrice: Se,
412
413
  reset: be
413
- } = j(), { currency: Z } = H(Ve()), Le = le(() => {
414
+ } = j(), { currency: Z } = H(De()), Le = le(() => {
414
415
  const L = [];
415
416
  return g.value && g.value.forEach((w) => {
416
417
  L.push({
@@ -419,33 +420,34 @@ const sn = { key: 3 }, rn = { class: "konnectio-label required" }, un = { class:
419
420
  });
420
421
  }), L;
421
422
  });
422
- return Fe(() => Ce()), qe(ee, () => Oe()), (L, w) => (a(), T(Xe, { styling: L.styling }, {
423
+ return Fe(ee, () => Oe()), (L, w) => (a(), T(We, { styling: L.styling }, {
423
424
  default: p(() => [
424
- (a(), T(ze, null, {
425
+ (a(), T(qe, null, {
425
426
  default: p(() => [
426
- f(pt, {
427
+ f(dt, {
427
428
  id: "konnectio-event-module",
428
- "access-token": L.accessToken
429
+ "access-token": L.accessToken,
430
+ callback: e(Ce)
429
431
  }, {
430
432
  default: p(() => [
431
- f(it, null, {
433
+ f(at, null, {
432
434
  availability: p(({ next: q }) => [
433
435
  f(de, null, {
434
436
  sidebar: p(() => [
435
- f(mt, { redirection: !1 })
437
+ f(ct, { redirection: !1 })
436
438
  ]),
437
439
  form: p(() => [
438
- e(x) && e(ie) ? (a(), m("div", jt, [
440
+ e(x) && e(ie) ? (a(), m("div", Gt, [
439
441
  e(k) && L.onlyShow !== "templates" ? (a(), m(B, { key: 0 }, [
440
442
  h("", !0),
441
- t("ul", Yt, [
443
+ t("ul", Ht, [
442
444
  (a(!0), m(B, null, z(e(C), ({
443
445
  id: A,
444
446
  days: r,
445
447
  name: I,
446
448
  timeFrom: N,
447
449
  timeTo: E,
448
- fromDate: D,
450
+ fromDate: V,
449
451
  toDate: J,
450
452
  tableGroupId: K,
451
453
  description: re,
@@ -453,7 +455,7 @@ const sn = { key: 3 }, rn = { class: "konnectio-label required" }, un = { class:
453
455
  length: Q,
454
456
  images: Ie,
455
457
  maxOnlineReservationLimit: Ne
456
- }) => (a(), T(Ct, {
458
+ }) => (a(), T(Pt, {
457
459
  key: A,
458
460
  type: "event",
459
461
  "listing-id": A,
@@ -463,7 +465,7 @@ const sn = { key: 3 }, rn = { class: "konnectio-label required" }, un = { class:
463
465
  length: Q,
464
466
  gallery: Ie,
465
467
  days: r,
466
- "from-date": D,
468
+ "from-date": V,
467
469
  "to-date": J,
468
470
  "max-online-reservation-limit": Ne,
469
471
  "time-from": N,
@@ -475,17 +477,17 @@ const sn = { key: 3 }, rn = { class: "konnectio-label required" }, un = { class:
475
477
  ], 64)) : h("", !0),
476
478
  e(y) && L.onlyShow !== "events" ? (a(), m(B, { key: 1 }, [
477
479
  h("", !0),
478
- t("ul", Zt, [
479
- (a(!0), m(B, null, z(e(V), ({
480
+ t("ul", jt, [
481
+ (a(!0), m(B, null, z(e(D), ({
480
482
  id: A,
481
483
  name: r,
482
484
  fromDate: I,
483
485
  toDate: N,
484
486
  minimumPersonCount: E,
485
- fromPrice: D,
487
+ fromPrice: V,
486
488
  description: J,
487
489
  imageUrl: K
488
- }) => (a(), T(Bt, {
490
+ }) => (a(), T(Ct, {
489
491
  key: A,
490
492
  "listing-id": A,
491
493
  name: r,
@@ -494,7 +496,7 @@ const sn = { key: 3 }, rn = { class: "konnectio-label required" }, un = { class:
494
496
  "from-date": I,
495
497
  "to-date": N,
496
498
  "minimum-person-count": E,
497
- fromPrice: D,
499
+ fromPrice: V,
498
500
  callback: q
499
501
  }, null, 8, ["listing-id", "name", "image", "description", "from-date", "to-date", "minimum-person-count", "fromPrice", "callback"]))), 128))
500
502
  ])
@@ -507,7 +509,7 @@ const sn = { key: 3 }, rn = { class: "konnectio-label required" }, un = { class:
507
509
  addons: p(({ next: q, prev: A }) => [
508
510
  e(X) ? (a(), T(de, { key: 0 }, {
509
511
  form: p(() => [
510
- t("form", Jt, [
512
+ t("form", Yt, [
511
513
  t("h2", null, [
512
514
  t("span", null, o(e(n)("booking.reservation.addons")), 1)
513
515
  ]),
@@ -519,7 +521,7 @@ const sn = { key: 3 }, rn = { class: "konnectio-label required" }, un = { class:
519
521
  "min-value": 1,
520
522
  required: ""
521
523
  }, null, 8, ["modelValue", "label"])) : h("", !0),
522
- e(s) && e(s).length > 0 ? (a(), m("ul", Kt, [
524
+ e(s) && e(s).length > 0 ? (a(), m("ul", Zt, [
523
525
  (a(!0), m(B, null, z(e(s), ({
524
526
  roomGroupId: r,
525
527
  addons: I,
@@ -535,55 +537,55 @@ const sn = { key: 3 }, rn = { class: "konnectio-label required" }, un = { class:
535
537
  }),
536
538
  ge(" " + o(N) + ") ", 1)
537
539
  ]),
538
- t("table", Qt, [
540
+ t("table", Jt, [
539
541
  t("thead", null, [
540
542
  t("tr", null, [
541
543
  t("th", null, [
542
544
  t("span", null, o(e(n)("booking.reservation.addons")), 1)
543
545
  ]),
544
- Wt,
545
- t("th", Xt, [
546
+ Kt,
547
+ t("th", Qt, [
546
548
  t("span", null, o(e(n)("booking.availability.price")), 1)
547
549
  ])
548
550
  ])
549
551
  ]),
550
552
  t("tbody", null, [
551
553
  (a(!0), m(B, null, z(I, ({
552
- id: D,
554
+ id: V,
553
555
  cardinality: J,
554
556
  name: K,
555
557
  price: re,
556
558
  quantityStrategy: ue
557
- }) => (a(), m("tr", { key: D }, [
559
+ }) => (a(), m("tr", { key: V }, [
558
560
  t("td", null, [
559
561
  t("b", null, o(K), 1),
560
- xt,
561
- t("span", null, o(e(R)(re, e(Z))) + " " + o(e(We)(ue)), 1)
562
+ Wt,
563
+ t("span", null, o(e(R)(re, e(Z))) + " " + o(e(Qe)(ue)), 1)
562
564
  ]),
563
- t("td", en, [
565
+ t("td", Xt, [
564
566
  J === 3 ? (a(), T(oe, {
565
567
  key: 0,
566
- modelValue: e(i)[`${r}.${D}.${E}`],
567
- "onUpdate:modelValue": (Q) => e(i)[`${r}.${D}.${E}`] = Q,
568
+ modelValue: e(i)[`${r}.${V}.${E}`],
569
+ "onUpdate:modelValue": (Q) => e(i)[`${r}.${V}.${E}`] = Q,
568
570
  small: !0,
569
571
  "min-value": 0
570
- }, null, 8, ["modelValue", "onUpdate:modelValue"])) : (a(), T(bt, {
572
+ }, null, 8, ["modelValue", "onUpdate:modelValue"])) : (a(), T(vt, {
571
573
  key: 1,
572
- modelValue: e(i)[`${r}.${D}.${E}`],
573
- "onUpdate:modelValue": (Q) => e(i)[`${r}.${D}.${E}`] = Q,
574
+ modelValue: e(i)[`${r}.${V}.${E}`],
575
+ "onUpdate:modelValue": (Q) => e(i)[`${r}.${V}.${E}`] = Q,
574
576
  numeric: !0
575
577
  }, null, 8, ["modelValue", "onUpdate:modelValue"]))
576
578
  ]),
577
- t("td", tn, [
578
- t("span", null, o(e(R)(e(fe)(D, r, E), e(Z))), 1)
579
+ t("td", xt, [
580
+ t("span", null, o(e(R)(e(fe)(V, r, E), e(Z))), 1)
579
581
  ])
580
582
  ]))), 128))
581
583
  ]),
582
584
  t("tfoot", null, [
583
585
  t("tr", null, [
584
- nn,
585
- on,
586
- t("td", ln, [
586
+ en,
587
+ tn,
588
+ t("td", nn, [
587
589
  t("u", null, [
588
590
  t("span", null, o(e(R)(e(Se)(r, E), e(Z))), 1)
589
591
  ])
@@ -593,9 +595,9 @@ const sn = { key: 3 }, rn = { class: "konnectio-label required" }, un = { class:
593
595
  ])
594
596
  ]))), 128))
595
597
  ])) : h("", !0),
596
- e(W) !== e(ye).FullDayEvent && !e(S) ? (a(), m("div", an, [
598
+ e(W) !== e(ye).FullDayEvent && !e(S) ? (a(), m("div", on, [
597
599
  h("", !0),
598
- f(rt, {
600
+ f(st, {
599
601
  modelValue: e(v),
600
602
  "onUpdate:modelValue": w[1] || (w[1] = (r) => M(v) ? v.value = r : null),
601
603
  label: e(n)("event.selectArrivalTime"),
@@ -604,18 +606,18 @@ const sn = { key: 3 }, rn = { class: "konnectio-label required" }, un = { class:
604
606
  required: ""
605
607
  }, null, 8, ["modelValue", "label", "checkboxes"])
606
608
  ])) : h("", !0),
607
- e(O) ? (a(), m("div", sn, [
608
- t("label", rn, [
609
+ e(O) ? (a(), m("div", ln, [
610
+ t("label", an, [
609
611
  t("span", null, o(e(n)("event.selectProducts")), 1)
610
612
  ]),
611
- t("table", un, [
613
+ t("table", sn, [
612
614
  t("thead", null, [
613
615
  t("tr", null, [
614
616
  t("th", null, [
615
617
  t("span", null, o(e(n)("booking.reservation.addons")), 1)
616
618
  ]),
617
- cn,
618
- t("th", dn, [
619
+ rn,
620
+ t("th", un, [
619
621
  t("span", null, o(e(n)("booking.availability.price")), 1)
620
622
  ])
621
623
  ])
@@ -626,20 +628,20 @@ const sn = { key: 3 }, rn = { class: "konnectio-label required" }, un = { class:
626
628
  t("b", null, [
627
629
  t("span", null, o(I), 1)
628
630
  ]),
629
- mn,
631
+ cn,
630
632
  t("span", null, o(E), 1),
631
- pn,
633
+ dn,
632
634
  t("span", null, o(e(R)(N, e(Z))), 1)
633
635
  ]),
634
- t("td", vn, [
636
+ t("td", mn, [
635
637
  f(oe, {
636
638
  modelValue: e(d)[r],
637
- "onUpdate:modelValue": (D) => e(d)[r] = D,
639
+ "onUpdate:modelValue": (V) => e(d)[r] = V,
638
640
  small: !0,
639
641
  "min-value": 0
640
642
  }, null, 8, ["modelValue", "onUpdate:modelValue"])
641
643
  ]),
642
- t("td", fn, [
644
+ t("td", pn, [
643
645
  t("span", null, o(e(R)(e(fe)(r), e(Z))), 1)
644
646
  ])
645
647
  ]))), 128))
@@ -659,7 +661,7 @@ const sn = { key: 3 }, rn = { class: "konnectio-label required" }, un = { class:
659
661
  onClick: he((r) => e(be)(A), ["prevent"])
660
662
  }, [
661
663
  t("span", null, o(e(n)("general.goAStepBack")), 1)
662
- ], 8, bn)
664
+ ], 8, vn)
663
665
  ]),
664
666
  _: 2
665
667
  }, 1024)) : h("", !0)
@@ -670,7 +672,7 @@ const sn = { key: 3 }, rn = { class: "konnectio-label required" }, un = { class:
670
672
  "show-gift-card": !0
671
673
  }, {
672
674
  form: p(() => [
673
- t("form", gn, [
675
+ t("form", fn, [
674
676
  t("h2", null, [
675
677
  t("span", null, o(e(n)("booking.reservation.detailsTitle")), 1)
676
678
  ]),
@@ -694,7 +696,7 @@ const sn = { key: 3 }, rn = { class: "konnectio-label required" }, un = { class:
694
696
  placeholder: e(n)("booking.reservation.emailPlaceholder"),
695
697
  required: ""
696
698
  }, null, 8, ["modelValue", "label", "placeholder"]),
697
- f(gt, {
699
+ f(ft, {
698
700
  modelValue: e(b),
699
701
  "onUpdate:modelValue": w[4] || (w[4] = (r) => M(b) ? b.value = r : null),
700
702
  label: e(n)("booking.reservation.phone"),
@@ -724,16 +726,16 @@ const sn = { key: 3 }, rn = { class: "konnectio-label required" }, un = { class:
724
726
  onClick: he((r) => e(be)(A), ["prevent"])
725
727
  }, [
726
728
  t("span", null, o(e(n)("general.goAStepBack")), 1)
727
- ], 8, hn)
729
+ ], 8, bn)
728
730
  ]),
729
731
  _: 2
730
732
  }, 1024)
731
733
  ]),
732
734
  payment: p(() => [
733
- f(ht)
735
+ f(bt)
734
736
  ]),
735
737
  confirmation: p(() => [
736
- f(ut, {
738
+ f(it, {
737
739
  message: e(n)("event.confirmationMessage")
738
740
  }, null, 8, ["message"])
739
741
  ]),
@@ -741,10 +743,10 @@ const sn = { key: 3 }, rn = { class: "konnectio-label required" }, un = { class:
741
743
  })
742
744
  ]),
743
745
  _: 1
744
- }, 8, ["access-token"])
746
+ }, 8, ["access-token", "callback"])
745
747
  ]),
746
748
  fallback: p(() => [
747
- f(Ht)
749
+ f(zt)
748
750
  ]),
749
751
  _: 1
750
752
  }))
@@ -752,8 +754,8 @@ const sn = { key: 3 }, rn = { class: "konnectio-label required" }, un = { class:
752
754
  _: 1
753
755
  }, 8, ["styling"]));
754
756
  }
755
- }), te = /* @__PURE__ */ se(kn, [["__scopeId", "data-v-af6f09ee"]]), yn = xe(), _n = ot();
756
- class $n extends HTMLElement {
757
+ }), te = /* @__PURE__ */ se(gn, [["__scopeId", "data-v-df616d0e"]]), hn = Xe(), kn = tt();
758
+ class yn extends HTMLElement {
757
759
  vueApp;
758
760
  constructor() {
759
761
  super();
@@ -775,13 +777,13 @@ class $n extends HTMLElement {
775
777
  let v = this.attributes.getNamedItem(u)?.value;
776
778
  b.hasOwnProperty(u) && (v = b[u]), _[u] = v;
777
779
  }
778
- 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 });
780
+ this.vueApp = He(te, _), 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 });
779
781
  const $ = document.createElement("div");
780
782
  this.vueApp.mount($), this.appendChild($.children[0]);
781
783
  }
782
784
  }
783
- window.customElements.define("konnectio-event", $n);
785
+ window.customElements.define("konnectio-event", yn);
784
786
  export {
785
- $n as default
787
+ yn as default
786
788
  };
787
789
  //# sourceMappingURL=event.js.map