@konnectio/core 4.0.56-rc3 → 4.0.56-rc31

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 (178) hide show
  1. package/dist/{ActionField-9I-yAskc.js → ActionField-qP-3ktN4.js} +25 -26
  2. package/dist/ActionField-qP-3ktN4.js.br +0 -0
  3. package/dist/AvailabilitySkeleton-uaCnfwHM.js +7665 -0
  4. package/dist/AvailabilitySkeleton-uaCnfwHM.js.br +0 -0
  5. package/dist/CheckoutWindow-RWkSWvbk.js +659 -0
  6. package/dist/CheckoutWindow-RWkSWvbk.js.br +0 -0
  7. package/dist/ErrorMessage-z0JJ8Q3W.js +36 -0
  8. package/dist/ErrorMessage-z0JJ8Q3W.js.br +0 -0
  9. package/dist/EventAvailabilityForm-LIgUj1t3.js +325 -0
  10. package/dist/EventAvailabilityForm-LIgUj1t3.js.br +0 -0
  11. package/dist/Field-C9r1d8IB.js +30985 -0
  12. package/dist/Field-C9r1d8IB.js.br +0 -0
  13. package/dist/HotelAvailabilityForm-AQ4VA15t.js +212 -0
  14. package/dist/HotelAvailabilityForm-AQ4VA15t.js.br +0 -0
  15. package/dist/TermsOfService-oZz-B-KI.js +26 -0
  16. package/dist/_commonjsHelpers-f3sTPFkQ.js +8 -0
  17. package/dist/availability.js +85 -147
  18. package/dist/availability.js.br +0 -0
  19. package/dist/event.js +540 -453
  20. package/dist/event.js.br +0 -0
  21. package/dist/gift-card-validation.js +90 -56
  22. package/dist/gift-card-validation.js.br +0 -0
  23. package/dist/gift-card.js +368 -336
  24. package/dist/gift-card.js.br +0 -0
  25. package/dist/hotel.js +1259 -2264
  26. package/dist/hotel.js.br +0 -0
  27. package/dist/masonry.plugin-fa0tia29.js +12714 -0
  28. package/dist/masonry.plugin-fa0tia29.js.br +0 -0
  29. package/dist/polyfill.js +3358 -3315
  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 +32 -28
  34. package/dist/ActionField-9I-yAskc.js.br +0 -0
  35. package/dist/AvailabilitySkeleton-hoauL0os.js +0 -242
  36. package/dist/AvailabilitySkeleton-hoauL0os.js.br +0 -0
  37. package/dist/CheckoutWindow-31th413C.js +0 -206
  38. package/dist/CheckoutWindow-31th413C.js.br +0 -0
  39. package/dist/Container-gHSYMY7q.js +0 -69
  40. package/dist/Container-gHSYMY7q.js.br +0 -0
  41. package/dist/DateField.vue_vue_type_style_index_0_lang-mpnWj2LD.js +0 -8567
  42. package/dist/DateField.vue_vue_type_style_index_0_lang-mpnWj2LD.js.br +0 -0
  43. package/dist/Field-QHvFgmEq.js +0 -43
  44. package/dist/Field-QHvFgmEq.js.br +0 -0
  45. package/dist/SelectField.vue_vue_type_style_index_0_lang-j_yHB51P.js +0 -21472
  46. package/dist/SelectField.vue_vue_type_style_index_0_lang-j_yHB51P.js.br +0 -0
  47. package/dist/ThankYou-SQ_bbgj4.js +0 -13316
  48. package/dist/ThankYou-SQ_bbgj4.js.br +0 -0
  49. package/dist/_-FedWhJCw.js +0 -20
  50. package/dist/_commonjsHelpers-FF1eOqK0.js +0 -8
  51. package/dist/assets/typescript/mixins.d.ts +0 -34
  52. package/dist/availability.d.ts +0 -3
  53. package/dist/components/Alert.vue.d.ts +0 -28
  54. package/dist/components/Alert.vue.d.ts.map +0 -1
  55. package/dist/components/Clickable.vue.d.ts +0 -60
  56. package/dist/components/Clickable.vue.d.ts.map +0 -1
  57. package/dist/components/Container.vue.d.ts +0 -23
  58. package/dist/components/Container.vue.d.ts.map +0 -1
  59. package/dist/components/ErrorMessage.vue.d.ts +0 -15
  60. package/dist/components/ErrorMessage.vue.d.ts.map +0 -1
  61. package/dist/components/Gallery.vue.d.ts +0 -31
  62. package/dist/components/Gallery.vue.d.ts.map +0 -1
  63. package/dist/components/GoogleNotice.vue.d.ts +0 -2
  64. package/dist/components/GoogleNotice.vue.d.ts.map +0 -1
  65. package/dist/components/Icon.vue.d.ts +0 -38
  66. package/dist/components/Icon.vue.d.ts.map +0 -1
  67. package/dist/components/Loading.vue.d.ts +0 -29
  68. package/dist/components/Loading.vue.d.ts.map +0 -1
  69. package/dist/components/Spinner.vue.d.ts +0 -2
  70. package/dist/components/Spinner.vue.d.ts.map +0 -1
  71. package/dist/components/forms/EventAvailabilityForm.vue.d.ts +0 -18
  72. package/dist/components/forms/EventAvailabilityForm.vue.d.ts.map +0 -1
  73. package/dist/components/forms/HotelAvailabilityForm.vue.d.ts +0 -34
  74. package/dist/components/forms/HotelAvailabilityForm.vue.d.ts.map +0 -1
  75. package/dist/components/forms/HotelReservationForm.vue.d.ts +0 -41
  76. package/dist/components/forms/HotelReservationForm.vue.d.ts.map +0 -1
  77. package/dist/components/forms/MultiStepForm.vue.d.ts +0 -43
  78. package/dist/components/forms/MultiStepForm.vue.d.ts.map +0 -1
  79. package/dist/components/forms/ReservationForm.vue.d.ts +0 -63
  80. package/dist/components/forms/ReservationForm.vue.d.ts.map +0 -1
  81. package/dist/components/forms/_.vue.d.ts +0 -42
  82. package/dist/components/forms/_.vue.d.ts.map +0 -1
  83. package/dist/components/inputs/Checkbox.vue.d.ts +0 -55
  84. package/dist/components/inputs/Checkbox.vue.d.ts.map +0 -1
  85. package/dist/components/inputs/CheckboxField.vue.d.ts +0 -29
  86. package/dist/components/inputs/CheckboxField.vue.d.ts.map +0 -1
  87. package/dist/components/inputs/DateField.vue.d.ts +0 -104
  88. package/dist/components/inputs/DateField.vue.d.ts.map +0 -1
  89. package/dist/components/inputs/InputField.vue.d.ts +0 -62
  90. package/dist/components/inputs/InputField.vue.d.ts.map +0 -1
  91. package/dist/components/inputs/MediaSelector.vue.d.ts +0 -43
  92. package/dist/components/inputs/MediaSelector.vue.d.ts.map +0 -1
  93. package/dist/components/inputs/NumberField.vue.d.ts +0 -87
  94. package/dist/components/inputs/NumberField.vue.d.ts.map +0 -1
  95. package/dist/components/inputs/SelectField.vue.d.ts +0 -90
  96. package/dist/components/inputs/SelectField.vue.d.ts.map +0 -1
  97. package/dist/components/inputs/TextField.vue.d.ts +0 -68
  98. package/dist/components/inputs/TextField.vue.d.ts.map +0 -1
  99. package/dist/components/inputs/TimeField.vue.d.ts +0 -44
  100. package/dist/components/inputs/TimeField.vue.d.ts.map +0 -1
  101. package/dist/components/inputs/grouped/ActionField.vue.d.ts +0 -72
  102. package/dist/components/inputs/grouped/ActionField.vue.d.ts.map +0 -1
  103. package/dist/components/inputs/grouped/CountryField.vue.d.ts +0 -41
  104. package/dist/components/inputs/grouped/CountryField.vue.d.ts.map +0 -1
  105. package/dist/components/inputs/grouped/NameField.vue.d.ts +0 -71
  106. package/dist/components/inputs/grouped/NameField.vue.d.ts.map +0 -1
  107. package/dist/components/inputs/grouped/PhoneField.vue.d.ts +0 -51
  108. package/dist/components/inputs/grouped/PhoneField.vue.d.ts.map +0 -1
  109. package/dist/components/inputs/grouped/RoomConfigField.vue.d.ts +0 -47
  110. package/dist/components/inputs/grouped/RoomConfigField.vue.d.ts.map +0 -1
  111. package/dist/components/listings/Base.vue.d.ts +0 -56
  112. package/dist/components/listings/Base.vue.d.ts.map +0 -1
  113. package/dist/components/listings/Event.vue.d.ts +0 -47
  114. package/dist/components/listings/Event.vue.d.ts.map +0 -1
  115. package/dist/components/listings/Hotel.vue.d.ts +0 -16
  116. package/dist/components/listings/Hotel.vue.d.ts.map +0 -1
  117. package/dist/components/listings/Template.vue.d.ts +0 -21
  118. package/dist/components/listings/Template.vue.d.ts.map +0 -1
  119. package/dist/components/side-panels/Base.vue.d.ts +0 -61
  120. package/dist/components/side-panels/Base.vue.d.ts.map +0 -1
  121. package/dist/components/side-panels/ListingInfo.vue.d.ts +0 -18
  122. package/dist/components/side-panels/ListingInfo.vue.d.ts.map +0 -1
  123. package/dist/components/side-panels/Template.vue.d.ts +0 -18
  124. package/dist/components/side-panels/Template.vue.d.ts.map +0 -1
  125. package/dist/components/side-panels/TermsOfService.vue.d.ts +0 -14
  126. package/dist/components/side-panels/TermsOfService.vue.d.ts.map +0 -1
  127. package/dist/components/skeletons/AvailabilitySkeleton.vue.d.ts +0 -33
  128. package/dist/components/skeletons/AvailabilitySkeleton.vue.d.ts.map +0 -1
  129. package/dist/components/skeletons/Field.vue.d.ts +0 -36
  130. package/dist/components/skeletons/Field.vue.d.ts.map +0 -1
  131. package/dist/components/skeletons/GiftCardSkeleton.vue.d.ts +0 -2
  132. package/dist/components/skeletons/GiftCardSkeleton.vue.d.ts.map +0 -1
  133. package/dist/components/skeletons/HotelSkeleton.vue.d.ts +0 -2
  134. package/dist/components/skeletons/HotelSkeleton.vue.d.ts.map +0 -1
  135. package/dist/components/skeletons/Listing.vue.d.ts +0 -2
  136. package/dist/components/skeletons/Listing.vue.d.ts.map +0 -1
  137. package/dist/components/skeletons/Sidebar.vue.d.ts +0 -2
  138. package/dist/components/skeletons/Sidebar.vue.d.ts.map +0 -1
  139. package/dist/components/skeletons/_.vue.d.ts +0 -36
  140. package/dist/components/skeletons/_.vue.d.ts.map +0 -1
  141. package/dist/components/views/CheckoutWindow.vue.d.ts +0 -2
  142. package/dist/components/views/CheckoutWindow.vue.d.ts.map +0 -1
  143. package/dist/components/views/TermsOfService.vue.d.ts +0 -2
  144. package/dist/components/views/TermsOfService.vue.d.ts.map +0 -1
  145. package/dist/components/views/ThankYou.vue.d.ts +0 -15
  146. package/dist/components/views/ThankYou.vue.d.ts.map +0 -1
  147. package/dist/entries/availability.d.ts +0 -5
  148. package/dist/entries/event.d.ts +0 -2
  149. package/dist/entries/gift-card-validation.d.ts +0 -5
  150. package/dist/entries/gift-card.d.ts +0 -5
  151. package/dist/entries/hotel.d.ts +0 -5
  152. package/dist/entries/navigation.d.ts +0 -1
  153. package/dist/entries/polyfill.d.ts +0 -0
  154. package/dist/event-4kCWoqDL.js +0 -359
  155. package/dist/event-4kCWoqDL.js.br +0 -0
  156. package/dist/event.d.ts +0 -3
  157. package/dist/gift-card-validation.d.ts +0 -3
  158. package/dist/gift-card.d.ts +0 -3
  159. package/dist/hotel.d.ts +0 -3
  160. package/dist/layouts/Availability.vue.d.ts +0 -25
  161. package/dist/layouts/Event.vue.d.ts +0 -18
  162. package/dist/layouts/GiftCard.vue.d.ts +0 -32
  163. package/dist/layouts/GiftCardValidation.vue.d.ts +0 -18
  164. package/dist/layouts/Hotel.vue.d.ts +0 -36
  165. package/dist/layouts/_.vue.d.ts +0 -39
  166. package/dist/navigation.d.ts +0 -1
  167. package/dist/plugins/i18n.d.ts +0 -5
  168. package/dist/polyfill.d.ts +0 -1
  169. package/dist/store/alert.d.ts +0 -28
  170. package/dist/store/applyGiftCard.d.ts +0 -28
  171. package/dist/store/availability.d.ts +0 -40
  172. package/dist/store/event.d.ts +0 -683
  173. package/dist/store/giftCard.d.ts +0 -83
  174. package/dist/store/payment.d.ts +0 -139
  175. package/dist/store/recaptcha.d.ts +0 -28
  176. package/dist/store/tracking.d.ts +0 -57
  177. package/dist/store/utilities.d.ts +0 -350
  178. 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-j_yHB51P.js";
