@konnectio/core 4.0.56-rc34 → 4.0.56-rc36

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