@konnectio/core 4.0.56-rc5 → 4.0.56-rc51

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