@konnectio/core 4.0.56-rc2 → 4.0.56-rc20

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