@konnectio/core 4.0.56-rc6 → 4.0.56-rc60

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