@konnectio/core 4.0.56-rc6 → 4.0.56-rc61

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (195) hide show
  1. package/dist/{ActionField-YyW_C34E.js → ActionField-tyBtuplH.js} +43 -34
  2. package/dist/ActionField-tyBtuplH.js.br +0 -0
  3. package/dist/AvailabilitySkeleton-xblTQw-r.js +294 -0
  4. package/dist/AvailabilitySkeleton-xblTQw-r.js.br +0 -0
  5. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-DLNeZBMq.js +8213 -0
  6. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-DLNeZBMq.js.br +0 -0
  7. package/dist/CheckoutWindow-DwDO_UFI.js +677 -0
  8. package/dist/CheckoutWindow-DwDO_UFI.js.br +0 -0
  9. package/dist/ErrorMessage-D3V2b1FO.js +45 -0
  10. package/dist/ErrorMessage-D3V2b1FO.js.br +0 -0
  11. package/dist/EventAvailabilityForm-CX8mAHaL.js +117 -0
  12. package/dist/EventAvailabilityForm-CX8mAHaL.js.br +0 -0
  13. package/dist/Field-CtZJY_BD.js +50 -0
  14. package/dist/Field-CtZJY_BD.js.br +0 -0
  15. package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-BczeCv48.js +18601 -0
  16. package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-BczeCv48.js.br +0 -0
  17. package/dist/TermsOfService-CAxlHXFH.js +36 -0
  18. package/dist/TermsOfService-CAxlHXFH.js.br +0 -0
  19. package/dist/_-BXd9hTZB.js +12 -0
  20. package/dist/_.vue_vue_type_style_index_0_lang-3b7FP_Lh.js +69 -0
  21. package/dist/_.vue_vue_type_style_index_0_lang-3b7FP_Lh.js.br +0 -0
  22. package/dist/_commonjsHelpers-20l0ha8g.js +17 -0
  23. package/dist/_sentry-release-injection-file-Cbnp5q97.js +9524 -0
  24. package/dist/_sentry-release-injection-file-Cbnp5q97.js.br +0 -0
  25. package/dist/availability.js +90 -140
  26. package/dist/availability.js.br +0 -0
  27. package/dist/deep-link.js +62 -0
  28. package/dist/deep-link.js.br +0 -0
  29. package/dist/event.js +790 -500
  30. package/dist/event.js.br +0 -0
  31. package/dist/gift-card-validation.js +113 -68
  32. package/dist/gift-card-validation.js.br +0 -0
  33. package/dist/gift-card.js +353 -409
  34. package/dist/gift-card.js.br +0 -0
  35. package/dist/giftCard-IDe0Joiw.js +134 -0
  36. package/dist/giftCard-IDe0Joiw.js.br +0 -0
  37. package/dist/hotel.js +1516 -2445
  38. package/dist/hotel.js.br +0 -0
  39. package/dist/masonry.plugin-Bb8vdNgz.js +12782 -0
  40. package/dist/masonry.plugin-Bb8vdNgz.js.br +0 -0
  41. package/dist/mitt-CMHUNNN-.js +2953 -0
  42. package/dist/mitt-CMHUNNN-.js.br +0 -0
  43. package/dist/polyfill.js +15079 -4765
  44. package/dist/polyfill.js.br +0 -0
  45. package/dist/style.css +1 -1
  46. package/dist/style.css.br +0 -0
  47. package/dist/tracing-SGZEiE7O.js +2287 -0
  48. package/dist/tracing-SGZEiE7O.js.br +0 -0
  49. package/package.json +48 -42
  50. package/dist/ActionField-YyW_C34E.js.br +0 -0
  51. package/dist/AvailabilitySkeleton-lYcDX41T.js +0 -239
  52. package/dist/AvailabilitySkeleton-lYcDX41T.js.br +0 -0
  53. package/dist/CheckoutWindow-T7-vrZyG.js +0 -205
  54. package/dist/CheckoutWindow-T7-vrZyG.js.br +0 -0
  55. package/dist/Container-w7O0He-s.js +0 -68
  56. package/dist/Container-w7O0He-s.js.br +0 -0
  57. package/dist/DateField.vue_vue_type_style_index_0_lang-pLqbpoS_.js +0 -8566
  58. package/dist/DateField.vue_vue_type_style_index_0_lang-pLqbpoS_.js.br +0 -0
  59. package/dist/Field-fWwF40rD.js +0 -42
  60. package/dist/Field-fWwF40rD.js.br +0 -0
  61. package/dist/SelectField.vue_vue_type_style_index_0_lang-C-MscjWo.js +0 -30461
  62. package/dist/SelectField.vue_vue_type_style_index_0_lang-C-MscjWo.js.br +0 -0
  63. package/dist/ThankYou-pUA2X7-4.js +0 -13316
  64. package/dist/ThankYou-pUA2X7-4.js.br +0 -0
  65. package/dist/_-TlutFgf7.js +0 -19
  66. package/dist/_commonjsHelpers-4t9S7M5p.js +0 -30
  67. package/dist/assets/typescript/mixins.d.ts +0 -34
  68. package/dist/availability.d.ts +0 -3
  69. package/dist/components/Alert.vue.d.ts +0 -28
  70. package/dist/components/Alert.vue.d.ts.map +0 -1
  71. package/dist/components/Clickable.vue.d.ts +0 -60
  72. package/dist/components/Clickable.vue.d.ts.map +0 -1
  73. package/dist/components/Container.vue.d.ts +0 -23
  74. package/dist/components/Container.vue.d.ts.map +0 -1
  75. package/dist/components/ErrorMessage.vue.d.ts +0 -15
  76. package/dist/components/ErrorMessage.vue.d.ts.map +0 -1
  77. package/dist/components/Gallery.vue.d.ts +0 -31
  78. package/dist/components/Gallery.vue.d.ts.map +0 -1
  79. package/dist/components/GoogleNotice.vue.d.ts +0 -2
  80. package/dist/components/GoogleNotice.vue.d.ts.map +0 -1
  81. package/dist/components/Icon.vue.d.ts +0 -38
  82. package/dist/components/Icon.vue.d.ts.map +0 -1
  83. package/dist/components/Loading.vue.d.ts +0 -29
  84. package/dist/components/Loading.vue.d.ts.map +0 -1
  85. package/dist/components/Spinner.vue.d.ts +0 -2
  86. package/dist/components/Spinner.vue.d.ts.map +0 -1
  87. package/dist/components/forms/EventAvailabilityForm.vue.d.ts +0 -18
  88. package/dist/components/forms/EventAvailabilityForm.vue.d.ts.map +0 -1
  89. package/dist/components/forms/HotelAvailabilityForm.vue.d.ts +0 -34
  90. package/dist/components/forms/HotelAvailabilityForm.vue.d.ts.map +0 -1
  91. package/dist/components/forms/HotelReservationForm.vue.d.ts +0 -41
  92. package/dist/components/forms/HotelReservationForm.vue.d.ts.map +0 -1
  93. package/dist/components/forms/MultiStepForm.vue.d.ts +0 -43
  94. package/dist/components/forms/MultiStepForm.vue.d.ts.map +0 -1
  95. package/dist/components/forms/ReservationForm.vue.d.ts +0 -63
  96. package/dist/components/forms/ReservationForm.vue.d.ts.map +0 -1
  97. package/dist/components/forms/_.vue.d.ts +0 -42
  98. package/dist/components/forms/_.vue.d.ts.map +0 -1
  99. package/dist/components/inputs/Checkbox.vue.d.ts +0 -55
  100. package/dist/components/inputs/Checkbox.vue.d.ts.map +0 -1
  101. package/dist/components/inputs/CheckboxField.vue.d.ts +0 -29
  102. package/dist/components/inputs/CheckboxField.vue.d.ts.map +0 -1
  103. package/dist/components/inputs/DateField.vue.d.ts +0 -104
  104. package/dist/components/inputs/DateField.vue.d.ts.map +0 -1
  105. package/dist/components/inputs/InputField.vue.d.ts +0 -62
  106. package/dist/components/inputs/InputField.vue.d.ts.map +0 -1
  107. package/dist/components/inputs/MediaSelector.vue.d.ts +0 -43
  108. package/dist/components/inputs/MediaSelector.vue.d.ts.map +0 -1
  109. package/dist/components/inputs/NumberField.vue.d.ts +0 -87
  110. package/dist/components/inputs/NumberField.vue.d.ts.map +0 -1
  111. package/dist/components/inputs/SelectField.vue.d.ts +0 -90
  112. package/dist/components/inputs/SelectField.vue.d.ts.map +0 -1
  113. package/dist/components/inputs/TextField.vue.d.ts +0 -68
  114. package/dist/components/inputs/TextField.vue.d.ts.map +0 -1
  115. package/dist/components/inputs/TimeField.vue.d.ts +0 -44
  116. package/dist/components/inputs/TimeField.vue.d.ts.map +0 -1
  117. package/dist/components/inputs/grouped/ActionField.vue.d.ts +0 -72
  118. package/dist/components/inputs/grouped/ActionField.vue.d.ts.map +0 -1
  119. package/dist/components/inputs/grouped/CountryField.vue.d.ts +0 -41
  120. package/dist/components/inputs/grouped/CountryField.vue.d.ts.map +0 -1
  121. package/dist/components/inputs/grouped/NameField.vue.d.ts +0 -71
  122. package/dist/components/inputs/grouped/NameField.vue.d.ts.map +0 -1
  123. package/dist/components/inputs/grouped/PhoneField.vue.d.ts +0 -51
  124. package/dist/components/inputs/grouped/PhoneField.vue.d.ts.map +0 -1
  125. package/dist/components/inputs/grouped/RoomConfigField.vue.d.ts +0 -47
  126. package/dist/components/inputs/grouped/RoomConfigField.vue.d.ts.map +0 -1
  127. package/dist/components/listings/Base.vue.d.ts +0 -56
  128. package/dist/components/listings/Base.vue.d.ts.map +0 -1
  129. package/dist/components/listings/Event.vue.d.ts +0 -47
  130. package/dist/components/listings/Event.vue.d.ts.map +0 -1
  131. package/dist/components/listings/Hotel.vue.d.ts +0 -16
  132. package/dist/components/listings/Hotel.vue.d.ts.map +0 -1
  133. package/dist/components/listings/Template.vue.d.ts +0 -21
  134. package/dist/components/listings/Template.vue.d.ts.map +0 -1
  135. package/dist/components/side-panels/Base.vue.d.ts +0 -61
  136. package/dist/components/side-panels/Base.vue.d.ts.map +0 -1
  137. package/dist/components/side-panels/ListingInfo.vue.d.ts +0 -18
  138. package/dist/components/side-panels/ListingInfo.vue.d.ts.map +0 -1
  139. package/dist/components/side-panels/Template.vue.d.ts +0 -18
  140. package/dist/components/side-panels/Template.vue.d.ts.map +0 -1
  141. package/dist/components/side-panels/TermsOfService.vue.d.ts +0 -14
  142. package/dist/components/side-panels/TermsOfService.vue.d.ts.map +0 -1
  143. package/dist/components/skeletons/AvailabilitySkeleton.vue.d.ts +0 -33
  144. package/dist/components/skeletons/AvailabilitySkeleton.vue.d.ts.map +0 -1
  145. package/dist/components/skeletons/Field.vue.d.ts +0 -36
  146. package/dist/components/skeletons/Field.vue.d.ts.map +0 -1
  147. package/dist/components/skeletons/GiftCardSkeleton.vue.d.ts +0 -2
  148. package/dist/components/skeletons/GiftCardSkeleton.vue.d.ts.map +0 -1
  149. package/dist/components/skeletons/HotelSkeleton.vue.d.ts +0 -2
  150. package/dist/components/skeletons/HotelSkeleton.vue.d.ts.map +0 -1
  151. package/dist/components/skeletons/Listing.vue.d.ts +0 -2
  152. package/dist/components/skeletons/Listing.vue.d.ts.map +0 -1
  153. package/dist/components/skeletons/Sidebar.vue.d.ts +0 -2
  154. package/dist/components/skeletons/Sidebar.vue.d.ts.map +0 -1
  155. package/dist/components/skeletons/_.vue.d.ts +0 -36
  156. package/dist/components/skeletons/_.vue.d.ts.map +0 -1
  157. package/dist/components/views/CheckoutWindow.vue.d.ts +0 -2
  158. package/dist/components/views/CheckoutWindow.vue.d.ts.map +0 -1
  159. package/dist/components/views/TermsOfService.vue.d.ts +0 -2
  160. package/dist/components/views/TermsOfService.vue.d.ts.map +0 -1
  161. package/dist/components/views/ThankYou.vue.d.ts +0 -15
  162. package/dist/components/views/ThankYou.vue.d.ts.map +0 -1
  163. package/dist/entries/availability.d.ts +0 -5
  164. package/dist/entries/event.d.ts +0 -2
  165. package/dist/entries/gift-card-validation.d.ts +0 -5
  166. package/dist/entries/gift-card.d.ts +0 -5
  167. package/dist/entries/hotel.d.ts +0 -5
  168. package/dist/entries/navigation.d.ts +0 -1
  169. package/dist/entries/polyfill.d.ts +0 -0
  170. package/dist/event-mDcuoL9g.js +0 -358
  171. package/dist/event-mDcuoL9g.js.br +0 -0
  172. package/dist/event.d.ts +0 -3
  173. package/dist/gift-card-validation.d.ts +0 -3
  174. package/dist/gift-card.d.ts +0 -3
  175. package/dist/hotel.d.ts +0 -3
  176. package/dist/layouts/Availability.vue.d.ts +0 -25
  177. package/dist/layouts/Event.vue.d.ts +0 -18
  178. package/dist/layouts/GiftCard.vue.d.ts +0 -32
  179. package/dist/layouts/GiftCardValidation.vue.d.ts +0 -18
  180. package/dist/layouts/Hotel.vue.d.ts +0 -36
  181. package/dist/layouts/_.vue.d.ts +0 -39
  182. package/dist/navigation.d.ts +0 -1
  183. package/dist/navigation.js +0 -1
  184. package/dist/plugins/i18n.d.ts +0 -5
  185. package/dist/polyfill.d.ts +0 -1
  186. package/dist/store/alert.d.ts +0 -28
  187. package/dist/store/applyGiftCard.d.ts +0 -28
  188. package/dist/store/availability.d.ts +0 -40
  189. package/dist/store/event.d.ts +0 -683
  190. package/dist/store/giftCard.d.ts +0 -83
  191. package/dist/store/payment.d.ts +0 -139
  192. package/dist/store/recaptcha.d.ts +0 -28
  193. package/dist/store/tracking.d.ts +0 -57
  194. package/dist/store/utilities.d.ts +0 -350
  195. package/dist/types/index.d.ts +0 -976
