@konnectio/core 4.0.91 → 4.0.92

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