@konnectio/core 4.0.82 → 4.0.84

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