package/dist/hotel.js CHANGED
@@ -1,179 +1,243 @@
1
- var ho = Object.defineProperty, fo = Object.defineProperties;
2
- var mo = Object.getOwnPropertyDescriptors;
3
- var tt = Object.getOwnPropertySymbols;
4
- var go = Object.prototype.hasOwnProperty, vo = Object.prototype.propertyIsEnumerable;
5
- var nt = Math.pow, ot = (o, e, t) => e in o ? ho(o, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[e] = t, ee = (o, e) => {
6
- for (var t in e || (e = {}))
7
- go.call(e, t) && ot(o, t, e[t]);
8
- if (tt)
9
- for (var t of tt(e))
10
- vo.call(e, t) && ot(o, t, e[t]);
11
- return o;
12
- }, ge = (o, e) => fo(o, mo(e));
13
- var Q = (o, e, t) => new Promise((n, a) => {
14
- var u = (d) => {
15
- try {
16
- h(t.next(d));
17
- } catch (p) {
18
- a(p);
19
- }
20
- }, c = (d) => {
21
- try {
22
- h(t.throw(d));
23
- } catch (p) {
24
- a(p);
25
- }
26
- }, h = (d) => d.done ? n(d.value) : Promise.resolve(d.value).then(u, c);
27
- h((t = t.apply(o, e)).next());
28
- });
29
- import { k as j, F as re, al as yo, s as K, c as me, aa as kt, ab as se, o as E, m as R, X as bo, z as l, w, D as we, x as v, H as V, M as ne, Z as it, am as ko, l as C, a4 as z, a3 as B, n as x, a6 as qe, an as ce, p as I, K as J, L as ie, f as q, y as Ce, Q as _t, R as Et, _ as X, r as he, ao as Tt, B as Ye, a2 as Ee, A as It, C as de, ap as _o, a1 as Eo, q as Te, I as Ct, v as rt, T as oe, aq as To, G as Io, a7 as Co, N as st, J as N, P as $o, ar as $t, as as So, U as Vo, V as Lo, W as Po, a9 as xo } from "./SelectField.vue_vue_type_style_index_0_lang-C-MscjWo.js";
30
- import { R as wo, B as Ke, a as Ho, S as Oo, M as Do, T as Ao, x as Mo } from "./ThankYou-pUA2X7-4.js";
31
- import { C as Ro } from "./Container-w7O0He-s.js";
32
- import { A as Bo, H as zo } from "./AvailabilitySkeleton-lYcDX41T.js";
33
- import { _ as Wo } from "./DateField.vue_vue_type_style_index_0_lang-pLqbpoS_.js";
34
- import { C as Ue, P as No, a as Fo } from "./CheckoutWindow-T7-vrZyG.js";
35
- import { E as Y } from "./_-TlutFgf7.js";
36
- import { c as St, g as Vt } from "./_commonjsHelpers-4t9S7M5p.js";
37
- import "./ActionField-YyW_C34E.js";
38
- import "./Field-fWwF40rD.js";
39
- const qo = { key: 0 }, Uo = { key: 1 }, He = /* @__PURE__ */ j({
1
+ import { d as Q, r as oe, a as c, b as A, w as $, l as qe, u as o, g as f, e as a, t as v, A as We, B as Ke, f as g, i as _, s as F, F as E, x as Ye, v as N, h as we, c as G, p as kt, j as _t, o as tt, z as Pe, n as Ae, S as eo, C as to, D as oo, E as lo, k as no } from "./_sentry-release-injection-file-Cbnp5q97.js";
2
+ import { u as ne, s as Z, T as ao, c as io, i as so, m as ro } from "./mitt-CMHUNNN-.js";
3
+ import { e as _e, x as me, u as ke, I as K, f as ue, y as Ze, l as dt, z as re, h as te, _ as ce, n as Ie, A as Vt, b as Qe, c as de, d as Tt, B as $t, D as ut, T as se, p as uo, F as co, a as po, C as mo, i as ct, j as fo, k as pt, m as ho } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-BczeCv48.js";
4
+ import { R as vo, B as Se, L as yo, S as go, M as bo, a as xe, C as ko, T as _o, V as Vo, G as To } from "./masonry.plugin-Bb8vdNgz.js";
5
+ import { A as $o, H as Co } from "./AvailabilitySkeleton-xblTQw-r.js";
6
+ import { S as wo } from "./TermsOfService-CAxlHXFH.js";
7
+ import { C as De, B as Po, P as Ao, a as Do } from "./CheckoutWindow-DwDO_UFI.js";
8
+ import { _ as Ct } from "./AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-DLNeZBMq.js";
9
+ (function() {
10
+ try {
11
+ var n = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, l = new Error().stack;
12
+ l && (n._sentryDebugIds = n._sentryDebugIds || {}, n._sentryDebugIds[l] = "47437dfc-4749-4b83-a51b-80cae13ab832", n._sentryDebugIdIdentifier = "sentry-dbid-47437dfc-4749-4b83-a51b-80cae13ab832");
13
+ } catch {
14
+ }
15
+ })();
16
+ const Ho = { key: 0 }, Io = { class: "konnectio-hotel-reservation-warning" }, So = { class: "konnectio-hotel-reservation-warning" }, Bo = { class: "konnectio-hotel-reservation-warning" };
17
+ const Eo = { key: 0 }, Mo = { key: 1 }, Lo = { key: 0 }, Uo = { class: "konnectio-reservation-actions" }, Ro = /* @__PURE__ */ Q({
40
18
  __name: "HotelReservationForm",
41
19
  props: {
42
20
  showGiftCard: { type: Boolean, default: !1 },
43
21
  showTermsNotice: { type: Boolean, default: !1 }
44
22
  },
45
- setup(o) {
46
- const { t: e } = re(), t = yo(), {
47
- hideArrivalDepartureInputs: n,
48
- disableArrivalUserSelection: a,
49
- disableDepartureUserSelection: u,
50
- arrivalDefault: c,
51
- departureDefault: h,
52
- currency: d
53
- } = K(me()), {
54
- arrivalDate: p,
55
- departureDate: m
56
- } = K(kt()), {
57
- arrivalTime: y,
58
- departureTime: b,
59
- roomDisplay: s,
60
- templateID: k,
61
- totalPrice: _,
62
- areListingsLoading: f,
63
- getSelectedPackageRoom: i,
64
- selectedPackage: r,
65
- discountVouchers: g
66
- } = K(se()), { removeRoom: T } = se();
67
- function $(L) {
68
- return L.reduce((D, { totalPrice: A }) => D + A, 0);
23
+ setup(n) {
24
+ const { t: l } = ne(), {
25
+ hideArrivalDepartureInputs: t,
26
+ disableArrivalUserSelection: e,
27
+ disableDepartureUserSelection: i,
28
+ arrivalDefault: s,
29
+ departureDefault: m,
30
+ disableNewsletterSignup: p,
31
+ currency: u
32
+ } = Z(_e()), {
33
+ arrivalTime: r,
34
+ departureTime: d,
35
+ roomDisplay: h,
36
+ templateID: V,
37
+ totalPrice: P,
38
+ areListingsLoading: C,
39
+ getSelectedPackageRoom: S,
40
+ selectedPackage: B,
41
+ discountVouchers: b,
42
+ currentArrivalDate: w,
43
+ currentDepartureDate: H,
44
+ datesMismatch: O,
45
+ currentLocation: j,
46
+ locationMismatch: Y,
47
+ newsMails: R,
48
+ termsOfService: z,
49
+ discountCode: X,
50
+ hasTermOfService: Be,
51
+ acceptTerms: M,
52
+ totalTemplateAddonPrice: pe
53
+ } = Z(me()), { hasHotelLocations: ve } = Z(ke()), { removeRoom: Ve, validateDiscountCode: Ee } = me(), { getHotelLocationName: Me } = ke(), fe = oe(!1);
54
+ function ye(le) {
55
+ return le.reduce((L, { totalPrice: ge }) => L + ge, 0);
69
56
  }
70
- return (L, H) => (E(), R(wo, {
71
- "total-price": l(_),
72
- "show-gift-card": L.showGiftCard,
73
- "show-terms-notice": L.showTermsNotice,
74
- "is-sidebar-loading": l(f),
75
- notice: l(e)("hotel.reservationNotice")
76
- }, bo({
77
- form: w(() => [
78
- we(L.$slots, "form")
57
+ return (le, x) => (c(), A(vo, {
58
+ "discount-code": o(X),
59
+ "onUpdate:discountCode": x[4] || (x[4] = (L) => N(X) ? X.value = L : null),
60
+ "validate-discount-code": o(Ee),
61
+ "total-price": o(P),
62
+ "show-gift-card": le.showGiftCard,
63
+ "show-terms-notice": le.showTermsNotice,
64
+ "is-sidebar-loading": o(C),
65
+ notice: o(l)("hotel.reservationNotice")
66
+ }, {
67
+ form: $(() => [
68
+ qe(le.$slots, "form", {}, void 0, !0)
79
69
  ]),
80
- "reservation-summary": w(() => [
81
- v("li", null, [
82
- v("span", null, V(l(e)("booking.reservation.arrival")), 1),
83
- v("b", null, V(l(n) ? l(ne)(l(p)) : `${l(ne)(l(p))}, ${l(a) ? l(c) : l(y)}`), 1)
70
+ "reservation-summary": $(() => [
71
+ o(ve) ? (c(), f("li", Ho, [
72
+ a("span", null, v(o(l)("general.location")), 1),
73
+ a("b", null, [
74
+ a("span", null, v(o(Me)(o(j))), 1),
75
+ We(a("span", Io, [
76
+ g(K, {
77
+ icon: "exclamation-triangle",
78
+ type: "fas"
79
+ })
80
+ ], 512), [
81
+ [Ke, o(Y)]
82
+ ])
83
+ ])
84
+ ])) : _("", !0),
85
+ a("li", null, [
86
+ a("span", null, v(o(l)("booking.reservation.arrival")), 1),
87
+ a("b", null, [
88
+ a("span", null, v(o(t) ? o(ue)(o(w)) : `${o(ue)(o(w))}, ${o(e) ? o(s) : o(r)}`), 1),
89
+ We(a("span", So, [
90
+ g(K, {
91
+ icon: "exclamation-triangle",
92
+ type: "fas"
93
+ })
94
+ ], 512), [
95
+ [Ke, o(O)]
96
+ ])
97
+ ])
84
98
  ]),
85
- v("li", null, [
86
- v("span", null, V(l(e)("booking.reservation.departure")), 1),
87
- v("b", null, V(l(n) ? l(ne)(l(m)) : `${l(ne)(l(m))}, ${l(u) ? l(h) : l(b)}`), 1)
99
+ a("li", null, [
100
+ a("span", null, v(o(l)("booking.reservation.departure")), 1),
101
+ a("b", null, [
102
+ a("span", null, v(o(t) ? o(ue)(o(H)) : `${o(ue)(o(H))}, ${o(i) ? o(m) : o(d)}`), 1),
103
+ We(a("span", Bo, [
104
+ g(K, {
105
+ icon: "exclamation-triangle",
106
+ type: "fas"
107
+ })
108
+ ], 512), [
109
+ [Ke, o(O)]
110
+ ])
111
+ ])
88
112
  ]),
89
- v("li", null, [
90
- v("span", null, V(l(e)("booking.reservation.nights")), 1),
91
- v("b", null, V(l(it)(l(p), l(m))) + " " + V(l(ko)(l(it)(l(p), l(m)) === 1 ? l(e)("booking.reservation.night") : l(e)("booking.reservation.nights"))), 1)
113
+ a("li", null, [
114
+ a("span", null, v(o(l)("booking.reservation.nights")), 1),
115
+ a("b", null, v(o(Ze)(o(w), o(H))) + " " + v(o(dt)(o(Ze)(o(w), o(H)) === 1 ? o(l)("booking.reservation.night") : o(l)("booking.reservation.nights"))), 1)
92
116
  ]),
93
- l(g) ? (E(!0), C(B, { key: 0 }, z(l(g), (D) => (E(), C("li", {
94
- key: D.id
117
+ o(b) ? (c(!0), f(E, { key: 1 }, F(o(b), (L) => (c(), f("li", {
118
+ key: L.id
95
119
  }, [
96
- v("span", null, V(`${l(e)("general.discountCode")} (${D.value})`), 1),
97
- v("b", null, V(D.key), 1)
98
- ]))), 128)) : x("", !0)
120
+ a("span", null, v(`${o(l)("general.discountCode")} (${L.value})`), 1),
121
+ a("b", null, v(L.key), 1)
122
+ ]))), 128)) : _("", !0)
99
123
  ]),
100
- "price-summary": w(() => [
101
- isNaN(l(k)) && l(s).length > 0 ? (E(!0), C(B, { key: 0 }, z(l(s), ({
102
- roomGroupID: D,
103
- title: A,
104
- variants: W
105
- }) => (E(), C("div", { key: D }, [
106
- v("h6", null, [
107
- v("span", null, V(A), 1)
124
+ "price-summary": $(() => [
125
+ isNaN(o(V)) && o(h).length > 0 ? (c(!0), f(E, { key: 0 }, F(o(h), ({
126
+ roomGroupID: L,
127
+ title: ge,
128
+ variants: Le
129
+ }) => (c(), f("div", { key: L }, [
130
+ a("h6", null, [
131
+ a("span", null, v(ge), 1)
108
132
  ]),
109
- (E(!0), C(B, null, z(W, (Z, ae) => (E(), C("div", { key: ae }, [
110
- (E(!0), C(B, null, z(Z.rooms, (U, $e) => (E(), C("ul", { key: $e }, [
111
- v("li", null, [
112
- v("span", null, [
113
- v("span", null, [
114
- qe(V(l(ce)(Z.name)) + " ( ", 1),
115
- I(J, {
133
+ (c(!0), f(E, null, F(Le, (he, Ue) => (c(), f("div", { key: Ue }, [
134
+ (c(!0), f(E, null, F(he.rooms, (ae, Re) => (c(), f("ul", { key: Re }, [
135
+ a("li", null, [
136
+ a("span", null, [
137
+ a("span", null, [
138
+ Ye(v(o(re)(he.name)) + " ( ", 1),
139
+ g(K, {
116
140
  icon: "male",
117
141
  type: "fas",
118
142
  color: "font"
119
143
  }),
120
- v("span", null, V(U.adultsCount), 1),
121
- U.childrenCount > 0 ? (E(), C(B, { key: 0 }, [
122
- I(J, {
144
+ a("span", null, v(ae.adultsCount), 1),
145
+ ae.childrenCount > 0 ? (c(), f(E, { key: 0 }, [
146
+ g(K, {
123
147
  icon: "child",
124
148
  type: "fas",
125
149
  color: "font"
126
150
  }),
127
- v("span", null, V(U.childrenCount), 1)
128
- ], 64)) : x("", !0),
129
- qe(") ")
151
+ a("span", null, v(ae.childrenCount), 1)
152
+ ], 64)) : _("", !0),
153
+ Ye(") ")
130
154
  ])
131
155
  ]),
132
- v("b", null, [
133
- v("span", null, V(l(ie)(U.totalPrice, l(d))), 1),
134
- x("", !0)
156
+ a("b", null, [
157
+ a("span", null, v(o(te)(ae.totalPrice, o(u))), 1),
158
+ _("", !0)
135
159
  ])
136
160
  ]),
137
- $(U.roomAddons) > 0 ? (E(), C("li", qo, [
138
- v("span", null, V(l(e)("booking.reservation.addons")), 1),
139
- v("b", null, V(l(ie)($(U.roomAddons), l(d))), 1)
140
- ])) : x("", !0)
161
+ ye(ae.roomAddons) > 0 ? (c(), f("li", Eo, [
162
+ a("span", null, v(o(l)("general.addons")), 1),
163
+ a("b", null, v(o(te)(ye(ae.roomAddons), o(u))), 1)
164
+ ])) : _("", !0)
141
165
  ]))), 128))
142
166
  ]))), 128))
143
- ]))), 128)) : x("", !0),
144
- l(i) && l(r) ? (E(), C("div", Uo, [
145
- v("h6", null, [
146
- v("span", null, V(l(ce)(l(r).name)), 1)
167
+ ]))), 128)) : _("", !0),
168
+ o(S) && o(B) ? (c(), f("div", Mo, [
169
+ a("h6", null, [
170
+ a("span", null, v(o(re)(o(B).name)), 1)
147
171
  ]),
148
- v("div", null, [
149
- v("ul", null, [
150
- v("li", null, [
151
- v("span", null, [
152
- v("span", null, V(l(ce)(l(i).title)), 1)
172
+ a("div", null, [
173
+ a("ul", null, [
174
+ a("li", null, [
175
+ a("span", null, [
176
+ a("span", null, v(o(re)(o(S).title)), 1)
153
177
  ]),
154
- v("b", null, [
155
- v("span", null, V(l(ie)(l(i).extraPrice, l(d))), 1)
178
+ a("b", null, [
179
+ a("span", null, v(o(te)(o(S).extraPrice, o(u))), 1)
156
180
  ])
157
- ])
181
+ ]),
182
+ o(pe) ? (c(), f("li", Lo, [
183
+ a("span", null, v(o(l)("general.addons")), 1),
184
+ a("b", null, v(o(te)(o(pe), o(u))), 1)
185
+ ])) : _("", !0)
158
186
  ])
159
187
  ])
160
- ])) : x("", !0)
188
+ ])) : _("", !0)
161
189
  ]),
162
- navigation: w(() => [
163
- we(L.$slots, "navigation")
190
+ actions: $(() => [
191
+ a("ul", Uo, [
192
+ o(p) ? _("", !0) : (c(), A(De, {
193
+ key: 0,
194
+ modelValue: o(R),
195
+ "onUpdate:modelValue": x[0] || (x[0] = (L) => N(R) ? R.value = L : null),
196
+ type: "checkbox",
197
+ name: "newsletter",
198
+ label: o(l)("booking.reservation.newsletterSignUp")
199
+ }, null, 8, ["modelValue", "label"])),
200
+ o(Be) ? (c(), A(De, {
201
+ key: 1,
202
+ modelValue: o(M),
203
+ "onUpdate:modelValue": x[2] || (x[2] = (L) => N(M) ? M.value = L : null),
204
+ type: "checkbox",
205
+ name: "terms"
206
+ }, {
207
+ default: $(() => [
208
+ g(o(ao), {
209
+ keypath: "general.termsAndConditionsCheckbox",
210
+ tag: "span",
211
+ scope: "global"
212
+ }, {
213
+ terms: $(() => [
214
+ a("a", {
215
+ class: "konnectio-accept-terms-link",
216
+ onClick: x[1] || (x[1] = we((L) => fe.value = !0, ["prevent"]))
217
+ }, [
218
+ a("span", null, v(o(dt)(o(l)("general.termsAndConditions"))), 1)
219
+ ])
220
+ ]),
221
+ _: 1
222
+ })
223
+ ]),
224
+ _: 1
225
+ }, 8, ["modelValue"])) : _("", !0),
226
+ qe(le.$slots, "actions", {}, void 0, !0),
227
+ g(wo, {
228
+ modelValue: fe.value,
229
+ "onUpdate:modelValue": x[3] || (x[3] = (L) => fe.value = L),
230
+ description: o(z)
231
+ }, null, 8, ["modelValue", "description"])
232
+ ])
164
233
  ]),
165
- _: 2
166
- }, [
167
- l(t).addons ? {
168
- name: "addons",
169
- fn: w(() => [
170
- we(L.$slots, "addons")
171
- ]),
172
- key: "0"
173
- } : void 0
174
- ]), 1032, ["total-price", "show-gift-card", "show-terms-notice", "is-sidebar-loading", "notice"]));
234
+ navigation: $(() => [
235
+ qe(le.$slots, "navigation", {}, void 0, !0)
236
+ ]),
237
+ _: 3
238
+ }, 8, ["discount-code", "validate-discount-code", "total-price", "show-gift-card", "show-terms-notice", "is-sidebar-loading", "notice"]));
175
239
  }
176
- }), Go = (o) => (_t("data-v-69fe83d8"), o = o(), Et(), o), jo = { class: "konnectio-room-config-option" }, Yo = { key: 0 }, Ko = { class: "konnectio-selected-room-config" }, Qo = { class: "konnectio-selected-room-config-people" }, Jo = { key: 0 }, Xo = { class: "konnectio-selected-room-config-price" }, Zo = /* @__PURE__ */ Go(() => /* @__PURE__ */ v("span", null, null, -1)), en = /* @__PURE__ */ j({
240
+ }), ze = /* @__PURE__ */ ce(Ro, [["__scopeId", "data-v-61664f48"]]), No = (n) => (kt("data-v-69fe83d8"), n = n(), _t(), n), Fo = { class: "konnectio-room-config-option" }, Oo = { key: 0 }, jo = { class: "konnectio-selected-room-config" }, Go = { class: "konnectio-selected-room-config-people" }, qo = { key: 0 }, Wo = { class: "konnectio-selected-room-config-price" }, Ko = /* @__PURE__ */ No(() => /* @__PURE__ */ a("span", null, null, -1)), xo = /* @__PURE__ */ Q({
177
241
  __name: "RoomConfigField",
178
242
  props: {
179
243
  modelValue: {},
@@ -183,117 +247,105 @@ const qo = { key: 0 }, Uo = { key: 1 }, He = /* @__PURE__ */ j({
183
247
  label: {}
184
248
  },
185
249
  emits: ["update:modelValue"],
186
- setup(o, { emit: e }) {
187
- const { t } = re(), { currency: n } = K(me()), a = e, u = o;
188
- function c(d) {
189
- a("update:modelValue", d);
250
+ setup(n, { emit: l }) {
251
+ const { t } = ne(), { currency: e } = Z(_e()), i = l, s = n;
252
+ function m(u) {
253
+ i("update:modelValue", u);
190
254
  }
191
- const h = q({
192
- get: () => u.modelValue,
193
- set: (d) => c(d)
255
+ const p = G({
256
+ get: () => s.modelValue,
257
+ set: (u) => m(u)
194
258
  });
195
- return (d, p) => (E(), R(Ce, {
196
- modelValue: h.value,
197
- "onUpdate:modelValue": p[0] || (p[0] = (m) => h.value = m),
198
- label: d.label,
259
+ return (u, r) => (c(), A(Ie, {
260
+ modelValue: p.value,
261
+ "onUpdate:modelValue": r[0] || (r[0] = (d) => p.value = d),
262
+ label: u.label,
199
263
  placeholder: "Select guest configuration",
200
264
  labelKey: "label",
201
265
  valueKey: "value",
202
266
  "icon-placement": "label",
203
- options: d.options,
204
- readonly: d.readonly,
205
- required: d.required,
267
+ options: u.options,
268
+ readonly: u.readonly,
269
+ required: u.required,
206
270
  searchable: !1
207
271
  }, {
208
- option: w(({ data: m }) => [
209
- v("span", jo, [
210
- v("div", null, [
211
- I(J, {
272
+ option: $(({ data: d }) => [
273
+ a("span", Fo, [
274
+ a("div", null, [
275
+ g(K, {
212
276
  icon: "male",
213
277
  type: "fas",
214
278
  color: "font"
215
279
  }),
216
- v("span", null, V(`${m.adults}`), 1),
217
- m.children > 0 ? (E(), C("span", Yo, [
218
- I(J, {
280
+ a("span", null, v(`${d.adults}`), 1),
281
+ d.children > 0 ? (c(), f("span", Oo, [
282
+ g(K, {
219
283
  icon: "child",
220
284
  type: "fas",
221
285
  color: "font"
222
286
  }),
223
- v("span", null, V(`${m.children}`), 1)
224
- ])) : x("", !0)
287
+ a("span", null, v(`${d.children}`), 1)
288
+ ])) : _("", !0)
225
289
  ]),
226
- v("span", null, V(`(${l(ie)(m.price, l(n))})`), 1)
290
+ a("span", null, v(`(${o(te)(d.price, o(e))})`), 1)
227
291
  ])
228
292
  ]),
229
- "selected-option": w(({ data: m }) => [
230
- v("div", Ko, [
231
- v("div", Qo, [
232
- v("div", null, [
233
- x("", !0),
234
- v("span", null, V(`${m.adults} ${m.adults === 1 ? l(t)("general.adult") : l(t)("general.adults")}`), 1)
293
+ "selected-option": $(({ data: d }) => [
294
+ a("div", jo, [
295
+ a("div", Go, [
296
+ a("div", null, [
297
+ _("", !0),
298
+ a("span", null, v(`${d.adults} ${d.adults === 1 ? o(t)("general.adult") : o(t)("general.adults")}`), 1)
235
299
  ]),
236
- m.children > 0 ? (E(), C("div", Jo, [
237
- x("", !0),
238
- v("span", null, V(`& ${m.children} ${m.children === 1 ? l(t)("general.child") : l(t)("general.children")}`), 1)
239
- ])) : x("", !0)
300
+ d.children > 0 ? (c(), f("div", qo, [
301
+ _("", !0),
302
+ a("span", null, v(`& ${d.children} ${d.children === 1 ? o(t)("general.child") : o(t)("general.children")}`), 1)
303
+ ])) : _("", !0)
240
304
  ]),
241
- v("div", Xo, [
242
- Zo,
243
- qe(" " + V(`(${l(ie)(m.price, l(n))})`), 1)
305
+ a("div", Wo, [
306
+ Ko,
307
+ Ye(" " + v(`(${o(te)(d.price, o(e))})`), 1)
244
308
  ])
245
309
  ])
246
310
  ]),
247
311
  _: 1
248
312
  }, 8, ["modelValue", "label", "options", "readonly", "required"]));
249
313
  }
250
- }), tn = /* @__PURE__ */ X(en, [["__scopeId", "data-v-69fe83d8"]]), on = { class: "konnectio-availability-listing-selection" }, nn = { key: 1 }, rn = { class: "fresh-booking-listing-config-body" }, sn = { class: "fresh-booking-listing-units-body" };
251
- const an = /* @__PURE__ */ j({
314
+ }), zo = /* @__PURE__ */ ce(xo, [["__scopeId", "data-v-69fe83d8"]]), Jo = { class: "konnectio-availability-listing-selection" }, Yo = { key: 1 }, Zo = { class: "konnectio-listing-config-body" }, Qo = { class: "konnectio-listing-units-body" };
315
+ const Xo = /* @__PURE__ */ Q({
252
316
  __name: "Hotel",
253
317
  props: {
254
318
  room: {},
255
319
  layout: {}
256
320
  },
257
- setup(o) {
258
- const { t: e } = re(), t = o, n = he([]);
259
- function a(r) {
260
- n.value[r].config.push({
321
+ setup(n) {
322
+ const { t: l } = ne(), t = n, e = oe([]);
323
+ function i(b) {
324
+ e.value[b].config.push({
261
325
  id: NaN,
262
326
  units: 0,
263
327
  addons: []
264
328
  });
265
329
  }
266
- const u = q(() => t.room.rates.map((r) => ({
267
- label: r.name,
268
- value: r.id
269
- }))), { hideAvailableRoomAmount: c } = K(me()), { roomSelect: h } = K(se()), { addToCart: d, removeFromCart: p } = Tt(), m = (r, g) => {
270
- var T;
271
- return (T = t.room.rates.find(($) => $.id === r)) == null ? void 0 : T.occupantRates.find(($) => $.index === g);
272
- }, y = q(() => t.room.rates.reduce(
273
- (r, g) => r < g.rackRate ? r : g.rackRate,
274
- 1 / 0
275
- )), b = q(() => t.room.rates.every((r) => r.isBreakfastIncluded === !0)), s = (r, g) => {
276
- var T;
277
- return m(r, g) ? (T = m(r, g)) == null ? void 0 : T.rooms : null;
278
- }, k = (r) => {
279
- var g;
280
- return t.room.rates.length > 0 ? ((g = t.room.rates.find((T) => T.id === r)) == null ? void 0 : g.occupantRates.map((T) => ({
281
- value: T.index,
282
- price: T.totalPrice,
283
- adults: T.adultsCount,
284
- children: T.childrenCount,
285
- hasBreakfast: T.hasBreakfast
286
- }))) || [] : [];
287
- }, _ = q(() => t.room.rates.length > 1);
288
- function f() {
289
- _.value ? n.value.push({
330
+ const s = G(() => t.room.rates.map((b) => ({
331
+ label: b.name,
332
+ value: b.id
333
+ }))), { hideAvailableRoomAmount: m } = Z(_e()), { roomSelect: p } = Z(me()), { addToCart: u, removeFromCart: r } = Vt(), d = (b, w) => t.room.rates.find((H) => H.id === b)?.occupantRates.find((H) => H.index === w), h = G(() => t.room.rates.every((b) => b.isBreakfastIncluded === !0)), V = (b, w) => d(b, w) ? d(b, w)?.rooms : null, P = (b) => t.room.rates.length > 0 ? t.room.rates.find((w) => w.id === b)?.occupantRates.map((w) => ({
334
+ value: w.index,
335
+ price: w.totalPrice,
336
+ adults: w.adultsCount,
337
+ children: w.childrenCount,
338
+ hasBreakfast: w.hasBreakfast
339
+ })) || [] : [], C = G(() => t.room.rates.length > 1);
340
+ function S() {
341
+ C.value ? e.value.push({
290
342
  id: void 0,
291
343
  config: [{
292
344
  id: t.room.rates[0].occupantRateIndex || NaN,
293
345
  units: 0,
294
346
  addons: []
295
347
  }]
296
- }) : n.value.push({
348
+ }) : e.value.push({
297
349
  id: t.room.rates[0].id,
298
350
  config: [{
299
351
  id: t.room.rates[0].occupantRateIndex || NaN,
@@ -302,141 +354,148 @@ const an = /* @__PURE__ */ j({
302
354
  }]
303
355
  });
304
356
  }
305
- Ye(() => {
306
- f();
357
+ tt(() => {
358
+ S();
307
359
  });
308
- const i = q(() => JSON.parse(JSON.stringify(n.value)));
309
- return Ee(i, (r, g) => {
310
- g.length > 0 && r.forEach((T, $) => {
311
- T.config.forEach((L, H) => {
312
- const D = L.units, A = g[$].config[H].units;
313
- D !== A && (D > A ? (n.value[$].config[H].addons.push({}), d({
360
+ const B = G(() => JSON.parse(JSON.stringify(e.value)));
361
+ return Pe(B, (b, w) => {
362
+ w.length > 0 && b.forEach((H, O) => {
363
+ H.config.forEach((j, Y) => {
364
+ const R = j.units, z = w[O].config[Y].units;
365
+ R !== z && (R > z ? (e.value[O].config[Y].addons.push({}), u({
314
366
  id: t.room.id,
315
367
  name: t.room.title,
316
- value: t.room.rates[$].rackRate
317
- })) : (n.value[$].config[H].addons.pop(), p({
368
+ value: t.room.rates[O].rackRate
369
+ })) : (e.value[O].config[Y].addons.pop(), r({
318
370
  id: t.room.id,
319
371
  name: t.room.title,
320
- value: t.room.rates[$].rackRate
372
+ value: t.room.rates[O].rackRate
321
373
  })));
322
374
  });
323
375
  });
324
- }, { deep: !0 }), Ee(n, () => {
325
- h.value[t.room.id] = n.value;
326
- }, { deep: !0 }), (r, g) => (E(), R(Ke, {
327
- "listing-id": r.room.id,
328
- gallery: r.room.images,
329
- name: r.room.title,
330
- description: r.room.description,
331
- layout: r.layout,
332
- facilities: r.room.facilities,
333
- "prices-from": y.value,
334
- "includes-breakfast": b.value
376
+ }, { deep: !0 }), Pe(e, () => {
377
+ p.value[t.room.id] = e.value;
378
+ }, { deep: !0 }), (b, w) => (c(), A(Se, {
379
+ type: "hotel",
380
+ "listing-id": b.room.id,
381
+ gallery: b.room.images,
382
+ name: b.room.title,
383
+ description: b.room.description,
384
+ layout: b.layout,
385
+ facilities: b.room.facilities,
386
+ "prices-from": b.room.pricesFrom,
387
+ "includes-breakfast": h.value
335
388
  }, {
336
- action: w(() => [
337
- v("div", on, [
338
- (E(!0), C(B, null, z(n.value, (T, $) => (E(), C("div", {
339
- key: T.id,
340
- class: "freshbooking-hotel-room"
389
+ action: $(() => [
390
+ a("div", Jo, [
391
+ (c(!0), f(E, null, F(e.value, (H, O) => (c(), f("div", {
392
+ key: H.id,
393
+ class: "konnectio-hotel-room"
341
394
  }, [
342
- _.value ? (E(), R(Ce, {
395
+ C.value ? (c(), A(Ie, {
343
396
  key: 0,
344
- modelValue: T.id,
345
- "onUpdate:modelValue": (L) => T.id = L,
346
- label: l(e)("hotel.roomVariant"),
347
- placeholder: l(e)("hotel.chooseARoomVariant"),
348
- options: u.value,
397
+ modelValue: H.id,
398
+ "onUpdate:modelValue": (j) => H.id = j,
399
+ label: o(l)("hotel.roomVariant"),
400
+ placeholder: o(l)("hotel.chooseARoomVariant"),
401
+ options: s.value,
349
402
  searchable: !1
350
- }, null, 8, ["modelValue", "onUpdate:modelValue", "label", "placeholder", "options"])) : x("", !0),
351
- T.id ? (E(), C("div", nn, [
352
- (E(!0), C(B, null, z(r.room.rates, ({
353
- id: L,
354
- maximumOccupants: H
355
- }) => (E(), C("div", {
356
- key: L,
357
- class: "booking-availability-listing-action-selective-i"
403
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "label", "placeholder", "options"])) : _("", !0),
404
+ H.id ? (c(), f("div", Yo, [
405
+ (c(!0), f(E, null, F(b.room.rates, ({
406
+ id: j,
407
+ maximumOccupants: Y
408
+ }) => (c(), f("div", {
409
+ key: j,
410
+ class: "konnectio-listing-action-selective-i"
358
411
  }, [
359
- T.id === L ? (E(!0), C(B, { key: 0 }, z(T.config, (D, A) => (E(), C("div", {
360
- key: A,
361
- class: "booking-availability-listing-action-selective"
412
+ H.id === j ? (c(!0), f(E, { key: 0 }, F(H.config, (R, z) => (c(), f("div", {
413
+ key: z,
414
+ class: "konnectio-listing-action-selective"
362
415
  }, [
363
- v("ul", rn, [
364
- I(tn, {
365
- modelValue: D.id,
366
- "onUpdate:modelValue": (W) => D.id = W,
416
+ a("ul", Zo, [
417
+ g(zo, {
418
+ modelValue: R.id,
419
+ "onUpdate:modelValue": (X) => R.id = X,
367
420
  icon: "male",
368
421
  "icon-type": "fas",
369
- label: l(e)("general.guests"),
370
- description: `${l(e)("general.maximumGuests")}: ${H}`,
371
- options: k(L),
372
- readonly: !(k(L).length > 1)
422
+ label: o(l)("general.guests"),
423
+ description: `${o(l)("general.maximumGuests")}: ${Y}`,
424
+ options: P(j),
425
+ readonly: !(P(j).length > 1)
373
426
  }, null, 8, ["modelValue", "onUpdate:modelValue", "label", "description", "options", "readonly"])
374
427
  ]),
375
- v("ul", sn, [
376
- I(It, {
377
- modelValue: D.units,
378
- "onUpdate:modelValue": (W) => D.units = W,
379
- description: l(c) ? void 0 : `${l(e)("booking.availability.availableUnits")}: ${s(T.id, D.id)}`,
428
+ a("ul", Qo, [
429
+ g(Qe, {
430
+ modelValue: R.units,
431
+ "onUpdate:modelValue": (X) => R.units = X,
432
+ description: o(m) ? void 0 : `${o(l)("booking.availability.availableUnits")}: ${V(H.id, R.id)}`,
380
433
  icon: "house",
381
434
  "icon-type": "fas",
382
435
  "icon-placement": "label",
383
- label: l(e)("booking.availability.units"),
436
+ label: o(l)("booking.availability.units"),
384
437
  minValue: 0,
385
- "max-value": s(L, D.id) || 1 / 0
438
+ "max-value": V(j, R.id) || 1 / 0
386
439
  }, null, 8, ["modelValue", "onUpdate:modelValue", "description", "label", "max-value"])
387
440
  ]),
388
- x("", !0)
389
- ]))), 128)) : x("", !0)
441
+ _("", !0)
442
+ ]))), 128)) : _("", !0)
390
443
  ]))), 128))
391
- ])) : x("", !0)
444
+ ])) : _("", !0)
392
445
  ]))), 128))
393
446
  ])
394
447
  ]),
395
448
  _: 1
396
449
  }, 8, ["listing-id", "gallery", "name", "description", "layout", "facilities", "prices-from", "includes-breakfast"]));
397
450
  }
398
- }), ln = /* @__PURE__ */ X(an, [["__scopeId", "data-v-9ea89f13"]]), un = { class: "konnectio-template-side-panel" }, dn = { class: "konnectio-template-side-panel-listings" }, cn = /* @__PURE__ */ j({
451
+ }), el = /* @__PURE__ */ ce(Xo, [["__scopeId", "data-v-54413d38"]]), tl = { class: "konnectio-template-side-panel" }, ol = { class: "konnectio-template-side-panel-listings" }, ll = /* @__PURE__ */ Q({
399
452
  __name: "Template",
400
453
  props: {
401
454
  title: {},
402
455
  templateId: {},
403
456
  roomGroups: {},
457
+ hideAddons: {},
404
458
  callback: { type: Function }
405
459
  },
406
- setup(o) {
407
- const { t: e } = re(), { templateID: t, roomGroupID: n } = K(se()), { currency: a } = K(me()), { clearRoomSelection: u } = se(), c = o;
408
- function h(d) {
409
- t.value = c.templateId, n.value = d, u(), c.callback(2);
460
+ setup(n) {
461
+ const { t: l } = ne(), { templateID: t, roomGroupID: e, selectionHasNoAddons: i } = Z(me()), { currency: s } = Z(_e()), { clearRoomSelection: m } = me(), p = n, u = oe(!0), r = G(() => {
462
+ function h(V, P) {
463
+ return u.value === !0 ? V.extraPrice > P.extraPrice ? -1 : 1 : V.extraPrice > P.extraPrice ? 1 : -1;
464
+ }
465
+ return p.roomGroups?.slice().sort(h);
466
+ });
467
+ function d(h) {
468
+ t.value = p.templateId, e.value = h, m(), p.hideAddons === "yes" || i.value ? p.callback(2) : p.callback(1);
410
469
  }
411
- return (d, p) => (E(), R(Ho, {
412
- title: d.title,
413
- subtitle: l(e)("booking.availability.selectATemplateRoom")
470
+ return (h, V) => (c(), A(Po, {
471
+ title: h.title,
472
+ subtitle: o(l)("booking.availability.selectATemplateRoom")
414
473
  }, {
415
- default: w(() => [
416
- v("div", un, [
417
- v("div", dn, [
418
- (E(!0), C(B, null, z(d.roomGroups, ({
419
- id: m,
420
- title: y,
421
- description: b,
422
- images: s,
423
- facilities: k,
424
- extraPrice: _
425
- }) => (E(), R(Ke, {
426
- key: m,
427
- "listing-id": m,
428
- name: y,
429
- description: b,
430
- facilities: k,
431
- gallery: s,
474
+ default: $(() => [
475
+ a("div", tl, [
476
+ a("div", ol, [
477
+ (c(!0), f(E, null, F(r.value, ({
478
+ id: P,
479
+ title: C,
480
+ description: S,
481
+ images: B,
482
+ facilities: b,
483
+ extraPrice: w
484
+ }) => (c(), A(Se, {
485
+ key: P,
486
+ "listing-id": P,
487
+ name: C,
488
+ description: S,
489
+ facilities: b,
490
+ gallery: B,
432
491
  "includes-breakfast": !1,
433
492
  "hide-info-button": !0
434
493
  }, {
435
- action: w(() => [
436
- v("div", null, [
437
- I(de, {
438
- onClickEvent: (f) => h(m),
439
- label: `${l(e)("booking.availability.selectThisRoom")} (${l(ie)(_, l(a))})`,
494
+ action: $(() => [
495
+ a("div", null, [
496
+ g(de, {
497
+ onClickEvent: (H) => d(P),
498
+ label: `${o(l)("booking.availability.selectThisRoom")} (${o(te)(w, o(s))})`,
440
499
  "full-width": ""
441
500
  }, null, 8, ["onClickEvent", "label"])
442
501
  ])
@@ -449,7 +508,7 @@ const an = /* @__PURE__ */ j({
449
508
  _: 1
450
509
  }, 8, ["title", "subtitle"]));
451
510
  }
452
- }), pn = /* @__PURE__ */ X(cn, [["__scopeId", "data-v-4c035ea3"]]), hn = ["innerHTML"], fn = /* @__PURE__ */ j({
511
+ }), wt = /* @__PURE__ */ ce(ll, [["__scopeId", "data-v-35a96ba4"]]), nl = ["innerHTML"], al = { class: "konnectio-template-select-package" }, il = /* @__PURE__ */ Q({
453
512
  __name: "Template",
454
513
  props: {
455
514
  id: {},
@@ -458,63 +517,152 @@ const an = /* @__PURE__ */ j({
458
517
  name: {},
459
518
  image: {},
460
519
  roomGroups: {},
520
+ hideAddons: {},
461
521
  callback: { type: Function }
462
522
  },
463
- setup(o) {
464
- const { t: e } = re(), t = o, n = q(() => t.roomGroups.reduce(
465
- (d, p) => d < p.extraPrice ? d : p.extraPrice,
523
+ setup(n) {
524
+ const { t: l } = ne(), t = n, e = G(() => t.roomGroups.reduce(
525
+ (u, r) => u < r.extraPrice ? u : r.extraPrice,
466
526
  1 / 0
467
- )), a = q(() => [{
468
- large: t.image.url,
469
- medium: t.image.url,
470
- thumb: t.image.url,
471
- url: t.image.url
472
- }]), u = he(!1);
473
- function c() {
474
- u.value = !0;
527
+ )), i = G(() => {
528
+ if (t.image)
529
+ return [{
530
+ large: t.image.url,
531
+ medium: t.image.url,
532
+ thumb: t.image.url,
533
+ url: t.image.url
534
+ }];
535
+ }), s = oe(!1);
536
+ function m() {
537
+ s.value = !0;
538
+ }
539
+ function p(u) {
540
+ t.callback(u), s.value = !1;
541
+ }
542
+ return (u, r) => (c(), A(Se, {
543
+ type: "template",
544
+ "listing-id": u.id,
545
+ name: u.name,
546
+ description: u.description,
547
+ gallery: i.value,
548
+ layout: o($t).Template,
549
+ "includes-breakfast": !1,
550
+ "hide-info-button": !1,
551
+ "prices-from": e.value
552
+ }, {
553
+ description: $(() => [
554
+ u.description ? (c(), f("p", {
555
+ key: 0,
556
+ innerHTML: o(Tt)(u.description)
557
+ }, null, 8, nl)) : _("", !0)
558
+ ]),
559
+ action: $(() => [
560
+ a("div", al, [
561
+ g(de, {
562
+ onClickEvent: m,
563
+ label: o(l)("booking.availability.selectPackage"),
564
+ "full-width": ""
565
+ }, null, 8, ["label"])
566
+ ])
567
+ ]),
568
+ default: $(() => [
569
+ g(wt, {
570
+ modelValue: s.value,
571
+ "onUpdate:modelValue": r[0] || (r[0] = (d) => s.value = d),
572
+ title: u.name,
573
+ "template-id": u.id,
574
+ "room-groups": u.roomGroups,
575
+ "hide-addons": u.hideAddons,
576
+ callback: p
577
+ }, null, 8, ["modelValue", "title", "template-id", "room-groups", "hide-addons"])
578
+ ]),
579
+ _: 1
580
+ }, 8, ["listing-id", "name", "description", "gallery", "layout", "prices-from"]));
581
+ }
582
+ }), sl = ["innerHTML"], rl = { class: "konnectio-special-offer-availability" }, dl = { class: "konnectio-special-offer-availability-button" }, ul = /* @__PURE__ */ Q({
583
+ __name: "SpecialOffer",
584
+ props: {
585
+ id: {},
586
+ weekendFee: {},
587
+ description: {},
588
+ name: {},
589
+ toDate: {},
590
+ fromDate: {},
591
+ image: {},
592
+ roomGroups: {},
593
+ callback: { type: Function }
594
+ },
595
+ setup(n) {
596
+ const { t: l } = ne(), { updateDates: t } = ke(), e = n, i = oe([]), s = G(() => Ze(e.fromDate, e.toDate) === 1), m = G(() => [{
597
+ large: e.image.url,
598
+ medium: e.image.url,
599
+ thumb: e.image.url,
600
+ url: e.image.url
601
+ }]), p = oe(!1);
602
+ function u(d) {
603
+ e.callback(d), p.value = !1;
475
604
  }
476
- function h(d) {
477
- t.callback(d), u.value = !1;
605
+ function r() {
606
+ t(i.value[0], i.value[1]);
478
607
  }
479
- return (d, p) => (E(), R(Ke, {
608
+ return tt(() => {
609
+ s.value && (i.value = [new Date(e.fromDate), new Date(e.toDate)]);
610
+ }), (d, h) => (c(), A(Se, {
611
+ type: "template",
480
612
  "listing-id": d.id,
481
613
  name: d.name,
482
614
  description: d.description,
483
- gallery: a.value,
484
- layout: l(Eo).Template,
615
+ gallery: m.value,
616
+ layout: o($t).Template,
485
617
  "includes-breakfast": !1,
486
618
  "hide-info-button": !1,
487
- "prices-from": n.value
619
+ "to-date": d.toDate,
620
+ "from-date": d.fromDate
488
621
  }, {
489
- description: w(() => [
490
- d.description ? (E(), C("p", {
622
+ description: $(() => [
623
+ d.description ? (c(), f("p", {
491
624
  key: 0,
492
- innerHTML: l(_o)(d.description)
493
- }, null, 8, hn)) : x("", !0)
625
+ innerHTML: o(Tt)(d.description)
626
+ }, null, 8, sl)) : _("", !0)
494
627
  ]),
495
- action: w(() => [
496
- v("div", null, [
497
- I(de, {
498
- onClickEvent: c,
499
- label: l(e)("booking.availability.selectPackage"),
500
- "full-width": ""
501
- }, null, 8, ["label"])
628
+ action: $(() => [
629
+ a("div", rl, [
630
+ g(Ct, {
631
+ modelValue: i.value,
632
+ "onUpdate:modelValue": h[0] || (h[0] = (V) => i.value = V),
633
+ label: o(l)("availability.checkInOut"),
634
+ placeholder: o(l)("booking.availability.selectDates"),
635
+ "icon-type": "fas",
636
+ "icon-placement": "label",
637
+ "min-range": 1,
638
+ "start-date": new Date(d.fromDate),
639
+ "min-date": new Date(d.fromDate),
640
+ "max-date": new Date(d.toDate),
641
+ readonly: s.value,
642
+ range: ""
643
+ }, null, 8, ["modelValue", "label", "placeholder", "start-date", "min-date", "max-date", "readonly"]),
644
+ a("div", dl, [
645
+ g(de, {
646
+ label: o(l)("availability.buttonLabel"),
647
+ onClick: we(r, ["prevent"])
648
+ }, null, 8, ["label"])
649
+ ])
502
650
  ])
503
651
  ]),
504
- default: w(() => [
505
- I(pn, {
506
- modelValue: u.value,
507
- "onUpdate:modelValue": p[0] || (p[0] = (m) => u.value = m),
652
+ default: $(() => [
653
+ g(wt, {
654
+ modelValue: p.value,
655
+ "onUpdate:modelValue": h[1] || (h[1] = (V) => p.value = V),
508
656
  title: d.name,
509
657
  "template-id": d.id,
510
658
  roomGroups: d.roomGroups,
511
- callback: h
659
+ callback: u
512
660
  }, null, 8, ["modelValue", "title", "template-id", "roomGroups"])
513
661
  ]),
514
662
  _: 1
515
- }, 8, ["listing-id", "name", "description", "gallery", "layout", "prices-from"]));
663
+ }, 8, ["listing-id", "name", "description", "gallery", "layout", "to-date", "from-date"]));
516
664
  }
517
- }), mn = /* @__PURE__ */ X(fn, [["__scopeId", "data-v-edc2f058"]]), at = /* @__PURE__ */ j({
665
+ }), mt = /* @__PURE__ */ Q({
518
666
  __name: "TimeField",
519
667
  props: {
520
668
  modelValue: {},
@@ -538,30 +686,30 @@ const an = /* @__PURE__ */ j({
538
686
  inputStyle: {}
539
687
  },
540
688
  emits: ["update:modelValue"],
541
- setup(o, { emit: e }) {
542
- const t = e, n = o;
543
- function a(c) {
544
- t("update:modelValue", c);
689
+ setup(n, { emit: l }) {
690
+ const t = l, e = n;
691
+ function i(m) {
692
+ t("update:modelValue", m);
545
693
  }
546
- const u = he(n.modelValue);
547
- return Ee(u, (c) => {
548
- a(c);
549
- }), (c, h) => (E(), R(Wo, {
550
- modelValue: u.value,
551
- "onUpdate:modelValue": h[0] || (h[0] = (d) => u.value = d),
694
+ const s = oe(e.modelValue);
695
+ return Pe(s, (m) => {
696
+ i(m);
697
+ }), (m, p) => (c(), A(Ct, {
698
+ modelValue: s.value,
699
+ "onUpdate:modelValue": p[0] || (p[0] = (u) => s.value = u),
552
700
  type: "time",
553
- label: c.label,
554
- id: c.id,
555
- name: c.name,
556
- icon: c.icon,
557
- "icon-type": c.iconType,
558
- "icon-color": c.iconColor,
701
+ label: m.label,
702
+ id: m.id,
703
+ name: m.name,
704
+ icon: m.icon,
705
+ "icon-type": m.iconType,
706
+ "icon-color": m.iconColor,
559
707
  "auto-apply": !0,
560
- required: c.required,
561
- readonly: c.readonly
708
+ required: m.required,
709
+ readonly: m.readonly
562
710
  }, null, 8, ["modelValue", "label", "id", "name", "icon", "icon-type", "icon-color", "required", "readonly"]));
563
711
  }
564
- }), gn = { style: { display: "flex", "align-items": "baseline" } }, vn = /* @__PURE__ */ j({
712
+ }), cl = { style: { display: "flex", "align-items": "baseline" } }, pl = /* @__PURE__ */ Q({
565
713
  __name: "CountryField",
566
714
  props: {
567
715
  modelValue: {},
@@ -572,82 +720,43 @@ const an = /* @__PURE__ */ j({
572
720
  placeholder: {}
573
721
  },
574
722
  emits: ["update:modelValue"],
575
- setup(o, { emit: e }) {
576
- const { t } = re(), n = e, a = o;
577
- function u(h) {
578
- n("update:modelValue", h);
723
+ setup(n, { emit: l }) {
724
+ const { t } = ne(), e = l, i = n;
725
+ function s(p) {
726
+ e("update:modelValue", p);
579
727
  }
580
- const c = q({
581
- get: () => a.modelValue,
582
- set: (h) => u(h)
728
+ const m = G({
729
+ get: () => i.modelValue,
730
+ set: (p) => s(p)
583
731
  });
584
- return (h, d) => (E(), R(Ce, {
585
- modelValue: c.value,
586
- "onUpdate:modelValue": d[0] || (d[0] = (p) => c.value = p),
587
- label: h.label,
588
- placeholder: l(t)("booking.reservation.countryPlaceholder"),
732
+ return (p, u) => (c(), A(Ie, {
733
+ modelValue: m.value,
734
+ "onUpdate:modelValue": u[0] || (u[0] = (r) => m.value = r),
735
+ label: p.label,
736
+ placeholder: o(t)("booking.reservation.countryPlaceholder"),
589
737
  labelKey: "name",
590
738
  valueKey: "id",
591
- options: h.options,
592
- required: h.required
739
+ options: p.options,
740
+ required: p.required
593
741
  }, {
594
- option: w(({ data: p }) => [
595
- v("i", {
596
- class: Te(["konnectio-flag-icon", p.iso])
742
+ option: $(({ data: r }) => [
743
+ a("i", {
744
+ class: Ae(["konnectio-flag-icon", r.iso])
597
745
  }, null, 2),
598
- v("span", null, V(p.name), 1)
746
+ a("span", null, v(r.name), 1)
599
747
  ]),
600
- "selected-option": w(({ data: p }) => [
601
- v("div", gn, [
602
- v("i", {
603
- class: Te(["konnectio-flag-icon", p.iso])
748
+ "selected-option": $(({ data: r }) => [
749
+ a("div", cl, [
750
+ a("i", {
751
+ class: Ae(["konnectio-flag-icon", r.iso])
604
752
  }, null, 2),
605
- v("span", null, V(p.name), 1)
753
+ a("span", null, v(r.name), 1)
606
754
  ])
607
755
  ]),
608
756
  _: 1
609
757
  }, 8, ["modelValue", "label", "placeholder", "options", "required"]));
610
758
  }
611
- }), yn = /* @__PURE__ */ X(vn, [["__scopeId", "data-v-1462612d"]]), bn = { class: "konnectio-radio-checkboxes" }, kn = /* @__PURE__ */ j({
612
- __name: "CheckboxField",
613
- props: {
614
- modelValue: {},
615
- label: {},
616
- name: {},
617
- checkboxes: {}
618
- },
619
- emits: ["update:modelValue"],
620
- setup(o, { emit: e }) {
621
- const t = e, n = o;
622
- function a(c) {
623
- t("update:modelValue", c);
624
- }
625
- const u = q({
626
- get: () => n.modelValue,
627
- set: (c) => a(c)
628
- });
629
- return (c, h) => (E(), R(Ct, {
630
- label: c.label,
631
- type: "multi-radio"
632
- }, {
633
- default: w(() => [
634
- v("ul", bn, [
635
- (E(!0), C(B, null, z(c.checkboxes, ({ label: d, value: p }, m) => (E(), C("li", { key: m }, [
636
- I(Ue, {
637
- modelValue: u.value,
638
- "onUpdate:modelValue": h[0] || (h[0] = (y) => u.value = y),
639
- label: d,
640
- name: c.name,
641
- type: "radio",
642
- val: p
643
- }, null, 8, ["modelValue", "label", "name", "val"])
644
- ]))), 128))
645
- ])
646
- ]),
647
- _: 1
648
- }, 8, ["label"]));
649
- }
650
- }), _n = /* @__PURE__ */ X(kn, [["__scopeId", "data-v-d8d42a8a"]]), En = /* @__PURE__ */ j({
759
+ }), ml = /* @__PURE__ */ ce(pl, [["__scopeId", "data-v-1462612d"]]), fl = /* @__PURE__ */ Q({
651
760
  __name: "NameField",
652
761
  props: {
653
762
  modelValue: {},
@@ -668,252 +777,236 @@ const an = /* @__PURE__ */ j({
668
777
  excludeTitle: { type: Boolean, default: !1 }
669
778
  },
670
779
  emits: ["update:modelValue", "update:title"],
671
- setup(o, { emit: e }) {
672
- const t = o, n = e, a = t.id || rt(), u = he(""), c = he(2);
673
- function h() {
674
- n("update:modelValue", u.value);
780
+ setup(n, { emit: l }) {
781
+ const t = n, e = l, i = t.id || ut(), s = oe(""), m = oe(2);
782
+ function p() {
783
+ e("update:modelValue", s.value);
675
784
  }
676
- Ee(c, (p) => {
677
- n("update:title", p);
785
+ Pe(m, (r) => {
786
+ e("update:title", r);
678
787
  });
679
- const { t: d } = re();
680
- return Ye(() => {
681
- t.modelValue && (u.value = t.modelValue), t.title && (c.value = t.title);
682
- }), (p, m) => (E(), R(Ct, {
683
- label: p.label,
684
- id: l(a),
685
- required: p.required,
788
+ const { t: u } = ne();
789
+ return tt(() => {
790
+ t.modelValue && (s.value = t.modelValue), t.title && (m.value = t.title);
791
+ }), (r, d) => (c(), A(uo, {
792
+ label: r.label,
793
+ id: o(i),
794
+ required: r.required,
686
795
  type: "fresh-booking-name-field",
687
- readonly: p.readonly,
688
- limit: p.limit
796
+ readonly: r.readonly,
797
+ limit: r.limit
689
798
  }, {
690
- default: w(() => [
691
- v("div", {
692
- class: Te([
799
+ default: $(() => [
800
+ a("div", {
801
+ class: Ae([
693
802
  "fresh-booking-name-input",
694
- { "no-title": p.excludeTitle }
803
+ { "no-title": r.excludeTitle }
695
804
  ])
696
805
  }, [
697
- p.excludeTitle ? x("", !0) : (E(), R(Ce, {
806
+ r.excludeTitle ? _("", !0) : (c(), A(Ie, {
698
807
  key: 0,
699
- modelValue: c.value,
700
- "onUpdate:modelValue": m[0] || (m[0] = (y) => c.value = y),
701
- id: l(rt)(),
702
- icon: p.icon,
703
- "icon-color": p.iconColor,
704
- "icon-type": p.iconType,
808
+ modelValue: m.value,
809
+ "onUpdate:modelValue": d[0] || (d[0] = (h) => m.value = h),
810
+ id: o(ut)(),
811
+ icon: r.icon,
812
+ "icon-color": r.iconColor,
813
+ "icon-type": r.iconType,
705
814
  options: [
706
815
  {
707
- label: l(d)("booking.reservation.noNameTitle"),
816
+ label: o(u)("booking.reservation.noNameTitle"),
708
817
  value: 1
709
818
  },
710
819
  {
711
- label: l(d)("booking.reservation.nameTitleMr"),
820
+ label: o(u)("booking.reservation.nameTitleMr"),
712
821
  value: 2
713
822
  },
714
823
  {
715
- label: l(d)("booking.reservation.nameTitleMs"),
824
+ label: o(u)("booking.reservation.nameTitleMs"),
716
825
  value: 3
717
826
  },
718
827
  {
719
- label: l(d)("booking.reservation.nameTitleMrs"),
828
+ label: o(u)("booking.reservation.nameTitleMrs"),
720
829
  value: 4
721
830
  },
722
831
  {
723
- label: l(d)("booking.reservation.nameTitleDr"),
832
+ label: o(u)("booking.reservation.nameTitleDr"),
724
833
  value: 5
725
834
  }
726
835
  ],
727
- readonly: p.readonly,
836
+ readonly: r.readonly,
728
837
  "hide-button": "",
729
- "input-style": p.inputStyle,
838
+ "input-style": r.inputStyle,
730
839
  searchable: !1
731
840
  }, null, 8, ["modelValue", "id", "icon", "icon-color", "icon-type", "options", "readonly", "input-style"])),
732
- I(oe, {
733
- modelValue: u.value,
734
- "onUpdate:modelValue": m[1] || (m[1] = (y) => u.value = y),
841
+ g(se, {
842
+ modelValue: s.value,
843
+ "onUpdate:modelValue": d[1] || (d[1] = (h) => s.value = h),
735
844
  type: "text",
736
845
  name: "name",
737
846
  autocomplete: "name",
738
- id: l(a),
739
- icon: p.excludeTitle ? p.icon : void 0,
740
- "icon-color": p.iconColor,
741
- "icon-type": p.iconType,
742
- placeholder: p.placeholder,
743
- required: p.required,
744
- readonly: p.readonly,
745
- limit: p.limit,
746
- onInput: m[2] || (m[2] = (y) => h()),
747
- "input-style": p.inputStyle
847
+ id: o(i),
848
+ icon: r.excludeTitle ? r.icon : void 0,
849
+ "icon-color": r.iconColor,
850
+ "icon-type": r.iconType,
851
+ placeholder: r.placeholder,
852
+ required: r.required,
853
+ readonly: r.readonly,
854
+ limit: r.limit,
855
+ onInput: d[2] || (d[2] = (h) => p()),
856
+ "input-style": r.inputStyle
748
857
  }, null, 8, ["modelValue", "id", "icon", "icon-color", "icon-type", "placeholder", "required", "readonly", "limit", "input-style"])
749
858
  ], 2)
750
859
  ]),
751
860
  _: 1
752
861
  }, 8, ["label", "id", "required", "readonly", "limit"]));
753
862
  }
754
- }), Tn = /* @__PURE__ */ X(En, [["__scopeId", "data-v-78b0b319"]]), In = { class: "hotel-listing" }, Cn = { class: "hotel-listing-content-gallery" }, $n = { class: "hotel-listing-content-thumbs" }, Sn = { class: "hotel-listing-content" }, Vn = { class: "hotel-listing-content-header" }, Ln = { class: "hotel-listing-content-title" }, Pn = { class: "hotel-listing-content-body" }, xn = { class: "hotel-listing-content-facilities" }, wn = /* @__PURE__ */ j({
755
- __name: "Listing",
756
- setup(o) {
757
- return (e, t) => (E(), C("div", In, [
758
- v("div", Cn, [
759
- I(Y, {
760
- width: "280px",
761
- height: "153px"
762
- }),
763
- v("div", $n, [
764
- (E(), C(B, null, z(3, (n) => I(Y, {
765
- key: n,
766
- width: "84px",
767
- height: "44px"
768
- })), 64))
769
- ])
770
- ]),
771
- v("div", Sn, [
772
- v("div", Vn, [
773
- v("div", Ln, [
774
- I(Y, {
775
- height: "30px",
776
- width: "60%"
777
- }),
778
- I(Y, {
779
- height: "30px",
780
- width: "30px",
781
- "border-radius": "100%"
782
- })
783
- ]),
784
- I(Y, {
785
- height: "15px",
786
- width: "25%"
787
- })
788
- ]),
789
- v("div", Pn, [
790
- I(Y, { height: "15px" }),
791
- I(Y, { height: "15px" }),
792
- I(Y, { height: "15px" }),
793
- I(Y, { height: "15px" }),
794
- I(Y, {
795
- height: "15px",
796
- width: "90%"
797
- })
798
- ]),
799
- v("div", xn, [
800
- (E(), C(B, null, z(5, (n) => I(Y, {
801
- key: n,
802
- height: "25px",
803
- width: "25px",
804
- "border-radius": "6px"
805
- })), 64))
806
- ])
807
- ])
808
- ]));
809
- }
810
- }), pe = /* @__PURE__ */ X(wn, [["__scopeId", "data-v-c7574b59"]]), Hn = { class: "hotel-skeleton" }, On = { class: "hotel-skeleton-content" }, Dn = { class: "hotel-skeleton-sidebar" }, An = /* @__PURE__ */ j({
863
+ }), hl = /* @__PURE__ */ ce(fl, [["__scopeId", "data-v-78b0b319"]]), vl = { class: "hotel-skeleton" }, yl = { class: "hotel-skeleton-content" }, gl = { class: "hotel-skeleton-sidebar" }, bl = /* @__PURE__ */ Q({
811
864
  __name: "HotelSkeleton",
812
- setup(o) {
813
- return (e, t) => (E(), C("div", Hn, [
814
- v("div", On, [
815
- I(Bo, { hotel: "" }),
816
- I(pe),
817
- I(pe),
818
- I(pe)
865
+ setup(n) {
866
+ return (l, t) => (c(), f("div", vl, [
867
+ a("div", yl, [
868
+ g($o, { hotel: "" }),
869
+ g(yo)
819
870
  ]),
820
- v("div", Dn, [
821
- I(Oo)
871
+ a("div", gl, [
872
+ g(go)
822
873
  ])
823
874
  ]));
824
875
  }
825
- }), Mn = /* @__PURE__ */ X(An, [["__scopeId", "data-v-49e83cbb"]]), Rn = (o) => (_t("data-v-fd9b6d4f"), o = o(), Et(), o), Bn = { id: "booking-availability-container" }, zn = { id: "booking-availability-controls" };
826
- const Wn = { key: 1 }, Nn = { key: 0 }, Fn = {
876
+ }), kl = /* @__PURE__ */ ce(bl, [["__scopeId", "data-v-1bb21da4"]]), ot = (n) => (kt("data-v-046ea616"), n = n(), _t(), n), _l = { id: "booking-availability-container" }, Vl = { id: "booking-availability-controls" };
877
+ const Tl = { key: 1 }, $l = { key: 0 }, Cl = {
827
878
  key: 0,
828
879
  id: "booking-availability-packages"
829
- }, qn = {
880
+ }, wl = {
830
881
  key: 0,
831
882
  class: "konnectio-hotel-availability-title"
832
- }, Un = { id: "booking-availability-packages-wrapper" }, Gn = { key: 1 }, jn = {
883
+ }, Pl = { id: "booking-availability-packages-wrapper" }, Al = { key: 1 }, Dl = {
833
884
  key: 0,
834
885
  class: "konnectio-hotel-availability-title"
835
- }, Yn = { id: "booking-availability-listings" }, Kn = {
886
+ }, Hl = { id: "konnectio-listings" }, Il = {
836
887
  key: 2,
888
+ id: "booking-availability-packages"
889
+ }, Sl = { class: "konnectio-hotel-availability-title" }, Bl = { id: "booking-availability-packages-wrapper" }, El = {
890
+ key: 3,
837
891
  id: "booking-availability-no-listings",
838
- class: "fresh-booking-panel"
839
- }, Qn = {
892
+ class: "konnectio-panel"
893
+ }, Ml = {
840
894
  key: 1,
841
895
  id: "booking-availability-no-listings"
842
- }, Jn = {
896
+ }, Ll = {
843
897
  key: 2,
844
898
  id: "reservation-availability-next-dates"
845
- }, Xn = { class: "konnectio-hotel-availability-title" }, Zn = { class: "reservation-special-offers-grid" }, ei = ["title"];
846
- const ti = {
899
+ }, Ul = { class: "konnectio-hotel-availability-title" }, Rl = { class: "reservation-special-offers-grid" }, Nl = ["title"];
900
+ const Fl = {
847
901
  key: 2,
848
902
  class: "konnectio-listing-loading"
849
- }, oi = { class: "fresh-booking-panel" }, ni = {
903
+ }, Ol = { class: "konnectio-panel" }, jl = {
850
904
  key: 0,
851
905
  id: "konnectio-hotel-addons"
852
906
  };
853
- const ii = { class: "fresh-booking-event-addons-price" }, ri = { key: 1 }, si = /* @__PURE__ */ Rn(() => /* @__PURE__ */ v("br", null, null, -1)), ai = ["onClick"], li = { class: "fresh-booking-panel" }, ui = { key: 0 }, di = { key: 1 }, ci = { class: "fresh-booking-split-inputs" }, pi = ["onClick"], hi = /* @__PURE__ */ j({
907
+ const Gl = { class: "konnectio-event-addons-price" }, ql = { key: 1 }, Wl = /* @__PURE__ */ ot(() => /* @__PURE__ */ a("br", null, null, -1)), Kl = { class: "konnectio-hotel-addons-option" }, xl = {
908
+ key: 1,
909
+ id: "konnectio-hotel-addons"
910
+ }, zl = { class: "konnectio-table with-lines" };
911
+ const Jl = /* @__PURE__ */ ot(() => /* @__PURE__ */ a("th", { class: "konnectio-event-addons-price" }, null, -1)), Yl = /* @__PURE__ */ ot(() => /* @__PURE__ */ a("br", null, null, -1)), Zl = { class: "konnectio-hotel-addons-option" }, Ql = ["onClick"], Xl = { class: "konnectio-panel" }, en = { key: 0 }, tn = { key: 1 }, on = { class: "konnectio-split-inputs" }, ln = ["onClick"], nn = /* @__PURE__ */ Q({
854
912
  name: "HotelLayout",
855
913
  __name: "Hotel",
856
914
  props: {
857
915
  accessToken: {},
858
- headerLayout: { default: To.Minimal },
916
+ headerLayout: { default: co.Minimal },
859
917
  onlyShow: { default: "everything" },
918
+ hideAddons: { default: "no" },
919
+ selectedLocation: {},
860
920
  styling: {}
861
921
  },
862
- setup(o) {
863
- const { t: e } = re(), {
864
- templateID: t,
865
- countries: n,
866
- areListingsLoading: a,
922
+ setup(n) {
923
+ const l = to(() => import("./_-BXd9hTZB.js")), t = n, { t: e } = ne(), {
924
+ templateID: i,
925
+ templateAddons: s,
926
+ countries: m,
927
+ areListingsLoading: p,
867
928
  isPaymentLoading: u,
868
- isReservationFormFilled: c,
869
- travelingFor: h,
870
- arrivalTime: d,
871
- departureTime: p,
872
- name: m,
873
- nameTitle: y,
874
- email: b,
875
- phone: s,
876
- firmName: k,
877
- postal: _,
878
- city: f,
879
- address: i,
880
- country: r,
881
- remark: g,
882
- allergies: T,
883
- newsMails: $,
884
- roomSelect: L,
885
- roomDisplay: H,
886
- hasValidRoomSelection: D,
887
- availabilityData: A,
888
- selectionHasNoAddons: W
889
- } = K(se()), {
890
- arrivalDate: Z,
891
- departureDate: ae
892
- } = K(kt()), {
893
- currency: U,
894
- disableNewsletterSignup: $e,
895
- arrivalEarliest: Ze,
896
- arrivalLatest: Mt,
897
- departureEarliest: Rt,
898
- departureLatest: Bt,
899
- enableTracking: zt,
900
- arrivalDefault: Wt,
901
- departureDefault: Nt,
902
- hideArrivalDepartureInputs: Ft,
903
- disableArrivalUserSelection: Se,
904
- disableNamePrefix: qt,
905
- disableDepartureUserSelection: Ve,
906
- disableTravelingFor: Ut,
907
- disableTravelingForBleasure: Gt,
908
- disableCompanyField: jt,
909
- hasPaymentGateway: Yt
910
- } = K(me()), { beginCheckout: Kt } = Tt(), {
911
- initialize: Qt,
912
- resetTemplate: Jt,
913
- resetDiscountVoucher: Xt,
914
- createReservation: Zt
915
- } = se(), eo = he(!0), to = q(() => {
916
- const O = [
929
+ isReservationFormFilled: r,
930
+ travelingFor: d,
931
+ arrivalTime: h,
932
+ departureTime: V,
933
+ name: P,
934
+ nameTitle: C,
935
+ email: S,
936
+ phone: B,
937
+ firmName: b,
938
+ postal: w,
939
+ city: H,
940
+ address: O,
941
+ country: j,
942
+ remark: Y,
943
+ allergies: R,
944
+ roomSelect: z,
945
+ roomDisplay: X,
946
+ hasValidRoomSelection: Be,
947
+ availabilityData: M,
948
+ selectionHasNoAddons: pe,
949
+ isAvailabilityDataAvailable: ve,
950
+ getSelectedPackageRoom: Ve,
951
+ selectedPackage: Ee,
952
+ isSearchOutdated: Me
953
+ } = Z(me()), {
954
+ adults: fe,
955
+ children: ye,
956
+ location: le,
957
+ arrivalDate: x,
958
+ departureDate: L
959
+ } = Z(ke()), { isValidHotelId: ge, updateDates: Le } = ke(), {
960
+ currency: he,
961
+ arrivalEarliest: Ue,
962
+ arrivalLatest: ae,
963
+ departureEarliest: Re,
964
+ departureLatest: nt,
965
+ enableTracking: It,
966
+ hideArrivalDepartureInputs: St,
967
+ disableArrivalUserSelection: Ne,
968
+ disableNamePrefix: Bt,
969
+ disableDepartureUserSelection: Fe,
970
+ disableTravelingFor: Et,
971
+ disableTravelingForBleasure: Mt,
972
+ disableCompanyField: Lt,
973
+ hasPaymentGateway: Ut,
974
+ maxAdultAmount: at,
975
+ maxChildAmount: it
976
+ } = Z(_e()), { beginCheckout: Rt } = Vt(), { display: Oe } = po(), {
977
+ resetTemplate: Nt,
978
+ resetDiscountVoucher: Ft,
979
+ createReservation: Ot,
980
+ fetchMetadata: jt,
981
+ fetchAvailabilityData: st
982
+ } = me(), Gt = oe(!0), qt = [
983
+ {
984
+ id: "availability",
985
+ label: e("booking.availability.title"),
986
+ icon: "search"
987
+ },
988
+ {
989
+ id: "addons",
990
+ label: e("booking.reservation.title"),
991
+ icon: "concierge-bell",
992
+ hidden: pe.value
993
+ },
994
+ {
995
+ id: "reservation",
996
+ label: e("booking.reservation.title"),
997
+ icon: "concierge-bell"
998
+ },
999
+ {
1000
+ id: "payment",
1001
+ hidden: !0
1002
+ },
1003
+ {
1004
+ id: "confirmation",
1005
+ label: e("booking.confirmation.title"),
1006
+ icon: "calendar-check"
1007
+ }
1008
+ ], Wt = G(() => {
1009
+ const k = [
917
1010
  {
918
1011
  label: e("booking.reservation.business"),
919
1012
  value: "Business"
@@ -923,469 +1016,561 @@ const ii = { class: "fresh-booking-event-addons-price" }, ri = { key: 1 }, si =
923
1016
  value: "Pleasure"
924
1017
  }
925
1018
  ];
926
- return Gt.value || O.push({
1019
+ return Mt.value || k.push({
927
1020
  label: e("booking.reservation.bleasure"),
928
1021
  value: "Bleasure"
929
- }), O;
930
- }), oo = q(() => {
931
- const O = A.value.roomGroups.slice();
932
- O.forEach((G) => {
933
- G.pricesFrom = G.rates.reduce(
934
- (M, S) => M < S.rackRate ? M : S.rackRate,
935
- 1 / 0
936
- );
937
- });
938
- function P(G, M) {
939
- return eo.value === !0 ? G.pricesFrom > M.pricesFrom ? -1 : 1 : G.pricesFrom > M.pricesFrom ? 1 : -1;
1022
+ }), k;
1023
+ }), Kt = G(() => {
1024
+ const k = M.value.roomGroups.slice();
1025
+ function T(q, D) {
1026
+ return Gt.value === !0 ? q.pricesFrom > D.pricesFrom ? -1 : 1 : q.pricesFrom > D.pricesFrom ? 1 : -1;
940
1027
  }
941
- return O.sort(P);
942
- }), no = q(() => [[
943
- parseInt(Ze.value.split(":")[0]),
944
- parseInt(Mt.value.split(":")[0])
945
- ]]), io = q(() => [[
946
- parseInt(Rt.value.split(":")[0]),
947
- parseInt(Bt.value.split(":")[0])
1028
+ return k.sort(T);
1029
+ }), xt = G(() => [[
1030
+ parseInt(Ue.value.split(":")[0]),
1031
+ parseInt(ae.value.split(":")[0])
1032
+ ]]), zt = G(() => [[
1033
+ parseInt(Re.value.split(":")[0]),
1034
+ parseInt(nt.value.split(":")[0])
948
1035
  ]]);
949
- function et(O) {
950
- W.value ? O(2) : O(), Xt();
951
- }
952
- function ro(O, P) {
953
- ae.value = new Date(P), Z.value = new Date(O), location.reload();
1036
+ function rt(k) {
1037
+ t.hideAddons === "yes" || pe.value ? k(2) : k(), Ft();
954
1038
  }
955
- function so(O) {
956
- return Q(this, null, function* () {
957
- yield Zt(O);
958
- });
1039
+ async function Jt(k) {
1040
+ await Ot(k);
959
1041
  }
960
- function ao(O) {
961
- zt.value && Kt(), W.value ? O(2) : O();
1042
+ function Yt(k) {
1043
+ It.value && Rt(), t.hideAddons === "yes" || pe.value ? k(2) : k();
962
1044
  }
963
- function lo() {
964
- d.value === "" && (d.value = Wt.value), p.value === "" && (p.value = Nt.value);
1045
+ function Zt() {
1046
+ const k = fo("hash-params", {
1047
+ removeNullishValues: !0
1048
+ }), T = parseInt(k.adults), q = parseInt(k.children), D = parseInt(k.hId), y = k.checkin, W = k.checkout, U = k.roomGroupId;
1049
+ if (isNaN(T) || (T > at.value ? fe.value = at.value : fe.value = T, k.adults = void 0), isNaN(q) || (q > it.value ? ye.value = it.value : ye.value = q, k.children = void 0), isNaN(D) || (ge(D) ? (le.value = D, k.hId = void 0) : Oe({
1050
+ message: e("alert.error.hotelIdNotFound"),
1051
+ type: "error"
1052
+ })), y && W)
1053
+ if (pt(y) && pt(W)) {
1054
+ const ee = new Date(y), J = new Date(W);
1055
+ ee <= J ? (x.value = ee, L.value = J, k.checkin = void 0, k.checkout = void 0) : Oe({
1056
+ message: e("alert.error.invalidDateRange"),
1057
+ type: "error"
1058
+ });
1059
+ } else
1060
+ Oe({
1061
+ message: e("alert.error.wrongDateFormat"),
1062
+ type: "error"
1063
+ });
1064
+ let I = null;
1065
+ U && (I = U), st(I);
965
1066
  }
966
- return Ye(() => {
967
- Qt(), lo();
968
- }), (O, P) => (E(), R(Ro, { styling: O.styling }, {
969
- default: w(() => [
970
- (E(), R(Io, null, {
971
- default: w(() => [
972
- I($o, {
973
- id: "fresh-booking-hotel-module",
974
- "access-token": O.accessToken,
975
- type: "hotel"
1067
+ return (k, T) => (c(), A(mo, { styling: k.styling }, {
1068
+ default: $(() => [
1069
+ (c(), A(eo, { onResolve: Zt }, {
1070
+ default: $(() => [
1071
+ g(o(l), {
1072
+ id: "konnectio-hotel-module",
1073
+ "access-token": k.accessToken,
1074
+ callback: o(jt)
976
1075
  }, {
977
- default: w(() => [
978
- I(Do, {
979
- layout: O.headerLayout,
980
- onReset: l(Jt)
1076
+ default: $(() => [
1077
+ g(bo, {
1078
+ layout: k.headerLayout,
1079
+ steps: qt,
1080
+ onReset: o(Nt)
981
1081
  }, {
982
- availability: w(({ next: G }) => [
983
- I(He, null, {
984
- form: w(() => [
985
- v("div", Bn, [
986
- v("div", zn, [
987
- I(zo, { booking: !0 })
1082
+ availability: $(({ next: q }) => [
1083
+ g(ze, null, {
1084
+ form: $(() => [
1085
+ a("div", _l, [
1086
+ a("div", Vl, [
1087
+ g(Co, {
1088
+ booking: !0,
1089
+ "selected-location": Number(k.selectedLocation)
1090
+ }, null, 8, ["selected-location"])
988
1091
  ]),
989
- x("", !0),
990
- l(a) ? (E(), C("div", ti, [
991
- I(pe),
992
- I(pe),
993
- I(pe)
994
- ])) : (E(), C("div", Wn, [
995
- l(A).roomGroups.length > 0 || l(A).templates.length > 0 ? (E(), C("div", Nn, [
996
- l(A).templates.length > 0 && O.onlyShow !== "rooms" ? (E(), C("div", Fn, [
997
- O.onlyShow !== "packages" ? (E(), C("h2", qn, [
998
- I(J, {
1092
+ _("", !0),
1093
+ !o(p) && o(ve) ? (c(), f("div", Tl, [
1094
+ o(M).roomGroups.length > 0 || o(M).templates.length > 0 || o(M).specialTemplates.length > 0 ? (c(), f("div", $l, [
1095
+ o(M).templates.length > 0 && k.onlyShow !== "rooms" ? (c(), f("div", Cl, [
1096
+ k.onlyShow !== "packages" ? (c(), f("h2", wl, [
1097
+ g(K, {
999
1098
  icon: "box",
1000
1099
  type: "fal",
1001
1100
  color: "header"
1002
1101
  }),
1003
- v("span", null, V(l(e)("booking.availability.packagesTitle")), 1)
1004
- ])) : x("", !0),
1005
- v("ul", Un, [
1006
- (E(!0), C(B, null, z(l(A).templates, ({
1007
- id: M,
1008
- name: S,
1009
- templateRoomGroups: le,
1010
- image: ue,
1011
- description: F,
1012
- weekendFee: Le
1013
- }) => (E(), R(mn, {
1014
- key: M,
1015
- id: M,
1016
- description: F,
1017
- name: S,
1018
- image: ue,
1019
- weekendFee: Le,
1020
- "room-groups": le,
1021
- callback: G
1022
- }, null, 8, ["id", "description", "name", "image", "weekendFee", "room-groups", "callback"]))), 128))
1102
+ a("span", null, v(o(e)("booking.availability.packagesTitle")), 1)
1103
+ ])) : _("", !0),
1104
+ a("ul", Pl, [
1105
+ (c(!0), f(E, null, F(o(M).templates, ({
1106
+ id: D,
1107
+ name: y,
1108
+ templateRoomGroups: W,
1109
+ image: U,
1110
+ description: I,
1111
+ weekendFee: ee
1112
+ }) => (c(), A(il, {
1113
+ key: D,
1114
+ id: D,
1115
+ description: I,
1116
+ name: y,
1117
+ image: U,
1118
+ weekendFee: ee,
1119
+ "room-groups": W,
1120
+ callback: q,
1121
+ "hide-addons": k.hideAddons
1122
+ }, null, 8, ["id", "description", "name", "image", "weekendFee", "room-groups", "callback", "hide-addons"]))), 128))
1023
1123
  ])
1024
- ])) : x("", !0),
1025
- l(A).roomGroups.length > 0 && O.onlyShow !== "packages" ? (E(), C("div", Gn, [
1026
- l(A).templates.length > 0 && O.onlyShow !== "rooms" ? (E(), C("h2", jn, [
1027
- I(J, {
1124
+ ])) : _("", !0),
1125
+ o(M).roomGroups.length > 0 && k.onlyShow !== "packages" ? (c(), f("div", Al, [
1126
+ o(M).templates.length > 0 && k.onlyShow !== "rooms" ? (c(), f("h2", Dl, [
1127
+ g(K, {
1028
1128
  icon: "house",
1029
1129
  type: "fal",
1030
1130
  color: "header"
1031
1131
  }),
1032
- v("span", null, V(l(e)("booking.availability.roomsTitle")), 1)
1033
- ])) : x("", !0),
1034
- v("ul", Yn, [
1035
- (E(!0), C(B, null, z(oo.value, (M, S) => (E(), R(ln, {
1036
- room: M,
1037
- key: S
1132
+ a("span", null, v(o(e)("booking.availability.roomsTitle")), 1)
1133
+ ])) : _("", !0),
1134
+ a("ul", Hl, [
1135
+ (c(!0), f(E, null, F(Kt.value, (D, y) => (c(), A(el, {
1136
+ room: D,
1137
+ key: y
1038
1138
  }, null, 8, ["room"]))), 128))
1039
1139
  ])
1040
- ])) : x("", !0),
1041
- (l(A).templates.length === 0 && O.onlyShow !== "rooms" || l(A).roomGroups.length === 0 && O.onlyShow !== "packages") && (O.onlyShow === "rooms" || O.onlyShow === "packages") ? (E(), C("div", Kn, [
1042
- v("span", null, V(l(e)("booking.availability.nothingAvailable")), 1)
1043
- ])) : x("", !0)
1044
- ])) : l(A).nextAvailableDates.length === 0 ? (E(), C("div", Qn, [
1045
- v("span", null, V(l(e)("booking.availability.nothingAvailable")), 1)
1046
- ])) : (E(), C("div", Jn, [
1047
- v("h2", Xn, [
1048
- I(J, {
1140
+ ])) : _("", !0),
1141
+ o(M).specialTemplates.length > 0 && k.onlyShow !== "rooms" ? (c(), f("div", Il, [
1142
+ a("h2", Sl, [
1143
+ g(K, {
1144
+ icon: "sparkles",
1145
+ type: "fal",
1146
+ color: "header"
1147
+ }),
1148
+ a("span", null, v(o(e)("hotel.specialOffers")), 1)
1149
+ ]),
1150
+ a("ul", Bl, [
1151
+ (c(!0), f(E, null, F(o(M).specialTemplates, ({
1152
+ id: D,
1153
+ name: y,
1154
+ templateRoomGroups: W,
1155
+ image: U,
1156
+ description: I,
1157
+ weekendFee: ee,
1158
+ fromDate: J,
1159
+ toDate: je
1160
+ }) => (c(), A(ul, {
1161
+ key: D,
1162
+ id: D,
1163
+ description: I,
1164
+ name: y,
1165
+ image: U,
1166
+ fromDate: J,
1167
+ toDate: je,
1168
+ weekendFee: ee,
1169
+ "room-groups": W,
1170
+ callback: q
1171
+ }, null, 8, ["id", "description", "name", "image", "fromDate", "toDate", "weekendFee", "room-groups", "callback"]))), 128))
1172
+ ])
1173
+ ])) : _("", !0),
1174
+ (o(M).templates.length === 0 && k.onlyShow !== "rooms" || o(M).roomGroups.length === 0 && k.onlyShow !== "packages") && (k.onlyShow === "rooms" || k.onlyShow === "packages") ? (c(), f("div", El, [
1175
+ a("span", null, v(o(e)("booking.availability.nothingAvailable")), 1)
1176
+ ])) : _("", !0)
1177
+ ])) : o(M).nextAvailableDates.length === 0 ? (c(), f("div", Ml, [
1178
+ a("span", null, v(o(e)("booking.availability.nothingAvailable")), 1)
1179
+ ])) : (c(), f("div", Ll, [
1180
+ a("h2", Ul, [
1181
+ g(K, {
1049
1182
  icon: "calendar-circle-exclamation",
1050
1183
  type: "fal",
1051
1184
  color: "header"
1052
1185
  }),
1053
- v("span", null, V(l(e)("booking.availability.nextAvailableDates")), 1)
1186
+ a("span", null, v(o(e)("booking.availability.nextAvailableDates")), 1)
1054
1187
  ]),
1055
- v("ul", Zn, [
1056
- (E(!0), C(B, null, z(l(A).nextAvailableDates, (M, S) => (E(), C("li", { key: S }, [
1057
- v("h3", {
1058
- title: `${l(ne)(M.fromDate)} - ${l(ne)(M.toDate)}`
1188
+ a("ul", Rl, [
1189
+ (c(!0), f(E, null, F(o(M).nextAvailableDates, (D, y) => (c(), f("li", { key: y }, [
1190
+ a("h3", {
1191
+ title: `${o(ue)(D.fromDate)} - ${o(ue)(D.toDate)}`
1059
1192
  }, [
1060
- v("span", null, V(`${l(ne)(M.fromDate)} - ${l(ne)(M.toDate)}`), 1)
1061
- ], 8, ei),
1062
- v("ul", null, [
1063
- x("", !0),
1064
- v("li", null, [
1065
- I(J, {
1193
+ a("span", null, v(`${o(ue)(D.fromDate)} - ${o(ue)(D.toDate)}`), 1)
1194
+ ], 8, Nl),
1195
+ a("ul", null, [
1196
+ _("", !0),
1197
+ a("li", null, [
1198
+ g(K, {
1066
1199
  icon: "money-bill",
1067
1200
  type: "fal",
1068
1201
  color: "header"
1069
1202
  }),
1070
- v("span", null, V(l(e)("booking.availability.pricesFrom")) + ": " + V(l(ie)(M.priceStartFrom, l(U))), 1)
1203
+ a("span", null, v(o(e)("booking.availability.pricesFrom")) + ": " + v(o(te)(D.priceStartFrom, o(he))), 1)
1071
1204
  ])
1072
1205
  ]),
1073
- I(de, {
1074
- label: l(e)("booking.availability.selectDates"),
1206
+ g(de, {
1207
+ label: o(e)("booking.availability.selectDates"),
1075
1208
  "full-width": "",
1076
- onClickEvent: (le) => ro(M.fromDate, M.toDate)
1209
+ onClickEvent: (W) => o(Le)(new Date(D.fromDate), new Date(D.toDate))
1077
1210
  }, null, 8, ["label", "onClickEvent"])
1078
1211
  ]))), 128))
1079
1212
  ])
1080
1213
  ]))
1214
+ ])) : (c(), f("div", Fl, [
1215
+ g(xe),
1216
+ g(xe),
1217
+ g(xe)
1081
1218
  ]))
1082
1219
  ])
1083
1220
  ]),
1084
- navigation: w(() => [
1085
- I(de, {
1086
- label: l(W) ? l(e)("booking.availability.nextButton") : l(e)("general.chooseAddons"),
1087
- disabled: !l(D),
1088
- "is-loading": !1,
1221
+ navigation: $(() => [
1222
+ o(Me) ? (c(), A(de, {
1223
+ key: 0,
1224
+ label: o(e)("general.searchAgain"),
1225
+ "is-loading": o(p),
1089
1226
  "full-width": "",
1090
- onClickEvent: (M) => ao(G)
1091
- }, null, 8, ["label", "disabled", "onClickEvent"])
1227
+ onClickEvent: T[1] || (T[1] = (D) => o(st)())
1228
+ }, null, 8, ["label", "is-loading"])) : (c(), A(de, {
1229
+ key: 1,
1230
+ label: o(pe) || k.hideAddons === "yes" ? o(e)("booking.availability.nextButton") : o(e)("general.chooseAddons"),
1231
+ disabled: !o(Be),
1232
+ "full-width": "",
1233
+ onClickEvent: (D) => Yt(q)
1234
+ }, null, 8, ["label", "disabled", "onClickEvent"]))
1092
1235
  ]),
1093
1236
  _: 2
1094
1237
  }, 1024)
1095
1238
  ]),
1096
- addons: w(({ next: G, prev: M }) => [
1097
- I(He, null, {
1098
- form: w(() => [
1099
- v("form", oi, [
1100
- v("h2", null, [
1101
- v("span", null, V(l(e)("booking.reservation.addons")), 1)
1239
+ addons: $(({ next: q, prev: D }) => [
1240
+ o(ve) ? (c(), A(ze, { key: 0 }, {
1241
+ form: $(() => [
1242
+ a("form", Ol, [
1243
+ a("h2", null, [
1244
+ a("span", null, v(o(e)("booking.reservation.addons")), 1)
1102
1245
  ]),
1103
- v("div", null, [
1104
- isNaN(l(t)) ? (E(), C("div", ni, [
1105
- (E(!0), C(B, null, z(l(H), (S) => (E(), C("ul", {
1106
- key: S.roomGroupID
1246
+ a("div", null, [
1247
+ isNaN(o(i)) ? (c(), f("div", jl, [
1248
+ (c(!0), f(E, null, F(o(X), (y) => (c(), f("ul", {
1249
+ key: y.roomGroupID
1107
1250
  }, [
1108
- (E(!0), C(B, null, z(S.variants, (le, ue) => (E(), C("li", {
1109
- key: le.ratePlanID
1251
+ (c(!0), f(E, null, F(y.variants, (W, U) => (c(), f("li", {
1252
+ key: W.ratePlanID
1110
1253
  }, [
1111
- v("h4", null, [
1112
- v("span", null, V(l(ce)(S.title)), 1)
1254
+ a("h4", null, [
1255
+ a("span", null, v(o(re)(y.title)), 1)
1113
1256
  ]),
1114
- (E(!0), C(B, null, z(le.rooms, (F, Le) => (E(), C("table", {
1115
- key: Le,
1116
- class: "fresh-booking-table"
1257
+ (c(!0), f(E, null, F(W.rooms, (I, ee) => (c(), f("table", {
1258
+ key: ee,
1259
+ class: "konnectio-table with-lines"
1117
1260
  }, [
1118
- v("thead", null, [
1119
- v("tr", null, [
1120
- v("th", null, [
1121
- v("span", null, V(l(ce)(le.name)), 1)
1261
+ a("thead", null, [
1262
+ a("tr", null, [
1263
+ a("th", null, [
1264
+ a("span", null, v(o(re)(W.name)), 1)
1122
1265
  ]),
1123
- x("", !0),
1124
- v("th", ii, [
1125
- v("b", null, [
1126
- I(J, {
1266
+ _("", !0),
1267
+ a("th", Gl, [
1268
+ a("b", null, [
1269
+ g(K, {
1127
1270
  icon: "male",
1128
1271
  type: "fas",
1129
1272
  color: "font"
1130
1273
  }),
1131
- v("span", null, V(F.adultsCount), 1),
1132
- F.childrenCount > 0 ? (E(), R(J, {
1274
+ a("span", null, v(I.adultsCount), 1),
1275
+ I.childrenCount > 0 ? (c(), A(K, {
1133
1276
  key: 0,
1134
1277
  icon: "child",
1135
1278
  type: "fas",
1136
1279
  color: "font"
1137
- })) : x("", !0),
1138
- F.childrenCount > 0 ? (E(), C("span", ri, V(F.childrenCount), 1)) : x("", !0)
1280
+ })) : _("", !0),
1281
+ I.childrenCount > 0 ? (c(), f("span", ql, v(I.childrenCount), 1)) : _("", !0)
1139
1282
  ])
1140
1283
  ])
1141
1284
  ])
1142
1285
  ]),
1143
- v("tbody", null, [
1144
- (E(!0), C(B, null, z(S.addons, ({
1145
- quantityStrategy: Pe,
1146
- maximumNumber: uo,
1147
- id: fe,
1148
- name: co,
1149
- price: po
1150
- }) => (E(), C("tr", { key: fe }, [
1151
- v("td", null, [
1152
- v("b", null, V(l(ce)(co)), 1),
1153
- si,
1154
- v("span", null, V(l(ie)(po, l(U))) + " " + V(l(Co)(Pe)), 1)
1286
+ a("tbody", null, [
1287
+ (c(!0), f(E, null, F(y.addons, ({
1288
+ quantityStrategy: J,
1289
+ maximumNumber: je,
1290
+ id: be,
1291
+ name: Qt,
1292
+ price: Xt
1293
+ }) => (c(), f("tr", { key: be }, [
1294
+ a("td", null, [
1295
+ a("b", null, v(o(re)(Qt)), 1),
1296
+ Wl,
1297
+ a("span", null, v(o(te)(Xt, o(he))) + " " + v(o(ct)(J)), 1)
1155
1298
  ]),
1156
- v("td", null, [
1157
- Pe === 1 || Pe === 12 ? (E(), R(It, {
1158
- key: 0,
1159
- modelValue: l(L)[S.roomGroupID][ue].config[F.configIdx].addons[F.roomIdx][fe],
1160
- "onUpdate:modelValue": (xe) => l(L)[S.roomGroupID][ue].config[F.configIdx].addons[F.roomIdx][fe] = xe,
1161
- small: !0,
1162
- "min-value": 0,
1163
- "max-value": uo || 1 / 0
1164
- }, null, 8, ["modelValue", "onUpdate:modelValue", "max-value"])) : (E(), R(Ue, {
1165
- key: 1,
1166
- modelValue: l(L)[S.roomGroupID][ue].config[F.configIdx].addons[F.roomIdx][fe],
1167
- "onUpdate:modelValue": (xe) => l(L)[S.roomGroupID][ue].config[F.configIdx].addons[F.roomIdx][fe] = xe,
1168
- numeric: !0
1169
- }, null, 8, ["modelValue", "onUpdate:modelValue"]))
1299
+ a("td", Kl, [
1300
+ o(z)[y.roomGroupID][U].config[I.configIdx].addons[I.roomIdx] ? (c(), f(E, { key: 0 }, [
1301
+ J === 1 || J === 12 ? (c(), A(Qe, {
1302
+ key: 0,
1303
+ modelValue: o(z)[y.roomGroupID][U].config[I.configIdx].addons[I.roomIdx][be],
1304
+ "onUpdate:modelValue": (Ge) => o(z)[y.roomGroupID][U].config[I.configIdx].addons[I.roomIdx][be] = Ge,
1305
+ small: !0,
1306
+ "min-value": 0,
1307
+ "max-value": je || 1 / 0
1308
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "max-value"])) : (c(), A(De, {
1309
+ key: 1,
1310
+ modelValue: o(z)[y.roomGroupID][U].config[I.configIdx].addons[I.roomIdx][be],
1311
+ "onUpdate:modelValue": (Ge) => o(z)[y.roomGroupID][U].config[I.configIdx].addons[I.roomIdx][be] = Ge,
1312
+ numeric: !0
1313
+ }, null, 8, ["modelValue", "onUpdate:modelValue"]))
1314
+ ], 64)) : _("", !0)
1170
1315
  ])
1171
1316
  ]))), 128))
1172
1317
  ])
1173
1318
  ]))), 128))
1174
1319
  ]))), 128))
1175
1320
  ]))), 128))
1176
- ])) : x("", !0)
1321
+ ])) : o(Ve) ? (c(), f("div", xl, [
1322
+ a("div", null, [
1323
+ a("h4", null, [
1324
+ a("span", null, v(o(Ee).name), 1)
1325
+ ]),
1326
+ a("table", zl, [
1327
+ a("thead", null, [
1328
+ a("tr", null, [
1329
+ a("th", null, [
1330
+ a("span", null, v(o(re)(o(Ve).title)), 1)
1331
+ ]),
1332
+ _("", !0),
1333
+ Jl
1334
+ ])
1335
+ ]),
1336
+ a("tbody", null, [
1337
+ (c(!0), f(E, null, F(o(Ve).addons, ({
1338
+ quantityStrategy: y,
1339
+ maximumNumber: W,
1340
+ id: U,
1341
+ name: I,
1342
+ price: ee
1343
+ }) => (c(), f("tr", { key: U }, [
1344
+ a("td", null, [
1345
+ a("b", null, v(o(re)(I)), 1),
1346
+ Yl,
1347
+ a("span", null, v(o(te)(ee, o(he))) + " " + v(o(ct)(y)), 1)
1348
+ ]),
1349
+ a("td", Zl, [
1350
+ y === 1 || y === 12 ? (c(), A(Qe, {
1351
+ key: 0,
1352
+ modelValue: o(s)[U],
1353
+ "onUpdate:modelValue": (J) => o(s)[U] = J,
1354
+ small: !0,
1355
+ "min-value": 0,
1356
+ "max-value": W || 1 / 0
1357
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "max-value"])) : (c(), A(De, {
1358
+ key: 1,
1359
+ modelValue: o(s)[U],
1360
+ "onUpdate:modelValue": (J) => o(s)[U] = J,
1361
+ numeric: !0
1362
+ }, null, 8, ["modelValue", "onUpdate:modelValue"]))
1363
+ ])
1364
+ ]))), 128))
1365
+ ])
1366
+ ])
1367
+ ])
1368
+ ])) : _("", !0)
1177
1369
  ])
1178
1370
  ])
1179
1371
  ]),
1180
- navigation: w(() => [
1181
- I(de, {
1182
- label: l(e)("general.startReservation"),
1372
+ navigation: $(() => [
1373
+ g(de, {
1374
+ label: o(e)("general.startReservation"),
1183
1375
  "full-width": "",
1184
- onClickEvent: G
1376
+ onClickEvent: q
1185
1377
  }, null, 8, ["label", "onClickEvent"]),
1186
- v("button", {
1378
+ a("button", {
1187
1379
  class: "konnectio-abort-reservation link",
1188
- onClick: st((S) => et(M), ["prevent"])
1380
+ onClick: we((y) => rt(D), ["prevent"])
1189
1381
  }, [
1190
- v("span", null, V(l(e)("general.goAStepBack")), 1)
1191
- ], 8, ai)
1382
+ a("span", null, v(o(e)("general.goAStepBack")), 1)
1383
+ ], 8, Ql)
1192
1384
  ]),
1193
1385
  _: 2
1194
- }, 1024)
1386
+ }, 1024)) : _("", !0)
1195
1387
  ]),
1196
- reservation: w(({ next: G, prev: M }) => [
1197
- I(He, {
1388
+ reservation: $(({ next: q, prev: D }) => [
1389
+ o(ve) ? (c(), A(ze, {
1390
+ key: 0,
1198
1391
  "show-terms-notice": !0,
1199
1392
  "show-gift-card": !0
1200
1393
  }, {
1201
- form: w(() => [
1202
- v("form", li, [
1203
- v("h2", null, [
1204
- v("span", null, V(l(e)("booking.reservation.detailsTitle")), 1)
1394
+ form: $(() => [
1395
+ a("form", Xl, [
1396
+ a("h2", null, [
1397
+ a("span", null, v(o(e)("booking.reservation.detailsTitle")), 1)
1205
1398
  ]),
1206
- !l(Ft) && !(l(Se) && l(Ve)) ? (E(), C("ul", {
1399
+ !o(St) && !(o(Ne) && o(Fe)) ? (c(), f("ul", {
1207
1400
  key: 0,
1208
- class: Te({ "fresh-booking-split-inputs": !l(Se) && !l(Ve) })
1401
+ class: Ae({ "konnectio-split-inputs": !o(Ne) && !o(Fe) })
1209
1402
  }, [
1210
- l(Se) ? x("", !0) : (E(), C("li", ui, [
1211
- I(at, {
1212
- modelValue: l(d),
1213
- "onUpdate:modelValue": P[1] || (P[1] = (S) => N(d) ? d.value = S : null),
1214
- label: l(e)("booking.reservation.arrivalTime"),
1403
+ o(Ne) ? _("", !0) : (c(), f("li", en, [
1404
+ g(mt, {
1405
+ modelValue: o(h),
1406
+ "onUpdate:modelValue": T[2] || (T[2] = (y) => N(h) ? h.value = y : null),
1407
+ label: o(e)("booking.reservation.arrivalTime"),
1215
1408
  icon: "hourglass-start",
1216
- "hour-range": no.value,
1409
+ "hour-range": xt.value,
1217
1410
  required: ""
1218
1411
  }, null, 8, ["modelValue", "label", "hour-range"])
1219
1412
  ])),
1220
- l(Ve) ? x("", !0) : (E(), C("li", di, [
1221
- I(at, {
1222
- modelValue: l(p),
1223
- "onUpdate:modelValue": P[2] || (P[2] = (S) => N(p) ? p.value = S : null),
1224
- label: l(e)("booking.reservation.departureTime"),
1413
+ o(Fe) ? _("", !0) : (c(), f("li", tn, [
1414
+ g(mt, {
1415
+ modelValue: o(V),
1416
+ "onUpdate:modelValue": T[3] || (T[3] = (y) => N(V) ? V.value = y : null),
1417
+ label: o(e)("booking.reservation.departureTime"),
1225
1418
  icon: "hourglass-end",
1226
- "hour-range": io.value,
1419
+ "hour-range": zt.value,
1227
1420
  required: ""
1228
1421
  }, null, 8, ["modelValue", "label", "hour-range"])
1229
1422
  ]))
1230
- ], 2)) : x("", !0),
1231
- I(Tn, {
1232
- modelValue: l(m),
1233
- "onUpdate:modelValue": P[3] || (P[3] = (S) => N(m) ? m.value = S : null),
1234
- title: l(y),
1235
- "onUpdate:title": P[4] || (P[4] = (S) => N(y) ? y.value = S : null),
1236
- "exclude-title": l(qt),
1237
- label: l(e)("booking.reservation.name"),
1423
+ ], 2)) : _("", !0),
1424
+ g(hl, {
1425
+ modelValue: o(P),
1426
+ "onUpdate:modelValue": T[4] || (T[4] = (y) => N(P) ? P.value = y : null),
1427
+ title: o(C),
1428
+ "onUpdate:title": T[5] || (T[5] = (y) => N(C) ? C.value = y : null),
1429
+ "exclude-title": o(Bt),
1430
+ label: o(e)("booking.reservation.name"),
1238
1431
  icon: "user-alt",
1239
- placeholder: l(e)("booking.reservation.namePlaceholder"),
1432
+ placeholder: o(e)("booking.reservation.namePlaceholder"),
1240
1433
  required: ""
1241
1434
  }, null, 8, ["modelValue", "title", "exclude-title", "label", "placeholder"]),
1242
- I(oe, {
1243
- modelValue: l(b),
1244
- "onUpdate:modelValue": P[5] || (P[5] = (S) => N(b) ? b.value = S : null),
1435
+ g(se, {
1436
+ modelValue: o(S),
1437
+ "onUpdate:modelValue": T[6] || (T[6] = (y) => N(S) ? S.value = y : null),
1245
1438
  type: "email",
1246
1439
  name: "email",
1247
1440
  autocomplete: "email",
1248
- label: l(e)("booking.reservation.email"),
1441
+ label: o(e)("booking.reservation.email"),
1249
1442
  icon: "at",
1250
- placeholder: l(e)("booking.reservation.emailPlaceholder"),
1443
+ placeholder: o(e)("booking.reservation.emailPlaceholder"),
1251
1444
  required: ""
1252
1445
  }, null, 8, ["modelValue", "label", "placeholder"]),
1253
- l($e) ? x("", !0) : (E(), R(Ue, {
1446
+ o(Lt) ? _("", !0) : (c(), A(se, {
1254
1447
  key: 1,
1255
- modelValue: l($),
1256
- "onUpdate:modelValue": P[6] || (P[6] = (S) => N($) ? $.value = S : null),
1257
- type: "checkbox",
1258
- name: "newsletter",
1259
- label: l(e)("booking.reservation.newsletterSignUp")
1260
- }, null, 8, ["modelValue", "label"])),
1261
- l(jt) ? x("", !0) : (E(), R(oe, {
1262
- key: 2,
1263
- modelValue: l(k),
1264
- "onUpdate:modelValue": P[7] || (P[7] = (S) => N(k) ? k.value = S : null),
1448
+ modelValue: o(b),
1449
+ "onUpdate:modelValue": T[7] || (T[7] = (y) => N(b) ? b.value = y : null),
1265
1450
  type: "text",
1266
1451
  name: "firm",
1267
1452
  autocomplete: "firm",
1268
- label: `${l(e)("booking.reservation.companyName")} (${l(e)("booking.reservation.optional")})`,
1453
+ label: `${o(e)("booking.reservation.companyName")} (${o(e)("booking.reservation.optional")})`,
1269
1454
  icon: "id-card",
1270
- placeholder: l(e)("booking.reservation.companyNamePlaceholder")
1455
+ placeholder: o(e)("booking.reservation.companyNamePlaceholder")
1271
1456
  }, null, 8, ["modelValue", "label", "placeholder"])),
1272
- I(No, {
1273
- modelValue: l(s),
1274
- "onUpdate:modelValue": P[8] || (P[8] = (S) => N(s) ? s.value = S : null),
1457
+ g(Ao, {
1458
+ modelValue: o(B),
1459
+ "onUpdate:modelValue": T[8] || (T[8] = (y) => N(B) ? B.value = y : null),
1275
1460
  icon: "phone-office",
1276
- label: l(e)("booking.reservation.phone"),
1277
- placeholder: l(e)("booking.reservation.phonePlaceholder"),
1461
+ label: o(e)("booking.reservation.phone"),
1462
+ placeholder: o(e)("booking.reservation.phonePlaceholder"),
1278
1463
  required: ""
1279
1464
  }, null, 8, ["modelValue", "label", "placeholder"]),
1280
- I(yn, {
1281
- modelValue: l(r),
1282
- "onUpdate:modelValue": P[9] || (P[9] = (S) => N(r) ? r.value = S : null),
1283
- label: l(e)("booking.reservation.country"),
1284
- placeholder: l(e)("booking.reservation.countryPlaceholder"),
1285
- options: l(n),
1465
+ g(ml, {
1466
+ modelValue: o(j),
1467
+ "onUpdate:modelValue": T[9] || (T[9] = (y) => N(j) ? j.value = y : null),
1468
+ label: o(e)("booking.reservation.country"),
1469
+ placeholder: o(e)("booking.reservation.countryPlaceholder"),
1470
+ options: o(m),
1286
1471
  required: ""
1287
1472
  }, null, 8, ["modelValue", "label", "placeholder", "options"]),
1288
- I(oe, {
1289
- modelValue: l(i),
1290
- "onUpdate:modelValue": P[10] || (P[10] = (S) => N(i) ? i.value = S : null),
1473
+ g(se, {
1474
+ modelValue: o(O),
1475
+ "onUpdate:modelValue": T[10] || (T[10] = (y) => N(O) ? O.value = y : null),
1291
1476
  type: "textarea",
1292
1477
  name: "address",
1293
1478
  autocomplete: "street-address",
1294
- label: l(e)("booking.reservation.streetAddress"),
1479
+ label: o(e)("booking.reservation.streetAddress"),
1295
1480
  icon: "map-marked",
1296
- placeholder: l(e)("booking.reservation.streetAddressPlaceholder"),
1481
+ placeholder: o(e)("booking.reservation.streetAddressPlaceholder"),
1297
1482
  required: ""
1298
1483
  }, null, 8, ["modelValue", "label", "placeholder"]),
1299
- v("ul", ci, [
1300
- v("li", null, [
1301
- I(oe, {
1302
- modelValue: l(_),
1303
- "onUpdate:modelValue": P[11] || (P[11] = (S) => N(_) ? _.value = S : null),
1484
+ a("ul", on, [
1485
+ a("li", null, [
1486
+ g(se, {
1487
+ modelValue: o(w),
1488
+ "onUpdate:modelValue": T[11] || (T[11] = (y) => N(w) ? w.value = y : null),
1304
1489
  type: "text",
1305
1490
  name: "postal",
1306
1491
  autocomplete: "postal-code",
1307
- label: l(e)("booking.reservation.postal"),
1492
+ label: o(e)("booking.reservation.postal"),
1308
1493
  icon: "mailbox",
1309
- placeholder: l(e)("booking.reservation.postalPlaceholder"),
1494
+ placeholder: o(e)("booking.reservation.postalPlaceholder"),
1310
1495
  required: ""
1311
1496
  }, null, 8, ["modelValue", "label", "placeholder"])
1312
1497
  ]),
1313
- v("li", null, [
1314
- I(oe, {
1315
- modelValue: l(f),
1316
- "onUpdate:modelValue": P[12] || (P[12] = (S) => N(f) ? f.value = S : null),
1498
+ a("li", null, [
1499
+ g(se, {
1500
+ modelValue: o(H),
1501
+ "onUpdate:modelValue": T[12] || (T[12] = (y) => N(H) ? H.value = y : null),
1317
1502
  type: "text",
1318
1503
  name: "city",
1319
1504
  autocomplete: "address-level2",
1320
- label: l(e)("booking.reservation.city"),
1505
+ label: o(e)("booking.reservation.city"),
1321
1506
  icon: "city",
1322
- placeholder: l(e)("booking.reservation.cityPlaceholder"),
1507
+ placeholder: o(e)("booking.reservation.cityPlaceholder"),
1323
1508
  required: ""
1324
1509
  }, null, 8, ["modelValue", "label", "placeholder"])
1325
1510
  ])
1326
1511
  ]),
1327
- I(oe, {
1328
- modelValue: l(g),
1329
- "onUpdate:modelValue": P[13] || (P[13] = (S) => N(g) ? g.value = S : null),
1512
+ g(se, {
1513
+ modelValue: o(Y),
1514
+ "onUpdate:modelValue": T[13] || (T[13] = (y) => N(Y) ? Y.value = y : null),
1330
1515
  type: "textarea",
1331
- label: `${l(e)("booking.reservation.remark")} (${l(e)("booking.reservation.optional")})`,
1516
+ label: `${o(e)("booking.reservation.remark")} (${o(e)("booking.reservation.optional")})`,
1332
1517
  icon: "info-circle",
1333
- placeholder: l(e)("booking.reservation.remarkPlaceholder")
1518
+ placeholder: o(e)("booking.reservation.remarkPlaceholder")
1334
1519
  }, null, 8, ["modelValue", "label", "placeholder"]),
1335
- I(oe, {
1336
- modelValue: l(T),
1337
- "onUpdate:modelValue": P[14] || (P[14] = (S) => N(T) ? T.value = S : null),
1520
+ g(se, {
1521
+ modelValue: o(R),
1522
+ "onUpdate:modelValue": T[14] || (T[14] = (y) => N(R) ? R.value = y : null),
1338
1523
  type: "textarea",
1339
- label: `${l(e)("booking.reservation.allergies")} (${l(e)("booking.reservation.optional")})`,
1524
+ label: `${o(e)("booking.reservation.allergies")} (${o(e)("booking.reservation.optional")})`,
1340
1525
  icon: "allergies",
1341
- placeholder: l(e)("booking.reservation.allergiesPlaceholder")
1526
+ placeholder: o(e)("booking.reservation.allergiesPlaceholder")
1342
1527
  }, null, 8, ["modelValue", "label", "placeholder"]),
1343
- l(Ut) ? x("", !0) : (E(), R(_n, {
1344
- key: 3,
1345
- modelValue: l(h),
1346
- "onUpdate:modelValue": P[15] || (P[15] = (S) => N(h) ? h.value = S : null),
1347
- label: `${l(e)("booking.reservation.purposeOfStay")} (${l(e)("booking.reservation.optional")})`,
1528
+ o(Et) ? _("", !0) : (c(), A(ko, {
1529
+ key: 2,
1530
+ modelValue: o(d),
1531
+ "onUpdate:modelValue": T[15] || (T[15] = (y) => N(d) ? d.value = y : null),
1532
+ label: `${o(e)("booking.reservation.purposeOfStay")} (${o(e)("booking.reservation.optional")})`,
1348
1533
  name: "travelingFor",
1349
- checkboxes: to.value
1534
+ checkboxes: Wt.value
1350
1535
  }, null, 8, ["modelValue", "label", "checkboxes"]))
1351
1536
  ])
1352
1537
  ]),
1353
- navigation: w(() => [
1354
- v("div", null, [
1355
- I(de, {
1356
- label: l(Yt) ? l(e)("booking.reservation.nextButton") : l(e)("general.confirmReservation"),
1357
- disabled: !l(c),
1358
- "is-loading": l(u),
1538
+ navigation: $(() => [
1539
+ a("div", null, [
1540
+ g(de, {
1541
+ label: o(Ut) ? o(e)("booking.reservation.nextButton") : o(e)("general.confirmReservation"),
1542
+ disabled: !o(r),
1543
+ "is-loading": o(u),
1359
1544
  "full-width": "",
1360
- onClickEvent: (S) => so(G)
1545
+ onClickEvent: (y) => Jt(q)
1361
1546
  }, null, 8, ["label", "disabled", "is-loading", "onClickEvent"]),
1362
- v("button", {
1547
+ a("button", {
1363
1548
  class: "konnectio-abort-reservation link",
1364
- onClick: st((S) => et(M), ["prevent"])
1549
+ onClick: we((y) => rt(D), ["prevent"])
1365
1550
  }, [
1366
- v("span", null, V(l(e)("general.goAStepBack")), 1)
1367
- ], 8, pi)
1551
+ a("span", null, v(o(e)("general.goAStepBack")), 1)
1552
+ ], 8, ln)
1368
1553
  ])
1369
1554
  ]),
1370
1555
  _: 2
1371
- }, 1024)
1556
+ }, 1024)) : _("", !0)
1372
1557
  ]),
1373
- payment: w(() => [
1374
- I(Fo)
1558
+ payment: $(() => [
1559
+ g(Do)
1375
1560
  ]),
1376
- confirmation: w(() => [
1377
- I(Ao, {
1378
- message: l(e)("booking.confirmation.thankYou")
1561
+ confirmation: $(() => [
1562
+ g(_o, {
1563
+ message: o(e)("booking.confirmation.thankYou")
1379
1564
  }, null, 8, ["message"])
1380
1565
  ]),
1381
1566
  _: 1
1382
1567
  }, 8, ["layout", "onReset"])
1383
1568
  ]),
1384
1569
  _: 1
1385
- }, 8, ["access-token"])
1570
+ }, 8, ["access-token", "callback"])
1386
1571
  ]),
1387
- fallback: w(() => [
1388
- I(Mn)
1572
+ fallback: $(() => [
1573
+ g(kl)
1389
1574
  ]),
1390
1575
  _: 1
1391
1576
  }))
@@ -1393,1240 +1578,146 @@ const ii = { class: "fresh-booking-event-addons-price" }, ri = { key: 1 }, si =
1393
1578
  _: 1
1394
1579
  }, 8, ["styling"]));
1395
1580
  }
1396
- }), ve = /* @__PURE__ */ X(hi, [["__scopeId", "data-v-fd9b6d4f"]]);
1397
- var Lt = { exports: {} }, Oe = { exports: {} }, De = { exports: {} }, lt;
1398
- function Qe() {
1399
- return lt || (lt = 1, function(o) {
1400
- (function(e, t) {
1401
- o.exports ? o.exports = t() : e.EvEmitter = t();
1402
- })(typeof window != "undefined" ? window : St, function() {
1403
- function e() {
1404
- }
1405
- var t = e.prototype;
1406
- return t.on = function(n, a) {
1407
- if (!(!n || !a)) {
1408
- var u = this._events = this._events || {}, c = u[n] = u[n] || [];
1409
- return c.indexOf(a) == -1 && c.push(a), this;
1410
- }
1411
- }, t.once = function(n, a) {
1412
- if (!(!n || !a)) {
1413
- this.on(n, a);
1414
- var u = this._onceEvents = this._onceEvents || {}, c = u[n] = u[n] || {};
1415
- return c[a] = !0, this;
1416
- }
1417
- }, t.off = function(n, a) {
1418
- var u = this._events && this._events[n];
1419
- if (!(!u || !u.length)) {
1420
- var c = u.indexOf(a);
1421
- return c != -1 && u.splice(c, 1), this;
1422
- }
1423
- }, t.emitEvent = function(n, a) {
1424
- var u = this._events && this._events[n];
1425
- if (!(!u || !u.length)) {
1426
- u = u.slice(0), a = a || [];
1427
- for (var c = this._onceEvents && this._onceEvents[n], h = 0; h < u.length; h++) {
1428
- var d = u[h], p = c && c[d];
1429
- p && (this.off(n, d), delete c[d]), d.apply(this, a);
1430
- }
1431
- return this;
1432
- }
1433
- }, t.allOff = function() {
1434
- delete this._events, delete this._onceEvents;
1435
- }, e;
1436
- });
1437
- }(De)), De.exports;
1438
- }
1439
- var Ae = { exports: {} };
1440
- /*!
1441
- * getSize v2.0.3
1442
- * measure size of elements
1443
- * MIT license
1444
- */
1445
- var ut;
1446
- function Je() {
1447
- return ut || (ut = 1, function(o) {
1448
- (function(e, t) {
1449
- o.exports ? o.exports = t() : e.getSize = t();
1450
- })(window, function() {
1451
- function t(s) {
1452
- var k = parseFloat(s), _ = s.indexOf("%") == -1 && !isNaN(k);
1453
- return _ && k;
1454
- }
1455
- function n() {
1456
- }
1457
- var a = typeof console == "undefined" ? n : function(s) {
1458
- console.error(s);
1459
- }, u = [
1460
- "paddingLeft",
1461
- "paddingRight",
1462
- "paddingTop",
1463
- "paddingBottom",
1464
- "marginLeft",
1465
- "marginRight",
1466
- "marginTop",
1467
- "marginBottom",
1468
- "borderLeftWidth",
1469
- "borderRightWidth",
1470
- "borderTopWidth",
1471
- "borderBottomWidth"
1472
- ], c = u.length;
1473
- function h() {
1474
- for (var s = {
1475
- width: 0,
1476
- height: 0,
1477
- innerWidth: 0,
1478
- innerHeight: 0,
1479
- outerWidth: 0,
1480
- outerHeight: 0
1481
- }, k = 0; k < c; k++) {
1482
- var _ = u[k];
1483
- s[_] = 0;
1484
- }
1485
- return s;
1486
- }
1487
- function d(s) {
1488
- var k = getComputedStyle(s);
1489
- return k || a("Style returned " + k + ". Are you running this code in a hidden iframe on Firefox? See https://bit.ly/getsizebug1"), k;
1490
- }
1491
- var p = !1, m;
1492
- function y() {
1493
- if (!p) {
1494
- p = !0;
1495
- var s = document.createElement("div");
1496
- s.style.width = "200px", s.style.padding = "1px 2px 3px 4px", s.style.borderStyle = "solid", s.style.borderWidth = "1px 2px 3px 4px", s.style.boxSizing = "border-box";
1497
- var k = document.body || document.documentElement;
1498
- k.appendChild(s);
1499
- var _ = d(s);
1500
- m = Math.round(t(_.width)) == 200, b.isBoxSizeOuter = m, k.removeChild(s);
1501
- }
1502
- }
1503
- function b(s) {
1504
- if (y(), typeof s == "string" && (s = document.querySelector(s)), !(!s || typeof s != "object" || !s.nodeType)) {
1505
- var k = d(s);
1506
- if (k.display == "none")
1507
- return h();
1508
- var _ = {};
1509
- _.width = s.offsetWidth, _.height = s.offsetHeight;
1510
- for (var f = _.isBorderBox = k.boxSizing == "border-box", i = 0; i < c; i++) {
1511
- var r = u[i], g = k[r], T = parseFloat(g);
1512
- _[r] = isNaN(T) ? 0 : T;
1513
- }
1514
- var $ = _.paddingLeft + _.paddingRight, L = _.paddingTop + _.paddingBottom, H = _.marginLeft + _.marginRight, D = _.marginTop + _.marginBottom, A = _.borderLeftWidth + _.borderRightWidth, W = _.borderTopWidth + _.borderBottomWidth, Z = f && m, ae = t(k.width);
1515
- ae !== !1 && (_.width = ae + // add padding and border unless it's already including it
1516
- (Z ? 0 : $ + A));
1517
- var U = t(k.height);
1518
- return U !== !1 && (_.height = U + // add padding and border unless it's already including it
1519
- (Z ? 0 : L + W)), _.innerWidth = _.width - ($ + A), _.innerHeight = _.height - (L + W), _.outerWidth = _.width + H, _.outerHeight = _.height + D, _;
1520
- }
1521
- }
1522
- return b;
1523
- });
1524
- }(Ae)), Ae.exports;
1525
- }
1526
- var Me = { exports: {} }, Re = { exports: {} }, dt;
1527
- function fi() {
1528
- return dt || (dt = 1, function(o) {
1529
- (function(e, t) {
1530
- o.exports ? o.exports = t() : e.matchesSelector = t();
1531
- })(window, function() {
1532
- var t = function() {
1533
- var n = window.Element.prototype;
1534
- if (n.matches)
1535
- return "matches";
1536
- if (n.matchesSelector)
1537
- return "matchesSelector";
1538
- for (var a = ["webkit", "moz", "ms", "o"], u = 0; u < a.length; u++) {
1539
- var c = a[u], h = c + "MatchesSelector";
1540
- if (n[h])
1541
- return h;
1542
- }
1543
- }();
1544
- return function(a, u) {
1545
- return a[t](u);
1546
- };
1547
- });
1548
- }(Re)), Re.exports;
1549
- }
1550
- var ct;
1551
- function mi() {
1552
- return ct || (ct = 1, function(o) {
1553
- (function(e, t) {
1554
- o.exports ? o.exports = t(
1555
- e,
1556
- fi()
1557
- ) : e.fizzyUIUtils = t(
1558
- e,
1559
- e.matchesSelector
1560
- );
1561
- })(window, function(t, n) {
1562
- var a = {};
1563
- a.extend = function(h, d) {
1564
- for (var p in d)
1565
- h[p] = d[p];
1566
- return h;
1567
- }, a.modulo = function(h, d) {
1568
- return (h % d + d) % d;
1569
- };
1570
- var u = Array.prototype.slice;
1571
- a.makeArray = function(h) {
1572
- if (Array.isArray(h))
1573
- return h;
1574
- if (h == null)
1575
- return [];
1576
- var d = typeof h == "object" && typeof h.length == "number";
1577
- return d ? u.call(h) : [h];
1578
- }, a.removeFrom = function(h, d) {
1579
- var p = h.indexOf(d);
1580
- p != -1 && h.splice(p, 1);
1581
- }, a.getParent = function(h, d) {
1582
- for (; h.parentNode && h != document.body; )
1583
- if (h = h.parentNode, n(h, d))
1584
- return h;
1585
- }, a.getQueryElement = function(h) {
1586
- return typeof h == "string" ? document.querySelector(h) : h;
1587
- }, a.handleEvent = function(h) {
1588
- var d = "on" + h.type;
1589
- this[d] && this[d](h);
1590
- }, a.filterFindElements = function(h, d) {
1591
- h = a.makeArray(h);
1592
- var p = [];
1593
- return h.forEach(function(m) {
1594
- if (m instanceof HTMLElement) {
1595
- if (!d) {
1596
- p.push(m);
1597
- return;
1598
- }
1599
- n(m, d) && p.push(m);
1600
- for (var y = m.querySelectorAll(d), b = 0; b < y.length; b++)
1601
- p.push(y[b]);
1602
- }
1603
- }), p;
1604
- }, a.debounceMethod = function(h, d, p) {
1605
- p = p || 100;
1606
- var m = h.prototype[d], y = d + "Timeout";
1607
- h.prototype[d] = function() {
1608
- var b = this[y];
1609
- clearTimeout(b);
1610
- var s = arguments, k = this;
1611
- this[y] = setTimeout(function() {
1612
- m.apply(k, s), delete k[y];
1613
- }, p);
1614
- };
1615
- }, a.docReady = function(h) {
1616
- var d = document.readyState;
1617
- d == "complete" || d == "interactive" ? setTimeout(h) : document.addEventListener("DOMContentLoaded", h);
1618
- }, a.toDashed = function(h) {
1619
- return h.replace(/(.)([A-Z])/g, function(d, p, m) {
1620
- return p + "-" + m;
1621
- }).toLowerCase();
1622
- };
1623
- var c = t.console;
1624
- return a.htmlInit = function(h, d) {
1625
- a.docReady(function() {
1626
- var p = a.toDashed(d), m = "data-" + p, y = document.querySelectorAll("[" + m + "]"), b = document.querySelectorAll(".js-" + p), s = a.makeArray(y).concat(a.makeArray(b)), k = m + "-options", _ = t.jQuery;
1627
- s.forEach(function(f) {
1628
- var i = f.getAttribute(m) || f.getAttribute(k), r;
1629
- try {
1630
- r = i && JSON.parse(i);
1631
- } catch (T) {
1632
- c && c.error("Error parsing " + m + " on " + f.className + ": " + T);
1633
- return;
1634
- }
1635
- var g = new h(f, r);
1636
- _ && _.data(f, d, g);
1637
- });
1638
- });
1639
- }, a;
1640
- });
1641
- }(Me)), Me.exports;
1642
- }
1643
- var Be = { exports: {} }, pt;
1644
- function gi() {
1645
- return pt || (pt = 1, function(o) {
1646
- (function(e, t) {
1647
- o.exports ? o.exports = t(
1648
- Qe(),
1649
- Je()
1650
- ) : (e.Outlayer = {}, e.Outlayer.Item = t(
1651
- e.EvEmitter,
1652
- e.getSize
1653
- ));
1654
- })(window, function(t, n) {
1655
- function a(f) {
1656
- for (var i in f)
1657
- return !1;
1658
- return i = null, !0;
1659
- }
1660
- var u = document.documentElement.style, c = typeof u.transition == "string" ? "transition" : "WebkitTransition", h = typeof u.transform == "string" ? "transform" : "WebkitTransform", d = {
1661
- WebkitTransition: "webkitTransitionEnd",
1662
- transition: "transitionend"
1663
- }[c], p = {
1664
- transform: h,
1665
- transition: c,
1666
- transitionDuration: c + "Duration",
1667
- transitionProperty: c + "Property",
1668
- transitionDelay: c + "Delay"
1669
- };
1670
- function m(f, i) {
1671
- f && (this.element = f, this.layout = i, this.position = {
1672
- x: 0,
1673
- y: 0
1674
- }, this._create());
1675
- }
1676
- var y = m.prototype = Object.create(t.prototype);
1677
- y.constructor = m, y._create = function() {
1678
- this._transn = {
1679
- ingProperties: {},
1680
- clean: {},
1681
- onEnd: {}
1682
- }, this.css({
1683
- position: "absolute"
1684
- });
1685
- }, y.handleEvent = function(f) {
1686
- var i = "on" + f.type;
1687
- this[i] && this[i](f);
1688
- }, y.getSize = function() {
1689
- this.size = n(this.element);
1690
- }, y.css = function(f) {
1691
- var i = this.element.style;
1692
- for (var r in f) {
1693
- var g = p[r] || r;
1694
- i[g] = f[r];
1695
- }
1696
- }, y.getPosition = function() {
1697
- var f = getComputedStyle(this.element), i = this.layout._getOption("originLeft"), r = this.layout._getOption("originTop"), g = f[i ? "left" : "right"], T = f[r ? "top" : "bottom"], $ = parseFloat(g), L = parseFloat(T), H = this.layout.size;
1698
- g.indexOf("%") != -1 && ($ = $ / 100 * H.width), T.indexOf("%") != -1 && (L = L / 100 * H.height), $ = isNaN($) ? 0 : $, L = isNaN(L) ? 0 : L, $ -= i ? H.paddingLeft : H.paddingRight, L -= r ? H.paddingTop : H.paddingBottom, this.position.x = $, this.position.y = L;
1699
- }, y.layoutPosition = function() {
1700
- var f = this.layout.size, i = {}, r = this.layout._getOption("originLeft"), g = this.layout._getOption("originTop"), T = r ? "paddingLeft" : "paddingRight", $ = r ? "left" : "right", L = r ? "right" : "left", H = this.position.x + f[T];
1701
- i[$] = this.getXValue(H), i[L] = "";
1702
- var D = g ? "paddingTop" : "paddingBottom", A = g ? "top" : "bottom", W = g ? "bottom" : "top", Z = this.position.y + f[D];
1703
- i[A] = this.getYValue(Z), i[W] = "", this.css(i), this.emitEvent("layout", [this]);
1704
- }, y.getXValue = function(f) {
1705
- var i = this.layout._getOption("horizontal");
1706
- return this.layout.options.percentPosition && !i ? f / this.layout.size.width * 100 + "%" : f + "px";
1707
- }, y.getYValue = function(f) {
1708
- var i = this.layout._getOption("horizontal");
1709
- return this.layout.options.percentPosition && i ? f / this.layout.size.height * 100 + "%" : f + "px";
1710
- }, y._transitionTo = function(f, i) {
1711
- this.getPosition();
1712
- var r = this.position.x, g = this.position.y, T = f == this.position.x && i == this.position.y;
1713
- if (this.setPosition(f, i), T && !this.isTransitioning) {
1714
- this.layoutPosition();
1715
- return;
1716
- }
1717
- var $ = f - r, L = i - g, H = {};
1718
- H.transform = this.getTranslate($, L), this.transition({
1719
- to: H,
1720
- onTransitionEnd: {
1721
- transform: this.layoutPosition
1722
- },
1723
- isCleaning: !0
1724
- });
1725
- }, y.getTranslate = function(f, i) {
1726
- var r = this.layout._getOption("originLeft"), g = this.layout._getOption("originTop");
1727
- return f = r ? f : -f, i = g ? i : -i, "translate3d(" + f + "px, " + i + "px, 0)";
1728
- }, y.goTo = function(f, i) {
1729
- this.setPosition(f, i), this.layoutPosition();
1730
- }, y.moveTo = y._transitionTo, y.setPosition = function(f, i) {
1731
- this.position.x = parseFloat(f), this.position.y = parseFloat(i);
1732
- }, y._nonTransition = function(f) {
1733
- this.css(f.to), f.isCleaning && this._removeStyles(f.to);
1734
- for (var i in f.onTransitionEnd)
1735
- f.onTransitionEnd[i].call(this);
1736
- }, y.transition = function(f) {
1737
- if (!parseFloat(this.layout.options.transitionDuration)) {
1738
- this._nonTransition(f);
1739
- return;
1740
- }
1741
- var i = this._transn;
1742
- for (var r in f.onTransitionEnd)
1743
- i.onEnd[r] = f.onTransitionEnd[r];
1744
- for (r in f.to)
1745
- i.ingProperties[r] = !0, f.isCleaning && (i.clean[r] = !0);
1746
- f.from && (this.css(f.from), this.element.offsetHeight), this.enableTransition(f.to), this.css(f.to), this.isTransitioning = !0;
1747
- };
1748
- function b(f) {
1749
- return f.replace(/([A-Z])/g, function(i) {
1750
- return "-" + i.toLowerCase();
1751
- });
1752
- }
1753
- var s = "opacity," + b(h);
1754
- y.enableTransition = function() {
1755
- if (!this.isTransitioning) {
1756
- var f = this.layout.options.transitionDuration;
1757
- f = typeof f == "number" ? f + "ms" : f, this.css({
1758
- transitionProperty: s,
1759
- transitionDuration: f,
1760
- transitionDelay: this.staggerDelay || 0
1761
- }), this.element.addEventListener(d, this, !1);
1762
- }
1763
- }, y.onwebkitTransitionEnd = function(f) {
1764
- this.ontransitionend(f);
1765
- }, y.onotransitionend = function(f) {
1766
- this.ontransitionend(f);
1767
- };
1768
- var k = {
1769
- "-webkit-transform": "transform"
1770
- };
1771
- y.ontransitionend = function(f) {
1772
- if (f.target === this.element) {
1773
- var i = this._transn, r = k[f.propertyName] || f.propertyName;
1774
- if (delete i.ingProperties[r], a(i.ingProperties) && this.disableTransition(), r in i.clean && (this.element.style[f.propertyName] = "", delete i.clean[r]), r in i.onEnd) {
1775
- var g = i.onEnd[r];
1776
- g.call(this), delete i.onEnd[r];
1777
- }
1778
- this.emitEvent("transitionEnd", [this]);
1779
- }
1780
- }, y.disableTransition = function() {
1781
- this.removeTransitionStyles(), this.element.removeEventListener(d, this, !1), this.isTransitioning = !1;
1782
- }, y._removeStyles = function(f) {
1783
- var i = {};
1784
- for (var r in f)
1785
- i[r] = "";
1786
- this.css(i);
1787
- };
1788
- var _ = {
1789
- transitionProperty: "",
1790
- transitionDuration: "",
1791
- transitionDelay: ""
1792
- };
1793
- return y.removeTransitionStyles = function() {
1794
- this.css(_);
1795
- }, y.stagger = function(f) {
1796
- f = isNaN(f) ? 0 : f, this.staggerDelay = f + "ms";
1797
- }, y.removeElem = function() {
1798
- this.element.parentNode.removeChild(this.element), this.css({ display: "" }), this.emitEvent("remove", [this]);
1799
- }, y.remove = function() {
1800
- if (!c || !parseFloat(this.layout.options.transitionDuration)) {
1801
- this.removeElem();
1802
- return;
1803
- }
1804
- this.once("transitionEnd", function() {
1805
- this.removeElem();
1806
- }), this.hide();
1807
- }, y.reveal = function() {
1808
- delete this.isHidden, this.css({ display: "" });
1809
- var f = this.layout.options, i = {}, r = this.getHideRevealTransitionEndProperty("visibleStyle");
1810
- i[r] = this.onRevealTransitionEnd, this.transition({
1811
- from: f.hiddenStyle,
1812
- to: f.visibleStyle,
1813
- isCleaning: !0,
1814
- onTransitionEnd: i
1815
- });
1816
- }, y.onRevealTransitionEnd = function() {
1817
- this.isHidden || this.emitEvent("reveal");
1818
- }, y.getHideRevealTransitionEndProperty = function(f) {
1819
- var i = this.layout.options[f];
1820
- if (i.opacity)
1821
- return "opacity";
1822
- for (var r in i)
1823
- return r;
1824
- }, y.hide = function() {
1825
- this.isHidden = !0, this.css({ display: "" });
1826
- var f = this.layout.options, i = {}, r = this.getHideRevealTransitionEndProperty("hiddenStyle");
1827
- i[r] = this.onHideTransitionEnd, this.transition({
1828
- from: f.visibleStyle,
1829
- to: f.hiddenStyle,
1830
- // keep hidden stuff hidden
1831
- isCleaning: !0,
1832
- onTransitionEnd: i
1833
- });
1834
- }, y.onHideTransitionEnd = function() {
1835
- this.isHidden && (this.css({ display: "none" }), this.emitEvent("hide"));
1836
- }, y.destroy = function() {
1837
- this.css({
1838
- position: "",
1839
- left: "",
1840
- right: "",
1841
- top: "",
1842
- bottom: "",
1843
- transition: "",
1844
- transform: ""
1845
- });
1846
- }, m;
1847
- });
1848
- }(Be)), Be.exports;
1849
- }
1850
- /*!
1851
- * Outlayer v2.1.1
1852
- * the brains and guts of a layout library
1853
- * MIT license
1854
- */
1855
- var ht;
1856
- function vi() {
1857
- return ht || (ht = 1, function(o) {
1858
- (function(e, t) {
1859
- o.exports ? o.exports = t(
1860
- e,
1861
- Qe(),
1862
- Je(),
1863
- mi(),
1864
- gi()
1865
- ) : e.Outlayer = t(
1866
- e,
1867
- e.EvEmitter,
1868
- e.getSize,
1869
- e.fizzyUIUtils,
1870
- e.Outlayer.Item
1871
- );
1872
- })(window, function(t, n, a, u, c) {
1873
- var h = t.console, d = t.jQuery, p = function() {
1874
- }, m = 0, y = {};
1875
- function b(i, r) {
1876
- var g = u.getQueryElement(i);
1877
- if (!g) {
1878
- h && h.error("Bad element for " + this.constructor.namespace + ": " + (g || i));
1879
- return;
1880
- }
1881
- this.element = g, d && (this.$element = d(this.element)), this.options = u.extend({}, this.constructor.defaults), this.option(r);
1882
- var T = ++m;
1883
- this.element.outlayerGUID = T, y[T] = this, this._create();
1884
- var $ = this._getOption("initLayout");
1885
- $ && this.layout();
1886
- }
1887
- b.namespace = "outlayer", b.Item = c, b.defaults = {
1888
- containerStyle: {
1889
- position: "relative"
1890
- },
1891
- initLayout: !0,
1892
- originLeft: !0,
1893
- originTop: !0,
1894
- resize: !0,
1895
- resizeContainer: !0,
1896
- // item options
1897
- transitionDuration: "0.4s",
1898
- hiddenStyle: {
1899
- opacity: 0,
1900
- transform: "scale(0.001)"
1901
- },
1902
- visibleStyle: {
1903
- opacity: 1,
1904
- transform: "scale(1)"
1905
- }
1906
- };
1907
- var s = b.prototype;
1908
- u.extend(s, n.prototype), s.option = function(i) {
1909
- u.extend(this.options, i);
1910
- }, s._getOption = function(i) {
1911
- var r = this.constructor.compatOptions[i];
1912
- return r && this.options[r] !== void 0 ? this.options[r] : this.options[i];
1913
- }, b.compatOptions = {
1914
- // currentName: oldName
1915
- initLayout: "isInitLayout",
1916
- horizontal: "isHorizontal",
1917
- layoutInstant: "isLayoutInstant",
1918
- originLeft: "isOriginLeft",
1919
- originTop: "isOriginTop",
1920
- resize: "isResizeBound",
1921
- resizeContainer: "isResizingContainer"
1922
- }, s._create = function() {
1923
- this.reloadItems(), this.stamps = [], this.stamp(this.options.stamp), u.extend(this.element.style, this.options.containerStyle);
1924
- var i = this._getOption("resize");
1925
- i && this.bindResize();
1926
- }, s.reloadItems = function() {
1927
- this.items = this._itemize(this.element.children);
1928
- }, s._itemize = function(i) {
1929
- for (var r = this._filterFindItemElements(i), g = this.constructor.Item, T = [], $ = 0; $ < r.length; $++) {
1930
- var L = r[$], H = new g(L, this);
1931
- T.push(H);
1932
- }
1933
- return T;
1934
- }, s._filterFindItemElements = function(i) {
1935
- return u.filterFindElements(i, this.options.itemSelector);
1936
- }, s.getItemElements = function() {
1937
- return this.items.map(function(i) {
1938
- return i.element;
1939
- });
1940
- }, s.layout = function() {
1941
- this._resetLayout(), this._manageStamps();
1942
- var i = this._getOption("layoutInstant"), r = i !== void 0 ? i : !this._isLayoutInited;
1943
- this.layoutItems(this.items, r), this._isLayoutInited = !0;
1944
- }, s._init = s.layout, s._resetLayout = function() {
1945
- this.getSize();
1946
- }, s.getSize = function() {
1947
- this.size = a(this.element);
1948
- }, s._getMeasurement = function(i, r) {
1949
- var g = this.options[i], T;
1950
- g ? (typeof g == "string" ? T = this.element.querySelector(g) : g instanceof HTMLElement && (T = g), this[i] = T ? a(T)[r] : g) : this[i] = 0;
1951
- }, s.layoutItems = function(i, r) {
1952
- i = this._getItemsForLayout(i), this._layoutItems(i, r), this._postLayout();
1953
- }, s._getItemsForLayout = function(i) {
1954
- return i.filter(function(r) {
1955
- return !r.isIgnored;
1956
- });
1957
- }, s._layoutItems = function(i, r) {
1958
- if (this._emitCompleteOnItems("layout", i), !(!i || !i.length)) {
1959
- var g = [];
1960
- i.forEach(function(T) {
1961
- var $ = this._getItemLayoutPosition(T);
1962
- $.item = T, $.isInstant = r || T.isLayoutInstant, g.push($);
1963
- }, this), this._processLayoutQueue(g);
1964
- }
1965
- }, s._getItemLayoutPosition = function() {
1966
- return {
1967
- x: 0,
1968
- y: 0
1969
- };
1970
- }, s._processLayoutQueue = function(i) {
1971
- this.updateStagger(), i.forEach(function(r, g) {
1972
- this._positionItem(r.item, r.x, r.y, r.isInstant, g);
1973
- }, this);
1974
- }, s.updateStagger = function() {
1975
- var i = this.options.stagger;
1976
- if (i == null) {
1977
- this.stagger = 0;
1978
- return;
1979
- }
1980
- return this.stagger = f(i), this.stagger;
1981
- }, s._positionItem = function(i, r, g, T, $) {
1982
- T ? i.goTo(r, g) : (i.stagger($ * this.stagger), i.moveTo(r, g));
1983
- }, s._postLayout = function() {
1984
- this.resizeContainer();
1985
- }, s.resizeContainer = function() {
1986
- var i = this._getOption("resizeContainer");
1987
- if (i) {
1988
- var r = this._getContainerSize();
1989
- r && (this._setContainerMeasure(r.width, !0), this._setContainerMeasure(r.height, !1));
1990
- }
1991
- }, s._getContainerSize = p, s._setContainerMeasure = function(i, r) {
1992
- if (i !== void 0) {
1993
- var g = this.size;
1994
- g.isBorderBox && (i += r ? g.paddingLeft + g.paddingRight + g.borderLeftWidth + g.borderRightWidth : g.paddingBottom + g.paddingTop + g.borderTopWidth + g.borderBottomWidth), i = Math.max(i, 0), this.element.style[r ? "width" : "height"] = i + "px";
1995
- }
1996
- }, s._emitCompleteOnItems = function(i, r) {
1997
- var g = this;
1998
- function T() {
1999
- g.dispatchEvent(i + "Complete", null, [r]);
2000
- }
2001
- var $ = r.length;
2002
- if (!r || !$) {
2003
- T();
2004
- return;
2005
- }
2006
- var L = 0;
2007
- function H() {
2008
- L++, L == $ && T();
2009
- }
2010
- r.forEach(function(D) {
2011
- D.once(i, H);
2012
- });
2013
- }, s.dispatchEvent = function(i, r, g) {
2014
- var T = r ? [r].concat(g) : g;
2015
- if (this.emitEvent(i, T), d)
2016
- if (this.$element = this.$element || d(this.element), r) {
2017
- var $ = d.Event(r);
2018
- $.type = i, this.$element.trigger($, g);
2019
- } else
2020
- this.$element.trigger(i, g);
2021
- }, s.ignore = function(i) {
2022
- var r = this.getItem(i);
2023
- r && (r.isIgnored = !0);
2024
- }, s.unignore = function(i) {
2025
- var r = this.getItem(i);
2026
- r && delete r.isIgnored;
2027
- }, s.stamp = function(i) {
2028
- i = this._find(i), i && (this.stamps = this.stamps.concat(i), i.forEach(this.ignore, this));
2029
- }, s.unstamp = function(i) {
2030
- i = this._find(i), i && i.forEach(function(r) {
2031
- u.removeFrom(this.stamps, r), this.unignore(r);
2032
- }, this);
2033
- }, s._find = function(i) {
2034
- if (i)
2035
- return typeof i == "string" && (i = this.element.querySelectorAll(i)), i = u.makeArray(i), i;
2036
- }, s._manageStamps = function() {
2037
- !this.stamps || !this.stamps.length || (this._getBoundingRect(), this.stamps.forEach(this._manageStamp, this));
2038
- }, s._getBoundingRect = function() {
2039
- var i = this.element.getBoundingClientRect(), r = this.size;
2040
- this._boundingRect = {
2041
- left: i.left + r.paddingLeft + r.borderLeftWidth,
2042
- top: i.top + r.paddingTop + r.borderTopWidth,
2043
- right: i.right - (r.paddingRight + r.borderRightWidth),
2044
- bottom: i.bottom - (r.paddingBottom + r.borderBottomWidth)
2045
- };
2046
- }, s._manageStamp = p, s._getElementOffset = function(i) {
2047
- var r = i.getBoundingClientRect(), g = this._boundingRect, T = a(i), $ = {
2048
- left: r.left - g.left - T.marginLeft,
2049
- top: r.top - g.top - T.marginTop,
2050
- right: g.right - r.right - T.marginRight,
2051
- bottom: g.bottom - r.bottom - T.marginBottom
2052
- };
2053
- return $;
2054
- }, s.handleEvent = u.handleEvent, s.bindResize = function() {
2055
- t.addEventListener("resize", this), this.isResizeBound = !0;
2056
- }, s.unbindResize = function() {
2057
- t.removeEventListener("resize", this), this.isResizeBound = !1;
2058
- }, s.onresize = function() {
2059
- this.resize();
2060
- }, u.debounceMethod(b, "onresize", 100), s.resize = function() {
2061
- !this.isResizeBound || !this.needsResizeLayout() || this.layout();
2062
- }, s.needsResizeLayout = function() {
2063
- var i = a(this.element), r = this.size && i;
2064
- return r && i.innerWidth !== this.size.innerWidth;
2065
- }, s.addItems = function(i) {
2066
- var r = this._itemize(i);
2067
- return r.length && (this.items = this.items.concat(r)), r;
2068
- }, s.appended = function(i) {
2069
- var r = this.addItems(i);
2070
- r.length && (this.layoutItems(r, !0), this.reveal(r));
2071
- }, s.prepended = function(i) {
2072
- var r = this._itemize(i);
2073
- if (r.length) {
2074
- var g = this.items.slice(0);
2075
- this.items = r.concat(g), this._resetLayout(), this._manageStamps(), this.layoutItems(r, !0), this.reveal(r), this.layoutItems(g);
2076
- }
2077
- }, s.reveal = function(i) {
2078
- if (this._emitCompleteOnItems("reveal", i), !(!i || !i.length)) {
2079
- var r = this.updateStagger();
2080
- i.forEach(function(g, T) {
2081
- g.stagger(T * r), g.reveal();
2082
- });
2083
- }
2084
- }, s.hide = function(i) {
2085
- if (this._emitCompleteOnItems("hide", i), !(!i || !i.length)) {
2086
- var r = this.updateStagger();
2087
- i.forEach(function(g, T) {
2088
- g.stagger(T * r), g.hide();
2089
- });
2090
- }
2091
- }, s.revealItemElements = function(i) {
2092
- var r = this.getItems(i);
2093
- this.reveal(r);
2094
- }, s.hideItemElements = function(i) {
2095
- var r = this.getItems(i);
2096
- this.hide(r);
2097
- }, s.getItem = function(i) {
2098
- for (var r = 0; r < this.items.length; r++) {
2099
- var g = this.items[r];
2100
- if (g.element == i)
2101
- return g;
2102
- }
2103
- }, s.getItems = function(i) {
2104
- i = u.makeArray(i);
2105
- var r = [];
2106
- return i.forEach(function(g) {
2107
- var T = this.getItem(g);
2108
- T && r.push(T);
2109
- }, this), r;
2110
- }, s.remove = function(i) {
2111
- var r = this.getItems(i);
2112
- this._emitCompleteOnItems("remove", r), !(!r || !r.length) && r.forEach(function(g) {
2113
- g.remove(), u.removeFrom(this.items, g);
2114
- }, this);
2115
- }, s.destroy = function() {
2116
- var i = this.element.style;
2117
- i.height = "", i.position = "", i.width = "", this.items.forEach(function(g) {
2118
- g.destroy();
2119
- }), this.unbindResize();
2120
- var r = this.element.outlayerGUID;
2121
- delete y[r], delete this.element.outlayerGUID, d && d.removeData(this.element, this.constructor.namespace);
2122
- }, b.data = function(i) {
2123
- i = u.getQueryElement(i);
2124
- var r = i && i.outlayerGUID;
2125
- return r && y[r];
2126
- }, b.create = function(i, r) {
2127
- var g = k(b);
2128
- return g.defaults = u.extend({}, b.defaults), u.extend(g.defaults, r), g.compatOptions = u.extend({}, b.compatOptions), g.namespace = i, g.data = b.data, g.Item = k(c), u.htmlInit(g, i), d && d.bridget && d.bridget(i, g), g;
2129
- };
2130
- function k(i) {
2131
- function r() {
2132
- i.apply(this, arguments);
2133
- }
2134
- return r.prototype = Object.create(i.prototype), r.prototype.constructor = r, r;
2135
- }
2136
- var _ = {
2137
- ms: 1,
2138
- s: 1e3
2139
- };
2140
- function f(i) {
2141
- if (typeof i == "number")
2142
- return i;
2143
- var r = i.match(/(^\d*\.?\d*)(\w*)/), g = r && r[1], T = r && r[2];
2144
- if (!g.length)
2145
- return 0;
2146
- g = parseFloat(g);
2147
- var $ = _[T] || 1;
2148
- return g * $;
2149
- }
2150
- return b.Item = c, b;
2151
- });
2152
- }(Oe)), Oe.exports;
2153
- }
2154
- /*!
2155
- * Masonry v4.2.2
2156
- * Cascading grid layout library
2157
- * https://masonry.desandro.com
2158
- * MIT License
2159
- * by David DeSandro
2160
- */
2161
- (function(o) {
2162
- (function(e, t) {
2163
- o.exports ? o.exports = t(
2164
- vi(),
2165
- Je()
2166
- ) : e.Masonry = t(
2167
- e.Outlayer,
2168
- e.getSize
2169
- );
2170
- })(window, function(t, n) {
2171
- var a = t.create("masonry");
2172
- a.compatOptions.fitWidth = "isFitWidth";
2173
- var u = a.prototype;
2174
- return u._resetLayout = function() {
2175
- this.getSize(), this._getMeasurement("columnWidth", "outerWidth"), this._getMeasurement("gutter", "outerWidth"), this.measureColumns(), this.colYs = [];
2176
- for (var c = 0; c < this.cols; c++)
2177
- this.colYs.push(0);
2178
- this.maxY = 0, this.horizontalColIndex = 0;
2179
- }, u.measureColumns = function() {
2180
- if (this.getContainerWidth(), !this.columnWidth) {
2181
- var c = this.items[0], h = c && c.element;
2182
- this.columnWidth = h && n(h).outerWidth || // if first elem has no width, default to size of container
2183
- this.containerWidth;
2184
- }
2185
- var d = this.columnWidth += this.gutter, p = this.containerWidth + this.gutter, m = p / d, y = d - p % d, b = y && y < 1 ? "round" : "floor";
2186
- m = Math[b](m), this.cols = Math.max(m, 1);
2187
- }, u.getContainerWidth = function() {
2188
- var c = this._getOption("fitWidth"), h = c ? this.element.parentNode : this.element, d = n(h);
2189
- this.containerWidth = d && d.innerWidth;
2190
- }, u._getItemLayoutPosition = function(c) {
2191
- c.getSize();
2192
- var h = c.size.outerWidth % this.columnWidth, d = h && h < 1 ? "round" : "ceil", p = Math[d](c.size.outerWidth / this.columnWidth);
2193
- p = Math.min(p, this.cols);
2194
- for (var m = this.options.horizontalOrder ? "_getHorizontalColPosition" : "_getTopColPosition", y = this[m](p, c), b = {
2195
- x: this.columnWidth * y.col,
2196
- y: y.y
2197
- }, s = y.y + c.size.outerHeight, k = p + y.col, _ = y.col; _ < k; _++)
2198
- this.colYs[_] = s;
2199
- return b;
2200
- }, u._getTopColPosition = function(c) {
2201
- var h = this._getTopColGroup(c), d = Math.min.apply(Math, h);
2202
- return {
2203
- col: h.indexOf(d),
2204
- y: d
2205
- };
2206
- }, u._getTopColGroup = function(c) {
2207
- if (c < 2)
2208
- return this.colYs;
2209
- for (var h = [], d = this.cols + 1 - c, p = 0; p < d; p++)
2210
- h[p] = this._getColGroupY(p, c);
2211
- return h;
2212
- }, u._getColGroupY = function(c, h) {
2213
- if (h < 2)
2214
- return this.colYs[c];
2215
- var d = this.colYs.slice(c, c + h);
2216
- return Math.max.apply(Math, d);
2217
- }, u._getHorizontalColPosition = function(c, h) {
2218
- var d = this.horizontalColIndex % this.cols, p = c > 1 && d + c > this.cols;
2219
- d = p ? 0 : d;
2220
- var m = h.size.outerWidth && h.size.outerHeight;
2221
- return this.horizontalColIndex = m ? d + c : this.horizontalColIndex, {
2222
- col: d,
2223
- y: this._getColGroupY(d, c)
2224
- };
2225
- }, u._manageStamp = function(c) {
2226
- var h = n(c), d = this._getElementOffset(c), p = this._getOption("originLeft"), m = p ? d.left : d.right, y = m + h.outerWidth, b = Math.floor(m / this.columnWidth);
2227
- b = Math.max(0, b);
2228
- var s = Math.floor(y / this.columnWidth);
2229
- s -= y % this.columnWidth ? 0 : 1, s = Math.min(this.cols - 1, s);
2230
- for (var k = this._getOption("originTop"), _ = (k ? d.top : d.bottom) + h.outerHeight, f = b; f <= s; f++)
2231
- this.colYs[f] = Math.max(_, this.colYs[f]);
2232
- }, u._getContainerSize = function() {
2233
- this.maxY = Math.max.apply(Math, this.colYs);
2234
- var c = {
2235
- height: this.maxY
2236
- };
2237
- return this._getOption("fitWidth") && (c.width = this._getContainerFitWidth()), c;
2238
- }, u._getContainerFitWidth = function() {
2239
- for (var c = 0, h = this.cols; --h && this.colYs[h] === 0; )
2240
- c++;
2241
- return (this.cols - c) * this.columnWidth - this.gutter;
2242
- }, u.needsResizeLayout = function() {
2243
- var c = this.containerWidth;
2244
- return this.getContainerWidth(), c != this.containerWidth;
2245
- }, a;
2246
- });
2247
- })(Lt);
2248
- var yi = Lt.exports;
2249
- const ft = /* @__PURE__ */ Vt(yi);
2250
- var Pt = { exports: {} };
2251
- /*!
2252
- * imagesLoaded v4.1.4
2253
- * JavaScript is all like "You images are done yet or what?"
2254
- * MIT License
2255
- */
2256
- (function(o) {
2257
- (function(e, t) {
2258
- o.exports ? o.exports = t(
2259
- e,
2260
- Qe()
2261
- ) : e.imagesLoaded = t(
2262
- e,
2263
- e.EvEmitter
2264
- );
2265
- })(
2266
- typeof window != "undefined" ? window : St,
2267
- // -------------------------- factory -------------------------- //
2268
- function(t, n) {
2269
- var a = t.jQuery, u = t.console;
2270
- function c(s, k) {
2271
- for (var _ in k)
2272
- s[_] = k[_];
2273
- return s;
2274
- }
2275
- var h = Array.prototype.slice;
2276
- function d(s) {
2277
- if (Array.isArray(s))
2278
- return s;
2279
- var k = typeof s == "object" && typeof s.length == "number";
2280
- return k ? h.call(s) : [s];
2281
- }
2282
- function p(s, k, _) {
2283
- if (!(this instanceof p))
2284
- return new p(s, k, _);
2285
- var f = s;
2286
- if (typeof s == "string" && (f = document.querySelectorAll(s)), !f) {
2287
- u.error("Bad element for imagesLoaded " + (f || s));
2288
- return;
2289
- }
2290
- this.elements = d(f), this.options = c({}, this.options), typeof k == "function" ? _ = k : c(this.options, k), _ && this.on("always", _), this.getImages(), a && (this.jqDeferred = new a.Deferred()), setTimeout(this.check.bind(this));
2291
- }
2292
- p.prototype = Object.create(n.prototype), p.prototype.options = {}, p.prototype.getImages = function() {
2293
- this.images = [], this.elements.forEach(this.addElementImages, this);
2294
- }, p.prototype.addElementImages = function(s) {
2295
- s.nodeName == "IMG" && this.addImage(s), this.options.background === !0 && this.addElementBackgroundImages(s);
2296
- var k = s.nodeType;
2297
- if (!(!k || !m[k])) {
2298
- for (var _ = s.querySelectorAll("img"), f = 0; f < _.length; f++) {
2299
- var i = _[f];
2300
- this.addImage(i);
2301
- }
2302
- if (typeof this.options.background == "string") {
2303
- var r = s.querySelectorAll(this.options.background);
2304
- for (f = 0; f < r.length; f++) {
2305
- var g = r[f];
2306
- this.addElementBackgroundImages(g);
2307
- }
2308
- }
2309
- }
2310
- };
2311
- var m = {
2312
- 1: !0,
2313
- 9: !0,
2314
- 11: !0
2315
- };
2316
- p.prototype.addElementBackgroundImages = function(s) {
2317
- var k = getComputedStyle(s);
2318
- if (k)
2319
- for (var _ = /url\((['"])?(.*?)\1\)/gi, f = _.exec(k.backgroundImage); f !== null; ) {
2320
- var i = f && f[2];
2321
- i && this.addBackground(i, s), f = _.exec(k.backgroundImage);
2322
- }
2323
- }, p.prototype.addImage = function(s) {
2324
- var k = new y(s);
2325
- this.images.push(k);
2326
- }, p.prototype.addBackground = function(s, k) {
2327
- var _ = new b(s, k);
2328
- this.images.push(_);
2329
- }, p.prototype.check = function() {
2330
- var s = this;
2331
- if (this.progressedCount = 0, this.hasAnyBroken = !1, !this.images.length) {
2332
- this.complete();
2333
- return;
2334
- }
2335
- function k(_, f, i) {
2336
- setTimeout(function() {
2337
- s.progress(_, f, i);
2338
- });
2339
- }
2340
- this.images.forEach(function(_) {
2341
- _.once("progress", k), _.check();
2342
- });
2343
- }, p.prototype.progress = function(s, k, _) {
2344
- this.progressedCount++, this.hasAnyBroken = this.hasAnyBroken || !s.isLoaded, this.emitEvent("progress", [this, s, k]), this.jqDeferred && this.jqDeferred.notify && this.jqDeferred.notify(this, s), this.progressedCount == this.images.length && this.complete(), this.options.debug && u && u.log("progress: " + _, s, k);
2345
- }, p.prototype.complete = function() {
2346
- var s = this.hasAnyBroken ? "fail" : "done";
2347
- if (this.isComplete = !0, this.emitEvent(s, [this]), this.emitEvent("always", [this]), this.jqDeferred) {
2348
- var k = this.hasAnyBroken ? "reject" : "resolve";
2349
- this.jqDeferred[k](this);
2350
- }
2351
- };
2352
- function y(s) {
2353
- this.img = s;
2354
- }
2355
- y.prototype = Object.create(n.prototype), y.prototype.check = function() {
2356
- var s = this.getIsImageComplete();
2357
- if (s) {
2358
- this.confirm(this.img.naturalWidth !== 0, "naturalWidth");
2359
- return;
2360
- }
2361
- this.proxyImage = new Image(), this.proxyImage.addEventListener("load", this), this.proxyImage.addEventListener("error", this), this.img.addEventListener("load", this), this.img.addEventListener("error", this), this.proxyImage.src = this.img.src;
2362
- }, y.prototype.getIsImageComplete = function() {
2363
- return this.img.complete && this.img.naturalWidth;
2364
- }, y.prototype.confirm = function(s, k) {
2365
- this.isLoaded = s, this.emitEvent("progress", [this, this.img, k]);
2366
- }, y.prototype.handleEvent = function(s) {
2367
- var k = "on" + s.type;
2368
- this[k] && this[k](s);
2369
- }, y.prototype.onload = function() {
2370
- this.confirm(!0, "onload"), this.unbindEvents();
2371
- }, y.prototype.onerror = function() {
2372
- this.confirm(!1, "onerror"), this.unbindEvents();
2373
- }, y.prototype.unbindEvents = function() {
2374
- this.proxyImage.removeEventListener("load", this), this.proxyImage.removeEventListener("error", this), this.img.removeEventListener("load", this), this.img.removeEventListener("error", this);
2375
- };
2376
- function b(s, k) {
2377
- this.url = s, this.element = k, this.img = new Image();
2378
- }
2379
- return b.prototype = Object.create(y.prototype), b.prototype.check = function() {
2380
- this.img.addEventListener("load", this), this.img.addEventListener("error", this), this.img.src = this.url;
2381
- var s = this.getIsImageComplete();
2382
- s && (this.confirm(this.img.naturalWidth !== 0, "naturalWidth"), this.unbindEvents());
2383
- }, b.prototype.unbindEvents = function() {
2384
- this.img.removeEventListener("load", this), this.img.removeEventListener("error", this);
2385
- }, b.prototype.confirm = function(s, k) {
2386
- this.isLoaded = s, this.emitEvent("progress", [this, this.element, k]);
2387
- }, p.makeJQueryPlugin = function(s) {
2388
- s = s || t.jQuery, s && (a = s, a.fn.imagesLoaded = function(k, _) {
2389
- var f = new p(this, k, _);
2390
- return f.jqDeferred.promise(a(this));
2391
- });
2392
- }, p.makeJQueryPlugin(), p;
2393
- }
2394
- );
2395
- })(Pt);
2396
- var bi = Pt.exports;
2397
- const ki = /* @__PURE__ */ Vt(bi);
2398
- function _i(o) {
2399
- return { all: o = o || /* @__PURE__ */ new Map(), on: function(e, t) {
2400
- var n = o.get(e);
2401
- n ? n.push(t) : o.set(e, [t]);
2402
- }, off: function(e, t) {
2403
- var n = o.get(e);
2404
- n && (t ? n.splice(n.indexOf(t) >>> 0, 1) : o.set(e, []));
2405
- }, emit: function(e, t) {
2406
- var n = o.get(e);
2407
- n && n.slice().map(function(a) {
2408
- a(t);
2409
- }), (n = o.get("*")) && n.slice().map(function(a) {
2410
- a(e, t);
2411
- });
2412
- } };
2413
- }
2414
- const ye = {
2415
- "column-width": "columnWidth",
2416
- "transition-duration": "transitionDuration",
2417
- "item-selector": "itemSelector",
2418
- "origin-left": "originLeft",
2419
- "origin-top": "originTop",
2420
- "fit-width": "fitWidth",
2421
- stamp: "stamp",
2422
- gutter: "gutter",
2423
- "percent-position": "percentPosition",
2424
- "horizontal-order": "horizontalOrder",
2425
- stagger: "stagger",
2426
- "destroy-delay": "destroyDelay"
2427
- }, be = "vuemasonry.itemAdded", ze = "vuemasonry.itemRemoved", We = "vuemasonry.imageLoaded", Ne = "vuemasonry.destroy", Ei = function(o) {
2428
- return (o + "").toLowerCase() === "true";
2429
- }, Ti = function(o) {
2430
- return isNaN(o) ? o : parseInt(o);
2431
- }, Ii = function(o) {
2432
- const e = {};
2433
- return Array.prototype.slice.call(o).forEach(function(n) {
2434
- Object.keys(ye).indexOf(n.name) > -1 && (n.name.indexOf("origin") > -1 ? e[ye[n.name]] = Ei(n.value) : n.name === "column-width" || n.name === "gutter" ? e[ye[n.name]] = Ti(n.value) : e[ye[n.name]] = n.value);
2435
- }), e;
2436
- }, xt = {};
2437
- xt.install = function(o, e) {
2438
- const t = _i(), n = "VueMasonry", a = o;
2439
- a.directive("masonry", {
2440
- props: ["transitionDuration", " itemSelector", "destroyDelay"],
2441
- mounted: function(u, c) {
2442
- if (!ft)
2443
- throw new Error("Masonry plugin is not defined. Please check it's connected and parsed correctly.");
2444
- const h = Ii(u.attributes), d = new ft(u, h), p = c.value || n, m = h.destroyDelay ? parseInt(h.destroyDelay, 10) : void 0, y = function() {
2445
- d.reloadItems(), d.layout();
2446
- };
2447
- $t(() => {
2448
- y();
2449
- });
2450
- const b = function(k) {
2451
- y();
2452
- }, s = function(k) {
2453
- t.off(`${be}__${p}`, b), t.off(`${ze}__${p}`, b), t.off(`${We}__${p}`, b), t.off(`${Ne}__${p}`, s);
2454
- const _ = m && !Number.isNaN(m) ? m : 0;
2455
- setTimeout(function() {
2456
- d.destroy();
2457
- }, _);
2458
- };
2459
- t.on(`${be}__${p}`, b), t.on(`${ze}__${p}`, b), t.on(`${We}__${p}`, b), t.on(`${Ne}__${p}`, s);
2460
- },
2461
- unbind: function(u, c) {
2462
- const h = c.value || n;
2463
- t.emit(`${Ne}__${h}`);
2464
- }
2465
- }), a.directive("masonryTile", {
2466
- mounted: function(u, c) {
2467
- const h = c.value || n;
2468
- t.emit(`${be}__${h}`, {
2469
- element: u
2470
- }), new ki(u, function() {
2471
- t.emit(`${We}__${h}`, {
2472
- element: u
2473
- });
2474
- });
2475
- },
2476
- unbind: function(u, c) {
2477
- const h = c.value || n;
2478
- t.emit(`${ze}__${h}`, {
2479
- element: u
2480
- });
2481
- }
2482
- });
2483
- {
2484
- const u = function(c) {
2485
- const h = c || n;
2486
- t.emit(`${be}__${h}`);
2487
- };
2488
- o.config.globalProperties.$redrawVueMasonry = u, o.provide("redrawVueMasonry", u);
2489
- }
2490
- };
2491
- function Ge(o, e = {}, t) {
2492
- for (const n in o) {
2493
- const a = o[n], u = t ? `${t}:${n}` : n;
2494
- typeof a == "object" && a !== null ? Ge(a, e, u) : typeof a == "function" && (e[u] = a);
1581
+ }), Te = /* @__PURE__ */ ce(nn, [["__scopeId", "data-v-046ea616"]]);
1582
+ function Xe(n, l = {}, t) {
1583
+ for (const e in n) {
1584
+ const i = n[e], s = t ? `${t}:${e}` : e;
1585
+ typeof i == "object" && i !== null ? Xe(i, l, s) : typeof i == "function" && (l[s] = i);
2495
1586
  }
2496
- return e;
1587
+ return l;
2497
1588
  }
2498
- const Ci = { run: (o) => o() }, $i = () => Ci, wt = typeof console.createTask != "undefined" ? console.createTask : $i;
2499
- function Si(o, e) {
2500
- const t = e.shift(), n = wt(t);
2501
- return o.reduce(
2502
- (a, u) => a.then(() => n.run(() => u(...e))),
1589
+ const an = { run: (n) => n() }, sn = () => an, Pt = typeof console.createTask < "u" ? console.createTask : sn;
1590
+ function rn(n, l) {
1591
+ const t = l.shift(), e = Pt(t);
1592
+ return n.reduce(
1593
+ (i, s) => i.then(() => e.run(() => s(...l))),
2503
1594
  Promise.resolve()
2504
1595
  );
2505
1596
  }
2506
- function Vi(o, e) {
2507
- const t = e.shift(), n = wt(t);
2508
- return Promise.all(o.map((a) => n.run(() => a(...e))));
1597
+ function dn(n, l) {
1598
+ const t = l.shift(), e = Pt(t);
1599
+ return Promise.all(n.map((i) => e.run(() => i(...l))));
2509
1600
  }
2510
- function Fe(o, e) {
2511
- for (const t of [...o])
2512
- t(e);
1601
+ function Je(n, l) {
1602
+ for (const t of [...n])
1603
+ t(l);
2513
1604
  }
2514
- class Li {
1605
+ class un {
2515
1606
  constructor() {
2516
1607
  this._hooks = {}, this._before = void 0, this._after = void 0, this._deprecatedMessages = void 0, this._deprecatedHooks = {}, this.hook = this.hook.bind(this), this.callHook = this.callHook.bind(this), this.callHookWith = this.callHookWith.bind(this);
2517
1608
  }
2518
- hook(e, t, n = {}) {
2519
- if (!e || typeof t != "function")
1609
+ hook(l, t, e = {}) {
1610
+ if (!l || typeof t != "function")
2520
1611
  return () => {
2521
1612
  };
2522
- const a = e;
2523
- let u;
2524
- for (; this._deprecatedHooks[e]; )
2525
- u = this._deprecatedHooks[e], e = u.to;
2526
- if (u && !n.allowDeprecated) {
2527
- let c = u.message;
2528
- c || (c = `${a} hook has been deprecated` + (u.to ? `, please use ${u.to}` : "")), this._deprecatedMessages || (this._deprecatedMessages = /* @__PURE__ */ new Set()), this._deprecatedMessages.has(c) || (console.warn(c), this._deprecatedMessages.add(c));
1613
+ const i = l;
1614
+ let s;
1615
+ for (; this._deprecatedHooks[l]; )
1616
+ s = this._deprecatedHooks[l], l = s.to;
1617
+ if (s && !e.allowDeprecated) {
1618
+ let m = s.message;
1619
+ m || (m = `${i} hook has been deprecated` + (s.to ? `, please use ${s.to}` : "")), this._deprecatedMessages || (this._deprecatedMessages = /* @__PURE__ */ new Set()), this._deprecatedMessages.has(m) || (console.warn(m), this._deprecatedMessages.add(m));
2529
1620
  }
2530
1621
  if (!t.name)
2531
1622
  try {
2532
1623
  Object.defineProperty(t, "name", {
2533
- get: () => "_" + e.replace(/\W+/g, "_") + "_hook_cb",
1624
+ get: () => "_" + l.replace(/\W+/g, "_") + "_hook_cb",
2534
1625
  configurable: !0
2535
1626
  });
2536
- } catch (c) {
1627
+ } catch {
2537
1628
  }
2538
- return this._hooks[e] = this._hooks[e] || [], this._hooks[e].push(t), () => {
2539
- t && (this.removeHook(e, t), t = void 0);
1629
+ return this._hooks[l] = this._hooks[l] || [], this._hooks[l].push(t), () => {
1630
+ t && (this.removeHook(l, t), t = void 0);
2540
1631
  };
2541
1632
  }
2542
- hookOnce(e, t) {
2543
- let n, a = (...u) => (typeof n == "function" && n(), n = void 0, a = void 0, t(...u));
2544
- return n = this.hook(e, a), n;
1633
+ hookOnce(l, t) {
1634
+ let e, i = (...s) => (typeof e == "function" && e(), e = void 0, i = void 0, t(...s));
1635
+ return e = this.hook(l, i), e;
2545
1636
  }
2546
- removeHook(e, t) {
2547
- if (this._hooks[e]) {
2548
- const n = this._hooks[e].indexOf(t);
2549
- n !== -1 && this._hooks[e].splice(n, 1), this._hooks[e].length === 0 && delete this._hooks[e];
1637
+ removeHook(l, t) {
1638
+ if (this._hooks[l]) {
1639
+ const e = this._hooks[l].indexOf(t);
1640
+ e !== -1 && this._hooks[l].splice(e, 1), this._hooks[l].length === 0 && delete this._hooks[l];
2550
1641
  }
2551
1642
  }
2552
- deprecateHook(e, t) {
2553
- this._deprecatedHooks[e] = typeof t == "string" ? { to: t } : t;
2554
- const n = this._hooks[e] || [];
2555
- delete this._hooks[e];
2556
- for (const a of n)
2557
- this.hook(e, a);
1643
+ deprecateHook(l, t) {
1644
+ this._deprecatedHooks[l] = typeof t == "string" ? { to: t } : t;
1645
+ const e = this._hooks[l] || [];
1646
+ delete this._hooks[l];
1647
+ for (const i of e)
1648
+ this.hook(l, i);
2558
1649
  }
2559
- deprecateHooks(e) {
2560
- Object.assign(this._deprecatedHooks, e);
2561
- for (const t in e)
2562
- this.deprecateHook(t, e[t]);
1650
+ deprecateHooks(l) {
1651
+ Object.assign(this._deprecatedHooks, l);
1652
+ for (const t in l)
1653
+ this.deprecateHook(t, l[t]);
2563
1654
  }
2564
- addHooks(e) {
2565
- const t = Ge(e), n = Object.keys(t).map(
2566
- (a) => this.hook(a, t[a])
1655
+ addHooks(l) {
1656
+ const t = Xe(l), e = Object.keys(t).map(
1657
+ (i) => this.hook(i, t[i])
2567
1658
  );
2568
1659
  return () => {
2569
- for (const a of n.splice(0, n.length))
2570
- a();
1660
+ for (const i of e.splice(0, e.length))
1661
+ i();
2571
1662
  };
2572
1663
  }
2573
- removeHooks(e) {
2574
- const t = Ge(e);
2575
- for (const n in t)
2576
- this.removeHook(n, t[n]);
1664
+ removeHooks(l) {
1665
+ const t = Xe(l);
1666
+ for (const e in t)
1667
+ this.removeHook(e, t[e]);
2577
1668
  }
2578
1669
  removeAllHooks() {
2579
- for (const e in this._hooks)
2580
- delete this._hooks[e];
1670
+ for (const l in this._hooks)
1671
+ delete this._hooks[l];
2581
1672
  }
2582
- callHook(e, ...t) {
2583
- return t.unshift(e), this.callHookWith(Si, e, ...t);
1673
+ callHook(l, ...t) {
1674
+ return t.unshift(l), this.callHookWith(rn, l, ...t);
2584
1675
  }
2585
- callHookParallel(e, ...t) {
2586
- return t.unshift(e), this.callHookWith(Vi, e, ...t);
1676
+ callHookParallel(l, ...t) {
1677
+ return t.unshift(l), this.callHookWith(dn, l, ...t);
2587
1678
  }
2588
- callHookWith(e, t, ...n) {
2589
- const a = this._before || this._after ? { name: t, args: n, context: {} } : void 0;
2590
- this._before && Fe(this._before, a);
2591
- const u = e(
1679
+ callHookWith(l, t, ...e) {
1680
+ const i = this._before || this._after ? { name: t, args: e, context: {} } : void 0;
1681
+ this._before && Je(this._before, i);
1682
+ const s = l(
2592
1683
  t in this._hooks ? [...this._hooks[t]] : [],
2593
- n
1684
+ e
2594
1685
  );
2595
- return u instanceof Promise ? u.finally(() => {
2596
- this._after && a && Fe(this._after, a);
2597
- }) : (this._after && a && Fe(this._after, a), u);
1686
+ return s instanceof Promise ? s.finally(() => {
1687
+ this._after && i && Je(this._after, i);
1688
+ }) : (this._after && i && Je(this._after, i), s);
2598
1689
  }
2599
- beforeEach(e) {
2600
- return this._before = this._before || [], this._before.push(e), () => {
1690
+ beforeEach(l) {
1691
+ return this._before = this._before || [], this._before.push(l), () => {
2601
1692
  if (this._before !== void 0) {
2602
- const t = this._before.indexOf(e);
1693
+ const t = this._before.indexOf(l);
2603
1694
  t !== -1 && this._before.splice(t, 1);
2604
1695
  }
2605
1696
  };
2606
1697
  }
2607
- afterEach(e) {
2608
- return this._after = this._after || [], this._after.push(e), () => {
1698
+ afterEach(l) {
1699
+ return this._after = this._after || [], this._after.push(l), () => {
2609
1700
  if (this._after !== void 0) {
2610
- const t = this._after.indexOf(e);
1701
+ const t = this._after.indexOf(l);
2611
1702
  t !== -1 && this._after.splice(t, 1);
2612
1703
  }
2613
1704
  };
2614
1705
  }
2615
1706
  }
2616
- function Pi() {
2617
- return new Li();
1707
+ function cn() {
1708
+ return new un();
2618
1709
  }
2619
- function xi(o) {
2620
- return Array.isArray(o) ? o : [o];
1710
+ function pn(n) {
1711
+ return Array.isArray(n) ? n : [n];
2621
1712
  }
2622
- const wi = ["title", "titleTemplate", "script", "style", "noscript"], ke = [
1713
+ const mn = ["title", "titleTemplate", "script", "style", "noscript"], $e = [
2623
1714
  "base",
2624
1715
  "meta",
2625
1716
  "link",
2626
1717
  "style",
2627
1718
  "script",
2628
1719
  "noscript"
2629
- ], Hi = [
1720
+ ], fn = [
2630
1721
  "title",
2631
1722
  "titleTemplate",
2632
1723
  "templateParams",
@@ -2638,80 +1729,75 @@ const wi = ["title", "titleTemplate", "script", "style", "noscript"], ke = [
2638
1729
  "style",
2639
1730
  "script",
2640
1731
  "noscript"
2641
- ], Oi = ["base", "title", "titleTemplate", "bodyAttrs", "htmlAttrs", "templateParams"], Ht = ["tagPosition", "tagPriority", "tagDuplicateStrategy", "children", "innerHTML", "textContent", "processTemplateParams"], Di = typeof window != "undefined";
2642
- function Xe(o) {
2643
- let e = 9;
2644
- for (let t = 0; t < o.length; )
2645
- e = Math.imul(e ^ o.charCodeAt(t++), nt(9, 9));
2646
- return ((e ^ e >>> 9) + 65536).toString(16).substring(1, 8).toLowerCase();
1732
+ ], hn = ["base", "title", "titleTemplate", "bodyAttrs", "htmlAttrs", "templateParams"], At = ["tagPosition", "tagPriority", "tagDuplicateStrategy", "children", "innerHTML", "textContent", "processTemplateParams"], vn = typeof window < "u";
1733
+ function lt(n) {
1734
+ let l = 9;
1735
+ for (let t = 0; t < n.length; )
1736
+ l = Math.imul(l ^ n.charCodeAt(t++), 9 ** 9);
1737
+ return ((l ^ l >>> 9) + 65536).toString(16).substring(1, 8).toLowerCase();
2647
1738
  }
2648
- function mt(o) {
2649
- return o._h || Xe(o._d ? o._d : `${o.tag}:${o.textContent || o.innerHTML || ""}:${Object.entries(o.props).map(([e, t]) => `${e}:${String(t)}`).join(",")}`);
1739
+ function ft(n) {
1740
+ return n._h || lt(n._d ? n._d : `${n.tag}:${n.textContent || n.innerHTML || ""}:${Object.entries(n.props).map(([l, t]) => `${l}:${String(t)}`).join(",")}`);
2650
1741
  }
2651
- function Ot(o, e) {
2652
- const { props: t, tag: n } = o;
2653
- if (Oi.includes(n))
2654
- return n;
2655
- if (n === "link" && t.rel === "canonical")
1742
+ function Dt(n, l) {
1743
+ const { props: t, tag: e } = n;
1744
+ if (hn.includes(e))
1745
+ return e;
1746
+ if (e === "link" && t.rel === "canonical")
2656
1747
  return "canonical";
2657
1748
  if (t.charset)
2658
1749
  return "charset";
2659
- const a = ["id"];
2660
- n === "meta" && a.push("name", "property", "http-equiv");
2661
- for (const u of a)
2662
- if (typeof t[u] != "undefined") {
2663
- const c = String(t[u]);
2664
- return e && !e(c) ? !1 : `${n}:${u}:${c}`;
1750
+ const i = ["id"];
1751
+ e === "meta" && i.push("name", "property", "http-equiv");
1752
+ for (const s of i)
1753
+ if (typeof t[s] < "u") {
1754
+ const m = String(t[s]);
1755
+ return l && !l(m) ? !1 : `${e}:${s}:${m}`;
2665
1756
  }
2666
1757
  return !1;
2667
1758
  }
2668
- function gt(o, e) {
2669
- return o == null ? e || null : typeof o == "function" ? o(e) : o;
1759
+ function ht(n, l) {
1760
+ return n == null ? l || null : typeof n == "function" ? n(l) : n;
2670
1761
  }
2671
- function Ai(o, e, t) {
2672
- return Q(this, null, function* () {
2673
- const n = {
2674
- tag: o,
2675
- props: yield Dt(
2676
- // explicitly check for an object
2677
- // @ts-expect-error untyped
2678
- typeof e == "object" && typeof e != "function" && !(e instanceof Promise) ? ee({}, e) : { [["script", "noscript", "style"].includes(o) ? "innerHTML" : "textContent"]: e },
2679
- ["templateParams", "titleTemplate"].includes(o)
2680
- )
2681
- };
2682
- return Ht.forEach((a) => {
2683
- const u = typeof n.props[a] != "undefined" ? n.props[a] : t[a];
2684
- typeof u != "undefined" && ((!["innerHTML", "textContent", "children"].includes(a) || wi.includes(n.tag)) && (n[a === "children" ? "innerHTML" : a] = u), delete n.props[a]);
2685
- }), n.props.body && (n.tagPosition = "bodyClose", delete n.props.body), n.tag === "script" && typeof n.innerHTML == "object" && (n.innerHTML = JSON.stringify(n.innerHTML), n.props.type = n.props.type || "application/json"), Array.isArray(n.props.content) ? n.props.content.map((a) => ge(ee({}, n), { props: ge(ee({}, n.props), { content: a }) })) : n;
2686
- });
1762
+ async function yn(n, l, t) {
1763
+ const e = {
1764
+ tag: n,
1765
+ props: await Ht(
1766
+ // explicitly check for an object
1767
+ // @ts-expect-error untyped
1768
+ typeof l == "object" && typeof l != "function" && !(l instanceof Promise) ? { ...l } : { [["script", "noscript", "style"].includes(n) ? "innerHTML" : "textContent"]: l },
1769
+ ["templateParams", "titleTemplate"].includes(n)
1770
+ )
1771
+ };
1772
+ return At.forEach((i) => {
1773
+ const s = typeof e.props[i] < "u" ? e.props[i] : t[i];
1774
+ typeof s < "u" && ((!["innerHTML", "textContent", "children"].includes(i) || mn.includes(e.tag)) && (e[i === "children" ? "innerHTML" : i] = s), delete e.props[i]);
1775
+ }), e.props.body && (e.tagPosition = "bodyClose", delete e.props.body), e.tag === "script" && typeof e.innerHTML == "object" && (e.innerHTML = JSON.stringify(e.innerHTML), e.props.type = e.props.type || "application/json"), Array.isArray(e.props.content) ? e.props.content.map((i) => ({ ...e, props: { ...e.props, content: i } })) : e;
2687
1776
  }
2688
- function Mi(o) {
2689
- return typeof o == "object" && !Array.isArray(o) && (o = Object.keys(o).filter((e) => o[e])), (Array.isArray(o) ? o.join(" ") : o).split(" ").filter((e) => e.trim()).filter(Boolean).join(" ");
1777
+ function gn(n, l) {
1778
+ const t = n === "class" ? " " : ";";
1779
+ return typeof l == "object" && !Array.isArray(l) && (l = Object.entries(l).filter(([, e]) => e).map(([e, i]) => n === "style" ? `${e}:${i}` : e)), (Array.isArray(l) ? l.join(t) : l)?.split(t).filter((e) => e.trim()).filter(Boolean).join(t);
2690
1780
  }
2691
- function Dt(o, e) {
2692
- return Q(this, null, function* () {
2693
- for (const t of Object.keys(o)) {
2694
- if (t === "class") {
2695
- o[t] = Mi(o[t]);
2696
- continue;
2697
- }
2698
- if (o[t] instanceof Promise && (o[t] = yield o[t]), !e && !Ht.includes(t)) {
2699
- const n = String(o[t]), a = t.startsWith("data-");
2700
- n === "true" || n === "" ? o[t] = a ? "true" : !0 : o[t] || (a && n === "false" ? o[t] = "false" : delete o[t]);
2701
- }
1781
+ async function Ht(n, l) {
1782
+ for (const t of Object.keys(n)) {
1783
+ if (["class", "style"].includes(t)) {
1784
+ n[t] = gn(t, n[t]);
1785
+ continue;
2702
1786
  }
2703
- return o;
2704
- });
1787
+ if (n[t] instanceof Promise && (n[t] = await n[t]), !l && !At.includes(t)) {
1788
+ const e = String(n[t]), i = t.startsWith("data-");
1789
+ e === "true" || e === "" ? n[t] = i ? "true" : !0 : n[t] || (i && e === "false" ? n[t] = "false" : delete n[t]);
1790
+ }
1791
+ }
1792
+ return n;
2705
1793
  }
2706
- const Ri = 10;
2707
- function Bi(o) {
2708
- return Q(this, null, function* () {
2709
- const e = [];
2710
- return Object.entries(o.resolvedInput).filter(([t, n]) => typeof n != "undefined" && Hi.includes(t)).forEach(([t, n]) => {
2711
- const a = xi(n);
2712
- e.push(...a.map((u) => Ai(t, u, o)).flat());
2713
- }), (yield Promise.all(e)).flat().filter(Boolean).map((t, n) => (t._e = o._i, o.mode && (t._m = o.mode), t._p = (o._i << Ri) + n, t));
2714
- });
1794
+ const bn = 10;
1795
+ async function kn(n) {
1796
+ const l = [];
1797
+ return Object.entries(n.resolvedInput).filter(([t, e]) => typeof e < "u" && fn.includes(t)).forEach(([t, e]) => {
1798
+ const i = pn(e);
1799
+ l.push(...i.map((s) => yn(t, s, n)).flat());
1800
+ }), (await Promise.all(l)).flat().filter(Boolean).map((t, e) => (t._e = n._i, n.mode && (t._m = n.mode), t._p = (n._i << bn) + e, t));
2715
1801
  }
2716
1802
  const vt = {
2717
1803
  // tags
@@ -2723,424 +1809,409 @@ const vt = {
2723
1809
  high: -10,
2724
1810
  low: 20
2725
1811
  };
2726
- function Ie(o) {
2727
- let e = 100;
2728
- const t = o.tagPriority;
2729
- return typeof t == "number" ? t : (o.tag === "meta" ? (o.props["http-equiv"] === "content-security-policy" && (e = -30), o.props.charset && (e = -20), o.props.name === "viewport" && (e = -15)) : o.tag === "link" && o.props.rel === "preconnect" ? e = 20 : o.tag in vt && (e = vt[o.tag]), typeof t == "string" && t in yt ? e + yt[t] : e);
1812
+ function He(n) {
1813
+ let l = 100;
1814
+ const t = n.tagPriority;
1815
+ return typeof t == "number" ? t : (n.tag === "meta" ? (n.props["http-equiv"] === "content-security-policy" && (l = -30), n.props.charset && (l = -20), n.props.name === "viewport" && (l = -15)) : n.tag === "link" && n.props.rel === "preconnect" ? l = 20 : n.tag in vt && (l = vt[n.tag]), typeof t == "string" && t in yt ? l + yt[t] : l);
2730
1816
  }
2731
- const zi = [{ prefix: "before:", offset: -1 }, { prefix: "after:", offset: 1 }], At = ["onload", "onerror", "onabort", "onprogress", "onloadstart"], te = "%separator";
2732
- function _e(o, e, t) {
2733
- if (typeof o != "string" || !o.includes("%"))
2734
- return o;
2735
- function n(c) {
2736
- let h;
2737
- return ["s", "pageTitle"].includes(c) ? h = e.pageTitle : c.includes(".") ? h = c.split(".").reduce((d, p) => d && d[p] || void 0, e) : h = e[c], typeof h != "undefined" ? (h || "").replace(/"/g, '\\"') : !1;
1817
+ const _n = [{ prefix: "before:", offset: -1 }, { prefix: "after:", offset: 1 }], gt = ["onload", "onerror", "onabort", "onprogress", "onloadstart"], ie = "%separator";
1818
+ function Ce(n, l, t) {
1819
+ if (typeof n != "string" || !n.includes("%"))
1820
+ return n;
1821
+ function e(m) {
1822
+ let p;
1823
+ return ["s", "pageTitle"].includes(m) ? p = l.pageTitle : m.includes(".") ? p = m.split(".").reduce((u, r) => u && u[r] || void 0, l) : p = l[m], typeof p < "u" ? (p || "").replace(/"/g, '\\"') : !1;
2738
1824
  }
2739
- let a = o;
1825
+ let i = n;
2740
1826
  try {
2741
- a = decodeURI(o);
2742
- } catch (c) {
1827
+ i = decodeURI(n);
1828
+ } catch {
2743
1829
  }
2744
- return (a.match(/%(\w+\.+\w+)|%(\w+)/g) || []).sort().reverse().forEach((c) => {
2745
- const h = n(c.slice(1));
2746
- typeof h == "string" && (o = o.replace(new RegExp(`\\${c}(\\W|$)`, "g"), (d, p) => `${h}${p}`).trim());
2747
- }), o.includes(te) && (o.endsWith(te) && (o = o.slice(0, -te.length).trim()), o.startsWith(te) && (o = o.slice(te.length).trim()), o = o.replace(new RegExp(`\\${te}\\s*\\${te}`, "g"), te), o = _e(o, { separator: t }, t)), o;
1830
+ return (i.match(/%(\w+\.+\w+)|%(\w+)/g) || []).sort().reverse().forEach((m) => {
1831
+ const p = e(m.slice(1));
1832
+ typeof p == "string" && (n = n.replace(new RegExp(`\\${m}(\\W|$)`, "g"), (u, r) => `${p}${r}`).trim());
1833
+ }), n.includes(ie) && (n.endsWith(ie) && (n = n.slice(0, -ie.length).trim()), n.startsWith(ie) && (n = n.slice(ie.length).trim()), n = n.replace(new RegExp(`\\${ie}\\s*\\${ie}`, "g"), ie), n = Ce(n, { separator: t }, t)), n;
2748
1834
  }
2749
- function Wi(o) {
2750
- return Q(this, null, function* () {
2751
- const e = {
2752
- tag: o.tagName.toLowerCase(),
2753
- props: yield Dt(
2754
- o.getAttributeNames().reduce((t, n) => ge(ee({}, t), { [n]: o.getAttribute(n) }), {})
2755
- ),
2756
- innerHTML: o.innerHTML
1835
+ async function Vn(n, l = {}) {
1836
+ const t = l.document || n.resolvedOptions.document;
1837
+ if (!t || !n.dirty)
1838
+ return;
1839
+ const e = { shouldRender: !0, tags: [] };
1840
+ if (await n.hooks.callHook("dom:beforeRender", e), !e.shouldRender)
1841
+ return;
1842
+ const i = (await n.resolveTags()).map((d) => ({
1843
+ tag: d,
1844
+ id: $e.includes(d.tag) ? ft(d) : d.tag,
1845
+ shouldRender: !0
1846
+ }));
1847
+ let s = n._dom;
1848
+ if (!s) {
1849
+ s = {
1850
+ elMap: { htmlAttrs: t.documentElement, bodyAttrs: t.body }
2757
1851
  };
2758
- return e._d = Ot(e), e;
2759
- });
2760
- }
2761
- function Ni(t) {
2762
- return Q(this, arguments, function* (o, e = {}) {
2763
- var y;
2764
- const n = e.document || o.resolvedOptions.document;
2765
- if (!n)
2766
- return;
2767
- const a = { shouldRender: o.dirty, tags: [] };
2768
- if (yield o.hooks.callHook("dom:beforeRender", a), !a.shouldRender)
2769
- return;
2770
- const u = (yield o.resolveTags()).map((b) => ({
2771
- tag: b,
2772
- id: ke.includes(b.tag) ? mt(b) : b.tag,
2773
- shouldRender: !0
2774
- }));
2775
- let c = o._dom;
2776
- if (!c) {
2777
- c = {
2778
- elMap: { htmlAttrs: n.documentElement, bodyAttrs: n.body }
2779
- };
2780
- for (const b of ["body", "head"]) {
2781
- const s = (y = n == null ? void 0 : n[b]) == null ? void 0 : y.children;
2782
- for (const k of [...s].filter((_) => ke.includes(_.tagName.toLowerCase())))
2783
- c.elMap[k.getAttribute("data-hid") || mt(yield Wi(k))] = k;
1852
+ for (const d of ["body", "head"]) {
1853
+ const h = t[d]?.children, V = [];
1854
+ for (const P of [...h].filter((C) => $e.includes(C.tagName.toLowerCase()))) {
1855
+ const C = {
1856
+ tag: P.tagName.toLowerCase(),
1857
+ props: await Ht(
1858
+ P.getAttributeNames().reduce((b, w) => ({ ...b, [w]: P.getAttribute(w) }), {})
1859
+ ),
1860
+ innerHTML: P.innerHTML
1861
+ };
1862
+ let S = 1, B = Dt(C);
1863
+ for (; B && V.find((b) => b._d === B); )
1864
+ B = `${B}:${S++}`;
1865
+ C._d = B || void 0, V.push(C), s.elMap[P.getAttribute("data-hid") || ft(C)] = P;
2784
1866
  }
2785
1867
  }
2786
- c.pendingSideEffects = ee({}, c.sideEffects || {}), c.sideEffects = {};
2787
- function h(b, s, k) {
2788
- const _ = `${b}:${s}`;
2789
- c.sideEffects[_] = k, delete c.pendingSideEffects[_];
2790
- }
2791
- function d({ id: b, $el: s, tag: k }) {
2792
- const _ = k.tag.endsWith("Attrs");
2793
- c.elMap[b] = s, _ || (["textContent", "innerHTML"].forEach((f) => {
2794
- k[f] && k[f] !== s[f] && (s[f] = k[f]);
2795
- }), h(b, "el", () => {
2796
- c.elMap[b].remove(), delete c.elMap[b];
2797
- })), Object.entries(k.props).forEach(([f, i]) => {
2798
- const r = `attr:${f}`;
2799
- if (f === "class")
2800
- for (const g of (i || "").split(" ").filter(Boolean))
2801
- _ && h(b, `${r}:${g}`, () => s.classList.remove(g)), !s.classList.contains(g) && s.classList.add(g);
2802
- else
2803
- s.getAttribute(f) !== i && s.setAttribute(f, i === !0 ? "" : String(i)), _ && h(b, r, () => s.removeAttribute(f));
2804
- });
2805
- }
2806
- const p = [], m = {
2807
- bodyClose: void 0,
2808
- bodyOpen: void 0,
2809
- head: void 0
2810
- };
2811
- for (const b of u) {
2812
- const { tag: s, shouldRender: k, id: _ } = b;
2813
- if (k) {
2814
- if (s.tag === "title") {
2815
- n.title = s.textContent;
2816
- continue;
1868
+ }
1869
+ s.pendingSideEffects = { ...s.sideEffects || {} }, s.sideEffects = {};
1870
+ function m(d, h, V) {
1871
+ const P = `${d}:${h}`;
1872
+ s.sideEffects[P] = V, delete s.pendingSideEffects[P];
1873
+ }
1874
+ function p({ id: d, $el: h, tag: V }) {
1875
+ const P = V.tag.endsWith("Attrs");
1876
+ s.elMap[d] = h, P || (["textContent", "innerHTML"].forEach((C) => {
1877
+ V[C] && V[C] !== h[C] && (h[C] = V[C]);
1878
+ }), m(d, "el", () => {
1879
+ s.elMap[d]?.remove(), delete s.elMap[d];
1880
+ }));
1881
+ for (const [C, S] of Object.entries(V._eventHandlers || {}))
1882
+ h.getAttribute(`data-${C}`) !== "" && ((V.tag === "bodyAttrs" ? t.defaultView : h).addEventListener(C.replace("on", ""), S.bind(h)), h.setAttribute(`data-${C}`, ""));
1883
+ Object.entries(V.props).forEach(([C, S]) => {
1884
+ const B = `attr:${C}`;
1885
+ if (C === "class")
1886
+ for (const b of (S || "").split(" ").filter(Boolean))
1887
+ P && m(d, `${B}:${b}`, () => h.classList.remove(b)), !h.classList.contains(b) && h.classList.add(b);
1888
+ else if (C === "style")
1889
+ for (const b of (S || "").split(";").filter(Boolean)) {
1890
+ const [w, ...H] = b.split(":").map((O) => O.trim());
1891
+ m(d, `${B}:${b}:${w}`, () => {
1892
+ h.style.removeProperty(w);
1893
+ }), h.style.setProperty(w, H.join(":"));
2817
1894
  }
2818
- b.$el = b.$el || c.elMap[_], b.$el ? d(b) : ke.includes(s.tag) && p.push(b);
1895
+ else
1896
+ h.getAttribute(C) !== S && h.setAttribute(C, S === !0 ? "" : String(S)), P && m(d, B, () => h.removeAttribute(C));
1897
+ });
1898
+ }
1899
+ const u = [], r = {
1900
+ bodyClose: void 0,
1901
+ bodyOpen: void 0,
1902
+ head: void 0
1903
+ };
1904
+ for (const d of i) {
1905
+ const { tag: h, shouldRender: V, id: P } = d;
1906
+ if (V) {
1907
+ if (h.tag === "title") {
1908
+ t.title = h.textContent;
1909
+ continue;
2819
1910
  }
1911
+ d.$el = d.$el || s.elMap[P], d.$el ? p(d) : $e.includes(h.tag) && u.push(d);
2820
1912
  }
2821
- for (const b of p) {
2822
- const s = b.tag.tagPosition || "head";
2823
- b.$el = n.createElement(b.tag.tag), d(b), m[s] = m[s] || n.createDocumentFragment(), m[s].appendChild(b.$el);
2824
- }
2825
- for (const b of u)
2826
- yield o.hooks.callHook("dom:renderTag", b, n, h);
2827
- m.head && n.head.appendChild(m.head), m.bodyOpen && n.body.insertBefore(m.bodyOpen, n.body.firstChild), m.bodyClose && n.body.appendChild(m.bodyClose), Object.values(c.pendingSideEffects).forEach((b) => b()), o._dom = c, o.dirty = !1, yield o.hooks.callHook("dom:rendered", { renders: u });
2828
- });
1913
+ }
1914
+ for (const d of u) {
1915
+ const h = d.tag.tagPosition || "head";
1916
+ d.$el = t.createElement(d.tag.tag), p(d), r[h] = r[h] || t.createDocumentFragment(), r[h].appendChild(d.$el);
1917
+ }
1918
+ for (const d of i)
1919
+ await n.hooks.callHook("dom:renderTag", d, t, m);
1920
+ r.head && t.head.appendChild(r.head), r.bodyOpen && t.body.insertBefore(r.bodyOpen, t.body.firstChild), r.bodyClose && t.body.appendChild(r.bodyClose), Object.values(s.pendingSideEffects).forEach((d) => d()), n._dom = s, n.dirty = !1, await n.hooks.callHook("dom:rendered", { renders: i });
2829
1921
  }
2830
- function Fi(t) {
2831
- return Q(this, arguments, function* (o, e = {}) {
2832
- const n = e.delayFn || ((a) => setTimeout(a, 10));
2833
- return o._domUpdatePromise = o._domUpdatePromise || new Promise((a) => n(() => Q(this, null, function* () {
2834
- yield Ni(o, e), delete o._domUpdatePromise, a();
2835
- })));
2836
- });
1922
+ async function Tn(n, l = {}) {
1923
+ const t = l.delayFn || ((e) => setTimeout(e, 10));
1924
+ return n._domUpdatePromise = n._domUpdatePromise || new Promise((e) => t(async () => {
1925
+ await Vn(n, l), delete n._domUpdatePromise, e();
1926
+ }));
2837
1927
  }
2838
1928
  // @__NO_SIDE_EFFECTS__
2839
- function qi(o) {
2840
- return (e) => {
2841
- var n, a;
2842
- const t = ((a = (n = e.resolvedOptions.document) == null ? void 0 : n.head.querySelector('script[id="unhead:payload"]')) == null ? void 0 : a.innerHTML) || !1;
2843
- return t && e.push(JSON.parse(t)), {
1929
+ function $n(n) {
1930
+ return (l) => {
1931
+ const t = l.resolvedOptions.document?.head.querySelector('script[id="unhead:payload"]')?.innerHTML || !1;
1932
+ return t && l.push(JSON.parse(t)), {
2844
1933
  mode: "client",
2845
1934
  hooks: {
2846
- "entries:updated": function(u) {
2847
- Fi(u, o);
1935
+ "entries:updated": function(e) {
1936
+ Tn(e, n);
2848
1937
  }
2849
1938
  }
2850
1939
  };
2851
1940
  };
2852
1941
  }
2853
- const Ui = ["templateParams", "htmlAttrs", "bodyAttrs"], Gi = {
1942
+ const Cn = ["templateParams", "htmlAttrs", "bodyAttrs"], wn = {
2854
1943
  hooks: {
2855
- "tag:normalise": function({ tag: o }) {
2856
- ["hid", "vmid", "key"].forEach((n) => {
2857
- o.props[n] && (o.key = o.props[n], delete o.props[n]);
1944
+ "tag:normalise": function({ tag: n }) {
1945
+ ["hid", "vmid", "key"].forEach((e) => {
1946
+ n.props[e] && (n.key = n.props[e], delete n.props[e]);
2858
1947
  });
2859
- const t = Ot(o) || (o.key ? `${o.tag}:${o.key}` : !1);
2860
- t && (o._d = t);
1948
+ const t = Dt(n) || (n.key ? `${n.tag}:${n.key}` : !1);
1949
+ t && (n._d = t);
2861
1950
  },
2862
- "tags:resolve": function(o) {
2863
- const e = {};
2864
- o.tags.forEach((n) => {
2865
- const a = (n.key ? `${n.tag}:${n.key}` : n._d) || n._p, u = e[a];
2866
- if (u) {
2867
- let h = n == null ? void 0 : n.tagDuplicateStrategy;
2868
- if (!h && Ui.includes(n.tag) && (h = "merge"), h === "merge") {
2869
- const d = u.props;
2870
- ["class", "style"].forEach((p) => {
2871
- d[p] && (n.props[p] ? (p === "style" && !d[p].endsWith(";") && (d[p] += ";"), n.props[p] = `${d[p]} ${n.props[p]}`) : n.props[p] = d[p]);
2872
- }), e[a].props = ee(ee({}, d), n.props);
1951
+ "tags:resolve": function(n) {
1952
+ const l = {};
1953
+ n.tags.forEach((e) => {
1954
+ const i = (e.key ? `${e.tag}:${e.key}` : e._d) || e._p, s = l[i];
1955
+ if (s) {
1956
+ let p = e?.tagDuplicateStrategy;
1957
+ if (!p && Cn.includes(e.tag) && (p = "merge"), p === "merge") {
1958
+ const u = s.props;
1959
+ ["class", "style"].forEach((r) => {
1960
+ u[r] && (e.props[r] ? (r === "style" && !u[r].endsWith(";") && (u[r] += ";"), e.props[r] = `${u[r]} ${e.props[r]}`) : e.props[r] = u[r]);
1961
+ }), l[i].props = {
1962
+ ...u,
1963
+ ...e.props
1964
+ };
2873
1965
  return;
2874
- } else if (n._e === u._e) {
2875
- u._duped = u._duped || [], n._d = `${u._d}:${u._duped.length + 1}`, u._duped.push(n);
1966
+ } else if (e._e === s._e) {
1967
+ s._duped = s._duped || [], e._d = `${s._d}:${s._duped.length + 1}`, s._duped.push(e);
2876
1968
  return;
2877
- } else if (Ie(n) > Ie(u))
1969
+ } else if (He(e) > He(s))
2878
1970
  return;
2879
1971
  }
2880
- const c = Object.keys(n.props).length + (n.innerHTML ? 1 : 0) + (n.textContent ? 1 : 0);
2881
- if (ke.includes(n.tag) && c === 0) {
2882
- delete e[a];
1972
+ const m = Object.keys(e.props).length + (e.innerHTML ? 1 : 0) + (e.textContent ? 1 : 0);
1973
+ if ($e.includes(e.tag) && m === 0) {
1974
+ delete l[i];
2883
1975
  return;
2884
1976
  }
2885
- e[a] = n;
1977
+ l[i] = e;
2886
1978
  });
2887
1979
  const t = [];
2888
- Object.values(e).forEach((n) => {
2889
- const a = n._duped;
2890
- delete n._duped, t.push(n), a && t.push(...a);
2891
- }), o.tags = t, o.tags = o.tags.filter((n) => !(n.tag === "meta" && (n.props.name || n.props.property) && !n.props.content));
1980
+ Object.values(l).forEach((e) => {
1981
+ const i = e._duped;
1982
+ delete e._duped, t.push(e), i && t.push(...i);
1983
+ }), n.tags = t, n.tags = n.tags.filter((e) => !(e.tag === "meta" && (e.props.name || e.props.property) && !e.props.content));
2892
1984
  }
2893
1985
  }
2894
- }, ji = {
1986
+ }, Pn = {
2895
1987
  mode: "server",
2896
1988
  hooks: {
2897
- "tags:resolve": function(o) {
2898
- const e = {};
2899
- o.tags.filter((t) => ["titleTemplate", "templateParams", "title"].includes(t.tag) && t._m === "server").forEach((t) => {
2900
- e[t.tag] = t.tag.startsWith("title") ? t.textContent : t.props;
2901
- }), Object.keys(e).length && o.tags.push({
1989
+ "tags:resolve": function(n) {
1990
+ const l = {};
1991
+ n.tags.filter((t) => ["titleTemplate", "templateParams", "title"].includes(t.tag) && t._m === "server").forEach((t) => {
1992
+ l[t.tag] = t.tag.startsWith("title") ? t.textContent : t.props;
1993
+ }), Object.keys(l).length && n.tags.push({
2902
1994
  tag: "script",
2903
- innerHTML: JSON.stringify(e),
1995
+ innerHTML: JSON.stringify(l),
2904
1996
  props: { id: "unhead:payload", type: "application/json" }
2905
1997
  });
2906
1998
  }
2907
1999
  }
2908
- }, Yi = ["script", "link", "bodyAttrs"];
2909
- function Ki(o) {
2910
- const e = {}, t = {};
2911
- return Object.entries(o.props).forEach(([n, a]) => {
2912
- n.startsWith("on") && typeof a == "function" ? (At.includes(n) && (e[n] = `this.dataset.${n} = true`), t[n] = a) : e[n] = a;
2913
- }), { props: e, eventHandlers: t };
2914
- }
2915
- const Qi = (o) => ({
2000
+ }, An = ["script", "link", "bodyAttrs"], Dn = (n) => ({
2916
2001
  hooks: {
2917
- "tags:resolve": function(e) {
2918
- for (const t of e.tags)
2919
- if (Yi.includes(t.tag)) {
2920
- const { props: n, eventHandlers: a } = Ki(t);
2921
- t.props = n, Object.keys(a).length && ((t.props.src || t.props.href) && (t.key = t.key || Xe(t.props.src || t.props.href)), t._eventHandlers = a);
2922
- }
2002
+ "tags:resolve": function(l) {
2003
+ for (const t of l.tags.filter((e) => An.includes(e.tag)))
2004
+ Object.entries(t.props).forEach(([e, i]) => {
2005
+ e.startsWith("on") && typeof i == "function" && (n.ssr && gt.includes(e) ? t.props[e] = `this.dataset.${e}fired = true` : delete t.props[e], t._eventHandlers = t._eventHandlers || {}, t._eventHandlers[e] = i);
2006
+ }), n.ssr && t._eventHandlers && (t.props.src || t.props.href) && (t.key = t.key || lt(t.props.src || t.props.href));
2923
2007
  },
2924
- "dom:renderTag": function(e, t, n) {
2925
- if (!e.tag._eventHandlers)
2926
- return;
2927
- const a = e.tag.tag === "bodyAttrs" ? t.defaultView : e.$el;
2928
- Object.entries(e.tag._eventHandlers).forEach(([u, c]) => {
2929
- const h = `${e.tag._d || e.tag._p}:${u}`, d = u.slice(2).toLowerCase(), p = `data-h-${d}`;
2930
- if (n(e.id, h, () => {
2931
- }), e.$el.hasAttribute(p))
2932
- return;
2933
- e.$el.setAttribute(p, "");
2934
- let m;
2935
- const y = (b) => {
2936
- c(b), m == null || m.disconnect();
2937
- };
2938
- u in e.$el.dataset ? y(new Event(u.replace("on", ""))) : At.includes(u) && typeof MutationObserver != "undefined" ? (m = new MutationObserver((b) => {
2939
- b.some((k) => k.attributeName === `data-${u}`) && (y(new Event(u.replace("on", ""))), m == null || m.disconnect());
2940
- }), m.observe(e.$el, {
2941
- attributes: !0
2942
- })) : a.addEventListener(d, y), n(e.id, h, () => {
2943
- m == null || m.disconnect(), a.removeEventListener(d, y), e.$el.removeAttribute(p);
2944
- });
2945
- });
2008
+ "dom:renderTag": function({ $el: l, tag: t }) {
2009
+ for (const e of Object.keys(l?.dataset || {}).filter((i) => gt.some((s) => `${s}fired` === i))) {
2010
+ const i = e.replace("fired", "");
2011
+ t._eventHandlers?.[i]?.call(l, new Event(i.replace("on", "")));
2012
+ }
2946
2013
  }
2947
2014
  }
2948
- }), Ji = ["link", "style", "script", "noscript"], Xi = {
2015
+ }), Hn = ["link", "style", "script", "noscript"], In = {
2949
2016
  hooks: {
2950
- "tag:normalise": ({ tag: o }) => {
2951
- o.key && Ji.includes(o.tag) && (o.props["data-hid"] = o._h = Xe(o.key));
2017
+ "tag:normalise": ({ tag: n }) => {
2018
+ n.key && Hn.includes(n.tag) && (n.props["data-hid"] = n._h = lt(n.key));
2952
2019
  }
2953
2020
  }
2954
- }, Zi = {
2021
+ }, Sn = {
2955
2022
  hooks: {
2956
- "tags:resolve": (o) => {
2957
- const e = (t) => {
2958
- var n;
2959
- return (n = o.tags.find((a) => a._d === t)) == null ? void 0 : n._p;
2960
- };
2961
- for (const { prefix: t, offset: n } of zi)
2962
- for (const a of o.tags.filter((u) => typeof u.tagPriority == "string" && u.tagPriority.startsWith(t))) {
2963
- const u = e(
2964
- a.tagPriority.replace(t, "")
2023
+ "tags:resolve": (n) => {
2024
+ const l = (t) => n.tags.find((e) => e._d === t)?._p;
2025
+ for (const { prefix: t, offset: e } of _n)
2026
+ for (const i of n.tags.filter((s) => typeof s.tagPriority == "string" && s.tagPriority.startsWith(t))) {
2027
+ const s = l(
2028
+ i.tagPriority.replace(t, "")
2965
2029
  );
2966
- typeof u != "undefined" && (a._p = u + n);
2030
+ typeof s < "u" && (i._p = s + e);
2967
2031
  }
2968
- o.tags.sort((t, n) => t._p - n._p).sort((t, n) => Ie(t) - Ie(n));
2032
+ n.tags.sort((t, e) => t._p - e._p).sort((t, e) => He(t) - He(e));
2969
2033
  }
2970
2034
  }
2971
- }, er = {
2035
+ }, Bn = {
2972
2036
  meta: "content",
2973
2037
  link: "href",
2974
2038
  htmlAttrs: "lang"
2975
- }, tr = (o) => ({
2039
+ }, En = (n) => ({
2976
2040
  hooks: {
2977
- "tags:resolve": (e) => {
2978
- var h;
2979
- const { tags: t } = e, n = (h = t.find((d) => d.tag === "title")) == null ? void 0 : h.textContent, a = t.findIndex((d) => d.tag === "templateParams"), u = a !== -1 ? t[a].props : {}, c = u.separator || "|";
2980
- delete u.separator, u.pageTitle = _e(u.pageTitle || n || "", u, c);
2981
- for (const d of t.filter((p) => p.processTemplateParams !== !1)) {
2982
- const p = er[d.tag];
2983
- p && typeof d.props[p] == "string" ? d.props[p] = _e(d.props[p], u, c) : (d.processTemplateParams === !0 || ["titleTemplate", "title"].includes(d.tag)) && ["innerHTML", "textContent"].forEach((m) => {
2984
- typeof d[m] == "string" && (d[m] = _e(d[m], u, c));
2041
+ "tags:resolve": (l) => {
2042
+ const { tags: t } = l, e = t.find((p) => p.tag === "title")?.textContent, i = t.findIndex((p) => p.tag === "templateParams"), s = i !== -1 ? t[i].props : {}, m = s.separator || "|";
2043
+ delete s.separator, s.pageTitle = Ce(s.pageTitle || e || "", s, m);
2044
+ for (const p of t.filter((u) => u.processTemplateParams !== !1)) {
2045
+ const u = Bn[p.tag];
2046
+ u && typeof p.props[u] == "string" ? p.props[u] = Ce(p.props[u], s, m) : (p.processTemplateParams === !0 || ["titleTemplate", "title"].includes(p.tag)) && ["innerHTML", "textContent"].forEach((r) => {
2047
+ typeof p[r] == "string" && (p[r] = Ce(p[r], s, m));
2985
2048
  });
2986
2049
  }
2987
- o._templateParams = u, o._separator = c, e.tags = t.filter((d) => d.tag !== "templateParams");
2050
+ n._templateParams = s, n._separator = m, l.tags = t.filter((p) => p.tag !== "templateParams");
2988
2051
  }
2989
2052
  }
2990
- }), or = {
2053
+ }), Mn = {
2991
2054
  hooks: {
2992
- "tags:resolve": (o) => {
2993
- const { tags: e } = o;
2994
- let t = e.findIndex((a) => a.tag === "titleTemplate");
2995
- const n = e.findIndex((a) => a.tag === "title");
2996
- if (n !== -1 && t !== -1) {
2997
- const a = gt(
2998
- e[t].textContent,
2999
- e[n].textContent
2055
+ "tags:resolve": (n) => {
2056
+ const { tags: l } = n;
2057
+ let t = l.findIndex((i) => i.tag === "titleTemplate");
2058
+ const e = l.findIndex((i) => i.tag === "title");
2059
+ if (e !== -1 && t !== -1) {
2060
+ const i = ht(
2061
+ l[t].textContent,
2062
+ l[e].textContent
3000
2063
  );
3001
- a !== null ? e[n].textContent = a || e[n].textContent : delete e[n];
2064
+ i !== null ? l[e].textContent = i || l[e].textContent : delete l[e];
3002
2065
  } else if (t !== -1) {
3003
- const a = gt(
3004
- e[t].textContent
2066
+ const i = ht(
2067
+ l[t].textContent
3005
2068
  );
3006
- a !== null && (e[t].textContent = a, e[t].tag = "title", t = -1);
2069
+ i !== null && (l[t].textContent = i, l[t].tag = "title", t = -1);
3007
2070
  }
3008
- t !== -1 && delete e[t], o.tags = e.filter(Boolean);
2071
+ t !== -1 && delete l[t], n.tags = l.filter(Boolean);
3009
2072
  }
3010
2073
  }
3011
- }, nr = {
2074
+ }, Ln = {
3012
2075
  hooks: {
3013
- "tags:afterResolve": function(o) {
3014
- for (const e of o.tags)
3015
- typeof e.innerHTML == "string" && (e.innerHTML && ["application/ld+json", "application/json"].includes(e.props.type) ? e.innerHTML = e.innerHTML.replace(/</g, "\\u003C") : e.innerHTML = e.innerHTML.replace(new RegExp(`</${e.tag}`, "g"), `<\\/${e.tag}`));
2076
+ "tags:afterResolve": function(n) {
2077
+ for (const l of n.tags)
2078
+ typeof l.innerHTML == "string" && (l.innerHTML && ["application/ld+json", "application/json"].includes(l.props.type) ? l.innerHTML = l.innerHTML.replace(/</g, "\\u003C") : l.innerHTML = l.innerHTML.replace(new RegExp(`</${l.tag}`, "g"), `<\\/${l.tag}`));
3016
2079
  }
3017
2080
  }
3018
2081
  };
3019
2082
  // @__NO_SIDE_EFFECTS__
3020
- function ir(o = {}) {
3021
- const e = rr(o);
3022
- return e.use(/* @__PURE__ */ qi()), e;
2083
+ function Un(n = {}) {
2084
+ const l = Rn(n);
2085
+ return l.use(/* @__PURE__ */ $n()), l;
3023
2086
  }
3024
- function bt(o, e) {
3025
- return !o || o === "server" && e || o === "client" && !e;
2087
+ function bt(n, l) {
2088
+ return !n || n === "server" && l || n === "client" && !l;
3026
2089
  }
3027
- function rr(o = {}) {
3028
- const e = Pi();
3029
- e.addHooks(o.hooks || {}), o.document = o.document || (Di ? document : void 0);
3030
- const t = !o.document, n = () => {
3031
- h.dirty = !0, e.callHook("entries:updated", h);
2090
+ function Rn(n = {}) {
2091
+ const l = cn();
2092
+ l.addHooks(n.hooks || {}), n.document = n.document || (vn ? document : void 0);
2093
+ const t = !n.document, e = () => {
2094
+ p.dirty = !0, l.callHook("entries:updated", p);
3032
2095
  };
3033
- let a = 0, u = [];
3034
- const c = [], h = {
3035
- plugins: c,
2096
+ let i = 0, s = [];
2097
+ const m = [], p = {
2098
+ plugins: m,
3036
2099
  dirty: !1,
3037
- resolvedOptions: o,
3038
- hooks: e,
2100
+ resolvedOptions: n,
2101
+ hooks: l,
3039
2102
  headEntries() {
3040
- return u;
2103
+ return s;
3041
2104
  },
3042
- use(p) {
3043
- const m = typeof p == "function" ? p(h) : p;
3044
- (!m.key || !c.some((y) => y.key === m.key)) && (c.push(m), bt(m.mode, t) && e.addHooks(m.hooks || {}));
2105
+ use(u) {
2106
+ const r = typeof u == "function" ? u(p) : u;
2107
+ (!r.key || !m.some((d) => d.key === r.key)) && (m.push(r), bt(r.mode, t) && l.addHooks(r.hooks || {}));
3045
2108
  },
3046
- push(p, m) {
3047
- m == null || delete m.head;
3048
- const y = ee({
3049
- _i: a++,
3050
- input: p
3051
- }, m);
3052
- return bt(y.mode, t) && (u.push(y), n()), {
2109
+ push(u, r) {
2110
+ delete r?.head;
2111
+ const d = {
2112
+ _i: i++,
2113
+ input: u,
2114
+ ...r
2115
+ };
2116
+ return bt(d.mode, t) && (s.push(d), e()), {
3053
2117
  dispose() {
3054
- u = u.filter((b) => b._i !== y._i), e.callHook("entries:updated", h), n();
2118
+ s = s.filter((h) => h._i !== d._i), l.callHook("entries:updated", p), e();
3055
2119
  },
3056
2120
  // a patch is the same as creating a new entry, just a nice DX
3057
- patch(b) {
3058
- u = u.map((s) => (s._i === y._i && (s.input = y.input = b), s)), n();
2121
+ patch(h) {
2122
+ s = s.map((V) => (V._i === d._i && (V.input = d.input = h), V)), e();
3059
2123
  }
3060
2124
  };
3061
2125
  },
3062
- resolveTags() {
3063
- return Q(this, null, function* () {
3064
- const p = { tags: [], entries: [...u] };
3065
- yield e.callHook("entries:resolve", p);
3066
- for (const m of p.entries) {
3067
- const y = m.resolvedInput || m.input;
3068
- if (m.resolvedInput = yield m.transform ? m.transform(y) : y, m.resolvedInput)
3069
- for (const b of yield Bi(m)) {
3070
- const s = { tag: b, entry: m, resolvedOptions: h.resolvedOptions };
3071
- yield e.callHook("tag:normalise", s), p.tags.push(s.tag);
3072
- }
3073
- }
3074
- return yield e.callHook("tags:beforeResolve", p), yield e.callHook("tags:resolve", p), yield e.callHook("tags:afterResolve", p), p.tags;
3075
- });
2126
+ async resolveTags() {
2127
+ const u = { tags: [], entries: [...s] };
2128
+ await l.callHook("entries:resolve", u);
2129
+ for (const r of u.entries) {
2130
+ const d = r.resolvedInput || r.input;
2131
+ if (r.resolvedInput = await (r.transform ? r.transform(d) : d), r.resolvedInput)
2132
+ for (const h of await kn(r)) {
2133
+ const V = { tag: h, entry: r, resolvedOptions: p.resolvedOptions };
2134
+ await l.callHook("tag:normalise", V), u.tags.push(V.tag);
2135
+ }
2136
+ }
2137
+ return await l.callHook("tags:beforeResolve", u), await l.callHook("tags:resolve", u), await l.callHook("tags:afterResolve", u), u.tags;
3076
2138
  },
3077
2139
  ssr: t
3078
2140
  };
3079
2141
  return [
3080
- Gi,
3081
- ji,
3082
- Qi,
3083
- Xi,
3084
- Zi,
3085
- tr,
3086
- or,
3087
- nr,
3088
- ...(o == null ? void 0 : o.plugins) || []
3089
- ].forEach((p) => h.use(p)), h.hooks.callHook("init", h), h;
2142
+ wn,
2143
+ Pn,
2144
+ Dn,
2145
+ In,
2146
+ Sn,
2147
+ En,
2148
+ Mn,
2149
+ Ln,
2150
+ ...n?.plugins || []
2151
+ ].forEach((u) => p.use(u)), p.hooks.callHook("init", p), p;
3090
2152
  }
3091
- const sr = So.startsWith("3");
3092
- function ar(o) {
3093
- return typeof o == "function" ? o() : l(o);
2153
+ const Nn = lo.startsWith("3");
2154
+ function Fn(n) {
2155
+ return typeof n == "function" ? n() : o(n);
3094
2156
  }
3095
- function je(o, e = "") {
3096
- if (o instanceof Promise)
3097
- return o;
3098
- const t = ar(o);
3099
- return !o || !t ? t : Array.isArray(t) ? t.map((n) => je(n, e)) : typeof t == "object" ? Object.fromEntries(
3100
- Object.entries(t).map(([n, a]) => n === "titleTemplate" || n.startsWith("on") ? [n, l(a)] : [n, je(a, n)])
2157
+ function et(n, l = "") {
2158
+ if (n instanceof Promise)
2159
+ return n;
2160
+ const t = Fn(n);
2161
+ return !n || !t ? t : Array.isArray(t) ? t.map((e) => et(e, l)) : typeof t == "object" ? Object.fromEntries(
2162
+ Object.entries(t).map(([e, i]) => e === "titleTemplate" || e.startsWith("on") ? [e, o(i)] : [e, et(i, e)])
3101
2163
  ) : t;
3102
2164
  }
3103
- const lr = {
2165
+ const On = {
3104
2166
  hooks: {
3105
- "entries:resolve": function(o) {
3106
- for (const e of o.entries)
3107
- e.resolvedInput = je(e.input);
2167
+ "entries:resolve": function(n) {
2168
+ for (const l of n.entries)
2169
+ l.resolvedInput = et(l.input);
3108
2170
  }
3109
2171
  }
3110
- }, ur = "usehead";
3111
- function dr(o) {
2172
+ }, jn = "usehead";
2173
+ function Gn(n) {
3112
2174
  return {
3113
2175
  install(t) {
3114
- sr && (t.config.globalProperties.$unhead = o, t.config.globalProperties.$head = o, t.provide(ur, o));
2176
+ Nn && (t.config.globalProperties.$unhead = n, t.config.globalProperties.$head = n, t.provide(jn, n));
3115
2177
  }
3116
2178
  }.install;
3117
2179
  }
3118
- function cr(o = {}) {
3119
- o.domDelayFn = o.domDelayFn || ((t) => $t(() => setTimeout(() => t(), 0)));
3120
- const e = /* @__PURE__ */ ir(o);
3121
- return e.use(lr), e.install = dr(e), e;
2180
+ function qn(n = {}) {
2181
+ n.domDelayFn = n.domDelayFn || ((t) => oo(() => setTimeout(() => t(), 0)));
2182
+ const l = /* @__PURE__ */ Un(n);
2183
+ return l.use(On), l.install = Gn(l), l;
3122
2184
  }
3123
- const pr = Vo(), hr = cr();
3124
- class fr extends HTMLElement {
2185
+ const Wn = io(), Kn = qn(), xn = ro();
2186
+ class zn extends HTMLElement {
2187
+ vueApp;
3125
2188
  constructor() {
3126
2189
  super();
3127
2190
  }
2191
+ disconnectedCallback() {
2192
+ this.vueApp.unmount();
2193
+ }
3128
2194
  connectedCallback() {
3129
- var c;
3130
- const e = typeof ve == "function" ? ve.options : ve, t = Array.isArray(e.props) ? e.props : Object.keys(e.props || {}), n = {};
3131
- for (const h of t) {
3132
- const d = (c = this.attributes.getNamedItem(h)) == null ? void 0 : c.value;
3133
- if (!d)
3134
- break;
3135
- n[h] = d;
2195
+ const l = typeof Te == "function" ? Te.options : Te;
2196
+ let t = Array.isArray(l.props) ? l.props : Object.keys(l.props || {});
2197
+ const e = (u) => u.replace(/[A-Z]+(?![a-z])|[A-Z]/g, (r, d) => (d ? "-" : "") + r.toLowerCase()), i = (u) => u.replace(/-./g, (r) => r[1].toUpperCase()), s = {};
2198
+ t = t.map(e);
2199
+ const m = {};
2200
+ for (const u of this.attributes) {
2201
+ const d = u.name.split(".");
2202
+ d.length > 1 && (m[d[0]] || (m[d[0]] = {}), m[d[0]][i(d[1])] = u.value);
2203
+ }
2204
+ for (const u of t) {
2205
+ let r = this.attributes.getNamedItem(u)?.value;
2206
+ m.hasOwnProperty(u) && (r = m[u]), s[u] = r;
3136
2207
  }
3137
- const a = Lo(ve, n);
3138
- a.use(hr), a.use(pr), a.use(xt), a.use(Po), a.use(Mo), a.use(xo, { bootstrap: !0 });
3139
- const u = document.createElement("div");
3140
- a.mount(u), this.appendChild(u.children[0]);
2208
+ this.vueApp = no(Te, s), this.vueApp.provide("emitter", xn), this.vueApp.use(Kn), this.vueApp.use(Wn), this.vueApp.use(Vo), this.vueApp.use(so), this.vueApp.use(To), this.vueApp.use(ho, { bootstrap: !0 });
2209
+ const p = document.createElement("div");
2210
+ this.vueApp.mount(p), this.appendChild(p.children[0]);
3141
2211
  }
3142
2212
  }
3143
- window.customElements.define("konnectio-hotel", fr);
2213
+ window.customElements.define("konnectio-hotel", zn);
3144
2214
  export {
3145
- fr as default
2215
+ zn as default
3146
2216
  };
2217
+ //# sourceMappingURL=hotel.js.map