@konnectio/core 4.0.56-rc3 → 4.0.56-rc31

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (178) hide show
  1. package/dist/{ActionField-9I-yAskc.js → ActionField-qP-3ktN4.js} +25 -26
  2. package/dist/ActionField-qP-3ktN4.js.br +0 -0
  3. package/dist/AvailabilitySkeleton-uaCnfwHM.js +7665 -0
  4. package/dist/AvailabilitySkeleton-uaCnfwHM.js.br +0 -0
  5. package/dist/CheckoutWindow-RWkSWvbk.js +659 -0
  6. package/dist/CheckoutWindow-RWkSWvbk.js.br +0 -0
  7. package/dist/ErrorMessage-z0JJ8Q3W.js +36 -0
  8. package/dist/ErrorMessage-z0JJ8Q3W.js.br +0 -0
  9. package/dist/EventAvailabilityForm-LIgUj1t3.js +325 -0
  10. package/dist/EventAvailabilityForm-LIgUj1t3.js.br +0 -0
  11. package/dist/Field-C9r1d8IB.js +30985 -0
  12. package/dist/Field-C9r1d8IB.js.br +0 -0
  13. package/dist/HotelAvailabilityForm-AQ4VA15t.js +212 -0
  14. package/dist/HotelAvailabilityForm-AQ4VA15t.js.br +0 -0
  15. package/dist/TermsOfService-oZz-B-KI.js +26 -0
  16. package/dist/_commonjsHelpers-f3sTPFkQ.js +8 -0
  17. package/dist/availability.js +85 -147
  18. package/dist/availability.js.br +0 -0
  19. package/dist/event.js +540 -453
  20. package/dist/event.js.br +0 -0
  21. package/dist/gift-card-validation.js +90 -56
  22. package/dist/gift-card-validation.js.br +0 -0
  23. package/dist/gift-card.js +368 -336
  24. package/dist/gift-card.js.br +0 -0
  25. package/dist/hotel.js +1259 -2264
  26. package/dist/hotel.js.br +0 -0
  27. package/dist/masonry.plugin-fa0tia29.js +12714 -0
  28. package/dist/masonry.plugin-fa0tia29.js.br +0 -0
  29. package/dist/polyfill.js +3358 -3315
  30. package/dist/polyfill.js.br +0 -0
  31. package/dist/style.css +1 -1
  32. package/dist/style.css.br +0 -0
  33. package/package.json +32 -28
  34. package/dist/ActionField-9I-yAskc.js.br +0 -0
  35. package/dist/AvailabilitySkeleton-hoauL0os.js +0 -242
  36. package/dist/AvailabilitySkeleton-hoauL0os.js.br +0 -0
  37. package/dist/CheckoutWindow-31th413C.js +0 -206
  38. package/dist/CheckoutWindow-31th413C.js.br +0 -0
  39. package/dist/Container-gHSYMY7q.js +0 -69
  40. package/dist/Container-gHSYMY7q.js.br +0 -0
  41. package/dist/DateField.vue_vue_type_style_index_0_lang-mpnWj2LD.js +0 -8567
  42. package/dist/DateField.vue_vue_type_style_index_0_lang-mpnWj2LD.js.br +0 -0
  43. package/dist/Field-QHvFgmEq.js +0 -43
  44. package/dist/Field-QHvFgmEq.js.br +0 -0
  45. package/dist/SelectField.vue_vue_type_style_index_0_lang-j_yHB51P.js +0 -21472
  46. package/dist/SelectField.vue_vue_type_style_index_0_lang-j_yHB51P.js.br +0 -0
  47. package/dist/ThankYou-SQ_bbgj4.js +0 -13316
  48. package/dist/ThankYou-SQ_bbgj4.js.br +0 -0
  49. package/dist/_-FedWhJCw.js +0 -20
  50. package/dist/_commonjsHelpers-FF1eOqK0.js +0 -8
  51. package/dist/assets/typescript/mixins.d.ts +0 -34
  52. package/dist/availability.d.ts +0 -3
  53. package/dist/components/Alert.vue.d.ts +0 -28
  54. package/dist/components/Alert.vue.d.ts.map +0 -1
  55. package/dist/components/Clickable.vue.d.ts +0 -60
  56. package/dist/components/Clickable.vue.d.ts.map +0 -1
  57. package/dist/components/Container.vue.d.ts +0 -23
  58. package/dist/components/Container.vue.d.ts.map +0 -1
  59. package/dist/components/ErrorMessage.vue.d.ts +0 -15
  60. package/dist/components/ErrorMessage.vue.d.ts.map +0 -1
  61. package/dist/components/Gallery.vue.d.ts +0 -31
  62. package/dist/components/Gallery.vue.d.ts.map +0 -1
  63. package/dist/components/GoogleNotice.vue.d.ts +0 -2
  64. package/dist/components/GoogleNotice.vue.d.ts.map +0 -1
  65. package/dist/components/Icon.vue.d.ts +0 -38
  66. package/dist/components/Icon.vue.d.ts.map +0 -1
  67. package/dist/components/Loading.vue.d.ts +0 -29
  68. package/dist/components/Loading.vue.d.ts.map +0 -1
  69. package/dist/components/Spinner.vue.d.ts +0 -2
  70. package/dist/components/Spinner.vue.d.ts.map +0 -1
  71. package/dist/components/forms/EventAvailabilityForm.vue.d.ts +0 -18
  72. package/dist/components/forms/EventAvailabilityForm.vue.d.ts.map +0 -1
  73. package/dist/components/forms/HotelAvailabilityForm.vue.d.ts +0 -34
  74. package/dist/components/forms/HotelAvailabilityForm.vue.d.ts.map +0 -1
  75. package/dist/components/forms/HotelReservationForm.vue.d.ts +0 -41
  76. package/dist/components/forms/HotelReservationForm.vue.d.ts.map +0 -1
  77. package/dist/components/forms/MultiStepForm.vue.d.ts +0 -43
  78. package/dist/components/forms/MultiStepForm.vue.d.ts.map +0 -1
  79. package/dist/components/forms/ReservationForm.vue.d.ts +0 -63
  80. package/dist/components/forms/ReservationForm.vue.d.ts.map +0 -1
  81. package/dist/components/forms/_.vue.d.ts +0 -42
  82. package/dist/components/forms/_.vue.d.ts.map +0 -1
  83. package/dist/components/inputs/Checkbox.vue.d.ts +0 -55
  84. package/dist/components/inputs/Checkbox.vue.d.ts.map +0 -1
  85. package/dist/components/inputs/CheckboxField.vue.d.ts +0 -29
  86. package/dist/components/inputs/CheckboxField.vue.d.ts.map +0 -1
  87. package/dist/components/inputs/DateField.vue.d.ts +0 -104
  88. package/dist/components/inputs/DateField.vue.d.ts.map +0 -1
  89. package/dist/components/inputs/InputField.vue.d.ts +0 -62
  90. package/dist/components/inputs/InputField.vue.d.ts.map +0 -1
  91. package/dist/components/inputs/MediaSelector.vue.d.ts +0 -43
  92. package/dist/components/inputs/MediaSelector.vue.d.ts.map +0 -1
  93. package/dist/components/inputs/NumberField.vue.d.ts +0 -87
  94. package/dist/components/inputs/NumberField.vue.d.ts.map +0 -1
  95. package/dist/components/inputs/SelectField.vue.d.ts +0 -90
  96. package/dist/components/inputs/SelectField.vue.d.ts.map +0 -1
  97. package/dist/components/inputs/TextField.vue.d.ts +0 -68
  98. package/dist/components/inputs/TextField.vue.d.ts.map +0 -1
  99. package/dist/components/inputs/TimeField.vue.d.ts +0 -44
  100. package/dist/components/inputs/TimeField.vue.d.ts.map +0 -1
  101. package/dist/components/inputs/grouped/ActionField.vue.d.ts +0 -72
  102. package/dist/components/inputs/grouped/ActionField.vue.d.ts.map +0 -1
  103. package/dist/components/inputs/grouped/CountryField.vue.d.ts +0 -41
  104. package/dist/components/inputs/grouped/CountryField.vue.d.ts.map +0 -1
  105. package/dist/components/inputs/grouped/NameField.vue.d.ts +0 -71
  106. package/dist/components/inputs/grouped/NameField.vue.d.ts.map +0 -1
  107. package/dist/components/inputs/grouped/PhoneField.vue.d.ts +0 -51
  108. package/dist/components/inputs/grouped/PhoneField.vue.d.ts.map +0 -1
  109. package/dist/components/inputs/grouped/RoomConfigField.vue.d.ts +0 -47
  110. package/dist/components/inputs/grouped/RoomConfigField.vue.d.ts.map +0 -1
  111. package/dist/components/listings/Base.vue.d.ts +0 -56
  112. package/dist/components/listings/Base.vue.d.ts.map +0 -1
  113. package/dist/components/listings/Event.vue.d.ts +0 -47
  114. package/dist/components/listings/Event.vue.d.ts.map +0 -1
  115. package/dist/components/listings/Hotel.vue.d.ts +0 -16
  116. package/dist/components/listings/Hotel.vue.d.ts.map +0 -1
  117. package/dist/components/listings/Template.vue.d.ts +0 -21
  118. package/dist/components/listings/Template.vue.d.ts.map +0 -1
  119. package/dist/components/side-panels/Base.vue.d.ts +0 -61
  120. package/dist/components/side-panels/Base.vue.d.ts.map +0 -1
  121. package/dist/components/side-panels/ListingInfo.vue.d.ts +0 -18
  122. package/dist/components/side-panels/ListingInfo.vue.d.ts.map +0 -1
  123. package/dist/components/side-panels/Template.vue.d.ts +0 -18
  124. package/dist/components/side-panels/Template.vue.d.ts.map +0 -1
  125. package/dist/components/side-panels/TermsOfService.vue.d.ts +0 -14
  126. package/dist/components/side-panels/TermsOfService.vue.d.ts.map +0 -1
  127. package/dist/components/skeletons/AvailabilitySkeleton.vue.d.ts +0 -33
  128. package/dist/components/skeletons/AvailabilitySkeleton.vue.d.ts.map +0 -1
  129. package/dist/components/skeletons/Field.vue.d.ts +0 -36
  130. package/dist/components/skeletons/Field.vue.d.ts.map +0 -1
  131. package/dist/components/skeletons/GiftCardSkeleton.vue.d.ts +0 -2
  132. package/dist/components/skeletons/GiftCardSkeleton.vue.d.ts.map +0 -1
  133. package/dist/components/skeletons/HotelSkeleton.vue.d.ts +0 -2
  134. package/dist/components/skeletons/HotelSkeleton.vue.d.ts.map +0 -1
  135. package/dist/components/skeletons/Listing.vue.d.ts +0 -2
  136. package/dist/components/skeletons/Listing.vue.d.ts.map +0 -1
  137. package/dist/components/skeletons/Sidebar.vue.d.ts +0 -2
  138. package/dist/components/skeletons/Sidebar.vue.d.ts.map +0 -1
  139. package/dist/components/skeletons/_.vue.d.ts +0 -36
  140. package/dist/components/skeletons/_.vue.d.ts.map +0 -1
  141. package/dist/components/views/CheckoutWindow.vue.d.ts +0 -2
  142. package/dist/components/views/CheckoutWindow.vue.d.ts.map +0 -1
  143. package/dist/components/views/TermsOfService.vue.d.ts +0 -2
  144. package/dist/components/views/TermsOfService.vue.d.ts.map +0 -1
  145. package/dist/components/views/ThankYou.vue.d.ts +0 -15
  146. package/dist/components/views/ThankYou.vue.d.ts.map +0 -1
  147. package/dist/entries/availability.d.ts +0 -5
  148. package/dist/entries/event.d.ts +0 -2
  149. package/dist/entries/gift-card-validation.d.ts +0 -5
  150. package/dist/entries/gift-card.d.ts +0 -5
  151. package/dist/entries/hotel.d.ts +0 -5
  152. package/dist/entries/navigation.d.ts +0 -1
  153. package/dist/entries/polyfill.d.ts +0 -0
  154. package/dist/event-4kCWoqDL.js +0 -359
  155. package/dist/event-4kCWoqDL.js.br +0 -0
  156. package/dist/event.d.ts +0 -3
  157. package/dist/gift-card-validation.d.ts +0 -3
  158. package/dist/gift-card.d.ts +0 -3
  159. package/dist/hotel.d.ts +0 -3
  160. package/dist/layouts/Availability.vue.d.ts +0 -25
  161. package/dist/layouts/Event.vue.d.ts +0 -18
  162. package/dist/layouts/GiftCard.vue.d.ts +0 -32
  163. package/dist/layouts/GiftCardValidation.vue.d.ts +0 -18
  164. package/dist/layouts/Hotel.vue.d.ts +0 -36
  165. package/dist/layouts/_.vue.d.ts +0 -39
  166. package/dist/navigation.d.ts +0 -1
  167. package/dist/plugins/i18n.d.ts +0 -5
  168. package/dist/polyfill.d.ts +0 -1
  169. package/dist/store/alert.d.ts +0 -28
  170. package/dist/store/applyGiftCard.d.ts +0 -28
  171. package/dist/store/availability.d.ts +0 -40
  172. package/dist/store/event.d.ts +0 -683
  173. package/dist/store/giftCard.d.ts +0 -83
  174. package/dist/store/payment.d.ts +0 -139
  175. package/dist/store/recaptcha.d.ts +0 -28
  176. package/dist/store/tracking.d.ts +0 -57
  177. package/dist/store/utilities.d.ts +0 -350
  178. package/dist/types/index.d.ts +0 -976