3
- import { B as al, M as sl, R as il, T as rl, x as ul } from "./ThankYou-SQ_bbgj4.js";
4
- import { u as j } from "./event-4kCWoqDL.js";
5
- import { A as dl } from "./ActionField-9I-yAskc.js";
6
- import { P as ml, C as ve, a as pl } from "./CheckoutWindow-31th413C.js";
7
- import { _ as cl } from "./DateField.vue_vue_type_style_index_0_lang-mpnWj2LD.js";
8
- import "./_commonjsHelpers-FF1eOqK0.js";
9
- import "./_-FedWhJCw.js";
10
- const vl = { class: "fresh-booking-event-listing-information" }, bl = { key: 0 }, gl = { key: 1 }, kl = /* @__PURE__ */ ge({
1
+ import { d as J, u as te, Q as Ie, s as Z, c as ye, r as ze, e as je, f as a, k as _, a5 as _e, x as d, g as i, j as e, y as ce, l as u, h as n, a6 as pe, m as r, a2 as C, A as t, a7 as me, a8 as Ge, a3 as O, a9 as Ze, v as le, aa as Qe, Z as x, o as Je, w as Ke, S as We, F as A, ab as S, $ as R, V as ve, n as ee, T as be, ac as he, ad as Ye, ae as ne, a4 as fe, C as Xe, q as xe, D as en, E as nn, G as tn, H as ln, J as an, K as on, L as sn, af as rn, M as un } from "./Field-C9r1d8IB.js";
2
+ import { B as dn, R as cn, L as Ve, M as pn, T as mn, V as vn, G as bn } from "./masonry.plugin-fa0tia29.js";
3
+ import { u as Q, E as hn } from "./EventAvailabilityForm-LIgUj1t3.js";
4
+ import { A as fn } from "./ActionField-qP-3ktN4.js";
5
+ import { P as gn, C as ge, a as kn } from "./CheckoutWindow-RWkSWvbk.js";
6
+ import { A as yn } from "./AvailabilitySkeleton-uaCnfwHM.js";
7
+ const _n = ["innerHTML"], Vn = { class: "konnectio-event-listing-information-new" };
8
+ const $n = { key: 1 }, En = { key: 2 }, Tn = /* @__PURE__ */ J({
11
9
  __name: "Event",
12
10
  props: {
13
11
  name: {},
@@ -18,6 +16,7 @@ const vl = { class: "fresh-booking-event-listing-information" }, bl = { key: 0 }
18
16
  listingId: {},
19
17
  tableGroupId: {},
20
18
  days: {},
19
+ length: {},
21
20
  timeFrom: {},
22
21
  timeTo: {},
23
22
  maxOnlineReservationLimit: {},
@@ -29,530 +28,618 @@ 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: 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({
31
+ setup(V) {
32
+ const { t: l } = te(), p = V, { display: m } = Ie(), { currency: B } = Z(ye()), {
33
+ maxNumberOfPeople: $,
34
+ numberOfPeople: E,
35
+ eventId: T,
36
+ tableGroupId: c
37
+ } = Z(Q()), {
38
+ getTemplateAvailability: b,
39
+ getEventAvailability: h,
40
+ isEventListingLoading: D
41
+ } = Q(), v = ze(0), H = je(() => D(p.listingId)), I = () => {
42
+ v.value > 0 ? (T.value = p.listingId, E.value = v.value, b(p.callback)) : m({
44
43
  type: "error",
45
- message: o("alert.error.selectPeople")
44
+ message: l("alert.error.selectPeople")
46
45
  });
47
- }, h = () => {
48
- P.value > 0 ? (A.value = v.listingId, R.value = v.tableGroupId, H.value = P.value, N(v.callback)) : E({
46
+ }, K = () => {
47
+ v.value > 0 ? (T.value = p.listingId, c.value = p.tableGroupId, E.value = v.value, h(p.callback)) : m({
49
48
  type: "error",
50
- message: o("alert.error.selectPeople")
49
+ message: l("alert.error.selectPeople")
51
50
  });
52
51
  };
53
- return (s, y) => (t(), b(al, {
52
+ return (s, P) => (a(), _(dn, {
54
53
  "listing-id": s.listingId,
55
54
  gallery: s.gallery,
56
55
  name: s.name,
57
56
  description: s.description,
58
57
  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),
58
+ }, _e({
59
+ action: d(() => [
60
+ r(fn, {
61
+ modelValue: v.value,
62
+ "onUpdate:modelValue": P[0] || (P[0] = (U) => v.value = U),
64
63
  type: "number",
65
- label: e(o)("event.numberOfGuests"),
66
- buttonLabel: s.soldOut ? e(o)("event.soldOut") : e(o)("event.bookNowButton"),
64
+ label: e(l)("event.numberOfGuests"),
65
+ buttonLabel: s.soldOut ? e(l)("event.soldOut") : e(l)("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(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())
68
+ "max-value": s.type === "event" ? s.maxOnlineReservationLimit || 1 / 0 : e($),
69
+ "is-loading": H.value,
70
+ "onUpdate:isLoading": P[1] || (P[1] = (U) => H.value = U),
71
+ onAction: P[2] || (P[2] = (U) => s.type === "event" ? K() : I())
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, [
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, {
78
+ fn: d(() => [
79
+ s.description ? (a(), i("p", {
80
+ key: 0,
81
+ innerHTML: e(ce)(s.description)
82
+ }, null, 8, _n)) : u("", !0),
83
+ n("ul", Vn, [
84
+ u("", !0),
85
+ e(pe)(s.fromDate, s.toDate) < 180 ? (a(), i("li", $n, [
86
+ r(C, {
90
87
  icon: "calendar-days",
91
88
  color: "header"
92
89
  }),
93
- l("span", null, n(e(ue)(s.fromDate, s.toDate)), 1)
90
+ n("span", null, t(e(me)(s.fromDate, s.toDate)), 1)
94
91
  ])) : u("", !0),
95
- l("li", null, [
96
- r(k, {
92
+ n("li", null, [
93
+ n("span", null, t(s.length), 1)
94
+ ]),
95
+ n("li", null, [
96
+ r(C, {
97
97
  icon: "calendar-clock",
98
98
  color: "header"
99
99
  }),
100
- l("span", null, n(e(xe)(s.timeFrom, s.timeTo)), 1)
100
+ n("span", null, t(e(Ge)(s.timeFrom, s.timeTo)), 1)
101
101
  ]),
102
- s.maxOnlineReservationLimit ? (t(), i("li", gl, [
103
- r(k, {
102
+ s.maxOnlineReservationLimit ? (a(), i("li", En, [
103
+ r(C, {
104
104
  icon: "user-alt",
105
105
  color: "header"
106
106
  }),
107
- l("span", null, n(`1 - ${s.maxOnlineReservationLimit} ${e(o)("general.people")}`), 1)
107
+ n("span", null, t(`1 - ${s.maxOnlineReservationLimit} ${e(l)("general.people")}`), 1)
108
108
  ])) : u("", !0)
109
109
  ])
110
110
  ]),
111
111
  key: "0"
112
112
  } : {
113
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, {
114
+ fn: d(() => [
115
+ n("ul", { class: "konnectio-event-listing-information" }, [
116
+ e(pe)(s.fromDate, s.toDate) < 180 ? (a(), i("li", { key: 0 }, [
117
+ r(C, {
118
118
  icon: "calendar-days",
119
119
  color: "header"
120
120
  }),
121
- l("span", null, n(e(ue)(s.fromDate, s.toDate, !0)), 1)
121
+ n("span", null, t(e(me)(s.fromDate, s.toDate, !0)), 1)
122
122
  ])) : u("", !0),
123
- l("li", null, [
124
- r(k, {
123
+ n("li", null, [
124
+ r(C, {
125
125
  icon: "user-alt",
126
126
  color: "header"
127
127
  }),
128
- l("span", null, n(`${s.minimumPersonCount} - ${e(U)} ${e(o)("general.people")}`), 1)
128
+ n("span", null, t(`${s.minimumPersonCount} - ${e($)} ${e(l)("general.people")}`), 1)
129
129
  ]),
130
- l("li", null, [
131
- r(k, {
130
+ n("li", null, [
131
+ r(C, {
132
132
  icon: "money-bill",
133
133
  color: "header"
134
134
  }),
135
- l("span", null, n(`${e(o)("general.pricesFrom")} ${e($)(s.fromPrice, e(I))}`), 1)
135
+ n("span", null, t(`${e(l)("general.pricesFrom")} ${e(O)(s.fromPrice, e(B))}`), 1)
136
136
  ])
137
- ])
137
+ ]),
138
+ s.description ? (a(), i("p", {
139
+ key: 0,
140
+ innerHTML: e(ce)(s.description)
141
+ }, null, 8, ["innerHTML"])) : u("", !0)
138
142
  ]),
139
143
  key: "1"
140
144
  }
141
145
  ]), 1032, ["listing-id", "gallery", "name", "description", "layout"]));
142
146
  }
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 = {
147
+ }), ke = /* @__PURE__ */ le(Tn, [["__scopeId", "data-v-228d0b15"]]), wn = /* @__PURE__ */ J({
148
+ __name: "EventReservationForm",
149
+ props: {
150
+ showGiftCard: { type: Boolean, default: !1 },
151
+ showTermsNotice: { type: Boolean, default: !1 }
152
+ },
153
+ setup(V) {
154
+ const { t: l } = te(), p = Qe();
155
+ return (m, B) => (a(), _(cn, {
156
+ "total-price": 0,
157
+ "show-gift-card": m.showGiftCard,
158
+ "show-terms-notice": m.showTermsNotice,
159
+ "is-sidebar-loading": !1,
160
+ notice: e(l)("hotel.reservationNotice")
161
+ }, _e({
162
+ form: d(() => [
163
+ x(m.$slots, "form")
164
+ ]),
165
+ "reservation-summary": d(() => []),
166
+ "price-summary": d(() => []),
167
+ navigation: d(() => [
168
+ x(m.$slots, "navigation")
169
+ ]),
170
+ _: 2
171
+ }, [
172
+ e(p).addons ? {
173
+ name: "addons",
174
+ fn: d(() => [
175
+ x(m.$slots, "addons")
176
+ ]),
177
+ key: "0"
178
+ } : void 0
179
+ ]), 1032, ["show-gift-card", "show-terms-notice", "notice"]));
180
+ }
181
+ }), An = { class: "event-skeleton" }, Cn = /* @__PURE__ */ J({
182
+ __name: "EventSkeleton",
183
+ setup(V) {
184
+ return (l, p) => (a(), i("div", An, [
185
+ r(yn, { view: "event" }),
186
+ r(Ve)
187
+ ]));
188
+ }
189
+ }), Pn = /* @__PURE__ */ le(Cn, [["__scopeId", "data-v-66a17edb"]]), N = (V) => (tn("data-v-274a2a78"), V = V(), ln(), V), Ln = { class: "fresh-booking-panel" }, On = {
144
190
  key: 0,
145
191
  id: "fresh-booking-event-overview"
146
- }, fl = { class: "fresh-booking-event-listings" }, _l = { class: "fresh-booking-event-listings" }, Vl = {
192
+ }, Bn = { class: "fresh-booking-event-listings" }, Dn = { class: "fresh-booking-event-listings" }, Fn = { class: "fresh-booking-panel" }, Sn = {
147
193
  key: 2,
148
194
  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({
195
+ }, Un = { class: "fresh-booking-table" }, Rn = /* @__PURE__ */ N(() => /* @__PURE__ */ n("th", { class: "fresh-booking-event-addons-input" }, null, -1)), Nn = { class: "fresh-booking-event-addons-price" }, Mn = /* @__PURE__ */ N(() => /* @__PURE__ */ n("br", null, null, -1)), qn = { class: "fresh-booking-event-addons-input" }, Hn = { class: "fresh-booking-event-addons-price" }, In = /* @__PURE__ */ N(() => /* @__PURE__ */ n("td", { colspan: "2" }, null, -1)), zn = { class: "fresh-booking-event-addons-price" }, jn = { key: 3 }, Gn = { class: "fresh-booking-label required" }, Zn = { id: "fresh-booking-event-table" }, Qn = { key: 4 }, Jn = { class: "fresh-booking-label required" }, Kn = { class: "fresh-booking-table" }, Wn = /* @__PURE__ */ N(() => /* @__PURE__ */ n("th", { class: "fresh-booking-event-addons-input" }, null, -1)), Yn = { class: "fresh-booking-event-addons-price" }, Xn = /* @__PURE__ */ N(() => /* @__PURE__ */ n("br", null, null, -1)), xn = /* @__PURE__ */ N(() => /* @__PURE__ */ n("br", null, null, -1)), et = { class: "fresh-booking-event-addons-input" }, nt = { class: "fresh-booking-event-addons-price" }, tt = { key: 0 }, lt = { key: 1 }, at = { key: 2 }, ot = { key: 3 }, st = { key: 4 }, it = { key: 5 }, rt = { key: 6 }, ut = ["onClick"], dt = /* @__PURE__ */ J({
150
196
  name: "EventLayout",
151
197
  __name: "Event",
152
198
  props: {
153
199
  accessToken: {},
154
200
  styling: {}
155
201
  },
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,
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,
202
+ setup(V) {
203
+ const { t: l } = te(), {
204
+ searchDate: p,
205
+ addons: m,
206
+ products: B,
207
+ numberOfDays: $,
208
+ discountCode: E,
209
+ name: T,
210
+ phone: c,
211
+ email: b,
212
+ remark: h,
213
+ arrivalTime: D,
214
+ currency: v,
215
+ numberOfPeople: H,
216
+ numberOfTotalDays: I,
217
+ numberOfRooms: K,
218
+ basePrice: s,
219
+ totalPrice: P,
220
+ isPaymentLoading: U,
221
+ hasEvents: $e,
222
+ hasTemplates: Ee,
223
+ getEvents: Te,
224
+ getTemplates: we,
225
+ getEventData: Ae,
226
+ getTemplateData: z,
227
+ getEventTableData: Ce,
228
+ length: ae,
229
+ roomUpgrade: Pe,
187
230
  weekendFee: Le,
188
- fromDate: le,
189
- hasProducts: Ue,
190
- eventRateType: ne,
191
- isMetaDataAvailable: Ae,
192
- areListingsAvailable: Be,
193
- isReservationFormFilled: Fe,
194
- isAvailabilityDataAvailable: Re,
231
+ fromDate: oe,
232
+ hasProducts: Oe,
233
+ eventRateType: se,
234
+ isMetaDataAvailable: vt,
235
+ areListingsAvailable: bt,
236
+ isReservationFormFilled: Be,
237
+ isAvailabilityDataAvailable: De,
195
238
  // 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(), {
239
+ isTemplateEvent: L,
240
+ tableBasePrice: ie,
241
+ hasListingData: Fe
242
+ } = Z(Q()), {
243
+ initialize: Se,
244
+ validateDiscountCode: ht,
245
+ fetchListings: Ue,
246
+ createBooking: Re,
247
+ localAddonPrice: re,
248
+ totalAddonPrice: ue,
249
+ reset: Ne
250
+ } = Q(), {
207
251
  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)
252
+ hideEventTemplates: qe
253
+ } = Z(ye());
254
+ return Je(() => Se()), Ke(p, () => Ue()), (de, g) => (a(), _(nn, { styling: de.styling }, {
255
+ default: d(() => [
256
+ (a(), _(We, null, {
257
+ default: d(() => [
258
+ r(en, {
259
+ id: "fresh-booking-event-module",
260
+ class: "fresh-booking-app",
261
+ type: "event",
262
+ "access-token": de.accessToken
321
263
  }, {
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)
264
+ default: d(() => [
265
+ r(pn, null, {
266
+ availability: d(({ next: j }) => [
267
+ n("div", Ln, [
268
+ r(hn)
375
269
  ]),
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)
270
+ e(Fe) ? (a(), i("div", On, [
271
+ e($e) && !e(Me) ? (a(), i(A, { key: 0 }, [
272
+ n("h2", null, [
273
+ r(C, {
274
+ icon: "clock-seven",
275
+ type: "fal",
276
+ color: "header"
277
+ }),
278
+ n("span", null, t(e(l)("event.eventsTitle")), 1)
279
+ ]),
280
+ n("ul", Bn, [
281
+ (a(!0), i(A, null, S(e(Te), ({
282
+ id: F,
283
+ days: o,
284
+ name: k,
285
+ timeFrom: w,
286
+ timeTo: f,
287
+ fromDate: y,
288
+ toDate: M,
289
+ tableGroupId: W,
290
+ description: Y,
291
+ soldOut: X,
292
+ length: q,
293
+ maxOnlineReservationLimit: He
294
+ }) => (a(), _(ke, {
295
+ key: F,
296
+ type: "event",
297
+ "listing-id": F,
298
+ "table-group-id": W,
299
+ description: Y,
300
+ name: k,
301
+ length: q,
302
+ days: o,
303
+ "from-date": y,
304
+ "to-date": M,
305
+ "max-online-reservation-limit": He,
306
+ "time-from": w,
307
+ "time-to": f,
308
+ "sold-out": X,
309
+ callback: j
310
+ }, null, 8, ["listing-id", "table-group-id", "description", "name", "length", "days", "from-date", "to-date", "max-online-reservation-limit", "time-from", "time-to", "sold-out", "callback"]))), 128))
311
+ ])
312
+ ], 64)) : u("", !0),
313
+ e(Ee) && !e(qe) ? (a(), i(A, { key: 1 }, [
314
+ n("h2", null, [
315
+ r(C, {
316
+ icon: "stars",
317
+ type: "fal",
318
+ color: "header"
319
+ }),
320
+ n("span", null, t(e(l)("event.stayTitle")), 1)
321
+ ]),
322
+ n("ul", Dn, [
323
+ (a(!0), i(A, null, S(e(we), ({
324
+ id: F,
325
+ name: o,
326
+ fromDate: k,
327
+ toDate: w,
328
+ minimumPersonCount: f,
329
+ fromPrice: y,
330
+ description: M
331
+ }) => (a(), _(ke, {
332
+ key: F,
333
+ type: "template",
334
+ "listing-id": F,
335
+ name: o,
336
+ description: M,
337
+ "from-date": k,
338
+ "to-date": w,
339
+ "minimum-person-count": f,
340
+ fromPrice: y,
341
+ callback: j
342
+ }, null, 8, ["listing-id", "name", "description", "from-date", "to-date", "minimum-person-count", "fromPrice", "callback"]))), 128))
343
+ ])
344
+ ], 64)) : u("", !0)
345
+ ])) : (a(), _(Ve, { key: 1 }))
346
+ ]),
347
+ addons: d(({ next: j, prev: F }) => [
348
+ e(De) ? (a(), _(wn, {
349
+ key: 0,
350
+ remark: e(h),
351
+ "onUpdate:remark": g[7] || (g[7] = (o) => R(h) ? h.value = o : null),
352
+ "is-filled": e(Be),
353
+ "is-loading": e(U),
354
+ "base-price": e(s),
355
+ "total-price": e(P),
356
+ "weekend-fee": e(Le),
357
+ "room-upgrade": e(Pe)
358
+ }, {
359
+ form: d(() => [
360
+ n("form", Fn, [
361
+ n("h2", null, [
362
+ n("span", null, t(e(l)("booking.reservation.addons")), 1)
381
363
  ]),
382
- Tl,
383
- l("th", $l, [
384
- l("span", null, n(e(o)("booking.availability.price")), 1)
385
- ])
364
+ e(se) === e(ve).FullDayEvent ? (a(), _(ee, {
365
+ key: 0,
366
+ modelValue: e($),
367
+ "onUpdate:modelValue": g[0] || (g[0] = (o) => R($) ? $.value = o : null),
368
+ label: e(l)("event.numberOfDays"),
369
+ "min-value": 1,
370
+ required: ""
371
+ }, null, 8, ["modelValue", "label"])) : u("", !0),
372
+ r(be, {
373
+ modelValue: e(T),
374
+ "onUpdate:modelValue": g[1] || (g[1] = (o) => R(T) ? T.value = o : null),
375
+ type: "text",
376
+ label: e(l)("booking.reservation.name"),
377
+ icon: "user-alt",
378
+ placeholder: e(l)("booking.reservation.namePlaceholder"),
379
+ required: ""
380
+ }, null, 8, ["modelValue", "label", "placeholder"]),
381
+ r(be, {
382
+ modelValue: e(b),
383
+ "onUpdate:modelValue": g[2] || (g[2] = (o) => R(b) ? b.value = o : null),
384
+ label: e(l)("booking.reservation.email"),
385
+ type: "email",
386
+ name: "email",
387
+ autocomplete: "email",
388
+ icon: "at",
389
+ placeholder: e(l)("booking.reservation.emailPlaceholder"),
390
+ required: ""
391
+ }, null, 8, ["modelValue", "label", "placeholder"]),
392
+ r(gn, {
393
+ modelValue: e(c),
394
+ "onUpdate:modelValue": g[3] || (g[3] = (o) => R(c) ? c.value = o : null),
395
+ label: e(l)("booking.reservation.phone"),
396
+ icon: "phone-office",
397
+ placeholder: e(l)("booking.reservation.phonePlaceholder"),
398
+ required: ""
399
+ }, null, 8, ["modelValue", "label", "placeholder"]),
400
+ u("", !0),
401
+ e(z) && e(z).length > 0 ? (a(), i("ul", Sn, [
402
+ (a(!0), i(A, null, S(e(z), ({
403
+ roomGroupID: o,
404
+ addons: k,
405
+ adultPerRoom: w
406
+ }, f) => (a(), i("li", { key: o }, [
407
+ n("h5", null, [
408
+ n("span", null, t(e(l)("booking.reservation.room")) + " #" + t(f + 1), 1),
409
+ he(" ("),
410
+ r(C, {
411
+ icon: "male",
412
+ type: "fas",
413
+ color: "header"
414
+ }),
415
+ he(" " + t(w) + ") ", 1)
416
+ ]),
417
+ n("table", Un, [
418
+ n("thead", null, [
419
+ n("tr", null, [
420
+ n("th", null, [
421
+ n("span", null, t(e(l)("booking.reservation.addons")), 1)
422
+ ]),
423
+ Rn,
424
+ n("th", Nn, [
425
+ n("span", null, t(e(l)("booking.availability.price")), 1)
426
+ ])
427
+ ])
428
+ ]),
429
+ n("tbody", null, [
430
+ (a(!0), i(A, null, S(k, ({
431
+ addonID: y,
432
+ cardinality: M,
433
+ name: W,
434
+ price: Y,
435
+ quantityStrategy: X
436
+ }) => (a(), i("tr", { key: y }, [
437
+ n("td", null, [
438
+ n("b", null, t(W), 1),
439
+ Mn,
440
+ n("span", null, t(e(O)(Y, e(v))) + " " + t(e(Ye)(X)), 1)
441
+ ]),
442
+ n("td", qn, [
443
+ M === 3 ? (a(), _(ee, {
444
+ key: 0,
445
+ modelValue: e(m)[`${o}.${y}.${f}`],
446
+ "onUpdate:modelValue": (q) => e(m)[`${o}.${y}.${f}`] = q,
447
+ small: !0,
448
+ "min-value": 0
449
+ }, null, 8, ["modelValue", "onUpdate:modelValue"])) : (a(), _(ge, {
450
+ key: 1,
451
+ modelValue: e(m)[`${o}.${y}.${f}`],
452
+ "onUpdate:modelValue": (q) => e(m)[`${o}.${y}.${f}`] = q,
453
+ numeric: !0
454
+ }, null, 8, ["modelValue", "onUpdate:modelValue"]))
455
+ ]),
456
+ n("td", Hn, [
457
+ n("span", null, t(e(O)(e(re)(y, o, f), e(v))), 1)
458
+ ])
459
+ ]))), 128))
460
+ ]),
461
+ n("tfoot", null, [
462
+ n("tr", null, [
463
+ In,
464
+ n("td", zn, [
465
+ n("u", null, [
466
+ n("span", null, t(e(O)(e(ue)(o, f), e(v))), 1)
467
+ ])
468
+ ])
469
+ ])
470
+ ])
471
+ ])
472
+ ]))), 128))
473
+ ])) : u("", !0),
474
+ e(se) !== e(ve).FullDayEvent && !e(L) ? (a(), i("div", jn, [
475
+ n("label", Gn, [
476
+ n("span", null, t(e(l)("event.selectArrivalTime")), 1)
477
+ ]),
478
+ n("ul", Zn, [
479
+ (a(!0), i(A, null, S(e(Ce), (o, k) => (a(), i("li", { key: k }, [
480
+ r(ge, {
481
+ modelValue: e(D),
482
+ "onUpdate:modelValue": g[6] || (g[6] = (w) => R(D) ? D.value = w : null),
483
+ type: "radio",
484
+ name: "eventTimeTable",
485
+ val: o.time,
486
+ label: e(ne)(o.time)
487
+ }, null, 8, ["modelValue", "val", "label"])
488
+ ]))), 128))
489
+ ])
490
+ ])) : u("", !0),
491
+ e(Oe) ? (a(), i("div", Qn, [
492
+ n("label", Jn, [
493
+ n("span", null, t(e(l)("event.selectProducts")), 1)
494
+ ]),
495
+ n("table", Kn, [
496
+ n("thead", null, [
497
+ n("tr", null, [
498
+ n("th", null, [
499
+ n("span", null, t(e(l)("booking.reservation.addons")), 1)
500
+ ]),
501
+ Wn,
502
+ n("th", Yn, [
503
+ n("span", null, t(e(l)("booking.availability.price")), 1)
504
+ ])
505
+ ])
506
+ ]),
507
+ n("tbody", null, [
508
+ (a(!0), i(A, null, S(e(Ae).products, ({ productID: o, productName: k, price: w, description: f }) => (a(), i("tr", { key: o }, [
509
+ n("td", null, [
510
+ n("b", null, [
511
+ n("span", null, t(k), 1)
512
+ ]),
513
+ Xn,
514
+ n("span", null, t(f), 1),
515
+ xn,
516
+ n("span", null, t(e(O)(w, e(v))), 1)
517
+ ]),
518
+ n("td", et, [
519
+ r(ee, {
520
+ modelValue: e(B)[o],
521
+ "onUpdate:modelValue": (y) => e(B)[o] = y,
522
+ small: !0,
523
+ "min-value": 0
524
+ }, null, 8, ["modelValue", "onUpdate:modelValue"])
525
+ ]),
526
+ n("td", nt, [
527
+ n("span", null, t(e(O)(e(re)(o), e(v))), 1)
528
+ ])
529
+ ]))), 128))
530
+ ])
531
+ ])
532
+ ])) : u("", !0)
386
533
  ])
387
534
  ]),
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
- ])
535
+ resume: d(() => [
536
+ n("li", null, [
537
+ n("span", null, t(e(l)("event.numberOfGuests")), 1),
538
+ n("b", null, t(e(H)), 1)
539
+ ]),
540
+ e(L) ? (a(), i("li", tt, [
541
+ n("span", null, t(e(l)("event.numberOfRooms")), 1),
542
+ n("b", null, t(e(K)), 1)
543
+ ])) : u("", !0),
544
+ e(L) ? (a(), i("li", lt, [
545
+ n("span", null, t(e(l)("event.numberOfDays")), 1),
546
+ n("b", null, t(e(I)), 1)
547
+ ])) : u("", !0),
548
+ e(L) ? (a(), i("li", at, [
549
+ n("span", null, t(e(l)("booking.reservation.arrival")), 1),
550
+ n("b", null, t(e(fe)(e(oe))), 1)
551
+ ])) : u("", !0),
552
+ e(L) ? (a(), i("li", ot, [
553
+ n("span", null, t(e(l)("booking.reservation.departure")), 1),
554
+ n("b", null, t(e(fe)(e(oe), e(I))), 1)
555
+ ])) : u("", !0),
556
+ !e(L) && e(D) ? (a(), i("li", st, [
557
+ n("span", null, t(e(l)("event.startOfEvent")), 1),
558
+ n("b", null, t(e(ne)(e(D))), 1)
559
+ ])) : u("", !0),
560
+ !e(L) && e(ae) ? (a(), i("li", it, [
561
+ n("span", null, t(e(l)("event.lengthOfEvent")), 1),
562
+ n("b", null, t(e(ne)(e(ae))), 1)
563
+ ])) : u("", !0),
564
+ !e(L) && e(ie) > 0 ? (a(), i("li", rt, [
565
+ n("span", null, t(e(l)("booking.availability.basePrice")), 1),
566
+ n("b", null, t(e(O)(e(ie), e(v))), 1)
567
+ ])) : u("", !0)
568
+ ]),
569
+ expenses: d(() => [
570
+ (a(!0), i(A, null, S(e(z), ({ roomGroupID: o }, k) => (a(), i("li", { key: o }, [
571
+ n("span", null, t(e(l)("booking.reservation.addons")) + " - " + t(e(l)("booking.reservation.room")) + " #" + t(k + 1), 1),
572
+ n("b", null, t(e(O)(e(ue)(o, k), e(v))), 1)
418
573
  ]))), 128))
419
574
  ]),
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)
575
+ navigation: d(() => [
576
+ r(Xe, {
577
+ label: e(l)("general.confirmReservation"),
578
+ "full-width": "",
579
+ onClickEvent: (o) => e(Re)(j)
580
+ }, null, 8, ["label", "onClickEvent"]),
581
+ n("button", {
582
+ class: "konnectio-abort-reservation link",
583
+ onClick: xe((o) => e(Ne)(F), ["prevent"])
584
+ }, [
585
+ n("span", null, t(e(l)("general.goAStepBack")), 1)
586
+ ], 8, ut)
587
+ ]),
588
+ _: 2
589
+ }, 1032, ["remark", "is-filled", "is-loading", "base-price", "total-price", "weekend-fee", "room-upgrade"])) : u("", !0)
436
590
  ]),
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)
591
+ payment: d(() => [
592
+ r(kn)
453
593
  ]),
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))
594
+ confirmation: d(() => [
595
+ r(mn, {
596
+ message: e(l)("event.confirmationMessage")
597
+ }, null, 8, ["message"])
598
+ ]),
599
+ _: 1
600
+ })
532
601
  ]),
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)
602
+ _: 1
603
+ }, 8, ["access-token"])
538
604
  ]),
539
- confirmation: g(() => [
540
- r(rl, {
541
- message: e(o)("event.confirmationMessage")
542
- }, null, 8, ["message"])
605
+ fallback: d(() => [
606
+ r(Pn)
543
607
  ]),
544
608
  _: 1
545
- }, 8, ["slideshow", "title", "subtitle"])) : (t(), b(de, { key: 1 }))
609
+ }))
546
610
  ]),
547
611
  _: 1
548
- }, 8, ["access-token", "styling"]));
612
+ }, 8, ["styling"]));
613
+ }
614
+ }), G = /* @__PURE__ */ le(dt, [["__scopeId", "data-v-274a2a78"]]), ct = an(), pt = un();
615
+ class mt extends HTMLElement {
616
+ vueApp;
617
+ constructor() {
618
+ super();
619
+ }
620
+ disconnectedCallback() {
621
+ this.vueApp.unmount();
622
+ }
623
+ connectedCallback() {
624
+ const l = typeof G == "function" ? G.options : G;
625
+ let p = Array.isArray(l.props) ? l.props : Object.keys(l.props || {});
626
+ const m = (c) => c.replace(/[A-Z]+(?![a-z])|[A-Z]/g, (b, h) => (h ? "-" : "") + b.toLowerCase()), B = (c) => c.replace(/-./g, (b) => b[1].toUpperCase()), $ = {};
627
+ p = p.map(m);
628
+ const E = {};
629
+ for (const c of this.attributes) {
630
+ const h = c.name.split(".");
631
+ h.length > 1 && (E[h[0]] || (E[h[0]] = {}), E[h[0]][B(h[1])] = c.value);
632
+ }
633
+ for (const c of p) {
634
+ let b = this.attributes.getNamedItem(c)?.value;
635
+ E.hasOwnProperty(c) && (b = E[c]), $[c] = b;
636
+ }
637
+ this.vueApp = on(G, $), this.vueApp.provide("emitter", pt), this.vueApp.use(sn), this.vueApp.use(ct), this.vueApp.use(vn), this.vueApp.use(bn), this.vueApp.use(rn, { bootstrap: !0 });
638
+ const T = document.createElement("div");
639
+ this.vueApp.mount(T), this.appendChild(T.children[0]);
549
640
  }
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");
641
+ }
642
+ window.customElements.define("konnectio-event", mt);
556
643
  export {
557
- M as default
644
+ mt as default
558
645
  };