@konnectio/core 4.0.55 → 4.0.56-rc10

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/README.md +7 -7
  2. package/dist/{ActionField-89f587d4.js → ActionField-1TedZ-ol.js} +10 -12
  3. package/dist/ActionField-1TedZ-ol.js.br +0 -0
  4. package/dist/AvailabilitySkeleton-IRkVJKVI.js +214 -0
  5. package/dist/AvailabilitySkeleton-IRkVJKVI.js.br +0 -0
  6. package/dist/{CheckoutWindow-df8612e3.js → CheckoutWindow-GzqBHFb5.js} +37 -34
  7. package/dist/CheckoutWindow-GzqBHFb5.js.br +0 -0
  8. package/dist/{DateField.vue_vue_type_style_index_0_lang-bbaed106.js → DateField.vue_vue_type_style_index_0_lang-N7m8Y11B.js} +2664 -2660
  9. package/dist/DateField.vue_vue_type_style_index_0_lang-N7m8Y11B.js.br +0 -0
  10. package/dist/Field-agqP-A21.js +42 -0
  11. package/dist/Field-agqP-A21.js.br +0 -0
  12. package/dist/{SelectField.vue_vue_type_style_index_0_lang-11cea6ba.js → SelectField.vue_vue_type_style_index_0_lang-Throo8e2.js} +10010 -9879
  13. package/dist/SelectField.vue_vue_type_style_index_0_lang-Throo8e2.js.br +0 -0
  14. package/dist/{ThankYou-159b55d6.js → ThankYou-0uAYL16f.js} +2318 -1988
  15. package/dist/ThankYou-0uAYL16f.js.br +0 -0
  16. package/dist/_-K1FuFdRs.js +19 -0
  17. package/dist/{_commonjsHelpers-aeeeeb92.js → _commonjsHelpers-2ufMB8rV.js} +2 -2
  18. package/dist/availability.js +135 -112
  19. package/dist/availability.js.br +0 -0
  20. package/dist/{event-6cd5d9be.js → event-Jiun7WTg.js} +23 -23
  21. package/dist/event-Jiun7WTg.js.br +0 -0
  22. package/dist/event.js +448 -425
  23. package/dist/event.js.br +0 -0
  24. package/dist/gift-card-validation.js +80 -67
  25. package/dist/gift-card-validation.js.br +0 -0
  26. package/dist/gift-card.js +281 -261
  27. package/dist/gift-card.js.br +0 -0
  28. package/dist/hotel-7JmuavEN.js +3108 -0
  29. package/dist/hotel-7JmuavEN.js.br +0 -0
  30. package/dist/hotel.js +12 -3093
  31. package/dist/polyfill.js +3032 -3065
  32. package/dist/polyfill.js.br +0 -0
  33. package/dist/style.css +1 -1
  34. package/dist/style.css.br +0 -0
  35. package/package.json +33 -25
  36. package/dist/ActionField-087c3437.cjs +0 -1
  37. package/dist/ActionField-89f587d4.js.br +0 -0
  38. package/dist/AvailabilitySkeleton-01aab3cb.js +0 -237
  39. package/dist/AvailabilitySkeleton-01aab3cb.js.br +0 -0
  40. package/dist/AvailabilitySkeleton-452df88c.cjs +0 -1
  41. package/dist/CheckoutWindow-1d77f68c.cjs +0 -1
  42. package/dist/CheckoutWindow-df8612e3.js.br +0 -0
  43. package/dist/Container-3af1f7f7.cjs +0 -1
  44. package/dist/Container-9f1ed24c.js +0 -59
  45. package/dist/Container-9f1ed24c.js.br +0 -0
  46. package/dist/DateField.vue_vue_type_style_index_0_lang-b5676dde.cjs +0 -2
  47. package/dist/DateField.vue_vue_type_style_index_0_lang-bbaed106.js.br +0 -0
  48. package/dist/Field-43273ca2.cjs +0 -1
  49. package/dist/Field-92684198.js +0 -42
  50. package/dist/Field-92684198.js.br +0 -0
  51. package/dist/NumberField.vue_vue_type_script_setup_true_lang-a149d388.cjs +0 -1
  52. package/dist/NumberField.vue_vue_type_script_setup_true_lang-ce6f0b17.js +0 -67
  53. package/dist/NumberField.vue_vue_type_script_setup_true_lang-ce6f0b17.js.br +0 -0
  54. package/dist/SelectField.vue_vue_type_style_index_0_lang-11cea6ba.js.br +0 -0
  55. package/dist/SelectField.vue_vue_type_style_index_0_lang-b1435f5a.cjs +0 -856
  56. package/dist/ThankYou-159b55d6.js.br +0 -0
  57. package/dist/ThankYou-c1cbecac.cjs +0 -59
  58. package/dist/_-52440760.js +0 -20
  59. package/dist/_-fbbc271a.cjs +0 -1
  60. package/dist/_commonjsHelpers-6763f629.cjs +0 -1
  61. package/dist/assets/typescript/mixins.d.ts +0 -34
  62. package/dist/availability.cjs +0 -2
  63. package/dist/availability.d.ts +0 -3
  64. package/dist/components/Alert.vue.d.ts +0 -5
  65. package/dist/components/Alert.vue.d.ts.map +0 -1
  66. package/dist/components/Clickable.vue.d.ts +0 -5
  67. package/dist/components/Clickable.vue.d.ts.map +0 -1
  68. package/dist/components/Container.vue.d.ts +0 -5
  69. package/dist/components/Container.vue.d.ts.map +0 -1
  70. package/dist/components/ErrorMessage.vue.d.ts +0 -5
  71. package/dist/components/ErrorMessage.vue.d.ts.map +0 -1
  72. package/dist/components/Gallery.vue.d.ts +0 -4
  73. package/dist/components/Gallery.vue.d.ts.map +0 -1
  74. package/dist/components/GoogleNotice.vue.d.ts +0 -4
  75. package/dist/components/GoogleNotice.vue.d.ts.map +0 -1
  76. package/dist/components/Icon.vue.d.ts +0 -5
  77. package/dist/components/Icon.vue.d.ts.map +0 -1
  78. package/dist/components/Loading.vue.d.ts +0 -5
  79. package/dist/components/Loading.vue.d.ts.map +0 -1
  80. package/dist/components/Spinner.vue.d.ts +0 -4
  81. package/dist/components/Spinner.vue.d.ts.map +0 -1
  82. package/dist/components/forms/EventAvailabilityForm.vue.d.ts +0 -5
  83. package/dist/components/forms/EventAvailabilityForm.vue.d.ts.map +0 -1
  84. package/dist/components/forms/HotelAvailabilityForm.vue.d.ts +0 -5
  85. package/dist/components/forms/HotelAvailabilityForm.vue.d.ts.map +0 -1
  86. package/dist/components/forms/HotelReservationForm.vue.d.ts +0 -4
  87. package/dist/components/forms/HotelReservationForm.vue.d.ts.map +0 -1
  88. package/dist/components/forms/MultiStepForm.vue.d.ts +0 -5
  89. package/dist/components/forms/MultiStepForm.vue.d.ts.map +0 -1
  90. package/dist/components/forms/ReservationForm.vue.d.ts +0 -6
  91. package/dist/components/forms/ReservationForm.vue.d.ts.map +0 -1
  92. package/dist/components/forms/_.vue.d.ts +0 -4
  93. package/dist/components/forms/_.vue.d.ts.map +0 -1
  94. package/dist/components/inputs/Checkbox.vue.d.ts +0 -5
  95. package/dist/components/inputs/Checkbox.vue.d.ts.map +0 -1
  96. package/dist/components/inputs/CheckboxField.vue.d.ts +0 -5
  97. package/dist/components/inputs/CheckboxField.vue.d.ts.map +0 -1
  98. package/dist/components/inputs/DateField.vue.d.ts +0 -5
  99. package/dist/components/inputs/DateField.vue.d.ts.map +0 -1
  100. package/dist/components/inputs/InputField.vue.d.ts +0 -5
  101. package/dist/components/inputs/InputField.vue.d.ts.map +0 -1
  102. package/dist/components/inputs/MediaSelector.vue.d.ts +0 -5
  103. package/dist/components/inputs/MediaSelector.vue.d.ts.map +0 -1
  104. package/dist/components/inputs/NumberField.vue.d.ts +0 -5
  105. package/dist/components/inputs/NumberField.vue.d.ts.map +0 -1
  106. package/dist/components/inputs/SelectField.vue.d.ts +0 -5
  107. package/dist/components/inputs/SelectField.vue.d.ts.map +0 -1
  108. package/dist/components/inputs/TextField.vue.d.ts +0 -5
  109. package/dist/components/inputs/TextField.vue.d.ts.map +0 -1
  110. package/dist/components/inputs/TimeField.vue.d.ts +0 -5
  111. package/dist/components/inputs/TimeField.vue.d.ts.map +0 -1
  112. package/dist/components/inputs/grouped/ActionField.vue.d.ts +0 -5
  113. package/dist/components/inputs/grouped/ActionField.vue.d.ts.map +0 -1
  114. package/dist/components/inputs/grouped/CountryField.vue.d.ts +0 -5
  115. package/dist/components/inputs/grouped/CountryField.vue.d.ts.map +0 -1
  116. package/dist/components/inputs/grouped/NameField.vue.d.ts +0 -5
  117. package/dist/components/inputs/grouped/NameField.vue.d.ts.map +0 -1
  118. package/dist/components/inputs/grouped/PhoneField.vue.d.ts +0 -5
  119. package/dist/components/inputs/grouped/PhoneField.vue.d.ts.map +0 -1
  120. package/dist/components/inputs/grouped/RoomConfigField.vue.d.ts +0 -5
  121. package/dist/components/inputs/grouped/RoomConfigField.vue.d.ts.map +0 -1
  122. package/dist/components/listings/Base.vue.d.ts +0 -6
  123. package/dist/components/listings/Base.vue.d.ts.map +0 -1
  124. package/dist/components/listings/Event.vue.d.ts +0 -5
  125. package/dist/components/listings/Event.vue.d.ts.map +0 -1
  126. package/dist/components/listings/Hotel.vue.d.ts +0 -5
  127. package/dist/components/listings/Hotel.vue.d.ts.map +0 -1
  128. package/dist/components/listings/Template.vue.d.ts +0 -5
  129. package/dist/components/listings/Template.vue.d.ts.map +0 -1
  130. package/dist/components/side-panels/Base.vue.d.ts +0 -6
  131. package/dist/components/side-panels/Base.vue.d.ts.map +0 -1
  132. package/dist/components/side-panels/ListingInfo.vue.d.ts +0 -5
  133. package/dist/components/side-panels/ListingInfo.vue.d.ts.map +0 -1
  134. package/dist/components/side-panels/Template.vue.d.ts +0 -5
  135. package/dist/components/side-panels/Template.vue.d.ts.map +0 -1
  136. package/dist/components/side-panels/TermsOfService.vue.d.ts +0 -5
  137. package/dist/components/side-panels/TermsOfService.vue.d.ts.map +0 -1
  138. package/dist/components/skeletons/AvailabilitySkeleton.vue.d.ts +0 -5
  139. package/dist/components/skeletons/AvailabilitySkeleton.vue.d.ts.map +0 -1
  140. package/dist/components/skeletons/Field.vue.d.ts +0 -5
  141. package/dist/components/skeletons/Field.vue.d.ts.map +0 -1
  142. package/dist/components/skeletons/GiftCardSkeleton.vue.d.ts +0 -5
  143. package/dist/components/skeletons/GiftCardSkeleton.vue.d.ts.map +0 -1
  144. package/dist/components/skeletons/HotelSkeleton.vue.d.ts +0 -5
  145. package/dist/components/skeletons/HotelSkeleton.vue.d.ts.map +0 -1
  146. package/dist/components/skeletons/Listing.vue.d.ts +0 -5
  147. package/dist/components/skeletons/Listing.vue.d.ts.map +0 -1
  148. package/dist/components/skeletons/Sidebar.vue.d.ts +0 -5
  149. package/dist/components/skeletons/Sidebar.vue.d.ts.map +0 -1
  150. package/dist/components/skeletons/_.vue.d.ts +0 -5
  151. package/dist/components/skeletons/_.vue.d.ts.map +0 -1
  152. package/dist/components/views/CheckoutWindow.vue.d.ts +0 -5
  153. package/dist/components/views/CheckoutWindow.vue.d.ts.map +0 -1
  154. package/dist/components/views/TermsOfService.vue.d.ts +0 -5
  155. package/dist/components/views/TermsOfService.vue.d.ts.map +0 -1
  156. package/dist/components/views/ThankYou.vue.d.ts +0 -5
  157. package/dist/components/views/ThankYou.vue.d.ts.map +0 -1
  158. package/dist/entries/availability.d.ts +0 -5
  159. package/dist/entries/event.d.ts +0 -2
  160. package/dist/entries/gift-card-validation.d.ts +0 -2
  161. package/dist/entries/gift-card.d.ts +0 -1
  162. package/dist/entries/hotel.d.ts +0 -0
  163. package/dist/entries/navigation.d.ts +0 -1
  164. package/dist/entries/polyfill.d.ts +0 -0
  165. package/dist/event-6cd5d9be.js.br +0 -0
  166. package/dist/event-dfc9ed16.cjs +0 -1
  167. package/dist/event.cjs +0 -1
  168. package/dist/event.d.ts +0 -3
  169. package/dist/gift-card-validation.cjs +0 -1
  170. package/dist/gift-card-validation.d.ts +0 -3
  171. package/dist/gift-card.cjs +0 -1
  172. package/dist/gift-card.d.ts +0 -1
  173. package/dist/hotel.cjs +0 -19
  174. package/dist/hotel.d.ts +0 -1
  175. package/dist/hotel.js.br +0 -0
  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.cjs +0 -1
  183. package/dist/navigation.d.ts +0 -1
  184. package/dist/plugins/i18n.d.ts +0 -5
  185. package/dist/polyfill.cjs +0 -4
  186. package/dist/polyfill.d.ts +0 -1
  187. package/dist/store/alert.d.ts +0 -28
  188. package/dist/store/applyGiftCard.d.ts +0 -28
  189. package/dist/store/availability.d.ts +0 -40
  190. package/dist/store/event.d.ts +0 -683
  191. package/dist/store/giftCard.d.ts +0 -83
  192. package/dist/store/payment.d.ts +0 -139
  193. package/dist/store/tracking.d.ts +0 -57
  194. package/dist/store/utilities.d.ts +0 -365
  195. package/dist/types/index.d.ts +0 -968
