@konnectio/core 4.0.56-rc2 → 4.0.56-rc21

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 (192) hide show
  1. package/dist/{ActionField-Qf4JAgBa.js → ActionField-mMYGNb-7.js} +29 -30
  2. package/dist/ActionField-mMYGNb-7.js.br +0 -0
  3. package/dist/AvailabilitySkeleton-iD7Vbt5K.js +215 -0
  4. package/dist/AvailabilitySkeleton-iD7Vbt5K.js.br +0 -0
  5. package/dist/{CheckoutWindow-S9xKe_Wf.js → CheckoutWindow-T32YH60g.js} +37 -38
  6. package/dist/CheckoutWindow-T32YH60g.js.br +0 -0
  7. package/dist/DateField.vue_vue_type_style_index_0_lang-seJ00xvJ.js +7607 -0
  8. package/dist/DateField.vue_vue_type_style_index_0_lang-seJ00xvJ.js.br +0 -0
  9. package/dist/ErrorMessage-4GwDZEsl.js +36 -0
  10. package/dist/ErrorMessage-4GwDZEsl.js.br +0 -0
  11. package/dist/EventAvailabilityForm-jvxOZKWx.js +366 -0
  12. package/dist/EventAvailabilityForm-jvxOZKWx.js.br +0 -0
  13. package/dist/{Field-b7XkSAoi.js → Field-EqFBeBE_.js} +11 -13
  14. package/dist/Field-EqFBeBE_.js.br +0 -0
  15. package/dist/{ThankYou-LiiG3Zv1.js → ThankYou-pu1PDfhl.js} +4772 -5989
  16. package/dist/ThankYou-pu1PDfhl.js.br +0 -0
  17. package/dist/_--L3VvP-p.js +30301 -0
  18. package/dist/_--L3VvP-p.js.br +0 -0
  19. package/dist/availability.js +80 -147
  20. package/dist/availability.js.br +0 -0
  21. package/dist/event.js +342 -529
  22. package/dist/event.js.br +0 -0
  23. package/dist/gift-card-validation.js +92 -57
  24. package/dist/gift-card-validation.js.br +0 -0
  25. package/dist/gift-card.js +272 -259
  26. package/dist/gift-card.js.br +0 -0
  27. package/dist/hotel.js +1658 -1518
  28. package/dist/hotel.js.br +0 -0
  29. package/dist/polyfill.js +3201 -3210
  30. package/dist/polyfill.js.br +0 -0
  31. package/dist/style.css +1 -1
  32. package/dist/style.css.br +0 -0
  33. package/package.json +34 -25
  34. package/dist/ActionField-Qf4JAgBa.js.br +0 -0
  35. package/dist/ActionField-ztW-1xka.cjs +0 -1
  36. package/dist/AvailabilitySkeleton-GPTCv3Xy.js +0 -242
  37. package/dist/AvailabilitySkeleton-GPTCv3Xy.js.br +0 -0
  38. package/dist/AvailabilitySkeleton-v0QVPuim.cjs +0 -1
  39. package/dist/CheckoutWindow-NUwbNAPw.cjs +0 -1
  40. package/dist/CheckoutWindow-S9xKe_Wf.js.br +0 -0
  41. package/dist/Container-Fl2PKj-u.js +0 -59
  42. package/dist/Container-Fl2PKj-u.js.br +0 -0
  43. package/dist/Container-Y6_3uTWy.cjs +0 -1
  44. package/dist/DateField.vue_vue_type_style_index_0_lang-hZTsLsOv.cjs +0 -2
  45. package/dist/DateField.vue_vue_type_style_index_0_lang-iz9zEBOR.js +0 -8559
  46. package/dist/DateField.vue_vue_type_style_index_0_lang-iz9zEBOR.js.br +0 -0
  47. package/dist/Field-UTbHMN9U.cjs +0 -1
  48. package/dist/Field-b7XkSAoi.js.br +0 -0
  49. package/dist/SelectField.vue_vue_type_style_index_0_lang-30hJu8vr.js +0 -21406
  50. package/dist/SelectField.vue_vue_type_style_index_0_lang-30hJu8vr.js.br +0 -0
  51. package/dist/SelectField.vue_vue_type_style_index_0_lang-eLyZ247i.cjs +0 -851
  52. package/dist/ThankYou-LiiG3Zv1.js.br +0 -0
  53. package/dist/ThankYou-M6d4G8pc.cjs +0 -59
  54. package/dist/_-FAlGPZqe.js +0 -20
  55. package/dist/_-oL4OsiNw.cjs +0 -1
  56. package/dist/_commonjsHelpers-f52AuuUj.cjs +0 -1
  57. package/dist/assets/typescript/mixins.d.ts +0 -34
  58. package/dist/availability.cjs +0 -2
  59. package/dist/availability.d.ts +0 -3
  60. package/dist/components/Alert.vue.d.ts +0 -5
  61. package/dist/components/Alert.vue.d.ts.map +0 -1
  62. package/dist/components/Clickable.vue.d.ts +0 -5
  63. package/dist/components/Clickable.vue.d.ts.map +0 -1
  64. package/dist/components/Container.vue.d.ts +0 -5
  65. package/dist/components/Container.vue.d.ts.map +0 -1
  66. package/dist/components/ErrorMessage.vue.d.ts +0 -5
  67. package/dist/components/ErrorMessage.vue.d.ts.map +0 -1
  68. package/dist/components/Gallery.vue.d.ts +0 -5
  69. package/dist/components/Gallery.vue.d.ts.map +0 -1
  70. package/dist/components/GoogleNotice.vue.d.ts +0 -4
  71. package/dist/components/GoogleNotice.vue.d.ts.map +0 -1
  72. package/dist/components/Icon.vue.d.ts +0 -5
  73. package/dist/components/Icon.vue.d.ts.map +0 -1
  74. package/dist/components/Loading.vue.d.ts +0 -5
  75. package/dist/components/Loading.vue.d.ts.map +0 -1
  76. package/dist/components/Spinner.vue.d.ts +0 -4
  77. package/dist/components/Spinner.vue.d.ts.map +0 -1
  78. package/dist/components/forms/EventAvailabilityForm.vue.d.ts +0 -5
  79. package/dist/components/forms/EventAvailabilityForm.vue.d.ts.map +0 -1
  80. package/dist/components/forms/HotelAvailabilityForm.vue.d.ts +0 -5
  81. package/dist/components/forms/HotelAvailabilityForm.vue.d.ts.map +0 -1
  82. package/dist/components/forms/HotelReservationForm.vue.d.ts +0 -4
  83. package/dist/components/forms/HotelReservationForm.vue.d.ts.map +0 -1
  84. package/dist/components/forms/MultiStepForm.vue.d.ts +0 -5
  85. package/dist/components/forms/MultiStepForm.vue.d.ts.map +0 -1
  86. package/dist/components/forms/ReservationForm.vue.d.ts +0 -6
  87. package/dist/components/forms/ReservationForm.vue.d.ts.map +0 -1
  88. package/dist/components/forms/_.vue.d.ts +0 -4
  89. package/dist/components/forms/_.vue.d.ts.map +0 -1
  90. package/dist/components/inputs/Checkbox.vue.d.ts +0 -5
  91. package/dist/components/inputs/Checkbox.vue.d.ts.map +0 -1
  92. package/dist/components/inputs/CheckboxField.vue.d.ts +0 -5
  93. package/dist/components/inputs/CheckboxField.vue.d.ts.map +0 -1
  94. package/dist/components/inputs/DateField.vue.d.ts +0 -5
  95. package/dist/components/inputs/DateField.vue.d.ts.map +0 -1
  96. package/dist/components/inputs/InputField.vue.d.ts +0 -5
  97. package/dist/components/inputs/InputField.vue.d.ts.map +0 -1
  98. package/dist/components/inputs/MediaSelector.vue.d.ts +0 -5
  99. package/dist/components/inputs/MediaSelector.vue.d.ts.map +0 -1
  100. package/dist/components/inputs/NumberField.vue.d.ts +0 -5
  101. package/dist/components/inputs/NumberField.vue.d.ts.map +0 -1
  102. package/dist/components/inputs/SelectField.vue.d.ts +0 -5
  103. package/dist/components/inputs/SelectField.vue.d.ts.map +0 -1
  104. package/dist/components/inputs/TextField.vue.d.ts +0 -5
  105. package/dist/components/inputs/TextField.vue.d.ts.map +0 -1
  106. package/dist/components/inputs/TimeField.vue.d.ts +0 -5
  107. package/dist/components/inputs/TimeField.vue.d.ts.map +0 -1
  108. package/dist/components/inputs/grouped/ActionField.vue.d.ts +0 -5
  109. package/dist/components/inputs/grouped/ActionField.vue.d.ts.map +0 -1
  110. package/dist/components/inputs/grouped/CountryField.vue.d.ts +0 -5
  111. package/dist/components/inputs/grouped/CountryField.vue.d.ts.map +0 -1
  112. package/dist/components/inputs/grouped/NameField.vue.d.ts +0 -5
  113. package/dist/components/inputs/grouped/NameField.vue.d.ts.map +0 -1
  114. package/dist/components/inputs/grouped/PhoneField.vue.d.ts +0 -5
  115. package/dist/components/inputs/grouped/PhoneField.vue.d.ts.map +0 -1
  116. package/dist/components/inputs/grouped/RoomConfigField.vue.d.ts +0 -5
  117. package/dist/components/inputs/grouped/RoomConfigField.vue.d.ts.map +0 -1
  118. package/dist/components/listings/Base.vue.d.ts +0 -6
  119. package/dist/components/listings/Base.vue.d.ts.map +0 -1
  120. package/dist/components/listings/Event.vue.d.ts +0 -5
  121. package/dist/components/listings/Event.vue.d.ts.map +0 -1
  122. package/dist/components/listings/Hotel.vue.d.ts +0 -5
  123. package/dist/components/listings/Hotel.vue.d.ts.map +0 -1
  124. package/dist/components/listings/Template.vue.d.ts +0 -5
  125. package/dist/components/listings/Template.vue.d.ts.map +0 -1
  126. package/dist/components/side-panels/Base.vue.d.ts +0 -6
  127. package/dist/components/side-panels/Base.vue.d.ts.map +0 -1
  128. package/dist/components/side-panels/ListingInfo.vue.d.ts +0 -5
  129. package/dist/components/side-panels/ListingInfo.vue.d.ts.map +0 -1
  130. package/dist/components/side-panels/Template.vue.d.ts +0 -5
  131. package/dist/components/side-panels/Template.vue.d.ts.map +0 -1
  132. package/dist/components/side-panels/TermsOfService.vue.d.ts +0 -5
  133. package/dist/components/side-panels/TermsOfService.vue.d.ts.map +0 -1
  134. package/dist/components/skeletons/AvailabilitySkeleton.vue.d.ts +0 -5
  135. package/dist/components/skeletons/AvailabilitySkeleton.vue.d.ts.map +0 -1
  136. package/dist/components/skeletons/Field.vue.d.ts +0 -5
  137. package/dist/components/skeletons/Field.vue.d.ts.map +0 -1
  138. package/dist/components/skeletons/GiftCardSkeleton.vue.d.ts +0 -5
  139. package/dist/components/skeletons/GiftCardSkeleton.vue.d.ts.map +0 -1
  140. package/dist/components/skeletons/HotelSkeleton.vue.d.ts +0 -5
  141. package/dist/components/skeletons/HotelSkeleton.vue.d.ts.map +0 -1
  142. package/dist/components/skeletons/Listing.vue.d.ts +0 -5
  143. package/dist/components/skeletons/Listing.vue.d.ts.map +0 -1
  144. package/dist/components/skeletons/Sidebar.vue.d.ts +0 -5
  145. package/dist/components/skeletons/Sidebar.vue.d.ts.map +0 -1
  146. package/dist/components/skeletons/_.vue.d.ts +0 -5
  147. package/dist/components/skeletons/_.vue.d.ts.map +0 -1
  148. package/dist/components/views/CheckoutWindow.vue.d.ts +0 -5
  149. package/dist/components/views/CheckoutWindow.vue.d.ts.map +0 -1
  150. package/dist/components/views/TermsOfService.vue.d.ts +0 -5
  151. package/dist/components/views/TermsOfService.vue.d.ts.map +0 -1
  152. package/dist/components/views/ThankYou.vue.d.ts +0 -5
  153. package/dist/components/views/ThankYou.vue.d.ts.map +0 -1
  154. package/dist/entries/availability.d.ts +0 -5
  155. package/dist/entries/event.d.ts +0 -2
  156. package/dist/entries/gift-card-validation.d.ts +0 -5
  157. package/dist/entries/gift-card.d.ts +0 -5
  158. package/dist/entries/hotel.d.ts +0 -5
  159. package/dist/entries/navigation.d.ts +0 -1
  160. package/dist/entries/polyfill.d.ts +0 -0
  161. package/dist/event-GaUgVNzy.cjs +0 -1
  162. package/dist/event-MXmxvcpC.js +0 -329
  163. package/dist/event-MXmxvcpC.js.br +0 -0
  164. package/dist/event.cjs +0 -1
  165. package/dist/event.d.ts +0 -3
  166. package/dist/gift-card-validation.cjs +0 -1
  167. package/dist/gift-card-validation.d.ts +0 -3
  168. package/dist/gift-card.cjs +0 -1
  169. package/dist/gift-card.d.ts +0 -3
  170. package/dist/hotel.cjs +0 -19
  171. package/dist/hotel.d.ts +0 -3
  172. package/dist/layouts/Availability.vue.d.ts +0 -25
  173. package/dist/layouts/Event.vue.d.ts +0 -18
  174. package/dist/layouts/GiftCard.vue.d.ts +0 -32
  175. package/dist/layouts/GiftCardValidation.vue.d.ts +0 -18
  176. package/dist/layouts/Hotel.vue.d.ts +0 -36
  177. package/dist/layouts/_.vue.d.ts +0 -39
  178. package/dist/navigation.cjs +0 -1
  179. package/dist/navigation.d.ts +0 -1
  180. package/dist/plugins/i18n.d.ts +0 -5
  181. package/dist/polyfill.cjs +0 -4
  182. package/dist/polyfill.d.ts +0 -1
  183. package/dist/store/alert.d.ts +0 -28
  184. package/dist/store/applyGiftCard.d.ts +0 -28
  185. package/dist/store/availability.d.ts +0 -40
  186. package/dist/store/event.d.ts +0 -683
  187. package/dist/store/giftCard.d.ts +0 -83
  188. package/dist/store/payment.d.ts +0 -139
  189. package/dist/store/recaptcha.d.ts +0 -28
  190. package/dist/store/tracking.d.ts +0 -57
  191. package/dist/store/utilities.d.ts +0 -350
  192. package/dist/types/index.d.ts +0 -976