package/dist/hotel.js CHANGED
@@ -1,181 +1,215 @@
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-j_yHB51P.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-SQ_bbgj4.js";
32
- import { C as zo } from "./Container-gHSYMY7q.js";
33
- import { A as Wo, H as Bo } from "./AvailabilitySkeleton-hoauL0os.js";
34
- import { _ as Fo } from "./DateField.vue_vue_type_style_index_0_lang-mpnWj2LD.js";
35
- import { C as Ue, P as qo, a as Uo } from "./CheckoutWindow-31th413C.js";
36
- import { E as Y } from "./_-FedWhJCw.js";
37
- import { c as Ct, g as $t } from "./_commonjsHelpers-FF1eOqK0.js";
38
- import "./ActionField-9I-yAskc.js";
39
- import "./Field-QHvFgmEq.js";
40
- const No = { key: 0 }, Go = { key: 1 }, we = /* @__PURE__ */ N({
1
+ import { d as q, u as x, aa as Rt, s as Z, c as he, b as re, r as Y, f as m, k as H, a5 as Ut, j as l, x as _, Z as be, h as r, A as y, a4 as ae, aj as Ke, ak as ze, m as v, a2 as G, a6 as Oe, av as Ft, g as f, ab as M, F as I, l as V, ac as Ne, aw as ue, a3 as ie, $ as R, ai as Ot, q as $e, v as ee, e as U, _ as He, G as tt, H as ot, ax as lt, o as Se, w as Te, n as nt, C as se, y as at, a9 as it, a as st, p as Ce, I as rt, z as Je, T as ne, ay as Nt, E as jt, S as Gt, ad as qt, D as Wt, ar as Kt, az as zt, J as Jt, K as Zt, L as Yt, af as Qt, M as Xt } from "./Field-C9r1d8IB.js";
2
+ import { R as xt, B as De, L as eo, S as to, M as oo, a as Re, T as lo, V as no, G as ao } from "./masonry.plugin-fa0tia29.js";
3
+ import { H as io } from "./HotelAvailabilityForm-AQ4VA15t.js";
4
+ import { S as so } from "./TermsOfService-oZz-B-KI.js";
5
+ import { C as we, B as ro, P as uo, a as co } from "./CheckoutWindow-RWkSWvbk.js";
6
+ import { _ as ut, A as po } from "./AvailabilitySkeleton-uaCnfwHM.js";
7
+ const mo = { class: "konnectio-hotel-reservation-warning" }, fo = { class: "konnectio-hotel-reservation-warning" };
8
+ const ho = { key: 0 }, vo = { key: 1 }, go = { class: "konnectio-reservation-actions" }, yo = /* @__PURE__ */ q({
41
9
  __name: "HotelReservationForm",
42
10
  props: {
43
11
  showGiftCard: { type: Boolean, default: !1 },
44
12
  showTermsNotice: { type: Boolean, default: !1 }
45
13
  },
46
14
  setup(o) {
47
- const { t: e } = re(), t = bo(), {
15
+ const { t: e } = x(), t = Rt(), {
48
16
  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,
61
- 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);
17
+ disableArrivalUserSelection: a,
18
+ disableDepartureUserSelection: i,
19
+ arrivalDefault: c,
20
+ departureDefault: p,
21
+ disableNewsletterSignup: d,
22
+ currency: s
23
+ } = Z(he()), {
24
+ arrivalTime: u,
25
+ departureTime: h,
26
+ roomDisplay: b,
27
+ templateID: D,
28
+ totalPrice: C,
29
+ areListingsLoading: O,
30
+ getSelectedPackageRoom: N,
31
+ selectedPackage: k,
32
+ discountVouchers: w,
33
+ currentArrivalDate: A,
34
+ currentDepartureDate: F,
35
+ datesMismatch: E,
36
+ newsMails: W,
37
+ termsOfService: j,
38
+ acceptTerms: S
39
+ } = Z(re()), { removeRoom: Q } = re(), de = Y(!1);
40
+ function ve(K) {
41
+ return K.reduce((L, { totalPrice: ce }) => L + ce, 0);
71
42
  }
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")
43
+ return (K, z) => (m(), H(xt, {
44
+ "total-price": l(C),
45
+ "show-gift-card": K.showGiftCard,
46
+ "show-terms-notice": K.showTermsNotice,
47
+ "is-sidebar-loading": l(O),
48
+ notice: l(e)("hotel.reservationNotice")
49
+ }, Ut({
50
+ form: _(() => [
51
+ be(K.$slots, "form", {}, void 0, !0)
81
52
  ]),
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)
53
+ "reservation-summary": _(() => [
54
+ r("li", null, [
55
+ r("span", null, y(l(e)("booking.reservation.arrival")), 1),
56
+ r("b", null, [
57
+ r("span", null, y(l(n) ? l(ae)(l(A)) : `${l(ae)(l(A))}, ${l(a) ? l(c) : l(u)}`), 1),
58
+ Ke(r("span", mo, [
59
+ v(G, {
60
+ icon: "exclamation-triangle",
61
+ type: "fas"
62
+ })
63
+ ], 512), [
64
+ [ze, l(E)]
65
+ ])
66
+ ])
86
67
  ]),
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)
68
+ r("li", null, [
69
+ r("span", null, y(l(e)("booking.reservation.departure")), 1),
70
+ r("b", null, [
71
+ r("span", null, y(l(n) ? l(ae)(l(F)) : `${l(ae)(l(F))}, ${l(i) ? l(p) : l(h)}`), 1),
72
+ Ke(r("span", fo, [
73
+ v(G, {
74
+ icon: "exclamation-triangle",
75
+ type: "fas"
76
+ })
77
+ ], 512), [
78
+ [ze, l(E)]
79
+ ])
80
+ ])
90
81
  ]),
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)
82
+ r("li", null, [
83
+ r("span", null, y(l(e)("booking.reservation.nights")), 1),
84
+ r("b", null, y(l(Oe)(l(A), l(F))) + " " + y(l(Ft)(l(Oe)(l(A), l(F)) === 1 ? l(e)("booking.reservation.night") : l(e)("booking.reservation.nights"))), 1)
94
85
  ]),
95
- s(m) ? (E(!0), $(M, { key: 0 }, z(s(m), (V) => (E(), $("li", {
96
- key: V.id
86
+ l(w) ? (m(!0), f(I, { key: 0 }, M(l(w), (L) => (m(), f("li", {
87
+ key: L.id
97
88
  }, [
98
- v("span", null, L(`${s(e)("general.discountCode")} (${V.value})`), 1),
99
- v("b", null, L(V.key), 1)
100
- ]))), 128)) : x("", !0)
89
+ r("span", null, y(`${l(e)("general.discountCode")} (${L.value})`), 1),
90
+ r("b", null, y(L.key), 1)
91
+ ]))), 128)) : V("", !0)
101
92
  ]),
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)
93
+ "price-summary": _(() => [
94
+ isNaN(l(D)) && l(b).length > 0 ? (m(!0), f(I, { key: 0 }, M(l(b), ({
95
+ roomGroupID: L,
96
+ title: ce,
97
+ variants: Ae
98
+ }) => (m(), f("div", { key: L }, [
99
+ r("h6", null, [
100
+ r("span", null, y(ce), 1)
110
101
  ]),
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, {
102
+ (m(!0), f(I, null, M(Ae, (ge, Ie) => (m(), f("div", { key: Ie }, [
103
+ (m(!0), f(I, null, M(ge.rooms, (te, Ee) => (m(), f("ul", { key: Ee }, [
104
+ r("li", null, [
105
+ r("span", null, [
106
+ r("span", null, [
107
+ Ne(y(l(ue)(ge.name)) + " ( ", 1),
108
+ v(G, {
118
109
  icon: "male",
119
110
  type: "fas",
120
111
  color: "font"
121
112
  }),
122
- v("span", null, L(j.adultsCount), 1),
123
- j.childrenCount > 0 ? (E(), $(M, { key: 0 }, [
124
- I(J, {
113
+ r("span", null, y(te.adultsCount), 1),
114
+ te.childrenCount > 0 ? (m(), f(I, { key: 0 }, [
115
+ v(G, {
125
116
  icon: "child",
126
117
  type: "fas",
127
118
  color: "font"
128
119
  }),
129
- v("span", null, L(j.childrenCount), 1)
130
- ], 64)) : x("", !0),
131
- qe(") ")
120
+ r("span", null, y(te.childrenCount), 1)
121
+ ], 64)) : V("", !0),
122
+ Ne(") ")
132
123
  ])
133
124
  ]),
134
- v("b", null, [
135
- v("span", null, L(s(ie)(j.totalPrice, s(d))), 1),
136
- x("", !0)
125
+ r("b", null, [
126
+ r("span", null, y(l(ie)(te.totalPrice, l(s))), 1),
127
+ V("", !0)
137
128
  ])
138
129
  ]),
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)
130
+ ve(te.roomAddons) > 0 ? (m(), f("li", ho, [
131
+ r("span", null, y(l(e)("general.addons")), 1),
132
+ r("b", null, y(l(ie)(ve(te.roomAddons), l(s))), 1)
133
+ ])) : V("", !0)
143
134
  ]))), 128))
144
135
  ]))), 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)
136
+ ]))), 128)) : V("", !0),
137
+ l(N) && l(k) ? (m(), f("div", vo, [
138
+ r("h6", null, [
139
+ r("span", null, y(l(ue)(l(k).name)), 1)
149
140
  ]),
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)
141
+ r("div", null, [
142
+ r("ul", null, [
143
+ r("li", null, [
144
+ r("span", null, [
145
+ r("span", null, y(l(ue)(l(N).title)), 1)
155
146
  ]),
156
- v("b", null, [
157
- v("span", null, L(s(ie)(s(i).extraPrice, s(d))), 1)
147
+ r("b", null, [
148
+ r("span", null, y(l(ie)(l(N).extraPrice, l(s))), 1)
158
149
  ])
159
150
  ])
160
151
  ])
161
152
  ])
162
- ])) : x("", !0)
153
+ ])) : V("", !0)
163
154
  ]),
164
- navigation: H(() => [
165
- xe(C.$slots, "navigation")
155
+ actions: _(() => [
156
+ r("ul", go, [
157
+ l(d) ? V("", !0) : (m(), H(we, {
158
+ key: 0,
159
+ modelValue: l(W),
160
+ "onUpdate:modelValue": z[0] || (z[0] = (L) => R(W) ? W.value = L : null),
161
+ type: "checkbox",
162
+ name: "newsletter",
163
+ label: l(e)("booking.reservation.newsletterSignUp")
164
+ }, null, 8, ["modelValue", "label"])),
165
+ v(we, {
166
+ modelValue: l(S),
167
+ "onUpdate:modelValue": z[2] || (z[2] = (L) => R(S) ? S.value = L : null),
168
+ type: "checkbox",
169
+ name: "terms"
170
+ }, {
171
+ default: _(() => [
172
+ v(l(Ot), {
173
+ keypath: "general.termsAndConditionsCheckbox",
174
+ tag: "span",
175
+ scope: "global"
176
+ }, {
177
+ terms: _(() => [
178
+ r("a", {
179
+ class: "konnectio-accept-terms-link",
180
+ onClick: z[1] || (z[1] = $e((L) => de.value = !0, ["prevent"]))
181
+ }, [
182
+ r("span", null, y(l(e)("general.termsAndConditions")), 1)
183
+ ])
184
+ ]),
185
+ _: 1
186
+ })
187
+ ]),
188
+ _: 1
189
+ }, 8, ["modelValue"]),
190
+ be(K.$slots, "actions", {}, void 0, !0),
191
+ v(so, {
192
+ modelValue: de.value,
193
+ "onUpdate:modelValue": z[3] || (z[3] = (L) => de.value = L),
194
+ description: l(j)
195
+ }, null, 8, ["modelValue", "description"])
196
+ ])
197
+ ]),
198
+ navigation: _(() => [
199
+ be(K.$slots, "navigation", {}, void 0, !0)
166
200
  ]),
167
201
  _: 2
168
202
  }, [
169
- s(t).addons ? {
203
+ l(t).addons ? {
170
204
  name: "addons",
171
- fn: H(() => [
172
- xe(C.$slots, "addons")
205
+ fn: _(() => [
206
+ be(K.$slots, "addons", {}, void 0, !0)
173
207
  ]),
174
208
  key: "0"
175
209
  } : void 0
176
210
  ]), 1032, ["total-price", "show-gift-card", "show-terms-notice", "is-sidebar-loading", "notice"]));
177
211
  }
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({
212
+ }), Ue = /* @__PURE__ */ ee(yo, [["__scopeId", "data-v-fc825e32"]]), bo = (o) => (tt("data-v-69fe83d8"), o = o(), ot(), o), ko = { class: "konnectio-room-config-option" }, _o = { key: 0 }, Vo = { class: "konnectio-selected-room-config" }, $o = { class: "konnectio-selected-room-config-people" }, To = { key: 0 }, Co = { class: "konnectio-selected-room-config-price" }, wo = /* @__PURE__ */ bo(() => /* @__PURE__ */ r("span", null, null, -1)), Po = /* @__PURE__ */ q({
179
213
  __name: "RoomConfigField",
180
214
  props: {
181
215
  modelValue: {},
@@ -186,17 +220,17 @@ const No = { key: 0 }, Go = { key: 1 }, we = /* @__PURE__ */ N({
186
220
  },
187
221
  emits: ["update:modelValue"],
188
222
  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);
223
+ const { t } = x(), { currency: n } = Z(he()), a = e, i = o;
224
+ function c(d) {
225
+ a("update:modelValue", d);
192
226
  }
193
- const h = q({
194
- get: () => u.modelValue,
195
- set: (d) => p(d)
227
+ const p = U({
228
+ get: () => i.modelValue,
229
+ set: (d) => c(d)
196
230
  });
197
- return (d, c) => (E(), A(Ce, {
198
- modelValue: h.value,
199
- "onUpdate:modelValue": c[0] || (c[0] = (g) => h.value = g),
231
+ return (d, s) => (m(), H(He, {
232
+ modelValue: p.value,
233
+ "onUpdate:modelValue": s[0] || (s[0] = (u) => p.value = u),
200
234
  label: d.label,
201
235
  placeholder: "Select guest configuration",
202
236
  labelKey: "label",
@@ -207,79 +241,76 @@ const No = { key: 0 }, Go = { key: 1 }, we = /* @__PURE__ */ N({
207
241
  required: d.required,
208
242
  searchable: !1
209
243
  }, {
210
- option: H(({ data: g }) => [
211
- v("span", Yo, [
212
- v("div", null, [
213
- I(J, {
244
+ option: _(({ data: u }) => [
245
+ r("span", ko, [
246
+ r("div", null, [
247
+ v(G, {
214
248
  icon: "male",
215
249
  type: "fas",
216
250
  color: "font"
217
251
  }),
218
- v("span", null, L(`${g.adults}`), 1),
219
- g.children > 0 ? (E(), $("span", Ko, [
220
- I(J, {
252
+ r("span", null, y(`${u.adults}`), 1),
253
+ u.children > 0 ? (m(), f("span", _o, [
254
+ v(G, {
221
255
  icon: "child",
222
256
  type: "fas",
223
257
  color: "font"
224
258
  }),
225
- v("span", null, L(`${g.children}`), 1)
226
- ])) : x("", !0)
259
+ r("span", null, y(`${u.children}`), 1)
260
+ ])) : V("", !0)
227
261
  ]),
228
- v("span", null, L(`(${s(ie)(g.price, s(n))})`), 1)
262
+ r("span", null, y(`(${l(ie)(u.price, l(n))})`), 1)
229
263
  ])
230
264
  ]),
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)
265
+ "selected-option": _(({ data: u }) => [
266
+ r("div", Vo, [
267
+ r("div", $o, [
268
+ r("div", null, [
269
+ V("", !0),
270
+ r("span", null, y(`${u.adults} ${u.adults === 1 ? l(t)("general.adult") : l(t)("general.adults")}`), 1)
237
271
  ]),
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)
272
+ u.children > 0 ? (m(), f("div", To, [
273
+ V("", !0),
274
+ r("span", null, y(`& ${u.children} ${u.children === 1 ? l(t)("general.child") : l(t)("general.children")}`), 1)
275
+ ])) : V("", !0)
242
276
  ]),
243
- v("div", Zo, [
244
- en,
245
- qe(" " + L(`(${s(ie)(g.price, s(n))})`), 1)
277
+ r("div", Co, [
278
+ wo,
279
+ Ne(" " + y(`(${l(ie)(u.price, l(n))})`), 1)
246
280
  ])
247
281
  ])
248
282
  ]),
249
283
  _: 1
250
284
  }, 8, ["modelValue", "label", "options", "readonly", "required"]));
251
285
  }
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({
286
+ }), Ho = /* @__PURE__ */ ee(Po, [["__scopeId", "data-v-69fe83d8"]]), So = { class: "konnectio-availability-listing-selection" }, Do = { key: 1 }, Ao = { class: "fresh-booking-listing-config-body" }, Io = { class: "fresh-booking-listing-units-body" };
287
+ const Eo = /* @__PURE__ */ q({
253
288
  __name: "Hotel",
254
289
  props: {
255
290
  room: {},
256
291
  layout: {}
257
292
  },
258
293
  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({
294
+ const { t: e } = x(), t = o, n = Y([]);
295
+ function a(k) {
296
+ n.value[k].config.push({
297
+ id: NaN,
298
+ units: 0,
299
+ addons: []
300
+ });
301
+ }
302
+ const i = U(() => t.room.rates.map((k) => ({
303
+ label: k.name,
304
+ value: k.id
305
+ }))), { hideAvailableRoomAmount: c } = Z(he()), { roomSelect: p } = Z(re()), { addToCart: d, removeFromCart: s } = lt(), u = (k, w) => t.room.rates.find((A) => A.id === k)?.occupantRates.find((A) => A.index === w), h = U(() => t.room.rates.every((k) => k.isBreakfastIncluded === !0)), b = (k, w) => u(k, w) ? u(k, w)?.rooms : null, D = (k) => t.room.rates.length > 0 ? t.room.rates.find((w) => w.id === k)?.occupantRates.map((w) => ({
306
+ value: w.index,
307
+ price: w.totalPrice,
308
+ adults: w.adultsCount,
309
+ children: w.childrenCount,
310
+ hasBreakfast: w.hasBreakfast
311
+ })) || [] : [], C = U(() => t.room.rates.length > 1);
312
+ function O() {
313
+ C.value ? n.value.push({
283
314
  id: void 0,
284
315
  config: [{
285
316
  id: t.room.rates[0].occupantRateIndex || NaN,
@@ -295,100 +326,100 @@ const No = { key: 0 }, Go = { key: 1 }, we = /* @__PURE__ */ N({
295
326
  }]
296
327
  });
297
328
  }
298
- je(() => {
299
- _();
329
+ Se(() => {
330
+ O();
300
331
  });
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({
332
+ const N = U(() => JSON.parse(JSON.stringify(n.value)));
333
+ return Te(N, (k, w) => {
334
+ w.length > 0 && k.forEach((A, F) => {
335
+ A.config.forEach((E, W) => {
336
+ const j = E.units, S = w[F].config[W].units;
337
+ j !== S && (j > S ? (n.value[F].config[W].addons.push({}), d({
307
338
  id: t.room.id,
308
339
  name: t.room.title,
309
- value: t.room.rates[T].rackRate
310
- })) : (n.value[T].config[w].addons.pop(), d({
340
+ value: t.room.rates[F].rackRate
341
+ })) : (n.value[F].config[W].addons.pop(), s({
311
342
  id: t.room.id,
312
343
  name: t.room.title,
313
- value: t.room.rates[T].rackRate
344
+ value: t.room.rates[F].rackRate
314
345
  })));
315
346
  });
316
347
  });
317
- }, { deep: !0 }), Ee(n, () => {
348
+ }, { deep: !0 }), Te(n, () => {
318
349
  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
350
+ }, { deep: !0 }), (k, w) => (m(), H(De, {
351
+ "listing-id": k.room.id,
352
+ gallery: k.room.images,
353
+ name: k.room.title,
354
+ description: k.room.description,
355
+ layout: k.layout,
356
+ facilities: k.room.facilities,
357
+ "prices-from": k.room.pricesFrom,
358
+ "includes-breakfast": h.value
328
359
  }, {
329
- action: H(() => [
330
- v("div", nn, [
331
- (E(!0), $(M, null, z(n.value, (m, T) => (E(), $("div", {
332
- key: m.id,
360
+ action: _(() => [
361
+ r("div", So, [
362
+ (m(!0), f(I, null, M(n.value, (A, F) => (m(), f("div", {
363
+ key: A.id,
333
364
  class: "freshbooking-hotel-room"
334
365
  }, [
335
- k.value ? (E(), A(Ce, {
366
+ C.value ? (m(), H(He, {
336
367
  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,
368
+ modelValue: A.id,
369
+ "onUpdate:modelValue": (E) => A.id = E,
370
+ label: l(e)("hotel.roomVariant"),
371
+ placeholder: l(e)("hotel.chooseARoomVariant"),
372
+ options: i.value,
342
373
  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,
374
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "label", "placeholder", "options"])) : V("", !0),
375
+ A.id ? (m(), f("div", Do, [
376
+ (m(!0), f(I, null, M(k.room.rates, ({
377
+ id: E,
378
+ maximumOccupants: W
379
+ }) => (m(), f("div", {
380
+ key: E,
350
381
  class: "booking-availability-listing-action-selective-i"
351
382
  }, [
352
- m.id === C ? (E(!0), $(M, { key: 0 }, z(m.config, (V, W) => (E(), $("div", {
353
- key: W,
383
+ A.id === E ? (m(!0), f(I, { key: 0 }, M(A.config, (j, S) => (m(), f("div", {
384
+ key: S,
354
385
  class: "booking-availability-listing-action-selective"
355
386
  }, [
356
- v("ul", sn, [
357
- I(on, {
358
- modelValue: V.id,
359
- "onUpdate:modelValue": (D) => V.id = D,
387
+ r("ul", Ao, [
388
+ v(Ho, {
389
+ modelValue: j.id,
390
+ "onUpdate:modelValue": (Q) => j.id = Q,
360
391
  icon: "male",
361
392
  "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)
393
+ label: l(e)("general.guests"),
394
+ description: `${l(e)("general.maximumGuests")}: ${W}`,
395
+ options: D(E),
396
+ readonly: !(D(E).length > 1)
366
397
  }, null, 8, ["modelValue", "onUpdate:modelValue", "label", "description", "options", "readonly"])
367
398
  ]),
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)}`,
399
+ r("ul", Io, [
400
+ v(nt, {
401
+ modelValue: j.units,
402
+ "onUpdate:modelValue": (Q) => j.units = Q,
403
+ description: l(c) ? void 0 : `${l(e)("booking.availability.availableUnits")}: ${b(A.id, j.id)}`,
373
404
  icon: "house",
374
405
  "icon-type": "fas",
375
406
  "icon-placement": "label",
376
- label: s(e)("booking.availability.units"),
407
+ label: l(e)("booking.availability.units"),
377
408
  minValue: 0,
378
- "max-value": b(C, V.id) || 1 / 0
409
+ "max-value": b(E, j.id) || 1 / 0
379
410
  }, null, 8, ["modelValue", "onUpdate:modelValue", "description", "label", "max-value"])
380
411
  ]),
381
- x("", !0)
382
- ]))), 128)) : x("", !0)
412
+ V("", !0)
413
+ ]))), 128)) : V("", !0)
383
414
  ]))), 128))
384
- ])) : x("", !0)
415
+ ])) : V("", !0)
385
416
  ]))), 128))
386
417
  ])
387
418
  ]),
388
419
  _: 1
389
420
  }, 8, ["listing-id", "gallery", "name", "description", "layout", "facilities", "prices-from", "includes-breakfast"]));
390
421
  }
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({
422
+ }), Bo = /* @__PURE__ */ ee(Eo, [["__scopeId", "data-v-2121431c"]]), Mo = { class: "konnectio-template-side-panel" }, Lo = { class: "konnectio-template-side-panel-listings" }, Ro = /* @__PURE__ */ q({
392
423
  __name: "Template",
393
424
  props: {
394
425
  title: {},
@@ -397,39 +428,44 @@ const No = { key: 0 }, Go = { key: 1 }, we = /* @__PURE__ */ N({
397
428
  callback: { type: Function }
398
429
  },
399
430
  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);
431
+ const { t: e } = x(), { templateID: t, roomGroupID: n } = Z(re()), { currency: a } = Z(he()), { clearRoomSelection: i } = re(), c = o, p = Y(!0), d = U(() => {
432
+ function u(h, b) {
433
+ return p.value === !0 ? h.extraPrice > b.extraPrice ? -1 : 1 : h.extraPrice > b.extraPrice ? 1 : -1;
434
+ }
435
+ return c.roomGroups?.slice().sort(u);
436
+ });
437
+ function s(u) {
438
+ t.value = c.templateId, n.value = u, i(), c.callback(2);
403
439
  }
404
- return (d, c) => (E(), A(Oo, {
405
- title: d.title,
406
- subtitle: s(e)("booking.availability.selectATemplateRoom")
440
+ return (u, h) => (m(), H(ro, {
441
+ title: u.title,
442
+ subtitle: l(e)("booking.availability.selectATemplateRoom")
407
443
  }, {
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,
444
+ default: _(() => [
445
+ r("div", Mo, [
446
+ r("div", Lo, [
447
+ (m(!0), f(I, null, M(d.value, ({
448
+ id: b,
449
+ title: D,
450
+ description: C,
451
+ images: O,
452
+ facilities: N,
453
+ extraPrice: k
454
+ }) => (m(), H(De, {
455
+ key: b,
456
+ "listing-id": b,
457
+ name: D,
458
+ description: C,
459
+ facilities: N,
460
+ gallery: O,
425
461
  "includes-breakfast": !1,
426
462
  "hide-info-button": !0
427
463
  }, {
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))})`,
464
+ action: _(() => [
465
+ r("div", null, [
466
+ v(se, {
467
+ onClickEvent: (w) => s(b),
468
+ label: `${l(e)("booking.availability.selectThisRoom")} (${l(ie)(k, l(a))})`,
433
469
  "full-width": ""
434
470
  }, null, 8, ["onClickEvent", "label"])
435
471
  ])
@@ -442,7 +478,7 @@ const No = { key: 0 }, Go = { key: 1 }, we = /* @__PURE__ */ N({
442
478
  _: 1
443
479
  }, 8, ["title", "subtitle"]));
444
480
  }
445
- }), hn = /* @__PURE__ */ X(pn, [["__scopeId", "data-v-4c035ea3"]]), fn = ["innerHTML"], mn = /* @__PURE__ */ N({
481
+ }), dt = /* @__PURE__ */ ee(Ro, [["__scopeId", "data-v-f7af0f66"]]), Uo = ["innerHTML"], Fo = { class: "konnectio-template-select-package" }, Oo = /* @__PURE__ */ q({
446
482
  __name: "Template",
447
483
  props: {
448
484
  id: {},
@@ -454,60 +490,145 @@ const No = { key: 0 }, Go = { key: 1 }, we = /* @__PURE__ */ N({
454
490
  callback: { type: Function }
455
491
  },
456
492
  setup(o) {
457
- const { t: e } = re(), t = o, n = q(() => t.roomGroups.reduce(
458
- (d, c) => d < c.extraPrice ? d : c.extraPrice,
493
+ const { t: e } = x(), t = o, n = U(() => t.roomGroups.reduce(
494
+ (d, s) => d < s.extraPrice ? d : s.extraPrice,
459
495
  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);
466
- function p() {
467
- u.value = !0;
496
+ )), a = U(() => {
497
+ if (t.image)
498
+ return [{
499
+ large: t.image.url,
500
+ medium: t.image.url,
501
+ thumb: t.image.url,
502
+ url: t.image.url
503
+ }];
504
+ }), i = Y(!1);
505
+ function c() {
506
+ i.value = !0;
468
507
  }
469
- function h(d) {
470
- t.callback(d), u.value = !1;
508
+ function p(d) {
509
+ t.callback(d), i.value = !1;
471
510
  }
472
- return (d, c) => (E(), A(Ye, {
511
+ return (d, s) => (m(), H(De, {
473
512
  "listing-id": d.id,
474
513
  name: d.name,
475
514
  description: d.description,
476
- gallery: l.value,
477
- layout: s(Co).Template,
515
+ gallery: a.value,
516
+ layout: l(it).Template,
478
517
  "includes-breakfast": !1,
479
518
  "hide-info-button": !1,
480
519
  "prices-from": n.value
481
520
  }, {
482
- description: H(() => [
483
- d.description ? (E(), $("p", {
521
+ description: _(() => [
522
+ d.description ? (m(), f("p", {
484
523
  key: 0,
485
- innerHTML: s($o)(d.description)
486
- }, null, 8, fn)) : x("", !0)
524
+ innerHTML: l(at)(d.description)
525
+ }, null, 8, Uo)) : V("", !0)
487
526
  ]),
488
- action: H(() => [
489
- v("div", null, [
490
- I(ce, {
491
- onClickEvent: p,
492
- label: s(e)("booking.availability.selectPackage"),
527
+ action: _(() => [
528
+ r("div", Fo, [
529
+ v(se, {
530
+ onClickEvent: c,
531
+ label: l(e)("booking.availability.selectPackage"),
493
532
  "full-width": ""
494
533
  }, null, 8, ["label"])
495
534
  ])
496
535
  ]),
497
- default: H(() => [
498
- I(hn, {
499
- modelValue: u.value,
500
- "onUpdate:modelValue": c[0] || (c[0] = (g) => u.value = g),
536
+ default: _(() => [
537
+ v(dt, {
538
+ modelValue: i.value,
539
+ "onUpdate:modelValue": s[0] || (s[0] = (u) => i.value = u),
501
540
  title: d.name,
502
541
  "template-id": d.id,
503
542
  roomGroups: d.roomGroups,
504
- callback: h
543
+ callback: p
505
544
  }, null, 8, ["modelValue", "title", "template-id", "roomGroups"])
506
545
  ]),
507
546
  _: 1
508
547
  }, 8, ["listing-id", "name", "description", "gallery", "layout", "prices-from"]));
509
548
  }
510
- }), gn = /* @__PURE__ */ X(mn, [["__scopeId", "data-v-edc2f058"]]), rt = /* @__PURE__ */ N({
549
+ }), No = ["innerHTML"], jo = { class: "konnectio-special-offer-availability" }, Go = { class: "konnectio-special-offer-availability-button" }, qo = /* @__PURE__ */ q({
550
+ __name: "SpecialOffer",
551
+ props: {
552
+ id: {},
553
+ weekendFee: {},
554
+ description: {},
555
+ name: {},
556
+ toDate: {},
557
+ fromDate: {},
558
+ image: {},
559
+ roomGroups: {},
560
+ callback: { type: Function }
561
+ },
562
+ setup(o) {
563
+ const { t: e } = x(), { updateDates: t } = st(), n = o, a = Y([]), i = U(() => Oe(n.fromDate, n.toDate) === 1), c = U(() => [{
564
+ large: n.image.url,
565
+ medium: n.image.url,
566
+ thumb: n.image.url,
567
+ url: n.image.url
568
+ }]), p = Y(!1);
569
+ function d(u) {
570
+ n.callback(u), p.value = !1;
571
+ }
572
+ function s() {
573
+ t(a.value[0], a.value[1]);
574
+ }
575
+ return Se(() => {
576
+ i.value && (a.value = [new Date(n.fromDate), new Date(n.toDate)]);
577
+ }), (u, h) => (m(), H(De, {
578
+ "listing-id": u.id,
579
+ name: u.name,
580
+ description: u.description,
581
+ gallery: c.value,
582
+ layout: l(it).Template,
583
+ "includes-breakfast": !1,
584
+ "hide-info-button": !1,
585
+ "to-date": u.toDate,
586
+ "from-date": u.fromDate
587
+ }, {
588
+ description: _(() => [
589
+ u.description ? (m(), f("p", {
590
+ key: 0,
591
+ innerHTML: l(at)(u.description)
592
+ }, null, 8, No)) : V("", !0)
593
+ ]),
594
+ action: _(() => [
595
+ r("div", jo, [
596
+ v(ut, {
597
+ modelValue: a.value,
598
+ "onUpdate:modelValue": h[0] || (h[0] = (b) => a.value = b),
599
+ label: l(e)("availability.checkInOut"),
600
+ placeholder: l(e)("booking.availability.selectDates"),
601
+ "icon-type": "fas",
602
+ "icon-placement": "label",
603
+ "min-range": 1,
604
+ "start-date": new Date(u.fromDate),
605
+ "min-date": new Date(u.fromDate),
606
+ "max-date": new Date(u.toDate),
607
+ readonly: i.value,
608
+ range: ""
609
+ }, null, 8, ["modelValue", "label", "placeholder", "start-date", "min-date", "max-date", "readonly"]),
610
+ r("div", Go, [
611
+ v(se, {
612
+ label: l(e)("availability.buttonLabel"),
613
+ onClick: $e(s, ["prevent"])
614
+ }, null, 8, ["label"])
615
+ ])
616
+ ])
617
+ ]),
618
+ default: _(() => [
619
+ v(dt, {
620
+ modelValue: p.value,
621
+ "onUpdate:modelValue": h[1] || (h[1] = (b) => p.value = b),
622
+ title: u.name,
623
+ "template-id": u.id,
624
+ roomGroups: u.roomGroups,
625
+ callback: d
626
+ }, null, 8, ["modelValue", "title", "template-id", "roomGroups"])
627
+ ]),
628
+ _: 1
629
+ }, 8, ["listing-id", "name", "description", "gallery", "layout", "to-date", "from-date"]));
630
+ }
631
+ }), Ze = /* @__PURE__ */ q({
511
632
  __name: "TimeField",
512
633
  props: {
513
634
  modelValue: {},
@@ -533,28 +654,28 @@ const No = { key: 0 }, Go = { key: 1 }, we = /* @__PURE__ */ N({
533
654
  emits: ["update:modelValue"],
534
655
  setup(o, { emit: e }) {
535
656
  const t = e, n = o;
536
- function l(p) {
537
- t("update:modelValue", p);
657
+ function a(c) {
658
+ t("update:modelValue", c);
538
659
  }
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),
660
+ const i = Y(n.modelValue);
661
+ return Te(i, (c) => {
662
+ a(c);
663
+ }), (c, p) => (m(), H(ut, {
664
+ modelValue: i.value,
665
+ "onUpdate:modelValue": p[0] || (p[0] = (d) => i.value = d),
545
666
  type: "time",
546
- label: p.label,
547
- id: p.id,
548
- name: p.name,
549
- icon: p.icon,
550
- "icon-type": p.iconType,
551
- "icon-color": p.iconColor,
667
+ label: c.label,
668
+ id: c.id,
669
+ name: c.name,
670
+ icon: c.icon,
671
+ "icon-type": c.iconType,
672
+ "icon-color": c.iconColor,
552
673
  "auto-apply": !0,
553
- required: p.required,
554
- readonly: p.readonly
674
+ required: c.required,
675
+ readonly: c.readonly
555
676
  }, null, 8, ["modelValue", "label", "id", "name", "icon", "icon-type", "icon-color", "required", "readonly"]));
556
677
  }
557
- }), vn = { style: { display: "flex", "align-items": "baseline" } }, yn = /* @__PURE__ */ N({
678
+ }), Wo = { style: { display: "flex", "align-items": "baseline" } }, Ko = /* @__PURE__ */ q({
558
679
  __name: "CountryField",
559
680
  props: {
560
681
  modelValue: {},
@@ -566,42 +687,42 @@ const No = { key: 0 }, Go = { key: 1 }, we = /* @__PURE__ */ N({
566
687
  },
567
688
  emits: ["update:modelValue"],
568
689
  setup(o, { emit: e }) {
569
- const { t } = re(), n = e, l = o;
570
- function u(h) {
571
- n("update:modelValue", h);
690
+ const { t } = x(), n = e, a = o;
691
+ function i(p) {
692
+ n("update:modelValue", p);
572
693
  }
573
- const p = q({
574
- get: () => l.modelValue,
575
- set: (h) => u(h)
694
+ const c = U({
695
+ get: () => a.modelValue,
696
+ set: (p) => i(p)
576
697
  });
577
- return (h, d) => (E(), A(Ce, {
578
- 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"),
698
+ return (p, d) => (m(), H(He, {
699
+ modelValue: c.value,
700
+ "onUpdate:modelValue": d[0] || (d[0] = (s) => c.value = s),
701
+ label: p.label,
702
+ placeholder: l(t)("booking.reservation.countryPlaceholder"),
582
703
  labelKey: "name",
583
704
  valueKey: "id",
584
- options: h.options,
585
- required: h.required
705
+ options: p.options,
706
+ required: p.required
586
707
  }, {
587
- option: H(({ data: c }) => [
588
- v("i", {
589
- class: Te(["konnectio-flag-icon", c.iso])
708
+ option: _(({ data: s }) => [
709
+ r("i", {
710
+ class: Ce(["konnectio-flag-icon", s.iso])
590
711
  }, null, 2),
591
- v("span", null, L(c.name), 1)
712
+ r("span", null, y(s.name), 1)
592
713
  ]),
593
- "selected-option": H(({ data: c }) => [
594
- v("div", vn, [
595
- v("i", {
596
- class: Te(["konnectio-flag-icon", c.iso])
714
+ "selected-option": _(({ data: s }) => [
715
+ r("div", Wo, [
716
+ r("i", {
717
+ class: Ce(["konnectio-flag-icon", s.iso])
597
718
  }, null, 2),
598
- v("span", null, L(c.name), 1)
719
+ r("span", null, y(s.name), 1)
599
720
  ])
600
721
  ]),
601
722
  _: 1
602
723
  }, 8, ["modelValue", "label", "placeholder", "options", "required"]));
603
724
  }
604
- }), bn = /* @__PURE__ */ X(yn, [["__scopeId", "data-v-1462612d"]]), kn = { class: "konnectio-radio-checkboxes" }, _n = /* @__PURE__ */ N({
725
+ }), zo = /* @__PURE__ */ ee(Ko, [["__scopeId", "data-v-1462612d"]]), Jo = { class: "konnectio-radio-checkboxes" }, Zo = /* @__PURE__ */ q({
605
726
  __name: "CheckboxField",
606
727
  props: {
607
728
  modelValue: {},
@@ -612,27 +733,27 @@ const No = { key: 0 }, Go = { key: 1 }, we = /* @__PURE__ */ N({
612
733
  emits: ["update:modelValue"],
613
734
  setup(o, { emit: e }) {
614
735
  const t = e, n = o;
615
- function l(p) {
616
- t("update:modelValue", p);
736
+ function a(c) {
737
+ t("update:modelValue", c);
617
738
  }
618
- const u = q({
739
+ const i = U({
619
740
  get: () => n.modelValue,
620
- set: (p) => l(p)
741
+ set: (c) => a(c)
621
742
  });
622
- return (p, h) => (E(), A(It, {
623
- label: p.label,
743
+ return (c, p) => (m(), H(rt, {
744
+ label: c.label,
624
745
  type: "multi-radio"
625
746
  }, {
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),
747
+ default: _(() => [
748
+ r("ul", Jo, [
749
+ (m(!0), f(I, null, M(c.checkboxes, ({ label: d, value: s }, u) => (m(), f("li", { key: u }, [
750
+ v(we, {
751
+ modelValue: i.value,
752
+ "onUpdate:modelValue": p[0] || (p[0] = (h) => i.value = h),
632
753
  label: d,
633
- name: p.name,
754
+ name: c.name,
634
755
  type: "radio",
635
- val: c
756
+ val: s
636
757
  }, null, 8, ["modelValue", "label", "name", "val"])
637
758
  ]))), 128))
638
759
  ])
@@ -640,7 +761,7 @@ const No = { key: 0 }, Go = { key: 1 }, we = /* @__PURE__ */ N({
640
761
  _: 1
641
762
  }, 8, ["label"]));
642
763
  }
643
- }), En = /* @__PURE__ */ X(_n, [["__scopeId", "data-v-d8d42a8a"]]), Tn = /* @__PURE__ */ N({
764
+ }), Yo = /* @__PURE__ */ ee(Zo, [["__scopeId", "data-v-7185c7da"]]), Qo = /* @__PURE__ */ q({
644
765
  __name: "NameField",
645
766
  props: {
646
767
  modelValue: {},
@@ -662,248 +783,197 @@ const No = { key: 0 }, Go = { key: 1 }, we = /* @__PURE__ */ N({
662
783
  },
663
784
  emits: ["update:modelValue", "update:title"],
664
785
  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);
786
+ const t = o, n = e, a = t.id || Je(), i = Y(""), c = Y(2);
787
+ function p() {
788
+ n("update:modelValue", i.value);
668
789
  }
669
- Ee(p, (c) => {
670
- n("update:title", c);
790
+ Te(c, (s) => {
791
+ n("update:title", s);
671
792
  });
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,
793
+ const { t: d } = x();
794
+ return Se(() => {
795
+ t.modelValue && (i.value = t.modelValue), t.title && (c.value = t.title);
796
+ }), (s, u) => (m(), H(rt, {
797
+ label: s.label,
798
+ id: l(a),
799
+ required: s.required,
679
800
  type: "fresh-booking-name-field",
680
- readonly: c.readonly,
681
- limit: c.limit
801
+ readonly: s.readonly,
802
+ limit: s.limit
682
803
  }, {
683
- default: H(() => [
684
- v("div", {
685
- class: Te([
804
+ default: _(() => [
805
+ r("div", {
806
+ class: Ce([
686
807
  "fresh-booking-name-input",
687
- { "no-title": c.excludeTitle }
808
+ { "no-title": s.excludeTitle }
688
809
  ])
689
810
  }, [
690
- c.excludeTitle ? x("", !0) : (E(), A(Ce, {
811
+ s.excludeTitle ? V("", !0) : (m(), H(He, {
691
812
  key: 0,
692
- 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,
813
+ modelValue: c.value,
814
+ "onUpdate:modelValue": u[0] || (u[0] = (h) => c.value = h),
815
+ id: l(Je)(),
816
+ icon: s.icon,
817
+ "icon-color": s.iconColor,
818
+ "icon-type": s.iconType,
698
819
  options: [
699
820
  {
700
- label: s(d)("booking.reservation.noNameTitle"),
821
+ label: l(d)("booking.reservation.noNameTitle"),
701
822
  value: 1
702
823
  },
703
824
  {
704
- label: s(d)("booking.reservation.nameTitleMr"),
825
+ label: l(d)("booking.reservation.nameTitleMr"),
705
826
  value: 2
706
827
  },
707
828
  {
708
- label: s(d)("booking.reservation.nameTitleMs"),
829
+ label: l(d)("booking.reservation.nameTitleMs"),
709
830
  value: 3
710
831
  },
711
832
  {
712
- label: s(d)("booking.reservation.nameTitleMrs"),
833
+ label: l(d)("booking.reservation.nameTitleMrs"),
713
834
  value: 4
714
835
  },
715
836
  {
716
- label: s(d)("booking.reservation.nameTitleDr"),
837
+ label: l(d)("booking.reservation.nameTitleDr"),
717
838
  value: 5
718
839
  }
719
840
  ],
720
- readonly: c.readonly,
841
+ readonly: s.readonly,
721
842
  "hide-button": "",
722
- "input-style": c.inputStyle,
843
+ "input-style": s.inputStyle,
723
844
  searchable: !1
724
845
  }, 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),
846
+ v(ne, {
847
+ modelValue: i.value,
848
+ "onUpdate:modelValue": u[1] || (u[1] = (h) => i.value = h),
728
849
  type: "text",
729
850
  name: "name",
730
851
  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
852
+ id: l(a),
853
+ icon: s.excludeTitle ? s.icon : void 0,
854
+ "icon-color": s.iconColor,
855
+ "icon-type": s.iconType,
856
+ placeholder: s.placeholder,
857
+ required: s.required,
858
+ readonly: s.readonly,
859
+ limit: s.limit,
860
+ onInput: u[2] || (u[2] = (h) => p()),
861
+ "input-style": s.inputStyle
741
862
  }, null, 8, ["modelValue", "id", "icon", "icon-color", "icon-type", "placeholder", "required", "readonly", "limit", "input-style"])
742
863
  ], 2)
743
864
  ]),
744
865
  _: 1
745
866
  }, 8, ["label", "id", "required", "readonly", "limit"]));
746
867
  }
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({
868
+ }), Xo = /* @__PURE__ */ ee(Qo, [["__scopeId", "data-v-78b0b319"]]), xo = { class: "hotel-skeleton" }, el = { class: "hotel-skeleton-content" }, tl = { class: "hotel-skeleton-sidebar" }, ol = /* @__PURE__ */ q({
804
869
  __name: "HotelSkeleton",
805
870
  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)
871
+ return (e, t) => (m(), f("div", xo, [
872
+ r("div", el, [
873
+ v(po, { hotel: "" }),
874
+ v(eo)
812
875
  ]),
813
- v("div", Dn, [
814
- I(Ro)
876
+ r("div", tl, [
877
+ v(to)
815
878
  ])
816
879
  ]));
817
880
  }
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 = {
881
+ }), ll = /* @__PURE__ */ ee(ol, [["__scopeId", "data-v-1bb21da4"]]), nl = (o) => (tt("data-v-514816f7"), o = o(), ot(), o), al = { id: "booking-availability-container" }, il = { id: "booking-availability-controls" };
882
+ const sl = { key: 1 }, rl = { key: 0 }, ul = {
819
883
  key: 0,
820
884
  id: "booking-availability-packages"
821
- }, Nn = {
885
+ }, dl = {
822
886
  key: 0,
823
887
  class: "konnectio-hotel-availability-title"
824
- }, Gn = { id: "booking-availability-packages-wrapper" }, jn = { key: 1 }, Yn = {
888
+ }, cl = { id: "booking-availability-packages-wrapper" }, pl = { key: 1 }, ml = {
825
889
  key: 0,
826
890
  class: "konnectio-hotel-availability-title"
827
- }, Kn = { id: "booking-availability-listings" }, Qn = {
891
+ }, fl = { id: "booking-availability-listings" }, hl = {
828
892
  key: 2,
893
+ id: "booking-availability-packages"
894
+ }, vl = {
895
+ key: 0,
896
+ class: "konnectio-hotel-availability-title"
897
+ }, gl = { id: "booking-availability-packages-wrapper" }, yl = {
898
+ key: 3,
829
899
  id: "booking-availability-no-listings",
830
900
  class: "fresh-booking-panel"
831
- }, Jn = {
901
+ }, bl = {
832
902
  key: 1,
833
903
  id: "booking-availability-no-listings"
834
- }, Xn = {
904
+ }, kl = {
835
905
  key: 2,
836
906
  id: "reservation-availability-next-dates"
837
- }, Zn = { class: "konnectio-hotel-availability-title" }, ei = { class: "reservation-special-offers-grid" }, ti = ["title"], oi = {
907
+ }, _l = { class: "konnectio-hotel-availability-title" }, Vl = { class: "reservation-special-offers-grid" }, $l = ["title"];
908
+ const Tl = {
838
909
  key: 2,
839
910
  class: "konnectio-listing-loading"
840
- }, ni = { class: "fresh-booking-panel" }, ii = {
911
+ }, Cl = { class: "fresh-booking-panel" }, wl = {
841
912
  key: 0,
842
913
  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({
914
+ };
915
+ const Pl = { class: "fresh-booking-event-addons-price" }, Hl = { key: 1 }, Sl = /* @__PURE__ */ nl(() => /* @__PURE__ */ r("br", null, null, -1)), Dl = ["onClick"], Al = { class: "fresh-booking-panel" }, Il = { key: 0 }, El = { key: 1 }, Bl = { class: "fresh-booking-split-inputs" }, Ml = ["onClick"], Ll = /* @__PURE__ */ q({
844
916
  name: "HotelLayout",
845
917
  __name: "Hotel",
846
918
  props: {
847
919
  accessToken: {},
848
- headerLayout: { default: So.Minimal },
920
+ headerLayout: { default: Nt.Minimal },
849
921
  onlyShow: { default: "everything" },
850
922
  styling: {}
851
923
  },
852
924
  setup(o) {
853
- const { t: e } = re(), {
925
+ const { t: e } = x(), {
854
926
  templateID: t,
855
927
  countries: n,
856
- areListingsLoading: l,
857
- isPaymentLoading: u,
858
- isReservationFormFilled: p,
859
- travelingFor: h,
928
+ areListingsLoading: a,
929
+ isPaymentLoading: i,
930
+ isReservationFormFilled: c,
931
+ travelingFor: p,
860
932
  arrivalTime: d,
861
- departureTime: c,
862
- name: g,
863
- nameTitle: y,
933
+ departureTime: s,
934
+ name: u,
935
+ nameTitle: h,
864
936
  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 = [
937
+ phone: D,
938
+ firmName: C,
939
+ postal: O,
940
+ city: N,
941
+ address: k,
942
+ country: w,
943
+ remark: A,
944
+ allergies: F,
945
+ roomSelect: E,
946
+ roomDisplay: W,
947
+ hasValidRoomSelection: j,
948
+ availabilityData: S,
949
+ selectionHasNoAddons: Q
950
+ } = Z(re()), {
951
+ arrivalDate: de,
952
+ departureDate: ve
953
+ } = Z(st()), {
954
+ currency: K,
955
+ arrivalEarliest: z,
956
+ arrivalLatest: L,
957
+ departureEarliest: ce,
958
+ departureLatest: Ae,
959
+ enableTracking: ge,
960
+ arrivalDefault: Ie,
961
+ departureDefault: te,
962
+ hideArrivalDepartureInputs: Ee,
963
+ disableArrivalUserSelection: ye,
964
+ disableNamePrefix: vt,
965
+ disableDepartureUserSelection: Be,
966
+ disableTravelingFor: gt,
967
+ disableTravelingForBleasure: yt,
968
+ disableCompanyField: bt,
969
+ hasPaymentGateway: kt
970
+ } = Z(he()), { beginCheckout: _t } = lt(), {
971
+ initialize: Vt,
972
+ resetTemplate: $t,
973
+ resetDiscountVoucher: Tt,
974
+ createReservation: Ct
975
+ } = re(), wt = Y(!0), Pt = U(() => {
976
+ const T = [
907
977
  {
908
978
  label: e("booking.reservation.business"),
909
979
  value: "Business"
@@ -913,157 +983,182 @@ const No = { key: 0 }, Go = { key: 1 }, we = /* @__PURE__ */ N({
913
983
  value: "Pleasure"
914
984
  }
915
985
  ];
916
- return jt.value || O.push({
986
+ return yt.value || T.push({
917
987
  label: e("booking.reservation.bleasure"),
918
988
  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;
989
+ }), T;
990
+ }), Ht = U(() => {
991
+ const T = S.value.roomGroups.slice();
992
+ function $(J, P) {
993
+ return wt.value === !0 ? J.pricesFrom > P.pricesFrom ? -1 : 1 : J.pricesFrom > P.pricesFrom ? 1 : -1;
930
994
  }
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])
995
+ return T.sort($);
996
+ }), St = U(() => [[
997
+ parseInt(z.value.split(":")[0]),
998
+ parseInt(L.value.split(":")[0])
999
+ ]]), Dt = U(() => [[
1000
+ parseInt(ce.value.split(":")[0]),
1001
+ parseInt(Ae.value.split(":")[0])
938
1002
  ]]);
939
- function Xe(O) {
940
- G.value ? O(2) : O(), Zt();
1003
+ function We(T) {
1004
+ Q.value ? T(2) : T(), Tt();
941
1005
  }
942
- function so(O, P) {
943
- j.value = new Date(P), ee.value = new Date(O), location.reload();
1006
+ function At(T, $) {
1007
+ ve.value = new Date($), de.value = new Date(T), location.reload();
944
1008
  }
945
- function ao(O) {
946
- return Q(this, null, function* () {
947
- yield eo(O);
948
- });
1009
+ async function It(T) {
1010
+ await Ct(T);
949
1011
  }
950
- function lo(O) {
951
- Bt.value && Qt(), G.value ? O(2) : O();
1012
+ function Et(T) {
1013
+ ge.value && _t(), Q.value ? T(2) : T();
952
1014
  }
953
- function uo() {
954
- d.value === "" && (d.value = Ft.value), c.value === "" && (c.value = qt.value);
1015
+ function Bt() {
1016
+ d.value === "" && (d.value = Ie.value), s.value === "" && (s.value = te.value);
955
1017
  }
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, {
1018
+ return Se(() => {
1019
+ Vt(), Bt();
1020
+ }), (T, $) => (m(), H(jt, { styling: T.styling }, {
1021
+ default: _(() => [
1022
+ (m(), H(Gt, null, {
1023
+ default: _(() => [
1024
+ v(Wt, {
963
1025
  id: "fresh-booking-hotel-module",
964
- "access-token": O.accessToken,
1026
+ "access-token": T.accessToken,
965
1027
  type: "hotel"
966
1028
  }, {
967
- default: H(() => [
968
- I(Do, {
969
- layout: O.headerLayout,
970
- onReset: s(Xt)
1029
+ default: _(() => [
1030
+ v(oo, {
1031
+ layout: T.headerLayout,
1032
+ onReset: l($t)
971
1033
  }, {
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 })
1034
+ availability: _(({ next: J }) => [
1035
+ v(Ue, null, {
1036
+ form: _(() => [
1037
+ r("div", al, [
1038
+ r("div", il, [
1039
+ v(io, { booking: !0 })
978
1040
  ]),
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, {
1041
+ V("", !0),
1042
+ l(a) ? (m(), f("div", Tl, [
1043
+ v(Re),
1044
+ v(Re),
1045
+ v(Re)
1046
+ ])) : (m(), f("div", sl, [
1047
+ l(S).roomGroups.length > 0 || l(S).templates.length > 0 || l(S).specialTemplates.length > 0 ? (m(), f("div", rl, [
1048
+ l(S).templates.length > 0 && T.onlyShow !== "rooms" ? (m(), f("div", ul, [
1049
+ T.onlyShow !== "packages" ? (m(), f("h2", dl, [
1050
+ v(G, {
989
1051
  icon: "box",
990
1052
  type: "fal",
991
1053
  color: "header"
992
1054
  }),
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
1055
+ r("span", null, y(l(e)("booking.availability.packagesTitle")), 1)
1056
+ ])) : V("", !0),
1057
+ r("ul", cl, [
1058
+ (m(!0), f(I, null, M(l(S).templates, ({
1059
+ id: P,
1060
+ name: g,
1061
+ templateRoomGroups: oe,
1062
+ image: X,
1063
+ description: B,
1064
+ weekendFee: pe
1065
+ }) => (m(), H(Oo, {
1066
+ key: P,
1067
+ id: P,
1068
+ description: B,
1069
+ name: g,
1070
+ image: X,
1071
+ weekendFee: pe,
1072
+ "room-groups": oe,
1073
+ callback: J
1012
1074
  }, null, 8, ["id", "description", "name", "image", "weekendFee", "room-groups", "callback"]))), 128))
1013
1075
  ])
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, {
1076
+ ])) : V("", !0),
1077
+ l(S).roomGroups.length > 0 && T.onlyShow !== "packages" ? (m(), f("div", pl, [
1078
+ l(S).templates.length > 0 && T.onlyShow !== "rooms" ? (m(), f("h2", ml, [
1079
+ v(G, {
1018
1080
  icon: "house",
1019
1081
  type: "fal",
1020
1082
  color: "header"
1021
1083
  }),
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
1084
+ r("span", null, y(l(e)("booking.availability.roomsTitle")), 1)
1085
+ ])) : V("", !0),
1086
+ r("ul", fl, [
1087
+ (m(!0), f(I, null, M(Ht.value, (P, g) => (m(), H(Bo, {
1088
+ room: P,
1089
+ key: g
1028
1090
  }, null, 8, ["room"]))), 128))
1029
1091
  ])
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, {
1092
+ ])) : V("", !0),
1093
+ l(S).specialTemplates.length > 0 && T.onlyShow !== "rooms" ? (m(), f("div", hl, [
1094
+ T.onlyShow !== "packages" ? (m(), f("h2", vl, [
1095
+ v(G, {
1096
+ icon: "sparkles",
1097
+ type: "fal",
1098
+ color: "header"
1099
+ }),
1100
+ r("span", null, y(l(e)("hotel.specialOffers")), 1)
1101
+ ])) : V("", !0),
1102
+ r("ul", gl, [
1103
+ (m(!0), f(I, null, M(l(S).specialTemplates, ({
1104
+ id: P,
1105
+ name: g,
1106
+ templateRoomGroups: oe,
1107
+ image: X,
1108
+ description: B,
1109
+ weekendFee: pe,
1110
+ fromDate: me,
1111
+ toDate: Me
1112
+ }) => (m(), H(qo, {
1113
+ key: P,
1114
+ id: P,
1115
+ description: B,
1116
+ name: g,
1117
+ image: X,
1118
+ fromDate: me,
1119
+ toDate: Me,
1120
+ weekendFee: pe,
1121
+ "room-groups": oe,
1122
+ callback: J
1123
+ }, null, 8, ["id", "description", "name", "image", "fromDate", "toDate", "weekendFee", "room-groups", "callback"]))), 128))
1124
+ ])
1125
+ ])) : V("", !0),
1126
+ (l(S).templates.length === 0 && T.onlyShow !== "rooms" || l(S).roomGroups.length === 0 && T.onlyShow !== "packages") && (T.onlyShow === "rooms" || T.onlyShow === "packages") ? (m(), f("div", yl, [
1127
+ r("span", null, y(l(e)("booking.availability.nothingAvailable")), 1)
1128
+ ])) : V("", !0)
1129
+ ])) : l(S).nextAvailableDates.length === 0 ? (m(), f("div", bl, [
1130
+ r("span", null, y(l(e)("booking.availability.nothingAvailable")), 1)
1131
+ ])) : (m(), f("div", kl, [
1132
+ r("h2", _l, [
1133
+ v(G, {
1039
1134
  icon: "calendar-circle-exclamation",
1040
1135
  type: "fal",
1041
1136
  color: "header"
1042
1137
  }),
1043
- v("span", null, L(s(e)("booking.availability.nextAvailableDates")), 1)
1138
+ r("span", null, y(l(e)("booking.availability.nextAvailableDates")), 1)
1044
1139
  ]),
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)}`
1140
+ r("ul", Vl, [
1141
+ (m(!0), f(I, null, M(l(S).nextAvailableDates, (P, g) => (m(), f("li", { key: g }, [
1142
+ r("h3", {
1143
+ title: `${l(ae)(P.fromDate)} - ${l(ae)(P.toDate)}`
1049
1144
  }, [
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, {
1145
+ r("span", null, y(`${l(ae)(P.fromDate)} - ${l(ae)(P.toDate)}`), 1)
1146
+ ], 8, $l),
1147
+ r("ul", null, [
1148
+ V("", !0),
1149
+ r("li", null, [
1150
+ v(G, {
1056
1151
  icon: "money-bill",
1057
1152
  type: "fal",
1058
1153
  color: "header"
1059
1154
  }),
1060
- v("span", null, L(s(e)("booking.availability.pricesFrom")) + ": " + L(s(ie)(R.priceStartFrom, s(se))), 1)
1155
+ r("span", null, y(l(e)("booking.availability.pricesFrom")) + ": " + y(l(ie)(P.priceStartFrom, l(K))), 1)
1061
1156
  ])
1062
1157
  ]),
1063
- I(ce, {
1064
- label: s(e)("booking.availability.selectDates"),
1158
+ v(se, {
1159
+ label: l(e)("booking.availability.selectDates"),
1065
1160
  "full-width": "",
1066
- onClickEvent: (ue) => so(R.fromDate, R.toDate)
1161
+ onClickEvent: (oe) => At(P.fromDate, P.toDate)
1067
1162
  }, null, 8, ["label", "onClickEvent"])
1068
1163
  ]))), 128))
1069
1164
  ])
@@ -1071,301 +1166,295 @@ const No = { key: 0 }, Go = { key: 1 }, we = /* @__PURE__ */ N({
1071
1166
  ]))
1072
1167
  ])
1073
1168
  ]),
1074
- navigation: H(() => [
1075
- I(ce, {
1076
- label: s(G) ? s(e)("booking.availability.nextButton") : s(e)("general.chooseAddons"),
1077
- disabled: !s(W),
1169
+ navigation: _(() => [
1170
+ v(se, {
1171
+ label: l(Q) ? l(e)("booking.availability.nextButton") : l(e)("general.chooseAddons"),
1172
+ disabled: !l(j),
1078
1173
  "is-loading": !1,
1079
1174
  "full-width": "",
1080
- onClickEvent: (R) => lo(U)
1175
+ onClickEvent: (P) => Et(J)
1081
1176
  }, null, 8, ["label", "disabled", "onClickEvent"])
1082
1177
  ]),
1083
1178
  _: 2
1084
1179
  }, 1024)
1085
1180
  ]),
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)
1181
+ addons: _(({ next: J, prev: P }) => [
1182
+ v(Ue, null, {
1183
+ form: _(() => [
1184
+ r("form", Cl, [
1185
+ r("h2", null, [
1186
+ r("span", null, y(l(e)("booking.reservation.addons")), 1)
1092
1187
  ]),
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
1188
+ r("div", null, [
1189
+ isNaN(l(t)) ? (m(), f("div", wl, [
1190
+ (m(!0), f(I, null, M(l(W), (g) => (m(), f("ul", {
1191
+ key: g.roomGroupID
1097
1192
  }, [
1098
- (E(!0), $(M, null, z(S.variants, (ue, de) => (E(), $("li", {
1099
- key: ue.ratePlanID
1193
+ (m(!0), f(I, null, M(g.variants, (oe, X) => (m(), f("li", {
1194
+ key: oe.ratePlanID
1100
1195
  }, [
1101
- v("h4", null, [
1102
- v("span", null, L(s(pe)(S.title)), 1)
1196
+ r("h4", null, [
1197
+ r("span", null, y(l(ue)(g.title)), 1)
1103
1198
  ]),
1104
- (E(!0), $(M, null, z(ue.rooms, (F, Le) => (E(), $("table", {
1105
- key: Le,
1106
- class: "fresh-booking-table"
1199
+ (m(!0), f(I, null, M(oe.rooms, (B, pe) => (m(), f("table", {
1200
+ key: pe,
1201
+ class: "fresh-booking-table with-lines"
1107
1202
  }, [
1108
- v("thead", null, [
1109
- v("tr", null, [
1110
- v("th", null, [
1111
- v("span", null, L(s(pe)(ue.name)), 1)
1203
+ r("thead", null, [
1204
+ r("tr", null, [
1205
+ r("th", null, [
1206
+ r("span", null, y(l(ue)(oe.name)), 1)
1112
1207
  ]),
1113
- x("", !0),
1114
- v("th", ri, [
1115
- v("b", null, [
1116
- I(J, {
1208
+ V("", !0),
1209
+ r("th", Pl, [
1210
+ r("b", null, [
1211
+ v(G, {
1117
1212
  icon: "male",
1118
1213
  type: "fas",
1119
1214
  color: "font"
1120
1215
  }),
1121
- v("span", null, L(F.adultsCount), 1),
1122
- F.childrenCount > 0 ? (E(), A(J, {
1216
+ r("span", null, y(B.adultsCount), 1),
1217
+ B.childrenCount > 0 ? (m(), H(G, {
1123
1218
  key: 0,
1124
1219
  icon: "child",
1125
1220
  type: "fas",
1126
1221
  color: "font"
1127
- })) : x("", !0),
1128
- F.childrenCount > 0 ? (E(), $("span", si, L(F.childrenCount), 1)) : x("", !0)
1222
+ })) : V("", !0),
1223
+ B.childrenCount > 0 ? (m(), f("span", Hl, y(B.childrenCount), 1)) : V("", !0)
1129
1224
  ])
1130
1225
  ])
1131
1226
  ])
1132
1227
  ]),
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)
1228
+ r("tbody", null, [
1229
+ (m(!0), f(I, null, M(g.addons, ({
1230
+ quantityStrategy: me,
1231
+ maximumNumber: Me,
1232
+ id: fe,
1233
+ name: Mt,
1234
+ price: Lt
1235
+ }) => (m(), f("tr", { key: fe }, [
1236
+ r("td", null, [
1237
+ r("b", null, y(l(ue)(Mt)), 1),
1238
+ Sl,
1239
+ r("span", null, y(l(ie)(Lt, l(K))) + " " + y(l(qt)(me)), 1)
1145
1240
  ]),
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"]))
1241
+ r("td", null, [
1242
+ l(E)[g.roomGroupID][X].config[B.configIdx].addons[B.roomIdx] ? (m(), f(I, { key: 0 }, [
1243
+ me === 1 || me === 12 ? (m(), H(nt, {
1244
+ key: 0,
1245
+ modelValue: l(E)[g.roomGroupID][X].config[B.configIdx].addons[B.roomIdx][fe],
1246
+ "onUpdate:modelValue": (Le) => l(E)[g.roomGroupID][X].config[B.configIdx].addons[B.roomIdx][fe] = Le,
1247
+ small: !0,
1248
+ "min-value": 0,
1249
+ "max-value": Me || 1 / 0
1250
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "max-value"])) : (m(), H(we, {
1251
+ key: 1,
1252
+ modelValue: l(E)[g.roomGroupID][X].config[B.configIdx].addons[B.roomIdx][fe],
1253
+ "onUpdate:modelValue": (Le) => l(E)[g.roomGroupID][X].config[B.configIdx].addons[B.roomIdx][fe] = Le,
1254
+ numeric: !0
1255
+ }, null, 8, ["modelValue", "onUpdate:modelValue"]))
1256
+ ], 64)) : V("", !0)
1160
1257
  ])
1161
1258
  ]))), 128))
1162
1259
  ])
1163
1260
  ]))), 128))
1164
1261
  ]))), 128))
1165
1262
  ]))), 128))
1166
- ])) : x("", !0)
1263
+ ])) : V("", !0)
1167
1264
  ])
1168
1265
  ])
1169
1266
  ]),
1170
- navigation: H(() => [
1171
- I(ce, {
1172
- label: s(e)("general.startReservation"),
1267
+ navigation: _(() => [
1268
+ v(se, {
1269
+ label: l(e)("general.startReservation"),
1173
1270
  "full-width": "",
1174
- onClickEvent: U
1271
+ onClickEvent: J
1175
1272
  }, null, 8, ["label", "onClickEvent"]),
1176
- v("button", {
1273
+ r("button", {
1177
1274
  class: "konnectio-abort-reservation link",
1178
- onClick: ot((S) => Xe(R), ["prevent"])
1275
+ onClick: $e((g) => We(P), ["prevent"])
1179
1276
  }, [
1180
- v("span", null, L(s(e)("general.goAStepBack")), 1)
1181
- ], 8, li)
1277
+ r("span", null, y(l(e)("general.goAStepBack")), 1)
1278
+ ], 8, Dl)
1182
1279
  ]),
1183
1280
  _: 2
1184
1281
  }, 1024)
1185
1282
  ]),
1186
- reservation: H(({ next: U, prev: R }) => [
1187
- I(we, {
1283
+ reservation: _(({ next: J, prev: P }) => [
1284
+ v(Ue, {
1188
1285
  "show-terms-notice": !0,
1189
1286
  "show-gift-card": !0
1190
1287
  }, {
1191
- form: H(() => [
1192
- v("form", ui, [
1193
- v("h2", null, [
1194
- v("span", null, L(s(e)("booking.reservation.detailsTitle")), 1)
1288
+ form: _(() => [
1289
+ r("form", Al, [
1290
+ r("h2", null, [
1291
+ r("span", null, y(l(e)("booking.reservation.detailsTitle")), 1)
1195
1292
  ]),
1196
- !s(Ut) && !(s($e) && s(Se)) ? (E(), $("ul", {
1293
+ !l(Ee) && !(l(ye) && l(Be)) ? (m(), f("ul", {
1197
1294
  key: 0,
1198
- class: Te({ "fresh-booking-split-inputs": !s($e) && !s(Se) })
1295
+ class: Ce({ "fresh-booking-split-inputs": !l(ye) && !l(Be) })
1199
1296
  }, [
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"),
1297
+ l(ye) ? V("", !0) : (m(), f("li", Il, [
1298
+ v(Ze, {
1299
+ modelValue: l(d),
1300
+ "onUpdate:modelValue": $[1] || ($[1] = (g) => R(d) ? d.value = g : null),
1301
+ label: l(e)("booking.reservation.arrivalTime"),
1205
1302
  icon: "hourglass-start",
1206
- "hour-range": io.value,
1303
+ "hour-range": St.value,
1207
1304
  required: ""
1208
1305
  }, null, 8, ["modelValue", "label", "hour-range"])
1209
1306
  ])),
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"),
1307
+ l(Be) ? V("", !0) : (m(), f("li", El, [
1308
+ v(Ze, {
1309
+ modelValue: l(s),
1310
+ "onUpdate:modelValue": $[2] || ($[2] = (g) => R(s) ? s.value = g : null),
1311
+ label: l(e)("booking.reservation.departureTime"),
1215
1312
  icon: "hourglass-end",
1216
- "hour-range": ro.value,
1313
+ "hour-range": Dt.value,
1217
1314
  required: ""
1218
1315
  }, null, 8, ["modelValue", "label", "hour-range"])
1219
1316
  ]))
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"),
1317
+ ], 2)) : V("", !0),
1318
+ v(Xo, {
1319
+ modelValue: l(u),
1320
+ "onUpdate:modelValue": $[3] || ($[3] = (g) => R(u) ? u.value = g : null),
1321
+ title: l(h),
1322
+ "onUpdate:title": $[4] || ($[4] = (g) => R(h) ? h.value = g : null),
1323
+ "exclude-title": l(vt),
1324
+ label: l(e)("booking.reservation.name"),
1228
1325
  icon: "user-alt",
1229
- placeholder: s(e)("booking.reservation.namePlaceholder"),
1326
+ placeholder: l(e)("booking.reservation.namePlaceholder"),
1230
1327
  required: ""
1231
1328
  }, 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),
1329
+ v(ne, {
1330
+ modelValue: l(b),
1331
+ "onUpdate:modelValue": $[5] || ($[5] = (g) => R(b) ? b.value = g : null),
1235
1332
  type: "email",
1236
1333
  name: "email",
1237
1334
  autocomplete: "email",
1238
- label: s(e)("booking.reservation.email"),
1335
+ label: l(e)("booking.reservation.email"),
1239
1336
  icon: "at",
1240
- placeholder: s(e)("booking.reservation.emailPlaceholder"),
1337
+ placeholder: l(e)("booking.reservation.emailPlaceholder"),
1241
1338
  required: ""
1242
1339
  }, null, 8, ["modelValue", "label", "placeholder"]),
1243
- s(Dt) ? x("", !0) : (E(), A(Ue, {
1340
+ l(bt) ? V("", !0) : (m(), H(ne, {
1244
1341
  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),
1342
+ modelValue: l(C),
1343
+ "onUpdate:modelValue": $[6] || ($[6] = (g) => R(C) ? C.value = g : null),
1255
1344
  type: "text",
1256
1345
  name: "firm",
1257
1346
  autocomplete: "firm",
1258
- label: `${s(e)("booking.reservation.companyName")} (${s(e)("booking.reservation.optional")})`,
1347
+ label: `${l(e)("booking.reservation.companyName")} (${l(e)("booking.reservation.optional")})`,
1259
1348
  icon: "id-card",
1260
- placeholder: s(e)("booking.reservation.companyNamePlaceholder")
1349
+ placeholder: l(e)("booking.reservation.companyNamePlaceholder")
1261
1350
  }, 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),
1351
+ v(uo, {
1352
+ modelValue: l(D),
1353
+ "onUpdate:modelValue": $[7] || ($[7] = (g) => R(D) ? D.value = g : null),
1265
1354
  icon: "phone-office",
1266
- label: s(e)("booking.reservation.phone"),
1267
- placeholder: s(e)("booking.reservation.phonePlaceholder"),
1355
+ label: l(e)("booking.reservation.phone"),
1356
+ placeholder: l(e)("booking.reservation.phonePlaceholder"),
1268
1357
  required: ""
1269
1358
  }, 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),
1359
+ v(zo, {
1360
+ modelValue: l(w),
1361
+ "onUpdate:modelValue": $[8] || ($[8] = (g) => R(w) ? w.value = g : null),
1362
+ label: l(e)("booking.reservation.country"),
1363
+ placeholder: l(e)("booking.reservation.countryPlaceholder"),
1364
+ options: l(n),
1276
1365
  required: ""
1277
1366
  }, 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),
1367
+ v(ne, {
1368
+ modelValue: l(k),
1369
+ "onUpdate:modelValue": $[9] || ($[9] = (g) => R(k) ? k.value = g : null),
1281
1370
  type: "textarea",
1282
1371
  name: "address",
1283
1372
  autocomplete: "street-address",
1284
- label: s(e)("booking.reservation.streetAddress"),
1373
+ label: l(e)("booking.reservation.streetAddress"),
1285
1374
  icon: "map-marked",
1286
- placeholder: s(e)("booking.reservation.streetAddressPlaceholder"),
1375
+ placeholder: l(e)("booking.reservation.streetAddressPlaceholder"),
1287
1376
  required: ""
1288
1377
  }, 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),
1378
+ r("ul", Bl, [
1379
+ r("li", null, [
1380
+ v(ne, {
1381
+ modelValue: l(O),
1382
+ "onUpdate:modelValue": $[10] || ($[10] = (g) => R(O) ? O.value = g : null),
1294
1383
  type: "text",
1295
1384
  name: "postal",
1296
1385
  autocomplete: "postal-code",
1297
- label: s(e)("booking.reservation.postal"),
1386
+ label: l(e)("booking.reservation.postal"),
1298
1387
  icon: "mailbox",
1299
- placeholder: s(e)("booking.reservation.postalPlaceholder"),
1388
+ placeholder: l(e)("booking.reservation.postalPlaceholder"),
1300
1389
  required: ""
1301
1390
  }, null, 8, ["modelValue", "label", "placeholder"])
1302
1391
  ]),
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),
1392
+ r("li", null, [
1393
+ v(ne, {
1394
+ modelValue: l(N),
1395
+ "onUpdate:modelValue": $[11] || ($[11] = (g) => R(N) ? N.value = g : null),
1307
1396
  type: "text",
1308
1397
  name: "city",
1309
1398
  autocomplete: "address-level2",
1310
- label: s(e)("booking.reservation.city"),
1399
+ label: l(e)("booking.reservation.city"),
1311
1400
  icon: "city",
1312
- placeholder: s(e)("booking.reservation.cityPlaceholder"),
1401
+ placeholder: l(e)("booking.reservation.cityPlaceholder"),
1313
1402
  required: ""
1314
1403
  }, null, 8, ["modelValue", "label", "placeholder"])
1315
1404
  ])
1316
1405
  ]),
1317
- I(oe, {
1318
- modelValue: s(m),
1319
- "onUpdate:modelValue": P[13] || (P[13] = (S) => B(m) ? m.value = S : null),
1406
+ v(ne, {
1407
+ modelValue: l(A),
1408
+ "onUpdate:modelValue": $[12] || ($[12] = (g) => R(A) ? A.value = g : null),
1320
1409
  type: "textarea",
1321
- label: `${s(e)("booking.reservation.remark")} (${s(e)("booking.reservation.optional")})`,
1410
+ label: `${l(e)("booking.reservation.remark")} (${l(e)("booking.reservation.optional")})`,
1322
1411
  icon: "info-circle",
1323
- placeholder: s(e)("booking.reservation.remarkPlaceholder")
1412
+ placeholder: l(e)("booking.reservation.remarkPlaceholder")
1324
1413
  }, 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),
1414
+ v(ne, {
1415
+ modelValue: l(F),
1416
+ "onUpdate:modelValue": $[13] || ($[13] = (g) => R(F) ? F.value = g : null),
1328
1417
  type: "textarea",
1329
- label: `${s(e)("booking.reservation.allergies")} (${s(e)("booking.reservation.optional")})`,
1418
+ label: `${l(e)("booking.reservation.allergies")} (${l(e)("booking.reservation.optional")})`,
1330
1419
  icon: "allergies",
1331
- placeholder: s(e)("booking.reservation.allergiesPlaceholder")
1420
+ placeholder: l(e)("booking.reservation.allergiesPlaceholder")
1332
1421
  }, 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")})`,
1422
+ l(gt) ? V("", !0) : (m(), H(Yo, {
1423
+ key: 2,
1424
+ modelValue: l(p),
1425
+ "onUpdate:modelValue": $[14] || ($[14] = (g) => R(p) ? p.value = g : null),
1426
+ label: `${l(e)("booking.reservation.purposeOfStay")} (${l(e)("booking.reservation.optional")})`,
1338
1427
  name: "travelingFor",
1339
- checkboxes: oo.value
1428
+ checkboxes: Pt.value
1340
1429
  }, null, 8, ["modelValue", "label", "checkboxes"]))
1341
1430
  ])
1342
1431
  ]),
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),
1432
+ navigation: _(() => [
1433
+ r("div", null, [
1434
+ v(se, {
1435
+ label: l(kt) ? l(e)("booking.reservation.nextButton") : l(e)("general.confirmReservation"),
1436
+ disabled: !l(c),
1437
+ "is-loading": l(i),
1349
1438
  "full-width": "",
1350
- onClickEvent: (S) => ao(U)
1439
+ onClickEvent: (g) => It(J)
1351
1440
  }, null, 8, ["label", "disabled", "is-loading", "onClickEvent"]),
1352
- v("button", {
1441
+ r("button", {
1353
1442
  class: "konnectio-abort-reservation link",
1354
- onClick: ot((S) => Xe(R), ["prevent"])
1443
+ onClick: $e((g) => We(P), ["prevent"])
1355
1444
  }, [
1356
- v("span", null, L(s(e)("general.goAStepBack")), 1)
1357
- ], 8, hi)
1445
+ r("span", null, y(l(e)("general.goAStepBack")), 1)
1446
+ ], 8, Ml)
1358
1447
  ])
1359
1448
  ]),
1360
1449
  _: 2
1361
1450
  }, 1024)
1362
1451
  ]),
1363
- payment: H(() => [
1364
- I(Uo)
1452
+ payment: _(() => [
1453
+ v(co)
1365
1454
  ]),
1366
- confirmation: H(() => [
1367
- I(Ao, {
1368
- message: s(e)("booking.confirmation.thankYou")
1455
+ confirmation: _(() => [
1456
+ v(lo, {
1457
+ message: l(e)("booking.confirmation.thankYou")
1369
1458
  }, null, 8, ["message"])
1370
1459
  ]),
1371
1460
  _: 1
@@ -1374,8 +1463,8 @@ const No = { key: 0 }, Go = { key: 1 }, we = /* @__PURE__ */ N({
1374
1463
  _: 1
1375
1464
  }, 8, ["access-token"])
1376
1465
  ]),
1377
- fallback: H(() => [
1378
- I(Mn)
1466
+ fallback: _(() => [
1467
+ v(ll)
1379
1468
  ]),
1380
1469
  _: 1
1381
1470
  }))
@@ -1383,1125 +1472,31 @@ const No = { key: 0 }, Go = { key: 1 }, we = /* @__PURE__ */ N({
1383
1472
  _: 1
1384
1473
  }, 8, ["styling"]));
1385
1474
  }
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);
2479
- }
2480
- };
2481
- function Ne(o, e = {}, t) {
1475
+ }), ke = /* @__PURE__ */ ee(Ll, [["__scopeId", "data-v-514816f7"]]);
1476
+ function je(o, e = {}, t) {
2482
1477
  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);
1478
+ const a = o[n], i = t ? `${t}:${n}` : n;
1479
+ typeof a == "object" && a !== null ? je(a, e, i) : typeof a == "function" && (e[i] = a);
2485
1480
  }
2486
1481
  return e;
2487
1482
  }
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);
1483
+ const Rl = { run: (o) => o() }, Ul = () => Rl, ct = typeof console.createTask < "u" ? console.createTask : Ul;
1484
+ function Fl(o, e) {
1485
+ const t = e.shift(), n = ct(t);
2491
1486
  return o.reduce(
2492
- (l, u) => l.then(() => n.run(() => u(...e))),
1487
+ (a, i) => a.then(() => n.run(() => i(...e))),
2493
1488
  Promise.resolve()
2494
1489
  );
2495
1490
  }
2496
- function Vi(o, e) {
2497
- const t = e.shift(), n = xt(t);
2498
- return Promise.all(o.map((l) => n.run(() => l(...e))));
1491
+ function Ol(o, e) {
1492
+ const t = e.shift(), n = ct(t);
1493
+ return Promise.all(o.map((a) => n.run(() => a(...e))));
2499
1494
  }
2500
1495
  function Fe(o, e) {
2501
1496
  for (const t of [...o])
2502
1497
  t(e);
2503
1498
  }
2504
- class Pi {
1499
+ class Nl {
2505
1500
  constructor() {
2506
1501
  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
1502
  }
@@ -2509,13 +1504,13 @@ class Pi {
2509
1504
  if (!e || typeof t != "function")
2510
1505
  return () => {
2511
1506
  };
2512
- const l = e;
2513
- let u;
1507
+ const a = e;
1508
+ let i;
2514
1509
  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));
1510
+ i = this._deprecatedHooks[e], e = i.to;
1511
+ if (i && !n.allowDeprecated) {
1512
+ let c = i.message;
1513
+ c || (c = `${a} hook has been deprecated` + (i.to ? `, please use ${i.to}` : "")), this._deprecatedMessages || (this._deprecatedMessages = /* @__PURE__ */ new Set()), this._deprecatedMessages.has(c) || (console.warn(c), this._deprecatedMessages.add(c));
2519
1514
  }
2520
1515
  if (!t.name)
2521
1516
  try {
@@ -2523,15 +1518,15 @@ class Pi {
2523
1518
  get: () => "_" + e.replace(/\W+/g, "_") + "_hook_cb",
2524
1519
  configurable: !0
2525
1520
  });
2526
- } catch (p) {
1521
+ } catch {
2527
1522
  }
2528
1523
  return this._hooks[e] = this._hooks[e] || [], this._hooks[e].push(t), () => {
2529
1524
  t && (this.removeHook(e, t), t = void 0);
2530
1525
  };
2531
1526
  }
2532
1527
  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;
1528
+ let n, a = (...i) => (typeof n == "function" && n(), n = void 0, a = void 0, t(...i));
1529
+ return n = this.hook(e, a), n;
2535
1530
  }
2536
1531
  removeHook(e, t) {
2537
1532
  if (this._hooks[e]) {
@@ -2543,8 +1538,8 @@ class Pi {
2543
1538
  this._deprecatedHooks[e] = typeof t == "string" ? { to: t } : t;
2544
1539
  const n = this._hooks[e] || [];
2545
1540
  delete this._hooks[e];
2546
- for (const l of n)
2547
- this.hook(e, l);
1541
+ for (const a of n)
1542
+ this.hook(e, a);
2548
1543
  }
2549
1544
  deprecateHooks(e) {
2550
1545
  Object.assign(this._deprecatedHooks, e);
@@ -2552,16 +1547,16 @@ class Pi {
2552
1547
  this.deprecateHook(t, e[t]);
2553
1548
  }
2554
1549
  addHooks(e) {
2555
- const t = Ne(e), n = Object.keys(t).map(
2556
- (l) => this.hook(l, t[l])
1550
+ const t = je(e), n = Object.keys(t).map(
1551
+ (a) => this.hook(a, t[a])
2557
1552
  );
2558
1553
  return () => {
2559
- for (const l of n.splice(0, n.length))
2560
- l();
1554
+ for (const a of n.splice(0, n.length))
1555
+ a();
2561
1556
  };
2562
1557
  }
2563
1558
  removeHooks(e) {
2564
- const t = Ne(e);
1559
+ const t = je(e);
2565
1560
  for (const n in t)
2566
1561
  this.removeHook(n, t[n]);
2567
1562
  }
@@ -2570,21 +1565,21 @@ class Pi {
2570
1565
  delete this._hooks[e];
2571
1566
  }
2572
1567
  callHook(e, ...t) {
2573
- return t.unshift(e), this.callHookWith(Li, e, ...t);
1568
+ return t.unshift(e), this.callHookWith(Fl, e, ...t);
2574
1569
  }
2575
1570
  callHookParallel(e, ...t) {
2576
- return t.unshift(e), this.callHookWith(Vi, e, ...t);
1571
+ return t.unshift(e), this.callHookWith(Ol, e, ...t);
2577
1572
  }
2578
1573
  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(
1574
+ const a = this._before || this._after ? { name: t, args: n, context: {} } : void 0;
1575
+ this._before && Fe(this._before, a);
1576
+ const i = e(
2582
1577
  t in this._hooks ? [...this._hooks[t]] : [],
2583
1578
  n
2584
1579
  );
2585
- return u instanceof Promise ? u.finally(() => {
2586
- this._after && l && Fe(this._after, l);
2587
- }) : (this._after && l && Fe(this._after, l), u);
1580
+ return i instanceof Promise ? i.finally(() => {
1581
+ this._after && a && Fe(this._after, a);
1582
+ }) : (this._after && a && Fe(this._after, a), i);
2588
1583
  }
2589
1584
  beforeEach(e) {
2590
1585
  return this._before = this._before || [], this._before.push(e), () => {
@@ -2603,20 +1598,20 @@ class Pi {
2603
1598
  };
2604
1599
  }
2605
1600
  }
2606
- function xi() {
2607
- return new Pi();
1601
+ function jl() {
1602
+ return new Nl();
2608
1603
  }
2609
- function wi(o) {
1604
+ function Gl(o) {
2610
1605
  return Array.isArray(o) ? o : [o];
2611
1606
  }
2612
- const Hi = ["title", "titleTemplate", "script", "style", "noscript"], ke = [
1607
+ const ql = ["title", "titleTemplate", "script", "style", "noscript"], _e = [
2613
1608
  "base",
2614
1609
  "meta",
2615
1610
  "link",
2616
1611
  "style",
2617
1612
  "script",
2618
1613
  "noscript"
2619
- ], Oi = [
1614
+ ], Wl = [
2620
1615
  "title",
2621
1616
  "titleTemplate",
2622
1617
  "templateParams",
@@ -2628,260 +1623,249 @@ const Hi = ["title", "titleTemplate", "script", "style", "noscript"], ke = [
2628
1623
  "style",
2629
1624
  "script",
2630
1625
  "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) {
1626
+ ], Kl = ["base", "title", "titleTemplate", "bodyAttrs", "htmlAttrs", "templateParams"], pt = ["tagPosition", "tagPriority", "tagDuplicateStrategy", "children", "innerHTML", "textContent", "processTemplateParams"], zl = typeof window < "u";
1627
+ function qe(o) {
2633
1628
  let e = 9;
2634
1629
  for (let t = 0; t < o.length; )
2635
- e = Math.imul(e ^ o.charCodeAt(t++), tt(9, 9));
1630
+ e = Math.imul(e ^ o.charCodeAt(t++), 9 ** 9);
2636
1631
  return ((e ^ e >>> 9) + 65536).toString(16).substring(1, 8).toLowerCase();
2637
1632
  }
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(",")}`);
1633
+ function Ye(o) {
1634
+ return o._h || qe(o._d ? o._d : `${o.tag}:${o.textContent || o.innerHTML || ""}:${Object.entries(o.props).map(([e, t]) => `${e}:${String(t)}`).join(",")}`);
2640
1635
  }
2641
- function Ht(o, e) {
1636
+ function mt(o, e) {
2642
1637
  const { props: t, tag: n } = o;
2643
- if (Ri.includes(n))
1638
+ if (Kl.includes(n))
2644
1639
  return n;
2645
1640
  if (n === "link" && t.rel === "canonical")
2646
1641
  return "canonical";
2647
1642
  if (t.charset)
2648
1643
  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}`;
1644
+ const a = ["id"];
1645
+ n === "meta" && a.push("name", "property", "http-equiv");
1646
+ for (const i of a)
1647
+ if (typeof t[i] < "u") {
1648
+ const c = String(t[i]);
1649
+ return e && !e(c) ? !1 : `${n}:${i}:${c}`;
2655
1650
  }
2656
1651
  return !1;
2657
1652
  }
2658
- function ft(o, e) {
1653
+ function Qe(o, e) {
2659
1654
  return o == null ? e || null : typeof o == "function" ? o(e) : o;
2660
1655
  }
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
- });
1656
+ async function Jl(o, e, t) {
1657
+ const n = {
1658
+ tag: o,
1659
+ props: await ft(
1660
+ // explicitly check for an object
1661
+ // @ts-expect-error untyped
1662
+ typeof e == "object" && typeof e != "function" && !(e instanceof Promise) ? { ...e } : { [["script", "noscript", "style"].includes(o) ? "innerHTML" : "textContent"]: e },
1663
+ ["templateParams", "titleTemplate"].includes(o)
1664
+ )
1665
+ };
1666
+ return pt.forEach((a) => {
1667
+ const i = typeof n.props[a] < "u" ? n.props[a] : t[a];
1668
+ typeof i < "u" && ((!["innerHTML", "textContent", "children"].includes(a) || ql.includes(n.tag)) && (n[a === "children" ? "innerHTML" : a] = i), delete n.props[a]);
1669
+ }), 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
1670
  }
2678
- function Mi(o) {
1671
+ function Zl(o) {
2679
1672
  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(" ");
2680
1673
  }
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
- }
1674
+ async function ft(o, e) {
1675
+ for (const t of Object.keys(o)) {
1676
+ if (t === "class") {
1677
+ o[t] = Zl(o[t]);
1678
+ continue;
2692
1679
  }
2693
- return o;
2694
- });
1680
+ if (o[t] instanceof Promise && (o[t] = await o[t]), !e && !pt.includes(t)) {
1681
+ const n = String(o[t]), a = t.startsWith("data-");
1682
+ n === "true" || n === "" ? o[t] = a ? "true" : !0 : o[t] || (a && n === "false" ? o[t] = "false" : delete o[t]);
1683
+ }
1684
+ }
1685
+ return o;
2695
1686
  }
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
- });
1687
+ const Yl = 10;
1688
+ async function Ql(o) {
1689
+ const e = [];
1690
+ return Object.entries(o.resolvedInput).filter(([t, n]) => typeof n < "u" && Wl.includes(t)).forEach(([t, n]) => {
1691
+ const a = Gl(n);
1692
+ e.push(...a.map((i) => Jl(t, i, o)).flat());
1693
+ }), (await Promise.all(e)).flat().filter(Boolean).map((t, n) => (t._e = o._i, o.mode && (t._m = o.mode), t._p = (o._i << Yl) + n, t));
2705
1694
  }
2706
- const mt = {
1695
+ const Xe = {
2707
1696
  // tags
2708
1697
  base: -10,
2709
1698
  title: 10
2710
- }, gt = {
1699
+ }, xe = {
2711
1700
  // relative scores to their default values
2712
1701
  critical: -80,
2713
1702
  high: -10,
2714
1703
  low: 20
2715
1704
  };
2716
- function Ie(o) {
1705
+ function Pe(o) {
2717
1706
  let e = 100;
2718
1707
  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);
1708
+ 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 Xe && (e = Xe[o.tag]), typeof t == "string" && t in xe ? e + xe[t] : e);
2720
1709
  }
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) {
1710
+ const Xl = [{ prefix: "before:", offset: -1 }, { prefix: "after:", offset: 1 }], ht = ["onload", "onerror", "onabort", "onprogress", "onloadstart"], le = "%separator";
1711
+ function Ve(o, e, t) {
2723
1712
  if (typeof o != "string" || !o.includes("%"))
2724
1713
  return o;
2725
- 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;
1714
+ function n(c) {
1715
+ let p;
1716
+ return ["s", "pageTitle"].includes(c) ? p = e.pageTitle : c.includes(".") ? p = c.split(".").reduce((d, s) => d && d[s] || void 0, e) : p = e[c], typeof p < "u" ? (p || "").replace(/"/g, '\\"') : !1;
2728
1717
  }
2729
- let l = o;
1718
+ let a = o;
2730
1719
  try {
2731
- l = decodeURI(o);
2732
- } catch (p) {
1720
+ a = decodeURI(o);
1721
+ } catch {
2733
1722
  }
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;
1723
+ return (a.match(/%(\w+\.+\w+)|%(\w+)/g) || []).sort().reverse().forEach((c) => {
1724
+ const p = n(c.slice(1));
1725
+ typeof p == "string" && (o = o.replace(new RegExp(`\\${c}(\\W|$)`, "g"), (d, s) => `${p}${s}`).trim());
1726
+ }), o.includes(le) && (o.endsWith(le) && (o = o.slice(0, -le.length).trim()), o.startsWith(le) && (o = o.slice(le.length).trim()), o = o.replace(new RegExp(`\\${le}\\s*\\${le}`, "g"), le), o = Ve(o, { separator: t }, t)), o;
2738
1727
  }
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
2747
- };
2748
- return e._d = Ht(e), e;
2749
- });
1728
+ async function xl(o) {
1729
+ const e = {
1730
+ tag: o.tagName.toLowerCase(),
1731
+ props: await ft(
1732
+ o.getAttributeNames().reduce((t, n) => ({ ...t, [n]: o.getAttribute(n) }), {})
1733
+ ),
1734
+ innerHTML: o.innerHTML
1735
+ };
1736
+ return e._d = mt(e), e;
2750
1737
  }
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;
2774
- }
2775
- }
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
1738
+ async function en(o, e = {}) {
1739
+ const t = e.document || o.resolvedOptions.document;
1740
+ if (!t)
1741
+ return;
1742
+ const n = { shouldRender: o.dirty, tags: [] };
1743
+ if (await o.hooks.callHook("dom:beforeRender", n), !n.shouldRender)
1744
+ return;
1745
+ const a = (await o.resolveTags()).map((u) => ({
1746
+ tag: u,
1747
+ id: _e.includes(u.tag) ? Ye(u) : u.tag,
1748
+ shouldRender: !0
1749
+ }));
1750
+ let i = o._dom;
1751
+ if (!i) {
1752
+ i = {
1753
+ elMap: { htmlAttrs: t.documentElement, bodyAttrs: t.body }
2800
1754
  };
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;
2807
- }
2808
- b.$el = b.$el || p.elMap[_], b.$el ? d(b) : ke.includes(r.tag) && c.push(b);
2809
- }
1755
+ for (const u of ["body", "head"]) {
1756
+ const h = t?.[u]?.children;
1757
+ for (const b of [...h].filter((D) => _e.includes(D.tagName.toLowerCase())))
1758
+ i.elMap[b.getAttribute("data-hid") || Ye(await xl(b))] = b;
2810
1759
  }
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);
1760
+ }
1761
+ i.pendingSideEffects = { ...i.sideEffects || {} }, i.sideEffects = {};
1762
+ function c(u, h, b) {
1763
+ const D = `${u}:${h}`;
1764
+ i.sideEffects[D] = b, delete i.pendingSideEffects[D];
1765
+ }
1766
+ function p({ id: u, $el: h, tag: b }) {
1767
+ const D = b.tag.endsWith("Attrs");
1768
+ i.elMap[u] = h, D || (["textContent", "innerHTML"].forEach((C) => {
1769
+ b[C] && b[C] !== h[C] && (h[C] = b[C]);
1770
+ }), c(u, "el", () => {
1771
+ i.elMap[u].remove(), delete i.elMap[u];
1772
+ })), Object.entries(b.props).forEach(([C, O]) => {
1773
+ const N = `attr:${C}`;
1774
+ if (C === "class")
1775
+ for (const k of (O || "").split(" ").filter(Boolean))
1776
+ D && c(u, `${N}:${k}`, () => h.classList.remove(k)), !h.classList.contains(k) && h.classList.add(k);
1777
+ else
1778
+ h.getAttribute(C) !== O && h.setAttribute(C, O === !0 ? "" : String(O)), D && c(u, N, () => h.removeAttribute(C));
1779
+ });
1780
+ }
1781
+ const d = [], s = {
1782
+ bodyClose: void 0,
1783
+ bodyOpen: void 0,
1784
+ head: void 0
1785
+ };
1786
+ for (const u of a) {
1787
+ const { tag: h, shouldRender: b, id: D } = u;
1788
+ if (b) {
1789
+ if (h.tag === "title") {
1790
+ t.title = h.textContent;
1791
+ continue;
1792
+ }
1793
+ u.$el = u.$el || i.elMap[D], u.$el ? p(u) : _e.includes(h.tag) && d.push(u);
2814
1794
  }
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
- });
1795
+ }
1796
+ for (const u of d) {
1797
+ const h = u.tag.tagPosition || "head";
1798
+ u.$el = t.createElement(u.tag.tag), p(u), s[h] = s[h] || t.createDocumentFragment(), s[h].appendChild(u.$el);
1799
+ }
1800
+ for (const u of a)
1801
+ await o.hooks.callHook("dom:renderTag", u, t, c);
1802
+ s.head && t.head.appendChild(s.head), s.bodyOpen && t.body.insertBefore(s.bodyOpen, t.body.firstChild), s.bodyClose && t.body.appendChild(s.bodyClose), Object.values(i.pendingSideEffects).forEach((u) => u()), o._dom = i, o.dirty = !1, await o.hooks.callHook("dom:rendered", { renders: a });
2819
1803
  }
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
- });
1804
+ async function tn(o, e = {}) {
1805
+ const t = e.delayFn || ((n) => setTimeout(n, 10));
1806
+ return o._domUpdatePromise = o._domUpdatePromise || new Promise((n) => t(async () => {
1807
+ await en(o, e), delete o._domUpdatePromise, n();
1808
+ }));
2827
1809
  }
2828
1810
  // @__NO_SIDE_EFFECTS__
2829
- function Ni(o) {
1811
+ function on(o) {
2830
1812
  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;
1813
+ const t = e.resolvedOptions.document?.head.querySelector('script[id="unhead:payload"]')?.innerHTML || !1;
2833
1814
  return t && e.push(JSON.parse(t)), {
2834
1815
  mode: "client",
2835
1816
  hooks: {
2836
- "entries:updated": function(u) {
2837
- Ui(u, o);
1817
+ "entries:updated": function(n) {
1818
+ tn(n, o);
2838
1819
  }
2839
1820
  }
2840
1821
  };
2841
1822
  };
2842
1823
  }
2843
- const Gi = ["templateParams", "htmlAttrs", "bodyAttrs"], ji = {
1824
+ const ln = ["templateParams", "htmlAttrs", "bodyAttrs"], nn = {
2844
1825
  hooks: {
2845
1826
  "tag:normalise": function({ tag: o }) {
2846
1827
  ["hid", "vmid", "key"].forEach((n) => {
2847
1828
  o.props[n] && (o.key = o.props[n], delete o.props[n]);
2848
1829
  });
2849
- const t = Ht(o) || (o.key ? `${o.tag}:${o.key}` : !1);
1830
+ const t = mt(o) || (o.key ? `${o.tag}:${o.key}` : !1);
2850
1831
  t && (o._d = t);
2851
1832
  },
2852
1833
  "tags:resolve": function(o) {
2853
1834
  const e = {};
2854
1835
  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);
1836
+ const a = (n.key ? `${n.tag}:${n.key}` : n._d) || n._p, i = e[a];
1837
+ if (i) {
1838
+ let p = n?.tagDuplicateStrategy;
1839
+ if (!p && ln.includes(n.tag) && (p = "merge"), p === "merge") {
1840
+ const d = i.props;
1841
+ ["class", "style"].forEach((s) => {
1842
+ d[s] && (n.props[s] ? (s === "style" && !d[s].endsWith(";") && (d[s] += ";"), n.props[s] = `${d[s]} ${n.props[s]}`) : n.props[s] = d[s]);
1843
+ }), e[a].props = {
1844
+ ...d,
1845
+ ...n.props
1846
+ };
2863
1847
  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);
1848
+ } else if (n._e === i._e) {
1849
+ i._duped = i._duped || [], n._d = `${i._d}:${i._duped.length + 1}`, i._duped.push(n);
2866
1850
  return;
2867
- } else if (Ie(n) > Ie(u))
1851
+ } else if (Pe(n) > Pe(i))
2868
1852
  return;
2869
1853
  }
2870
- const p = Object.keys(n.props).length + (n.innerHTML ? 1 : 0) + (n.textContent ? 1 : 0);
2871
- if (ke.includes(n.tag) && p === 0) {
2872
- delete e[l];
1854
+ const c = Object.keys(n.props).length + (n.innerHTML ? 1 : 0) + (n.textContent ? 1 : 0);
1855
+ if (_e.includes(n.tag) && c === 0) {
1856
+ delete e[a];
2873
1857
  return;
2874
1858
  }
2875
- e[l] = n;
1859
+ e[a] = n;
2876
1860
  });
2877
1861
  const t = [];
2878
1862
  Object.values(e).forEach((n) => {
2879
- const l = n._duped;
2880
- delete n._duped, t.push(n), l && t.push(...l);
1863
+ const a = n._duped;
1864
+ delete n._duped, t.push(n), a && t.push(...a);
2881
1865
  }), o.tags = t, o.tags = o.tags.filter((n) => !(n.tag === "meta" && (n.props.name || n.props.property) && !n.props.content));
2882
1866
  }
2883
1867
  }
2884
- }, Yi = {
1868
+ }, an = {
2885
1869
  mode: "server",
2886
1870
  hooks: {
2887
1871
  "tags:resolve": function(o) {
@@ -2895,110 +1879,106 @@ const Gi = ["templateParams", "htmlAttrs", "bodyAttrs"], ji = {
2895
1879
  });
2896
1880
  }
2897
1881
  }
2898
- }, Ki = ["script", "link", "bodyAttrs"];
2899
- function Qi(o) {
1882
+ }, sn = ["script", "link", "bodyAttrs"];
1883
+ function rn(o) {
2900
1884
  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;
1885
+ return Object.entries(o.props).forEach(([n, a]) => {
1886
+ n.startsWith("on") && typeof a == "function" ? (ht.includes(n) && (e[n] = `this.dataset.${n} = true`), t[n] = a) : e[n] = a;
2903
1887
  }), { props: e, eventHandlers: t };
2904
1888
  }
2905
- const Ji = (o) => ({
1889
+ const un = (o) => ({
2906
1890
  hooks: {
2907
1891
  "tags:resolve": function(e) {
2908
1892
  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);
1893
+ if (sn.includes(t.tag)) {
1894
+ const { props: n, eventHandlers: a } = rn(t);
1895
+ t.props = n, Object.keys(a).length && ((t.props.src || t.props.href) && (t.key = t.key || qe(t.props.src || t.props.href)), t._eventHandlers = a);
2912
1896
  }
2913
1897
  },
2914
1898
  "dom:renderTag": function(e, t, n) {
2915
1899
  if (!e.tag._eventHandlers)
2916
1900
  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))
1901
+ const a = e.tag.tag === "bodyAttrs" ? t.defaultView : e.$el;
1902
+ Object.entries(e.tag._eventHandlers).forEach(([i, c]) => {
1903
+ const p = `${e.tag._d || e.tag._p}:${i}`, d = i.slice(2).toLowerCase(), s = `data-h-${d}`;
1904
+ if (n(e.id, p, () => {
1905
+ }), e.$el.hasAttribute(s))
2922
1906
  return;
2923
- e.$el.setAttribute(c, "");
2924
- let g;
2925
- const y = (b) => {
2926
- p(b), g == null || g.disconnect();
1907
+ e.$el.setAttribute(s, "");
1908
+ let u;
1909
+ const h = (b) => {
1910
+ c(b), u?.disconnect();
2927
1911
  };
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, {
1912
+ i in e.$el.dataset ? h(new Event(i.replace("on", ""))) : ht.includes(i) && typeof MutationObserver < "u" ? (u = new MutationObserver((b) => {
1913
+ b.some((C) => C.attributeName === `data-${i}`) && (h(new Event(i.replace("on", ""))), u?.disconnect());
1914
+ }), u.observe(e.$el, {
2931
1915
  attributes: !0
2932
- })) : l.addEventListener(d, y), n(e.id, h, () => {
2933
- g == null || g.disconnect(), l.removeEventListener(d, y), e.$el.removeAttribute(c);
1916
+ })) : a.addEventListener(d, h), n(e.id, p, () => {
1917
+ u?.disconnect(), a.removeEventListener(d, h), e.$el.removeAttribute(s);
2934
1918
  });
2935
1919
  });
2936
1920
  }
2937
1921
  }
2938
- }), Xi = ["link", "style", "script", "noscript"], Zi = {
1922
+ }), dn = ["link", "style", "script", "noscript"], cn = {
2939
1923
  hooks: {
2940
1924
  "tag:normalise": ({ tag: o }) => {
2941
- o.key && Xi.includes(o.tag) && (o.props["data-hid"] = o._h = Je(o.key));
1925
+ o.key && dn.includes(o.tag) && (o.props["data-hid"] = o._h = qe(o.key));
2942
1926
  }
2943
1927
  }
2944
- }, er = {
1928
+ }, pn = {
2945
1929
  hooks: {
2946
1930
  "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, "")
1931
+ const e = (t) => o.tags.find((n) => n._d === t)?._p;
1932
+ for (const { prefix: t, offset: n } of Xl)
1933
+ for (const a of o.tags.filter((i) => typeof i.tagPriority == "string" && i.tagPriority.startsWith(t))) {
1934
+ const i = e(
1935
+ a.tagPriority.replace(t, "")
2955
1936
  );
2956
- typeof u != "undefined" && (l._p = u + n);
1937
+ typeof i < "u" && (a._p = i + n);
2957
1938
  }
2958
- o.tags.sort((t, n) => t._p - n._p).sort((t, n) => Ie(t) - Ie(n));
1939
+ o.tags.sort((t, n) => t._p - n._p).sort((t, n) => Pe(t) - Pe(n));
2959
1940
  }
2960
1941
  }
2961
- }, tr = {
1942
+ }, mn = {
2962
1943
  meta: "content",
2963
1944
  link: "href",
2964
1945
  htmlAttrs: "lang"
2965
- }, or = (o) => ({
1946
+ }, fn = (o) => ({
2966
1947
  hooks: {
2967
1948
  "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));
1949
+ const { tags: t } = e, n = t.find((p) => p.tag === "title")?.textContent, a = t.findIndex((p) => p.tag === "templateParams"), i = a !== -1 ? t[a].props : {}, c = i.separator || "|";
1950
+ delete i.separator, i.pageTitle = Ve(i.pageTitle || n || "", i, c);
1951
+ for (const p of t.filter((d) => d.processTemplateParams !== !1)) {
1952
+ const d = mn[p.tag];
1953
+ d && typeof p.props[d] == "string" ? p.props[d] = Ve(p.props[d], i, c) : (p.processTemplateParams === !0 || ["titleTemplate", "title"].includes(p.tag)) && ["innerHTML", "textContent"].forEach((s) => {
1954
+ typeof p[s] == "string" && (p[s] = Ve(p[s], i, c));
2975
1955
  });
2976
1956
  }
2977
- o._templateParams = u, o._separator = p, e.tags = t.filter((d) => d.tag !== "templateParams");
1957
+ o._templateParams = i, o._separator = c, e.tags = t.filter((p) => p.tag !== "templateParams");
2978
1958
  }
2979
1959
  }
2980
- }), nr = {
1960
+ }), hn = {
2981
1961
  hooks: {
2982
1962
  "tags:resolve": (o) => {
2983
1963
  const { tags: e } = o;
2984
- let t = e.findIndex((l) => l.tag === "titleTemplate");
2985
- const n = e.findIndex((l) => l.tag === "title");
1964
+ let t = e.findIndex((a) => a.tag === "titleTemplate");
1965
+ const n = e.findIndex((a) => a.tag === "title");
2986
1966
  if (n !== -1 && t !== -1) {
2987
- const l = ft(
1967
+ const a = Qe(
2988
1968
  e[t].textContent,
2989
1969
  e[n].textContent
2990
1970
  );
2991
- l !== null ? e[n].textContent = l || e[n].textContent : delete e[n];
1971
+ a !== null ? e[n].textContent = a || e[n].textContent : delete e[n];
2992
1972
  } else if (t !== -1) {
2993
- const l = ft(
1973
+ const a = Qe(
2994
1974
  e[t].textContent
2995
1975
  );
2996
- l !== null && (e[t].textContent = l, e[t].tag = "title", t = -1);
1976
+ a !== null && (e[t].textContent = a, e[t].tag = "title", t = -1);
2997
1977
  }
2998
1978
  t !== -1 && delete e[t], o.tags = e.filter(Boolean);
2999
1979
  }
3000
1980
  }
3001
- }, ir = {
1981
+ }, vn = {
3002
1982
  hooks: {
3003
1983
  "tags:afterResolve": function(o) {
3004
1984
  for (const e of o.tags)
@@ -3007,122 +1987,137 @@ const Ji = (o) => ({
3007
1987
  }
3008
1988
  };
3009
1989
  // @__NO_SIDE_EFFECTS__
3010
- function rr(o = {}) {
3011
- const e = sr(o);
3012
- return e.use(/* @__PURE__ */ Ni()), e;
1990
+ function gn(o = {}) {
1991
+ const e = yn(o);
1992
+ return e.use(/* @__PURE__ */ on()), e;
3013
1993
  }
3014
- function vt(o, e) {
1994
+ function et(o, e) {
3015
1995
  return !o || o === "server" && e || o === "client" && !e;
3016
1996
  }
3017
- function sr(o = {}) {
3018
- const e = xi();
3019
- e.addHooks(o.hooks || {}), o.document = o.document || (Di ? document : void 0);
1997
+ function yn(o = {}) {
1998
+ const e = jl();
1999
+ e.addHooks(o.hooks || {}), o.document = o.document || (zl ? document : void 0);
3020
2000
  const t = !o.document, n = () => {
3021
- h.dirty = !0, e.callHook("entries:updated", h);
2001
+ p.dirty = !0, e.callHook("entries:updated", p);
3022
2002
  };
3023
- let l = 0, u = [];
3024
- const p = [], h = {
3025
- plugins: p,
2003
+ let a = 0, i = [];
2004
+ const c = [], p = {
2005
+ plugins: c,
3026
2006
  dirty: !1,
3027
2007
  resolvedOptions: o,
3028
2008
  hooks: e,
3029
2009
  headEntries() {
3030
- return u;
2010
+ return i;
3031
2011
  },
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 || {}));
2012
+ use(d) {
2013
+ const s = typeof d == "function" ? d(p) : d;
2014
+ (!s.key || !c.some((u) => u.key === s.key)) && (c.push(s), et(s.mode, t) && e.addHooks(s.hooks || {}));
3035
2015
  },
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()), {
2016
+ push(d, s) {
2017
+ delete s?.head;
2018
+ const u = {
2019
+ _i: a++,
2020
+ input: d,
2021
+ ...s
2022
+ };
2023
+ return et(u.mode, t) && (i.push(u), n()), {
3043
2024
  dispose() {
3044
- u = u.filter((b) => b._i !== y._i), e.callHook("entries:updated", h), n();
2025
+ i = i.filter((h) => h._i !== u._i), e.callHook("entries:updated", p), n();
3045
2026
  },
3046
2027
  // 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();
2028
+ patch(h) {
2029
+ i = i.map((b) => (b._i === u._i && (b.input = u.input = h), b)), n();
3049
2030
  }
3050
2031
  };
3051
2032
  },
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
- });
2033
+ async resolveTags() {
2034
+ const d = { tags: [], entries: [...i] };
2035
+ await e.callHook("entries:resolve", d);
2036
+ for (const s of d.entries) {
2037
+ const u = s.resolvedInput || s.input;
2038
+ if (s.resolvedInput = await (s.transform ? s.transform(u) : u), s.resolvedInput)
2039
+ for (const h of await Ql(s)) {
2040
+ const b = { tag: h, entry: s, resolvedOptions: p.resolvedOptions };
2041
+ await e.callHook("tag:normalise", b), d.tags.push(b.tag);
2042
+ }
2043
+ }
2044
+ return await e.callHook("tags:beforeResolve", d), await e.callHook("tags:resolve", d), await e.callHook("tags:afterResolve", d), d.tags;
3066
2045
  },
3067
2046
  ssr: t
3068
2047
  };
3069
2048
  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;
2049
+ nn,
2050
+ an,
2051
+ un,
2052
+ cn,
2053
+ pn,
2054
+ fn,
2055
+ hn,
2056
+ vn,
2057
+ ...o?.plugins || []
2058
+ ].forEach((d) => p.use(d)), p.hooks.callHook("init", p), p;
3080
2059
  }
3081
- const ar = Eo.startsWith("3");
3082
- function lr(o) {
3083
- return typeof o == "function" ? o() : s(o);
2060
+ const bn = zt.startsWith("3");
2061
+ function kn(o) {
2062
+ return typeof o == "function" ? o() : l(o);
3084
2063
  }
3085
2064
  function Ge(o, e = "") {
3086
2065
  if (o instanceof Promise)
3087
2066
  return o;
3088
- const t = lr(o);
2067
+ const t = kn(o);
3089
2068
  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)])
2069
+ Object.entries(t).map(([n, a]) => n === "titleTemplate" || n.startsWith("on") ? [n, l(a)] : [n, Ge(a, n)])
3091
2070
  ) : t;
3092
2071
  }
3093
- const ur = {
2072
+ const _n = {
3094
2073
  hooks: {
3095
2074
  "entries:resolve": function(o) {
3096
2075
  for (const e of o.entries)
3097
2076
  e.resolvedInput = Ge(e.input);
3098
2077
  }
3099
2078
  }
3100
- }, dr = "usehead";
3101
- function cr(o) {
2079
+ }, Vn = "usehead";
2080
+ function $n(o) {
3102
2081
  return {
3103
2082
  install(t) {
3104
- ar && (t.config.globalProperties.$unhead = o, t.config.globalProperties.$head = o, t.provide(dr, o));
2083
+ bn && (t.config.globalProperties.$unhead = o, t.config.globalProperties.$head = o, t.provide(Vn, o));
3105
2084
  }
3106
2085
  }.install;
3107
2086
  }
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;
2087
+ function Tn(o = {}) {
2088
+ o.domDelayFn = o.domDelayFn || ((t) => Kt(() => setTimeout(() => t(), 0)));
2089
+ const e = /* @__PURE__ */ gn(o);
2090
+ return e.use(_n), e.install = $n(e), e;
3112
2091
  }
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);
2092
+ const Cn = Jt(), wn = Tn(), Pn = Xt();
2093
+ class Hn extends HTMLElement {
2094
+ vueApp;
2095
+ constructor() {
2096
+ super();
3124
2097
  }
3125
- };
2098
+ disconnectedCallback() {
2099
+ this.vueApp.unmount();
2100
+ }
2101
+ connectedCallback() {
2102
+ const e = typeof ke == "function" ? ke.options : ke;
2103
+ let t = Array.isArray(e.props) ? e.props : Object.keys(e.props || {});
2104
+ const n = (d) => d.replace(/[A-Z]+(?![a-z])|[A-Z]/g, (s, u) => (u ? "-" : "") + s.toLowerCase()), a = (d) => d.replace(/-./g, (s) => s[1].toUpperCase()), i = {};
2105
+ t = t.map(n);
2106
+ const c = {};
2107
+ for (const d of this.attributes) {
2108
+ const u = d.name.split(".");
2109
+ u.length > 1 && (c[u[0]] || (c[u[0]] = {}), c[u[0]][a(u[1])] = d.value);
2110
+ }
2111
+ for (const d of t) {
2112
+ let s = this.attributes.getNamedItem(d)?.value;
2113
+ c.hasOwnProperty(d) && (s = c[d]), i[d] = s;
2114
+ }
2115
+ this.vueApp = Zt(ke, i), this.vueApp.provide("emitter", Pn), this.vueApp.use(wn), this.vueApp.use(Cn), this.vueApp.use(no), this.vueApp.use(Yt), this.vueApp.use(ao), this.vueApp.use(Qt, { bootstrap: !0 });
2116
+ const p = document.createElement("div");
2117
+ this.vueApp.mount(p), this.appendChild(p.children[0]);
2118
+ }
2119
+ }
2120
+ window.customElements.define("konnectio-hotel", Hn);
3126
2121
  export {
3127
- Sr as default
2122
+ Hn as default
3128
2123
  };