package/dist/event.js CHANGED
@@ -1,13 +1,12 @@
1
- import { k as ge, F as he, b as Qe, s as z, c as ke, r as We, f as Ye, m as t, n as b, X as ze, w as g, A as l, p as r, K as h, H as n, q as e, Y as He, Z as ie, v as i, $ as re, x as u, a0 as Je, L as $, a1 as Ke, _ as fe, o as Xe, a2 as Ze, J as w, a3 as V, a4 as D, a5 as ue, O as de, T as me, a6 as ce, a7 as je, a8 as x, M as pe, P as xe, Q as Ge, R as el, V as ll, U as nl, W as tl, a9 as al } from "./SelectField.vue_vue_type_style_index_0_lang-11cea6ba.js";
2
- import { B as ol, M as sl, R as il, T as rl, x as ul } from "./ThankYou-159b55d6.js";
3
- import { u as H } from "./event-6cd5d9be.js";
4
- import { A as dl } from "./ActionField-89f587d4.js";
5
- import { P as ml, C as ve, a as cl } from "./CheckoutWindow-df8612e3.js";
6
- import { _ as pl } from "./DateField.vue_vue_type_style_index_0_lang-bbaed106.js";
7
- import { _ as G } from "./NumberField.vue_vue_type_script_setup_true_lang-ce6f0b17.js";
8
- import "./_commonjsHelpers-aeeeeb92.js";
9
- import "./_-52440760.js";
10
- const vl = { class: "fresh-booking-event-listing-information" }, bl = { key: 0 }, gl = { key: 1 }, hl = /* @__PURE__ */ ge({
1
+ import { k as ge, B as he, b as Ie, s as Q, c as fe, r as Ze, f as je, o as a, m as y, a0 as He, w as k, x as l, p as r, H as V, F as n, z as e, a1 as Qe, a2 as ie, l as i, a3 as re, n as d, a4 as Ye, J as U, a5 as Je, _ as ke, Z as Ke, Y as We, G as F, $ as C, a6 as R, a7 as ue, O as de, A as x, T as me, a8 as ce, a9 as Xe, aa as ee, K as pe, M as Ge, N as xe, P as el, Q as ll, R as nl, U as tl, V as al, ab as ol } from "./SelectField.vue_vue_type_style_index_0_lang-Throo8e2.js";
2
+ import { B as sl, M as il, R as rl, T as ul, V as dl } from "./ThankYou-0uAYL16f.js";
3
+ import { u as Y } from "./event-Jiun7WTg.js";
4
+ import { A as ml } from "./ActionField-1TedZ-ol.js";
5
+ import { P as cl, C as ve, a as pl } from "./CheckoutWindow-GzqBHFb5.js";
6
+ import { _ as vl } from "./DateField.vue_vue_type_style_index_0_lang-N7m8Y11B.js";
7
+ import "./_commonjsHelpers-2ufMB8rV.js";
8
+ import "./_-K1FuFdRs.js";
9
+ const bl = { class: "fresh-booking-event-listing-information" }, gl = { key: 0 }, hl = { key: 1 }, fl = /* @__PURE__ */ ge({
11
10
  __name: "Event",
12
11
  props: {
13
12
  name: {},
@@ -29,110 +28,110 @@ const vl = { class: "fresh-booking-event-listing-information" }, bl = { key: 0 }
29
28
  trackingEnabled: { type: Boolean },
30
29
  callback: {}
31
30
  },
32
- setup(L) {
33
- const { t: a } = he(), v = L, { display: E } = Qe(), { currency: I } = z(ke()), {
34
- maxNumberOfPeople: C,
35
- numberOfPeople: J,
36
- eventId: U,
31
+ setup(B) {
32
+ const { t } = he(), m = B, { display: P } = Ie(), { currency: N } = Q(fe()), {
33
+ maxNumberOfPeople: T,
34
+ numberOfPeople: _,
35
+ eventId: g,
37
36
  tableGroupId: A
38
- } = z(H()), {
39
- getTemplateAvailability: R,
40
- getEventAvailability: N,
41
- isEventListingLoading: O
42
- } = H(), P = We(0), Q = Ye(() => O(v.listingId)), K = () => {
43
- P.value > 0 ? (U.value = v.listingId, J.value = P.value, R(v.callback)) : E({
37
+ } = Q(Y()), {
38
+ getTemplateAvailability: u,
39
+ getEventAvailability: c,
40
+ isEventListingLoading: p
41
+ } = Y(), D = Ze(0), I = je(() => p(m.listingId)), J = () => {
42
+ D.value > 0 ? (g.value = m.listingId, _.value = D.value, u(m.callback)) : P({
44
43
  type: "error",
45
- message: a("alert.error.selectPeople")
44
+ message: t("alert.error.selectPeople")
46
45
  });
47
- }, k = () => {
48
- P.value > 0 ? (U.value = v.listingId, A.value = v.tableGroupId, J.value = P.value, N(v.callback)) : E({
46
+ }, $ = () => {
47
+ D.value > 0 ? (g.value = m.listingId, A.value = m.tableGroupId, _.value = D.value, c(m.callback)) : P({
49
48
  type: "error",
50
- message: a("alert.error.selectPeople")
49
+ message: t("alert.error.selectPeople")
51
50
  });
52
51
  };
53
- return (s, f) => (t(), b(ol, {
52
+ return (s, E) => (a(), y(sl, {
54
53
  "listing-id": s.listingId,
55
54
  gallery: s.gallery,
56
55
  name: s.name,
57
56
  description: s.description,
58
- layout: e(Ke).Event
59
- }, ze({
60
- action: g(() => [
61
- r(dl, {
62
- modelValue: P.value,
63
- "onUpdate:modelValue": f[0] || (f[0] = (B) => P.value = B),
57
+ layout: e(Je).Event
58
+ }, He({
59
+ action: k(() => [
60
+ r(ml, {
61
+ modelValue: D.value,
62
+ "onUpdate:modelValue": E[0] || (E[0] = (S) => D.value = S),
64
63
  type: "number",
65
- label: e(a)("event.numberOfGuests"),
66
- buttonLabel: s.soldOut ? e(a)("event.soldOut") : e(a)("event.bookNowButton"),
64
+ label: e(t)("event.numberOfGuests"),
65
+ buttonLabel: s.soldOut ? e(t)("event.soldOut") : e(t)("event.bookNowButton"),
67
66
  buttonDisabled: s.soldOut,
68
67
  "min-value": s.type === "event" ? 1 : s.minimumPersonCount,
69
- "max-value": s.type === "event" ? s.maxOnlineReservationLimit || 1 / 0 : e(C),
70
- "is-loading": Q.value,
71
- "onUpdate:isLoading": f[1] || (f[1] = (B) => Q.value = B),
72
- onAction: f[2] || (f[2] = (B) => s.type === "event" ? k() : K())
68
+ "max-value": s.type === "event" ? s.maxOnlineReservationLimit || 1 / 0 : e(T),
69
+ "is-loading": I.value,
70
+ "onUpdate:isLoading": E[1] || (E[1] = (S) => I.value = S),
71
+ onAction: E[2] || (E[2] = (S) => s.type === "event" ? $() : J())
73
72
  }, null, 8, ["modelValue", "label", "buttonLabel", "buttonDisabled", "min-value", "max-value", "is-loading"])
74
73
  ]),
75
74
  _: 2
76
75
  }, [
77
76
  s.type === "event" ? {
78
77
  name: "description",
79
- fn: g(() => [
80
- l("ul", vl, [
78
+ fn: k(() => [
79
+ l("ul", bl, [
81
80
  l("li", null, [
82
- r(h, {
81
+ r(V, {
83
82
  icon: "calendar-range",
84
83
  color: "header"
85
84
  }),
86
- l("span", null, n(e(He)(s.days)), 1)
85
+ l("span", null, n(e(Qe)(s.days)), 1)
87
86
  ]),
88
- e(ie)(s.fromDate, s.toDate) < 180 ? (t(), i("li", bl, [
89
- r(h, {
87
+ e(ie)(s.fromDate, s.toDate) < 180 ? (a(), i("li", gl, [
88
+ r(V, {
90
89
  icon: "calendar-days",
91
90
  color: "header"
92
91
  }),
93
92
  l("span", null, n(e(re)(s.fromDate, s.toDate)), 1)
94
- ])) : u("", !0),
93
+ ])) : d("", !0),
95
94
  l("li", null, [
96
- r(h, {
95
+ r(V, {
97
96
  icon: "calendar-clock",
98
97
  color: "header"
99
98
  }),
100
- l("span", null, n(e(Je)(s.timeFrom, s.timeTo)), 1)
99
+ l("span", null, n(e(Ye)(s.timeFrom, s.timeTo)), 1)
101
100
  ]),
102
- s.maxOnlineReservationLimit ? (t(), i("li", gl, [
103
- r(h, {
101
+ s.maxOnlineReservationLimit ? (a(), i("li", hl, [
102
+ r(V, {
104
103
  icon: "user-alt",
105
104
  color: "header"
106
105
  }),
107
- l("span", null, n(`1 - ${s.maxOnlineReservationLimit} ${e(a)("general.people")}`), 1)
108
- ])) : u("", !0)
106
+ l("span", null, n(`1 - ${s.maxOnlineReservationLimit} ${e(t)("general.people")}`), 1)
107
+ ])) : d("", !0)
109
108
  ])
110
109
  ]),
111
110
  key: "0"
112
111
  } : {
113
112
  name: "description",
114
- fn: g(() => [
113
+ fn: k(() => [
115
114
  l("ul", { class: "fresh-booking-event-listing-information" }, [
116
- e(ie)(s.fromDate, s.toDate) < 180 ? (t(), i("li", { key: 0 }, [
117
- r(h, {
115
+ e(ie)(s.fromDate, s.toDate) < 180 ? (a(), i("li", { key: 0 }, [
116
+ r(V, {
118
117
  icon: "calendar-days",
119
118
  color: "header"
120
119
  }),
121
120
  l("span", null, n(e(re)(s.fromDate, s.toDate, !0)), 1)
122
- ])) : u("", !0),
121
+ ])) : d("", !0),
123
122
  l("li", null, [
124
- r(h, {
123
+ r(V, {
125
124
  icon: "user-alt",
126
125
  color: "header"
127
126
  }),
128
- l("span", null, n(`${s.minimumPersonCount} - ${e(C)} ${e(a)("general.people")}`), 1)
127
+ l("span", null, n(`${s.minimumPersonCount} - ${e(T)} ${e(t)("general.people")}`), 1)
129
128
  ]),
130
129
  l("li", null, [
131
- r(h, {
130
+ r(V, {
132
131
  icon: "money-bill",
133
132
  color: "header"
134
133
  }),
135
- l("span", null, n(`${e(a)("general.pricesFrom")} ${e($)(s.fromPrice, e(I))}`), 1)
134
+ l("span", null, n(`${e(t)("general.pricesFrom")} ${e(U)(s.fromPrice, e(N))}`), 1)
136
135
  ])
137
136
  ])
138
137
  ]),
@@ -140,39 +139,38 @@ const vl = { class: "fresh-booking-event-listing-information" }, bl = { key: 0 }
140
139
  }
141
140
  ]), 1032, ["listing-id", "gallery", "name", "description", "layout"]));
142
141
  }
143
- });
144
- const be = /* @__PURE__ */ fe(hl, [["__scopeId", "data-v-013d2269"]]), F = (L) => (Ge("data-v-b2eee97d"), L = L(), el(), L), kl = { class: "fresh-booking-panel" }, fl = {
142
+ }), be = /* @__PURE__ */ ke(fl, [["__scopeId", "data-v-013d2269"]]), M = (B) => (el("data-v-c609785a"), B = B(), ll(), B), kl = { class: "fresh-booking-panel" }, yl = {
145
143
  key: 0,
146
144
  id: "fresh-booking-event-overview"
147
- }, yl = { class: "fresh-booking-event-listings" }, _l = { class: "fresh-booking-event-listings" }, Vl = {
145
+ }, _l = { class: "fresh-booking-event-listings" }, Vl = { class: "fresh-booking-event-listings" }, Pl = {
148
146
  key: 2,
149
147
  id: "fresh-booking-event-addons"
150
- }, 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" }, Cl = { key: 3 }, Ul = { class: "fresh-booking-label required" }, Bl = { 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" }, ql = /* @__PURE__ */ F(() => /* @__PURE__ */ l("br", null, null, -1)), Ml = /* @__PURE__ */ F(() => /* @__PURE__ */ l("br", null, null, -1)), Il = { class: "fresh-booking-event-addons-input" }, Ql = { class: "fresh-booking-event-addons-price" }, Wl = { key: 0 }, Yl = { key: 1 }, zl = { key: 2 }, Hl = { key: 3 }, Jl = { key: 4 }, Kl = { key: 5 }, Xl = { key: 6 }, Zl = /* @__PURE__ */ ge({
148
+ }, Tl = { class: "fresh-booking-table" }, $l = /* @__PURE__ */ M(() => /* @__PURE__ */ l("th", { class: "fresh-booking-event-addons-input" }, null, -1)), El = { class: "fresh-booking-event-addons-price" }, wl = /* @__PURE__ */ M(() => /* @__PURE__ */ l("br", null, null, -1)), Ol = { class: "fresh-booking-event-addons-input" }, Cl = { class: "fresh-booking-event-addons-price" }, Al = /* @__PURE__ */ M(() => /* @__PURE__ */ l("td", { colspan: "2" }, null, -1)), Dl = { class: "fresh-booking-event-addons-price" }, Ll = { key: 3 }, Ul = { class: "fresh-booking-label required" }, Bl = { id: "fresh-booking-event-table" }, Fl = { key: 4 }, Rl = { class: "fresh-booking-label required" }, Nl = { class: "fresh-booking-table" }, Sl = /* @__PURE__ */ M(() => /* @__PURE__ */ l("th", { class: "fresh-booking-event-addons-input" }, null, -1)), Ml = { class: "fresh-booking-event-addons-price" }, ql = /* @__PURE__ */ M(() => /* @__PURE__ */ l("br", null, null, -1)), zl = /* @__PURE__ */ M(() => /* @__PURE__ */ l("br", null, null, -1)), Il = { class: "fresh-booking-event-addons-input" }, Zl = { class: "fresh-booking-event-addons-price" }, jl = { key: 0 }, Hl = { key: 1 }, Ql = { key: 2 }, Yl = { key: 3 }, Jl = { key: 4 }, Kl = { key: 5 }, Wl = { key: 6 }, Xl = /* @__PURE__ */ ge({
151
149
  name: "EventLayout",
152
150
  __name: "Event",
153
151
  props: {
154
152
  accessToken: {},
155
153
  styling: {}
156
154
  },
157
- setup(L) {
158
- const { t: a } = he(), {
159
- searchDate: v,
160
- addons: E,
161
- products: I,
162
- numberOfDays: C,
163
- discountCode: J,
164
- name: U,
155
+ setup(B) {
156
+ const { t } = he(), {
157
+ searchDate: m,
158
+ addons: P,
159
+ products: N,
160
+ numberOfDays: T,
161
+ discountCode: _,
162
+ name: g,
165
163
  phone: A,
166
- email: R,
167
- remark: N,
168
- arrivalTime: O,
169
- title: P,
170
- subtitle: Q,
171
- slideshow: K,
172
- currency: k,
164
+ email: u,
165
+ remark: c,
166
+ arrivalTime: p,
167
+ title: D,
168
+ subtitle: I,
169
+ slideshow: J,
170
+ currency: $,
173
171
  numberOfPeople: s,
174
- numberOfTotalDays: f,
175
- numberOfRooms: B,
172
+ numberOfTotalDays: E,
173
+ numberOfRooms: S,
176
174
  basePrice: ye,
177
175
  totalPrice: _e,
178
176
  isPaymentLoading: Ve,
@@ -180,381 +178,406 @@ const be = /* @__PURE__ */ fe(hl, [["__scopeId", "data-v-013d2269"]]), F = (L) =
180
178
  hasTemplates: Te,
181
179
  getEvents: $e,
182
180
  getTemplates: Ee,
183
- getEventData: Oe,
184
- getTemplateData: W,
185
- getEventTableData: we,
186
- length: ee,
187
- roomUpgrade: De,
188
- weekendFee: Le,
189
- fromDate: le,
190
- hasProducts: Ce,
191
- eventRateType: ne,
192
- isMetaDataAvailable: Ue,
193
- areListingsAvailable: Be,
194
- isReservationFormFilled: Fe,
195
- isAvailabilityDataAvailable: Ae,
181
+ getEventData: we,
182
+ getTemplateData: Z,
183
+ getEventTableData: Oe,
184
+ length: le,
185
+ roomUpgrade: Ce,
186
+ weekendFee: Ae,
187
+ fromDate: ne,
188
+ hasProducts: De,
189
+ eventRateType: te,
190
+ isMetaDataAvailable: Le,
191
+ areListingsAvailable: Ue,
192
+ isReservationFormFilled: Be,
193
+ isAvailabilityDataAvailable: Fe,
196
194
  // getEventImages,
197
- isTemplateEvent: T,
198
- tableBasePrice: te
199
- } = z(H()), {
195
+ isTemplateEvent: L,
196
+ tableBasePrice: ae
197
+ } = Q(Y()), {
200
198
  initialize: Re,
201
- validateDiscountCode: Gl,
199
+ validateDiscountCode: en,
202
200
  fetchListings: Ne,
203
201
  createBooking: Se,
204
- localAddonPrice: ae,
205
- totalAddonPrice: oe,
206
- reset: qe
207
- } = H(), {
208
- hideEvents: Me,
209
- hideEventTemplates: Ie
210
- } = z(ke());
211
- return Xe(() => Re()), Ze(v, () => Ne()), (se, d) => (t(), b(xe, {
212
- id: "fresh-booking-event-module",
213
- class: "fresh-booking-app",
214
- type: "event",
215
- "access-token": se.accessToken,
216
- styling: se.styling
217
- }, {
218
- default: g(() => [
219
- e(Ue) ? (t(), b(sl, {
220
- key: 0,
221
- slideshow: e(K),
222
- title: e(P),
223
- subtitle: e(Q)
202
+ localAddonPrice: oe,
203
+ totalAddonPrice: se,
204
+ reset: Me
205
+ } = Y(), {
206
+ hideEvents: qe,
207
+ hideEventTemplates: ze
208
+ } = Q(fe());
209
+ return Ke(() => Re()), We(m, () => Ne()), (K, v) => (a(), y(xe, { styling: K.styling }, {
210
+ default: k(() => [
211
+ r(Ge, {
212
+ id: "fresh-booking-event-module",
213
+ class: "fresh-booking-app",
214
+ type: "event",
215
+ "access-token": K.accessToken,
216
+ styling: K.styling
224
217
  }, {
225
- availability: g(({ next: Y }) => [
226
- l("div", kl, [
227
- r(pl, {
228
- modelValue: e(v),
229
- "onUpdate:modelValue": d[0] || (d[0] = (y) => w(v) ? v.value = y : null),
230
- label: e(a)("event.selectDate"),
231
- "min-date": /* @__PURE__ */ new Date()
232
- }, null, 8, ["modelValue", "label", "min-date"])
233
- ]),
234
- e(Be) ? (t(), i("div", fl, [
235
- e(Pe) && !e(Me) ? (t(), i(V, { key: 0 }, [
236
- l("h2", null, [
237
- r(h, {
238
- icon: "clock-seven",
239
- type: "fal",
240
- color: "header"
241
- }),
242
- l("span", null, n(e(a)("event.eventsTitle")), 1)
243
- ]),
244
- l("ul", yl, [
245
- (t(!0), i(V, null, D(e($e), ({
246
- id: y,
247
- days: o,
248
- name: c,
249
- timeFrom: _,
250
- timeTo: m,
251
- fromDate: p,
252
- toDate: S,
253
- tableGroupID: X,
254
- description: Z,
255
- soldOut: j,
256
- maxOnlineReservationLimit: q
257
- }) => (t(), b(be, {
258
- key: y,
259
- type: "event",
260
- "listing-id": y,
261
- "table-group-id": X,
262
- description: Z,
263
- name: c,
264
- days: o,
265
- "from-date": p,
266
- "to-date": S,
267
- "max-online-reservation-limit": q,
268
- "time-from": _,
269
- "time-to": m,
270
- "sold-out": j,
271
- callback: Y
272
- }, 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))
273
- ])
274
- ], 64)) : u("", !0),
275
- e(Te) && !e(Ie) ? (t(), i(V, { key: 1 }, [
276
- l("h2", null, [
277
- r(h, {
278
- icon: "stars",
279
- type: "fal",
280
- color: "header"
281
- }),
282
- l("span", null, n(e(a)("event.stayTitle")), 1)
283
- ]),
284
- l("ul", _l, [
285
- (t(!0), i(V, null, D(e(Ee), ({
286
- id: y,
287
- name: o,
288
- fromDate: c,
289
- toDate: _,
290
- minimumPersonCount: m,
291
- fromPrice: p,
292
- description: S
293
- }) => (t(), b(be, {
294
- key: y,
295
- type: "template",
296
- "listing-id": y,
297
- name: o,
298
- description: S,
299
- "from-date": c,
300
- "to-date": _,
301
- "minimum-person-count": m,
302
- fromPrice: p,
303
- callback: Y
304
- }, null, 8, ["listing-id", "name", "description", "from-date", "to-date", "minimum-person-count", "fromPrice", "callback"]))), 128))
305
- ])
306
- ], 64)) : u("", !0)
307
- ])) : (t(), b(ue, { key: 1 }))
308
- ]),
309
- reservation: g(({ next: Y, prev: y }) => [
310
- e(Ae) ? (t(), b(il, {
218
+ default: k(() => [
219
+ e(Le) ? (a(), y(il, {
311
220
  key: 0,
312
- remark: e(N),
313
- "onUpdate:remark": d[8] || (d[8] = (o) => w(N) ? N.value = o : null),
314
- "is-filled": e(Fe),
315
- "is-loading": e(Ve),
316
- "base-price": e(ye),
317
- "total-price": e(_e),
318
- "weekend-fee": e(Le),
319
- "room-upgrade": e(De),
320
- onPrev: (o) => e(qe)(y),
321
- onNext: (o) => e(Se)(Y)
221
+ slideshow: e(J),
222
+ title: e(D),
223
+ subtitle: e(I)
322
224
  }, {
323
- form: g(() => [
324
- e(ne) === e(de).FullDayEvent ? (t(), b(G, {
325
- key: 0,
326
- modelValue: e(C),
327
- "onUpdate:modelValue": d[1] || (d[1] = (o) => w(C) ? C.value = o : null),
328
- label: e(a)("event.numberOfDays"),
329
- "min-value": 1,
330
- required: ""
331
- }, null, 8, ["modelValue", "label"])) : u("", !0),
332
- r(me, {
333
- modelValue: e(U),
334
- "onUpdate:modelValue": d[2] || (d[2] = (o) => w(U) ? U.value = o : null),
335
- type: "text",
336
- label: e(a)("booking.reservation.name"),
337
- icon: "user-alt",
338
- placeholder: e(a)("booking.reservation.namePlaceholder"),
339
- required: ""
340
- }, null, 8, ["modelValue", "label", "placeholder"]),
341
- r(me, {
342
- modelValue: e(R),
343
- "onUpdate:modelValue": d[3] || (d[3] = (o) => w(R) ? R.value = o : null),
344
- label: e(a)("booking.reservation.email"),
345
- type: "email",
346
- name: "email",
347
- autocomplete: "email",
348
- icon: "at",
349
- placeholder: e(a)("booking.reservation.emailPlaceholder"),
350
- required: ""
351
- }, null, 8, ["modelValue", "label", "placeholder"]),
352
- r(ml, {
353
- modelValue: e(A),
354
- "onUpdate:modelValue": d[4] || (d[4] = (o) => w(A) ? A.value = o : null),
355
- label: e(a)("booking.reservation.phone"),
356
- icon: "phone-office",
357
- placeholder: e(a)("booking.reservation.phonePlaceholder"),
358
- required: ""
359
- }, null, 8, ["modelValue", "label", "placeholder"]),
360
- u("", !0),
361
- e(W) && e(W).length > 0 ? (t(), i("ul", Vl, [
362
- (t(!0), i(V, null, D(e(W), ({
363
- roomGroupID: o,
364
- addons: c,
365
- adultPerRoom: _
366
- }, m) => (t(), i("li", { key: o }, [
367
- l("h5", null, [
368
- l("span", null, n(e(a)("booking.reservation.room")) + " #" + n(m + 1), 1),
369
- ce(" ("),
370
- r(h, {
371
- icon: "male",
372
- type: "fas",
225
+ availability: k(({ next: j }) => [
226
+ l("div", kl, [
227
+ r(vl, {
228
+ modelValue: e(m),
229
+ "onUpdate:modelValue": v[0] || (v[0] = (w) => F(m) ? m.value = w : null),
230
+ label: e(t)("event.selectDate"),
231
+ "min-date": /* @__PURE__ */ new Date()
232
+ }, null, 8, ["modelValue", "label", "min-date"])
233
+ ]),
234
+ e(Ue) ? (a(), i("div", yl, [
235
+ e(Pe) && !e(qe) ? (a(), i(C, { key: 0 }, [
236
+ l("h2", null, [
237
+ r(V, {
238
+ icon: "clock-seven",
239
+ type: "fal",
373
240
  color: "header"
374
241
  }),
375
- ce(" " + n(_) + ") ", 1)
242
+ l("span", null, n(e(t)("event.eventsTitle")), 1)
376
243
  ]),
377
- l("table", Pl, [
378
- l("thead", null, [
379
- l("tr", null, [
380
- l("th", null, [
381
- l("span", null, n(e(a)("booking.reservation.addons")), 1)
244
+ l("ul", _l, [
245
+ (a(!0), i(C, null, R(e($e), ({
246
+ id: w,
247
+ days: o,
248
+ name: h,
249
+ timeFrom: O,
250
+ timeTo: b,
251
+ fromDate: f,
252
+ toDate: q,
253
+ tableGroupID: W,
254
+ description: X,
255
+ soldOut: G,
256
+ maxOnlineReservationLimit: z
257
+ }) => (a(), y(be, {
258
+ key: w,
259
+ type: "event",
260
+ "listing-id": w,
261
+ "table-group-id": W,
262
+ description: X,
263
+ name: h,
264
+ days: o,
265
+ "from-date": f,
266
+ "to-date": q,
267
+ "max-online-reservation-limit": z,
268
+ "time-from": O,
269
+ "time-to": b,
270
+ "sold-out": G,
271
+ callback: j
272
+ }, 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))
273
+ ])
274
+ ], 64)) : d("", !0),
275
+ e(Te) && !e(ze) ? (a(), i(C, { key: 1 }, [
276
+ l("h2", null, [
277
+ r(V, {
278
+ icon: "stars",
279
+ type: "fal",
280
+ color: "header"
281
+ }),
282
+ l("span", null, n(e(t)("event.stayTitle")), 1)
283
+ ]),
284
+ l("ul", Vl, [
285
+ (a(!0), i(C, null, R(e(Ee), ({
286
+ id: w,
287
+ name: o,
288
+ fromDate: h,
289
+ toDate: O,
290
+ minimumPersonCount: b,
291
+ fromPrice: f,
292
+ description: q
293
+ }) => (a(), y(be, {
294
+ key: w,
295
+ type: "template",
296
+ "listing-id": w,
297
+ name: o,
298
+ description: q,
299
+ "from-date": h,
300
+ "to-date": O,
301
+ "minimum-person-count": b,
302
+ fromPrice: f,
303
+ callback: j
304
+ }, null, 8, ["listing-id", "name", "description", "from-date", "to-date", "minimum-person-count", "fromPrice", "callback"]))), 128))
305
+ ])
306
+ ], 64)) : d("", !0)
307
+ ])) : (a(), y(ue, { key: 1 }))
308
+ ]),
309
+ reservation: k(({ next: j, prev: w }) => [
310
+ e(Fe) ? (a(), y(rl, {
311
+ key: 0,
312
+ remark: e(c),
313
+ "onUpdate:remark": v[8] || (v[8] = (o) => F(c) ? c.value = o : null),
314
+ "is-filled": e(Be),
315
+ "is-loading": e(Ve),
316
+ "base-price": e(ye),
317
+ "total-price": e(_e),
318
+ "weekend-fee": e(Ae),
319
+ "room-upgrade": e(Ce),
320
+ onPrev: (o) => e(Me)(w),
321
+ onNext: (o) => e(Se)(j)
322
+ }, {
323
+ form: k(() => [
324
+ e(te) === e(de).FullDayEvent ? (a(), y(x, {
325
+ key: 0,
326
+ modelValue: e(T),
327
+ "onUpdate:modelValue": v[1] || (v[1] = (o) => F(T) ? T.value = o : null),
328
+ label: e(t)("event.numberOfDays"),
329
+ "min-value": 1,
330
+ required: ""
331
+ }, null, 8, ["modelValue", "label"])) : d("", !0),
332
+ r(me, {
333
+ modelValue: e(g),
334
+ "onUpdate:modelValue": v[2] || (v[2] = (o) => F(g) ? g.value = o : null),
335
+ type: "text",
336
+ label: e(t)("booking.reservation.name"),
337
+ icon: "user-alt",
338
+ placeholder: e(t)("booking.reservation.namePlaceholder"),
339
+ required: ""
340
+ }, null, 8, ["modelValue", "label", "placeholder"]),
341
+ r(me, {
342
+ modelValue: e(u),
343
+ "onUpdate:modelValue": v[3] || (v[3] = (o) => F(u) ? u.value = o : null),
344
+ label: e(t)("booking.reservation.email"),
345
+ type: "email",
346
+ name: "email",
347
+ autocomplete: "email",
348
+ icon: "at",
349
+ placeholder: e(t)("booking.reservation.emailPlaceholder"),
350
+ required: ""
351
+ }, null, 8, ["modelValue", "label", "placeholder"]),
352
+ r(cl, {
353
+ modelValue: e(A),
354
+ "onUpdate:modelValue": v[4] || (v[4] = (o) => F(A) ? A.value = o : null),
355
+ label: e(t)("booking.reservation.phone"),
356
+ icon: "phone-office",
357
+ placeholder: e(t)("booking.reservation.phonePlaceholder"),
358
+ required: ""
359
+ }, null, 8, ["modelValue", "label", "placeholder"]),
360
+ d("", !0),
361
+ e(Z) && e(Z).length > 0 ? (a(), i("ul", Pl, [
362
+ (a(!0), i(C, null, R(e(Z), ({
363
+ roomGroupID: o,
364
+ addons: h,
365
+ adultPerRoom: O
366
+ }, b) => (a(), i("li", { key: o }, [
367
+ l("h5", null, [
368
+ l("span", null, n(e(t)("booking.reservation.room")) + " #" + n(b + 1), 1),
369
+ ce(" ("),
370
+ r(V, {
371
+ icon: "male",
372
+ type: "fas",
373
+ color: "header"
374
+ }),
375
+ ce(" " + n(O) + ") ", 1)
376
+ ]),
377
+ l("table", Tl, [
378
+ l("thead", null, [
379
+ l("tr", null, [
380
+ l("th", null, [
381
+ l("span", null, n(e(t)("booking.reservation.addons")), 1)
382
+ ]),
383
+ $l,
384
+ l("th", El, [
385
+ l("span", null, n(e(t)("booking.availability.price")), 1)
386
+ ])
387
+ ])
388
+ ]),
389
+ l("tbody", null, [
390
+ (a(!0), i(C, null, R(h, ({
391
+ addonID: f,
392
+ cardinality: q,
393
+ name: W,
394
+ price: X,
395
+ quantityStrategy: G
396
+ }) => (a(), i("tr", { key: f }, [
397
+ l("td", null, [
398
+ l("b", null, n(W), 1),
399
+ wl,
400
+ l("span", null, n(e(U)(X, e($))) + " " + n(e(Xe)(G)), 1)
401
+ ]),
402
+ l("td", Ol, [
403
+ q === 3 ? (a(), y(x, {
404
+ key: 0,
405
+ modelValue: e(P)[`${o}.${f}.${b}`],
406
+ "onUpdate:modelValue": (z) => e(P)[`${o}.${f}.${b}`] = z,
407
+ small: !0,
408
+ "min-value": 0
409
+ }, null, 8, ["modelValue", "onUpdate:modelValue"])) : (a(), y(ve, {
410
+ key: 1,
411
+ modelValue: e(P)[`${o}.${f}.${b}`],
412
+ "onUpdate:modelValue": (z) => e(P)[`${o}.${f}.${b}`] = z,
413
+ numeric: !0
414
+ }, null, 8, ["modelValue", "onUpdate:modelValue"]))
415
+ ]),
416
+ l("td", Cl, [
417
+ l("span", null, n(e(U)(e(oe)(f, o, b), e($))), 1)
418
+ ])
419
+ ]))), 128))
382
420
  ]),
383
- Tl,
384
- l("th", $l, [
385
- l("span", null, n(e(a)("booking.availability.price")), 1)
421
+ l("tfoot", null, [
422
+ l("tr", null, [
423
+ Al,
424
+ l("td", Dl, [
425
+ l("u", null, [
426
+ l("span", null, n(e(U)(e(se)(o, b), e($))), 1)
427
+ ])
428
+ ])
429
+ ])
386
430
  ])
387
431
  ])
432
+ ]))), 128))
433
+ ])) : d("", !0),
434
+ e(te) !== e(de).FullDayEvent && !e(L) ? (a(), i("div", Ll, [
435
+ l("label", Ul, [
436
+ l("span", null, n(e(t)("event.selectArrivalTime")), 1)
388
437
  ]),
389
- l("tbody", null, [
390
- (t(!0), i(V, null, D(c, ({
391
- addonID: p,
392
- cardinality: S,
393
- name: X,
394
- price: Z,
395
- quantityStrategy: j
396
- }) => (t(), i("tr", { key: p }, [
397
- l("td", null, [
398
- l("b", null, n(X), 1),
399
- El,
400
- l("span", null, n(e($)(Z, e(k))) + " " + n(e(je)(j)), 1)
401
- ]),
402
- l("td", Ol, [
403
- S === 3 ? (t(), b(G, {
404
- key: 0,
405
- modelValue: e(E)[`${o}.${p}.${m}`],
406
- "onUpdate:modelValue": (q) => e(E)[`${o}.${p}.${m}`] = q,
407
- small: !0,
408
- "min-value": 0
409
- }, null, 8, ["modelValue", "onUpdate:modelValue"])) : (t(), b(ve, {
410
- key: 1,
411
- modelValue: e(E)[`${o}.${p}.${m}`],
412
- "onUpdate:modelValue": (q) => e(E)[`${o}.${p}.${m}`] = q,
413
- numeric: !0
414
- }, null, 8, ["modelValue", "onUpdate:modelValue"]))
415
- ]),
416
- l("td", wl, [
417
- l("span", null, n(e($)(e(ae)(p, o, m), e(k))), 1)
418
- ])
438
+ l("ul", Bl, [
439
+ (a(!0), i(C, null, R(e(Oe), (o, h) => (a(), i("li", { key: h }, [
440
+ r(ve, {
441
+ modelValue: e(p),
442
+ "onUpdate:modelValue": v[7] || (v[7] = (O) => F(p) ? p.value = O : null),
443
+ type: "radio",
444
+ name: "eventTimeTable",
445
+ val: o.time,
446
+ label: e(ee)(o.time)
447
+ }, null, 8, ["modelValue", "val", "label"])
419
448
  ]))), 128))
449
+ ])
450
+ ])) : d("", !0),
451
+ e(De) ? (a(), i("div", Fl, [
452
+ l("label", Rl, [
453
+ l("span", null, n(e(t)("event.selectProducts")), 1)
420
454
  ]),
421
- l("tfoot", null, [
422
- l("tr", null, [
423
- Dl,
424
- l("td", Ll, [
425
- l("u", null, [
426
- l("span", null, n(e($)(e(oe)(o, m), e(k))), 1)
455
+ l("table", Nl, [
456
+ l("thead", null, [
457
+ l("tr", null, [
458
+ l("th", null, [
459
+ l("span", null, n(e(t)("booking.reservation.addons")), 1)
460
+ ]),
461
+ Sl,
462
+ l("th", Ml, [
463
+ l("span", null, n(e(t)("booking.availability.price")), 1)
427
464
  ])
428
465
  ])
466
+ ]),
467
+ l("tbody", null, [
468
+ (a(!0), i(C, null, R(e(we).products, ({ productID: o, productName: h, price: O, description: b }) => (a(), i("tr", { key: o }, [
469
+ l("td", null, [
470
+ l("b", null, [
471
+ l("span", null, n(h), 1)
472
+ ]),
473
+ ql,
474
+ l("span", null, n(b), 1),
475
+ zl,
476
+ l("span", null, n(e(U)(O, e($))), 1)
477
+ ]),
478
+ l("td", Il, [
479
+ r(x, {
480
+ modelValue: e(N)[o],
481
+ "onUpdate:modelValue": (f) => e(N)[o] = f,
482
+ small: !0,
483
+ "min-value": 0
484
+ }, null, 8, ["modelValue", "onUpdate:modelValue"])
485
+ ]),
486
+ l("td", Zl, [
487
+ l("span", null, n(e(U)(e(oe)(o), e($))), 1)
488
+ ])
489
+ ]))), 128))
429
490
  ])
430
491
  ])
431
- ])
432
- ]))), 128))
433
- ])) : u("", !0),
434
- e(ne) !== e(de).FullDayEvent && !e(T) ? (t(), i("div", Cl, [
435
- l("label", Ul, [
436
- l("span", null, n(e(a)("event.selectArrivalTime")), 1)
492
+ ])) : d("", !0)
493
+ ]),
494
+ resume: k(() => [
495
+ l("li", null, [
496
+ l("span", null, n(e(t)("event.numberOfGuests")), 1),
497
+ l("b", null, n(e(s)), 1)
498
+ ]),
499
+ e(L) ? (a(), i("li", jl, [
500
+ l("span", null, n(e(t)("event.numberOfRooms")), 1),
501
+ l("b", null, n(e(S)), 1)
502
+ ])) : d("", !0),
503
+ e(L) ? (a(), i("li", Hl, [
504
+ l("span", null, n(e(t)("event.numberOfDays")), 1),
505
+ l("b", null, n(e(E)), 1)
506
+ ])) : d("", !0),
507
+ e(L) ? (a(), i("li", Ql, [
508
+ l("span", null, n(e(t)("booking.reservation.arrival")), 1),
509
+ l("b", null, n(e(pe)(e(ne))), 1)
510
+ ])) : d("", !0),
511
+ e(L) ? (a(), i("li", Yl, [
512
+ l("span", null, n(e(t)("booking.reservation.departure")), 1),
513
+ l("b", null, n(e(pe)(e(ne), e(E))), 1)
514
+ ])) : d("", !0),
515
+ !e(L) && e(p) ? (a(), i("li", Jl, [
516
+ l("span", null, n(e(t)("event.startOfEvent")), 1),
517
+ l("b", null, n(e(ee)(e(p))), 1)
518
+ ])) : d("", !0),
519
+ !e(L) && e(le) ? (a(), i("li", Kl, [
520
+ l("span", null, n(e(t)("event.lengthOfEvent")), 1),
521
+ l("b", null, n(e(ee)(e(le))), 1)
522
+ ])) : d("", !0),
523
+ !e(L) && e(ae) > 0 ? (a(), i("li", Wl, [
524
+ l("span", null, n(e(t)("booking.availability.basePrice")), 1),
525
+ l("b", null, n(e(U)(e(ae), e($))), 1)
526
+ ])) : d("", !0)
437
527
  ]),
438
- l("ul", Bl, [
439
- (t(!0), i(V, null, D(e(we), (o, c) => (t(), i("li", { key: c }, [
440
- r(ve, {
441
- modelValue: e(O),
442
- "onUpdate:modelValue": d[7] || (d[7] = (_) => w(O) ? O.value = _ : null),
443
- type: "radio",
444
- name: "eventTimeTable",
445
- val: o.time,
446
- label: e(x)(o.time)
447
- }, null, 8, ["modelValue", "val", "label"])
528
+ expenses: k(() => [
529
+ (a(!0), i(C, null, R(e(Z), ({ roomGroupID: o }, h) => (a(), i("li", { key: o }, [
530
+ l("span", null, n(e(t)("booking.reservation.addons")) + " - " + n(e(t)("booking.reservation.room")) + " #" + n(h + 1), 1),
531
+ l("b", null, n(e(U)(e(se)(o, h), e($))), 1)
448
532
  ]))), 128))
449
- ])
450
- ])) : u("", !0),
451
- e(Ce) ? (t(), i("div", Fl, [
452
- l("label", Al, [
453
- l("span", null, n(e(a)("event.selectProducts")), 1)
454
533
  ]),
455
- l("table", Rl, [
456
- l("thead", null, [
457
- l("tr", null, [
458
- l("th", null, [
459
- l("span", null, n(e(a)("booking.reservation.addons")), 1)
460
- ]),
461
- Nl,
462
- l("th", Sl, [
463
- l("span", null, n(e(a)("booking.availability.price")), 1)
464
- ])
465
- ])
466
- ]),
467
- l("tbody", null, [
468
- (t(!0), i(V, null, D(e(Oe).products, ({ productID: o, productName: c, price: _, description: m }) => (t(), i("tr", { key: o }, [
469
- l("td", null, [
470
- l("b", null, [
471
- l("span", null, n(c), 1)
472
- ]),
473
- ql,
474
- l("span", null, n(m), 1),
475
- Ml,
476
- l("span", null, n(e($)(_, e(k))), 1)
477
- ]),
478
- l("td", Il, [
479
- r(G, {
480
- modelValue: e(I)[o],
481
- "onUpdate:modelValue": (p) => e(I)[o] = p,
482
- small: !0,
483
- "min-value": 0
484
- }, null, 8, ["modelValue", "onUpdate:modelValue"])
485
- ]),
486
- l("td", Ql, [
487
- l("span", null, n(e($)(e(ae)(o), e(k))), 1)
488
- ])
489
- ]))), 128))
490
- ])
491
- ])
492
- ])) : u("", !0)
534
+ _: 2
535
+ }, 1032, ["remark", "is-filled", "is-loading", "base-price", "total-price", "weekend-fee", "room-upgrade", "onPrev", "onNext"])) : d("", !0)
493
536
  ]),
494
- resume: g(() => [
495
- l("li", null, [
496
- l("span", null, n(e(a)("event.numberOfGuests")), 1),
497
- l("b", null, n(e(s)), 1)
498
- ]),
499
- e(T) ? (t(), i("li", Wl, [
500
- l("span", null, n(e(a)("event.numberOfRooms")), 1),
501
- l("b", null, n(e(B)), 1)
502
- ])) : u("", !0),
503
- e(T) ? (t(), i("li", Yl, [
504
- l("span", null, n(e(a)("event.numberOfDays")), 1),
505
- l("b", null, n(e(f)), 1)
506
- ])) : u("", !0),
507
- e(T) ? (t(), i("li", zl, [
508
- l("span", null, n(e(a)("booking.reservation.arrival")), 1),
509
- l("b", null, n(e(pe)(e(le))), 1)
510
- ])) : u("", !0),
511
- e(T) ? (t(), i("li", Hl, [
512
- l("span", null, n(e(a)("booking.reservation.departure")), 1),
513
- l("b", null, n(e(pe)(e(le), e(f))), 1)
514
- ])) : u("", !0),
515
- !e(T) && e(O) ? (t(), i("li", Jl, [
516
- l("span", null, n(e(a)("event.startOfEvent")), 1),
517
- l("b", null, n(e(x)(e(O))), 1)
518
- ])) : u("", !0),
519
- !e(T) && e(ee) ? (t(), i("li", Kl, [
520
- l("span", null, n(e(a)("event.lengthOfEvent")), 1),
521
- l("b", null, n(e(x)(e(ee))), 1)
522
- ])) : u("", !0),
523
- !e(T) && e(te) > 0 ? (t(), i("li", Xl, [
524
- l("span", null, n(e(a)("booking.availability.basePrice")), 1),
525
- l("b", null, n(e($)(e(te), e(k))), 1)
526
- ])) : u("", !0)
537
+ payment: k(() => [
538
+ r(pl)
527
539
  ]),
528
- expenses: g(() => [
529
- (t(!0), i(V, null, D(e(W), ({ roomGroupID: o }, c) => (t(), i("li", { key: o }, [
530
- l("span", null, n(e(a)("booking.reservation.addons")) + " - " + n(e(a)("booking.reservation.room")) + " #" + n(c + 1), 1),
531
- l("b", null, n(e($)(e(oe)(o, c), e(k))), 1)
532
- ]))), 128))
540
+ confirmation: k(() => [
541
+ r(ul, {
542
+ message: e(t)("event.confirmationMessage")
543
+ }, null, 8, ["message"])
533
544
  ]),
534
- _: 2
535
- }, 1032, ["remark", "is-filled", "is-loading", "base-price", "total-price", "weekend-fee", "room-upgrade", "onPrev", "onNext"])) : u("", !0)
536
- ]),
537
- payment: g(() => [
538
- r(cl)
539
- ]),
540
- confirmation: g(() => [
541
- r(rl, {
542
- message: e(a)("event.confirmationMessage")
543
- }, null, 8, ["message"])
545
+ _: 1
546
+ }, 8, ["slideshow", "title", "subtitle"])) : (a(), y(ue, { key: 1 }))
544
547
  ]),
545
548
  _: 1
546
- }, 8, ["slideshow", "title", "subtitle"])) : (t(), b(ue, { key: 1 }))
549
+ }, 8, ["access-token", "styling"])
547
550
  ]),
548
551
  _: 1
549
- }, 8, ["access-token", "styling"]));
552
+ }, 8, ["styling"]));
553
+ }
554
+ }), H = /* @__PURE__ */ ke(Xl, [["__scopeId", "data-v-c609785a"]]), Gl = nl();
555
+ class xl extends HTMLElement {
556
+ constructor() {
557
+ super();
558
+ }
559
+ connectedCallback() {
560
+ const t = typeof H == "function" ? H.options : H;
561
+ let m = Array.isArray(t.props) ? t.props : Object.keys(t.props || {});
562
+ const P = (u) => u.replace(/[A-Z]+(?![a-z])|[A-Z]/g, (c, p) => (p ? "-" : "") + c.toLowerCase()), N = (u) => u.replace(/-./g, (c) => c[1].toUpperCase()), T = {};
563
+ m = m.map(P);
564
+ const _ = {};
565
+ for (const u of this.attributes) {
566
+ const c = u.name, p = c.split(".");
567
+ console.log(c, p.length), p.length > 1 && (_[p[0]] || (_[p[0]] = {}), _[p[0]][N(p[1])] = u.value);
568
+ }
569
+ console.log(_), console.log(m);
570
+ for (const u of m) {
571
+ let c = this.attributes.getNamedItem(u)?.value;
572
+ _.hasOwnProperty(u) && (c = _[u]), console.log(c, u), T[u] = c;
573
+ }
574
+ const g = tl(H, T);
575
+ g.use(al), g.use(Gl), g.use(dl), g.use(ol, { bootstrap: !0 });
576
+ const A = document.createElement("div");
577
+ g.mount(A), this.appendChild(A.children[0]);
550
578
  }
551
- });
552
- const jl = /* @__PURE__ */ fe(Zl, [["__scopeId", "data-v-b2eee97d"]]), xl = ll(), M = nl({ components: { Event: jl } });
553
- M.use(xl);
554
- M.use(tl);
555
- M.use(ul);
556
- M.use(al, { bootstrap: !0 });
557
- M.mount("#konnectio-event-app");
579
+ }
580
+ window.customElements.define("konnectio-event", xl);
558
581
  export {
559
- M as default
582
+ xl as default
560
583
  };