package/dist/event.js CHANGED
@@ -1,558 +1,371 @@
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";
8
- 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({
11
- __name: "Event",
12
- props: {
13
- name: {},
14
- type: {},
15
- description: {},
16
- fromDate: {},
17
- toDate: {},
18
- listingId: {},
19
- tableGroupId: {},
20
- days: {},
21
- timeFrom: {},
22
- timeTo: {},
23
- maxOnlineReservationLimit: {},
24
- minimumPersonCount: {},
25
- fromPrice: {},
26
- gallery: {},
27
- soldOut: { type: Boolean, default: !1 },
28
- layout: {},
29
- trackingEnabled: { type: Boolean },
30
- callback: {}
31
- },
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({
44
- type: "error",
45
- message: o("alert.error.selectPeople")
46
- });
47
- }, h = () => {
48
- P.value > 0 ? (A.value = v.listingId, R.value = v.tableGroupId, H.value = P.value, N(v.callback)) : E({
49
- type: "error",
50
- message: o("alert.error.selectPeople")
51
- });
52
- };
53
- return (s, y) => (t(), b(al, {
54
- "listing-id": s.listingId,
55
- gallery: s.gallery,
56
- name: s.name,
57
- 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),
64
- type: "number",
65
- label: e(o)("event.numberOfGuests"),
66
- buttonLabel: s.soldOut ? e(o)("event.soldOut") : e(o)("event.bookNowButton"),
67
- buttonDisabled: s.soldOut,
68
- "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())
73
- }, null, 8, ["modelValue", "label", "buttonLabel", "buttonDisabled", "min-value", "max-value", "is-loading"])
74
- ]),
75
- _: 2
76
- }, [
77
- s.type === "event" ? {
78
- name: "description",
79
- fn: g(() => [
80
- l("ul", vl, [
81
- l("li", null, [
82
- r(k, {
83
- icon: "calendar-range",
84
- color: "header"
85
- }),
86
- l("span", null, n(e(Ge)(s.days)), 1)
87
- ]),
88
- e(re)(s.fromDate, s.toDate) < 180 ? (t(), i("li", bl, [
89
- r(k, {
90
- icon: "calendar-days",
91
- color: "header"
92
- }),
93
- l("span", null, n(e(ue)(s.fromDate, s.toDate)), 1)
94
- ])) : u("", !0),
95
- l("li", null, [
96
- r(k, {
97
- icon: "calendar-clock",
98
- color: "header"
99
- }),
100
- l("span", null, n(e(xe)(s.timeFrom, s.timeTo)), 1)
101
- ]),
102
- s.maxOnlineReservationLimit ? (t(), i("li", gl, [
103
- r(k, {
104
- icon: "user-alt",
105
- color: "header"
106
- }),
107
- l("span", null, n(`1 - ${s.maxOnlineReservationLimit} ${e(o)("general.people")}`), 1)
108
- ])) : u("", !0)
109
- ])
110
- ]),
111
- key: "0"
112
- } : {
113
- name: "description",
114
- fn: g(() => [
115
- l("ul", { class: "fresh-booking-event-listing-information" }, [
116
- e(re)(s.fromDate, s.toDate) < 180 ? (t(), i("li", { key: 0 }, [
117
- r(k, {
118
- icon: "calendar-days",
119
- color: "header"
120
- }),
121
- l("span", null, n(e(ue)(s.fromDate, s.toDate, !0)), 1)
122
- ])) : u("", !0),
123
- l("li", null, [
124
- r(k, {
125
- icon: "user-alt",
126
- color: "header"
127
- }),
128
- l("span", null, n(`${s.minimumPersonCount} - ${e(U)} ${e(o)("general.people")}`), 1)
129
- ]),
130
- l("li", null, [
131
- r(k, {
132
- icon: "money-bill",
133
- color: "header"
134
- }),
135
- l("span", null, n(`${e(o)("general.pricesFrom")} ${e($)(s.fromPrice, e(I))}`), 1)
136
- ])
137
- ])
138
- ]),
139
- key: "1"
140
- }
141
- ]), 1032, ["listing-id", "gallery", "name", "description", "layout"]));
142
- }
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 = {
144
- key: 0,
145
- id: "fresh-booking-event-overview"
146
- }, fl = { class: "fresh-booking-event-listings" }, _l = { class: "fresh-booking-event-listings" }, Vl = {
1
+ import { d as Ve, j as Ee, B as I, D as Te, l as Be, G as Ce, o as a, a as _, w as p, S as Pe, f as v, b as t, L as Ae, u as e, H as P, O as ee, e as S, i as r, T as te, h as s, F as N, J as w, t as n, K as ne, M as xe, N as y, P as Fe, Q as M, R as le, q as Ne, s as we, v as Oe, x as De, g as Le, y as $e, z as Ue, A as Re, U as Se } from "./_--L3VvP-p.js";
2
+ import { M as Me, R as qe, T as ze, G as je } from "./ThankYou-pu1PDfhl.js";
3
+ import { u as oe, E as He } from "./EventAvailabilityForm-jvxOZKWx.js";
4
+ import "./ActionField-mMYGNb-7.js";
5
+ import { P as Qe, C as ae, a as Ze } from "./CheckoutWindow-T32YH60g.js";
6
+ const V = (A) => (Oe("data-v-693ef234"), A = A(), De(), A), Je = { class: "fresh-booking-panel" };
7
+ const Ke = {
147
8
  key: 2,
148
9
  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({
10
+ }, We = { class: "fresh-booking-table" }, Ye = /* @__PURE__ */ V(() => /* @__PURE__ */ t("th", { class: "fresh-booking-event-addons-input" }, null, -1)), Xe = { class: "fresh-booking-event-addons-price" }, Ge = /* @__PURE__ */ V(() => /* @__PURE__ */ t("br", null, null, -1)), Ie = { class: "fresh-booking-event-addons-input" }, et = { class: "fresh-booking-event-addons-price" }, tt = /* @__PURE__ */ V(() => /* @__PURE__ */ t("td", { colspan: "2" }, null, -1)), nt = { class: "fresh-booking-event-addons-price" }, lt = { key: 3 }, ot = { class: "fresh-booking-label required" }, at = { id: "fresh-booking-event-table" }, st = { key: 4 }, it = { class: "fresh-booking-label required" }, rt = { class: "fresh-booking-table" }, ut = /* @__PURE__ */ V(() => /* @__PURE__ */ t("th", { class: "fresh-booking-event-addons-input" }, null, -1)), dt = { class: "fresh-booking-event-addons-price" }, ct = /* @__PURE__ */ V(() => /* @__PURE__ */ t("br", null, null, -1)), mt = /* @__PURE__ */ V(() => /* @__PURE__ */ t("br", null, null, -1)), pt = { class: "fresh-booking-event-addons-input" }, vt = { class: "fresh-booking-event-addons-price" }, ht = { key: 0 }, bt = { key: 1 }, kt = { key: 2 }, ft = { key: 3 }, gt = { key: 4 }, _t = { key: 5 }, yt = { key: 6 }, Vt = /* @__PURE__ */ V(() => /* @__PURE__ */ t("div", null, "Loading", -1)), Et = /* @__PURE__ */ Ve({
150
11
  name: "EventLayout",
151
12
  __name: "Event",
152
13
  props: {
153
14
  accessToken: {},
154
15
  styling: {}
155
16
  },
156
- setup(L) {
157
- const { t: o } = ke(), {
158
- searchDate: v,
17
+ setup(A) {
18
+ const { t: o } = Ee(), {
19
+ searchDate: x,
159
20
  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,
172
- numberOfPeople: s,
173
- numberOfTotalDays: y,
174
- numberOfRooms: B,
175
- basePrice: fe,
176
- totalPrice: _e,
177
- isPaymentLoading: Ve,
178
- hasEvents: Pe,
179
- hasTemplates: Te,
180
- getEvents: $e,
181
- 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,
191
- isMetaDataAvailable: Ae,
192
- areListingsAvailable: Be,
193
- isReservationFormFilled: Fe,
194
- isAvailabilityDataAvailable: Re,
21
+ products: O,
22
+ numberOfDays: T,
23
+ discountCode: B,
24
+ name: C,
25
+ phone: i,
26
+ email: d,
27
+ remark: c,
28
+ arrivalTime: F,
29
+ title: Ct,
30
+ subtitle: Pt,
31
+ slideshow: At,
32
+ currency: f,
33
+ numberOfPeople: se,
34
+ numberOfTotalDays: q,
35
+ numberOfRooms: ie,
36
+ basePrice: re,
37
+ totalPrice: ue,
38
+ isPaymentLoading: de,
39
+ hasEvents: xt,
40
+ hasTemplates: Ft,
41
+ getEvents: Nt,
42
+ getTemplates: wt,
43
+ getEventData: ce,
44
+ getTemplateData: D,
45
+ getEventTableData: me,
46
+ length: z,
47
+ roomUpgrade: pe,
48
+ weekendFee: ve,
49
+ fromDate: j,
50
+ hasProducts: he,
51
+ eventRateType: H,
52
+ isMetaDataAvailable: Ot,
53
+ areListingsAvailable: Dt,
54
+ isReservationFormFilled: be,
55
+ isAvailabilityDataAvailable: ke,
195
56
  // getEventImages,
196
- isTemplateEvent: T,
197
- tableBasePrice: te
198
- } = Y(j()), {
199
- initialize: Ce,
200
- validateDiscountCode: xl,
201
- fetchListings: Ne,
202
- createBooking: Se,
203
- 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)
223
- }, {
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, {
310
- 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)
57
+ isTemplateEvent: k,
58
+ tableBasePrice: Q
59
+ } = I(oe()), {
60
+ initialize: fe,
61
+ validateDiscountCode: Lt,
62
+ fetchListings: ge,
63
+ createBooking: _e,
64
+ localAddonPrice: Z,
65
+ totalAddonPrice: J,
66
+ reset: ye
67
+ } = oe(), {
68
+ hideEvents: $t,
69
+ hideEventTemplates: Ut
70
+ } = I(Te());
71
+ return Be(() => fe()), Ce(x, () => ge()), (K, u) => (a(), _(we, { styling: K.styling }, {
72
+ default: p(() => [
73
+ (a(), _(Pe, null, {
74
+ default: p(() => [
75
+ v(Ne, {
76
+ id: "fresh-booking-event-module",
77
+ class: "fresh-booking-app",
78
+ type: "event",
79
+ "access-token": K.accessToken
321
80
  }, {
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",
372
- color: "header"
373
- }),
374
- ie(" " + n(_) + ") ", 1)
81
+ default: p(() => [
82
+ v(Me, null, {
83
+ availability: p(({ next: W }) => [
84
+ t("div", Je, [
85
+ v(He)
375
86
  ]),
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)
87
+ (a(), _(Ae, { key: 1 }))
88
+ ]),
89
+ reservation: p(({ next: W, prev: U }) => [
90
+ e(ke) ? (a(), _(qe, {
91
+ key: 0,
92
+ remark: e(c),
93
+ "onUpdate:remark": u[7] || (u[7] = (l) => P(c) ? c.value = l : null),
94
+ "is-filled": e(be),
95
+ "is-loading": e(de),
96
+ "base-price": e(re),
97
+ "total-price": e(ue),
98
+ "weekend-fee": e(ve),
99
+ "room-upgrade": e(pe),
100
+ onPrev: (l) => e(ye)(U),
101
+ onNext: (l) => e(_e)(W)
102
+ }, {
103
+ form: p(() => [
104
+ e(H) === e(ee).FullDayEvent ? (a(), _(S, {
105
+ key: 0,
106
+ modelValue: e(T),
107
+ "onUpdate:modelValue": u[0] || (u[0] = (l) => P(T) ? T.value = l : null),
108
+ label: e(o)("event.numberOfDays"),
109
+ "min-value": 1,
110
+ required: ""
111
+ }, null, 8, ["modelValue", "label"])) : r("", !0),
112
+ v(te, {
113
+ modelValue: e(C),
114
+ "onUpdate:modelValue": u[1] || (u[1] = (l) => P(C) ? C.value = l : null),
115
+ type: "text",
116
+ label: e(o)("booking.reservation.name"),
117
+ icon: "user-alt",
118
+ placeholder: e(o)("booking.reservation.namePlaceholder"),
119
+ required: ""
120
+ }, null, 8, ["modelValue", "label", "placeholder"]),
121
+ v(te, {
122
+ modelValue: e(d),
123
+ "onUpdate:modelValue": u[2] || (u[2] = (l) => P(d) ? d.value = l : null),
124
+ label: e(o)("booking.reservation.email"),
125
+ type: "email",
126
+ name: "email",
127
+ autocomplete: "email",
128
+ icon: "at",
129
+ placeholder: e(o)("booking.reservation.emailPlaceholder"),
130
+ required: ""
131
+ }, null, 8, ["modelValue", "label", "placeholder"]),
132
+ v(Qe, {
133
+ modelValue: e(i),
134
+ "onUpdate:modelValue": u[3] || (u[3] = (l) => P(i) ? i.value = l : null),
135
+ label: e(o)("booking.reservation.phone"),
136
+ icon: "phone-office",
137
+ placeholder: e(o)("booking.reservation.phonePlaceholder"),
138
+ required: ""
139
+ }, null, 8, ["modelValue", "label", "placeholder"]),
140
+ r("", !0),
141
+ e(D) && e(D).length > 0 ? (a(), s("ul", Ke, [
142
+ (a(!0), s(N, null, w(e(D), ({
143
+ roomGroupID: l,
144
+ addons: h,
145
+ adultPerRoom: g
146
+ }, m) => (a(), s("li", { key: l }, [
147
+ t("h5", null, [
148
+ t("span", null, n(e(o)("booking.reservation.room")) + " #" + n(m + 1), 1),
149
+ ne(" ("),
150
+ v(xe, {
151
+ icon: "male",
152
+ type: "fas",
153
+ color: "header"
154
+ }),
155
+ ne(" " + n(g) + ") ", 1)
156
+ ]),
157
+ t("table", We, [
158
+ t("thead", null, [
159
+ t("tr", null, [
160
+ t("th", null, [
161
+ t("span", null, n(e(o)("booking.reservation.addons")), 1)
162
+ ]),
163
+ Ye,
164
+ t("th", Xe, [
165
+ t("span", null, n(e(o)("booking.availability.price")), 1)
166
+ ])
167
+ ])
168
+ ]),
169
+ t("tbody", null, [
170
+ (a(!0), s(N, null, w(h, ({
171
+ addonID: b,
172
+ cardinality: R,
173
+ name: Y,
174
+ price: X,
175
+ quantityStrategy: G
176
+ }) => (a(), s("tr", { key: b }, [
177
+ t("td", null, [
178
+ t("b", null, n(Y), 1),
179
+ Ge,
180
+ t("span", null, n(e(y)(X, e(f))) + " " + n(e(Fe)(G)), 1)
181
+ ]),
182
+ t("td", Ie, [
183
+ R === 3 ? (a(), _(S, {
184
+ key: 0,
185
+ modelValue: e(E)[`${l}.${b}.${m}`],
186
+ "onUpdate:modelValue": (L) => e(E)[`${l}.${b}.${m}`] = L,
187
+ small: !0,
188
+ "min-value": 0
189
+ }, null, 8, ["modelValue", "onUpdate:modelValue"])) : (a(), _(ae, {
190
+ key: 1,
191
+ modelValue: e(E)[`${l}.${b}.${m}`],
192
+ "onUpdate:modelValue": (L) => e(E)[`${l}.${b}.${m}`] = L,
193
+ numeric: !0
194
+ }, null, 8, ["modelValue", "onUpdate:modelValue"]))
195
+ ]),
196
+ t("td", et, [
197
+ t("span", null, n(e(y)(e(Z)(b, l, m), e(f))), 1)
198
+ ])
199
+ ]))), 128))
200
+ ]),
201
+ t("tfoot", null, [
202
+ t("tr", null, [
203
+ tt,
204
+ t("td", nt, [
205
+ t("u", null, [
206
+ t("span", null, n(e(y)(e(J)(l, m), e(f))), 1)
207
+ ])
208
+ ])
209
+ ])
210
+ ])
211
+ ])
212
+ ]))), 128))
213
+ ])) : r("", !0),
214
+ e(H) !== e(ee).FullDayEvent && !e(k) ? (a(), s("div", lt, [
215
+ t("label", ot, [
216
+ t("span", null, n(e(o)("event.selectArrivalTime")), 1)
381
217
  ]),
382
- Tl,
383
- l("th", $l, [
384
- l("span", null, n(e(o)("booking.availability.price")), 1)
218
+ t("ul", at, [
219
+ (a(!0), s(N, null, w(e(me), (l, h) => (a(), s("li", { key: h }, [
220
+ v(ae, {
221
+ modelValue: e(F),
222
+ "onUpdate:modelValue": u[6] || (u[6] = (g) => P(F) ? F.value = g : null),
223
+ type: "radio",
224
+ name: "eventTimeTable",
225
+ val: l.time,
226
+ label: e(M)(l.time)
227
+ }, null, 8, ["modelValue", "val", "label"])
228
+ ]))), 128))
385
229
  ])
386
- ])
387
- ]),
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)
230
+ ])) : r("", !0),
231
+ e(he) ? (a(), s("div", st, [
232
+ t("label", it, [
233
+ t("span", null, n(e(o)("event.selectProducts")), 1)
400
234
  ]),
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)
235
+ t("table", rt, [
236
+ t("thead", null, [
237
+ t("tr", null, [
238
+ t("th", null, [
239
+ t("span", null, n(e(o)("booking.reservation.addons")), 1)
240
+ ]),
241
+ ut,
242
+ t("th", dt, [
243
+ t("span", null, n(e(o)("booking.availability.price")), 1)
244
+ ])
245
+ ])
246
+ ]),
247
+ t("tbody", null, [
248
+ (a(!0), s(N, null, w(e(ce).products, ({ productID: l, productName: h, price: g, description: m }) => (a(), s("tr", { key: l }, [
249
+ t("td", null, [
250
+ t("b", null, [
251
+ t("span", null, n(h), 1)
252
+ ]),
253
+ ct,
254
+ t("span", null, n(m), 1),
255
+ mt,
256
+ t("span", null, n(e(y)(g, e(f))), 1)
257
+ ]),
258
+ t("td", pt, [
259
+ v(S, {
260
+ modelValue: e(O)[l],
261
+ "onUpdate:modelValue": (b) => e(O)[l] = b,
262
+ small: !0,
263
+ "min-value": 0
264
+ }, null, 8, ["modelValue", "onUpdate:modelValue"])
265
+ ]),
266
+ t("td", vt, [
267
+ t("span", null, n(e(y)(e(Z)(l), e(f))), 1)
268
+ ])
269
+ ]))), 128))
270
+ ])
417
271
  ])
272
+ ])) : r("", !0)
273
+ ]),
274
+ resume: p(() => [
275
+ t("li", null, [
276
+ t("span", null, n(e(o)("event.numberOfGuests")), 1),
277
+ t("b", null, n(e(se)), 1)
278
+ ]),
279
+ e(k) ? (a(), s("li", ht, [
280
+ t("span", null, n(e(o)("event.numberOfRooms")), 1),
281
+ t("b", null, n(e(ie)), 1)
282
+ ])) : r("", !0),
283
+ e(k) ? (a(), s("li", bt, [
284
+ t("span", null, n(e(o)("event.numberOfDays")), 1),
285
+ t("b", null, n(e(q)), 1)
286
+ ])) : r("", !0),
287
+ e(k) ? (a(), s("li", kt, [
288
+ t("span", null, n(e(o)("booking.reservation.arrival")), 1),
289
+ t("b", null, n(e(le)(e(j))), 1)
290
+ ])) : r("", !0),
291
+ e(k) ? (a(), s("li", ft, [
292
+ t("span", null, n(e(o)("booking.reservation.departure")), 1),
293
+ t("b", null, n(e(le)(e(j), e(q))), 1)
294
+ ])) : r("", !0),
295
+ !e(k) && e(F) ? (a(), s("li", gt, [
296
+ t("span", null, n(e(o)("event.startOfEvent")), 1),
297
+ t("b", null, n(e(M)(e(F))), 1)
298
+ ])) : r("", !0),
299
+ !e(k) && e(z) ? (a(), s("li", _t, [
300
+ t("span", null, n(e(o)("event.lengthOfEvent")), 1),
301
+ t("b", null, n(e(M)(e(z))), 1)
302
+ ])) : r("", !0),
303
+ !e(k) && e(Q) > 0 ? (a(), s("li", yt, [
304
+ t("span", null, n(e(o)("booking.availability.basePrice")), 1),
305
+ t("b", null, n(e(y)(e(Q), e(f))), 1)
306
+ ])) : r("", !0)
307
+ ]),
308
+ expenses: p(() => [
309
+ (a(!0), s(N, null, w(e(D), ({ roomGroupID: l }, h) => (a(), s("li", { key: l }, [
310
+ t("span", null, n(e(o)("booking.reservation.addons")) + " - " + n(e(o)("booking.reservation.room")) + " #" + n(h + 1), 1),
311
+ t("b", null, n(e(y)(e(J)(l, h), e(f))), 1)
418
312
  ]))), 128))
419
313
  ]),
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)
426
- ])
427
- ])
428
- ])
429
- ])
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)
314
+ _: 2
315
+ }, 1032, ["remark", "is-filled", "is-loading", "base-price", "total-price", "weekend-fee", "room-upgrade", "onPrev", "onNext"])) : r("", !0)
436
316
  ]),
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"])
447
- ]))), 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)
317
+ payment: p(() => [
318
+ v(Ze)
453
319
  ]),
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)
492
- ]),
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)
526
- ]),
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))
320
+ confirmation: p(() => [
321
+ v(ze, {
322
+ message: e(o)("event.confirmationMessage")
323
+ }, null, 8, ["message"])
324
+ ]),
325
+ _: 1
326
+ })
532
327
  ]),
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)
328
+ _: 1
329
+ }, 8, ["access-token"])
538
330
  ]),
