@konnectio/core 4.0.67 → 4.0.69

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