@konnectio/core 4.0.82 → 4.0.83

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