@konnectio/core 4.0.56-rc4 → 4.0.56-rc40

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