539
- confirmation: g(() => [
540
- r(rl, {
541
- message: e(o)("event.confirmationMessage")
542
- }, null, 8, ["message"])
331
+ fallback: p(() => [
332
+ Vt
543
333
  ]),
544
334
  _: 1
545
- }, 8, ["slideshow", "title", "subtitle"])) : (t(), b(de, { key: 1 }))
335
+ }))
546
336
  ]),
547
337
  _: 1
548
- }, 8, ["access-token", "styling"]));
338
+ }, 8, ["styling"]));
339
+ }
340
+ }), $ = /* @__PURE__ */ Le(Et, [["__scopeId", "data-v-693ef234"]]), Tt = $e();
341
+ class Bt extends HTMLElement {
342
+ vueApp;
343
+ constructor() {
344
+ super();
345
+ }
346
+ disconnectedCallback() {
347
+ this.vueApp.unmount();
348
+ }
349
+ connectedCallback() {
350
+ const o = typeof $ == "function" ? $.options : $;
351
+ let x = Array.isArray(o.props) ? o.props : Object.keys(o.props || {});
352
+ const E = (i) => i.replace(/[A-Z]+(?![a-z])|[A-Z]/g, (d, c) => (c ? "-" : "") + d.toLowerCase()), O = (i) => i.replace(/-./g, (d) => d[1].toUpperCase()), T = {};
353
+ x = x.map(E);
354
+ const B = {};
355
+ for (const i of this.attributes) {
356
+ const c = i.name.split(".");
357
+ c.length > 1 && (B[c[0]] || (B[c[0]] = {}), B[c[0]][O(c[1])] = i.value);
358
+ }
359
+ for (const i of x) {
360
+ let d = this.attributes.getNamedItem(i)?.value;
361
+ B.hasOwnProperty(i) && (d = B[i]), T[i] = d;
362
+ }
363
+ this.vueApp = Ue($, T), this.vueApp.use(Re), this.vueApp.use(Tt), this.vueApp.use(je), this.vueApp.use(Se, { bootstrap: !0 });
364
+ const C = document.createElement("div");
365
+ this.vueApp.mount(C), this.appendChild(C.children[0]);
549
366
  }
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");
367
+ }
368
+ window.customElements.define("konnectio-event", Bt);
556
369
  export {
557
- M as default
370
+ Bt as default
558
371
  };